NONE = 0,
INIT,
FULL,
- CURSOR_PAR
+ CURSOR_PAR,
+ CURSOR,
+ SELECTION
};
///
explicit
///
int width(Painter &, LyXFont const & f) const;
///
- void draw(BufferView *, LyXFont const &, int , float &) const;
+ int textWidth(Painter &) const;
+ ///
+ void draw(BufferView *, LyXFont const &, int , float &, bool) const;
///
void update(BufferView *, LyXFont const &, bool =false);
///
int cpos(BufferView *) const;
LyXParagraph * cpar(BufferView *) const;
Row * crow(BufferView *) const;
+
+ /// This instead of a macro
+ LyXText * TEXT(BufferView * bv) const {
+ return getLyXText(bv);
+ }
/* Private structures and variables */
///
- bool locked;
+ mutable bool locked;
///
int insetAscent;
int insetDescent;
int insetWidth;
+ mutable int last_width;
+ mutable int last_height;
+ mutable int top_y;
///
int inset_pos;
///