2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 *======================================================*/
12 * FormMinipage Interface Class
15 #ifndef FORMMINIPAGE_H
16 #define FORMMINIPAGE_H
18 #include <boost/smart_ptr.hpp>
24 #include "FormInset.h"
30 struct FD_form_minipage;
32 /** This class provides an XForms implementation of the FormMinipage
35 class FormMinipage : public FormInset {
37 /// #FormMinipage x(LyXView ..., Dialogs ...);#
38 FormMinipage(LyXView *, Dialogs *);
41 /// Pointer to the actual instantiation of the ButtonController.
42 virtual xformsBC & bc();
43 /// Connect signals etc.
44 virtual void connect();
46 /// Slot launching dialog to an existing inset
47 void showInset(InsetMinipage *);
48 /// Slot launching dialog to an existing inset
49 void updateInset(InsetMinipage *);
52 /// Update dialog before showing it
53 virtual void update();
54 /// Pointer to the actual instantiation of the xforms form
55 virtual FL_FORM * form() const;
60 FD_form_minipage * build_minipage();
62 /// Real GUI implementation.
63 boost::scoped_ptr<FD_form_minipage> dialog_;
64 /// The ButtonController
65 ButtonController<OkApplyCancelReadOnlyPolicy, xformsBC> bc_;
67 /// pointer to the inset passed through showInset
68 InsetMinipage * inset_;
73 xformsBC & FormMinipage::bc()