2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1998 The LyX Team.
9 *======================================================
12 #ifndef InsetMinipage_H
13 #define InsetMinipage_H
19 #include "insetcollapsable.h"
21 #include <sigc++/signal_system.h>
23 /** The minipage inset
26 class InsetMinipage : public InsetCollapsable {
46 void Write(Buffer const * buf, std::ostream & os) const;
48 void Read(Buffer const * buf, LyXLex & lex);
50 Inset * Clone(Buffer const &) const;
52 Inset::Code LyxCode() const { return Inset::MINIPAGE_CODE; }
54 int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
56 string const EditMessage() const;
58 bool InsertInsetAllowed(Inset * inset) const;
64 InnerPosition innerPos() const;
66 void innerPos(InnerPosition);
68 LyXLength const & height() const;
70 void height(LyXLength const &);
72 string const & width() const;
74 void width(string const &);
80 void widthp(string const &);
82 SigC::Signal0<void> hideDialog;
84 void InsetButtonRelease(BufferView * bv, int x, int y, int button);
90 InnerPosition inner_pos_;