mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-04 06:15:59 +00:00
* 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:
parent
107faacf0e
commit
6488414cf8
@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
|
@ -36,6 +36,8 @@ public:
|
|||||||
void normalize(NormalStream & ns) const;
|
void normalize(NormalStream & ns) const;
|
||||||
///
|
///
|
||||||
void infoize(odocstream & os) const;
|
void infoize(odocstream & os) const;
|
||||||
|
///
|
||||||
|
void validate(LaTeXFeatures & features) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Inset * clone() const { return new InsetMathBox(*this); }
|
Inset * clone() const { return new InsetMathBox(*this); }
|
||||||
|
Loading…
Reference in New Issue
Block a user