]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormToc.h
ditch FileInfo -> use boost.filesystem
[lyx.git] / src / frontends / xforms / FormToc.h
1 // -*- C++ -*-
2 /**
3  * \file FormToc.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef FORMTOC_H
13 #define FORMTOC_H
14
15 #include "FormDialogView.h"
16 #include "toc.h"
17
18 namespace lyx {
19 namespace frontend {
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 FormController<ControlToc, FormView<FD_toc> > {
27 public:
28         ///
29         FormToc(Dialog &);
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 } // namespace frontend
50 } // namespace lyx
51
52 #endif // FORMTOC_H