]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetert.h
reformatting and remove using delc
[lyx.git] / src / insets / insetert.h
index 162fe8924feee8cbf86e52a4fc383e4806bc3054..d50f1e244f97879c38245f11278aaf31285aba8c 100644 (file)
 #pragma interface
 #endif
 
-#include "insettext.h"
-
-class Painter;
+#include "insetcollapsable.h"
 
 /** A colapsable text inset
   
   To write full ert (including styles and other insets) in a given
   space. 
 */
-class InsetERT : public InsetText {
+class InsetERT : public InsetCollapsable {
 public:
-    ///
-    InsetERT(Buffer *);
-    ///
-    //     InsetERT(InsetERT const &, Buffer *);
-    ///
-    ~InsetERT() {}
-    ///
-    Inset * Clone() const;
-    ///
-    //    void Read(LyXLex &);
-    ///
-    void Write(ostream &) const;
-    ///
-    int ascent(Painter &, LyXFont const &) const;
-    ///
-    int descent(Painter &, LyXFont const &) const;
-    ///
-    int width(Painter &, LyXFont const & f) const;
-    ///
-    void draw(Painter & pain, const LyXFont &, int , float &) const;
-    ///
-    //LString EditMessage() const;
-    ///
-    void InsetButtonRelease(BufferView *, int, int, int);
-    ///
-    void InsetButtonPress(BufferView *, int, int, int);
-    ///
-    void InsetMotionNotify(BufferView *, int, int, int);
-    ///
-    void Edit(BufferView *, int, int, unsigned int);
-    ///
-    void InsetUnlock(BufferView *);
-    ///
-    bool InsertInset(Inset *);
-    ///
-    void SetFont(LyXFont const &, bool toggleall);
-
-protected:
-    ///
-    int ascent_closed(Painter &, LyXFont const &) const;
-    ///
-    int descent_closed(Painter &, LyXFont const &) const;
-    ///
-    int width_closed(Painter &, LyXFont const & f) const;
-    ///
-    void draw_closed(Painter & pain, LyXFont const &, int , float &) const;
-
-private:
        ///
-       bool closed;
+       InsetERT();
+       ///
+       void Write(Buffer const * buf, std::ostream & os) const;
+       ///
+       Inset * Clone(Buffer const &) const;
+       ///
+       string const EditMessage() const;
+       ///
+       bool InsertInset(BufferView *, Inset *) { return false; }
+       ///
+       void SetFont(BufferView *, LyXFont const &, bool toggleall = false);
        ///
-       bool nomotion;
+       void Edit(BufferView *, int, int, unsigned int);
 };
 
 #endif