]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetindex.h
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / insetindex.h
index 0f037ba7f17ab27d27ceffc38285db77c76e7b62..2f4baef458506144adf493181586614d726a7fcc 100644 (file)
@@ -5,7 +5,7 @@
  *           LyX, The Document Processor
  *      
  *         Copyright 1995 Matthias Ettrich
- *          Copyright 1996-1999 the LyX Team.
+ *          Copyright 1996-2001 the LyX Team.
  * 
  * ====================================================== */
 
 
 #include "insetcommand.h"
 
-class Buffer;
 struct LaTeXFeatures;
 
-// Created by Lgb 970227
-
-
 /** Used to insert index labels  
   */
-class InsetIndex: public InsetCommand {
+class InsetIndex : public InsetCommand {
 public:
        ///
-       InsetIndex() : InsetCommand("index") {}
+       InsetIndex(InsetCommandParams const &, bool same_id = false);
+       ///
+       virtual Inset * clone(Buffer const &, bool same_id = false) const {
+               return new InsetIndex(params(), same_id);
+       }
        ///
-       InsetIndex(string const & key);
+       string const getScreenLabel(Buffer const *) const;
        ///
-       ~InsetIndex();
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset * Clone() const { return new InsetIndex(contents);}
+       void edit(BufferView *, int, int, unsigned int);
        ///
-       void Edit(int, int);
+       void edit(BufferView * bv, bool front = true);
        ///
-       unsigned char Editable() const
-       {
-               return 1;
-       }
+       Inset::Code lyxCode() const;
        ///
-       string getScreenLabel() const;
+       int docbook(Buffer const *, std::ostream &) const;
 };
 
 
 class InsetPrintIndex : public InsetCommand {
 public:
        ///
-       InsetPrintIndex();
-       ///
-       InsetPrintIndex(Buffer *);
+       InsetPrintIndex(InsetCommandParams const &, bool same_id = false);
        ///
-       ~InsetPrintIndex();
+       virtual Inset * clone(Buffer const &, bool same_id = false) const {
+               return new InsetPrintIndex(params(), same_id);
+       }
        /// Updates needed features for this inset.
-       void Validate(LaTeXFeatures & features) const;
+       void validate(LaTeXFeatures & features) const;
        ///
-       void Edit(int, int) {}
+       void edit(BufferView *, int, int, unsigned int) {}
        ///
-       unsigned char Editable() const{
-               return 1;
-       }
-       /// WHY is clone missing? (Lgb)
+       void edit(BufferView *, bool = true) {}
        ///
-       bool display() const { return true; }
+       EDITABLE editable() const{ return NOT_EDITABLE; }
        ///
-       Inset::Code LyxCode() const;
+       bool display() const { return true; }
        ///
-       string getScreenLabel() const;
-private:
+       Inset::Code lyxCode() const;
        ///
-       Buffer * owner;
-};
-
-// this was shifted here rather than a separate
-// file because its little and only need by
-// insetindex.C and lyx_gui_misc.C ARRae 981020
-struct FD_index_form {
-       FL_FORM * index_form;
-       FL_OBJECT * key;
+       string const getScreenLabel(Buffer const *) const;
 };
 
-extern FD_index_form * index_form;
 #endif