/// 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;
///
void infoize2(std::ostream &) const;
private:
+ virtual std::auto_ptr<InsetBase> doClone() const;
///
void updateExpansion() const;
///
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_;
};