]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloatlist.h
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insetfloatlist.h
index 0ab9ce4187f3995ec0552fab2e1d023d9f8f69c0..7d9a2360405147703cf3de1a3ab249033ca7f249 100644 (file)
@@ -15,6 +15,9 @@
 
 #include "insetcommand.h"
 
+
+namespace lyx {
+
 /** Used to insert table of contents
  */
 class InsetFloatList : public InsetCommand {
@@ -24,7 +27,7 @@ public:
        ///
        InsetFloatList(std::string const & type);
        ///
-       lyx::docstring const getScreenLabel(Buffer const &) const;
+       docstring const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
@@ -36,21 +39,24 @@ public:
        ///
        void read(Buffer const &, LyXLex &);
        ///
-       int latex(Buffer const &, lyx::odocstream &,
-                 OutputParams const &) const;
+       int latex(Buffer const &, odocstream &,
+                 OutputParams const &) const;
        ///
-       int docbook(Buffer const &, lyx::odocstream &,
-                   OutputParams const &) const { return 0; }
+       int docbook(Buffer const &, odocstream &,
+                   OutputParams const &) const { return 0; }
        ///
-       int plaintext(Buffer const &, lyx::odocstream &,
-                 OutputParams const & runparams) const;
+       int plaintext(Buffer const &, odocstream &,
+                     OutputParams const & runparams) const;
        ///
        void validate(LaTeXFeatures & features) const;
 private:
        virtual std::auto_ptr<InsetBase> doClone() const
        {
-               return std::auto_ptr<InsetBase>(new InsetFloatList(getCmdName()));
+               return std::auto_ptr<InsetBase>(new InsetFloatList(to_ascii(getParam("type"))));
        }
 };
 
+
+} // namespace lyx
+
 #endif