]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetert.h
Rename LatexRunParams::fragile as moving_arg.
[lyx.git] / src / insets / insetert.h
index 4d874eaf7b28b4473b8e40c67d784c948f69def4..8a9d2a98a2c52adc2635bda3bebb1f0aef8af28f 100644 (file)
@@ -57,19 +57,15 @@ 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,
-                 bool free_spc) const;
+       int latex(Buffer const *, std::ostream &,
+                 LatexRunParams const &) const;
        ///
        int ascii(Buffer const *,
                          std::ostream &, int linelen = 0) const;
@@ -103,13 +99,9 @@ public:
        WordLangTuple const
        selectNextWordToSpellcheck(BufferView *, float &) const;
        ///
-       int ascent(BufferView *, LyXFont const &) const;
-       ///
-       int descent(BufferView *, LyXFont const &) const;
-       ///
-       int width(BufferView *, LyXFont const &) const;
+       void dimension(BufferView *, LyXFont const &, Dimension &) 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 +115,7 @@ public:
        ///
        int getMaxWidth(BufferView *, UpdatableInset const *) const;
        ///
-       void update(BufferView *, LyXFont const &, bool =false);
+       void update(BufferView *, bool =false);
 
 private:
        ///
@@ -159,7 +151,7 @@ public:
        ///
        InsetERTMailer(InsetERT & inset);
        ///
-       virtual Inset & inset() const { return inset_; }
+       virtual InsetBase & inset() const { return inset_; }
        ///
        virtual string const & name() const { return name_; }
        ///
@@ -167,11 +159,10 @@ public:
        ///
        static void string2params(string const &, InsetERT::ERTStatus &);
        ///
-       static string const params2string(string const & name,
-                                         InsetERT::ERTStatus);
+       static string const params2string(InsetERT::ERTStatus);
 private:
        ///
-       string const name_;
+       static string const name_;
        ///
        InsetERT & inset_;
 };