]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloat.h
use more specific smart_ptr headers
[lyx.git] / src / insets / insetfloat.h
index ee0396d6fbe3244d8ef3689c623ba51d69129cba..523352f8c1f9d533d4f667d37b8f29cb13fc02e6 100644 (file)
@@ -1,7 +1,7 @@
 // -*- C++ -*-
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
  *
  *           Copyright 1998 The LyX Team.
 #endif
 
 #include "insetcollapsable.h"
+#include <sigc++/signal_system.h>
 
 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 +39,17 @@ 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 &) 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;
        ///
        string const & type() const;
        ///
@@ -57,6 +60,10 @@ public:
        void wide(bool w);
        ///
        bool wide() const;
+       ///
+       bool  showInsetDialog(BufferView *) const;
+       ///
+       SigC::Signal0<void> hideDialog;
 private:
        ///
        string floatType_;