// -*- 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 read(Buffer const * buf, LyXLex & lex);
///
- virtual Inset * clone(Buffer const &, bool same_id = false) const;
+ Inset * clone(Buffer const &, bool same_id = false) const;
///
int ascent(BufferView *, LyXFont const &) const;
///
///
string const editMessage() const;
///
- bool insertInsetAllowed(Inset * inset) const;
- bool insertInsetAllowed(Inset::Code) const;
+ bool insetAllowed(Inset::Code) const;
///
Position pos() const;
///
///
void innerPos(InnerPosition);
///
- string const & height() const;
+ LyXLength const & pageHeight() const;
///
- void height(string const &);
+ void pageHeight(LyXLength const &);
///
- string const & width() const;
+ LyXLength const & pageWidth() const;
///
- void width(string const &);
+ void pageWidth(LyXLength const &);
///
SigC::Signal0<void> hideDialog;
///
- void insetButtonRelease(BufferView * bv, int x, int y, int button);
- ///
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_;
+ LyXLength height_;
///
- string width_;
+ LyXLength width_;
};
#endif