]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloatlist.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetfloatlist.h
index 197b2dc18285b1ff20f21d9289e91d8233d39f43..0808119bf67623375ab6bdb3b028fdeba8bdba5f 100644 (file)
@@ -15,6 +15,9 @@
 
 #include "insetcommand.h"
 
+
+namespace lyx {
+
 /** Used to insert table of contents
  */
 class InsetFloatList : public InsetCommand {
@@ -24,15 +27,11 @@ public:
        ///
        InsetFloatList(std::string const & type);
        ///
-       virtual std::auto_ptr<InsetBase> clone() const {
-               return std::auto_ptr<InsetBase>(new InsetFloatList(getCmdName()));
-       }
-       ///
-       std::string const getScreenLabel(Buffer const &) const;
+       docstring const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetOld::Code lyxCode() const;
+       InsetBase::Code lyxCode() const;
        ///
        bool display() const { return true; }
        ///
@@ -40,19 +39,24 @@ public:
        ///
        void read(Buffer const &, LyXLex &);
        ///
-       int latex(Buffer const &, std::ostream &,
+       int latex(Buffer const &, odocstream &,
                  OutputParams const &) const;
        ///
-       int linuxdoc(Buffer const &, std::ostream &,
-                    OutputParams const &) const { return 0; }
-       ///
-       int docbook(Buffer const &, std::ostream &,
+       int docbook(Buffer const &, odocstream &,
                    OutputParams const &) const { return 0; }
        ///
-       int plaintext(Buffer const &, std::ostream &,
+       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(to_ascii(getParam("type"))));
+       }
 };
 
+
+} // namespace lyx
+
 #endif