]> git.lyx.org Git - features.git/commitdiff
* math_xarrowinset.C (validate):
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 13 Apr 2006 10:31:32 +0000 (10:31 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 13 Apr 2006 10:31:32 +0000 (10:31 +0000)
* math_splitinset.C (validate): new methods; require amsmath (bug
2149).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13662 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_splitinset.C
src/mathed/math_splitinset.h
src/mathed/math_xarrowinset.C
src/mathed/math_xarrowinset.h

index b5ccfe370605f311a41bf3d4e803579ec57f63ef..0d2a4f7f07ef67859c89fd36a777a93ff7c32843 100644 (file)
@@ -18,6 +18,7 @@
 #include "funcrequest.h"
 #include "FuncStatus.h"
 #include "gettext.h"
+#include "LaTeXFeatures.h"
 
 #include "support/lstrings.h"
 #include "support/std_ostream.h"
@@ -103,3 +104,10 @@ void MathSplitInset::infoize(std::ostream & os) const
        name[0] = lyx::support::uppercase(name[0]);
        os << name << ' ';
 }
+
+
+void MathSplitInset::validate(LaTeXFeatures & features) const
+{
+       features.require("amsmath");
+       MathNestInset::validate(features);
+}
index 4d3063d61777dcb110537127dd3cd26812e1fa5e..db980147d11bf540c5f9f65fad87681569ed067d 100644 (file)
@@ -31,6 +31,8 @@ public:
        ///
        void infoize(std::ostream & os) const;
        ///
+       void validate(LaTeXFeatures & features) const;
+       ///
        int defaultColSpace(col_type) { return 0; }
        ///
        char defaultColAlign(col_type);
index 3676171d5438914e4e26993668b5863ba3cde1ac..744ff8dde8e31f716ce51263c6f25cf29f8c8701 100644 (file)
@@ -16,6 +16,8 @@
 #include "math_streamstr.h"
 #include "math_support.h"
 
+#include "LaTeXFeatures.h"
+
 using std::string;
 using std::auto_ptr;
 
@@ -67,3 +69,10 @@ void MathXArrowInset::normalize(NormalStream & os) const
 {
        os << "[xarrow " << name_ << ' ' <<  cell(0) << ' ' << cell(1) << ']';
 }
+
+
+void MathXArrowInset::validate(LaTeXFeatures & features) const
+{
+       features.require("amsmath");
+       MathNestInset::validate(features);
+}
index dd0a5b1e24a49b55ff5882e97124f0325f5c0826..0d00122e858626d948507b21866c61341a5b0f21 100644 (file)
@@ -28,6 +28,8 @@ public:
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void normalize(NormalStream & os) const;
+       ///
+       void validate(LaTeXFeatures & features) const;
 
 private:
        virtual std::auto_ptr<InsetBase> doClone() const;