LibreOffice Module dbaccess (master) 1
|
#include <adminpages.hxx>
Public Member Functions | |
OGenericAdministrationPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rId, const SfxItemSet &rAttrSet) | |
void | SetModifiedHandler (const Link< OGenericAdministrationPage const *, void > &_rHandler) |
set a handler which gets called every time something on the page has been modified More... | |
void | SetAdminDialog (IDatabaseSettingsDialog *_pDialog, IItemSetHelper *_pItemSetHelper) |
Sets the ParentDialog. More... | |
void | SetServiceFactory (const css::uno::Reference< css::uno::XComponentContext > &rxORB) |
Sets the ServiceFactory. More... | |
bool | getSelectedDataSource (OUString &_sReturn, OUString const &_sCurr) |
opens a dialog filled with all data sources available for this type and returns the selected on. More... | |
virtual void | initializePage () override |
virtual bool | commitPage (::vcl::WizardTypes::CommitPageReason _eReason) override |
virtual bool | canAdvance () const override |
void | SetRoadmapStateValue (bool _bDoEnable) |
bool | GetRoadmapStateValue () const |
Public Member Functions inherited from SfxTabPage | |
void | SetDialogController (SfxOkDialogController *pDialog) |
virtual | ~SfxTabPage () override |
void | set_visible (bool bVisible) |
const SfxItemSet & | GetItemSet () const |
virtual bool | FillItemSet (SfxItemSet *) |
virtual void | Reset (const SfxItemSet *) |
virtual bool | DeferResetToFirstActivation () |
bool | HasExchangeSupport () const |
void | SetExchangeSupport () |
virtual void | ActivatePage (const SfxItemSet &) |
virtual DeactivateRC | DeactivatePage (SfxItemSet *pSet) |
void | SetUserData (const OUString &rString) |
const OUString & | GetUserData () const |
virtual void | FillUserData () |
virtual bool | IsReadOnly () const |
virtual void | PageCreated (const SfxAllItemSet &aSet) |
virtual void | ChangesApplied () |
void | SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame) |
css::uno::Reference< css::frame::XFrame > | GetFrame () const |
const SfxItemSet * | GetDialogExampleSet () const |
OUString | GetHelpId () const |
OUString | GetConfigId () const |
bool | IsVisible () const |
weld::Window * | GetFrameWeld () const |
std::unordered_map< OUString, css::uno::Any > & | getAdditionalProperties () |
Static Public Member Functions | |
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. More... | |
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. More... | |
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. More... | |
static void | fillString (SfxItemSet &_rSet, const dbaui::OConnectionURLEdit *pEdit, TypedWhichId< SfxStringItem > _nID, bool &_bChangedSomething) |
Static Public Member Functions inherited from SfxTabPage | |
static const SfxPoolItem * | GetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true) |
static const T * | GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true) |
Protected Member Functions | |
virtual DeactivateRC | DeactivatePage (SfxItemSet *pSet) override |
default implementation: call FillItemSet, call prepareLeave, More... | |
virtual void | Reset (const SfxItemSet *_rCoreAttrs) override |
default implementation: call implInitControls with the given item set and _bSaveValue = sal_False More... | |
virtual void | ActivatePage (const SfxItemSet &_rSet) override |
default implementation: call implInitControls with the given item set and _bSaveValue = sal_True More... | |
virtual void | Activate () override |
virtual void | callModifiedHdl (weld::Widget *=nullptr) |
virtual bool | prepareLeave () |
called from within DeactivatePage. The page is allowed to be deactivated if this method returns sal_True More... | |
virtual void | implInitControls (const SfxItemSet &_rSet, bool _bSaveValue) |
called from within Reset and ActivatePage, use to initialize the controls with the items from the given set More... | |
virtual void | fillControls (std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList)=0 |
will be called inside <method>implInitControls</method> to save the value if necessary More... | |
virtual void | fillWindows (std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList)=0 |
will be called inside <method>implInitControls</method> to disable if necessary More... | |
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 control is modified. More... | |
DECL_LINK (OnControlEntryModifyHdl, weld::Entry &, void) | |
DECL_LINK (OnControlSpinButtonModifyHdl, weld::SpinButton &, void) | |
DECL_LINK (OnControlModifiedButtonClick, weld::Toggleable &, void) | |
DECL_LINK (OnTestConnectionButtonClickHdl, weld::Button &, void) | |
Protected Member Functions inherited from SfxTabPage | |
SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *rAttrSet) | |
sal_uInt16 | GetWhich (sal_uInt16 nSlot, bool bDeep=true) const |
TypedWhichId< T > | GetWhich (TypedWhichId< T > nSlot, bool bDeep=true) const |
const SfxPoolItem * | GetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true) |
const T * | GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true) |
SfxOkDialogController * | GetDialogController () const |
Static Protected Member Functions | |
static void | getFlags (const SfxItemSet &_rSet, bool &_rValid, bool &_rReadonly) |
analyze the invalid and the readonly flag which may be present in the set More... | |
Protected Attributes | |
IDatabaseSettingsDialog * | m_pAdminDialog |
IItemSetHelper * | m_pItemSetHelper |
css::uno::Reference< css::uno::XComponentContext > | m_xORB |
Private Attributes | |
Link< OGenericAdministrationPage const *, void > | m_aModifiedHandler |
bool | m_abEnableRoadmap |
to be called if something on the page has been modified More... | |
Definition at line 87 of file adminpages.hxx.
dbaui::OGenericAdministrationPage::OGenericAdministrationPage | ( | weld::Container * | pPage, |
weld::DialogController * | pController, | ||
const OUString & | rUIXMLDescription, | ||
const OUString & | rId, | ||
const SfxItemSet & | rAttrSet | ||
) |
Definition at line 51 of file adminpages.cxx.
References m_xContainer, SfxTabPage::SetExchangeSupport(), WIZARD_PAGE_X, and WIZARD_PAGE_Y.
|
overrideprotectedvirtual |
Definition at line 80 of file adminpages.cxx.
References BuilderPage::Activate(), ActivatePage(), dbaui::IItemSetHelper::getOutputSet(), and m_pItemSetHelper.
|
overrideprotectedvirtual |
default implementation: call implInitControls with the given item set and _bSaveValue = sal_True
Reimplemented from SfxTabPage.
Definition at line 88 of file adminpages.cxx.
References implInitControls().
Referenced by Activate().
|
inlineprotectedvirtual |
Reimplemented in dbaui::OLDAPConnectionPageSetup, dbaui::MySQLNativeSetupPage, dbaui::OGeneralSpecialJDBCConnectionPageSetup, and dbaui::OGeneralSpecialJDBCDetailsPage.
Definition at line 157 of file adminpages.hxx.
References m_aModifiedHandler.
Referenced by dbaui::OConnectionHelper::askForFileName(), dbaui::OLDAPConnectionPageSetup::callModifiedHdl(), dbaui::MySQLNativeSetupPage::callModifiedHdl(), dbaui::OGeneralSpecialJDBCConnectionPageSetup::callModifiedHdl(), dbaui::OGeneralSpecialJDBCDetailsPage::callModifiedHdl(), dbaui::OConnectionHelper::checkPathExistence(), dbaui::OConnectionHelper::commitURL(), dbaui::OConnectionTabPageSetup::implInitControls(), and dbaui::OPostgresConnectionPageSetup::implInitControls().
|
overridevirtual |
Definition at line 186 of file adminpages.cxx.
|
overridevirtual |
Reimplemented in dbaui::OConnectionTabPageSetup, and dbaui::OPostgresConnectionPageSetup.
Definition at line 182 of file adminpages.cxx.
|
overrideprotectedvirtual |
default implementation: call FillItemSet, call prepareLeave,
Reimplemented from SfxTabPage.
Reimplemented in dbaui::OTableSubscriptionPage.
Definition at line 63 of file adminpages.cxx.
References SfxTabPage::FillItemSet(), and prepareLeave().
Referenced by dbaui::OTableSubscriptionPage::DeactivatePage().
|
protected |
|
protected |
This link be used for controls where the tabpage does not need to take any special action when the control is modified.
The implementation just calls callModifiedHdl.
|
protected |
|
protected |
|
protected |
|
static |
fills the Boolean value into the item set when the value changed.
_rSet | The item set where to put the new value into. |
_pCheckBox | The check box which is checked. |
_nID | The id in the itemset to set with the new value. |
_bChangedSomething | <TRUE> if something changed otherwise <FALSE> |
_bRevertValue | set to <TRUE> if the display value should be reverted before putting it into the set |
Definition at line 190 of file adminpages.cxx.
References weld::Toggleable::get_active(), weld::Toggleable::get_state(), weld::Toggleable::get_state_changed_from_saved(), SfxItemSet::Put(), dbaui::OptionalBoolItem::SetValue(), and TRISTATE_INDET.
Referenced by dbaui::GeneratedValuesPage::FillItemSet(), dbaui::OConnectionTabPage::FillItemSet(), dbaui::OSpreadSheetConnectionPageSetup::FillItemSet(), dbaui::OLDAPConnectionPageSetup::FillItemSet(), dbaui::OAuthentificationPageSetup::FillItemSet(), dbaui::ODbaseDetailsPage::FillItemSet(), dbaui::OOdbcDetailsPage::FillItemSet(), dbaui::OUserDriverDetailsPage::FillItemSet(), dbaui::MySQLNativePage::FillItemSet(), and dbaui::OLDAPDetailsPage::FillItemSet().
|
protectedpure virtual |
will be called inside <method>implInitControls</method> to save the value if necessary
_rControlList | The list must be filled with the controls. It is not allowed to clear the list before pushing data into it. |
Implemented in dbaui::SpecialSettingsPage, dbaui::GeneratedValuesPage, dbaui::OConnectionHelper, dbaui::OSpreadSheetConnectionPageSetup, dbaui::OTextConnectionPageSetup, dbaui::OLDAPConnectionPageSetup, dbaui::MySQLNativeSetupPage, dbaui::OGeneralSpecialJDBCConnectionPageSetup, dbaui::OJDBCConnectionPageSetup, dbaui::OMySQLIntroPageSetup, dbaui::OPostgresConnectionPageSetup, dbaui::OAuthentificationPageSetup, dbaui::OFinalDBPageSetup, dbaui::OCommonBehaviourTabPage, dbaui::OUserDriverDetailsPage, dbaui::MySQLNativePage, dbaui::OTextDetailsPage, dbaui::OGeneralPage, dbaui::OTableSubscriptionPage, and dbaui::OUserAdmin.
Referenced by implInitControls().
|
static |
fills the int value into the item set when the value changed.
_rSet | The item set where to put the new value into. |
_pEdit | The check box which is checked. |
_nID | The id in the itemset to set with the new value. |
_bChangedSomething | <TRUE> if something changed otherwise <FALSE> |
Definition at line 211 of file adminpages.cxx.
References weld::SpinButton::get_value(), weld::Entry::get_value_changed_from_saved(), and SfxItemSet::Put().
Referenced by dbaui::OLDAPConnectionPageSetup::FillItemSet(), dbaui::OGeneralSpecialJDBCConnectionPageSetup::FillItemSet(), dbaui::OPostgresConnectionPageSetup::FillItemSet(), dbaui::OUserDriverDetailsPage::FillItemSet(), dbaui::OGeneralSpecialJDBCDetailsPage::FillItemSet(), dbaui::OLDAPDetailsPage::FillItemSet(), and dbaui::MySQLNativeSettings::FillItemSet().
|
static |
Definition at line 227 of file adminpages.cxx.
References dbaui::OConnectionURLEdit::get_value_changed_from_saved(), dbaui::OConnectionURLEdit::GetText(), and SfxItemSet::Put().
|
static |
fills the String value into the item set when the value changed.
_rSet | The item set where to put the new value into. |
_pEdit | The check box which is checked. |
_nID | The id in the itemset to set with the new value. |
_bChangedSomething | <TRUE> if something changed otherwise <FALSE> |
Definition at line 219 of file adminpages.cxx.
References weld::Entry::get_text(), weld::Entry::get_value_changed_from_saved(), and SfxItemSet::Put().
Referenced by dbaui::GeneratedValuesPage::FillItemSet(), dbaui::OConnectionTabPage::FillItemSet(), dbaui::OConnectionTabPageSetup::FillItemSet(), dbaui::OLDAPConnectionPageSetup::FillItemSet(), dbaui::OGeneralSpecialJDBCConnectionPageSetup::FillItemSet(), dbaui::OJDBCConnectionPageSetup::FillItemSet(), dbaui::OPostgresConnectionPageSetup::FillItemSet(), dbaui::OCommonBehaviourTabPage::FillItemSet(), dbaui::OUserDriverDetailsPage::FillItemSet(), dbaui::OGeneralSpecialJDBCDetailsPage::FillItemSet(), dbaui::OLDAPDetailsPage::FillItemSet(), and dbaui::MySQLNativeSettings::FillItemSet().
|
protectedpure virtual |
will be called inside <method>implInitControls</method> to disable if necessary
_rControlList | The list must be filled with the controls. It is not allowed to clear the list before pushing data into it. |
Implemented in dbaui::SpecialSettingsPage, dbaui::GeneratedValuesPage, dbaui::OConnectionHelper, dbaui::OSpreadSheetConnectionPageSetup, dbaui::OTextConnectionPageSetup, dbaui::OLDAPConnectionPageSetup, dbaui::MySQLNativeSetupPage, dbaui::OGeneralSpecialJDBCConnectionPageSetup, dbaui::OJDBCConnectionPageSetup, dbaui::OMySQLIntroPageSetup, dbaui::OPostgresConnectionPageSetup, dbaui::OAuthentificationPageSetup, dbaui::OFinalDBPageSetup, dbaui::OCommonBehaviourTabPage, dbaui::OUserDriverDetailsPage, dbaui::MySQLNativePage, dbaui::OTextDetailsPage, dbaui::OGeneralPage, dbaui::OTableSubscriptionPage, and dbaui::OUserAdmin.
Referenced by implInitControls().
|
staticprotected |
analyze the invalid and the readonly flag which may be present in the set
Definition at line 93 of file adminpages.cxx.
References DSID_INVALID_SELECTION, DSID_READONLY, SfxItemSet::GetItem(), and SfxBoolItem::GetValue().
Referenced by dbaui::OGeneralPageWizard::EnableControls(), dbaui::OTableSubscriptionPage::FillItemSet(), dbaui::OGeneralPage::getDatasourceName(), dbaui::OGeneralPageWizard::getEmbeddedDBName(), implInitControls(), dbaui::GeneratedValuesPage::implInitControls(), dbaui::OConnectionHelper::implInitControls(), dbaui::OConnectionTabPage::implInitControls(), dbaui::OTextConnectionPageSetup::implInitControls(), dbaui::OLDAPConnectionPageSetup::implInitControls(), dbaui::OGeneralSpecialJDBCConnectionPageSetup::implInitControls(), dbaui::OJDBCConnectionPageSetup::implInitControls(), dbaui::OPostgresConnectionPageSetup::implInitControls(), dbaui::OAuthentificationPageSetup::implInitControls(), dbaui::OCommonBehaviourTabPage::implInitControls(), dbaui::ODbaseDetailsPage::implInitControls(), dbaui::OOdbcDetailsPage::implInitControls(), dbaui::OUserDriverDetailsPage::implInitControls(), dbaui::OGeneralSpecialJDBCDetailsPage::implInitControls(), dbaui::MySQLNativePage::implInitControls(), dbaui::OLDAPDetailsPage::implInitControls(), dbaui::OTextDetailsPage::implInitControls(), dbaui::OGeneralPageDialog::implInitControls(), dbaui::OGeneralPageWizard::implInitControls(), and dbaui::OTableSubscriptionPage::implInitControls().
|
inline |
Definition at line 143 of file adminpages.hxx.
References m_abEnableRoadmap.
bool dbaui::OGenericAdministrationPage::getSelectedDataSource | ( | OUString & | _sReturn, |
OUString const & | _sCurr | ||
) |
opens a dialog filled with all data sources available for this type and returns the selected on.
_eType | The type for which the data source dialog should be opened. |
_sReturn | <OUT> contains the selected name. |
Definition at line 121 of file adminpages.cxx.
References Application::CreateMessageDialog(), DBA_RES, dbaui::OOdbcEnumeration::getDatasourceNames(), SfxTabPage::GetFrameWeld(), dbaui::OOdbcEnumeration::getLibraryName(), dbaui::ODatasourceSelectDialog::GetSelected(), dbaui::OOdbcEnumeration::isLoaded(), RET_OK, dbaui::ODatasourceSelectDialog::run(), and dbaui::ODatasourceSelectDialog::Select().
|
protectedvirtual |
called from within Reset and ActivatePage, use to initialize the controls with the items from the given set
_bSaveValue | if set to sal_True, the implementation should call SaveValue on all relevant controls |
Reimplemented in dbaui::SpecialSettingsPage, dbaui::GeneratedValuesPage, dbaui::OConnectionHelper, dbaui::OConnectionTabPage, dbaui::OConnectionTabPageSetup, dbaui::OTextConnectionPageSetup, dbaui::OLDAPConnectionPageSetup, dbaui::MySQLNativeSetupPage, dbaui::OGeneralSpecialJDBCConnectionPageSetup, dbaui::OJDBCConnectionPageSetup, dbaui::OMySQLIntroPageSetup, dbaui::OPostgresConnectionPageSetup, dbaui::OAuthentificationPageSetup, dbaui::OFinalDBPageSetup, dbaui::OCommonBehaviourTabPage, dbaui::ODbaseDetailsPage, dbaui::OOdbcDetailsPage, dbaui::OUserDriverDetailsPage, dbaui::OGeneralSpecialJDBCDetailsPage, dbaui::MySQLNativePage, dbaui::OLDAPDetailsPage, dbaui::OTextDetailsPage, dbaui::OGeneralPage, dbaui::OGeneralPageDialog, dbaui::OGeneralPageWizard, dbaui::OTableSubscriptionPage, and dbaui::OUserAdmin.
Definition at line 150 of file adminpages.cxx.
References fillControls(), fillWindows(), and getFlags().
Referenced by ActivatePage(), dbaui::IMPL_LINK_NOARG(), dbaui::GeneratedValuesPage::implInitControls(), dbaui::OConnectionHelper::implInitControls(), dbaui::OLDAPConnectionPageSetup::implInitControls(), dbaui::MySQLNativeSetupPage::implInitControls(), dbaui::OGeneralSpecialJDBCConnectionPageSetup::implInitControls(), dbaui::OPostgresConnectionPageSetup::implInitControls(), dbaui::OCommonBehaviourTabPage::implInitControls(), dbaui::OGeneralPage::implInitControls(), dbaui::OTableSubscriptionPage::implInitControls(), dbaui::OUserAdmin::implInitControls(), and Reset().
|
overridevirtual |
Definition at line 176 of file adminpages.cxx.
References dbaui::IItemSetHelper::getOutputSet(), m_pItemSetHelper, and Reset().
|
inlineprotectedvirtual |
called from within DeactivatePage. The page is allowed to be deactivated if this method returns sal_True
Reimplemented in dbaui::OTextConnectionPageSetup, and dbaui::OTextDetailsPage.
Definition at line 160 of file adminpages.hxx.
Referenced by DeactivatePage().
|
overrideprotectedvirtual |
default implementation: call implInitControls with the given item set and _bSaveValue = sal_False
Reimplemented from SfxTabPage.
Reimplemented in dbaui::OGeneralPage.
Definition at line 75 of file adminpages.cxx.
References implInitControls().
Referenced by initializePage(), and dbaui::OGeneralPage::Reset().
|
inline |
Sets the ParentDialog.
_pAdminDialog | the ParentDialog |
_pItemSetHelper | the itemset helper |
Definition at line 110 of file adminpages.hxx.
References m_pAdminDialog, and m_pItemSetHelper.
|
inline |
set a handler which gets called every time something on the page has been modified
Definition at line 102 of file adminpages.hxx.
References m_aModifiedHandler.
|
inline |
Definition at line 142 of file adminpages.hxx.
References m_abEnableRoadmap.
Referenced by dbaui::OConnectionHelper::askForFileName(), dbaui::OLDAPConnectionPageSetup::callModifiedHdl(), dbaui::MySQLNativeSetupPage::callModifiedHdl(), dbaui::OGeneralSpecialJDBCConnectionPageSetup::callModifiedHdl(), dbaui::OConnectionHelper::checkPathExistence(), dbaui::OConnectionHelper::commitURL(), dbaui::OConnectionTabPageSetup::implInitControls(), dbaui::OGeneralSpecialJDBCConnectionPageSetup::implInitControls(), dbaui::OJDBCConnectionPageSetup::implInitControls(), dbaui::OPostgresConnectionPageSetup::implInitControls(), dbaui::MySQLNativeSetupPage::MySQLNativeSetupPage(), dbaui::OConnectionTabPageSetup::OConnectionTabPageSetup(), dbaui::OGeneralSpecialJDBCConnectionPageSetup::OGeneralSpecialJDBCConnectionPageSetup(), dbaui::OLDAPConnectionPageSetup::OLDAPConnectionPageSetup(), and dbaui::OPostgresConnectionPageSetup::OPostgresConnectionPageSetup().
|
inline |
Sets the ServiceFactory.
_rxORB | The service factory. |
Definition at line 121 of file adminpages.hxx.
References m_xORB.
|
private |
to be called if something on the page has been modified
Definition at line 92 of file adminpages.hxx.
Referenced by GetRoadmapStateValue(), and SetRoadmapStateValue().
|
private |
Definition at line 91 of file adminpages.hxx.
Referenced by callModifiedHdl(), and SetModifiedHandler().
|
protected |
Definition at line 94 of file adminpages.hxx.
Referenced by dbaui::OConnectionTabPage::checkTestConnection(), dbaui::OJDBCConnectionPageSetup::checkTestConnection(), dbaui::OConnectionTabPage::implInitControls(), dbaui::OConnectionTabPageSetup::implInitControls(), dbaui::OUserAdmin::implInitControls(), dbaui::OConnectionHelper::implUpdateURLDependentStates(), SetAdminDialog(), and dbaui::OGeneralPageDialog::setParentTitle().
|
protected |
Definition at line 95 of file adminpages.hxx.
Referenced by Activate(), initializePage(), and SetAdminDialog().
|
protected |
Definition at line 98 of file adminpages.hxx.
Referenced by dbaui::OTableSubscriptionPage::implInitControls(), dbaui::OUserAdmin::implInitControls(), dbaui::OConnectionHelper::pathExists(), and SetServiceFactory().