summaryrefslogtreecommitdiff
path: root/svtools/source/misc/imageresourceaccess.cxx
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-05-03 15:38:30 +0200
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-05-03 15:38:30 +0200
commit40de6609ed4a6d68c526e1e347955b83865bb3e3 (patch)
treeb93c07d7d6d7d5e5d4bf6a8f539fe68b3de10a68 /svtools/source/misc/imageresourceaccess.cxx
parent840f8f92702d550390719027d5eb215d3ad07619 (diff)
os141: accept more URL schemes which are supported by the GraphicsProvider
Diffstat (limited to 'svtools/source/misc/imageresourceaccess.cxx')
-rw-r--r--svtools/source/misc/imageresourceaccess.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/svtools/source/misc/imageresourceaccess.cxx b/svtools/source/misc/imageresourceaccess.cxx
index a4f19d9e004a..6481adc8c671 100644
--- a/svtools/source/misc/imageresourceaccess.cxx
+++ b/svtools/source/misc/imageresourceaccess.cxx
@@ -141,8 +141,13 @@ namespace svt
//--------------------------------------------------------------------
bool GraphicAccess::isSupportedURL( const ::rtl::OUString& _rURL )
{
- ::rtl::OUString sIndicator( RTL_CONSTASCII_USTRINGPARAM( "private:resource/" ) );
- return ( ( _rURL.indexOf( sIndicator ) == 0 ) || ( _rURL.compareToAscii( GRAPHOBJ_URLPREFIX, RTL_CONSTASCII_LENGTH( GRAPHOBJ_URLPREFIX ) ) == 0 ) );
+ if ( ( _rURL.indexOfAsciiL( RTL_CONSTASCII_STRINGPARAM( "private:resource/" ) ) == 0 )
+ || ( _rURL.indexOfAsciiL( RTL_CONSTASCII_STRINGPARAM( "private:graphicrepository/" ) ) == 0 )
+ || ( _rURL.indexOfAsciiL( RTL_CONSTASCII_STRINGPARAM( "private:standardimage/" ) ) == 0 )
+ || ( _rURL.compareToAscii( GRAPHOBJ_URLPREFIX, RTL_CONSTASCII_LENGTH( GRAPHOBJ_URLPREFIX ) ) == 0 )
+ )
+ return true;
+ return false;
}
//--------------------------------------------------------------------