]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MacroTable.h
Move some Cursor methods to CursorData
[lyx.git] / src / mathed / MacroTable.h
index 3bd04ea917a54ccef6469b28e4c8271293ebf825..eb613cae073c1987b272f62893324dab9fd1ccc3 100644 (file)
@@ -25,7 +25,7 @@ namespace lyx {
 
 class Buffer;
 class MathData;
-class MathMacroTemplate;
+class InsetMathMacroTemplate;
 class Paragraph;
 class latexkeys;
 
@@ -43,7 +43,7 @@ public:
        /// Create lazy MacroData which only queries the macro template when needed
        MacroData(Buffer * buf, DocIterator const & pos);
        /// Create non-lazy MacroData which directly queries the macro template
-       MacroData(Buffer * buf, MathMacroTemplate const & macro);
+       MacroData(Buffer * buf, InsetMathMacroTemplate const & macro);
 
        ///
        docstring const & definition() const { updateData(); return definition_; }
@@ -68,7 +68,11 @@ public:
        ///
        char const * MathMLtype() const;
        ///
+       latexkeys const * symbol() const { return sym_; }
+       ///
        void setSymbol(latexkeys const * sym) { sym_ = sym; }
+       ///
+       DocIterator const & pos() { return pos_; }
 
        /// lock while being drawn to avoid recursions
        int lock() const { return ++lockCount_; }
@@ -102,7 +106,7 @@ public:
 
 private:
        ///
-       void queryData(MathMacroTemplate const & macro) const;
+       void queryData(InsetMathMacroTemplate const & macro) const;
        ///
        void updateData() const;
        ///