]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettoc.h
reformatting and remove using delc
[lyx.git] / src / insets / insettoc.h
index f6d08a5611e00da26d4bc1ee91175570df713053..9e2078f2cbb637c44f409e5305dc9c8d9e997194 100644 (file)
@@ -5,7 +5,7 @@
  *           LyX, The Document Word Processor
  *      
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1996-1999 The LyX Team.
+ *           Copyright 1996-2000 The LyX Team.
  * 
  * ====================================================== */
 
 #endif
 
 #include "insetcommand.h"
-#include "gettext.h"
-
-class Buffer;
 
 /** Used to insert table of contents
  */
 class InsetTOC : public InsetCommand {
 public:
        ///
-       InsetTOC() : InsetCommand("tableofcontents") {}
+       InsetTOC(InsetCommandParams const & p) : InsetCommand(p) {}
        ///
-       InsetTOC(Buffer * b) : InsetCommand("tableofcontents"), owner(b) {}
-        ///
-        Inset * Clone() const { return new InsetTOC(owner); }
+        Inset * Clone(Buffer const &) const { return new InsetTOC(params()); }
        ///
-       string getScreenLabel() const { return _("Table of Contents"); }
-       /// On edit, we open the TOC pop-up
+       string const getScreenLabel() const;
+       ///
        void Edit(BufferView * bv, int, int, unsigned int);
         ///
-       unsigned char Editable() const {
-               return 1;
-       }
+       EDITABLE Editable() const { return IS_EDITABLE; }
        ///
        bool display() const { return true; }
        ///
-       Inset::Code LyxCode() const { return Inset::TOC_CODE; }
-#ifdef USE_OSTREAM_ONLY
+       Inset::Code LyxCode() const;
        ///
-       int Linuxdoc(ostream &) const;
+       int Ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int DocBook(ostream &) const;
-#else
-       ///
-       int Linuxdoc(string & file) const;
-       ///
-       int DocBook(string & file) const;
-#endif
-private:
+       int Linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       Buffer * owner;
+       int DocBook(Buffer const *, std::ostream &) const;
 };
 
 #endif