LibreOffice Module dbaccess (master) 1
|
eases the implementation of tab pages handling user/password and/or character set and/or generic options input
The controls to be used have to be defined within the resource, as usual, but this class does all the handling necessary.
More...
#include <detailpages.hxx>
Public Member Functions | |
virtual bool | FillItemSet (SfxItemSet *_rCoreAttrs) override |
OCommonBehaviourTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rId, const SfxItemSet &_rCoreAttrs, OCommonBehaviourTabPageFlags nControlFlags) | |
Public Member Functions inherited from dbaui::OGenericAdministrationPage | |
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 () |
Protected Member Functions | |
virtual | ~OCommonBehaviourTabPage () override |
virtual void | implInitControls (const SfxItemSet &_rSet, bool _bSaveValue) override |
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) override |
will be called inside <method>implInitControls</method> to save the value if necessary More... | |
virtual void | fillWindows (std::vector< std::unique_ptr< ISaveValueWrapper > > &_rControlList) override |
will be called inside <method>implInitControls</method> to disable if necessary More... | |
Protected Member Functions inherited from dbaui::OGenericAdministrationPage | |
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 |
Private Member Functions | |
DECL_LINK (CharsetSelectHdl, weld::ComboBox &, void) | |
Private Attributes | |
OCommonBehaviourTabPageFlags | m_nControlFlags |
std::unique_ptr< weld::Label > | m_xOptionsLabel |
std::unique_ptr< weld::Entry > | m_xOptions |
std::unique_ptr< weld::Label > | m_xDataConvertLabel |
std::unique_ptr< weld::Label > | m_xCharsetLabel |
std::unique_ptr< CharSetListBox > | m_xCharset |
Additional Inherited Members | |
Static Public Member Functions inherited from dbaui::OGenericAdministrationPage | |
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) |
Static Protected Member Functions inherited from dbaui::OGenericAdministrationPage | |
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 inherited from dbaui::OGenericAdministrationPage | |
IDatabaseSettingsDialog * | m_pAdminDialog |
IItemSetHelper * | m_pItemSetHelper |
css::uno::Reference< css::uno::XComponentContext > | m_xORB |
eases the implementation of tab pages handling user/password and/or character set and/or generic options input
The controls to be used have to be defined within the resource, as usual, but this class does all the handling necessary.
Definition at line 46 of file detailpages.hxx.
dbaui::OCommonBehaviourTabPage::OCommonBehaviourTabPage | ( | weld::Container * | pPage, |
weld::DialogController * | pController, | ||
const OUString & | rUIXMLDescription, | ||
const OUString & | rId, | ||
const SfxItemSet & | _rCoreAttrs, | ||
OCommonBehaviourTabPageFlags | nControlFlags | ||
) |
Definition at line 54 of file detailpages.cxx.
References LINK, m_nControlFlags, m_xCharset, m_xCharsetLabel, m_xDataConvertLabel, m_xOptions, m_xOptionsLabel, UseCharset, and UseOptions.
|
overrideprotectedvirtual |
Definition at line 86 of file detailpages.cxx.
References m_xCharset.
|
private |
|
overrideprotectedvirtual |
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. |
Implements dbaui::OGenericAdministrationPage.
Reimplemented in dbaui::OUserDriverDetailsPage, dbaui::MySQLNativePage, and dbaui::OTextDetailsPage.
Definition at line 104 of file detailpages.cxx.
References m_nControlFlags, m_xCharset, m_xOptions, UseCharset, and UseOptions.
Referenced by dbaui::OUserDriverDetailsPage::fillControls(), dbaui::MySQLNativePage::fillControls(), and dbaui::OTextDetailsPage::fillControls().
|
overridevirtual |
Reimplemented from SfxTabPage.
Reimplemented in dbaui::ODbaseDetailsPage, dbaui::OOdbcDetailsPage, dbaui::OUserDriverDetailsPage, dbaui::OGeneralSpecialJDBCDetailsPage, dbaui::MySQLNativePage, dbaui::OLDAPDetailsPage, and dbaui::OTextDetailsPage.
Definition at line 140 of file detailpages.cxx.
References DSID_ADDITIONALOPTIONS, DSID_CHARSET, dbaui::OGenericAdministrationPage::fillString(), m_nControlFlags, m_xCharset, m_xOptions, UseCharset, and UseOptions.
Referenced by dbaui::ODbaseDetailsPage::FillItemSet(), dbaui::OOdbcDetailsPage::FillItemSet(), dbaui::OUserDriverDetailsPage::FillItemSet(), dbaui::OGeneralSpecialJDBCDetailsPage::FillItemSet(), dbaui::MySQLNativePage::FillItemSet(), dbaui::OLDAPDetailsPage::FillItemSet(), and dbaui::OTextDetailsPage::FillItemSet().
|
overrideprotectedvirtual |
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. |
Implements dbaui::OGenericAdministrationPage.
Reimplemented in dbaui::OUserDriverDetailsPage, dbaui::MySQLNativePage, and dbaui::OTextDetailsPage.
Definition at line 91 of file detailpages.cxx.
References m_nControlFlags, m_xCharsetLabel, m_xOptionsLabel, UseCharset, and UseOptions.
Referenced by dbaui::OUserDriverDetailsPage::fillWindows(), dbaui::MySQLNativePage::fillWindows(), and dbaui::OTextDetailsPage::fillWindows().
|
overrideprotectedvirtual |
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 from dbaui::OGenericAdministrationPage.
Reimplemented in dbaui::ODbaseDetailsPage, dbaui::OOdbcDetailsPage, dbaui::OUserDriverDetailsPage, dbaui::OGeneralSpecialJDBCDetailsPage, dbaui::MySQLNativePage, dbaui::OLDAPDetailsPage, and dbaui::OTextDetailsPage.
Definition at line 113 of file detailpages.cxx.
References DSID_ADDITIONALOPTIONS, DSID_CHARSET, dbaui::OGenericAdministrationPage::getFlags(), SfxItemSet::GetItem(), CntUnencodedStringItem::GetValue(), dbaui::OGenericAdministrationPage::implInitControls(), m_nControlFlags, m_xCharset, m_xOptions, UseCharset, and UseOptions.
Referenced by dbaui::ODbaseDetailsPage::implInitControls(), dbaui::OOdbcDetailsPage::implInitControls(), dbaui::OUserDriverDetailsPage::implInitControls(), dbaui::OGeneralSpecialJDBCDetailsPage::implInitControls(), dbaui::MySQLNativePage::implInitControls(), dbaui::OLDAPDetailsPage::implInitControls(), and dbaui::OTextDetailsPage::implInitControls().
|
private |
Definition at line 48 of file detailpages.hxx.
Referenced by fillControls(), FillItemSet(), fillWindows(), implInitControls(), and OCommonBehaviourTabPage().
|
private |
Definition at line 55 of file detailpages.hxx.
Referenced by fillControls(), FillItemSet(), implInitControls(), OCommonBehaviourTabPage(), and ~OCommonBehaviourTabPage().
|
private |
Definition at line 54 of file detailpages.hxx.
Referenced by fillWindows(), and OCommonBehaviourTabPage().
|
private |
Definition at line 53 of file detailpages.hxx.
Referenced by OCommonBehaviourTabPage().
|
private |
Definition at line 51 of file detailpages.hxx.
Referenced by fillControls(), FillItemSet(), implInitControls(), and OCommonBehaviourTabPage().
|
private |
Definition at line 50 of file detailpages.hxx.
Referenced by fillWindows(), and OCommonBehaviourTabPage().