]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlIndex.C
The reference dialog now disconnects from the inset on Apply. Its behaviour
[lyx.git] / src / frontends / controllers / ControlIndex.C
1 /* This file is part of
2  * ====================================================== 
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 2001 The LyX Team.
7  *
8  * ======================================================
9  *
10  * \file ControlIndex.C
11  * \author Angus Leeming <a.leeming@ic.ac.uk>
12  */
13
14 #include <config.h>
15
16 #ifdef __GNUG__
17 #pragma implementation
18 #endif
19
20 #include "ViewBase.h"
21 #include "ButtonControllerBase.h"
22 #include "ControlIndex.h"
23 #include "buffer.h"
24 #include "Dialogs.h"
25 #include "LyXView.h"
26
27 using SigC::slot;
28
29 ControlIndex::ControlIndex(LyXView & lv, Dialogs & d)
30         : ControlCommand(lv, d, LFUN_INDEX_INSERT)
31 {
32         d_.showIndex.connect(slot(this, &ControlIndex::showInset));
33         d_.createIndex.connect(slot(this, &ControlIndex::createInset));
34 }