X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsettoc.h;h=73bf1b67d32972a0109c97fc63a5c3f7988e4314;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=45c2f76663e54744ffd1f6d6da634d48cd50eb5a;hpb=cd424d78530c9e38502ee7f989ef5c426c97ad61;p=lyx.git diff --git a/src/insets/insettoc.h b/src/insets/insettoc.h index 45c2f76663..73bf1b67d3 100644 --- a/src/insets/insettoc.h +++ b/src/insets/insettoc.h @@ -12,48 +12,36 @@ #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 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 plaintext(Buffer const &, std::ostream &, + int plaintext(Buffer const &, odocstream &, OutputParams const &) const; /// - int linuxdoc(Buffer const &, std::ostream &, - OutputParams const &) const; - /// - int docbook(Buffer const &, std::ostream &, + int docbook(Buffer const &, odocstream &, OutputParams const &) const; -protected: - /// - virtual - DispatchResult - priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &); +private: + virtual std::auto_ptr doClone() const; }; + +} // namespace lyx + #endif