]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormToc.h
Angus insetindex patch + protect patch from Dekel
[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 The LyX Team.
8  *
9  * ======================================================
10  */
11
12 #ifndef FORMTOC_H
13 #define FORMTOC_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "FormCommand.h"
20 struct FD_form_toc;
21
22 /** This class provides an XForms implementation of the FormToc Dialog.
23  */
24 class FormToc : public FormCommand {
25 public:
26         /**@name Constructors and Destructors */
27         //@{
28         ///
29         FormToc(LyXView *, Dialogs *);
30         ///
31         ~FormToc();
32
33 private:
34         /// Build the dialog
35         virtual void build();
36         /// Not used but must be instantiated
37         virtual void input( long ) {}
38         /// Update dialog before showing it
39         virtual void update();
40         /// Apply from dialog (modify or create inset)
41         virtual void apply();
42         /// delete derived class variables from hide()
43         virtual void clearStore();
44         /// Pointer to the actual instantiation of the xform's form
45         virtual FL_FORM * const form() const;
46         ///
47         void updateToc();
48         ///
49         FD_form_toc * build_toc();
50
51         /// Real GUI implementation.
52         FD_form_toc * dialog_;
53 };
54
55 #endif