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

implements the advanced page dlg of the data source properties. More...

#include <advancedsettingsdlg.hxx>

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

Public Member Functions

 AdvancedSettingsDialog (weld::Window *pParent, SfxItemSet *_pItems, const css::uno::Reference< css::uno::XComponentContext > &_rxORB, const css::uno::Any &_aDataSourceName)
 
virtual ~AdvancedSettingsDialog () override
 
virtual const SfxItemSetgetOutputSet () const override
 
virtual SfxItemSetgetWriteOutputSet () 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...
 

Static Public Member Functions

static bool doesHaveAnyAdvancedSettings (const OUString &_sURL)
 determines whether or not the given data source type has any advanced setting More...
 
- Static Public Member Functions inherited from SfxTabDialogController
static bool runAsync (const std::shared_ptr< SfxTabDialogController > &rController, const std::function< void(sal_Int32)> &)
 

Protected Member Functions

virtual void PageCreated (const OUString &rId, SfxTabPage &_rPage) override
 
virtual short Ok () 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

std::unique_ptr< ODbDataSourceAdministrationHelperm_pImpl
 

Additional Inherited Members

- Protected Attributes inherited from SfxTabDialogController
std::unique_ptr< weld::Notebookm_xTabCtrl
 
std::unique_ptr< SfxItemSetm_xExampleSet
 

Detailed Description

implements the advanced page dlg of the data source properties.

Definition at line 33 of file advancedsettingsdlg.hxx.

Constructor & Destructor Documentation

◆ AdvancedSettingsDialog()

dbaui::AdvancedSettingsDialog::AdvancedSettingsDialog ( weld::Window pParent,
SfxItemSet _pItems,
const css::uno::Reference< css::uno::XComponentContext > &  _rxORB,
const css::uno::Any &  _aDataSourceName 
)

◆ ~AdvancedSettingsDialog()

dbaui::AdvancedSettingsDialog::~AdvancedSettingsDialog ( )
overridevirtual

Definition at line 390 of file advancedsettings.cxx.

References SfxTabDialogController::SetInputSet().

Member Function Documentation

◆ clearPassword()

void dbaui::AdvancedSettingsDialog::clearPassword ( )
overridevirtual

Implements dbaui::IDatabaseSettingsDialog.

Definition at line 451 of file advancedsettings.cxx.

References m_pImpl.

◆ createConnection()

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

Implements dbaui::IDatabaseSettingsDialog.

Definition at line 431 of file advancedsettings.cxx.

References m_pImpl.

◆ doesHaveAnyAdvancedSettings()

bool dbaui::AdvancedSettingsDialog::doesHaveAnyAdvancedSettings ( const OUString &  _sURL)
static

determines whether or not the given data source type has any advanced setting

Definition at line 395 of file advancedsettings.cxx.

References dbaui::DataSourceMetaData::getFeatureSet(), dbaui::FeatureSet::supportsAnySpecialSetting(), and dbaui::FeatureSet::supportsGeneratedValues().

Referenced by dbaui::OApplicationController::GetState().

◆ enableConfirmSettings()

void dbaui::AdvancedSettingsDialog::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 461 of file advancedsettings.cxx.

◆ getDatasourceType()

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

◆ getDriver()

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

Implements dbaui::IDatabaseSettingsDialog.

Definition at line 441 of file advancedsettings.cxx.

References m_pImpl.

◆ getORB()

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

Implements dbaui::IDatabaseSettingsDialog.

Definition at line 436 of file advancedsettings.cxx.

References m_pImpl.

Referenced by PageCreated().

◆ getOutputSet()

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

Implements dbaui::IItemSetHelper.

Definition at line 421 of file advancedsettings.cxx.

References SfxTabDialogController::m_xExampleSet.

◆ getWriteOutputSet()

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

Implements dbaui::IItemSetHelper.

Definition at line 426 of file advancedsettings.cxx.

References SfxTabDialogController::m_xExampleSet.

◆ Ok()

short dbaui::AdvancedSettingsDialog::Ok ( )
overrideprotectedvirtual

◆ PageCreated()

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

Reimplemented from SfxTabDialogController.

Definition at line 413 of file advancedsettings.cxx.

References getORB(), and SfxTabDialogController::PageCreated().

◆ saveDatasource()

void dbaui::AdvancedSettingsDialog::saveDatasource ( )
overridevirtual

◆ setTitle()

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

Implements dbaui::IDatabaseSettingsDialog.

Definition at line 456 of file advancedsettings.cxx.

References m_xDialog.

Member Data Documentation

◆ m_pImpl

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

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