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"
26 /** This class provides an XForms implementation of the FormToc Dialog.
28 class FormToc : public FormCommand {
31 FormToc(LyXView *, Dialogs *);
33 /// Pointer to the actual instantiation of the ButtonController.
34 virtual xformsBC & bc();
35 /// Disconnect signals. Also perform any necessary housekeeping.
36 virtual void disconnect();
40 /// bool indicates if a buffer switch took place
41 virtual void updateSlot(bool) { update(); }
42 /// Update dialog before showing it
43 virtual void update();
44 /// Filter the inputs on callback from xforms
45 virtual bool input( FL_OBJECT *, long);
46 /// Pointer to the actual instantiation of the xforms form
47 virtual FL_FORM * form() const;
51 FD_form_toc * build_toc();
54 Buffer::SingleList toclist;
55 /// Real GUI implementation.
56 boost::scoped_ptr<FD_form_toc> dialog_;
57 /// The ButtonController
58 ButtonController<OkCancelPolicy, xformsBC> bc_;
63 xformsBC & FormToc::bc()