X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetindex.h;h=82642abd31e4eab333ca9edae8aff407e307ebc7;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=bf1d327c8f62b8fa1337625e99e4ec3d1bc1804e;hpb=1d7d3cc4afa2205c801ccc2aa71c7ac59359dc5f;p=lyx.git diff --git a/src/insets/insetindex.h b/src/insets/insetindex.h index bf1d327c8f..82642abd31 100644 --- a/src/insets/insetindex.h +++ b/src/insets/insetindex.h @@ -5,7 +5,7 @@ * LyX, The Document Processor * * Copyright 1995 Matthias Ettrich - * Copyright 1996-1999 the LyX Team. + * Copyright 1996-2000 the LyX Team. * * ====================================================== */ @@ -29,26 +29,27 @@ struct LaTeXFeatures; 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(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,11 +60,12 @@ 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; } ///