|
LibreOffice Module dbaccess (master) 1
|
implements the user admin dialog More...
#include <UserAdminDlg.hxx>
Public Member Functions | |
| OUserAdminDlg (weld::Window *pParent, SfxItemSet *pItems, const css::uno::Reference< css::uno::XComponentContext > &rxORB, const css::uno::Any &rDataSourceName, const css::uno::Reference< css::sdbc::XConnection > &rConnection) | |
| virtual | ~OUserAdminDlg () override |
| virtual const SfxItemSet * | getOutputSet () const override |
| virtual SfxItemSet * | getWriteOutputSet () override |
| virtual short | run () override |
| virtual css::uno::Reference< css::uno::XComponentContext > | getORB () const override |
| virtual std::pair< css::uno::Reference< css::sdbc::XConnection >, bool > | createConnection () override |
| virtual css::uno::Reference< css::sdbc::XDriver > | getDriver () override |
| virtual OUString | getDatasourceType (const SfxItemSet &_rSet) const override |
| virtual void | clearPassword () override |
| virtual void | saveDatasource () override |
| virtual void | setTitle (const OUString &_sTitle) override |
| virtual void | enableConfirmSettings (bool _bEnable) override |
| enables or disables the user's possibility to confirm the settings More... | |
Public Member Functions inherited from SfxTabDialogController | |
| SfxTabDialogController (weld::Widget *pParent, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *=nullptr, bool bEditFmt=false) | |
| virtual | ~SfxTabDialogController () override |
| void | AddTabPage (const OUString &rName, CreateTabPage pCreateFunc, GetTabPageRanges pRangesFunc) |
| void | AddTabPage (const OUString &rName, sal_uInt16 nPageCreateId) |
| void | AddTabPage (const OUString &rName, const OUString &rLabel, CreateTabPage pCreateFunc) |
| void | AddTabPage (const OUString &rName, const OUString &rLabel, sal_uInt16 nPageCreateId) |
| void | RemoveTabPage (const OUString &rName) |
| void | SetCurPageId (const OUString &rName) |
| void | ShowPage (const OUString &rName) |
| OUString | GetCurPageId () const |
| SfxTabPage * | GetCurTabPage () const |
| const WhichRangesContainer & | GetInputRanges (const SfxItemPool &) |
| void | SetInputSet (const SfxItemSet *pInSet) |
| const SfxItemSet * | GetOutputItemSet () const |
| virtual weld::Button & | GetOKButton () const override |
| weld::Button & | GetCancelButton () const |
| weld::Button * | GetUserButton () const |
| weld::Button * | GetStandardButton () const |
| weld::Button * | GetApplyButton () const |
| weld::Button * | GetResetButton () const |
| void | RemoveResetButton () |
| void | RemoveStandardButton () |
| virtual short | run () override |
| virtual const SfxItemSet * | GetExampleSet () const override |
| void | SetApplyHandler (const Link< weld::Button &, void > &_rHdl) |
| bool | Apply () |
| void | Applied () |
| std::vector< OUString > | getAllPageUIXMLDescriptions () const |
| bool | selectPageByUIXMLDescription (const OUString &rUIXMLDescription) |
| BitmapEx | createScreenshot () const |
| OUString | GetScreenshotId () const |
Public Member Functions inherited from SfxOkDialogController | |
| SfxOkDialogController (weld::Widget *pParent, const OUString &rUIXMLDescription, const OUString &rID) | |
| virtual weld::Button & | GetOKButton () const=0 |
| virtual const SfxItemSet * | GetExampleSet () const=0 |
Public Member Functions inherited from SfxDialogController | |
| SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId) | |
| virtual void | Activate () |
| virtual void | Deactivate () |
| virtual void | ChildWinDispose () |
| virtual void | Close () |
| virtual void | EndDialog (int nResponse) |
| virtual bool | CloseOnHide () const |
| virtual const SfxItemSet * | getOutputSet () const =0 |
| virtual SfxItemSet * | getWriteOutputSet ()=0 |
| virtual css::uno::Reference< css::uno::XComponentContext > | getORB () const =0 |
| virtual std::pair< css::uno::Reference< css::sdbc::XConnection >, bool > | createConnection ()=0 |
| virtual css::uno::Reference< css::sdbc::XDriver > | getDriver ()=0 |
| virtual OUString | getDatasourceType (const SfxItemSet &_rSet) const =0 |
| virtual void | clearPassword ()=0 |
| virtual void | saveDatasource ()=0 |
| virtual void | setTitle (const OUString &_sTitle)=0 |
| virtual void | enableConfirmSettings (bool _bEnable)=0 |
| enables or disables the user's possibility to confirm the settings More... | |
Protected Member Functions | |
| virtual void | PageCreated (const OUString &rId, SfxTabPage &_rPage) override |
Protected Member Functions inherited from SfxTabDialogController | |
| DECL_LINK (OkHdl, weld::Button &, void) | |
| DECL_DLLPRIVATE_LINK (ResetHdl, weld::Button &, void) | |
| DECL_DLLPRIVATE_LINK (BaseFmtHdl, weld::Button &, void) | |
| DECL_DLLPRIVATE_LINK (UserHdl, weld::Button &, void) | |
| DECL_DLLPRIVATE_LINK (CancelHdl, weld::Button &, void) | |
| virtual short | Ok () |
| virtual void | RefreshInputSet () |
| virtual SfxItemSet * | CreateInputItemSet (const OUString &rName) |
| virtual void | PageCreated (const OUString &rName, SfxTabPage &rPage) |
| virtual void | ActivatePage (const OUString &rPage) |
| bool | DeactivatePage (std::u16string_view aPage) |
| SfxItemSet * | GetInputSetImpl () |
| SfxTabPage * | GetTabPage (std::u16string_view rPageId) const |
| bool | PrepareLeaveCurrentPage () |
| void | SavePosAndId () |
Protected Member Functions inherited from dbaui::IItemSetHelper | |
| ~IItemSetHelper () | |
Protected Member Functions inherited from dbaui::IDatabaseSettingsDialog | |
| ~IDatabaseSettingsDialog () | |
Private Attributes | |
| weld::Window * | m_pParent |
| std::unique_ptr< ODbDataSourceAdministrationHelper > | m_pImpl |
| SfxItemSet * | m_pItemSet |
| css::uno::Reference< css::sdbc::XConnection > | m_xConnection |
| bool | m_bOwnConnection |
Additional Inherited Members | |
Static Public Member Functions inherited from SfxTabDialogController | |
| static bool | runAsync (const std::shared_ptr< SfxTabDialogController > &rController, const std::function< void(sal_Int32)> &) |
Protected Attributes inherited from SfxTabDialogController | |
| std::unique_ptr< weld::Notebook > | m_xTabCtrl |
| std::unique_ptr< SfxItemSet > | m_xExampleSet |
implements the user admin dialog
Definition at line 42 of file UserAdminDlg.hxx.
| dbaui::OUserAdminDlg::OUserAdminDlg | ( | weld::Window * | pParent, |
| SfxItemSet * | pItems, | ||
| const css::uno::Reference< css::uno::XComponentContext > & | rxORB, | ||
| const css::uno::Any & | rDataSourceName, | ||
| const css::uno::Reference< css::sdbc::XConnection > & | rConnection | ||
| ) |
Definition at line 45 of file UserAdminDlg.cxx.
References SfxTabDialogController::AddTabPage(), dbaui::OUserAdmin::Create(), SfxTabDialogController::GetInputSetImpl(), m_pImpl, m_xDialog, SfxTabDialogController::m_xExampleSet, SfxTabDialogController::RemoveResetButton(), and SfxTabDialogController::SetInputSet().
|
overridevirtual |
Definition at line 70 of file UserAdminDlg.cxx.
References Exception, m_bOwnConnection, m_xConnection, and SfxTabDialogController::SetInputSet().
|
overridevirtual |
Implements dbaui::IDatabaseSettingsDialog.
Definition at line 147 of file UserAdminDlg.cxx.
References m_pImpl.
|
overridevirtual |
Implements dbaui::IDatabaseSettingsDialog.
Definition at line 126 of file UserAdminDlg.cxx.
References m_bOwnConnection, m_pImpl, and m_xConnection.
Referenced by run().
|
overridevirtual |
enables or disables the user's possibility to confirm the settings
In a wizard, disabling this will usually disable the "Finish" button. In a normal tab dialog, this will usually disable the "OK" button.
Implements dbaui::IDatabaseSettingsDialog.
Definition at line 155 of file UserAdminDlg.cxx.
|
overridevirtual |
Implements dbaui::IDatabaseSettingsDialog.
Definition at line 143 of file UserAdminDlg.cxx.
References dbaui::ODbDataSourceAdministrationHelper::getDatasourceType().
|
overridevirtual |
Implements dbaui::IDatabaseSettingsDialog.
Definition at line 139 of file UserAdminDlg.cxx.
References m_pImpl.
|
overridevirtual |
Implements dbaui::IDatabaseSettingsDialog.
Definition at line 135 of file UserAdminDlg.cxx.
References m_pImpl.
Referenced by run().
|
overridevirtual |
Implements dbaui::IItemSetHelper.
Definition at line 118 of file UserAdminDlg.cxx.
References m_pItemSet.
|
overridevirtual |
Implements dbaui::IItemSetHelper.
Definition at line 122 of file UserAdminDlg.cxx.
References m_pItemSet.
|
overrideprotectedvirtual |
Reimplemented from SfxTabDialogController.
Definition at line 111 of file UserAdminDlg.cxx.
References m_pImpl, and SfxTabDialogController::PageCreated().
|
overridevirtual |
Reimplemented from SfxTabDialogController.
Definition at line 86 of file UserAdminDlg.cxx.
References Any, createConnection(), DBA_RES, DBG_UNHANDLED_EXCEPTION, Exception, first, getORB(), SfxTabDialogController::GetOutputItemSet(), weld::Window::GetXWindow(), m_pImpl, m_pParent, RET_CANCEL, RET_OK, SfxTabDialogController::run(), and dbtools::DatabaseMetaData::supportsUserAdministration().
|
overridevirtual |
Implements dbaui::IDatabaseSettingsDialog.
Definition at line 156 of file UserAdminDlg.cxx.
References SfxTabDialogController::PrepareLeaveCurrentPage().
|
overridevirtual |
Implements dbaui::IDatabaseSettingsDialog.
Definition at line 151 of file UserAdminDlg.cxx.
References m_xDialog.
|
private |
Definition at line 48 of file UserAdminDlg.hxx.
Referenced by createConnection(), and ~OUserAdminDlg().
|
private |
Definition at line 45 of file UserAdminDlg.hxx.
Referenced by clearPassword(), createConnection(), getDriver(), getORB(), OUserAdminDlg(), PageCreated(), and run().
|
private |
Definition at line 46 of file UserAdminDlg.hxx.
Referenced by getOutputSet(), and getWriteOutputSet().
|
private |
Definition at line 44 of file UserAdminDlg.hxx.
Referenced by run().
|
private |
Definition at line 47 of file UserAdminDlg.hxx.
Referenced by createConnection(), and ~OUserAdminDlg().