X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetTOC.h;h=cb32c66ac3f18c85b1df6313a151c12f3cba773f;hb=2906a35663b92030b0668a42ab370dba8ffca4cf;hp=95fbfcdf7c86ae4105ef11844439f28db6106e83;hpb=ffe73b795b611625bc1acf59ab1569598d29dba2;p=lyx.git diff --git a/src/insets/InsetTOC.h b/src/insets/InsetTOC.h index 95fbfcdf7c..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; } /// @@ -36,16 +40,32 @@ public: /// 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 bool isCompatibleCommand(std::string const & cmd) { return cmd == defaultCommand(); } - /// - void validate(LaTeXFeatures & features) const; + //@} + 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; + //@} };