]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMath.h
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / mathed / InsetMath.h
index f60602c5fe8fb4dd58d850422a80d34505a82c68..555762c8c7bab3e568b8d9247475e612b1c96ef5 100644 (file)
@@ -31,7 +31,8 @@ enum HullType {
        hullXXAlignAt,
        hullFlAlign,
        hullMultline,
-       hullGather
+       hullGather,
+       hullRegexp
 };
 
 HullType hullType(docstring const & name);
@@ -92,11 +93,18 @@ class ReplaceData;
 
 class InsetMath : public Inset {
 public:
+       ///
+       InsetMath(Buffer * buf = 0) : Inset(buf) {}
        /// identification as math inset
        InsetMath * asInsetMath() { return this; }
+       /// identification as math inset
+       InsetMath const * asInsetMath() const { return this; }
        /// this is overridden in math text insets (i.e. mbox)
        bool inMathed() const { return true; }
 
+       /// this is overridden by specific insets
+       virtual mode_type currentMode() const { return MATH_MODE; }
+
        /// the ascent of the inset above the baseline
        /// compute the size of the object for text based drawing
        virtual void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
@@ -201,6 +209,8 @@ public:
 
        /// superscript kerning
        virtual int kerning(BufferView const *) const { return 0; }
+       ///
+       InsetCode lyxCode() const { return MATH_CODE; }
 };
 
 ///