]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormToc.h
controller-view split for TOC popup.
[lyx.git] / src / frontends / xforms / FormToc.h
1 /* This file is part of
2  * ====================================================== 
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 2000-2001 The LyX Team.
7  *
8  * ======================================================
9  *
10  * \file FormToc.h
11  * \author Angus Leeming <a.leeming@ic.ac.uk>
12  */
13
14 #ifndef FORMTOC_H
15 #define FORMTOC_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "FormBase.h"
22 #include "buffer.h"
23
24 class ControlToc;
25 struct FD_form_toc;
26
27 /** This class provides an XForms implementation of the FormToc Dialog.
28  */
29 class FormToc : public FormCB<ControlToc, FormDB<FD_form_toc> > {
30 public:
31         ///
32         FormToc(ControlToc &);
33
34 private:
35         /// not needed
36         virtual void apply() {}
37         /// Build the dialog
38         virtual void build();
39         /// Update dialog before showing it
40         virtual void update();
41         /// Filter the inputs on callback from xforms
42         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
43
44         ///
45         void updateType();
46         ///
47         void updateContents();
48
49         /// Fdesign generated method
50         FD_form_toc * build_toc();
51
52         ///
53         Buffer::SingleList toclist_;
54 };
55
56 #endif // FORMTOC_H