diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-04-29 18:38:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-04-29 18:38:20 +0200 |
commit | 8b324e21f2ae4345f41b32e6c4b9c8a658dd5492 (patch) | |
tree | 39a364bc4f0f9fa223c5e501cbcde0f6ad57547d /vcl | |
parent | d7ebca515a63b34343a044443fadf9064c8d9195 (diff) |
There is no images*_brand.zip files
Change-Id: I6ddeff7ae72693fd0951d71bd7b5444938bc7286
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/impimagetree.cxx | 54 |
1 files changed, 13 insertions, 41 deletions
diff --git a/vcl/source/gdi/impimagetree.cxx b/vcl/source/gdi/impimagetree.cxx index 8b45375919ad..7a2fbdddb5db 100644 --- a/vcl/source/gdi/impimagetree.cxx +++ b/vcl/source/gdi/impimagetree.cxx @@ -163,26 +163,22 @@ bool ImplImageTree::checkStyle(OUString const & style) setStyle(style); exists = false; - const OUString sBrandURLSuffix("_brand"); for (Paths::iterator i(m_paths.begin()); i != m_paths.end() && !exists; ++i) { OUString aURL = i->first; - sal_Int32 nFromIndex = aURL.getLength() - sBrandURLSuffix.getLength(); - // skip brand-specific icon themes; they are incomplete and thus not useful for this check - if (nFromIndex < 0 || !aURL.match(sBrandURLSuffix, nFromIndex)) { - osl::File aZip(aURL + ".zip"); - if (aZip.open(osl_File_OpenFlag_Read) == ::osl::FileBase::E_None) { - aZip.close(); - exists = true; - } - osl::Directory aLookaside(aURL); - if (aLookaside.open() == ::osl::FileBase::E_None) { - aLookaside.close(); - exists = true; - m_cacheIcons = false; - } else { - m_cacheIcons = true; - } + osl::File aZip(aURL + ".zip"); + if (aZip.open(osl_File_OpenFlag_Read) == ::osl::FileBase::E_None) { + aZip.close(); + exists = true; + } + + osl::Directory aLookaside(aURL); + if (aLookaside.open() == ::osl::FileBase::E_None) { + aLookaside.close(); + exists = true; + m_cacheIcons = false; + } else { + m_cacheIcons = true; } } m_checkStyleCache[style] = exists; @@ -286,30 +282,6 @@ void ImplImageTree::resetPaths() { OUStringBuffer b; b.appendAscii("images_"); b.append(m_style); - b.appendAscii("_brand"); - bool ok = u.Append(b.makeStringAndClear(), INetURLObject::ENCODE_ALL); - OSL_ASSERT(ok); (void) ok; - m_paths.push_back( - std::make_pair( - u.GetMainURL(INetURLObject::NO_DECODE), - css::uno::Reference< css::container::XNameAccess >())); - } - { - OUString url( "$BRAND_BASE_DIR/share/config/images_brand"); - rtl::Bootstrap::expandMacros(url); - m_paths.push_back( - std::make_pair( - url, css::uno::Reference< css::container::XNameAccess >())); - } - { - OUString url( - "$BRAND_BASE_DIR/share/config"); - rtl::Bootstrap::expandMacros(url); - INetURLObject u(url); - OSL_ASSERT(!u.HasError()); - OUStringBuffer b; - b.appendAscii("images_"); - b.append(m_style); bool ok = u.Append(b.makeStringAndClear(), INetURLObject::ENCODE_ALL); OSL_ASSERT(ok); (void) ok; m_paths.push_back( |