]> 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 af8ed7bfa3ae263d96dd363b761372e6132a6343..0808119bf67623375ab6bdb3b028fdeba8bdba5f 100644 (file)
@@ -1,23 +1,23 @@
 // -*- C++ -*-
-/* This file is part of*
- * ======================================================
+/**
+ * \file insetfloatlist.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Word Processor
+ * \author Lars Gullik Bjønnes
  *
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1996-2001 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS.
+ */
 
 #ifndef INSET_FLOATLIST_H
 #define INSET_FLOATLIST_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include "insetcommand.h"
 
+
+namespace lyx {
+
 /** Used to insert table of contents
  */
 class InsetFloatList : public InsetCommand {
@@ -25,37 +25,38 @@ public:
        ///
        InsetFloatList();
        ///
-       InsetFloatList(string const & type);
-       ///
-       Inset * clone(Buffer const &, bool = false) const {
-               return new InsetFloatList(getCmdName());
-       }
-       ///
-       string const getScreenLabel(Buffer const *) const;
+       InsetFloatList(std::string const & type);
        ///
-       void edit(BufferView * bv, int, int, mouse_button::state);
-       ///
-       void edit(BufferView * bv, bool front = true);
+       docstring const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       bool display() const { return true; }
-       ///
-       Inset::Code lyxCode() const;
+       InsetBase::Code lyxCode() const;
        ///
-       void write(Buffer const *, std::ostream &) const;
+       bool display() const { return true; }
        ///
-       void read(Buffer const *, LyXLex &);
+       void write(Buffer const &, std::ostream &) const;
        ///
-       int latex(Buffer const *, std::ostream &, bool, bool) const;
+       void read(Buffer const &, LyXLex &);
        ///
-       int linuxdoc(Buffer const *, std::ostream &) const { return 0; }
+       int latex(Buffer const &, odocstream &,
+                 OutputParams const &) const;
        ///
-       int docbook(Buffer const *, std::ostream &, bool) const { return 0; }
+       int docbook(Buffer const &, odocstream &,
+                   OutputParams const &) const { return 0; }
        ///
-       int ascii(Buffer const *, std::ostream &, int linelen) 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(to_ascii(getParam("type"))));
+       }
 };
 
+
+} // namespace lyx
+
 #endif