/// 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; }
///
///
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 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;
+ //@}
};