Kaydet (Commit) 188c2d34 authored tarafından Marcos Paulo de Souza's avatar Marcos Paulo de Souza Kaydeden (comit) Olivier Hallot

Remove more STRINGPARAM macros from dbaccess

Change-Id: I5a5af27d7c980f6b71011c33531a49a82d79fbc8
Reviewed-on: https://gerrit.libreoffice.org/1771Reviewed-by: 's avatarOlivier Hallot <olivier.hallot@alta.org.br>
Tested-by: 's avatarOlivier Hallot <olivier.hallot@alta.org.br>
üst c69436f7
...@@ -93,10 +93,8 @@ IMPLEMENT_IMPLEMENTATION_ID(OContentHelper) ...@@ -93,10 +93,8 @@ IMPLEMENT_IMPLEMENTATION_ID(OContentHelper)
Reference< XContentIdentifier > SAL_CALL OContentHelper::getIdentifier( ) throw (RuntimeException) Reference< XContentIdentifier > SAL_CALL OContentHelper::getIdentifier( ) throw (RuntimeException)
{ {
::osl::MutexGuard aGuard(m_aMutex); ::osl::MutexGuard aGuard(m_aMutex);
::rtl::OUStringBuffer aIdentifier; OUString aIdentifier( "private:" + impl_getHierarchicalName( true ) );
aIdentifier.appendAscii( "private:" ); return new ::ucbhelper::ContentIdentifier( aIdentifier );
aIdentifier.append( impl_getHierarchicalName( true ) );
return new ::ucbhelper::ContentIdentifier( aIdentifier.makeStringAndClear() );
} }
::rtl::OUString OContentHelper::impl_getHierarchicalName( bool _includingRootContainer ) const ::rtl::OUString OContentHelper::impl_getHierarchicalName( bool _includingRootContainer ) const
...@@ -114,9 +112,7 @@ Reference< XContentIdentifier > SAL_CALL OContentHelper::getIdentifier( ) throw ...@@ -114,9 +112,7 @@ Reference< XContentIdentifier > SAL_CALL OContentHelper::getIdentifier( ) throw
xProp->getPropertyValue( PROPERTY_NAME ) >>= sName; xProp->getPropertyValue( PROPERTY_NAME ) >>= sName;
::rtl::OUString sPrevious = aHierarchicalName.makeStringAndClear(); ::rtl::OUString sPrevious = aHierarchicalName.makeStringAndClear();
aHierarchicalName.append( sName ); aHierarchicalName.append( sName + "/" + sPrevious );
aHierarchicalName.append( sal_Unicode( '/' ) );
aHierarchicalName.append( sPrevious );
} }
} }
::rtl::OUString sHierarchicalName( aHierarchicalName.makeStringAndClear() ); ::rtl::OUString sHierarchicalName( aHierarchicalName.makeStringAndClear() );
...@@ -352,28 +348,19 @@ Sequence< Any > OContentHelper::setPropertyValues(const Sequence< PropertyValue ...@@ -352,28 +348,19 @@ Sequence< Any > OContentHelper::setPropertyValues(const Sequence< PropertyValue
if ( rValue.Name == "ContentType" ) if ( rValue.Name == "ContentType" )
{ {
// Read-only property! // Read-only property!
aRet[ n ] <<= IllegalAccessException( aRet[ n ] <<= IllegalAccessException("Property is read-only!",
::rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM("Property is read-only!")
),
static_cast< cppu::OWeakObject * >( this ) ); static_cast< cppu::OWeakObject * >( this ) );
} }
else if ( rValue.Name == "IsDocument" ) else if ( rValue.Name == "IsDocument" )
{ {
// Read-only property! // Read-only property!
aRet[ n ] <<= IllegalAccessException( aRet[ n ] <<= IllegalAccessException("Property is read-only!",
::rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM("Property is read-only!")
),
static_cast< cppu::OWeakObject * >( this ) ); static_cast< cppu::OWeakObject * >( this ) );
} }
else if ( rValue.Name == "IsFolder" ) else if ( rValue.Name == "IsFolder" )
{ {
// Read-only property! // Read-only property!
aRet[ n ] <<= IllegalAccessException( aRet[ n ] <<= IllegalAccessException("Property is read-only!",
::rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM("Property is read-only!")
),
static_cast< cppu::OWeakObject * >( this ) ); static_cast< cppu::OWeakObject * >( this ) );
} }
else if ( rValue.Name == "Title" ) else if ( rValue.Name == "Title" )
...@@ -407,20 +394,14 @@ Sequence< Any > OContentHelper::setPropertyValues(const Sequence< PropertyValue ...@@ -407,20 +394,14 @@ Sequence< Any > OContentHelper::setPropertyValues(const Sequence< PropertyValue
} }
else else
{ {
aRet[ n ] <<= IllegalTypeException( aRet[ n ] <<= IllegalTypeException("Property value has wrong type!",
::rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM("Property value has wrong type!")
),
static_cast< cppu::OWeakObject * >( this ) ); static_cast< cppu::OWeakObject * >( this ) );
} }
} }
else else
{ {
aRet[ n ] <<= Exception( aRet[ n ] <<= Exception("No property set for storing the value!",
::rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM("No property set for storing the value!")
),
static_cast< cppu::OWeakObject * >( this ) ); static_cast< cppu::OWeakObject * >( this ) );
} }
} }
...@@ -478,28 +459,24 @@ Reference< XRow > OContentHelper::getPropertyValues( const Sequence< Property >& ...@@ -478,28 +459,24 @@ Reference< XRow > OContentHelper::getPropertyValues( const Sequence< Property >&
{ {
// Append all Core Properties. // Append all Core Properties.
xRow->appendString ( xRow->appendString (
Property( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ContentType")), Property( "ContentType", -1,
-1,
getCppuType( static_cast< const rtl::OUString * >( 0 ) ), getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
PropertyAttribute::BOUND PropertyAttribute::BOUND
| PropertyAttribute::READONLY ), | PropertyAttribute::READONLY ),
getContentType() ); getContentType() );
xRow->appendString ( xRow->appendString (
Property( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Title" )), Property( "Title", -1,
-1,
getCppuType( static_cast< const rtl::OUString * >( 0 ) ), getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
PropertyAttribute::BOUND ), PropertyAttribute::BOUND ),
m_pImpl->m_aProps.aTitle ); m_pImpl->m_aProps.aTitle );
xRow->appendBoolean( xRow->appendBoolean(
Property( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsDocument")), Property( "IsDocument", -1,
-1,
getCppuBooleanType(), getCppuBooleanType(),
PropertyAttribute::BOUND PropertyAttribute::BOUND
| PropertyAttribute::READONLY ), | PropertyAttribute::READONLY ),
m_pImpl->m_aProps.bIsDocument ); m_pImpl->m_aProps.bIsDocument );
xRow->appendBoolean( xRow->appendBoolean(
Property( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsFolder")), Property( "IsFolder", -1,
-1,
getCppuBooleanType(), getCppuBooleanType(),
PropertyAttribute::BOUND PropertyAttribute::BOUND
| PropertyAttribute::READONLY ), | PropertyAttribute::READONLY ),
......
...@@ -294,7 +294,7 @@ bool DocumentStorageAccess::commitEmbeddedStorage( bool _bPreventRootCommits ) ...@@ -294,7 +294,7 @@ bool DocumentStorageAccess::commitEmbeddedStorage( bool _bPreventRootCommits )
bool bSuccess = false; bool bSuccess = false;
try try
{ {
NamedStorages::const_iterator pos = m_aExposedStorages.find( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "database" ) ) ); NamedStorages::const_iterator pos = m_aExposedStorages.find( "database" );
if ( pos != m_aExposedStorages.end() ) if ( pos != m_aExposedStorages.end() )
bSuccess = tools::stor::commitStorageIfWriteable( pos->second ); bSuccess = tools::stor::commitStorageIfWriteable( pos->second );
} }
...@@ -360,7 +360,7 @@ void SAL_CALL DocumentStorageAccess::commited( const css::lang::EventObject& aEv ...@@ -360,7 +360,7 @@ void SAL_CALL DocumentStorageAccess::commited( const css::lang::EventObject& aEv
Reference< XStorage > xStorage( aEvent.Source, UNO_QUERY ); Reference< XStorage > xStorage( aEvent.Source, UNO_QUERY );
// check if this is the dedicated "database" sub storage // check if this is the dedicated "database" sub storage
NamedStorages::const_iterator pos = m_aExposedStorages.find( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "database" ) ) ); NamedStorages::const_iterator pos = m_aExposedStorages.find( "database" );
if ( ( pos != m_aExposedStorages.end() ) if ( ( pos != m_aExposedStorages.end() )
&& ( pos->second == xStorage ) && ( pos->second == xStorage )
) )
...@@ -430,9 +430,9 @@ ODatabaseModelImpl::ODatabaseModelImpl( const Reference< XMultiServiceFactory >& ...@@ -430,9 +430,9 @@ ODatabaseModelImpl::ODatabaseModelImpl( const Reference< XMultiServiceFactory >&
{ {
// some kind of default // some kind of default
DBG_CTOR(ODatabaseModelImpl,NULL); DBG_CTOR(ODatabaseModelImpl,NULL);
m_sConnectURL = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("jdbc:")); m_sConnectURL = "jdbc:";
m_aTableFilter.realloc(1); m_aTableFilter.realloc(1);
m_aTableFilter[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("%")); m_aTableFilter[0] = "%";
impl_construct_nothrow(); impl_construct_nothrow();
} }
...@@ -490,14 +490,8 @@ void ODatabaseModelImpl::impl_construct_nothrow() ...@@ -490,14 +490,8 @@ void ODatabaseModelImpl::impl_construct_nothrow()
*pAllowedType++ = ::getCppuType( static_cast< Sequence< Any >* >( NULL ) ); *pAllowedType++ = ::getCppuType( static_cast< Sequence< Any >* >( NULL ) );
Sequence< Any > aInitArgs( 2 ); Sequence< Any > aInitArgs( 2 );
aInitArgs[0] <<= NamedValue( aInitArgs[0] <<= NamedValue("AutomaticAddition", makeAny( (sal_Bool)sal_True ));
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "AutomaticAddition" ) ), aInitArgs[1] <<= NamedValue("AllowedTypes", makeAny( aAllowedTypes ));
makeAny( (sal_Bool)sal_True )
);
aInitArgs[1] <<= NamedValue(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "AllowedTypes" ) ),
makeAny( aAllowedTypes )
);
m_xSettings.set( m_aContext.createComponentWithArguments( "com.sun.star.beans.PropertyBag", aInitArgs ), UNO_QUERY_THROW ); m_xSettings.set( m_aContext.createComponentWithArguments( "com.sun.star.beans.PropertyBag", aInitArgs ), UNO_QUERY_THROW );
...@@ -1050,9 +1044,9 @@ const AsciiPropertyValue* ODatabaseModelImpl::getDefaultDataSourceSettings() ...@@ -1050,9 +1044,9 @@ const AsciiPropertyValue* ODatabaseModelImpl::getDefaultDataSourceSettings()
AsciiPropertyValue( "Extension", makeAny( ::rtl::OUString() ) ), AsciiPropertyValue( "Extension", makeAny( ::rtl::OUString() ) ),
AsciiPropertyValue( "CharSet", makeAny( ::rtl::OUString() ) ), AsciiPropertyValue( "CharSet", makeAny( ::rtl::OUString() ) ),
AsciiPropertyValue( "HeaderLine", makeAny( (sal_Bool)sal_True ) ), AsciiPropertyValue( "HeaderLine", makeAny( (sal_Bool)sal_True ) ),
AsciiPropertyValue( "FieldDelimiter", makeAny( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "," ) ) ) ), AsciiPropertyValue( "FieldDelimiter", makeAny( OUString( "," ) ) ),
AsciiPropertyValue( "StringDelimiter", makeAny( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "\"" ) ) ) ), AsciiPropertyValue( "StringDelimiter", makeAny( OUString( "\"" ) ) ),
AsciiPropertyValue( "DecimalDelimiter", makeAny( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "." ) ) ) ), AsciiPropertyValue( "DecimalDelimiter", makeAny( OUString( "." ) ) ),
AsciiPropertyValue( "ThousandDelimiter", makeAny( ::rtl::OUString() ) ), AsciiPropertyValue( "ThousandDelimiter", makeAny( ::rtl::OUString() ) ),
AsciiPropertyValue( "ShowDeleted", makeAny( (sal_Bool)sal_False ) ), AsciiPropertyValue( "ShowDeleted", makeAny( (sal_Bool)sal_False ) ),
// known ODBC settings // known ODBC settings
......
...@@ -561,7 +561,7 @@ public: ...@@ -561,7 +561,7 @@ public:
inline void checkDisposed() const inline void checkDisposed() const
{ {
if ( !m_pImpl.is() ) if ( !m_pImpl.is() )
throw ::com::sun::star::lang::DisposedException( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Component is already disposed.")), getThis() ); throw ::com::sun::star::lang::DisposedException( "Component is already disposed.", getThis() );
} }
inline void lockModify() inline void lockModify()
......
...@@ -90,23 +90,23 @@ namespace dbaccess ...@@ -90,23 +90,23 @@ namespace dbaccess
// XConnection // XConnection
virtual void SAL_CALL setAutoCommit( sal_Bool /*autoCommit*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) virtual void SAL_CALL setAutoCommit( sal_Bool /*autoCommit*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{ {
throw ::com::sun::star::sdbc::SQLException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("This call is not allowed when sharing connections.")),*this,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("S10000")),0,::com::sun::star::uno::Any()); throw ::com::sun::star::sdbc::SQLException("This call is not allowed when sharing connections.",*this,"S10000",0,::com::sun::star::uno::Any());
} }
virtual void SAL_CALL setReadOnly( sal_Bool /*readOnly*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) virtual void SAL_CALL setReadOnly( sal_Bool /*readOnly*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{ {
throw ::com::sun::star::sdbc::SQLException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("This call is not allowed when sharing connections.")),*this,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("S10000")),0,::com::sun::star::uno::Any()); throw ::com::sun::star::sdbc::SQLException("This call is not allowed when sharing connections.",*this,"S10000",0,::com::sun::star::uno::Any());
} }
virtual void SAL_CALL setCatalog( const ::rtl::OUString& /*catalog*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) virtual void SAL_CALL setCatalog( const ::rtl::OUString& /*catalog*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{ {
throw ::com::sun::star::sdbc::SQLException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("This call is not allowed when sharing connections.")),*this,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("S10000")),0,::com::sun::star::uno::Any()); throw ::com::sun::star::sdbc::SQLException("This call is not allowed when sharing connections.",*this,"S10000",0,::com::sun::star::uno::Any());
} }
virtual void SAL_CALL setTransactionIsolation( sal_Int32 /*level*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) virtual void SAL_CALL setTransactionIsolation( sal_Int32 /*level*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{ {
throw ::com::sun::star::sdbc::SQLException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("This call is not allowed when sharing connections.")),*this,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("S10000")),0,::com::sun::star::uno::Any()); throw ::com::sun::star::sdbc::SQLException("This call is not allowed when sharing connections.",*this,"S10000",0,::com::sun::star::uno::Any());
} }
virtual void SAL_CALL setTypeMap( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) virtual void SAL_CALL setTypeMap( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{ {
throw ::com::sun::star::sdbc::SQLException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("This call is not allowed when sharing connections.")),*this,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("S10000")),0,::com::sun::star::uno::Any()); throw ::com::sun::star::sdbc::SQLException("This call is not allowed when sharing connections.",*this,"S10000",0,::com::sun::star::uno::Any());
} }
// XConnection // XConnection
virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XStatement > SAL_CALL createStatement( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XStatement > SAL_CALL createStatement( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
......
...@@ -85,9 +85,9 @@ OBookmarkContainer::~OBookmarkContainer() ...@@ -85,9 +85,9 @@ OBookmarkContainer::~OBookmarkContainer()
} }
// XServiceInfo // XServiceInfo
::rtl::OUString SAL_CALL OBookmarkContainer::getImplementationName( ) throw(RuntimeException) OUString SAL_CALL OBookmarkContainer::getImplementationName( ) throw(RuntimeException)
{ {
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.dba.OBookmarkContainer")); return OUString("com.sun.star.comp.dba.OBookmarkContainer");
} }
sal_Bool SAL_CALL OBookmarkContainer::supportsService( const ::rtl::OUString& _rServiceName ) throw (RuntimeException) sal_Bool SAL_CALL OBookmarkContainer::supportsService( const ::rtl::OUString& _rServiceName ) throw (RuntimeException)
...@@ -97,10 +97,10 @@ sal_Bool SAL_CALL OBookmarkContainer::supportsService( const ::rtl::OUString& _r ...@@ -97,10 +97,10 @@ sal_Bool SAL_CALL OBookmarkContainer::supportsService( const ::rtl::OUString& _r
return findValue(getSupportedServiceNames(), _rServiceName, sal_True).getLength() != 0; return findValue(getSupportedServiceNames(), _rServiceName, sal_True).getLength() != 0;
} }
Sequence< ::rtl::OUString > SAL_CALL OBookmarkContainer::getSupportedServiceNames( ) throw(RuntimeException) Sequence< OUString > SAL_CALL OBookmarkContainer::getSupportedServiceNames( ) throw(RuntimeException)
{ {
Sequence< ::rtl::OUString > aReturn(1); Sequence< OUString > aReturn(1);
aReturn.getArray()[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdb.DefinitionContainer")); aReturn.getArray()[0] = "com.sun.star.sdb.DefinitionContainer";
return aReturn; return aReturn;
} }
......
...@@ -81,9 +81,9 @@ Reference< XInterface > SAL_CALL OCommandContainer::createInstance( ) throw (Exc ...@@ -81,9 +81,9 @@ Reference< XInterface > SAL_CALL OCommandContainer::createInstance( ) throw (Exc
return m_aContext.createComponent( (::rtl::OUString)( m_bTables ? SERVICE_SDB_TABLEDEFINITION : SERVICE_SDB_COMMAND_DEFINITION ) ); return m_aContext.createComponent( (::rtl::OUString)( m_bTables ? SERVICE_SDB_TABLEDEFINITION : SERVICE_SDB_COMMAND_DEFINITION ) );
} }
::rtl::OUString OCommandContainer::determineContentType() const OUString OCommandContainer::determineContentType() const
{ {
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "application/vnd.org.openoffice.DatabaseCommandDefinitionContainer" ) ); return OUString( "application/vnd.org.openoffice.DatabaseCommandDefinitionContainer" );
} }
} // namespace dbaccess } // namespace dbaccess
......
...@@ -102,9 +102,9 @@ IMPLEMENT_GETTYPES2(OCommandDefinition,OCommandDefinition_Base,OComponentDefinit ...@@ -102,9 +102,9 @@ IMPLEMENT_GETTYPES2(OCommandDefinition,OCommandDefinition_Base,OComponentDefinit
IMPLEMENT_FORWARD_XINTERFACE2( OCommandDefinition,OComponentDefinition,OCommandDefinition_Base) IMPLEMENT_FORWARD_XINTERFACE2( OCommandDefinition,OComponentDefinition,OCommandDefinition_Base)
IMPLEMENT_PROPERTYCONTAINER_DEFAULTS2(OCommandDefinition,OCommandDefinition_PROP) IMPLEMENT_PROPERTYCONTAINER_DEFAULTS2(OCommandDefinition,OCommandDefinition_PROP)
::rtl::OUString OCommandDefinition::getImplementationName_static( ) throw(RuntimeException) OUString OCommandDefinition::getImplementationName_static( ) throw(RuntimeException)
{ {
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.dba.OCommandDefinition")); return OUString("com.sun.star.comp.dba.OCommandDefinition");
} }
::rtl::OUString SAL_CALL OCommandDefinition::getImplementationName( ) throw(RuntimeException) ::rtl::OUString SAL_CALL OCommandDefinition::getImplementationName( ) throw(RuntimeException)
...@@ -112,12 +112,12 @@ IMPLEMENT_PROPERTYCONTAINER_DEFAULTS2(OCommandDefinition,OCommandDefinition_PROP ...@@ -112,12 +112,12 @@ IMPLEMENT_PROPERTYCONTAINER_DEFAULTS2(OCommandDefinition,OCommandDefinition_PROP
return getImplementationName_static(); return getImplementationName_static();
} }
Sequence< ::rtl::OUString > OCommandDefinition::getSupportedServiceNames_static( ) throw(RuntimeException) Sequence< OUString > OCommandDefinition::getSupportedServiceNames_static( ) throw(RuntimeException)
{ {
Sequence< ::rtl::OUString > aServices(3); Sequence< OUString > aServices(3);
aServices.getArray()[0] = SERVICE_SDB_QUERYDEFINITION; aServices.getArray()[0] = SERVICE_SDB_QUERYDEFINITION;
aServices.getArray()[1] = SERVICE_SDB_COMMAND_DEFINITION; aServices.getArray()[1] = SERVICE_SDB_COMMAND_DEFINITION;
aServices.getArray()[2] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.ucb.Content")); aServices.getArray()[2] = "com.sun.star.ucb.Content";
return aServices; return aServices;
} }
......
...@@ -182,9 +182,9 @@ namespace dbaccess ...@@ -182,9 +182,9 @@ namespace dbaccess
IMPLEMENT_FORWARD_XTYPEPROVIDER2( DataAccessDescriptor, DataAccessDescriptor_TypeBase, DataAccessDescriptor_PropertyBase ); IMPLEMENT_FORWARD_XTYPEPROVIDER2( DataAccessDescriptor, DataAccessDescriptor_TypeBase, DataAccessDescriptor_PropertyBase );
::rtl::OUString SAL_CALL DataAccessDescriptor::getImplementationName() throw (RuntimeException) OUString SAL_CALL DataAccessDescriptor::getImplementationName() throw (RuntimeException)
{ {
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.dba.DataAccessDescriptor" ) ); return OUString( "com.sun.star.comp.dba.DataAccessDescriptor" );
} }
::sal_Bool SAL_CALL DataAccessDescriptor::supportsService( const ::rtl::OUString& rServiceName ) throw (RuntimeException) ::sal_Bool SAL_CALL DataAccessDescriptor::supportsService( const ::rtl::OUString& rServiceName ) throw (RuntimeException)
...@@ -195,10 +195,10 @@ namespace dbaccess ...@@ -195,10 +195,10 @@ namespace dbaccess
return ::std::find( pStart, pEnd, rServiceName ) != pEnd; return ::std::find( pStart, pEnd, rServiceName ) != pEnd;
} }
Sequence< ::rtl::OUString > SAL_CALL DataAccessDescriptor::getSupportedServiceNames( ) throw (RuntimeException) Sequence< OUString > SAL_CALL DataAccessDescriptor::getSupportedServiceNames( ) throw (RuntimeException)
{ {
Sequence< ::rtl::OUString > aServices(1); Sequence< OUString > aServices(1);
aServices[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.sdb.DataAccessDescriptor" ) ); aServices[0] = "com.sun.star.sdb.DataAccessDescriptor";
return aServices; return aServices;
} }
...@@ -260,9 +260,9 @@ namespace dbaccess ...@@ -260,9 +260,9 @@ namespace dbaccess
{ {
} }
::rtl::OUString DataAccessDescriptorFactory::getSingletonName_static() OUString DataAccessDescriptorFactory::getSingletonName_static()
{ {
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.sdb.DataAccessDescriptorFactory" ) ); return OUString( "com.sun.star.sdb.DataAccessDescriptorFactory" );
} }
Sequence< ::rtl::OUString > DataAccessDescriptorFactory::getSupportedServiceNames_static() throw( RuntimeException ) Sequence< ::rtl::OUString > DataAccessDescriptorFactory::getSupportedServiceNames_static() throw( RuntimeException )
...@@ -272,9 +272,9 @@ namespace dbaccess ...@@ -272,9 +272,9 @@ namespace dbaccess
return aServices; return aServices;
} }
::rtl::OUString DataAccessDescriptorFactory::getImplementationName_static() throw( RuntimeException ) OUString DataAccessDescriptorFactory::getImplementationName_static() throw( RuntimeException )
{ {
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.dba.DataAccessDescriptorFactory" ) ); return OUString( "com.sun.star.comp.dba.DataAccessDescriptorFactory" );
} }
Reference< XInterface > DataAccessDescriptorFactory::Create( const Reference< XComponentContext >& _rxContext ) Reference< XInterface > DataAccessDescriptorFactory::Create( const Reference< XComponentContext >& _rxContext )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment