require AMS for underset and overset

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9193 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2004-11-07 10:13:59 +00:00
parent ff7bf84825
commit 4c7f883059
6 changed files with 30 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2004-08-12 André Pönitz <poenitz@gmx.net>
* math_overset.[Ch] (validate):
* math_underset.[Ch] (validate): require ams
2004-11-02 José Matos <jamatos@lyx.org>
* ref_inset.[Ch] (docbook):

View File

@ -13,7 +13,9 @@
#include "math_oversetinset.h"
#include "math_data.h"
#include "math_mathmlstream.h"
#include "cursor.h"
#include "LaTeXFeatures.h"
using std::max;
using std::auto_ptr;
@ -75,3 +77,10 @@ void MathOversetInset::normalize(NormalStream & os) const
{
os << "[overset " << cell(0) << ' ' << cell(1) << ']';
}
void MathOversetInset::validate(LaTeXFeatures & features) const
{
features.require("amsmath");
}

View File

@ -28,11 +28,12 @@ public:
bool idxFirst(LCursor &) const;
///
bool idxLast(LCursor &) const;
///
void write(WriteStream & os) const;
///
void normalize(NormalStream &) const;
///
void validate(LaTeXFeatures & features) const;
};
#endif

View File

@ -12,11 +12,12 @@
#include "math_spaceinset.h"
#include "math_data.h"
#include "frontends/Painter.h"
#include "math_mathmlstream.h"
#include "LaTeXFeatures.h"
#include "LColor.h"
#include "frontends/Painter.h"
using std::string;
using std::auto_ptr;

View File

@ -13,7 +13,9 @@
#include "math_undersetinset.h"
#include "math_data.h"
#include "math_mathmlstream.h"
#include "cursor.h"
#include "LaTeXFeatures.h"
using std::max;
using std::auto_ptr;
@ -87,3 +89,10 @@ void MathUndersetInset::normalize(NormalStream & os) const
{
os << "[underset " << cell(0) << ' ' << cell(1) << ']';
}
void MathUndersetInset::validate(LaTeXFeatures & features) const
{
features.require("amsmath");
}

View File

@ -34,6 +34,8 @@ public:
void write(WriteStream & ws) const;
///
void normalize(NormalStream & ns) const;
///
void validate(LaTeXFeatures & features) const;
};
#endif