]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloat.h
fix #832
[lyx.git] / src / insets / insetfloat.h
index 944f59e2fabbb76b399545b6d109b9659bb820d4..568dfa12895c8a07fcbf457dd26e24ed934a994b 100644 (file)
@@ -10,9 +10,8 @@
  * Full author contact details are available in file CREDITS
  */
 
-#ifndef InsetFloat_H
-#define InsetFloat_H
-
+#ifndef INSETFLOAT_H
+#define INSETFLOAT_H
 
 #include "insetcollapsable.h"
 #include "toc.h"
@@ -20,7 +19,7 @@
 
 struct InsetFloatParams {
        ///
-       InsetFloatParams() : placement("htbp"), wide(false) {}
+       InsetFloatParams() : wide(false) {}
        ///
        void write(std::ostream & os) const;
        ///
@@ -70,16 +69,8 @@ public:
            insets that may contain several paragraphs */
        bool noFontChange() const { return true; }
        ///
-       string const & type() const;
-       ///
-       void placement(string const & p);
-       ///
-       string const & placement() const;
-       ///
        void wide(bool w, BufferParams const &);
        ///
-       bool wide() const;
-       ///
        void addToToc(toc::TocList &, Buffer const *) const;
        ///
        bool  showInsetDialog(BufferView *) const;
@@ -100,7 +91,7 @@ public:
        ///
        InsetFloatMailer(InsetFloat & inset);
        ///
-       virtual Inset & inset() const { return inset_; }
+       virtual InsetBase & inset() const { return inset_; }
        ///
        virtual string const & name() const { return name_; }
        ///
@@ -108,11 +99,10 @@ public:
        ///
        static void string2params(string const &, InsetFloatParams &);
        ///
-       static string const params2string(string const & name,
-                                         InsetFloatParams const &);
+       static string const params2string(InsetFloatParams const &);
 private:
        ///
-       string const name_;
+       static string const name_;
        ///
        InsetFloat & inset_;
 };