LibreOffice Module dbaccess (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
dbaui::OUserAdminDlg Class Reference

implements the user admin dialog More...

#include <UserAdminDlg.hxx>

Inheritance diagram for dbaui::OUserAdminDlg:
[legend]
Collaboration diagram for dbaui::OUserAdminDlg:
[legend]

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 SfxItemSetgetOutputSet () const override
 
virtual SfxItemSetgetWriteOutputSet () 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
 
SfxTabPageGetCurTabPage () const
 
const WhichRangesContainerGetInputRanges (const SfxItemPool &)
 
void SetInputSet (const SfxItemSet *pInSet)
 
const SfxItemSetGetOutputItemSet () const
 
virtual weld::ButtonGetOKButton () const override
 
weld::ButtonGetCancelButton () const
 
weld::ButtonGetUserButton () const
 
weld::ButtonGetStandardButton () const
 
weld::ButtonGetApplyButton () const
 
weld::ButtonGetResetButton () const
 
void RemoveResetButton ()
 
void RemoveStandardButton ()
 
virtual short run () override
 
virtual const SfxItemSetGetExampleSet () 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::ButtonGetOKButton () const=0
 
virtual const SfxItemSetGetExampleSet () 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 SfxItemSetgetOutputSet () const =0
 
virtual SfxItemSetgetWriteOutputSet ()=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 SfxItemSetCreateInputItemSet (const OUString &rName)
 
virtual void PageCreated (const OUString &rName, SfxTabPage &rPage)
 
virtual void ActivatePage (const OUString &rPage)
 
bool DeactivatePage (std::u16string_view aPage)
 
SfxItemSetGetInputSetImpl ()
 
SfxTabPageGetTabPage (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::Windowm_pParent
 
std::unique_ptr< ODbDataSourceAdministrationHelperm_pImpl
 
SfxItemSetm_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::Notebookm_xTabCtrl
 
std::unique_ptr< SfxItemSetm_xExampleSet
 

Detailed Description

implements the user admin dialog

Definition at line 42 of file UserAdminDlg.hxx.

Constructor & Destructor Documentation

◆ OUserAdminDlg()

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 
)

◆ ~OUserAdminDlg()

dbaui::OUserAdminDlg::~OUserAdminDlg ( )
overridevirtual

Member Function Documentation

◆ clearPassword()

void dbaui::OUserAdminDlg::clearPassword ( )
overridevirtual

Implements dbaui::IDatabaseSettingsDialog.

Definition at line 147 of file UserAdminDlg.cxx.

References m_pImpl.

◆ createConnection()

std::pair< Reference< XConnection >, bool > dbaui::OUserAdminDlg::createConnection ( )
overridevirtual

Implements dbaui::IDatabaseSettingsDialog.

Definition at line 126 of file UserAdminDlg.cxx.

References m_bOwnConnection, m_pImpl, and m_xConnection.

Referenced by run().

◆ enableConfirmSettings()

void dbaui::OUserAdminDlg::enableConfirmSettings ( bool  _bEnable)
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.

◆ getDatasourceType()

OUString dbaui::OUserAdminDlg::getDatasourceType ( const SfxItemSet _rSet) const
overridevirtual

◆ getDriver()

Reference< XDriver > dbaui::OUserAdminDlg::getDriver ( )
overridevirtual

Implements dbaui::IDatabaseSettingsDialog.

Definition at line 139 of file UserAdminDlg.cxx.

References m_pImpl.

◆ getORB()

Reference< XComponentContext > dbaui::OUserAdminDlg::getORB ( ) const
overridevirtual

Implements dbaui::IDatabaseSettingsDialog.

Definition at line 135 of file UserAdminDlg.cxx.

References m_pImpl.

Referenced by run().

◆ getOutputSet()

const SfxItemSet * dbaui::OUserAdminDlg::getOutputSet ( ) const
overridevirtual

Implements dbaui::IItemSetHelper.

Definition at line 118 of file UserAdminDlg.cxx.

References m_pItemSet.

◆ getWriteOutputSet()

SfxItemSet * dbaui::OUserAdminDlg::getWriteOutputSet ( )
overridevirtual

Implements dbaui::IItemSetHelper.

Definition at line 122 of file UserAdminDlg.cxx.

References m_pItemSet.

◆ PageCreated()

void dbaui::OUserAdminDlg::PageCreated ( const OUString &  rId,
SfxTabPage _rPage 
)
overrideprotectedvirtual

Reimplemented from SfxTabDialogController.

Definition at line 111 of file UserAdminDlg.cxx.

References m_pImpl, and SfxTabDialogController::PageCreated().

◆ run()

short dbaui::OUserAdminDlg::run ( )
overridevirtual

◆ saveDatasource()

void dbaui::OUserAdminDlg::saveDatasource ( )
overridevirtual

◆ setTitle()

void dbaui::OUserAdminDlg::setTitle ( const OUString &  _sTitle)
overridevirtual

Implements dbaui::IDatabaseSettingsDialog.

Definition at line 151 of file UserAdminDlg.cxx.

References m_xDialog.

Member Data Documentation

◆ m_bOwnConnection

bool dbaui::OUserAdminDlg::m_bOwnConnection
private

Definition at line 48 of file UserAdminDlg.hxx.

Referenced by createConnection(), and ~OUserAdminDlg().

◆ m_pImpl

std::unique_ptr<ODbDataSourceAdministrationHelper> dbaui::OUserAdminDlg::m_pImpl
private

◆ m_pItemSet

SfxItemSet* dbaui::OUserAdminDlg::m_pItemSet
private

Definition at line 46 of file UserAdminDlg.hxx.

Referenced by getOutputSet(), and getWriteOutputSet().

◆ m_pParent

weld::Window* dbaui::OUserAdminDlg::m_pParent
private

Definition at line 44 of file UserAdminDlg.hxx.

Referenced by run().

◆ m_xConnection

css::uno::Reference< css::sdbc::XConnection> dbaui::OUserAdminDlg::m_xConnection
private

Definition at line 47 of file UserAdminDlg.hxx.

Referenced by createConnection(), and ~OUserAdminDlg().


The documentation for this class was generated from the following files: