]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloat.h
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / insetfloat.h
index 960ed603f2fa1f9f2c1fb7709e588b98913b6bc1..42288867165ea0d8c375c0be49d8714023439b36 100644 (file)
@@ -17,6 +17,7 @@
 #endif
 
 #include "insetcollapsable.h"
+#include <sigc++/signal_system.h>
 
 class Painter;
 
@@ -26,37 +27,50 @@ class Painter;
 class InsetFloat : public InsetCollapsable {
 public:
        ///
-       explicit
-       InsetFloat();
+       InsetFloat(string const &);
        ///
-       ~InsetFloat() {}
+       InsetFloat(InsetFloat const &, bool same_id = false);
        ///
-       void Write(Buffer const * buf, ostream & os) const;
+       ~InsetFloat();
        ///
-       void Read(Buffer const * buf, LyXLex & lex);
+       void write(Buffer const * buf, std::ostream & os) const;
        ///
-       void Validate(LaTeXFeatures & features) const;
+       void read(Buffer const * buf, LyXLex & lex);
        ///
-       Inset * Clone() const;
+       void validate(LaTeXFeatures & features) const;
        ///
-       Inset::Code LyxCode() const { return Inset::FLOAT_CODE; }
+       Inset * clone(Buffer const &, bool same_id = false) const;
        ///
-       int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+       Inset::Code lyxCode() const { return Inset::FLOAT_CODE; }
        ///
-       const char * EditMessage() const;
+       int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
        ///
-       bool InsertInset(BufferView *, Inset * inset);
+       int docbook(Buffer const *, std::ostream &) const;
        ///
-       bool InsertInsetAllowed(Inset * inset) const;
+       string const editMessage() const;
        ///
-       LyXFont GetDrawFont(BufferView *, LyXParagraph * par, int pos) const;
+       bool insetAllowed(Inset::Code) const;
        ///
-       void InsetButtonRelease(BufferView * bv, int x, int y, int button);
+       string const & type() const;
+       ///
+       void placement(string const & p);
+       ///
+       string const & placement() const;
+       ///
+       void wide(bool w);
+       ///
+       bool wide() const;
+       ///
+       bool  showInsetDialog(BufferView *) const;
+       ///
+       SigC::Signal0<void> hideDialog;
 private:
        ///
-       string floatType;
+       string floatType_;
+       ///
+       string floatPlacement_;
        ///
-       string floatPlacement;
+       bool wide_;
 };
 
 #endif