4 * John Levon, moz@compsoc.man.ac.uk
5 * Adapted for Qt2 frontend by Kalle Dalheimer,
6 * kalle@klaralvdalens-datakonsult.se
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
21 #include "DialogBase.h"
23 #include "boost/utility.hpp"
24 #include "insets/insetcommand.h"
30 class FormToc : public DialogBase {
32 /**@name Constructors and Destructors */
35 FormToc(LyXView *, Dialogs *);
42 /// Update the dialog before showing it.
43 virtual void update();
44 /// close the connections
48 /// Create the dialog if necessary, update it and display it.
53 /// create a Toc inset
54 void createTOC(string const &);
56 void showTOC(InsetCommand * const);
61 /// Real GUI implementation.
62 FormTocDialog * dialog_;
64 /// the LyXView we belong to
67 /** Which Dialogs do we belong to?
68 Used so we can get at the signals we have to connect to.
71 /// pointer to the inset if any
72 InsetCommand * inset_;
74 InsetCommandParams params;
78 /// Update connection.
80 /// Inset hide connection.
84 std::vector <Buffer::TocItem> toclist;
86 /// depth of list shown