2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1996-2000 the LyX Team.
10 * ====================================================== */
19 #include "insetcommand.h"
25 // Created by Lgb 970227
28 /** Used to insert index labels
30 class InsetIndex : public InsetCommand {
33 InsetIndex() : InsetCommand("index") {}
36 InsetIndex(string const & key);
40 Inset * Clone() const { return new InsetIndex(getContents());}
42 void Edit(BufferView *, int, int, unsigned int);
44 EDITABLE Editable() const
49 string getScreenLabel() const;
51 void callback( FD_index_form *, long );
63 class InsetPrintIndex : public InsetCommand {
70 InsetPrintIndex(Buffer *);
75 /// Updates needed features for this inset.
76 void Validate(LaTeXFeatures & features) const;
78 void Edit(BufferView *, int, int, unsigned int) {}
80 EDITABLE Editable() const{
83 /// WHY is clone missing? (Lgb)
85 bool display() const { return true; }
87 Inset::Code LyxCode() const;
89 string getScreenLabel() const;
95 // this was shifted here rather than a separate
96 // file because its little and only need by
97 // insetindex.C and lyx_gui_misc.C ARRae 981020
98 struct FD_index_form {
103 extern FD_index_form * index_form;