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

#include <DBSetupConnectionPages.hxx>

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

Public Member Functions

 OPostgresConnectionPageSetup (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rCoreAttrs, sal_uInt16 _nPortId)
 
virtual ~OPostgresConnectionPageSetup () override
 
- 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 SfxItemSetGetItemSet () 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 SfxItemSetGetDialogExampleSet () const
 
OUString GetHelpId () const
 
OUString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 
std::unordered_map< OUString, css::uno::Any > & getAdditionalProperties ()
 

Static Public Member Functions

static std::unique_ptr< OGenericAdministrationPageCreatePostgresTabPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
 
- 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 SfxPoolItemGetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
static const T * GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 

Public Attributes

::dbaccess::ODsnTypeCollectionm_pCollection
 

Private Member Functions

virtual bool FillItemSet (SfxItemSet *_rCoreAttrs) 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...
 
virtual bool commitPage (::vcl::WizardTypes::CommitPageReason _eReason) override
 
void impl_setURL (std::u16string_view _rURL, bool _bPrefix)
 used for the connection URL More...
 
void setURLNoPrefix (std::u16string_view _rURL)
 
void setURL (std::u16string_view _rURL)
 
bool commitURL ()
 

Private Attributes

TypedWhichId< SfxInt32Itemm_nPortId
 
std::unique_ptr< weld::Entrym_xETDatabasename
 
std::unique_ptr< weld::Entrym_xETHostname
 
std::unique_ptr< weld::SpinButtonm_xNFPortNumber
 
std::unique_ptr< OConnectionURLEditm_xConnectionURL
 

Additional Inherited Members

- 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 SfxPoolItemGetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
const T * GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 
SfxOkDialogControllerGetDialogController () const
 
- 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
IDatabaseSettingsDialogm_pAdminDialog
 
IItemSetHelperm_pItemSetHelper
 
css::uno::Reference< css::uno::XComponentContext > m_xORB
 

Detailed Description

Definition at line 220 of file DBSetupConnectionPages.hxx.

Constructor & Destructor Documentation

◆ OPostgresConnectionPageSetup()

dbaui::OPostgresConnectionPageSetup::OPostgresConnectionPageSetup ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet _rCoreAttrs,
sal_uInt16  _nPortId 
)

◆ ~OPostgresConnectionPageSetup()

dbaui::OPostgresConnectionPageSetup::~OPostgresConnectionPageSetup ( )
overridevirtual

Definition at line 526 of file DBSetupConnectionPages.cxx.

Member Function Documentation

◆ commitPage()

bool dbaui::OPostgresConnectionPageSetup::commitPage ( ::vcl::WizardTypes::CommitPageReason  _eReason)
overrideprivatevirtual

Reimplemented from dbaui::OGenericAdministrationPage.

Definition at line 595 of file DBSetupConnectionPages.cxx.

References commitURL().

◆ commitURL()

bool dbaui::OPostgresConnectionPageSetup::commitURL ( )
private

Definition at line 600 of file DBSetupConnectionPages.cxx.

References m_xConnectionURL, and setURLNoPrefix().

Referenced by commitPage().

◆ CreatePostgresTabPage()

std::unique_ptr< OGenericAdministrationPage > dbaui::OPostgresConnectionPageSetup::CreatePostgresTabPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet _rAttrSet 
)
static

◆ fillControls()

void dbaui::OPostgresConnectionPageSetup::fillControls ( std::vector< std::unique_ptr< ISaveValueWrapper > > &  _rControlList)
overrideprivatevirtual

will be called inside <method>implInitControls</method> to save the value if necessary

Parameters
_rControlListThe 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 537 of file DBSetupConnectionPages.cxx.

References m_xConnectionURL, m_xETDatabasename, m_xETHostname, and m_xNFPortNumber.

◆ FillItemSet()

bool dbaui::OPostgresConnectionPageSetup::FillItemSet ( SfxItemSet _rCoreAttrs)
overrideprivatevirtual

◆ fillWindows()

void dbaui::OPostgresConnectionPageSetup::fillWindows ( std::vector< std::unique_ptr< ISaveValueWrapper > > &  _rControlList)
overrideprivatevirtual

will be called inside <method>implInitControls</method> to disable if necessary

Parameters
_rControlListThe 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 555 of file DBSetupConnectionPages.cxx.

◆ impl_setURL()

void dbaui::OPostgresConnectionPageSetup::impl_setURL ( std::u16string_view  _rURL,
bool  _bPrefix 
)
private

used for the connection URL

Parameters
_rURLThe URL to check.

Definition at line 608 of file DBSetupConnectionPages.cxx.

References m_pCollection, m_xConnectionURL, and comphelper::string::stripEnd().

Referenced by setURL(), and setURLNoPrefix().

◆ implInitControls()

void dbaui::OPostgresConnectionPageSetup::implInitControls ( const SfxItemSet _rSet,
bool  _bSaveValue 
)
overrideprivatevirtual

called from within Reset and ActivatePage, use to initialize the controls with the items from the given set

Parameters
_bSaveValueif set to sal_True, the implementation should call SaveValue on all relevant controls

Reimplemented from dbaui::OGenericAdministrationPage.

Definition at line 559 of file DBSetupConnectionPages.cxx.

References dbaui::OGenericAdministrationPage::callModifiedHdl(), DSID_CONN_HOSTNAME, DSID_CONNECTURL, DSID_DATABASENAME, dbaui::OGenericAdministrationPage::getFlags(), SfxItemSet::GetItem(), CntUnencodedStringItem::GetValue(), dbaui::OGenericAdministrationPage::implInitControls(), m_nPortId, m_xConnectionURL, m_xETDatabasename, m_xETHostname, m_xNFPortNumber, dbaui::OGenericAdministrationPage::SetRoadmapStateValue(), and setURL().

◆ setURL()

void dbaui::OPostgresConnectionPageSetup::setURL ( std::u16string_view  _rURL)
private

Definition at line 623 of file DBSetupConnectionPages.cxx.

References impl_setURL().

Referenced by implInitControls().

◆ setURLNoPrefix()

void dbaui::OPostgresConnectionPageSetup::setURLNoPrefix ( std::u16string_view  _rURL)
private

Definition at line 618 of file DBSetupConnectionPages.cxx.

References impl_setURL().

Referenced by commitURL().

Member Data Documentation

◆ m_nPortId

TypedWhichId<SfxInt32Item> dbaui::OPostgresConnectionPageSetup::m_nPortId
private

Definition at line 237 of file DBSetupConnectionPages.hxx.

Referenced by FillItemSet(), and implInitControls().

◆ m_pCollection

::dbaccess::ODsnTypeCollection* dbaui::OPostgresConnectionPageSetup::m_pCollection

Definition at line 228 of file DBSetupConnectionPages.hxx.

Referenced by impl_setURL(), and OPostgresConnectionPageSetup().

◆ m_xConnectionURL

std::unique_ptr<OConnectionURLEdit> dbaui::OPostgresConnectionPageSetup::m_xConnectionURL
private

◆ m_xETDatabasename

std::unique_ptr<weld::Entry> dbaui::OPostgresConnectionPageSetup::m_xETDatabasename
private

◆ m_xETHostname

std::unique_ptr<weld::Entry> dbaui::OPostgresConnectionPageSetup::m_xETHostname
private

◆ m_xNFPortNumber

std::unique_ptr<weld::SpinButton> dbaui::OPostgresConnectionPageSetup::m_xNFPortNumber
private

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