2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ======================================================
19 #include "FormInset.h"
23 /** This class provides an XForms implementation of the FormToc Dialog.
25 class FormToc : public FormCommand {
28 FormToc(LyXView *, Dialogs *);
32 /// Disconnect signals. Also perform any necessary housekeeping.
33 virtual void disconnect();
37 /// bool indicates if a buffer switch took place
38 virtual void updateSlot(bool) { update(); }
39 /// Update dialog before showing it
40 virtual void update();
41 /// Filter the inputs on callback from xforms
42 virtual bool input( FL_OBJECT *, long);
43 /// Pointer to the actual instantiation of the xform's form
44 virtual FL_FORM * form() const;
48 FD_form_toc * build_toc();
50 /// Real GUI implementation.
51 FD_form_toc * dialog_;
53 std::vector<Buffer::TocItem> toclist;