]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormToc.h
Really dull and boring header shit
[lyx.git] / src / frontends / xforms / FormToc.h
1 // -*- C++ -*-
2 /**
3  * \file xforms/FormToc.h
4  * Read the file COPYING
5  *
6  * \author Angus Leeming 
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #ifndef FORMTOC_H
12 #define FORMTOC_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "FormBase.h"
19 #include "toc.h"
20
21 class ControlToc;
22 struct FD_toc;
23
24 /** This class provides an XForms implementation of the FormToc Dialog.
25  */
26 class FormToc : public FormCB<ControlToc, FormDB<FD_toc> > {
27 public:
28         ///
29         FormToc();
30 private:
31         /// not needed
32         virtual void apply() {}
33         /// Build the dialog
34         virtual void build();
35         /// Update dialog before showing it
36         virtual void update();
37         /// Filter the inputs on callback from xforms
38         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
39
40         ///
41         void updateType();
42         ///
43         void updateContents();
44
45         ///
46         toc::Toc toc_;
47 };
48
49 #endif // FORMTOC_H