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