infrastructure for requiring "amssymb".

Could anybody please fill in the apropriate tests?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3402 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-01-17 08:07:06 +00:00
parent c686dbe87f
commit c446acbd86
4 changed files with 16 additions and 0 deletions

View File

@ -116,3 +116,10 @@ void MathStringInset::write(WriteStream & os) const
else else
os << str_; os << str_;
} }
void MathStringInset::validate(LaTeXFeatures & features) const
{
// if (...)
// features.require("amssymb");
}

View File

@ -34,6 +34,8 @@ public:
string str() const { return str_; } string str() const { return str_; }
/// ///
MathStringInset * asStringInset() { return this; } MathStringInset * asStringInset() { return this; }
/// request "external features"
void validate(LaTeXFeatures & features) const;
/// ///
void normalize(NormalStream &) const; void normalize(NormalStream &) const;

View File

@ -183,3 +183,8 @@ void MathSymbolInset::infoize(std::ostream & os) const
} }
void MathSymbolInset::validate(LaTeXFeatures & features) const
{
// if (...)
// features.require("amssymb");
}

View File

@ -35,6 +35,8 @@ public:
string name() const; string name() const;
/// ///
bool match(MathInset *) const; bool match(MathInset *) const;
/// request "external features"
void validate(LaTeXFeatures & features) const;
/// ///
void normalize(NormalStream &) const; void normalize(NormalStream &) const;