]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/FormToc.h
Remove unneeded files, we have switched to use the libglade and there is no
[lyx.git] / src / frontends / gnome / FormToc.h
1 // THIS FILE IS NOT IN USE DUE TO API CHANGES.
2 #include "frontends/xforms/FormToc.h"
3 #if 0
4 // -*- C++ -*-
5 /* This file is part of
6  * ====================================================== 
7  *
8  *           LyX, The Document Processor
9  *
10  *           Copyright 2000 The LyX Team.
11  *
12  * ======================================================
13  */
14
15 #ifndef FORMTOC_H
16 #define FORMTOC_H
17
18 #ifdef __GNUG__
19 #pragma interface
20 #endif
21
22 #include "DialogBase.h"
23 #include "LString.h"
24 #include "insets/insetcommand.h"
25 #include "buffer.h"
26
27 #include <gnome--/dialog.h>
28 #include <gtk--/optionmenu.h>
29 #include <gtk--/list.h>
30
31 /** This class provides an Gnome implementation of the FormToc Dialog.
32  */
33 class FormToc : public DialogBase {
34 public:
35   ///
36   FormToc(LyXView *, Dialogs *);
37   ///
38   ~FormToc();
39 private:
40   /// Slot launching dialog to (possibly) create a new inset
41   void createInset( string const & );
42   /// Slot launching dialog to an existing inset
43   void showInset( InsetCommand * const );
44   
45   /// Update dialog before showing it
46   virtual void update() { } 
47   virtual void updateSlot(bool = false);
48   /// Explicitly free the dialog.
49   void free();
50   /// Create the dialog if necessary, update it and display it.
51   void show();
52   /// Hide the dialog.
53   void hide();
54   /// move cursor in LyXView
55   void apply(Buffer::TocItem);
56   /// change type of the list
57   void changeList(Buffer::TocType);
58   
59   /** Which LyXFunc do we use?
60       We could modify Dialogs to have a visible LyXFunc* instead and
61       save a couple of bytes per dialog.
62   */
63   LyXView * lv_;
64   /** Which Dialogs do we belong to?
65       Used so we can get at the signals we have to connect to.
66   */
67   Dialogs * d_;
68   /// pointer to the inset passed through showInset (if any)
69   InsetCommand * inset_;
70   /// the nitty-griity. What is modified and passed back
71   InsetCommandParams params;
72   /// Update connection.
73   Connection u_;
74   /// Hide connection.
75   Connection h_;
76   /// inset::hide connection.
77   Connection ih_;
78
79   /// Real GUI implementation.
80   Gnome::Dialog * dialog_;
81
82   Gtk::OptionMenu * choice_;
83
84   Gtk::List * list_;
85
86   bool ignore_callback_;
87 };
88
89 #endif
90 #endif