From: Jürgen Spitzmüller Date: Wed, 5 Mar 2008 18:57:08 +0000 (+0000) Subject: * src/insets/InsetMathBox.{cpp,h}: X-Git-Tag: 1.6.10~5862 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6488414cf8f05d5cdc6e2628c5c31ae6cbf6bacc;p=features.git * 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 --- diff --git a/src/mathed/InsetMathBox.cpp b/src/mathed/InsetMathBox.cpp index c5272c20e0..91c1a0ab2d 100644 --- a/src/mathed/InsetMathBox.cpp +++ b/src/mathed/InsetMathBox.cpp @@ -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); +} + + ///////////////////////////////////////////////////////////////////// // diff --git a/src/mathed/InsetMathBox.h b/src/mathed/InsetMathBox.h index b2525aa8d1..7138f25dce 100644 --- a/src/mathed/InsetMathBox.h +++ b/src/mathed/InsetMathBox.h @@ -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); }