]> git.lyx.org Git - lyx.git/commitdiff
infrastructure for requiring "amssymb".
authorAndré Pönitz <poenitz@gmx.net>
Thu, 17 Jan 2002 08:07:06 +0000 (08:07 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 17 Jan 2002 08:07:06 +0000 (08:07 +0000)
Could anybody please fill in the apropriate tests?

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

src/mathed/math_stringinset.C
src/mathed/math_stringinset.h
src/mathed/math_symbolinset.C
src/mathed/math_symbolinset.h

index e9b803f0802c6dd18227295b07e70c4454a1ddc3..a7a7ade2bc1b7102a23d4491a995f3cf71e0540f 100644 (file)
@@ -116,3 +116,10 @@ void MathStringInset::write(WriteStream & os) const
        else 
                os << str_;
 }
+
+
+void MathStringInset::validate(LaTeXFeatures & features) const
+{
+       // if (...)
+       //      features.require("amssymb");
+}
index a3ff6af078a30ebfe22df08262bd8730bc55bdb2..0bf5af1093693243630e3e9c9bc480482d42f412 100644 (file)
@@ -34,6 +34,8 @@ public:
        string str() const { return str_; }
        ///
        MathStringInset * asStringInset() { return this; }
+       /// request "external features"
+       void validate(LaTeXFeatures & features) const;
 
        ///
        void normalize(NormalStream &) const;
index 8b7fc8d546b5595cfa054c32c560f0f9dd9af179..f2f0f5c6a2273a88990a9af1558fd148f7c4a4ff 100644 (file)
@@ -183,3 +183,8 @@ void MathSymbolInset::infoize(std::ostream & os) const
 }
 
 
+void MathSymbolInset::validate(LaTeXFeatures & features) const
+{
+       // if (...)
+       //      features.require("amssymb");
+}
index bb653b220f08bc581f215eb29e7fa99f520b4d0a..e16cf8930cb9e7db632d78cade77ce5290347f9c 100644 (file)
@@ -35,6 +35,8 @@ public:
        string name() const;
        ///
        bool match(MathInset *) const;
+       /// request "external features"
+       void validate(LaTeXFeatures & features) const;
 
        ///
        void normalize(NormalStream &) const;