diff options
Diffstat (limited to 'dbaccess/source/ui/dlg/ConnectionHelper.hxx')
-rw-r--r-- | dbaccess/source/ui/dlg/ConnectionHelper.hxx | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/dbaccess/source/ui/dlg/ConnectionHelper.hxx b/dbaccess/source/ui/dlg/ConnectionHelper.hxx index 04bca0a082ab..2c558e38d04f 100644 --- a/dbaccess/source/ui/dlg/ConnectionHelper.hxx +++ b/dbaccess/source/ui/dlg/ConnectionHelper.hxx @@ -35,69 +35,6 @@ namespace dbaui PATH_NOT_KNOWN }; - class OConnectionHelper : public OGenericAdministrationPage - { - bool m_bUserGrabFocus : 1; - - public: - OConnectionHelper( vcl::Window* pParent, const OString& _rId, const OUString& _rUIXMLDescription, const SfxItemSet& _rCoreAttrs); - virtual ~OConnectionHelper() override; - virtual void dispose() override; - VclPtr<FixedText> m_pFT_Connection; - VclPtr<OConnectionURLEdit> m_pConnectionURL; - VclPtr<PushButton> m_pPB_Connection; - VclPtr<PushButton> m_pPB_CreateDB; - OUString m_eType; // the type can't be changed in this class, so we hold it as member. - - public: - - // setting/retrieving the current connection URL - // necessary because for some types, the URL must be decoded for display purposes - ::dbaccess::ODsnTypeCollection* m_pCollection; /// the DSN type collection instance - virtual bool PreNotify( NotifyEvent& _rNEvt ) override; - - // <method>OGenericAdministrationPage::fillControls</method> - virtual void fillControls(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override; - // <method>OGenericAdministrationPage::fillWindows</method> - virtual void fillWindows(std::vector< std::unique_ptr<ISaveValueWrapper> >& _rControlList) override; - virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) override; - - // setting/retrieving the current connection URL - // necessary because for some types, the URL must be decoded for display purposes - //String getURL( OConnectionURLEdit* _m_pConnection ) const; - //void setURL( const OUString& _rURL, OConnectionURLEdit* _m_pConnection ); - - OUString getURLNoPrefix( ) const; - void setURLNoPrefix( const OUString& _rURL ); - - /** checks if the path is existence - @param _rURL - The URL to check. - */ - sal_Int32 checkPathExistence(const OUString& _rURL); - - IS_PATH_EXIST pathExists(const OUString& _rURL, bool bIsFile) const; - bool createDirectoryDeep(const OUString& _rPathNormalized); - bool commitURL(); - - /** opens the FileOpen dialog and asks for a FileName - @param _aFileOpen - Executes the file open dialog, which must be filled from caller. - */ - void askForFileName(::sfx2::FileDialogHelper& _aFileOpen); - - protected: - void setURL( const OUString& _rURL ); - virtual bool checkTestConnection(); - - private: - DECL_LINK(OnBrowseConnections, Button*, void); - DECL_LINK(OnCreateDatabase, Button*, void); - OUString impl_getURL() const; - void impl_setURL( const OUString& _rURL, bool _bPrefix ); - void implUpdateURLDependentStates() const; - }; - class DBOConnectionHelper : public OGenericAdministrationPage { bool m_bUserGrabFocus; |