LibreOffice Module dbaccess (master) 1
|
#include <UserAdmin.hxx>
Public Member Functions | |
OUserAdmin (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rCoreAttrs) | |
virtual | ~OUserAdmin () override |
OUString | GetUser () const |
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... | |
![]() | |
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 |
![]() | |
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 std::unique_ptr< SfxTabPage > | Create (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet) |
![]() | |
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 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) |
Private Member Functions | |
DECL_LINK (ListDblClickHdl, weld::ComboBox &, void) | |
DECL_LINK (MenuSelectHdl, const OUString &, void) | |
void | FillUserNames () |
Private Attributes | |
std::unique_ptr< weld::MenuButton > | mxActionBar |
std::unique_ptr< weld::ComboBox > | m_xUSER |
std::unique_ptr< weld::Container > | m_xTable |
css::uno::Reference< css::awt::XWindow > | m_xTableCtrlParent |
VclPtr< OTableGrantControl > | m_xTableCtrl |
css::uno::Reference< css::sdbc::XConnection > | m_xConnection |
css::uno::Reference< css::container::XNameAccess > | m_xUsers |
css::uno::Sequence< OUString > | m_aUserNames |
OUString | m_UserName |
Additional Inherited Members | |
![]() | |
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) | |
![]() | |
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 void | getFlags (const SfxItemSet &_rSet, bool &_rValid, bool &_rReadonly) |
analyze the invalid and the readonly flag which may be present in the set More... | |
![]() | |
IDatabaseSettingsDialog * | m_pAdminDialog |
IItemSetHelper * | m_pItemSetHelper |
css::uno::Reference< css::uno::XComponentContext > | m_xORB |
Definition at line 33 of file UserAdmin.hxx.
OUserAdmin::OUserAdmin | ( | weld::Container * | pPage, |
weld::DialogController * | pController, | ||
const SfxItemSet & | _rCoreAttrs | ||
) |
Definition at line 116 of file UserAdmin.cxx.
References Create(), DBA_RES, LINK, m_xTableCtrl, m_xUSER, MNI_ACTION_ADD_USER, MNI_ACTION_CHANGE_PASSWORD, MNI_ACTION_DEL_USER, and mxActionBar.
|
overridevirtual |
Definition at line 201 of file UserAdmin.cxx.
References m_xConnection, m_xTableCtrl, and m_xTableCtrlParent.
|
static |
Definition at line 255 of file UserAdmin.cxx.
Referenced by dbaui::OUserAdminDlg::OUserAdminDlg().
|
private |
|
private |
|
overridevirtual |
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.
Definition at line 273 of file UserAdmin.cxx.
|
private |
Definition at line 209 of file UserAdmin.cxx.
References GetUser(), m_aUserNames, m_UserName, m_xConnection, m_xTableCtrl, m_xUSER, m_xUsers, MNI_ACTION_ADD_USER, MNI_ACTION_CHANGE_PASSWORD, MNI_ACTION_DEL_USER, and mxActionBar.
Referenced by implInitControls().
|
overridevirtual |
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.
Definition at line 277 of file UserAdmin.cxx.
OUString OUserAdmin::GetUser | ( | ) | const |
|
overridevirtual |
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.
Definition at line 281 of file UserAdmin.cxx.
References dbaui::IDatabaseSettingsDialog::createConnection(), FillUserNames(), SfxTabPage::GetDialogController(), dbaui::IDatabaseSettingsDialog::getDriver(), dbaui::OGenericAdministrationPage::implInitControls(), dbaui::OGenericAdministrationPage::m_pAdminDialog, m_xConnection, dbaui::OGenericAdministrationPage::m_xORB, m_xTableCtrl, and m_xUsers.
|
private |
Definition at line 43 of file UserAdmin.hxx.
Referenced by FillUserNames().
|
private |
Definition at line 45 of file UserAdmin.hxx.
Referenced by FillUserNames().
|
private |
Definition at line 41 of file UserAdmin.hxx.
Referenced by FillUserNames(), implInitControls(), and ~OUserAdmin().
|
private |
Definition at line 37 of file UserAdmin.hxx.
|
private |
Definition at line 39 of file UserAdmin.hxx.
Referenced by FillUserNames(), implInitControls(), OUserAdmin(), and ~OUserAdmin().
|
private |
Definition at line 38 of file UserAdmin.hxx.
Referenced by ~OUserAdmin().
|
private |
Definition at line 36 of file UserAdmin.hxx.
Referenced by FillUserNames(), GetUser(), and OUserAdmin().
|
private |
Definition at line 42 of file UserAdmin.hxx.
Referenced by FillUserNames(), and implInitControls().
|
private |
Definition at line 35 of file UserAdmin.hxx.
Referenced by FillUserNames(), and OUserAdmin().