Kaydet (Commit) cc1743fe authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

targeted string re-work

Change-Id: Ibc811f2ef501a91172e096a700821ab6bd9406ea
üst 212d2341
...@@ -91,7 +91,7 @@ void MozabDriver::disposing() ...@@ -91,7 +91,7 @@ void MozabDriver::disposing()
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
rtl::OUString MozabDriver::getImplementationName_Static( ) throw(RuntimeException) rtl::OUString MozabDriver::getImplementationName_Static( ) throw(RuntimeException)
{ {
return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(MOZAB_DRIVER_IMPL_NAME)); return rtl::OUString(MOZAB_DRIVER_IMPL_NAME);
// this name is referenced in the configuration and in the mozab.xml // this name is referenced in the configuration and in the mozab.xml
// Please take care when changing it. // Please take care when changing it.
} }
...@@ -101,7 +101,7 @@ Sequence< ::rtl::OUString > MozabDriver::getSupportedServiceNames_Static( ) thr ...@@ -101,7 +101,7 @@ Sequence< ::rtl::OUString > MozabDriver::getSupportedServiceNames_Static( ) thr
// which service is supported // which service is supported
// for more information @see com.sun.star.sdbc.Driver // for more information @see com.sun.star.sdbc.Driver
Sequence< ::rtl::OUString > aSNS( 1 ); Sequence< ::rtl::OUString > aSNS( 1 );
aSNS[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbc.Driver")); aSNS[0] = ::rtl::OUString( "com.sun.star.sdbc.Driver");
return aSNS; return aSNS;
} }
...@@ -143,7 +143,7 @@ Reference< XConnection > SAL_CALL MozabDriver::connect( const ::rtl::OUString& u ...@@ -143,7 +143,7 @@ Reference< XConnection > SAL_CALL MozabDriver::connect( const ::rtl::OUString& u
{ {
::osl::MutexGuard aGuard(m_aMutex); ::osl::MutexGuard aGuard(m_aMutex);
//We must make sure we create an com.sun.star.mozilla.MozillaBootstrap brfore call any mozilla codes //We must make sure we create an com.sun.star.mozilla.MozillaBootstrap brfore call any mozilla codes
Reference<XInterface> xInstance = m_xMSFactory->createInstance(::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.mozilla.MozillaBootstrap")) ); Reference<XInterface> xInstance = m_xMSFactory->createInstance(::rtl::OUString( "com.sun.star.mozilla.MozillaBootstrap") );
OSL_ENSURE( xInstance.is(), "failed to create instance" ); OSL_ENSURE( xInstance.is(), "failed to create instance" );
OConnection* pCon = reinterpret_cast<OConnection*>((*m_pCreationFunc)(this)); OConnection* pCon = reinterpret_cast<OConnection*>((*m_pCreationFunc)(this));
...@@ -157,7 +157,7 @@ Reference< XConnection > SAL_CALL MozabDriver::connect( const ::rtl::OUString& u ...@@ -157,7 +157,7 @@ Reference< XConnection > SAL_CALL MozabDriver::connect( const ::rtl::OUString& u
::connectivity::SharedResources aResources; ::connectivity::SharedResources aResources;
const ::rtl::OUString sError( aResources.getResourceStringWithSubstitution( const ::rtl::OUString sError( aResources.getResourceStringWithSubstitution(
STR_COULD_NOT_LOAD_LIB, STR_COULD_NOT_LOAD_LIB,
"$libname$", ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( SVLIBRARY( "mozabdrv" )) ) "$libname$", ::rtl::OUString( SVLIBRARY( "mozabdrv" ) )
) ); ) );
::dbtools::throwGenericSQLException(sError,*this); ::dbtools::throwGenericSQLException(sError,*this);
...@@ -188,17 +188,17 @@ Sequence< DriverPropertyInfo > SAL_CALL MozabDriver::getPropertyInfo( const ::rt ...@@ -188,17 +188,17 @@ Sequence< DriverPropertyInfo > SAL_CALL MozabDriver::getPropertyInfo( const ::rt
::std::vector< DriverPropertyInfo > aDriverInfo; ::std::vector< DriverPropertyInfo > aDriverInfo;
aDriverInfo.push_back(DriverPropertyInfo( aDriverInfo.push_back(DriverPropertyInfo(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("BaseDN")) ::rtl::OUString("BaseDN")
,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Base DN.")) ,::rtl::OUString("Base DN.")
,sal_False ,sal_False
,::rtl::OUString() ,::rtl::OUString()
,Sequence< ::rtl::OUString >()) ,Sequence< ::rtl::OUString >())
); );
aDriverInfo.push_back(DriverPropertyInfo( aDriverInfo.push_back(DriverPropertyInfo(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("MaxRowCount")) ::rtl::OUString("MaxRowCount")
,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Records (max.)")) ,::rtl::OUString("Records (max."))
,sal_False ,sal_False
,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("100")) ,::rtl::OUString("100")
,Sequence< ::rtl::OUString >()) ,Sequence< ::rtl::OUString >())
); );
return Sequence< DriverPropertyInfo >(&aDriverInfo[0],aDriverInfo.size()); return Sequence< DriverPropertyInfo >(&aDriverInfo[0],aDriverInfo.size());
...@@ -235,7 +235,7 @@ EDriverType MozabDriver::impl_classifyURL( const ::rtl::OUString& url ) ...@@ -235,7 +235,7 @@ EDriverType MozabDriver::impl_classifyURL( const ::rtl::OUString& url )
// There isn't any subschema: - but could be just subschema // There isn't any subschema: - but could be just subschema
if ( !aAddrbookURI.isEmpty() ) if ( !aAddrbookURI.isEmpty() )
aAddrbookScheme= aAddrbookURI; aAddrbookScheme= aAddrbookURI;
else if(url == ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("sdbc:address:")) ) else if(url == ::rtl::OUString("sdbc:address:") )
return Unknown; // TODO check return Unknown; // TODO check
else else
return Unknown; return Unknown;
...@@ -299,7 +299,7 @@ bool MozabDriver::ensureInit() ...@@ -299,7 +299,7 @@ bool MozabDriver::ensureInit()
OSL_ENSURE(NULL == m_pCreationFunc, "MozabDriver::ensureInit: inconsistence: already have a factory function!"); OSL_ENSURE(NULL == m_pCreationFunc, "MozabDriver::ensureInit: inconsistence: already have a factory function!");
const ::rtl::OUString sModuleName(RTL_CONSTASCII_USTRINGPARAM(SVLIBRARY( "mozabdrv" ))); const ::rtl::OUString sModuleName(SVLIBRARY( "mozabdrv" ));
// load the mozabdrv library // load the mozabdrv library
m_hModule = osl_loadModuleRelative(&thisModule, sModuleName.pData, 0); m_hModule = osl_loadModuleRelative(&thisModule, sModuleName.pData, 0);
......
...@@ -93,7 +93,7 @@ struct ProviderRequest ...@@ -93,7 +93,7 @@ struct ProviderRequest
typedef void* (SAL_CALL * OMozillaBootstrap_CreateInstanceFunction)(const Reference< XMultiServiceFactory >& _rxFactory ); typedef void* (SAL_CALL * OMozillaBootstrap_CreateInstanceFunction)(const Reference< XMultiServiceFactory >& _rxFactory );
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createMozillaBootstrap(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) throw( ::com::sun::star::uno::Exception ) ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createMozillaBootstrap(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) throw( ::com::sun::star::uno::Exception )
{ {
const ::rtl::OUString sModuleName(RTL_CONSTASCII_USTRINGPARAM(SVLIBRARY( "mozabdrv" ))); const ::rtl::OUString sModuleName(SVLIBRARY( "mozabdrv" ));
// load the dbtools library // load the dbtools library
oslModule s_hModule = osl_loadModuleRelative( oslModule s_hModule = osl_loadModuleRelative(
...@@ -104,7 +104,7 @@ typedef void* (SAL_CALL * OMozillaBootstrap_CreateInstanceFunction)(const Refere ...@@ -104,7 +104,7 @@ typedef void* (SAL_CALL * OMozillaBootstrap_CreateInstanceFunction)(const Refere
{ {
// get the symbol for the method creating the factory // get the symbol for the method creating the factory
const ::rtl::OUString sFactoryCreationFunc = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("OMozillaBootstrap_CreateInstance")); const ::rtl::OUString sFactoryCreationFunc = ::rtl::OUString( "OMozillaBootstrap_CreateInstance");
// reinterpret_cast<OMozabConnection_CreateInstanceFunction> removed GNU C // reinterpret_cast<OMozabConnection_CreateInstanceFunction> removed GNU C
OMozillaBootstrap_CreateInstanceFunction s_pCreationFunc = (OMozillaBootstrap_CreateInstanceFunction)osl_getFunctionSymbol(s_hModule, sFactoryCreationFunc.pData); OMozillaBootstrap_CreateInstanceFunction s_pCreationFunc = (OMozillaBootstrap_CreateInstanceFunction)osl_getFunctionSymbol(s_hModule, sFactoryCreationFunc.pData);
...@@ -140,7 +140,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( ...@@ -140,7 +140,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(
else if ( aImplName == "com.sun.star.comp.mozilla.MozillaBootstrap" ) else if ( aImplName == "com.sun.star.comp.mozilla.MozillaBootstrap" )
{ {
Sequence< ::rtl::OUString > aSNS( 1 ); Sequence< ::rtl::OUString > aSNS( 1 );
aSNS[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.mozilla.MozillaBootstrap")); aSNS[0] = ::rtl::OUString( "com.sun.star.mozilla.MozillaBootstrap");
aReq.CREATE_PROVIDER( aReq.CREATE_PROVIDER(
aImplName, aImplName,
aSNS, aSNS,
......
...@@ -77,7 +77,7 @@ Reference< uno::XComponentContext > lcl_getComponentContext() ...@@ -77,7 +77,7 @@ Reference< uno::XComponentContext > lcl_getComponentContext()
{ {
Reference< beans::XPropertySet > xFactProp( comphelper::getProcessServiceFactory(), uno::UNO_QUERY ); Reference< beans::XPropertySet > xFactProp( comphelper::getProcessServiceFactory(), uno::UNO_QUERY );
if( xFactProp.is()) if( xFactProp.is())
xFactProp->getPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM( "DefaultContext" ))) >>= xContext; xFactProp->getPropertyValue(OUString( "DefaultContext" )) >>= xContext;
} }
catch( uno::Exception& ) catch( uno::Exception& )
{} {}
...@@ -465,9 +465,9 @@ void SchXMLImportHelper::DeleteDataSeries( ...@@ -465,9 +465,9 @@ void SchXMLImportHelper::DeleteDataSeries(
{ {
(void)ex; // avoid warning for pro build (void)ex; // avoid warning for pro build
OSL_FAIL( OUStringToOString( OSL_FAIL( OUStringToOString(
OUString( RTL_CONSTASCII_USTRINGPARAM( "Exception caught. Type: " )) + OUString( "Exception caught. Type: " ) +
OUString::createFromAscii( typeid( ex ).name()) + OUString::createFromAscii( typeid( ex ).name()) +
OUString( RTL_CONSTASCII_USTRINGPARAM( ", Message: " )) + OUString( ", Message: " ) +
ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr()); ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr());
} }
} }
...@@ -536,7 +536,7 @@ Reference< chart2::XDataSeries > SchXMLImportHelper::GetNewDataSeries( ...@@ -536,7 +536,7 @@ Reference< chart2::XDataSeries > SchXMLImportHelper::GetNewDataSeries(
{ {
xResult.set( xResult.set(
xContext->getServiceManager()->createInstanceWithContext( xContext->getServiceManager()->createInstanceWithContext(
OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.chart2.DataSeries" )), OUString( "com.sun.star.chart2.DataSeries" ),
xContext ), uno::UNO_QUERY_THROW ); xContext ), uno::UNO_QUERY_THROW );
} }
if( xResult.is() ) if( xResult.is() )
...@@ -548,9 +548,9 @@ Reference< chart2::XDataSeries > SchXMLImportHelper::GetNewDataSeries( ...@@ -548,9 +548,9 @@ Reference< chart2::XDataSeries > SchXMLImportHelper::GetNewDataSeries(
{ {
(void)ex; // avoid warning for pro build (void)ex; // avoid warning for pro build
OSL_FAIL( OUStringToOString( OSL_FAIL( OUStringToOString(
OUString( RTL_CONSTASCII_USTRINGPARAM( "Exception caught. Type: " )) + OUString( "Exception caught. Type: " ) +
OUString::createFromAscii( typeid( ex ).name()) + OUString::createFromAscii( typeid( ex ).name()) +
OUString( RTL_CONSTASCII_USTRINGPARAM( ", Message: " )) + OUString( ", Message: " ) +
ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr()); ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr());
} }
return xResult; return xResult;
...@@ -608,8 +608,8 @@ SvXMLImportContext *SchXMLImport::CreateContext( sal_uInt16 nPrefix, const OUStr ...@@ -608,8 +608,8 @@ SvXMLImportContext *SchXMLImport::CreateContext( sal_uInt16 nPrefix, const OUStr
if (xDPS.is()) { if (xDPS.is()) {
uno::Reference<xml::sax::XDocumentHandler> xDocBuilder( uno::Reference<xml::sax::XDocumentHandler> xDocBuilder(
mxServiceFactory->createInstance( mxServiceFactory->createInstance(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ::rtl::OUString(
"com.sun.star.xml.dom.SAXDocumentBuilder"))), "com.sun.star.xml.dom.SAXDocumentBuilder")),
uno::UNO_QUERY_THROW); uno::UNO_QUERY_THROW);
pContext = (IsXMLToken(rLocalName, XML_DOCUMENT_META)) pContext = (IsXMLToken(rLocalName, XML_DOCUMENT_META))
? new SvXMLMetaDocumentContext(*this, ? new SvXMLMetaDocumentContext(*this,
...@@ -683,7 +683,7 @@ void SAL_CALL SchXMLImport::setTargetDocument( const uno::Reference< lang::XComp ...@@ -683,7 +683,7 @@ void SAL_CALL SchXMLImport::setTargetDocument( const uno::Reference< lang::XComp
if ( !xChartDoc->getDataProvider().is() ) if ( !xChartDoc->getDataProvider().is() )
{ {
const OUString aDataProviderServiceName( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.chart2.data.DataProvider")); const OUString aDataProviderServiceName( "com.sun.star.chart2.data.DataProvider");
const uno::Sequence< OUString > aServiceNames( xFact->getAvailableServiceNames()); const uno::Sequence< OUString > aServiceNames( xFact->getAvailableServiceNames());
const OUString * pBegin = aServiceNames.getConstArray(); const OUString * pBegin = aServiceNames.getConstArray();
const OUString * pEnd = pBegin + aServiceNames.getLength(); const OUString * pEnd = pBegin + aServiceNames.getLength();
...@@ -724,14 +724,14 @@ void SAL_CALL SchXMLImport::setTargetDocument( const uno::Reference< lang::XComp ...@@ -724,14 +724,14 @@ void SAL_CALL SchXMLImport::setTargetDocument( const uno::Reference< lang::XComp
Sequence< OUString > SAL_CALL SchXMLImport_getSupportedServiceNames() throw() Sequence< OUString > SAL_CALL SchXMLImport_getSupportedServiceNames() throw()
{ {
const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLOasisImporter" ) ); const OUString aServiceName( "com.sun.star.comp.Chart.XMLOasisImporter" );
const Sequence< OUString > aSeq( &aServiceName, 1 ); const Sequence< OUString > aSeq( &aServiceName, 1 );
return aSeq; return aSeq;
} }
OUString SAL_CALL SchXMLImport_getImplementationName() throw() OUString SAL_CALL SchXMLImport_getImplementationName() throw()
{ {
return OUString( RTL_CONSTASCII_USTRINGPARAM( "SchXMLImport" ) ); return OUString( "SchXMLImport" );
} }
Reference< uno::XInterface > SAL_CALL SchXMLImport_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception ) Reference< uno::XInterface > SAL_CALL SchXMLImport_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception )
...@@ -746,14 +746,14 @@ Reference< uno::XInterface > SAL_CALL SchXMLImport_createInstance(const Referenc ...@@ -746,14 +746,14 @@ Reference< uno::XInterface > SAL_CALL SchXMLImport_createInstance(const Referenc
Sequence< OUString > SAL_CALL SchXMLImport_Styles_getSupportedServiceNames() throw() Sequence< OUString > SAL_CALL SchXMLImport_Styles_getSupportedServiceNames() throw()
{ {
const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLOasisStylesImporter" ) ); const OUString aServiceName( "com.sun.star.comp.Chart.XMLOasisStylesImporter" );
const Sequence< OUString > aSeq( &aServiceName, 1 ); const Sequence< OUString > aSeq( &aServiceName, 1 );
return aSeq; return aSeq;
} }
OUString SAL_CALL SchXMLImport_Styles_getImplementationName() throw() OUString SAL_CALL SchXMLImport_Styles_getImplementationName() throw()
{ {
return OUString( RTL_CONSTASCII_USTRINGPARAM( "SchXMLImport.Styles" ) ); return OUString( "SchXMLImport.Styles" );
} }
Reference< uno::XInterface > SAL_CALL SchXMLImport_Styles_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception ) Reference< uno::XInterface > SAL_CALL SchXMLImport_Styles_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception )
...@@ -766,14 +766,14 @@ Reference< uno::XInterface > SAL_CALL SchXMLImport_Styles_createInstance(const R ...@@ -766,14 +766,14 @@ Reference< uno::XInterface > SAL_CALL SchXMLImport_Styles_createInstance(const R
Sequence< OUString > SAL_CALL SchXMLImport_Content_getSupportedServiceNames() throw() Sequence< OUString > SAL_CALL SchXMLImport_Content_getSupportedServiceNames() throw()
{ {
const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLOasisContentImporter" ) ); const OUString aServiceName( "com.sun.star.comp.Chart.XMLOasisContentImporter" );
const Sequence< OUString > aSeq( &aServiceName, 1 ); const Sequence< OUString > aSeq( &aServiceName, 1 );
return aSeq; return aSeq;
} }
OUString SAL_CALL SchXMLImport_Content_getImplementationName() throw() OUString SAL_CALL SchXMLImport_Content_getImplementationName() throw()
{ {
return OUString( RTL_CONSTASCII_USTRINGPARAM( "SchXMLImport.Content" ) ); return OUString( "SchXMLImport.Content" );
} }
Reference< uno::XInterface > SAL_CALL SchXMLImport_Content_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception ) Reference< uno::XInterface > SAL_CALL SchXMLImport_Content_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception )
...@@ -786,14 +786,14 @@ Reference< uno::XInterface > SAL_CALL SchXMLImport_Content_createInstance(const ...@@ -786,14 +786,14 @@ Reference< uno::XInterface > SAL_CALL SchXMLImport_Content_createInstance(const
Sequence< OUString > SAL_CALL SchXMLImport_Meta_getSupportedServiceNames() throw() Sequence< OUString > SAL_CALL SchXMLImport_Meta_getSupportedServiceNames() throw()
{ {
const OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.Chart.XMLOasisMetaImporter" ) ); const OUString aServiceName( "com.sun.star.comp.Chart.XMLOasisMetaImporter" );
const Sequence< OUString > aSeq( &aServiceName, 1 ); const Sequence< OUString > aSeq( &aServiceName, 1 );
return aSeq; return aSeq;
} }
OUString SAL_CALL SchXMLImport_Meta_getImplementationName() throw() OUString SAL_CALL SchXMLImport_Meta_getImplementationName() throw()
{ {
return OUString( RTL_CONSTASCII_USTRINGPARAM( "SchXMLImport.Meta" ) ); return OUString( "SchXMLImport.Meta" );
} }
Reference< uno::XInterface > SAL_CALL SchXMLImport_Meta_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception ) Reference< uno::XInterface > SAL_CALL SchXMLImport_Meta_createInstance(const Reference< lang::XMultiServiceFactory > & rSMgr) throw( uno::Exception )
...@@ -819,7 +819,7 @@ OUString SAL_CALL SchXMLImport::getImplementationName() throw( uno::RuntimeExcep ...@@ -819,7 +819,7 @@ OUString SAL_CALL SchXMLImport::getImplementationName() throw( uno::RuntimeExcep
case IMPORT_SETTINGS: case IMPORT_SETTINGS:
// there is no settings component in chart // there is no settings component in chart
default: default:
return OUString(RTL_CONSTASCII_USTRINGPARAM( "SchXMLImport" )); return OUString( "SchXMLImport" );
} }
} }
......
...@@ -102,7 +102,7 @@ sal_uInt32 XMLMetaExportComponent::exportDoc( enum XMLTokenEnum ) ...@@ -102,7 +102,7 @@ sal_uInt32 XMLMetaExportComponent::exportDoc( enum XMLTokenEnum )
uno::Any aAny; uno::Any aAny;
aAny <<= GetXMLToken( XML_TEXT ); aAny <<= GetXMLToken( XML_TEXT );
xConvPropSet->setPropertyValue( xConvPropSet->setPropertyValue(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Class")), aAny ); ::rtl::OUString("Class"), aAny );
uno::Reference< beans::XPropertySet > xPropSet = uno::Reference< beans::XPropertySet > xPropSet =
getExportInfo().is() getExportInfo().is()
...@@ -118,7 +118,7 @@ sal_uInt32 XMLMetaExportComponent::exportDoc( enum XMLTokenEnum ) ...@@ -118,7 +118,7 @@ sal_uInt32 XMLMetaExportComponent::exportDoc( enum XMLTokenEnum )
// get filter component // get filter component
xDocHandler = uno::Reference< xml::sax::XDocumentHandler >( xDocHandler = uno::Reference< xml::sax::XDocumentHandler >(
xFactory->createInstanceWithArguments( xFactory->createInstanceWithArguments(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.Oasis2OOoTransformer")), ::rtl::OUString("com.sun.star.comp.Oasis2OOoTransformer"),
aArgs), aArgs),
uno::UNO_QUERY_THROW ); uno::UNO_QUERY_THROW );
...@@ -196,14 +196,14 @@ uno::Sequence< rtl::OUString > SAL_CALL XMLMetaExportComponent_getSupportedServi ...@@ -196,14 +196,14 @@ uno::Sequence< rtl::OUString > SAL_CALL XMLMetaExportComponent_getSupportedServi
throw() throw()
{ {
const rtl::OUString aServiceName( const rtl::OUString aServiceName(
RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.document.XMLOasisMetaExporter" ) ); "com.sun.star.document.XMLOasisMetaExporter" );
const uno::Sequence< rtl::OUString > aSeq( &aServiceName, 1 ); const uno::Sequence< rtl::OUString > aSeq( &aServiceName, 1 );
return aSeq; return aSeq;
} }
rtl::OUString SAL_CALL XMLMetaExportComponent_getImplementationName() throw() rtl::OUString SAL_CALL XMLMetaExportComponent_getImplementationName() throw()
{ {
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "XMLMetaExportComponent" ) ); return rtl::OUString( "XMLMetaExportComponent" );
} }
uno::Reference< uno::XInterface > SAL_CALL XMLMetaExportComponent_createInstance( uno::Reference< uno::XInterface > SAL_CALL XMLMetaExportComponent_createInstance(
...@@ -217,14 +217,14 @@ uno::Sequence< rtl::OUString > SAL_CALL XMLMetaExportOOO_getSupportedServiceName ...@@ -217,14 +217,14 @@ uno::Sequence< rtl::OUString > SAL_CALL XMLMetaExportOOO_getSupportedServiceName
throw() throw()
{ {
const rtl::OUString aServiceName( const rtl::OUString aServiceName(
RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.document.XMLMetaExporter" ) ); "com.sun.star.document.XMLMetaExporter" );
const uno::Sequence< rtl::OUString > aSeq( &aServiceName, 1 ); const uno::Sequence< rtl::OUString > aSeq( &aServiceName, 1 );
return aSeq; return aSeq;
} }
rtl::OUString SAL_CALL XMLMetaExportOOO_getImplementationName() throw() rtl::OUString SAL_CALL XMLMetaExportOOO_getImplementationName() throw()
{ {
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "XMLMetaExportOOo" ) ); return rtl::OUString( "XMLMetaExportOOo" );
} }
uno::Reference< uno::XInterface > SAL_CALL XMLMetaExportOOO_createInstance( uno::Reference< uno::XInterface > SAL_CALL XMLMetaExportOOO_createInstance(
......
...@@ -81,8 +81,8 @@ XMLPropStyleContext::XMLPropStyleContext( SvXMLImport& rImport, ...@@ -81,8 +81,8 @@ XMLPropStyleContext::XMLPropStyleContext( SvXMLImport& rImport,
SvXMLStylesContext& rStyles, sal_uInt16 nFamily, SvXMLStylesContext& rStyles, sal_uInt16 nFamily,
sal_Bool bDefault ) sal_Bool bDefault )
: SvXMLStyleContext( rImport, nPrfx, rLName, xAttrList, nFamily, bDefault ) : SvXMLStyleContext( rImport, nPrfx, rLName, xAttrList, nFamily, bDefault )
, msIsPhysical( RTL_CONSTASCII_USTRINGPARAM( "IsPhysical" ) ) , msIsPhysical( "IsPhysical" )
, msFollowStyle( RTL_CONSTASCII_USTRINGPARAM( "FollowStyle" ) ) , msFollowStyle( "FollowStyle" )
, mxStyles( &rStyles ) , mxStyles( &rStyles )
{ {
} }
...@@ -207,15 +207,15 @@ void XMLPropStyleContext::CreateAndInsert( sal_Bool bOverwrite ) ...@@ -207,15 +207,15 @@ void XMLPropStyleContext::CreateAndInsert( sal_Bool bOverwrite )
{ {
aValues.realloc( nLen + 2 ); aValues.realloc( nLen + 2 );
PropertyValue *pProps = aValues.getArray() + nLen; PropertyValue *pProps = aValues.getArray() + nLen;
pProps->Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ParaStyleName")); pProps->Name = rtl::OUString("ParaStyleName");
OUString sParent( GetParentName() ); OUString sParent( GetParentName() );
if( !sParent.isEmpty() ) if( !sParent.isEmpty() )
sParent = GetImport().GetStyleDisplayName( GetFamily(), sParent ); sParent = GetImport().GetStyleDisplayName( GetFamily(), sParent );
else else
sParent = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Standard")); sParent = rtl::OUString("Standard");
pProps->Value <<= sParent; pProps->Value <<= sParent;
++pProps; ++pProps;
pProps->Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ParaConditionalStyleName")); pProps->Name = rtl::OUString("ParaConditionalStyleName");
pProps->Value <<= sParent; pProps->Value <<= sParent;
} }
...@@ -224,8 +224,8 @@ void XMLPropStyleContext::CreateAndInsert( sal_Bool bOverwrite ) ...@@ -224,8 +224,8 @@ void XMLPropStyleContext::CreateAndInsert( sal_Bool bOverwrite )
{ {
Sequence< OUString > aPropNames(1); Sequence< OUString > aPropNames(1);
aPropNames[0] = GetFamily() == XML_STYLE_FAMILY_TEXT_PARAGRAPH ? aPropNames[0] = GetFamily() == XML_STYLE_FAMILY_TEXT_PARAGRAPH ?
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ParaAutoStyleName")) : rtl::OUString("ParaAutoStyleName") :
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CharAutoStyleName")); rtl::OUString("CharAutoStyleName");
Sequence< Any > aAny = xAutoStyle->getPropertyValues( aPropNames ); Sequence< Any > aAny = xAutoStyle->getPropertyValues( aPropNames );
if( aAny.hasElements() ) if( aAny.hasElements() )
{ {
......
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