summaryrefslogtreecommitdiff
path: root/svtools/source
diff options
context:
space:
mode:
authorMihai Varga <mihai.mv13@gmail.com>2014-06-23 19:14:08 +0300
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-15 11:23:24 +0100
commitfc1bfd9e6d774917bd90d67b1135402d2d33ef6b (patch)
tree232d72d467ca8a2b5569467061225ff51351f52a /svtools/source
parenta7b86c0e647bef6da677fa71aa921976bd165138 (diff)
OneDrive binding settings
Change-Id: I72c97931098c1a029d39532e3433c0aeaba73e3f
Diffstat (limited to 'svtools/source')
-rw-r--r--svtools/source/dialogs/ServerDetailsControls.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/svtools/source/dialogs/ServerDetailsControls.cxx b/svtools/source/dialogs/ServerDetailsControls.cxx
index 4bc907c1efba..1c723565b778 100644
--- a/svtools/source/dialogs/ServerDetailsControls.cxx
+++ b/svtools/source/dialogs/ServerDetailsControls.cxx
@@ -283,6 +283,9 @@ CmisDetailsContainer::CmisDetailsContainer( VclBuilderContainer* pBuilder ) :
OUString( GDRIVE_CLIENT_SECRET ).isEmpty();
bool bSkipAlfresco = OUString( ALFRESCO_CLOUD_CLIENT_ID ).isEmpty() ||
OUString( ALFRESCO_CLOUD_CLIENT_SECRET ).isEmpty();
+ bool bSkipOneDrive= OUString( ONEDRIVE_CLIENT_ID ).isEmpty() ||
+ OUString( ONEDRIVE_CLIENT_SECRET ).isEmpty();
+
Sequence< OUString > aTypesUrlsList( officecfg::Office::Common::Misc::CmisServersUrls::get( xContext ) );
Sequence< OUString > aTypesNamesList( officecfg::Office::Common::Misc::CmisServersNames::get( xContext ) );
@@ -290,7 +293,8 @@ CmisDetailsContainer::CmisDetailsContainer( VclBuilderContainer* pBuilder ) :
{
OUString sUrl = aTypesUrlsList[i];
if ( !( sUrl == GDRIVE_BASE_URL && bSkipGDrive ) &&
- !( sUrl.startsWith( ALFRESCO_CLOUD_BASE_URL ) && bSkipAlfresco ) )
+ !( sUrl.startsWith( ALFRESCO_CLOUD_BASE_URL ) && bSkipAlfresco ) &&
+ !( sUrl == ONEDRIVE_BASE_URL && bSkipOneDrive ) )
{
m_pLBServerType->InsertEntry( aTypesNamesList[i] );
m_aServerTypesURLs.push_back( sUrl );