diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-12-17 21:00:50 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-12-18 09:30:15 +0100 |
commit | 58fdb89bc384019e4eaf181a956fe4ca7ed5dd07 (patch) | |
tree | f92ee421115c4634668df26d660bfaf0348252da /svtools/source | |
parent | removed useless #if 1 (diff) | |
download | core-58fdb89bc384019e4eaf181a956fe4ca7ed5dd07.tar.gz core-58fdb89bc384019e4eaf181a956fe4ca7ed5dd07.zip |
File picker: add Path field for CMIS like other protocols
Change-Id: I9745831da13646d351858f221b1367374ebf737f
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/dialogs/ServerDetailsControls.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/svtools/source/dialogs/ServerDetailsControls.cxx b/svtools/source/dialogs/ServerDetailsControls.cxx index 88f57e67ce8c..8b10c1038b23 100644 --- a/svtools/source/dialogs/ServerDetailsControls.cxx +++ b/svtools/source/dialogs/ServerDetailsControls.cxx @@ -293,6 +293,9 @@ CmisDetailsContainer::CmisDetailsContainer( VclBuilderContainer* pBuilder ) : pBuilder->get( m_pBTRepoRefresh, "repositoriesRefresh" ); m_pBTRepoRefresh->SetClickHdl( LINK( this, CmisDetailsContainer, RefreshReposHdl ) ); + pBuilder->get( m_pEDPath, "cmisPath" ); + m_pEDPath->SetModifyHdl( LINK( this, DetailsContainer, ValueChangeHdl ) ); + show( false ); // Load the ServerType entries @@ -308,6 +311,7 @@ CmisDetailsContainer::CmisDetailsContainer( VclBuilderContainer* pBuilder ) : INetURLObject CmisDetailsContainer::getUrl( ) { rtl::OUString sBindingUrl = rtl::OUString( m_pEDBinding->GetText() ).trim( ); + rtl::OUString sPath = rtl::OUString( m_pEDPath->GetText() ).trim( ); rtl::OUString sUrl; if ( !sBindingUrl.isEmpty( ) && !m_sRepoId.isEmpty() ) @@ -319,6 +323,7 @@ INetURLObject CmisDetailsContainer::getUrl( ) RTL_TEXTENCODING_UTF8 ); sUrl = "vnd.libreoffice.cmis://" + sEncodedBinding; } + sUrl += sPath; return INetURLObject( sUrl ); } @@ -338,8 +343,8 @@ bool CmisDetailsContainer::setUrl( const INetURLObject& rUrl ) sRepositoryId = aHostUrl.GetMark( ); m_pEDBinding->SetText( sBindingUrl ); + m_pEDPath->SetText( rUrl.GetURLPath() ); } - return bSuccess; } |