]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.h
tex2lyx/text.cpp: fix typos
[lyx.git] / src / insets / InsetTOC.h
index 36d7d091c40f6480d9c80c34dbe471368e2a0fc6..e6e932b3f1b06d0baa3aee6549f0bfe3e02a3058 100644 (file)
@@ -19,34 +19,58 @@ namespace lyx {
 
 
 /// Used to insert table of contents and similar lists
-/// at present, supports only \tableofcontents. Other
-/// such commands, such as \listoffigures, are supported
+/// at present, supports only \tableofcontents and \listoflistings.
+/// 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; }
        ///
+       docstring layoutName() const;
+       ///
        DisplayType display() const { return AlignCenter; }
        ///
+       virtual void validate(LaTeXFeatures &) const;
+       ///
        int plaintext(odocstream &, OutputParams const &) const;
        ///
        int docbook(odocstream &, OutputParams const &) const;
        ///
        docstring xhtml(XHTMLStream & xs, OutputParams const &) const;
        ///
+       void doDispatch(Cursor & cur, FuncRequest & cmd);
+       ///
+       bool clickable(int, int) const { return true; }
+       //@}
+
+       /// \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(); }
+       static bool isCompatibleCommand(std::string const & cmd);
+       //@}
+
 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;
+       //@}
 };