X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetwrap.h;h=bcf337d7a086d63f509008af942768785f6ee056;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=bfd3f59c01bd639403f21f9f9e68e4f496b3e5a7;hpb=5198e1d9a383d60f915092f17661f98f59998ed0;p=lyx.git diff --git a/src/insets/insetwrap.h b/src/insets/insetwrap.h index bfd3f59c01..bcf337d7a0 100644 --- a/src/insets/insetwrap.h +++ b/src/insets/insetwrap.h @@ -13,11 +13,15 @@ #define INSETWRAP_H #include "insetcollapsable.h" -#include "toc.h" #include "lyxlength.h" +#include "mailinset.h" + +namespace lyx { -struct InsetWrapParams { + +class InsetWrapParams { +public: /// void write(std::ostream &) const; /// @@ -47,38 +51,36 @@ public: /// void validate(LaTeXFeatures & features) const; /// - virtual std::auto_ptr clone() const; + InsetBase::Code lyxCode() const { return InsetBase::WRAP_CODE; } /// - InsetOld::Code lyxCode() const { return InsetOld::WRAP_CODE; } - /// - int latex(Buffer const &, std::ostream &, + int latex(Buffer const &, odocstream &, OutputParams const &) const; /// - int docbook(Buffer const &, std::ostream &, + int docbook(Buffer const &, odocstream &, OutputParams const &) const; /// - std::string const editMessage() const; + virtual docstring const editMessage() const; /// - bool insetAllowed(InsetOld::Code) const; + bool insetAllowed(InsetBase::Code) const; /// - void addToToc(lyx::toc::TocList &, Buffer const &) const; + void addToToc(TocList &, Buffer const &) const; /// bool showInsetDialog(BufferView *) const; /// InsetWrapParams const & params() const { return params_; } + /// + bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const; protected: /// - virtual void priv_dispatch(LCursor & cur, FuncRequest & cmd); + virtual void doDispatch(LCursor & cur, FuncRequest & cmd); private: + virtual std::auto_ptr doClone() const; + /// InsetWrapParams params_; }; - -#include "mailinset.h" - - class InsetWrapMailer : public MailInset { public: /// @@ -100,4 +102,7 @@ private: InsetWrap & inset_; }; + +} // namespace lyx + #endif