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"
25 /** This class provides an XForms implementation of the FormIndex Dialog.
27 class FormIndex : public FormCommand {
30 FormIndex(LyXView *, Dialogs *);
32 /// Pointer to the actual instantiation of the ButtonController.
33 virtual xformsBC & bc();
34 /// Connect signals etc. Set form's max size.
35 virtual void connect();
38 /// Update dialog before showing it
39 virtual void update();
40 /// Apply from dialog (modify or create inset)
42 /// Pointer to the actual instantiation of the xforms form
43 virtual FL_FORM * form() const;
45 FD_form_index * build_index();
46 /// Real GUI implementation.
47 boost::scoped_ptr<FD_form_index> dialog_;
48 /// The ButtonController
49 ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
54 xformsBC & FormIndex::bc()