]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetindex.h
clear()->erase() ; lots of using directives for cxx
[lyx.git] / src / insets / insetindex.h
index 6470404e28bf5c8303930a9c8155953aa7678043..82642abd31e4eab333ca9edae8aff407e307ebc7 100644 (file)
@@ -1,13 +1,13 @@
 // -*- C++ -*-
 /* This file is part of*
- * ======================================================
+ * ====================================================== 
  *
  *           LyX, The Document Processor
  *      
  *         Copyright 1995 Matthias Ettrich
- *          Copyright 1996-1999 the LyX Team.
+ *          Copyright 1996-2000 the LyX Team.
  * 
- * ======================================================*/
+ * ====================================================== */
 
 #ifndef INSET_INDEX_H
 #define INSET_INDEX_H
@@ -29,26 +29,27 @@ struct LaTeXFeatures;
 class InsetIndex: public InsetCommand {
 public:
        ///
-       InsetIndex(): InsetCommand("index") {;}
+       InsetIndex() : InsetCommand("index") {}
        ///
+       explicit
        InsetIndex(string const & key);
        ///
        ~InsetIndex();
        ///
-       Inset * Clone() { return new InsetIndex(contents);}
+       Inset * Clone() const { return new InsetIndex(contents);}
        ///
-       void Edit(int, int);
+       void Edit(BufferView *, int, int, unsigned int);
        ///
-       unsigned char Editable() const
+       EDITABLE Editable() const
        {
-               return 1;
+               return IS_EDITABLE;
        }
        ///
        string getScreenLabel() const;
 };
 
 
-class InsetPrintIndex: public InsetCommand {
+class InsetPrintIndex : public InsetCommand {
 public:
        ///
        InsetPrintIndex();
@@ -59,13 +60,14 @@ public:
        /// Updates needed features for this inset.
        void Validate(LaTeXFeatures & features) const;
        ///
-       void Edit(int, int) {}
+       void Edit(BufferView *, int, int, unsigned int) {}
        ///
-       unsigned char Editable() const{
-               return 1;
+       EDITABLE Editable() const{
+               return IS_EDITABLE;
        }
+       /// WHY is clone missing? (Lgb)
        ///
-       bool Display() const { return true; }
+       bool display() const { return true; }
        ///
        Inset::Code LyxCode() const;
        ///