]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMath.h
When cancelling saving of a children, cancel the whole process.
[lyx.git] / src / mathed / InsetMath.h
index 2fc4c1ddf6b1a3129b92119d711f7d584fd9f06d..578b29fdcfd671926789bf3036b3859003c21941 100644 (file)
@@ -87,8 +87,8 @@ class MathStream;
 class WriteStream;
 
 class MathData;
-class MathMacroTemplate;
-class MathMacro;
+class InsetMathMacroTemplate;
+class InsetMathMacro;
 class MathRow;
 class TextPainter;
 class TextMetricsInfo;
@@ -114,8 +114,10 @@ public:
        /// this is overridden by specific insets
        virtual mode_type currentMode() const { return MATH_MODE; }
 
+       // The possible marker types for math insets
+       enum marker_type { NO_MARKER, MARKER2, MARKER, BOX_MARKER };
        /// this is overridden by insets with specific edit marker type
-       virtual marker_type marker() const;
+       virtual marker_type marker(BufferView const *) const;
 
        /// the ascent of the inset above the baseline
        /// compute the size of the object for text based drawing
@@ -148,10 +150,10 @@ public:
        virtual InsetMathGrid const     * asGridInset() const     { return 0; }
        virtual InsetMathHull           * asHullInset()           { return 0; }
        virtual InsetMathHull const     * asHullInset() const     { return 0; }
-       virtual MathMacro               * asMacro()               { return 0; }
-       virtual MathMacro const         * asMacro() const         { return 0; }
-       virtual MathMacroTemplate       * asMacroTemplate()       { return 0; }
-       virtual MathMacroTemplate const * asMacroTemplate() const { return 0; }
+       virtual InsetMathMacro               * asMacro()               { return 0; }
+       virtual InsetMathMacro const         * asMacro() const         { return 0; }
+       virtual InsetMathMacroTemplate       * asMacroTemplate()       { return 0; }
+       virtual InsetMathMacroTemplate const * asMacroTemplate() const { return 0; }
        virtual InsetMathMatrix const   * asMatrixInset() const   { return 0; }
        virtual InsetMathNest           * asNestInset()           { return 0; }
        virtual InsetMathNest const     * asNestInset() const     { return 0; }