3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
12 #include "DialogBase.h"
14 #include "boost/utility.hpp"
15 #include "insets/insetcommand.h"
21 class FormToc : public DialogBase, public noncopyable {
23 FormToc(LyXView *, Dialogs *);
27 /// Selected a tree item
28 void select(char const *);
30 void set_type(Buffer::TocType);
31 /// Update the dialog.
32 void update(bool = false);
33 /// change the depth shown
35 /// close the connections
39 /// Create the dialog if necessary, update it and display it.
44 /// create a Toc inset
45 void createTOC(string const &);
47 void showTOC(InsetCommand * const);
53 void setType(Buffer::TocType);
55 /// Real GUI implementation.
58 /// the LyXView we belong to
64 /// pointer to the inset if any
65 InsetCommand * inset_;
67 InsetCommandParams params;
71 /// Update connection.
73 /// Inset hide connection.
77 std::vector <Buffer::TocItem> toclist;
79 /// type currently being shown
82 /// depth of list shown