* math_xarrowinset.C (validate):

* math_splitinset.C (validate): new methods; require amsmath (bug
	2149).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13662 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2006-04-13 10:31:32 +00:00
parent ad7e91e684
commit 2fcae62a4d
4 changed files with 21 additions and 0 deletions

View File

@ -18,6 +18,7 @@
#include "funcrequest.h"
#include "FuncStatus.h"
#include "gettext.h"
#include "LaTeXFeatures.h"
#include "support/lstrings.h"
#include "support/std_ostream.h"
@ -103,3 +104,10 @@ void MathSplitInset::infoize(std::ostream & os) const
name[0] = lyx::support::uppercase(name[0]);
os << name << ' ';
}
void MathSplitInset::validate(LaTeXFeatures & features) const
{
features.require("amsmath");
MathNestInset::validate(features);
}

View File

@ -31,6 +31,8 @@ public:
///
void infoize(std::ostream & os) const;
///
void validate(LaTeXFeatures & features) const;
///
int defaultColSpace(col_type) { return 0; }
///
char defaultColAlign(col_type);

View File

@ -16,6 +16,8 @@
#include "math_streamstr.h"
#include "math_support.h"
#include "LaTeXFeatures.h"
using std::string;
using std::auto_ptr;
@ -67,3 +69,10 @@ void MathXArrowInset::normalize(NormalStream & os) const
{
os << "[xarrow " << name_ << ' ' << cell(0) << ' ' << cell(1) << ']';
}
void MathXArrowInset::validate(LaTeXFeatures & features) const
{
features.require("amsmath");
MathNestInset::validate(features);
}

View File

@ -28,6 +28,8 @@ public:
void metrics(MetricsInfo & mi, Dimension & dim) const;
///
void normalize(NormalStream & os) const;
///
void validate(LaTeXFeatures & features) const;
private:
virtual std::auto_ptr<InsetBase> doClone() const;