#define INSETBOX_H
#include "InsetCollapsable.h"
-#include "lyxlength.h"
+#include "Length.h"
#include "MailInset.h"
///
void write(std::ostream & os) const;
///
- void read(LyXLex & lex);
+ void read(Lexer & lex);
///
std::string type;
/// Use a parbox (true) or minipage (false)
/// columnwidth?
bool inner_box;
///
- LyXLength width;
+ Length width;
/// "special" widths, see usrguide.dvi ยง3.5
std::string special;
///
///
char inner_pos;
///
- LyXLength height;
+ Length height;
///
std::string height_special;
};
///
virtual docstring const editMessage() const;
///
- InsetBase::Code lyxCode() const { return InsetBase::BOX_CODE; }
+ Inset::Code lyxCode() const { return Inset::BOX_CODE; }
///
void write(Buffer const &, std::ostream &) const;
///
- void read(Buffer const & buf, LyXLex & lex);
+ void read(Buffer const & buf, Lexer & lex);
///
void setButtonLabel();
///
/// show the Box dialog
bool showInsetDialog(BufferView * bv) const;
///
- bool display() const { return false; }
+ DisplayType display() const { return Inline; }
///
bool forceDefaultParagraphs(idx_type) const;
///
///
InsetBoxParams const & params() const { return params_; }
///
- bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
///
enum BoxType {
Frameless,
};
protected:
InsetBox(InsetBox const &);
- virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
+ virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
/// Is the width forced to some value?
virtual bool hasFixedWidth() const;
+ ///
+ virtual docstring name() const { return from_ascii("Box"); }
private:
friend class InsetBoxParams;
- virtual std::auto_ptr<InsetBase> doClone() const;
+ virtual Inset * clone() const;
/// used by the constructors
void init();
///
InsetBoxMailer(InsetBox & inset);
///
- virtual InsetBase & inset() const { return inset_; }
+ virtual Inset & inset() const { return inset_; }
///
virtual std::string const & name() const { return name_; }
///