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