]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloat.h
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insetfloat.h
index 622adbaaef45b91c08894082b91a16a7af317465..34f633c38a3061fa7a1dd418a47e27f53bacea16 100644 (file)
 #define INSETFLOAT_H
 
 #include "insetcollapsable.h"
-#include "toc.h"
+#include "mailinset.h"
+
+
+namespace lyx {
 
 
 class InsetFloatParams {
@@ -54,13 +57,18 @@ public:
        ///
        InsetBase::Code lyxCode() const { return InsetBase::FLOAT_CODE; }
        ///
-       int latex(Buffer const &, std::ostream &,
-                 OutputParams const &) const;
+       virtual bool wide() const { return false; }
+       ///
+       int latex(Buffer const &, odocstream &,
+                 OutputParams const &) const;
+       ///
+       int plaintext(Buffer const &, odocstream &,
+                     OutputParams const &) const;
        ///
-       int docbook(Buffer const &, std::ostream &,
-                   OutputParams const &) const;
+       int docbook(Buffer const &, odocstream &,
+                   OutputParams const &) const;
        ///
-       std::string const editMessage() const;
+       virtual docstring const editMessage() const;
        ///
        bool insetAllowed(InsetBase::Code) const;
        /** returns true if, when outputing LaTeX, font changes should
@@ -72,7 +80,7 @@ public:
        ///
        void sideways(bool s, BufferParams const &);
        ///
-       void addToToc(lyx::toc::TocList &, Buffer const &) const;
+       void addToToc(TocList &, Buffer const &) const;
        ///
        bool  showInsetDialog(BufferView *) const;
        ///
@@ -89,9 +97,6 @@ private:
 };
 
 
-#include "mailinset.h"
-
-
 class InsetFloatMailer : public MailInset {
 public:
        ///
@@ -113,4 +118,7 @@ private:
        InsetFloat & inset_;
 };
 
+
+} // namespace lyx
+
 #endif