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() { return new InsetIndex(contents
);}
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(int, int) {}
64 unsigned char Editable() const{
68 bool Display() const { return true; }
70 Inset::Code
LyxCode() const;
72 string
getScreenLabel() const;
78 // this was shifted here rather than a separate
79 // file because its little and only need by
80 // insetindex.C and lyx_gui_misc.C ARRae 981020
81 struct FD_index_form
{
86 extern FD_index_form
* index_form
;