]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormToc.h
remove defaults stuff, let Qt handle no toolbar
[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
16 #include "FormDialogView.h"
17 #include "toc.h"
18
19 class ControlToc;
20 struct FD_toc;
21
22 /** This class provides an XForms implementation of the FormToc Dialog.
23  */
24 class FormToc : public FormController<ControlToc, FormView<FD_toc> > {
25 public:
26         ///
27         FormToc(Dialog &);
28 private:
29         /// not needed
30         virtual void apply() {}
31         /// Build the dialog
32         virtual void build();
33         /// Update dialog before showing it
34         virtual void update();
35         /// Filter the inputs on callback from xforms
36         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
37
38         ///
39         void updateType();
40         ///
41         void updateContents();
42
43         ///
44         toc::Toc toc_;
45 };
46
47 #endif // FORMTOC_H