X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetminipage.h;h=e46de56167fbc2263ae4946be2709e6f69e2b040;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=c8a270dd4592b4b5fc22b2f50e350a762c2cae04;hpb=b69166bcc6c95b8de130489ed4206ae34f3b862f;p=lyx.git diff --git a/src/insets/insetminipage.h b/src/insets/insetminipage.h index c8a270dd45..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,8 @@ #endif #include "insetcollapsable.h" -#include "vspace.h" +#include "lyxlength.h" +#include /** The minipage inset @@ -40,17 +41,27 @@ public: /// InsetMinipage(); /// - void Write(Buffer const * buf, std::ostream & os) const; + InsetMinipage(InsetMinipage const &, bool same_id = false); + /// + ~InsetMinipage(); + /// + 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; + /// + int ascent(BufferView *, LyXFont const &) const; /// - Inset * Clone(Buffer 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 insetAllowed(Inset::Code) const; /// Position pos() const; /// @@ -60,13 +71,24 @@ public: /// void innerPos(InnerPosition); /// - LyXLength const & height() const; + LyXLength const & pageHeight() const; /// - void height(LyXLength const &); + void pageHeight(LyXLength const &); /// - LyXLength const & width() const; + LyXLength const & pageWidth() const; /// - void width(LyXLength const &); + void pageWidth(LyXLength const &); + /// + SigC::Signal0 hideDialog; + /// + int getMaxWidth(BufferView *, UpdatableInset const *) const; + /// + bool needFullRow() const { return false; } + /// + bool showInsetDialog(BufferView *) const; + /// + int latexTextWidth(BufferView *) const; + private: /// Position pos_;