]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetminipage.h
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / insetminipage.h
index 11139b4d0006cf8280ab90eae163e808df30c212..e46de56167fbc2263ae4946be2709e6f69e2b040 100644 (file)
@@ -17,7 +17,7 @@
 #endif
 
 #include "insetcollapsable.h"
-#include "vspace.h"
+#include "lyxlength.h"
 #include <sigc++/signal_system.h>
 
 /** The minipage inset
@@ -41,13 +41,15 @@ public:
        ///
        InsetMinipage();
        ///
+       InsetMinipage(InsetMinipage const &, bool same_id = false);
+       ///
        ~InsetMinipage();
        ///
        void write(Buffer const * buf, std::ostream & os) const;
        ///
        void read(Buffer const * buf, LyXLex & lex);
        ///
-       virtual Inset * clone(Buffer const &) const;
+       Inset * clone(Buffer const &, bool same_id = false) const;
        ///
        int ascent(BufferView *, LyXFont const &) const;
        ///
@@ -59,7 +61,7 @@ public:
        ///
        string const editMessage() const;
        ///
-       bool insertInsetAllowed(Inset * inset) const;
+       bool insetAllowed(Inset::Code) const;
        ///
        Position pos() const;
        ///
@@ -69,32 +71,33 @@ public:
        ///
        void innerPos(InnerPosition);
        ///
-       string const & height() const;
+       LyXLength const & pageHeight() const;
        ///
-       void height(string const &);
+       void pageHeight(LyXLength const &);
        ///
-       string const & width() const;
+       LyXLength const & pageWidth() const;
        ///
-       void width(string const &);
+       void pageWidth(LyXLength const &);
        ///
        SigC::Signal0<void> hideDialog;
        ///
-       void insetButtonRelease(BufferView * bv, int x, int y, int button);
-       ///
        int getMaxWidth(BufferView *, UpdatableInset const *) const;
        ///
        bool needFullRow() const { return false; }
        ///
        bool showInsetDialog(BufferView *) const;
+       ///
+       int latexTextWidth(BufferView *) const;
+
 private:
        ///
        Position pos_;
        ///
        InnerPosition inner_pos_;
        ///
-       string height_;
+       LyXLength height_;
        ///
-       string width_;
+       LyXLength width_;
 };
 
 #endif