struct LaTeXFeatures;
-
/// Insets
class Inset {
public:
///
EXTERNAL_CODE,
///
- CITATION_CODE,
- ///
THEOREM_CODE
};
virtual void draw(BufferView *, LyXFont const &,
int baseline, float & x, bool cleared) const = 0;
/// update the inset representation
- virtual void update(BufferView *, LyXFont const &, bool =false)
+ virtual void update(BufferView *, LyXFont const &, bool = false)
{}
///
virtual LyXFont ConvertFont(LyXFont font);
int x() const { return top_x; }
///
int y() const { return top_baseline; }
+ ///
+ /// because we could have fake text insets and have to call this
+ /// inside them without cast!!!
+ virtual LyXText * getLyXText(BufferView *) const;
+ virtual void deleteLyXText(BufferView *, bool =true) const {}
+ virtual void resizeLyXText(BufferView *) const {}
protected:
///
virtual bool isCursorVisible() const { return cursor_visible; }
///
virtual int getMaxWidth(Painter & pain, UpdatableInset const *) const;
- ///
- /// because we could have fake text insets and have to call this
- /// inside them without cast!!!
- virtual LyXText * getLyXText(BufferView *) const { return 0; }
- virtual void deleteLyXText(BufferView *) {}
protected:
///