]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormToc.h
FormBase extends its reach into the codebase and gains a ButtonController
[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         ///
28         FormToc(LyXView *, Dialogs *);
29         ///
30         ~FormToc();
31 private:
32         /// Build the dialog
33         virtual void build();
34         /// Update dialog before showing it
35         virtual void update();
36         /// Apply from dialog (modify or create inset)
37         virtual void apply();
38         /// delete derived class variables from hide()
39         virtual void clearStore();
40         /// Pointer to the actual instantiation of the xform's form
41         virtual FL_FORM * const form() const;
42         ///
43         void updateToc();
44         ///
45         FD_form_toc * build_toc();
46
47         /// Real GUI implementation.
48         FD_form_toc * dialog_;
49         ///
50         std::vector<Buffer::TocItem> toclist;
51 };
52
53 #endif