X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FMathMacro.h;h=893c011a4141bdc05e3e1ddd250f160c751ec4ae;hb=71623b88b2c613dd4ab826a9783a53e840bcd6e1;hp=c7dca261fadb042ab9ed340bb259e8c1abecd9b2;hpb=89662a6852ca8f68caa557808d7b7e1d669344d4;p=lyx.git diff --git a/src/mathed/MathMacro.h b/src/mathed/MathMacro.h index c7dca261fa..893c011a41 100644 --- a/src/mathed/MathMacro.h +++ b/src/mathed/MathMacro.h @@ -37,19 +37,28 @@ public: /// virtual MathMacro const * asMacro() const { return this; } /// - marker_type marker() const; + marker_type marker(BufferView const *) const; /// If the macro is in normal edit mode, dissolve its contents in /// the row. Otherwise, just insert the inset. bool addToMathRow(MathRow &, MetricsInfo & mi) const; /// - void draw(PainterInfo & pi, int x, int y) const; - /// draw selection background - void drawSelection(PainterInfo & pi, int x, int y) const; + void beforeMetrics() const; + /// + void afterMetrics() const; + /// + void beforeDraw(PainterInfo const &) const; + /// + void afterDraw(PainterInfo const &) const; + /// void metrics(MetricsInfo & mi, Dimension & dim) const; /// was the macro in edit mode when computing metrics? bool editMetrics(BufferView const * bv) const; /// + void draw(PainterInfo & pi, int x, int y) const; + /// draw selection background + void drawSelection(PainterInfo & pi, int x, int y) const; + /// int kerning(BufferView const * bv) const; /// get cursor position void cursorPos(BufferView const & bv, CursorSlice const & sl,