]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetwrap.h
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insetwrap.h
index eaea6bce3a3ed46eb35d354df799b8ae3032e924..3a6f8b3b8d445a85c8cfdba2513435a0fdd2936f 100644 (file)
 #define INSETWRAP_H
 
 #include "insetcollapsable.h"
-#include "toc.h"
 #include "lyxlength.h"
+#include "mailinset.h"
+
+
+namespace lyx {
 
 
 class InsetWrapParams {
@@ -50,21 +53,26 @@ public:
        ///
        InsetBase::Code lyxCode() const { return InsetBase::WRAP_CODE; }
        ///
-       int latex(Buffer const &, std::ostream &,
-                 OutputParams const &) const;
+       int latex(Buffer const &, odocstream &,
+                 OutputParams const &) const;
        ///
-       int docbook(Buffer const &, std::ostream &,
-                   OutputParams const &) const;
+       int plaintext(Buffer const &, odocstream &,
+                     OutputParams const &) const;
        ///
-       std::string const editMessage() const;
+       int docbook(Buffer const &, odocstream &,
+                   OutputParams const &) const;
+       ///
+       virtual docstring const editMessage() 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 doDispatch(LCursor & cur, FuncRequest & cmd);
@@ -76,10 +84,6 @@ private:
 };
 
 
-
-#include "mailinset.h"
-
-
 class InsetWrapMailer : public MailInset {
 public:
        ///
@@ -101,4 +105,7 @@ private:
        InsetWrap & inset_;
 };
 
+
+} // namespace lyx
+
 #endif