]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloat.h
Make it compile when USE_BOOST_FORMAT is unset
[lyx.git] / src / insets / insetfloat.h
index ee0396d6fbe3244d8ef3689c623ba51d69129cba..fd0ddea0c80c6066d2fd2f637175e5dcbfd23802 100644 (file)
@@ -1,12 +1,13 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
- * 
- *           LyX, The Document Processor
+/**
+ * \file insetfloat.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           Copyright 1998 The LyX Team.
+ * \author Jürgen Vigna
+ * \author Lars Gullik Bjønnes
  *
- * ======================================================
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef InsetFloat_H
 #endif
 
 #include "insetcollapsable.h"
+#include "toc.h"
+
+#include <boost/signals/signal0.hpp>
 
 class Painter;
 
 /** The float inset
-  
+
 */
 class InsetFloat : public InsetCollapsable {
 public:
        ///
-       InsetFloat(string const &);
+       InsetFloat(BufferParams const &, string const &);
+       ///
+       InsetFloat(InsetFloat const &, bool same_id = false);
+       ///
+       ~InsetFloat();
        ///
        void write(Buffer const * buf, std::ostream & os) const;
        ///
@@ -34,19 +42,21 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
        ///
-       Inset * clone(Buffer const &) const;
+       Inset * clone(Buffer const &, bool same_id = false) const;
        ///
        Inset::Code lyxCode() const { return Inset::FLOAT_CODE; }
        ///
        int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
        ///
-       int docBook(Buffer const *, std::ostream &) const;
+       int docbook(Buffer const *, std::ostream &, bool mixcont) const;
        ///
        string const editMessage() const;
        ///
-       bool insertInsetAllowed(Inset * inset) const;
-       ///
-       void insetButtonRelease(BufferView * bv, int x, int y, int button);
+       bool insetAllowed(Inset::Code) const;
+       /** returns true if, when outputing LaTeX, font changes should
+            be closed before generating this inset. This is needed for
+            insets that may contain several paragraphs */
+       bool noFontChange() const { return true; }
        ///
        string const & type() const;
        ///
@@ -54,9 +64,15 @@ public:
        ///
        string const & placement() const;
        ///
-       void wide(bool w);
+       void wide(bool w, BufferParams const &);
        ///
        bool wide() const;
+       ///
+       void addToToc(toc::TocList &, Buffer const *) const;
+       ///
+       bool  showInsetDialog(BufferView *) const;
+       ///
+       boost::signal0<void> hideDialog;
 private:
        ///
        string floatType_;