]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormToc.h
different low-level key handling for xforms 0.89, use signals in workarea, changes...
[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         /// Not used but must be instantiated
35         virtual void input( long ) {}
36         /// Update dialog before showing it
37         virtual void update();
38         /// Apply from dialog (modify or create inset)
39         virtual void apply();
40         /// delete derived class variables from hide()
41         virtual void clearStore();
42         /// Pointer to the actual instantiation of the xform's form
43         virtual FL_FORM * const form() const;
44         ///
45         void updateToc();
46         ///
47         FD_form_toc * build_toc();
48
49         /// Real GUI implementation.
50         FD_form_toc * dialog_;
51         ///
52         std::vector<Buffer::TocItem> toclist;
53 };
54
55 #endif