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

#include <DBSetupConnectionPages.hxx>

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

Public Member Functions

 OJDBCConnectionPageSetup (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rCoreAttrs)
 
virtual ~OJDBCConnectionPageSetup () override
 
- Public Member Functions inherited from dbaui::OConnectionTabPageSetup
 OConnectionTabPageSetup (weld::Container *pPage, weld::DialogController *pController, const OUString &_rUIXMLDescription, const OUString &_rId, const SfxItemSet &_rCoreAttrs, TranslateId pHelpTextResId, TranslateId pHeaderResId, TranslateId pUrlResId)
 
virtual ~OConnectionTabPageSetup () override
 
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 bool commitPage (::vcl::WizardTypes::CommitPageReason _eReason) override
 
- Public Member Functions inherited from dbaui::OConnectionHelper
 OConnectionHelper (weld::Container *pPage, weld::DialogController *pController, const OUString &_rUIXMLDescription, const OUString &_rId, const SfxItemSet &_rCoreAttrs)
 
virtual ~OConnectionHelper () override
 
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 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...
 
OUString getURLNoPrefix () const
 
void setURLNoPrefix (std::u16string_view _rURL)
 
sal_Int32 checkPathExistence (const OUString &_rURL)
 checks if the path is existence More...
 
IS_PATH_EXIST pathExists (const OUString &_rURL, bool bIsFile) const
 
bool createDirectoryDeep (std::u16string_view _rPathNormalized)
 
bool commitURL ()
 
void askForFileName (::sfx2::FileDialogHelper &_aFileOpen)
 opens the FileOpen dialog and asks for a FileName More...
 
- 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< OGenericAdministrationPageCreateJDBCTabPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rAttrSet)
 
- Static Public Member Functions inherited from dbaui::OConnectionTabPageSetup
static std::unique_ptr< OGenericAdministrationPageCreateDbaseTabPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
 
static std::unique_ptr< OGenericAdministrationPageCreateMSAccessTabPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
 
static std::unique_ptr< OGenericAdministrationPageCreateADOTabPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
 
static std::unique_ptr< OGenericAdministrationPageCreateODBCTabPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &_rAttrSet)
 
static std::unique_ptr< OGenericAdministrationPageCreateUserDefinedTabPage (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)
 

Private Member Functions

virtual bool checkTestConnection () override
 
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...
 
 DECL_LINK (OnTestJavaClickHdl, weld::Button &, void)
 
 DECL_LINK (OnEditModified, weld::Entry &, void)
 

Private Attributes

std::unique_ptr< weld::Labelm_xFTDriverClass
 
std::unique_ptr< weld::Entrym_xETDriverClass
 
std::unique_ptr< weld::Buttonm_xPBTestJavaDriver
 

Additional Inherited Members

- Public Attributes inherited from dbaui::OConnectionHelper
OUString m_eType
 
::dbaccess::ODsnTypeCollectionm_pCollection
 
std::unique_ptr< weld::Labelm_xFT_Connection
 the DSN type collection instance More...
 
std::unique_ptr< weld::Buttonm_xPB_Connection
 
std::unique_ptr< weld::Buttonm_xPB_CreateDB
 
std::unique_ptr< OConnectionURLEditm_xConnectionURL
 
virtual bool checkTestConnection () override
 
- Protected Member Functions inherited from dbaui::OConnectionHelper
void setURL (std::u16string_view _rURL)
 
virtual bool checkTestConnection ()
 
- 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 164 of file DBSetupConnectionPages.hxx.

Constructor & Destructor Documentation

◆ OJDBCConnectionPageSetup()

dbaui::OJDBCConnectionPageSetup::OJDBCConnectionPageSetup ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet _rCoreAttrs 
)

Definition at line 629 of file DBSetupConnectionPages.cxx.

References LINK, m_xETDriverClass, and m_xPBTestJavaDriver.

◆ ~OJDBCConnectionPageSetup()

dbaui::OJDBCConnectionPageSetup::~OJDBCConnectionPageSetup ( )
overridevirtual

Definition at line 640 of file DBSetupConnectionPages.cxx.

Member Function Documentation

◆ checkTestConnection()

bool dbaui::OJDBCConnectionPageSetup::checkTestConnection ( )
overrideprivatevirtual

◆ CreateJDBCTabPage()

std::unique_ptr< OGenericAdministrationPage > dbaui::OJDBCConnectionPageSetup::CreateJDBCTabPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rAttrSet 
)
static

◆ DECL_LINK() [1/2]

dbaui::OJDBCConnectionPageSetup::DECL_LINK ( OnEditModified  ,
weld::Entry ,
void   
)
private

◆ DECL_LINK() [2/2]

dbaui::OJDBCConnectionPageSetup::DECL_LINK ( OnTestJavaClickHdl  ,
weld::Button ,
void   
)
private

◆ fillControls()

void dbaui::OJDBCConnectionPageSetup::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.

Reimplemented from dbaui::OConnectionHelper.

Definition at line 644 of file DBSetupConnectionPages.cxx.

References m_xETDriverClass.

◆ FillItemSet()

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

◆ fillWindows()

void dbaui::OJDBCConnectionPageSetup::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.

Reimplemented from dbaui::OConnectionHelper.

Definition at line 649 of file DBSetupConnectionPages.cxx.

References m_xFTDriverClass.

◆ implInitControls()

void dbaui::OJDBCConnectionPageSetup::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

TODO

TODO

Reimplemented from dbaui::OConnectionTabPageSetup.

Definition at line 661 of file DBSetupConnectionPages.cxx.

References checkTestConnection(), DSID_JDBCDRIVERCLASS, dbaui::OGenericAdministrationPage::getFlags(), SfxItemSet::GetItem(), dbaccess::ODsnTypeCollection::getJavaDriverClass(), CntUnencodedStringItem::GetValue(), dbaui::OConnectionTabPageSetup::implInitControls(), dbaui::OConnectionHelper::m_eType, dbaui::OConnectionHelper::m_pCollection, m_xETDriverClass, m_xPBTestJavaDriver, and dbaui::OGenericAdministrationPage::SetRoadmapStateValue().

Member Data Documentation

◆ m_xETDriverClass

std::unique_ptr<weld::Entry> dbaui::OJDBCConnectionPageSetup::m_xETDriverClass
private

◆ m_xFTDriverClass

std::unique_ptr<weld::Label> dbaui::OJDBCConnectionPageSetup::m_xFTDriverClass
private

Definition at line 181 of file DBSetupConnectionPages.hxx.

Referenced by fillWindows().

◆ m_xPBTestJavaDriver

std::unique_ptr<weld::Button> dbaui::OJDBCConnectionPageSetup::m_xPBTestJavaDriver
private

Definition at line 183 of file DBSetupConnectionPages.hxx.

Referenced by implInitControls(), and OJDBCConnectionPageSetup().


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