]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettoc.h
fix compilation pb ; update eu.po
[lyx.git] / src / insets / insettoc.h
index 0c850e00645c6fef6581bfbd1392925fbe134e85..9e2078f2cbb637c44f409e5305dc9c8d9e997194 100644 (file)
 #endif
 
 #include "insetcommand.h"
-#include "gettext.h"
-
-using std::ostream;
-
-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);
         ///
-       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(ostream &) const;
+       int Ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int DocBook(ostream &) const;
-private:
+       int Linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       Buffer * owner;
+       int DocBook(Buffer const *, std::ostream &) const;
 };
 
 #endif