1 // THIS FILE IS NOT IN USE DUE TO API CHANGES.
2 #include "frontends/xforms/FormToc.h"
5 /* This file is part of
6 * ======================================================
8 * LyX, The Document Processor
10 * Copyright 2000 The LyX Team.
12 * ======================================================
22 #include "DialogBase.h"
24 #include "insets/insetcommand.h"
27 #include <gnome--/dialog.h>
28 #include <gtk--/optionmenu.h>
29 #include <gtk--/list.h>
31 /** This class provides an Gnome implementation of the FormToc Dialog.
33 class FormToc : public DialogBase {
36 FormToc(LyXView *, Dialogs *);
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 );
45 /// Update dialog before showing it
46 virtual void update() { }
47 virtual void updateSlot(bool = false);
48 /// Explicitly free the dialog.
50 /// Create the dialog if necessary, update it and display it.
54 /// move cursor in LyXView
55 void apply(Buffer::TocItem);
56 /// change type of the list
57 void changeList(Buffer::TocType);
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.
64 /** Which Dialogs do we belong to?
65 Used so we can get at the signals we have to connect to.
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.
76 /// inset::hide connection.
79 /// Real GUI implementation.
80 Gnome::Dialog * dialog_;
82 Gtk::OptionMenu * choice_;
86 bool ignore_callback_;