mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 15:01:58 +00:00
* 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:
parent
ad7e91e684
commit
2fcae62a4d
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user