X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetminipage.h;h=e46de56167fbc2263ae4946be2709e6f69e2b040;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=54f9d23d0c981bdba2227086d8ba38a700913f6c;hpb=3de10d0174eb3859b0080026fbf39e9467da8b26;p=lyx.git diff --git a/src/insets/insetminipage.h b/src/insets/insetminipage.h index 54f9d23d0c..e46de56167 100644 --- a/src/insets/insetminipage.h +++ b/src/insets/insetminipage.h @@ -4,9 +4,9 @@ * * LyX, The Document Processor * - * Copyright 1998 The LyX Team. + * Copyright 2001 The LyX Team. * - *====================================================== + * ====================================================== */ #ifndef InsetMinipage_H @@ -17,7 +17,7 @@ #endif #include "insetcollapsable.h" -#include "vspace.h" +#include "lyxlength.h" #include /** The minipage inset @@ -41,19 +41,27 @@ public: /// InsetMinipage(); /// + InsetMinipage(InsetMinipage const &, bool same_id = false); + /// ~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); + /// + Inset * clone(Buffer const &, bool same_id = false) const; /// - Inset * Clone(Buffer const &) const; + int ascent(BufferView *, LyXFont const &) const; /// - Inset::Code LyxCode() const { return Inset::MINIPAGE_CODE; } + int descent(BufferView *, LyXFont const &) const; /// - int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const; + Inset::Code lyxCode() const { return Inset::MINIPAGE_CODE; } /// - string const EditMessage() const; + int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const; /// - bool InsertInsetAllowed(Inset * inset) const; + string const editMessage() const; + /// + bool insetAllowed(Inset::Code) const; /// Position pos() const; /// @@ -63,23 +71,23 @@ public: /// void innerPos(InnerPosition); /// - LyXLength const & height() const; + LyXLength const & pageHeight() const; /// - void height(LyXLength const &); + void pageHeight(LyXLength const &); /// - string const & width() const; + LyXLength const & pageWidth() const; /// - void width(string const &); + void pageWidth(LyXLength const &); /// - int widthp() const; + SigC::Signal0 hideDialog; /// - void widthp(int); + int getMaxWidth(BufferView *, UpdatableInset const *) const; /// - void widthp(string const &); + bool needFullRow() const { return false; } /// - SigC::Signal0 hideDialog; + bool showInsetDialog(BufferView *) const; /// - void InsetButtonRelease(BufferView * bv, int x, int y, int button); + int latexTextWidth(BufferView *) const; private: /// @@ -89,9 +97,7 @@ private: /// LyXLength height_; /// - string width_; - /// - int widthp_; + LyXLength width_; }; #endif