]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_decorationinset.h
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / math_decorationinset.h
index 5a5bbce698bc473850974c50b3d29e02bf6e7b49..2878523e2e6342b63febe04f9f98cf69c920d580 100644 (file)
@@ -14,7 +14,6 @@
 #define MATH_DECORATIONINSET_H
 
 #include "math_nestinset.h"
-#include "LString.h"
 
 
 class latexkeys;
@@ -25,8 +24,6 @@ public:
        ///
        explicit MathDecorationInset(latexkeys const * key);
        ///
-       virtual std::auto_ptr<InsetBase> clone() const;
-       ///
        void draw(PainterInfo &, int x, int y) const;
        ///
        void write(WriteStream & os) const;
@@ -38,14 +35,19 @@ public:
        void infoize(std::ostream & os) const;
        ///
        bool isScriptable() const;
+       ///
+       void validate(LaTeXFeatures & features) const;
 
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        ///
        bool upper() const;
        ///
        bool protect() const;
        /// is it a wide decoration?
        bool wide() const;
+       /// does this need AMS
+       bool ams() const;
 
        ///
        latexkeys const * key_;