This commit was manufactured by cvs2svn to create tag
[lyx.git] / src / insets / insetindex.h
blob6470404e28bf5c8303930a9c8155953aa7678043
1 // -*- C++ -*-
2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
6 *
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1996-1999 the LyX Team.
9 *
10 * ======================================================*/
12 #ifndef INSET_INDEX_H
13 #define INSET_INDEX_H
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
19 #include "insetcommand.h"
21 class Buffer;
22 struct LaTeXFeatures;
24 // Created by Lgb 970227
27 /** Used to insert index labels
29 class InsetIndex: public InsetCommand {
30 public:
31 ///
32 InsetIndex(): InsetCommand("index") {;}
33 ///
34 InsetIndex(string const & key);
35 ///
36 ~InsetIndex();
37 ///
38 Inset * Clone() { return new InsetIndex(contents);}
39 ///
40 void Edit(int, int);
41 ///
42 unsigned char Editable() const
44 return 1;
46 ///
47 string getScreenLabel() const;
51 class InsetPrintIndex: public InsetCommand {
52 public:
53 ///
54 InsetPrintIndex();
55 ///
56 InsetPrintIndex(Buffer *);
57 ///
58 ~InsetPrintIndex();
59 /// Updates needed features for this inset.
60 void Validate(LaTeXFeatures & features) const;
61 ///
62 void Edit(int, int) {}
63 ///
64 unsigned char Editable() const{
65 return 1;
67 ///
68 bool Display() const { return true; }
69 ///
70 Inset::Code LyxCode() const;
71 ///
72 string getScreenLabel() const;
73 private:
74 ///
75 Buffer * owner;
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 {
82 FL_FORM * index_form;
83 FL_OBJECT * key;
86 extern FD_index_form * index_form;
87 #endif