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"
24 // Created by Lgb 970227
27 /** Used to insert index labels
29 class InsetIndex: public InsetCommand {
32 InsetIndex() : InsetCommand("index") {}
35 InsetIndex(string const & key);
39 Inset * Clone() const { return new InsetIndex(contents);}
41 void Edit(BufferView *, int, int, unsigned int);
43 EDITABLE Editable() const
48 string getScreenLabel() const;
52 class InsetPrintIndex : public InsetCommand {
57 InsetPrintIndex(Buffer *);
60 /// Updates needed features for this inset.
61 void Validate(LaTeXFeatures & features) const;
63 void Edit(BufferView *, int, int, unsigned int) {}
65 EDITABLE Editable() const{
68 /// WHY is clone missing? (Lgb)
70 bool display() const { return true; }
72 Inset::Code LyxCode() const;
74 string getScreenLabel() const;
80 // this was shifted here rather than a separate
81 // file because its little and only need by
82 // insetindex.C and lyx_gui_misc.C ARRae 981020
83 struct FD_index_form {
88 extern FD_index_form * index_form;