4 * Copyright 2001 the LyX Team
7 * \author Alejandro Aguilar Sierra
13 #include <boost/smart_ptr.hpp>
19 #include "FormBaseDeprecated.h"
20 #include "insets/insetinclude.h"
22 struct FD_form_include;
24 /** This class provides an XForms implementation of the FormInclude Dialog.
26 class FormInclude : public FormBaseBD {
29 FormInclude(LyXView *, Dialogs *);
35 /// the load file button
37 /// the verbatim radio choice
39 /// the input and include radio choices
43 /// Pointer to the actual instantiation of the ButtonController.
44 virtual xformsBC & bc();
45 /// Slot launching dialog to an existing inset
46 void showInclude(InsetInclude *);
48 /// Connect signals. Also perform any necessary initialisation.
49 virtual void connect();
50 /// Disconnect signals. Also perform any necessary housekeeping.
51 virtual void disconnect();
56 virtual bool input( FL_OBJECT *, long );
57 /// Update dialog before showing it
58 virtual void update();
59 /// Apply from dialog (modify or create inset)
61 /// Pointer to the actual instantiation of the xforms form
62 virtual FL_FORM * form() const;
63 /// bool indicates if a buffer switch took place
64 virtual void updateSlot(bool);
67 /// Type definition from the fdesign produced header file.
68 FD_form_include * build_include();
70 /// Real GUI implementation.
71 boost::scoped_ptr<FD_form_include> dialog_;
72 /// The ButtonController
73 ButtonController<OkCancelReadOnlyPolicy, xformsBC> bc_;
75 /// inset::hide connection.
78 /// pointer to the inset passed through showInset
79 InsetInclude * inset_;
80 /// the nitty-gritty. What is modified and passed back
81 InsetInclude::InsetIncludeParams params;
86 xformsBC & FormInclude::bc()