#define INSETWRAP_H
#include "InsetCollapsable.h"
-#include "lyxlength.h"
+#include "Length.h"
#include "MailInset.h"
///
void write(std::ostream &) const;
///
- void read(LyXLex &);
+ void read(Lexer &);
///
std::string type;
///
std::string placement;
///
- LyXLength width;
+ Length width;
};
///
void write(Buffer const & buf, std::ostream & os) const;
///
- void read(Buffer const & buf, LyXLex & lex);
+ void read(Buffer const & buf, Lexer & lex);
///
void validate(LaTeXFeatures & features) const;
///
- InsetBase::Code lyxCode() const { return InsetBase::WRAP_CODE; }
+ Inset::Code lyxCode() const { return Inset::WRAP_CODE; }
///
int latex(Buffer const &, odocstream &,
OutputParams const &) const;
///
virtual docstring const editMessage() const;
///
- bool insetAllowed(InsetBase::Code) const;
+ bool insetAllowed(Inset::Code) const;
///
void addToToc(TocList &, Buffer const &) const;
///
///
InsetWrapParams const & params() const { return params_; }
///
- bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
protected:
///
- virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
+ virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
+ ///
+ virtual docstring name() const { return name_; }
private:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ virtual std::auto_ptr<Inset> doClone() const;
///
InsetWrapParams params_;
+ ///
+ docstring name_;
};
///
InsetWrapMailer(InsetWrap & inset);
///
- virtual InsetBase & inset() const { return inset_; }
+ virtual Inset & inset() const { return inset_; }
///
virtual std::string const & name() const { return name_; }
///