4 * Copyright 2001 the LyX Team
5 * Read the file COPYING
8 * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
14 #include "DialogBase.h"
16 #include "boost/utility.hpp"
17 #include "insets/insetcommand.h"
23 class QToc : public DialogBase {
25 QToc(LyXView *, Dialogs *);
30 /// Update the dialog before showing it.
31 virtual void update();
32 /// close the connections
36 /// Create the dialog if necessary, update it and display it.
41 /// create a Toc inset
42 void createTOC(string const &);
44 void showTOC(InsetCommand * const);
49 /// Real GUI implementation.
52 /// the LyXView we belong to
55 /** Which Dialogs do we belong to?
56 Used so we can get at the signals we have to connect to.
59 /// pointer to the inset if any
60 InsetCommand * inset_;
62 InsetCommandParams params;
66 /// Update connection.
68 /// Inset hide connection.
72 //std::vector <Buffer::TocItem> toclist;
74 /// depth of list shown