* Full author contact details are available in file CREDITS.
*/
-#ifndef InsetWrap_H
-#define InsetWrap_H
-
+#ifndef INSETWRAP_H
+#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;
///
///
void validate(LaTeXFeatures & features) const;
///
- virtual std::auto_ptr<InsetBase> clone() const;
- ///
- InsetOld::Code lyxCode() const { return InsetOld::WRAP_CODE; }
+ InsetBase::Code lyxCode() const { return InsetBase::WRAP_CODE; }
///
- int latex(Buffer const &, std::ostream &,
- LatexRunParams const &) const;
+ int latex(Buffer const &, odocstream &,
+ OutputParams const &) const;
///
- int docbook(Buffer const &, std::ostream &,
- LatexRunParams const &) const;
+ 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;
- ///
- int latexTextWidth(BufferView *) const;
+ bool showInsetDialog(BufferView *) const;
///
InsetWrapParams const & params() const { return params_; }
+ ///
+ bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
protected:
///
- virtual
- DispatchResult
- priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &);
+ virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
private:
+ virtual std::auto_ptr<InsetBase> doClone() const;
+
///
InsetWrapParams params_;
};
-
-#include "mailinset.h"
-
-
class InsetWrapMailer : public MailInset {
public:
///
InsetWrap & inset_;
};
+
+} // namespace lyx
+
#endif