]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetindex.h
fix compilation pb ; update eu.po
[lyx.git] / src / insets / insetindex.h
index 87148cf7fb2cc7d809271bdf030aa7cea248d323..686a8c0588d75cb37d6c869dd1eaf89b338e0fab 100644 (file)
 
 #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 &);
        ///
-       InsetIndex(string const & key);
+       Inset * Clone(Buffer const &) const {
+               return new InsetIndex(params());
+       }
        ///
-       ~InsetIndex();
+       string const getScreenLabel() const;
        ///
-       Inset * Clone() const { return new InsetIndex(contents);}
+       EDITABLE Editable() const { return IS_EDITABLE; }
        ///
        void Edit(BufferView *, int, int, unsigned int);
-       ///
-       EDITABLE Editable() const
-       {
-               return IS_EDITABLE;
-       }
-       ///
-       string getScreenLabel() const;
 };
 
 
 class InsetPrintIndex : public InsetCommand {
 public:
        ///
-       InsetPrintIndex();
+       InsetPrintIndex(InsetCommandParams const &);
        ///
-       InsetPrintIndex(Buffer *);
-       ///
-       ~InsetPrintIndex();
+       Inset * Clone(Buffer const &) const {
+               return new InsetPrintIndex(params());
+       }
        /// Updates needed features for this inset.
        void Validate(LaTeXFeatures & features) const;
        ///
        void Edit(BufferView *, int, int, unsigned int) {}
        ///
-       EDITABLE Editable() const{
-               return IS_EDITABLE;
-       }
-       /// WHY is clone missing? (Lgb)
+       EDITABLE Editable() const{ return NOT_EDITABLE; }
        ///
        bool display() const { return true; }
        ///
        Inset::Code LyxCode() const;
        ///
-       string getScreenLabel() const;
-private:
-       ///
-       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() const;
 };
 
-extern FD_index_form * index_form;
 #endif