mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
ff7bf84825
commit
4c7f883059
@ -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):
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
@ -34,6 +34,8 @@ public:
|
||||
void write(WriteStream & ws) const;
|
||||
///
|
||||
void normalize(NormalStream & ns) const;
|
||||
///
|
||||
void validate(LaTeXFeatures & features) const;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user