// -*- C++ -*-
/* This file is part of
* ======================================================
- *
+ *
* LyX, The Document Processor
*
* Copyright 2001 The LyX Team.
#endif
#include "insetcollapsable.h"
-#include "vspace.h"
+#include "lyxlength.h"
#include <sigc++/signal_system.h>
/** The minipage inset
-
+
*/
class InsetMinipage : public InsetCollapsable {
public:
inner_stretch
};
///
- InsetMinipage();
+ InsetMinipage(BufferParams const &);
+ ///
+ 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);
+ void read(Buffer const * buf, LyXLex & lex);
///
- Inset * Clone(Buffer const &) const;
+ Inset * clone(Buffer const &, bool same_id = false) const;
///
int ascent(BufferView *, LyXFont 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;
///
///
void innerPos(InnerPosition);
///
- string const & height() const;
- ///
- void height(string const &);
- ///
- string const & width() const;
- ///
- void width(string const &);
+ LyXLength const & pageHeight() const;
///
- int widthp() const;
+ void pageHeight(LyXLength const &);
///
- void widthp(int);
+ LyXLength const & pageWidth() const;
///
- void widthp(string const &);
+ void pageWidth(LyXLength const &);
///
SigC::Signal0<void> hideDialog;
///
- void InsetButtonRelease(BufferView * bv, int x, int y, int button);
- ///
- int getMaxWidth(Painter &, UpdatableInset const *) const;
+ 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_;
- ///
- string width_;
+ LyXLength height_;
///
- int widthp_;
+ LyXLength width_;
};
#endif