]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormToc.h
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormToc.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ====================================================== 
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 2000-2001 The LyX Team.
8  *
9  * ======================================================
10  *
11  * \file FormToc.h
12  * \author Angus Leeming <a.leeming@ic.ac.uk>
13  */
14
15 #ifndef FORMTOC_H
16 #define FORMTOC_H
17
18 #ifdef __GNUG__
19 #pragma interface
20 #endif
21
22 #include "FormBase.h"
23 #include "buffer.h"
24
25 class ControlToc;
26 struct FD_form_toc;
27
28 /** This class provides an XForms implementation of the FormToc Dialog.
29  */
30 class FormToc : public FormCB<ControlToc, FormDB<FD_form_toc> > {
31 public:
32         ///
33         FormToc(ControlToc &);
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