]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/FormIndex.h
implement getLabelList
[lyx.git] / src / frontends / qt2 / FormIndex.h
1 /* FormIndex.h
2  * (C) 2000 LyX Team
3  * John Levon, moz@compsoc.man.ac.uk
4  * Adapted for Qt2 frontend by Kalle Dalheimer, 
5  *   kalle@klaralvdalens-datakonsult.se
6  */
7
8 /***************************************************************************
9  *                                                                         *
10  *   This program is free software; you can redistribute it and/or modify  *
11  *   it under the terms of the GNU General Public License as published by  *
12  *   the Free Software Foundation; either version 2 of the License, or     *
13  *   (at your option) any later version.                                   *
14  *                                                                         *
15  ***************************************************************************/
16
17 #ifndef FORMINDEX_H
18 #define FORMINDEX_H
19
20 #include "DialogBase.h"
21 #include "LString.h"
22 #include "boost/utility.hpp"
23 #include "insets/insetindex.h"
24
25 class Dialogs;
26 class LyXView;
27 class FormIndexDialog;
28
29 class FormIndex : public DialogBase {
30 public: 
31         /**@name Constructors and Destructors */
32         //@{
33         ///
34         FormIndex(LyXView *, Dialogs *);
35         /// 
36         ~FormIndex();
37         //@}
38
39         /// Apply changes
40         void apply();
41         /// close the connections
42         void close();
43  
44 private: 
45         /// Create the dialog if necessary, update it and display it.
46         void show();
47         /// Hide the dialog.
48         void hide();
49         /// Update the dialog.
50         void update();
51
52         /// create an Index inset
53         void createIndex(string const &);
54         /// edit an Index  inset
55         void showIndex(InsetCommand * const);
56  
57         /// Real GUI implementation.
58         FormIndexDialog * dialog_;
59
60         /// the LyXView we belong to
61         LyXView * lv_;
62  
63         /** Which Dialogs do we belong to?
64             Used so we can get at the signals we have to connect to.
65         */
66         Dialogs * d_;
67         /// pointer to the inset if any
68         InsetCommand * inset_;
69         /// insets params
70         InsetCommandParams params;
71         /// is the inset we are reading from a readonly buffer ?
72         bool readonly;
73         
74         /// Hide connection.
75         Connection h_;
76         /// Update connection.
77         Connection u_;
78         /// Inset hide connection.
79         Connection ih_;
80 };
81
82 #endif