]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetert.h
fix #832
[lyx.git] / src / insets / insetert.h
index 9919ae12496aced93bff3d2e1fb291eb6cb17633..e6cd89a1b7e3b2fba1dd2f22df88005f37ebb58f 100644 (file)
@@ -57,15 +57,11 @@ public:
        ///
        bool insertInset(BufferView *, Inset *);
        ///
-       bool insetAllowed(Inset::Code) const { return false; }
+       bool insetAllowed(Inset::Code code) const { return code == Inset::NEWLINE_CODE; }
        ///
        void setFont(BufferView *, LyXFont const &,
                             bool toggleall = false, bool selectall = false);
        ///
-       void edit(BufferView *, int, int, mouse_button::state);
-       ///
-       void edit(BufferView * bv, bool front = true);
-       ///
        EDITABLE editable() const;
        ///
        int latex(Buffer const *, std::ostream &, bool fragile,
@@ -109,7 +105,7 @@ public:
        ///
        int width(BufferView *, LyXFont const &) const;
        ///
-       void draw(BufferView *, const LyXFont &, int , float &, bool) const;
+       void draw(BufferView *, const LyXFont &, int , float &) const;
        /// set the status of the inset
        void status(BufferView *, ERTStatus const st) const;
        ///
@@ -123,7 +119,7 @@ public:
        ///
        int getMaxWidth(BufferView *, UpdatableInset const *) const;
        ///
-       void update(BufferView *, LyXFont const &, bool =false);
+       void update(BufferView *, bool =false);
 
 private:
        ///
@@ -159,7 +155,7 @@ public:
        ///
        InsetERTMailer(InsetERT & inset);
        ///
-       virtual Inset & inset() const { return inset_; }
+       virtual InsetBase & inset() const { return inset_; }
        ///
        virtual string const & name() const { return name_; }
        ///
@@ -170,10 +166,9 @@ public:
        static string const params2string(InsetERT::ERTStatus);
 private:
        ///
-       string const name_;
+       static string const name_;
        ///
        InsetERT & inset_;
 };
 
-
 #endif