]> 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 a35682e32acbd012131671685c56bf504ba37418..73bf1b67d32972a0109c97fc63a5c3f7988e4314 100644 (file)
 #ifndef INSET_TOC_H
 #define INSET_TOC_H
 
-
 #include "insetcommand.h"
 
-class MetricsInfo;
 
+namespace lyx {
 
-/** 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;
+       docstring 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 &,
-                 LatexRunParams const &) const;
-       ///
-       int linuxdoc(Buffer const &, std::ostream &,
-                    LatexRunParams const &) const;
-       ///
-       int docbook(Buffer const &, std::ostream &,
-                   LatexRunParams const &) const;
-protected:
+       int plaintext(Buffer const &, odocstream &,
+                 OutputParams const &) const;
        ///
-       virtual
-       DispatchResult
-       priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &);
+       int docbook(Buffer const &, odocstream &,
+                   OutputParams const &) const;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
+
+} // namespace lyx
+
 #endif