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

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

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23482 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-03-05 18:52:30 +00:00
parent f1e1afa308
commit 5a918564ae
3 changed files with 13 additions and 0 deletions

View File

@ -14,6 +14,7 @@
#include "MathData.h" #include "MathData.h"
#include "MathStream.h" #include "MathStream.h"
#include "MathStream.h" #include "MathStream.h"
#include "LaTeXFeatures.h"
#include "support/std_ostream.h" #include "support/std_ostream.h"
@ -74,4 +75,12 @@ void InsetMathBox::infoize(odocstream & os) const
} }
void InsetMathBox::validate(LaTeXFeatures & features) const
{
if (name_ == "tag" || name_ == "tag*")
features.require("amsmath");
cell(0).validate(features);
}
} // namespace lyx } // namespace lyx

View File

@ -40,6 +40,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:
virtual std::auto_ptr<Inset> doClone() const; virtual std::auto_ptr<Inset> doClone() const;

View File

@ -67,6 +67,8 @@ What's new
- Allow to enter starred math commands like "\tag*" (bug 4584). - Allow to enter starred math commands like "\tag*" (bug 4584).
- Load amsmath when \tag or \tag* is used (bug 4586).
- Fix parameter input of the math commands \makebox and \framebox (bug 2461). - Fix parameter input of the math commands \makebox and \framebox (bug 2461).
- When cutting a selection do not leave a dangling paragraph (bug 3995). - When cutting a selection do not leave a dangling paragraph (bug 3995).