]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetindex.h
some reindentation, revert workarea xpos++, constify, remove all traces of LyXParagra...
[lyx.git] / src / insets / insetindex.h
index b92853804f179ecd8d5c94b0e4dd65d2c2f406df..686a8c0588d75cb37d6c869dd1eaf89b338e0fab 100644 (file)
 #endif
 
 #include "insetcommand.h"
-#include "support/utility.hpp"
 
 struct LaTeXFeatures;
 
 /** Used to insert index labels  
   */
-class InsetIndex : public InsetCommand, public noncopyable {
+class InsetIndex : public InsetCommand {
 public:
        ///
        InsetIndex(InsetCommandParams const &);
        ///
-       Inset * Clone() const { return new InsetIndex(params());}
+       Inset * Clone(Buffer const &) const {
+               return new InsetIndex(params());
+       }
        ///
-       string getScreenLabel() const;
+       string const getScreenLabel() const;
        ///
        EDITABLE Editable() const { return IS_EDITABLE; }
        ///
@@ -38,12 +39,14 @@ public:
 };
 
 
-class InsetPrintIndex : public InsetCommand, public noncopyable {
+class InsetPrintIndex : public InsetCommand {
 public:
        ///
        InsetPrintIndex(InsetCommandParams const &);
        ///
-       Inset * Clone() const { return new InsetPrintIndex(params());}
+       Inset * Clone(Buffer const &) const {
+               return new InsetPrintIndex(params());
+       }
        /// Updates needed features for this inset.
        void Validate(LaTeXFeatures & features) const;
        ///
@@ -55,7 +58,7 @@ public:
        ///
        Inset::Code LyxCode() const;
        ///
-       string getScreenLabel() const;
+       string const getScreenLabel() const;
 };
 
 #endif