3 * John Levon, moz@compsoc.man.ac.uk
4 * Adapted for Qt2 frontend by Kalle Dalheimer,
5 * kalle@klaralvdalens-datakonsult.se
8 /***************************************************************************
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
15 ***************************************************************************/
20 #include "DialogBase.h"
22 #include "boost/utility.hpp"
23 #include "insets/insetcommand.h"
29 class FormToc : public DialogBase {
31 /**@name Constructors and Destructors */
34 FormToc(LyXView *, Dialogs *);
41 /// Update the dialog before showing it.
42 virtual void update();
43 /// close the connections
47 /// Create the dialog if necessary, update it and display it.
52 /// create a Toc inset
53 void createTOC(string const &);
55 void showTOC(InsetCommand * const);
60 /// Real GUI implementation.
61 FormTocDialog * dialog_;
63 /// the LyXView we belong to
66 /** Which Dialogs do we belong to?
67 Used so we can get at the signals we have to connect to.
70 /// pointer to the inset if any
71 InsetCommand * inset_;
73 InsetCommandParams params;
77 /// Update connection.
79 /// Inset hide connection.
83 std::vector <Buffer::TocItem> toclist;
85 /// depth of list shown