slidecopy: use vnd.sun.star.extension URL scheme for the extension UCP
This commit is contained in:
parent
f372e6625b
commit
642ef423f5
3 changed files with 6 additions and 6 deletions
|
@ -183,7 +183,7 @@
|
||||||
<value>com.sun.star.ucb.ExtensionContentProvider</value>
|
<value>com.sun.star.ucb.ExtensionContentProvider</value>
|
||||||
</prop>
|
</prop>
|
||||||
<prop oor:name="URLTemplate">
|
<prop oor:name="URLTemplate">
|
||||||
<value>vnd.oracle.ooo.extension</value>
|
<value>vnd.sun.star.extension</value>
|
||||||
</prop>
|
</prop>
|
||||||
<prop oor:name="Arguments">
|
<prop oor:name="Arguments">
|
||||||
<value/>
|
<value/>
|
||||||
|
|
|
@ -324,8 +324,8 @@ namespace ucb { namespace ucp { namespace ext
|
||||||
//------------------------------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------------------------------
|
||||||
bool Content::denotesRootContent( const ::rtl::OUString& i_rContentIdentifier )
|
bool Content::denotesRootContent( const ::rtl::OUString& i_rContentIdentifier )
|
||||||
{
|
{
|
||||||
const sal_Char* pScheme = "vnd.oracle.ooo.extension";
|
const sal_Char* pScheme = "vnd.sun.star.extension";
|
||||||
const sal_Int32 nSchemeLength = sizeof( "vnd.oracle.ooo.extension" ) - 1;
|
const sal_Int32 nSchemeLength = sizeof( "vnd.sun.star.extension" ) - 1;
|
||||||
ENSURE_OR_RETURN_FALSE( i_rContentIdentifier.matchAsciiL( pScheme, nSchemeLength ), "illegal content URL" );
|
ENSURE_OR_RETURN_FALSE( i_rContentIdentifier.matchAsciiL( pScheme, nSchemeLength ), "illegal content URL" );
|
||||||
return i_rContentIdentifier.copy( nSchemeLength ).equalsAsciiL( ":/", 2 );
|
return i_rContentIdentifier.copy( nSchemeLength ).equalsAsciiL( ":/", 2 );
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,13 +113,13 @@ namespace ucb { namespace ucp { namespace ext
|
||||||
//------------------------------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------------------------------
|
||||||
::rtl::OUString ContentProvider::getRootURL()
|
::rtl::OUString ContentProvider::getRootURL()
|
||||||
{
|
{
|
||||||
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "vnd.oracle.ooo.extension:/" ) );
|
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.extension:/" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------------------------------
|
||||||
::rtl::OUString ContentProvider::getArtificialNodeContentType()
|
::rtl::OUString ContentProvider::getArtificialNodeContentType()
|
||||||
{
|
{
|
||||||
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "application/vnd.oracle.ooo.extension-content" ) );
|
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "application/vnd.sun.star.extension-content" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -127,7 +127,7 @@ namespace ucb { namespace ucp { namespace ext
|
||||||
throw( IllegalIdentifierException, RuntimeException )
|
throw( IllegalIdentifierException, RuntimeException )
|
||||||
{
|
{
|
||||||
// Check URL scheme...
|
// Check URL scheme...
|
||||||
const ::rtl::OUString aScheme( rtl::OUString::createFromAscii( "vnd.oracle.ooo.extension" ) );
|
const ::rtl::OUString aScheme( rtl::OUString::createFromAscii( "vnd.sun.star.extension" ) );
|
||||||
if ( !i_rIdentifier->getContentProviderScheme().equalsIgnoreAsciiCase( aScheme ) )
|
if ( !i_rIdentifier->getContentProviderScheme().equalsIgnoreAsciiCase( aScheme ) )
|
||||||
throw IllegalIdentifierException();
|
throw IllegalIdentifierException();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue