]> git.lyx.org Git - features.git/blobdiff - src/insets/lyxinset.h
read the Changelog
[features.git] / src / insets / lyxinset.h
index 4d531757ab171d70e395776c799b2dd5dfc4e2ea..ba66d0f74b6e3ad507f4e592fb656ced5dbaf4a8 100644 (file)
@@ -31,7 +31,6 @@ class LyXText;
 struct LaTeXFeatures;
 
 
-
 /// Insets
 class Inset {
 public:
@@ -102,8 +101,6 @@ public:
                ///
                EXTERNAL_CODE,
                ///
-               CITATION_CODE,
-               ///
                THEOREM_CODE
        };
 
@@ -130,7 +127,7 @@ public:
        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);
@@ -210,6 +207,12 @@ public:
        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:
        ///
@@ -336,11 +339,6 @@ public:
        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:
        ///