X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetminipage.h;h=e46de56167fbc2263ae4946be2709e6f69e2b040;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=11139b4d0006cf8280ab90eae163e808df30c212;hpb=85a5ea7bfc80e179a61a99f2955455e84d3384cc;p=lyx.git diff --git a/src/insets/insetminipage.h b/src/insets/insetminipage.h index 11139b4d00..e46de56167 100644 --- a/src/insets/insetminipage.h +++ b/src/insets/insetminipage.h @@ -17,7 +17,7 @@ #endif #include "insetcollapsable.h" -#include "vspace.h" +#include "lyxlength.h" #include /** 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 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