]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettoc.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insettoc.h
index d7159e269ddc0207f46451eef0a718fee5313140..c30cf2f777e01f17cdfa9c5c27a5b39ba0cc8d40 100644 (file)
 #ifndef INSET_TOC_H
 #define INSET_TOC_H
 
-
 #include "insetcommand.h"
 
-class MetricsInfo;
-
 
-/** Used to insert table of contents
- */
+/// Used to insert table of contents and similar lists
 class InsetTOC : public InsetCommand {
 public:
        ///
        explicit InsetTOC(InsetCommandParams const &);
        ///
-       ~InsetTOC();
-       ///
-       std::auto_ptr<InsetBase> clone() const;
-       ///
-       void metrics(MetricsInfo &, Dimension &) const;
-       ///
-       void draw(PainterInfo & pi, int x, int y) const;
-       ///
        std::string const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetOld::Code lyxCode() const;
+       InsetBase::Code lyxCode() const;
        ///
        bool display() const { return true; }
        ///
-       int ascii(Buffer const &, std::ostream &, int linelen) const;
-       ///
-       int linuxdoc(Buffer const &, std::ostream &) const;
+       int plaintext(Buffer const &, std::ostream &,
+                 OutputParams const &) const;
        ///
-       int docbook(Buffer const &, std::ostream &, bool mixcont) const;
-protected:
+       int linuxdoc(Buffer const &, std::ostream &,
+                    OutputParams const &) const;
        ///
-       virtual
-       DispatchResult
-       priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &);
+       int docbook(Buffer const &, std::ostream &,
+                   OutputParams const &) const;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
 #endif