2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ======================================================
15 #include <boost/smart_ptr.hpp>
21 #include "FormInset.h"
27 /** This class provides an XForms implementation of the FormToc Dialog.
29 class FormToc : public FormCommand {
32 FormToc(LyXView *, Dialogs *);
34 /// Pointer to the actual instantiation of the ButtonController.
35 virtual xformsBC & bc();
36 /// Disconnect signals. Also perform any necessary housekeeping.
37 virtual void disconnect();
41 /// bool indicates if a buffer switch took place
42 virtual void updateSlot(bool) { update(); }
43 /// Update dialog before showing it
44 virtual void update();
45 /// Filter the inputs on callback from xforms
46 virtual bool input( FL_OBJECT *, long);
47 /// Pointer to the actual instantiation of the xforms form
48 virtual FL_FORM * form() const;
52 FD_form_toc * build_toc();
55 Buffer::SingleList toclist;
56 /// Real GUI implementation.
57 boost::scoped_ptr<FD_form_toc> dialog_;
58 /// The ButtonController
59 ButtonController<OkCancelPolicy, xformsBC> bc_;
64 xformsBC & FormToc::bc()