X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMath.h;h=578b29fdcfd671926789bf3036b3859003c21941;hb=a68e5b777487b495feeefa53700834ecec6ec196;hp=2fc4c1ddf6b1a3129b92119d711f7d584fd9f06d;hpb=6c13af3f298a96c5564684b83c52989473b020ce;p=lyx.git diff --git a/src/mathed/InsetMath.h b/src/mathed/InsetMath.h index 2fc4c1ddf6..578b29fdcf 100644 --- a/src/mathed/InsetMath.h +++ b/src/mathed/InsetMath.h @@ -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; }