]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettoc.h
reformatting and remove using delc
[lyx.git] / src / insets / insettoc.h
index bf12da1f6e1ef5c293e9d509e42b368f7cec5053..9e2078f2cbb637c44f409e5305dc9c8d9e997194 100644 (file)
 #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) {}
        ///
-       explicit
-       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;
-       /// On edit, we open the TOC pop-up
+       string const getScreenLabel() const;
+       ///
        void Edit(BufferView * bv, int, int, unsigned int);
         ///
-       EDITABLE Editable() const {
-               return IS_EDITABLE;
-       }
+       EDITABLE Editable() const { return IS_EDITABLE; }
        ///
        bool display() const { return true; }
        ///
-       Inset::Code LyxCode() const { return Inset::TOC_CODE; }
+       Inset::Code LyxCode() const;
        ///
-       int Linuxdoc(std::ostream &) const;
+       int Ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int DocBook(std::ostream &) const;
-private:
+       int Linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       Buffer * owner;
+       int DocBook(Buffer const *, std::ostream &) const;
 };
 
 #endif