]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMath.h
installer: further preparation
[lyx.git] / src / mathed / InsetMath.h
index aae24abd0ddb2a275fcc969489bcc18bff20a2a4..5e5f492dc925a260e0989940b142eff92c122628 100644 (file)
@@ -45,7 +45,7 @@ math editor only, it isn't a general LyX inset. It's used to represent all
 the math objects.
 
 Math insets do not know there parents, a cursor position or things
-like that. The are dumb object that are contained in other math insets
+like that. They are dumb objects that are contained in other math insets
 (InsetMathNests, in fact) thus forming a tree. The root of this tree is
 always a InsetMathHull, which provides an interface to the Outer World by
 inclusion in the "real LyX insets" FormulaInset and FormulaMacroInset.
@@ -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; }
 
@@ -175,8 +168,6 @@ public:
        /// identifies things that can get \limits or \nolimits
        virtual bool takesLimits() const { return false; }
 
-       /// char char code if possible
-       virtual void handleFont(docstring const &) {}
        /// replace things by other things
        virtual void replace(ReplaceData &) {}
        /// do we contain a given subsequence?
@@ -207,7 +198,7 @@ public:
        virtual void octave(OctaveStream &) const;
 
        /// plain text output in ucs4 encoding
-       int plaintext(odocstream &, OutputParams const &) const;
+       int plaintext(odocstringstream &, OutputParams const &, size_t) const;
 
        /// dump content to stderr for debugging
        virtual void dump() const;
@@ -225,6 +216,8 @@ public:
        /// superscript kerning
        virtual int kerning(BufferView const *) const { return 0; }
        ///
+       bool isInToc() const { return true; }
+       ///
        InsetCode lyxCode() const { return MATH_CODE; }
 };