]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetTOC.h
index b020f0b9abd0fc098b0a85012376adde78ad0668..63df80b6b91cd5c019af0338e30c054c2ae2e69a 100644 (file)
@@ -28,7 +28,7 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset::Code lyxCode() const;
+       InsetCode lyxCode() const { return TOC_CODE; }
        ///
        DisplayType display() const { return AlignCenter; }
        ///
@@ -37,6 +37,13 @@ public:
        ///
        int docbook(Buffer const &, odocstream &,
                    OutputParams const &) const;
+       ///
+       static CommandInfo const * findInfo(std::string const &);
+       ///
+       static std::string defaultCommand() { return "tableofcontents"; };
+       ///
+       static bool isCompatibleCommand(std::string const & cmd)
+               {return cmd == defaultCommand(); }
 private:
        virtual Inset * clone() const;
 };