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 Inset * Clone(Buffer const &) const;
50 Inset::Code LyxCode() const { return Inset::MINIPAGE_CODE; }
52 int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
54 string const EditMessage() const;
56 bool InsertInsetAllowed(Inset * inset) const;
62 InnerPosition innerPos() const;
64 void innerPos(InnerPosition);
66 LyXLength const & height() const;
68 void height(LyXLength const &);
70 string const & width() const;
72 void width(string const &);
78 void widthp(string const &);
80 SigC::Signal0<void> hideDialog;
82 void InsetButtonRelease(BufferView * bv, int x, int y, int button);
88 InnerPosition inner_pos_;