summaryrefslogtreecommitdiff
path: root/desktop/source/deployment
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-06-16 11:55:41 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-06-16 11:55:41 +0000
commitc1e74ba3823e78f309d59de6305c44a081a87c89 (patch)
tree9cbd6ee0afa0fa3a34990c592e8462de2a814c83 /desktop/source/deployment
parent711ba06630fbb172c2aec13a0589adae0f4e9474 (diff)
INTEGRATION: CWS extmgrui02 (1.5.24); FILE MERGED
2008/06/10 07:27:37 dv 1.5.24.2: RESYNC: (1.5-1.6); FILE MERGED 2008/06/05 07:53:54 dv 1.5.24.1: #i90386# Added support for custom icons
Diffstat (limited to 'desktop/source/deployment')
-rw-r--r--desktop/source/deployment/misc/dp_descriptioninfoset.cxx18
1 files changed, 17 insertions, 1 deletions
diff --git a/desktop/source/deployment/misc/dp_descriptioninfoset.cxx b/desktop/source/deployment/misc/dp_descriptioninfoset.cxx
index ba745c37a5..9898bd69ed 100644
--- a/desktop/source/deployment/misc/dp_descriptioninfoset.cxx
+++ b/desktop/source/deployment/misc/dp_descriptioninfoset.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dp_descriptioninfoset.cxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
* This file is part of OpenOffice.org.
*
@@ -237,6 +237,22 @@ DescriptionInfoset::getUpdateDownloadUrls() const
"desc:update-download/desc:src/@xlink:href")));
}
+::rtl::OUString DescriptionInfoset::getIconURL( sal_Bool bHighContrast ) const
+{
+ css::uno::Sequence< ::rtl::OUString > aStrList = getUrls( ::rtl::OUString(
+ RTL_CONSTASCII_USTRINGPARAM( "desc:icon/desc:default/@xlink:href")));
+ css::uno::Sequence< ::rtl::OUString > aStrListHC = getUrls( ::rtl::OUString(
+ RTL_CONSTASCII_USTRINGPARAM( "desc:icon/desc:high-contrast/@xlink:href")));
+
+ if ( bHighContrast && aStrListHC.hasElements() && aStrListHC[0].getLength() )
+ return aStrListHC[0];
+
+ if ( aStrList.hasElements() && aStrList[0].getLength() )
+ return aStrList[0];
+
+ return ::rtl::OUString();
+}
+
::boost::optional< ::rtl::OUString > DescriptionInfoset::getLocalizedUpdateWebsiteURL()
const
{