85 class IDatabaseSettingsDialog;
88 ,
public ::vcl::IWizardPageController
97 css::uno::Reference< css::uno::XComponentContext >
112 OSL_ENSURE(_pDialog && _pItemSetHelper,
"Values are NULL!");
175 virtual void fillControls(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) = 0;
182 virtual void fillWindows(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) = 0;
helper class to wrap the savevalue and disable call
virtual void SaveValue()=0
OGenericAdministrationPage(weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rId, const SfxItemSet &rAttrSet)
virtual void fillWindows(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList)=0
will be called inside <method>implInitControls</method> to disable if necessary
DECL_LINK(OnTestConnectionButtonClickHdl, weld::Button &, void)
bool m_abEnableRoadmap
to be called if something on the page has been modified
DECL_LINK(OnControlSpinButtonModifyHdl, weld::SpinButton &, void)
virtual void Activate() override
static void getFlags(const SfxItemSet &_rSet, bool &_rValid, bool &_rReadonly)
analyze the invalid and the readonly flag which may be present in the set
virtual void ActivatePage(const SfxItemSet &_rSet) override
default implementation: call implInitControls with the given item set and _bSaveValue = sal_True
void SetAdminDialog(IDatabaseSettingsDialog *_pDialog, IItemSetHelper *_pItemSetHelper)
Sets the ParentDialog.
virtual void Reset(const SfxItemSet *_rCoreAttrs) override
default implementation: call implInitControls with the given item set and _bSaveValue = sal_False
virtual void fillControls(std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList)=0
will be called inside <method>implInitControls</method> to save the value if necessary
IDatabaseSettingsDialog * m_pAdminDialog
virtual void initializePage() override
void SetModifiedHandler(const Link< OGenericAdministrationPage const *, void > &_rHandler)
set a handler which gets called every time something on the page has been modified
bool GetRoadmapStateValue() const
static void fillString(SfxItemSet &_rSet, const weld::Entry *pEdit, TypedWhichId< SfxStringItem > _nID, bool &_bChangedSomething)
fills the String value into the item set when the value changed.
virtual bool prepareLeave()
called from within DeactivatePage. The page is allowed to be deactivated if this method returns sal_T...
Link< OGenericAdministrationPage const *, void > m_aModifiedHandler
void SetRoadmapStateValue(bool _bDoEnable)
virtual bool canAdvance() const override
DECL_LINK(OnControlEntryModifyHdl, weld::Entry &, void)
css::uno::Reference< css::uno::XComponentContext > m_xORB
void SetServiceFactory(const css::uno::Reference< css::uno::XComponentContext > &rxORB)
Sets the ServiceFactory.
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
default implementation: call FillItemSet, call prepareLeave,
virtual void callModifiedHdl(weld::Widget *=nullptr)
virtual bool commitPage(::vcl::WizardTypes::CommitPageReason _eReason) override
DECL_LINK(OnControlModifiedButtonClick, weld::Toggleable &, void)
bool getSelectedDataSource(OUString &_sReturn, OUString const &_sCurr)
opens a dialog filled with all data sources available for this type and returns the selected on.
virtual void implInitControls(const SfxItemSet &_rSet, bool _bSaveValue)
called from within Reset and ActivatePage, use to initialize the controls with the items from the giv...
DECL_LINK(OnControlModified, weld::Widget *, void)
This link be used for controls where the tabpage does not need to take any special action when the co...
static void fillBool(SfxItemSet &_rSet, const weld::CheckButton *pCheckBox, sal_uInt16 _nID, bool bOptionalBool, bool &_bChangedSomething, bool _bRevertValue=false)
fills the Boolean value into the item set when the value changed.
static void fillInt32(SfxItemSet &_rSet, const weld::SpinButton *pEdit, TypedWhichId< SfxInt32Item > _nID, bool &_bChangedSomething)
fills the int value into the item set when the value changed.
IItemSetHelper * m_pItemSetHelper