]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMath.h
tex2lyx/text.cpp: fix typos
[lyx.git] / src / mathed / InsetMath.h
index aae24abd0ddb2a275fcc969489bcc18bff20a2a4..24884ba541ebf0c827ce0524d848aff10a59ee56 100644 (file)
@@ -68,11 +68,8 @@ class InsetMathScript;
 class InsetMathString;
 class InsetMathSpace;
 class InsetMathSpecialChar;
-class InsetMathSubstack;
 class InsetMathSymbol;
-class InsetMathTabular;
 class InsetMathUnknown;
-class InsetMathXYMatrix;
 
 class InsetMathRef;
 
@@ -105,6 +102,8 @@ public:
        InsetMath const * asInsetMath() const { return this; }
        /// this is overridden in math text insets (i.e. mbox)
        bool inMathed() const { return true; }
+       ///
+       virtual docstring name() const;
 
        /// this is overridden by specific insets
        virtual mode_type currentMode() const { return MATH_MODE; }
@@ -151,15 +150,9 @@ public:
        virtual InsetMathSpace const    * asSpaceInset() const    { return 0; }
        virtual InsetMathString         * asStringInset()         { return 0; }
        virtual InsetMathString const   * asStringInset() const   { return 0; }
-       virtual InsetMathSubstack       * asSubstackInset()       { return 0; }
-       virtual InsetMathSubstack const * asSubstackInset() const { return 0; }
        virtual InsetMathSymbol const   * asSymbolInset() const   { return 0; }
-       virtual InsetMathTabular        * asTabularInset()        { return 0; }
-       virtual InsetMathTabular const  * asTabularInset() const  { return 0; }
        virtual InsetMathUnknown        * asUnknownInset()        { return 0; }
        virtual InsetMathUnknown const  * asUnknownInset() const  { return 0; }
-       virtual InsetMathXYMatrix       * asXYMatrixInset()       { return 0; }
-       virtual InsetMathXYMatrix const * asXYMatrixInset() const { return 0; }
        virtual InsetMathRef            * asRefInset()            { return 0; }
        virtual InsetMathSpecialChar const * asSpecialCharInset() const { return 0; }
 
@@ -225,6 +218,8 @@ public:
        /// superscript kerning
        virtual int kerning(BufferView const *) const { return 0; }
        ///
+       bool isInToc() const { return true; }
+       ///
        InsetCode lyxCode() const { return MATH_CODE; }
 };