* src/insets/InsetMathBox.{cpp,h}:

- add validate method and validate \tag[*] (bug 4586)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23483 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-03-05 18:57:08 +00:00
parent 107faacf0e
commit 6488414cf8
2 changed files with 10 additions and 0 deletions

View File

@ -73,6 +73,14 @@ void InsetMathBox::infoize(odocstream & os) const
}
void InsetMathBox::validate(LaTeXFeatures & features) const
{
if (name_ == "tag" || name_ == "tag*")
features.require("amsmath");
cell(0).validate(features);
}
/////////////////////////////////////////////////////////////////////
//

View File

@ -36,6 +36,8 @@ public:
void normalize(NormalStream & ns) const;
///
void infoize(odocstream & os) const;
///
void validate(LaTeXFeatures & features) const;
private:
Inset * clone() const { return new InsetMathBox(*this); }