2 // THIS FILE IS NOT IN USE DUE TO API CHANGES.
3 #include "frontends/xforms/FormToc.h"
6 /* This file is part of
7 * ======================================================
9 * LyX, The Document Processor
11 * Copyright 2000 The LyX Team.
13 * ======================================================
23 #include "DialogBase.h"
25 #include "insets/insetcommand.h"
28 #include <gnome--/dialog.h>
29 #include <gtk--/optionmenu.h>
30 #include <gtk--/list.h>
32 /** This class provides an Gnome implementation of the FormToc Dialog.
34 class FormToc : public DialogBase {
37 FormToc(LyXView *, Dialogs *);
41 /// Slot launching dialog to (possibly) create a new inset
42 void createInset( string const & );
43 /// Slot launching dialog to an existing inset
44 void showInset( InsetCommand * const );
46 /// Update dialog before showing it
47 virtual void update() { }
48 virtual void updateSlot(bool = false);
49 /// Explicitly free the dialog.
51 /// Create the dialog if necessary, update it and display it.
55 /// move cursor in LyXView
56 void apply(Buffer::TocItem);
57 /// change type of the list
58 void changeList(Buffer::TocType);
60 /** Which LyXFunc do we use?
61 We could modify Dialogs to have a visible LyXFunc* instead and
62 save a couple of bytes per dialog.
65 /** Which Dialogs do we belong to?
66 Used so we can get at the signals we have to connect to.
69 /// pointer to the inset passed through showInset (if any)
70 InsetCommand * inset_;
71 /// the nitty-griity. What is modified and passed back
72 InsetCommandParams params;
73 /// Update connection.
77 /// inset::hide connection.
80 /// Real GUI implementation.
81 Gnome::Dialog * dialog_;
83 Gtk::OptionMenu * choice_;
87 bool ignore_callback_;