diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-22 17:55:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-22 17:55:23 +0200 |
commit | 8da1d7869a2bdbe006265f584e0d9af5046ef723 (patch) | |
tree | d122462d9ea6dbbafe1c79c6e2a4945dca441a18 /shell/source | |
parent | 72812a380c0d9587670bae1d1efa8700c874634e (diff) |
Remove WorkPathVariable support from KDE backends
...now that b5c05876f73c31270bc374e4f481ef1d09a42e5f "Related: rhbz#1065807
recover using xdg templates and documents settings" handles WorkPathVariable in
the generic shell/source/backends/desktopbe/desktopbackend.cxx code.
Change-Id: I3920cdb3f54688462813d212569c9b33a1371333
Diffstat (limited to 'shell/source')
-rw-r--r-- | shell/source/backends/kde4be/kde4access.cxx | 11 | ||||
-rw-r--r-- | shell/source/backends/kde4be/kde4backend.cxx | 2 | ||||
-rw-r--r-- | shell/source/backends/kdebe/kdeaccess.cxx | 11 | ||||
-rw-r--r-- | shell/source/backends/kdebe/kdebackend.cxx | 2 |
4 files changed, 2 insertions, 24 deletions
diff --git a/shell/source/backends/kde4be/kde4access.cxx b/shell/source/backends/kde4be/kde4access.cxx index 5d962b71e901..914daba788c6 100644 --- a/shell/source/backends/kde4be/kde4access.cxx +++ b/shell/source/backends/kde4be/kde4access.cxx @@ -86,17 +86,6 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) { bool ATToolSupport = false; return css::beans::Optional< css::uno::Any >( true, uno::makeAny( OUString::boolean( ATToolSupport ) ) ); - } else if (id == "WorkPathVariable") - { - QString aDocumentsDir( KGlobalSettings::documentPath() ); - OUString sDocumentsDir; - OUString sDocumentsURL; - if ( aDocumentsDir.endsWith(QChar('/')) ) - aDocumentsDir.truncate ( aDocumentsDir.length() - 1 ); - sDocumentsDir = reinterpret_cast<const sal_Unicode *>(aDocumentsDir.utf16()); - osl_getFileURLFromSystemPath( sDocumentsDir.pData, &sDocumentsURL.pData ); - return css::beans::Optional< css::uno::Any >( - true, uno::makeAny( sDocumentsURL ) ); } else if (id == "ooInetFTPProxyName") { QString aFTPProxy; diff --git a/shell/source/backends/kde4be/kde4backend.cxx b/shell/source/backends/kde4be/kde4backend.cxx index 90473d38d7aa..fd049a2f66bf 100644 --- a/shell/source/backends/kde4be/kde4backend.cxx +++ b/shell/source/backends/kde4be/kde4backend.cxx @@ -167,7 +167,7 @@ css::uno::Any Service::getPropertyValue(OUString const & PropertyName) css::uno::RuntimeException, std::exception) { if (PropertyName == "EnableATToolSupport" || PropertyName == "ExternalMailer" || PropertyName == "SourceViewFontHeight" - || PropertyName == "SourceViewFontName" || PropertyName == "WorkPathVariable" || PropertyName == "ooInetFTPProxyName" + || PropertyName == "SourceViewFontName" || PropertyName == "ooInetFTPProxyName" || PropertyName == "ooInetFTPProxyPort" || PropertyName == "ooInetHTTPProxyName" || PropertyName == "ooInetHTTPProxyPort" || PropertyName == "ooInetHTTPSProxyName" || PropertyName == "ooInetHTTPSProxyPort" || PropertyName == "ooInetNoProxy" || PropertyName == "ooInetProxyType" ) diff --git a/shell/source/backends/kdebe/kdeaccess.cxx b/shell/source/backends/kdebe/kdeaccess.cxx index a0a515612b92..116ae975ff37 100644 --- a/shell/source/backends/kdebe/kdeaccess.cxx +++ b/shell/source/backends/kdebe/kdeaccess.cxx @@ -82,17 +82,6 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) { bool ATToolSupport = false; return css::beans::Optional< css::uno::Any >( true, uno::makeAny( OUString::boolean( ATToolSupport ) ) ); - } else if (id == "WorkPathVariable") - { - QString aDocumentsDir( KGlobalSettings::documentPath() ); - OUString sDocumentsDir; - OUString sDocumentsURL; - if ( aDocumentsDir.endsWith(QChar('/')) ) - aDocumentsDir.truncate ( aDocumentsDir.length() - 1 ); - sDocumentsDir = reinterpret_cast<const sal_Unicode *>(aDocumentsDir.ucs2()); - osl_getFileURLFromSystemPath( sDocumentsDir.pData, &sDocumentsURL.pData ); - return css::beans::Optional< css::uno::Any >( - true, uno::makeAny( sDocumentsURL ) ); } else if (id == "ooInetFTPProxyName") { QString aFTPProxy; diff --git a/shell/source/backends/kdebe/kdebackend.cxx b/shell/source/backends/kdebe/kdebackend.cxx index 192ee75dec7b..aca29dedbfbb 100644 --- a/shell/source/backends/kdebe/kdebackend.cxx +++ b/shell/source/backends/kdebe/kdebackend.cxx @@ -169,7 +169,7 @@ css::uno::Any Service::getPropertyValue(OUString const & PropertyName) css::uno::RuntimeException, std::exception) { if ( PropertyName == "EnableATToolSupport" || PropertyName == "ExternalMailer" || PropertyName == "SourceViewFontHeight" - || PropertyName == "SourceViewFontName" || PropertyName == "WorkPathVariable" || PropertyName == "ooInetFTPProxyName" + || PropertyName == "SourceViewFontName" || PropertyName == "ooInetFTPProxyName" || PropertyName == "ooInetFTPProxyPort" || PropertyName == "ooInetHTTPProxyName" || PropertyName == "ooInetHTTPProxyPort" || PropertyName == "ooInetHTTPSProxyName" || PropertyName == "ooInetHTTPSProxyPort" || PropertyName == "ooInetNoProxy" || PropertyName == "ooInetProxyType" ) |