]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormToc.h
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FormToc.h
1 // -*- C++ -*-
2 /**
3  * \file xforms/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 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "FormBase.h"
20 #include "toc.h"
21
22 class ControlToc;
23 struct FD_toc;
24
25 /** This class provides an XForms implementation of the FormToc Dialog.
26  */
27 class FormToc : public FormCB<ControlToc, FormDB<FD_toc> > {
28 public:
29         ///
30         FormToc();
31 private:
32         /// not needed
33         virtual void apply() {}
34         /// Build the dialog
35         virtual void build();
36         /// Update dialog before showing it
37         virtual void update();
38         /// Filter the inputs on callback from xforms
39         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
40
41         ///
42         void updateType();
43         ///
44         void updateContents();
45
46         ///
47         toc::Toc toc_;
48 };
49
50 #endif // FORMTOC_H