]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macro.h
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_macro.h
index 28a184aa68ee99aa9bb4dd08100bbc78e0ad2378..6afbab1b3f620009c3147029d671a5a12c9ebe9d 100644 (file)
@@ -25,13 +25,17 @@ public:
        /// A macro can be built from an existing template
        MathMacro(std::string const & name, int numargs);
        ///
-       std::auto_ptr<InsetBase> clone() const;
-       ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
        void drawExpanded(PainterInfo & pi, int x, int y) const;
+       /// draw selection background
+       void drawSelection(PainterInfo & pi, int x, int y) const;
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
+       /// get cursor position
+       void cursorPos(CursorSlice const & sl, bool boundary, int & x, int & y) const;
+       ///
+       InsetBase * editXY(LCursor & cur, int x, int y);
        ///
        std::string name() const;
        ///
@@ -52,6 +56,7 @@ public:
        void infoize2(std::ostream &) const;
 
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        ///
        void updateExpansion() const;
        ///
@@ -61,7 +66,7 @@ private:
        std::string name_;
        /// the unexpanded macro defintition
        mutable MathArray tmpl_;
-       /// the matcro substituted with our args
+       /// the macro substituted with our args
        mutable MathArray expanded_;
 };