diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-06-16 11:55:41 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-06-16 11:55:41 +0000 |
commit | 7c170086f524cf58401f18b0b959d2d2f0c54110 (patch) | |
tree | 81aef6920a6b04b0cc045915e5a2d4ce4c362197 /desktop/source/deployment/misc | |
parent | afa9bab246c09b81addf340ff776bdbf83b621c7 (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/misc')
-rw-r--r-- | desktop/source/deployment/misc/dp_descriptioninfoset.cxx | 18 |
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 7617b64885c1..f74bebf71da1 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 { |