X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetTOC.h;h=cb32c66ac3f18c85b1df6313a151c12f3cba773f;hb=2906a35663b92030b0668a42ab370dba8ffca4cf;hp=dc65b97ffb5c0f3e1cba767ebba7e67dc68fa5bd;hpb=882e2eeb7bcea230c24eaa69cd6a3e274369adde;p=lyx.git diff --git a/src/insets/InsetTOC.h b/src/insets/InsetTOC.h index dc65b97ffb..cb32c66ac3 100644 --- a/src/insets/InsetTOC.h +++ b/src/insets/InsetTOC.h @@ -19,12 +19,16 @@ namespace lyx { /// Used to insert table of contents and similar lists +/// at present, supports only \tableofcontents. Other +/// such commands, such as \listoffigures, are supported +/// by InsetFloatList. class InsetTOC : public InsetCommand { public: /// InsetTOC(Buffer * buf, InsetCommandParams const &); - /// - docstring screenLabel() const; + + /// \name Public functions inherited from Inset class + //@{ /// InsetCode lyxCode() const { return TOC_CODE; } /// @@ -34,14 +38,34 @@ public: /// int docbook(odocstream &, OutputParams const &) const; /// + docstring xhtml(XHTMLStream & xs, OutputParams const &) const; + /// + void doDispatch(Cursor & cur, FuncRequest & cmd); + //@} + + /// \name Static public methods obligated for InsetCommand derived classes + //@{ + /// static ParamInfo const & findInfo(std::string const &); /// - static std::string defaultCommand() { return "tableofcontents"; }; + static std::string defaultCommand() { return "tableofcontents"; } /// static bool isCompatibleCommand(std::string const & cmd) { return cmd == defaultCommand(); } + //@} + private: + /// \name Private functions inherited from Inset class + //@{ + /// Inset * clone() const { return new InsetTOC(*this); } + //@} + + /// \name Private functions inherited from InsetCommand class + //@{ + /// + docstring screenLabel() const; + //@} };