2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1996-1999 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") {}
34 InsetIndex(string const & key);
38 Inset * Clone() const { return new InsetIndex(contents);}
40 void Edit(BufferView *, int, int, unsigned int);
42 unsigned char Editable() const
47 string getScreenLabel() const;
51 class InsetPrintIndex : public InsetCommand {
56 InsetPrintIndex(Buffer *);
59 /// Updates needed features for this inset.
60 void Validate(LaTeXFeatures & features) const;
62 void Edit(BufferView *, int, int, unsigned int) {}
64 unsigned char Editable() const{
67 /// WHY is clone missing? (Lgb)
69 bool display() const { return true; }
71 Inset::Code LyxCode() const;
73 string getScreenLabel() const;
79 // this was shifted here rather than a separate
80 // file because its little and only need by
81 // insetindex.C and lyx_gui_misc.C ARRae 981020
82 struct FD_index_form {
87 extern FD_index_form * index_form;