]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormToc.h
major GUII cleanup + Baruchs patch + Angus's patch + removed a couple of generated...
[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 #include "buffer.h"
21 struct FD_form_toc;
22
23 /** This class provides an XForms implementation of the FormToc Dialog.
24  */
25 class FormToc : public FormCommand {
26 public:
27         /**@name Constructors and Destructors */
28         //@{
29         ///
30         FormToc(LyXView *, Dialogs *);
31         ///
32         ~FormToc();
33
34 private:
35         /// Build the dialog
36         virtual void build();
37         /// Not used but must be instantiated
38         virtual void input( long ) {}
39         /// Update dialog before showing it
40         virtual void update();
41         /// Apply from dialog (modify or create inset)
42         virtual void apply();
43         /// delete derived class variables from hide()
44         virtual void clearStore();
45         /// Pointer to the actual instantiation of the xform's form
46         virtual FL_FORM * const form() const;
47         ///
48         void updateToc();
49         ///
50         FD_form_toc * build_toc();
51
52         /// Real GUI implementation.
53         FD_form_toc * dialog_;
54         ///
55         std::vector<Buffer::TocItem> toclist;
56 };
57
58 #endif