]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettoc.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insettoc.h
index 4107d128a0b76fbd1f403e31b0cab5c7f27ef1c7..73bf1b67d32972a0109c97fc63a5c3f7988e4314 100644 (file)
@@ -1,52 +1,47 @@
 // -*- C++ -*-
-/* This file is part of*
- * ======================================================
+/**
+ * \file insettoc.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Word Processor
- *      
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1996-2001 The LyX Team.
- * 
- * ====================================================== */
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
 
 #ifndef INSET_TOC_H
 #define INSET_TOC_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 #include "insetcommand.h"
 
-/** Used to insert table of contents
- */
+
+namespace lyx {
+
+
+/// Used to insert table of contents and similar lists
 class InsetTOC : public InsetCommand {
 public:
        ///
-       InsetTOC(InsetCommandParams const & p, bool same_id = false)
-                       : InsetCommand(p, same_id) {}
+       explicit InsetTOC(InsetCommandParams const &);
        ///
-       virtual Inset * clone(Buffer const &, bool same_id = false) const {
-               return new InsetTOC(params(), same_id);
-       }
-       ///
-       string const getScreenLabel() const;
-       ///
-       void edit(BufferView * bv, int, int, unsigned int);
-       ///
-       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;
        ///
-       int ascii(Buffer const *, std::ostream &, int linelen) const;
+       bool display() const { return true; }
        ///
-       int linuxdoc(Buffer const *, std::ostream &) const;
+       int plaintext(Buffer const &, odocstream &,
+                 OutputParams const &) const;
        ///
-       int DocBook(Buffer const *, std::ostream &) const;
+       int docbook(Buffer const &, odocstream &,
+                   OutputParams const &) const;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
+
+} // namespace lyx
+
 #endif