]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.h
Remove all BufferParam arguments in InsetXXX methods (since insets know about their...
[lyx.git] / src / insets / InsetTOC.h
index 102ff1d403d9d05a8a8504c961ba5e34f9d2ff0c..b95c9c4ebbc377005a663ff3a2351399bf8db0e1 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -26,8 +26,6 @@ public:
        ///
        docstring screenLabel() const;
        ///
-       EDITABLE editable() const { return IS_EDITABLE; }
-       ///
        InsetCode lyxCode() const { return TOC_CODE; }
        ///
        DisplayType display() const { return AlignCenter; }
@@ -41,9 +39,9 @@ public:
        static std::string defaultCommand() { return "tableofcontents"; };
        ///
        static bool isCompatibleCommand(std::string const & cmd)
-               {return cmd == defaultCommand(); }
+               { return cmd == defaultCommand(); }
 private:
-       virtual Inset * clone() const;
+       Inset * clone() const { return new InsetTOC(*this); }
 };