summaryrefslogtreecommitdiff
path: root/svtools/source/dialogs/ServerDetailsControls.cxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-12-17 21:00:50 +0100
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-12-18 09:30:15 +0100
commit58fdb89bc384019e4eaf181a956fe4ca7ed5dd07 (patch)
treef92ee421115c4634668df26d660bfaf0348252da /svtools/source/dialogs/ServerDetailsControls.cxx
parente468ca20c8e25df8a15c38aa3eb9c289f89f27f7 (diff)
File picker: add Path field for CMIS like other protocols
Change-Id: I9745831da13646d351858f221b1367374ebf737f
Diffstat (limited to 'svtools/source/dialogs/ServerDetailsControls.cxx')
-rw-r--r--svtools/source/dialogs/ServerDetailsControls.cxx7
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;
}