summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--officecfg/registry/data/org/openoffice/Office/Common.xcu8
-rw-r--r--svtools/source/dialogs/PlaceEditDialog.cxx16
2 files changed, 13 insertions, 11 deletions
diff --git a/officecfg/registry/data/org/openoffice/Office/Common.xcu b/officecfg/registry/data/org/openoffice/Office/Common.xcu
index 344117259647..7cf3e975e6dd 100644
--- a/officecfg/registry/data/org/openoffice/Office/Common.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/Common.xcu
@@ -561,8 +561,8 @@
<prop oor:name="CmisServersUrls">
<value>
<it>https://www.googleapis.com/drive/v2</it>
- <!-- <it>https://apis.live.net/v5.0</it>
- <it>https://api.alfresco.com/cmis/versions/1.0/atom/</it> -->
+ <it>https://apis.live.net/v5.0</it>
+ <it>https://api.alfresco.com/cmis/versions/1.0/atom/</it>
<it></it>
<it>http://&lt;host:port&gt;/alfresco/cmisatom</it>
<it>http://&lt;host&gt;/p8cmis/wsdl</it>
@@ -580,8 +580,8 @@
<prop oor:name="CmisServersNames">
<value>
<it>Google Drive</it>
- <!-- <it>OneDrive</it>
- <it>Alfresco Cloud</it> -->
+ <it>OneDrive</it>
+ <it>Alfresco Cloud</it>
<it>--------------------</it>
<it>Alfresco 4</it>
<it>IBM FileNet P8</it>
diff --git a/svtools/source/dialogs/PlaceEditDialog.cxx b/svtools/source/dialogs/PlaceEditDialog.cxx
index b062b934e375..9d0a08e92a4a 100644
--- a/svtools/source/dialogs/PlaceEditDialog.cxx
+++ b/svtools/source/dialogs/PlaceEditDialog.cxx
@@ -173,19 +173,21 @@ void PlaceEditDialog::InitDetails( )
for ( sal_Int32 i = 0; i < aTypesUrlsList.getLength( ) && aTypesNamesList.getLength( ); ++i )
{
OUString sUrl = aTypesUrlsList[i];
+
+ if ((sUrl == GDRIVE_BASE_URL && bSkipGDrive) ||
+ (sUrl.startsWith( ALFRESCO_CLOUD_BASE_URL) && bSkipAlfresco) ||
+ (sUrl == ONEDRIVE_BASE_URL && bSkipOneDrive))
+ {
+ // this service is not supported
+ continue;
+ }
+
nPos = m_pLBServerType->InsertEntry( aTypesNamesList[i], nPos );
std::shared_ptr<DetailsContainer> xCmisDetails(std::make_shared<CmisDetailsContainer>(this, sUrl));
xCmisDetails->setChangeHdl( LINK( this, PlaceEditDialog, EditHdl ) );
m_aDetailsContainers.push_back(xCmisDetails);
- if ( ( sUrl == GDRIVE_BASE_URL && bSkipGDrive ) ||
- ( sUrl.startsWith( ALFRESCO_CLOUD_BASE_URL ) && bSkipAlfresco ) ||
- ( sUrl == ONEDRIVE_BASE_URL && bSkipOneDrive ) )
- {
- xCmisDetails->setActive( false );
- }
-
nPos++;
}