]> git.lyx.org Git - features.git/blobdiff - src/insets/insetindex.h
read the Changelog
[features.git] / src / insets / insetindex.h
index bf1d327c8f62b8fa1337625e99e4ec3d1bc1804e..50a2e4cf20cd0dbf3a9f0237df64c461b83a04b7 100644 (file)
@@ -5,7 +5,7 @@
  *           LyX, The Document Processor
  *      
  *         Copyright 1995 Matthias Ettrich
- *          Copyright 1996-1999 the LyX Team.
+ *          Copyright 1996-2000 the LyX Team.
  * 
  * ====================================================== */
 
 
 class Buffer;
 struct LaTeXFeatures;
+struct FD_index_form;
 
 // Created by Lgb 970227
 
 
 /** Used to insert index labels  
   */
-class InsetIndex: public InsetCommand {
+class InsetIndex : public InsetCommand {
 public:
        ///
-       InsetIndex(): InsetCommand("index") {;}
+       InsetIndex() : InsetCommand("index") {}
        ///
+       explicit
        InsetIndex(string const & key);
        ///
        ~InsetIndex();
        ///
-       InsetIndex * Clone() const { return new InsetIndex(contents);}
+       Inset * Clone() const { return new InsetIndex(getContents());}
        ///
-       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;
+       ///
+       void callback( FD_index_form *, long );
+       ///
+       struct Holder {
+               InsetIndex * inset;
+               BufferView * view;
+       };
+ private:
+       ///
+       Holder holder;
 };
 
 
-class InsetPrintIndex: public InsetCommand {
+class InsetPrintIndex : public InsetCommand {
 public:
+#if 0
        ///
        InsetPrintIndex();
+#endif
        ///
        InsetPrintIndex(Buffer *);
+#if 0
        ///
        ~InsetPrintIndex();
+#endif
        /// 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; }
        ///