]> git.lyx.org Git - features.git/commitdiff
* src/insets/InsetMathBox.{cpp,h}:
authorJürgen Spitzmüller <spitz@lyx.org>
Wed, 5 Mar 2008 18:57:08 +0000 (18:57 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Wed, 5 Mar 2008 18:57:08 +0000 (18:57 +0000)
- 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

src/mathed/InsetMathBox.cpp
src/mathed/InsetMathBox.h

index c5272c20e00ba2cba6b3bbfb35cdb36a33ed29b6..91c1a0ab2d8ea9748275280d1e27644cbcfd87a0 100644 (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);
+}
+
+
 
 /////////////////////////////////////////////////////////////////////
 //
index b2525aa8d1fcb0f9da865133b7eb0d770549276e..7138f25dce0c4b247df6290471e230df6ed7ca7c 100644 (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); }