]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetminipage.h
The BIG UNDO patch. Recodes undo handling for better use inside InsetText.
[lyx.git] / src / insets / insetminipage.h
index 14333f96fa9804c5afa786665f7490e1d13b2bd1..fb6a72220d069556b786a483e8059ffa4cfc6559 100644 (file)
@@ -43,23 +43,23 @@ public:
        ///
        ~InsetMinipage();
        ///
-       void Write(Buffer const * buf, std::ostream & os) const;
+       void write(Buffer const * buf, std::ostream & os) const;
        ///
-       void Read(Buffer const * buf, LyXLex & lex);
+       void read(Buffer const * buf, LyXLex & lex);
        ///
-       Inset * Clone(Buffer const &) const;
+       virtual Inset * clone(Buffer const &, bool same_id = false) const;
        ///
        int ascent(BufferView *, LyXFont const &) const;
        ///
        int descent(BufferView *, LyXFont const &) const;
        ///
-       Inset::Code LyxCode() const { return Inset::MINIPAGE_CODE; }
+       Inset::Code lyxCode() const { return Inset::MINIPAGE_CODE; }
        ///
-       int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+       int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
        ///
-       string const EditMessage() const;
+       string const editMessage() const;
        ///
-       bool InsertInsetAllowed(Inset * inset) const;
+       bool insertInsetAllowed(Inset * inset) const;
        ///
        Position pos() const;
        ///
@@ -77,19 +77,15 @@ public:
        ///
        void width(string const &);
        ///
-       int widthp() const;
-       ///
-       void widthp(int);
-       ///
-       void widthp(string const &);
-       ///
        SigC::Signal0<void> hideDialog;
        ///
-       void InsetButtonRelease(BufferView * bv, int x, int y, int button);
+       void insetButtonRelease(BufferView * bv, int x, int y, int button);
        ///
-       int getMaxWidth(Painter &, UpdatableInset const *) const;
+       int getMaxWidth(BufferView *, UpdatableInset const *) const;
        ///
        bool needFullRow() const { return false; }
+       ///
+       bool showInsetDialog(BufferView *) const;
 private:
        ///
        Position pos_;
@@ -99,8 +95,6 @@ private:
        string height_;
        ///
        string width_;
-       ///
-       int widthp_;
 };
 
 #endif