summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmlhelp/source/cxxhelp/provider/content.cxx24
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.cxx140
-rw-r--r--xmlhelp/source/cxxhelp/provider/provider.cxx44
-rw-r--r--xmlhelp/source/cxxhelp/provider/resultsetbase.cxx20
-rw-r--r--xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx16
-rw-r--r--xmlhelp/source/cxxhelp/provider/resultsetforroot.cxx12
-rw-r--r--xmlhelp/source/cxxhelp/provider/urlparameter.cxx18
-rw-r--r--xmlhelp/source/cxxhelp/test/searchdemo.cxx12
-rw-r--r--xmlhelp/source/treeview/tvfactory.cxx10
-rw-r--r--xmlhelp/source/treeview/tvread.cxx76
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx882
11 files changed, 627 insertions, 627 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/content.cxx b/xmlhelp/source/cxxhelp/provider/content.cxx
index cc0522740ce6..55ceac639727 100644
--- a/xmlhelp/source/cxxhelp/provider/content.cxx
+++ b/xmlhelp/source/cxxhelp/provider/content.cxx
@@ -163,7 +163,7 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes()
rtl::OUString SAL_CALL Content::getImplementationName()
throw( uno::RuntimeException )
{
- return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "CHelpContent" ));
+ return rtl::OUString( "CHelpContent" );
}
//=========================================================================
@@ -173,7 +173,7 @@ uno::Sequence< rtl::OUString > SAL_CALL Content::getSupportedServiceNames()
{
uno::Sequence< rtl::OUString > aSNS( 1 );
aSNS.getArray()[ 0 ]
- = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( MYUCP_CONTENT_SERVICE_NAME ));
+ = rtl::OUString( MYUCP_CONTENT_SERVICE_NAME );
return aSNS;
}
@@ -187,7 +187,7 @@ uno::Sequence< rtl::OUString > SAL_CALL Content::getSupportedServiceNames()
rtl::OUString SAL_CALL Content::getContentType()
throw( uno::RuntimeException )
{
- return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( MYUCP_CONTENT_TYPE ));
+ return rtl::OUString( MYUCP_CONTENT_TYPE );
}
//=========================================================================
@@ -460,8 +460,8 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
if ( rProp.Name == "ContentType" )
xRow->appendString(
rProp,
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- "application/vnd.sun.star.help" )) );
+ rtl::OUString(
+ "application/vnd.sun.star.help" ) );
else if ( rProp.Name == "Title" )
xRow->appendString ( rProp,m_aURLParameter.get_title() );
else if ( rProp.Name == "IsReadOnly" )
@@ -480,18 +480,18 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
if( m_aURLParameter.isPicture() )
xRow->appendString(
rProp,
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "image/gif" )) );
+ rtl::OUString( "image/gif" ) );
else if( m_aURLParameter.isActive() )
xRow->appendString(
rProp,
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "text/plain" )) );
+ rtl::OUString( "text/plain" ) );
else if( m_aURLParameter.isFile() )
xRow->appendString(
- rProp,rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "text/html" )) );
+ rProp,rtl::OUString( "text/html" ) );
else if( m_aURLParameter.isRoot() )
xRow->appendString(
rProp,
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "text/css" )) );
+ rtl::OUString( "text/css" ) );
else
xRow->appendVoid( rProp );
else if( m_aURLParameter.isModule() )
@@ -542,8 +542,8 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
else if ( rProp.Name == "SearchScopes" )
{
uno::Sequence< rtl::OUString > seq( 2 );
- seq[0] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Heading" ));
- seq[1] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "FullText" ));
+ seq[0] = rtl::OUString( "Heading" );
+ seq[1] = rtl::OUString( "FullText" );
uno::Any aAny;
aAny <<= seq;
xRow->appendObject( rProp,aAny );
@@ -562,7 +562,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
}
else
xRow->appendVoid( rProp );
- else if( rProp.Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("AnchorName")) &&
+ else if( "AnchorName" == rProp.Name &&
m_aURLParameter.isFile() )
xRow->appendString( rProp,m_aURLParameter.get_tag() );
else
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx
index 0af076bb2b24..7d9c7e50334f 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.cxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.cxx
@@ -82,7 +82,7 @@ using namespace com::sun::star::deployment;
using namespace com::sun::star::beans;
-static rtl::OUString aSlash(RTL_CONSTASCII_USTRINGPARAM("/"));
+static rtl::OUString aSlash("/");
rtl::OUString Databases::expandURL( const rtl::OUString& aURL )
{
@@ -104,18 +104,18 @@ rtl::OUString Databases::expandURL( const rtl::OUString& aURL, Reference< uno::X
Reference< XMultiComponentFactory > xSMgr( xContext->getServiceManager(), UNO_QUERY );
xFac = Reference< uri::XUriReferenceFactory >(
- xSMgr->createInstanceWithContext( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.uri.UriReferenceFactory")), xContext ) , UNO_QUERY );
+ xSMgr->createInstanceWithContext( rtl::OUString(
+ "com.sun.star.uri.UriReferenceFactory"), xContext ) , UNO_QUERY );
if( !xFac.is() )
{
throw RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Databases::expand(), could not instatiate UriReferenceFactory." )),
+ ::rtl::OUString( "Databases::expand(), could not instatiate UriReferenceFactory." ),
Reference< XInterface >() );
}
xMacroExpander = Reference< util::XMacroExpander >(
xContext->getValueByName(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/singletons/com.sun.star.util.theMacroExpander" )) ),
+ ::rtl::OUString( "/singletons/com.sun.star.util.theMacroExpander" ) ),
UNO_QUERY_THROW );
}
@@ -153,13 +153,13 @@ Databases::Databases( sal_Bool showBasic,
m_nCustomCSSDocLength( 0 ),
m_pCustomCSSDoc( 0 ),
m_aCSS(styleSheet.toAsciiLowerCase()),
- newProdName(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "$[officename]" )) ),
- newProdVersion(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "$[officeversion]" )) ),
- prodName( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "%PRODUCTNAME" )) ),
- prodVersion( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "%PRODUCTVERSION" )) ),
- vendName( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "%VENDORNAME" )) ),
- vendVersion( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "%VENDORVERSION" )) ),
- vendShort( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "%VENDORSHORT" )) ),
+ newProdName(rtl::OUString( "$[officename]" ) ),
+ newProdVersion(rtl::OUString( "$[officeversion]" ) ),
+ prodName( rtl::OUString( "%PRODUCTNAME" ) ),
+ prodVersion( rtl::OUString( "%PRODUCTVERSION" ) ),
+ vendName( rtl::OUString( "%VENDORNAME" ) ),
+ vendVersion( rtl::OUString( "%VENDORVERSION" ) ),
+ vendShort( rtl::OUString( "%VENDORSHORT" ) ),
m_aImagesZipPaths( imagesZipPaths ),
m_nSymbolsStyle( 0 )
{
@@ -182,7 +182,7 @@ Databases::Databases( sal_Bool showBasic,
setInstallPath( instPath );
m_xSFA = Reference< ucb::XSimpleFileAccess >(
- m_xSMgr->createInstanceWithContext( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ucb.SimpleFileAccess" )),
+ m_xSMgr->createInstanceWithContext( rtl::OUString( "com.sun.star.ucb.SimpleFileAccess" ),
m_xContext ), UNO_QUERY_THROW );
}
@@ -248,7 +248,7 @@ static bool impl_getZipFile(
{
if ( 1 + aFileName.lastIndexOf( '/' ) != aFileName.getLength() )
{
- aFileName += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/" ));
+ aFileName += rtl::OUString( "/" );
}
aFileName += rZipName;
// the icons are not read when the URL is a symlink
@@ -270,23 +270,23 @@ rtl::OString Databases::getImagesZipFileURL()
try
{
uno::Reference< lang::XMultiServiceFactory > xConfigProvider(
- m_xSMgr ->createInstanceWithContext(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.configuration.ConfigurationProvider")), m_xContext), uno::UNO_QUERY_THROW);
+ m_xSMgr ->createInstanceWithContext(::rtl::OUString("com.sun.star.configuration.ConfigurationProvider"), m_xContext), uno::UNO_QUERY_THROW);
// set root path
uno::Sequence < uno::Any > lParams(1);
beans::PropertyValue aParam ;
- aParam.Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("nodepath"));
- aParam.Value <<= ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("org.openoffice.Office.Common"));
+ aParam.Name = ::rtl::OUString("nodepath");
+ aParam.Value <<= ::rtl::OUString("org.openoffice.Office.Common");
lParams[0] = uno::makeAny(aParam);
// open it
uno::Reference< uno::XInterface > xCFG( xConfigProvider->createInstanceWithArguments(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.configuration.ConfigurationAccess")),
+ ::rtl::OUString("com.sun.star.configuration.ConfigurationAccess"),
lParams) );
bool bChanged = false;
uno::Reference< container::XHierarchicalNameAccess > xAccess(xCFG, uno::UNO_QUERY_THROW);
- uno::Any aResult = xAccess->getByHierarchicalName(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Misc/SymbolSet")));
+ uno::Any aResult = xAccess->getByHierarchicalName(::rtl::OUString("Misc/SymbolSet"));
if ( (aResult >>= nSymbolsStyle) && m_nSymbolsStyle != nSymbolsStyle )
{
m_nSymbolsStyle = nSymbolsStyle;
@@ -296,21 +296,21 @@ rtl::OString Databases::getImagesZipFileURL()
if ( m_aImagesZipFileURL.isEmpty() || bChanged )
{
rtl::OUString aImageZip, aSymbolsStyleName;
- aResult = xAccess->getByHierarchicalName(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Misc/SymbolStyle")));
+ aResult = xAccess->getByHierarchicalName(::rtl::OUString("Misc/SymbolStyle"));
aResult >>= aSymbolsStyleName;
bool bFound = false;
if ( !aSymbolsStyleName.isEmpty() )
{
- rtl::OUString aZipName = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "images_" ));
+ rtl::OUString aZipName = rtl::OUString( "images_" );
aZipName += aSymbolsStyleName;
- aZipName += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ".zip" ));
+ aZipName += rtl::OUString( ".zip" );
bFound = impl_getZipFile( m_aImagesZipPaths, aZipName, aImageZip );
}
if ( ! bFound )
- bFound = impl_getZipFile( m_aImagesZipPaths, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "images.zip" )), aImageZip );
+ bFound = impl_getZipFile( m_aImagesZipPaths, rtl::OUString( "images.zip" ), aImageZip );
if ( ! bFound )
aImageZip = rtl::OUString();
@@ -455,7 +455,7 @@ StaticModuleInformation* Databases::getStaticInformationForModule( const rtl::OU
{
osl::MutexGuard aGuard( m_aMutex );
- rtl::OUString key = processLang(Language) + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/" )) + Module;
+ rtl::OUString key = processLang(Language) + rtl::OUString( "/" ) + Module;
std::pair< ModInfoTable::iterator,bool > aPair =
m_aModInfo.insert( ModInfoTable::value_type( key,0 ) );
@@ -466,7 +466,7 @@ StaticModuleInformation* Databases::getStaticInformationForModule( const rtl::OU
{
osl::File cfgFile( getInstallPathAsURL() +
key +
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ".cfg" )) );
+ rtl::OUString( ".cfg" ) );
if( osl::FileBase::E_None != cfgFile.open( osl_File_OpenFlag_Read ) )
it->second = 0;
@@ -485,7 +485,7 @@ StaticModuleInformation* Databases::getStaticInformationForModule( const rtl::OU
const sal_Unicode* str = fileContent.getStr();
rtl::OUString current,lang_,program,startid,title,heading,fulltext;
- rtl::OUString order(RTL_CONSTASCII_USTRINGPARAM( "1" ));
+ rtl::OUString order( "1" );
for( sal_Int32 i = 0;i < fileContent.getLength();i++ )
{
@@ -601,7 +601,7 @@ Db* Databases::getBerkeley( const rtl::OUString& Database,
osl::MutexGuard aGuard( m_aMutex );
- rtl::OUString aFileExt( helpText ? rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".ht")) : rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".db" )) );
+ rtl::OUString aFileExt( helpText ? rtl::OUString(".ht") : rtl::OUString(".db") );
rtl::OUString dbFileName = aSlash + Database + aFileExt;
rtl::OUString key;
if( pExtensionPath == NULL )
@@ -627,7 +627,7 @@ Db* Databases::getBerkeley( const rtl::OUString& Database,
rtl::OUString fileNameDBHelp( fileURL );
//Extensions always use the new format
if( pExtensionPath != NULL )
- fileNameDBHelp += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "_" ));
+ fileNameDBHelp += rtl::OUString( "_" );
//SimpleFileAccess takes file URLs as arguments!!! Using filenames works accidentally but
//fails for example when using long path names on Windows (starting with \\?\)
if( m_xSFA->exists( fileNameDBHelp ) )
@@ -665,28 +665,28 @@ Databases::getCollator( const rtl::OUString& Language,
{
it->second =
Reference< XCollator > (
- m_xSMgr->createInstanceWithContext( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.i18n.Collator" )),
+ m_xSMgr->createInstanceWithContext( rtl::OUString( "com.sun.star.i18n.Collator" ),
m_xContext ), UNO_QUERY );
rtl::OUString langStr = processLang(Language);
rtl::OUString countryStr = country(Language);
if( countryStr.isEmpty() )
{
if( langStr.compareToAscii("de") == 0 )
- countryStr = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("DE"));
+ countryStr = rtl::OUString("DE");
else if( langStr.compareToAscii("en") == 0 )
- countryStr = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("US"));
+ countryStr = rtl::OUString("US");
else if( langStr.compareToAscii("es") == 0 )
- countryStr = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ES"));
+ countryStr = rtl::OUString("ES");
else if( langStr.compareToAscii("it") == 0 )
- countryStr = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IT"));
+ countryStr = rtl::OUString("IT");
else if( langStr.compareToAscii("fr") == 0 )
- countryStr = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FR"));
+ countryStr = rtl::OUString("FR");
else if( langStr.compareToAscii("sv") == 0 )
- countryStr = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SE"));
+ countryStr = rtl::OUString("SE");
else if( langStr.compareToAscii("ja") == 0 )
- countryStr = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("JP"));
+ countryStr = rtl::OUString("JP");
else if( langStr.compareToAscii("ko") == 0 )
- countryStr = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("KR"));
+ countryStr = rtl::OUString("KR");
}
it->second->loadDefaultCollator( Locale( langStr,
countryStr,
@@ -901,7 +901,7 @@ KeywordInfo* Databases::getKeyword( const rtl::OUString& Database,
{
osl::MutexGuard aGuard( m_aMutex );
- rtl::OUString key = processLang(Language) + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/" )) + Database;
+ rtl::OUString key = processLang(Language) + rtl::OUString( "/" ) + Database;
std::pair< KeywordInfoTable::iterator,bool > aPair =
m_aKeywordInfo.insert( KeywordInfoTable::value_type( key,0 ) );
@@ -921,7 +921,7 @@ KeywordInfo* Databases::getKeyword( const rtl::OUString& Database,
rtl::OUString fileNameDBHelp( fileURL );
if( bExtension )
- fileNameDBHelp += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "_" ));
+ fileNameDBHelp += rtl::OUString( "_" );
if( m_xSFA->exists( fileNameDBHelp ) )
{
DBHelp aDBHelp( fileNameDBHelp, m_xSFA );
@@ -1077,14 +1077,14 @@ Reference< XHierarchicalNameAccess > Databases::jarFile( const rtl::OUString& ja
// let ZipPackage be used ( no manifest.xml is required )
beans::NamedValue aArg;
- aArg.Name = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StorageFormat" ) );
+ aArg.Name = ::rtl::OUString( "StorageFormat" );
aArg.Value <<= ZIP_STORAGE_FORMAT_STRING;
aArguments[ 1 ] <<= aArg;
Reference< XInterface > xIfc
= m_xSMgr->createInstanceWithArgumentsAndContext(
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.packages.comp.ZipPackage" )),
+ rtl::OUString(
+ "com.sun.star.packages.comp.ZipPackage" ),
aArguments, m_xContext );
if ( xIfc.is() )
@@ -1231,7 +1231,7 @@ void Databases::cascadingStylesheet( const rtl::OUString& Language,
{
// #i50760: "default" needs to adapt HC mode
uno::Reference< awt::XToolkit > xToolkit = uno::Reference< awt::XToolkit >(
- ::comphelper::getProcessServiceFactory()->createInstance( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.awt.Toolkit" ) ) ), uno::UNO_QUERY );
+ ::comphelper::getProcessServiceFactory()->createInstance( rtl::OUString( "com.sun.star.awt.Toolkit" ) ), uno::UNO_QUERY );
if ( xToolkit.is() )
{
uno::Reference< awt::XExtendedToolkit > xExtToolkit( xToolkit, uno::UNO_QUERY );
@@ -1243,9 +1243,9 @@ void Databases::cascadingStylesheet( const rtl::OUString& Language,
uno::Reference< awt::XVclWindowPeer > xVclWindowPeer( xTopWindow, uno::UNO_QUERY );
if ( xVclWindowPeer.is() )
{
- uno::Any aHCMode = xVclWindowPeer->getProperty( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "HighContrastMode" )) );
+ uno::Any aHCMode = xVclWindowPeer->getProperty( rtl::OUString( "HighContrastMode" ) );
if ( ( aHCMode >>= bHighContrastMode ) && bHighContrastMode )
- aCSS = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "highcontrastblack" ));
+ aCSS = rtl::OUString( "highcontrastblack" );
}
}
}
@@ -1259,14 +1259,14 @@ void Databases::cascadingStylesheet( const rtl::OUString& Language,
fileURL =
getInstallPathAsURL() +
processLang( Language ) +
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/" )) +
+ rtl::OUString( "/" ) +
aCSS +
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ".css" ));
+ rtl::OUString( ".css" );
else if( retry == 1 )
fileURL =
getInstallPathAsURL() +
aCSS +
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ".css" ));
+ rtl::OUString( ".css" );
osl::DirectoryItem aDirItem;
osl::File aFile( fileURL );
@@ -1291,7 +1291,7 @@ void Databases::cascadingStylesheet( const rtl::OUString& Language,
if ( !retry && error && bHighContrastMode )
{
// fall back to default css
- aCSS = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "default" ));
+ aCSS = rtl::OUString( "default" );
retry = 2;
bHighContrastMode = sal_False;
}
@@ -1398,7 +1398,7 @@ void Databases::setInstallPath( const rtl::OUString& aInstDir )
//TODO: check returned error code
if( m_aInstallDirectory.lastIndexOf( sal_Unicode( '/' ) ) != m_aInstallDirectory.getLength() - 1 )
- m_aInstallDirectory += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/" ));
+ m_aInstallDirectory += rtl::OUString( "/" );
}
@@ -1438,20 +1438,20 @@ void ExtensionIteratorBase::init()
if (xProps.is())
{
xProps->getPropertyValue(
- ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("DefaultContext") ) ) >>= m_xContext;
+ ::rtl::OUString( "DefaultContext" ) ) >>= m_xContext;
OSL_ASSERT( m_xContext.is() );
}
}
if( !m_xContext.is() )
{
throw RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "ExtensionIteratorBase::init(), no XComponentContext" )),
+ ::rtl::OUString( "ExtensionIteratorBase::init(), no XComponentContext" ),
Reference< XInterface >() );
}
Reference< XMultiComponentFactory > xSMgr( m_xContext->getServiceManager(), UNO_QUERY );
m_xSFA = Reference< ucb::XSimpleFileAccess >(
- xSMgr->createInstanceWithContext( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ucb.SimpleFileAccess" )),
+ xSMgr->createInstanceWithContext( rtl::OUString( "com.sun.star.ucb.SimpleFileAccess" ),
m_xContext ), UNO_QUERY_THROW );
m_bUserPackagesLoaded = false;
@@ -1491,7 +1491,7 @@ Reference< deployment::XPackage > ExtensionIteratorBase::implGetHelpPackageFromP
}
if( bRegistered )
{
- rtl::OUString aHelpMediaType( RTL_CONSTASCII_USTRINGPARAM( "application/vnd.sun.star.help" ) );
+ rtl::OUString aHelpMediaType( "application/vnd.sun.star.help" );
if( xPackage->isBundle() )
{
Sequence< Reference< deployment::XPackage > > aPkgSeq = xPackage->getBundle
@@ -1535,7 +1535,7 @@ Reference< deployment::XPackage > ExtensionIteratorBase::implGetNextUserHelpPack
{
Reference< XExtensionManager > xExtensionManager = ExtensionManager::get(m_xContext);
m_aUserPackagesSeq = xExtensionManager->getDeployedExtensions
- ( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("user")), Reference< task::XAbortChannel >(), Reference< ucb::XCommandEnvironment >() );
+ ( rtl::OUString("user"), Reference< task::XAbortChannel >(), Reference< ucb::XCommandEnvironment >() );
m_bUserPackagesLoaded = true;
}
@@ -1563,7 +1563,7 @@ Reference< deployment::XPackage > ExtensionIteratorBase::implGetNextSharedHelpPa
{
Reference< XExtensionManager > xExtensionManager = ExtensionManager::get(m_xContext);
m_aSharedPackagesSeq = xExtensionManager->getDeployedExtensions
- ( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("shared")), Reference< task::XAbortChannel >(), Reference< ucb::XCommandEnvironment >() );
+ ( rtl::OUString("shared"), Reference< task::XAbortChannel >(), Reference< ucb::XCommandEnvironment >() );
m_bSharedPackagesLoaded = true;
}
@@ -1591,7 +1591,7 @@ Reference< deployment::XPackage > ExtensionIteratorBase::implGetNextBundledHelpP
{
Reference< XExtensionManager > xExtensionManager = ExtensionManager::get(m_xContext);
m_aBundledPackagesSeq = xExtensionManager->getDeployedExtensions
- ( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("bundled")), Reference< task::XAbortChannel >(), Reference< ucb::XCommandEnvironment >() );
+ ( rtl::OUString("bundled"), Reference< task::XAbortChannel >(), Reference< ucb::XCommandEnvironment >() );
m_bBundledPackagesLoaded = true;
}
@@ -1826,7 +1826,7 @@ rtl::OUString KeyDataBaseFileIterator::nextDbFile( bool& o_rbExtension )
aRetFile =
m_rDatabases.getInstallPathAsURL() +
m_rDatabases.processLang( m_aLanguage ) + aSlash + m_aInitialModule +
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ".key" ));
+ rtl::OUString( ".key" );
o_rbExtension = false;
@@ -1887,7 +1887,7 @@ rtl::OUString KeyDataBaseFileIterator::implGetDbFileFromPackage
( Reference< deployment::XPackage > xPackage )
{
rtl::OUString aExpandedURL =
- implGetFileFromPackage( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ".key" )), xPackage );
+ implGetFileFromPackage( rtl::OUString( ".key" ), xPackage );
return aExpandedURL;
}
@@ -1960,7 +1960,7 @@ Reference< XHierarchicalNameAccess > JarFileIterator::implGetJarFromPackage
Reference< XHierarchicalNameAccess > xNA;
rtl::OUString zipFile =
- implGetFileFromPackage( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ".jar" )), xPackage );
+ implGetFileFromPackage( rtl::OUString( ".jar" ), xPackage );
try
{
@@ -1969,15 +1969,15 @@ Reference< XHierarchicalNameAccess > JarFileIterator::implGetJarFromPackage
// let ZipPackage be used ( no manifest.xml is required )
beans::NamedValue aArg;
- aArg.Name = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StorageFormat" ) );
+ aArg.Name = ::rtl::OUString( "StorageFormat" );
aArg.Value <<= ZIP_STORAGE_FORMAT_STRING;
aArguments[ 1 ] <<= aArg;
Reference< XMultiComponentFactory >xSMgr( m_xContext->getServiceManager(), UNO_QUERY );
Reference< XInterface > xIfc
= xSMgr->createInstanceWithArgumentsAndContext(
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.packages.comp.ZipPackage" )),
+ rtl::OUString(
+ "com.sun.star.packages.comp.ZipPackage" ),
aArguments, m_xContext );
if ( xIfc.is() )
@@ -2030,7 +2030,7 @@ rtl::OUString IndexFolderIterator::nextIndexFolder( bool& o_rbExtension, bool& o
aIndexFolder =
m_rDatabases.getInstallPathAsURL() +
m_rDatabases.processLang( m_aLanguage ) + aSlash + m_aInitialModule +
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ".idxl" ));
+ rtl::OUString( ".idxl" );
o_rbTemporary = false;
o_rbExtension = false;
@@ -2090,7 +2090,7 @@ rtl::OUString IndexFolderIterator::nextIndexFolder( bool& o_rbExtension, bool& o
rtl::OUString IndexFolderIterator::implGetIndexFolderFromPackage( bool& o_rbTemporary, Reference< deployment::XPackage > xPackage )
{
rtl::OUString aIndexFolder =
- implGetFileFromPackage( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ".idxl" )), xPackage );
+ implGetFileFromPackage( rtl::OUString( ".idxl" ), xPackage );
o_rbTemporary = false;
if( !m_xSFA->isFolder( aIndexFolder ) )
@@ -2103,7 +2103,7 @@ rtl::OUString IndexFolderIterator::implGetIndexFolderFromPackage( bool& o_rbTemp
bool bIsWriteAccess = false;
try
{
- rtl::OUString aCreateTestFolder = aLangURL + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "CreateTestFolder" ));
+ rtl::OUString aCreateTestFolder = aLangURL + rtl::OUString( "CreateTestFolder" );
m_xSFA->createFolder( aCreateTestFolder );
if( m_xSFA->isFolder( aCreateTestFolder ) )
bIsWriteAccess = true;
@@ -2124,9 +2124,9 @@ rtl::OUString IndexFolderIterator::implGetIndexFolderFromPackage( bool& o_rbTemp
if( nLastSlash != -1 )
aLang = aLangURL.copy( nLastSlash + 1 );
else
- aLang = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "en" ));
+ aLang = rtl::OUString( "en" );
- rtl::OUString aMod(RTL_CONSTASCII_USTRINGPARAM("help"));
+ rtl::OUString aMod("help");
rtl::OUString aZipDir = aLangURL;
if( !bIsWriteAccess )
@@ -2154,9 +2154,9 @@ rtl::OUString IndexFolderIterator::implGetIndexFolderFromPackage( bool& o_rbTemp
aIndexer.indexDocuments();
if( bIsWriteAccess )
- aIndexFolder = implGetFileFromPackage( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ".idxl" )), xPackage );
+ aIndexFolder = implGetFileFromPackage( rtl::OUString( ".idxl" ), xPackage );
else
- aIndexFolder = aZipDir + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/help.idxl" ));
+ aIndexFolder = aZipDir + rtl::OUString( "/help.idxl" );
}
catch (const Exception &)
{
diff --git a/xmlhelp/source/cxxhelp/provider/provider.cxx b/xmlhelp/source/cxxhelp/provider/provider.cxx
index 5a65314478a3..79e4c0a1e5bb 100644
--- a/xmlhelp/source/cxxhelp/provider/provider.cxx
+++ b/xmlhelp/source/cxxhelp/provider/provider.cxx
@@ -67,7 +67,7 @@ ContentProvider::ContentProvider(
const uno::Reference< lang::XMultiServiceFactory >& rSMgr )
: ::ucbhelper::ContentProviderImplHelper( rSMgr ),
isInitialized( false ),
- m_aScheme(RTL_CONSTASCII_USTRINGPARAM(MYUCP_URL_SCHEME)),
+ m_aScheme(MYUCP_URL_SCHEME),
m_pDatabases( 0 )
{
}
@@ -120,7 +120,7 @@ rtl::OUString SAL_CALL ContentProvider::getImplementationName()
rtl::OUString ContentProvider::getImplementationName_Static()
{
- return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CHelpContentProvider" ));
+ return rtl::OUString("CHelpContentProvider" );
}
sal_Bool SAL_CALL
@@ -160,11 +160,11 @@ ContentProvider::getSupportedServiceNames_Static()
{
uno::Sequence< rtl::OUString > aSNS( 2 );
aSNS.getArray()[ 0 ] =
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- MYUCP_CONTENT_PROVIDER_SERVICE_NAME1 ));
+ rtl::OUString(
+ MYUCP_CONTENT_PROVIDER_SERVICE_NAME1 );
aSNS.getArray()[ 1 ] =
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- MYUCP_CONTENT_PROVIDER_SERVICE_NAME2 ));
+ rtl::OUString(
+ MYUCP_CONTENT_PROVIDER_SERVICE_NAME2 );
return aSNS;
}
@@ -275,7 +275,7 @@ void ContentProvider::init()
rtl::OUString instPath( getKey( xHierAccess,"Path/Current/Help" ) );
if( instPath.isEmpty() )
// try to determine path from default
- instPath = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "$(instpath)/help" ));
+ instPath = rtl::OUString( "$(instpath)/help" );
// replace anything like $(instpath);
subst( instPath );
@@ -288,7 +288,7 @@ void ContentProvider::init()
if( xAccess.is() )
{
uno::Any aAny =
- xAccess->getByName( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Help" )) );
+ xAccess->getByName( rtl::OUString( "Help" ) );
aAny >>= m_xContainer;
if( m_xContainer.is() )
m_xContainer->addContainerListener( this );
@@ -307,21 +307,21 @@ void ContentProvider::init()
try
{
uno::Reference< lang::XMultiServiceFactory > xConfigProvider(
- m_xSMgr ->createInstance(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.configuration.ConfigurationProvider"))), uno::UNO_QUERY_THROW);
+ m_xSMgr ->createInstance(::rtl::OUString("com.sun.star.configuration.ConfigurationProvider")), uno::UNO_QUERY_THROW);
uno::Sequence < uno::Any > lParams(1);
beans::PropertyValue aParam ;
- aParam.Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("nodepath"));
- aParam.Value <<= ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Setup/Product"));
+ aParam.Name = ::rtl::OUString("nodepath");
+ aParam.Value <<= ::rtl::OUString("/org.openoffice.Setup/Product");
lParams[0] = uno::makeAny(aParam);
// open it
uno::Reference< uno::XInterface > xCFG( xConfigProvider->createInstanceWithArguments(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.configuration.ConfigurationAccess")),
+ ::rtl::OUString("com.sun.star.configuration.ConfigurationAccess"),
lParams) );
uno::Reference< container::XNameAccess > xDirectAccess(xCFG, uno::UNO_QUERY);
- uno::Any aRet = xDirectAccess->getByName(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ooSetupExtension")));
+ uno::Any aRet = xDirectAccess->getByName(::rtl::OUString("ooSetupExtension"));
aRet >>= setupextension;
}
@@ -331,7 +331,7 @@ void ContentProvider::init()
rtl::OUString productversion(
setupversion +
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( " " )) +
+ rtl::OUString( " " ) +
setupextension );
uno::Sequence< rtl::OUString > aImagesZipPaths( 2 );
@@ -341,7 +341,7 @@ void ContentProvider::init()
subst( aPath );
aImagesZipPaths[ 0 ] = aPath;
- aPath = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/share/config"));
+ aPath = rtl::OUString("$BRAND_BASE_DIR/share/config");
rtl::Bootstrap::expandMacros(aPath);
aImagesZipPaths[ 1 ] = aPath;
@@ -351,7 +351,7 @@ void ContentProvider::init()
if (xProps.is())
{
xProps->getPropertyValue(
- ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("DefaultContext") ) ) >>= xContext;
+ ::rtl::OUString( "DefaultContext" ) ) >>= xContext;
OSL_ASSERT( xContext.is() );
}
@@ -374,8 +374,8 @@ ContentProvider::getConfiguration() const
try
{
rtl::OUString sProviderService =
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.configuration.ConfigurationProvider" ));
+ rtl::OUString(
+ "com.sun.star.configuration.ConfigurationProvider" );
sProvider =
uno::Reference< lang::XMultiServiceFactory >(
m_xSMgr->createInstance( sProviderService ),
@@ -401,8 +401,8 @@ ContentProvider::getHierAccess(
{
uno::Sequence< uno::Any > seq( 1 );
rtl::OUString sReaderService(
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.configuration.ConfigurationAccess" )) );
+ rtl::OUString(
+ "com.sun.star.configuration.ConfigurationAccess" ) );
seq[ 0 ] <<= rtl::OUString::createFromAscii( file );
@@ -479,8 +479,8 @@ void ContentProvider::subst( rtl::OUString& instpath ) const
xCfgMgr =
uno::Reference< frame::XConfigManager >(
m_xSMgr->createInstance(
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.config.SpecialConfigManager" )) ),
+ rtl::OUString(
+ "com.sun.star.config.SpecialConfigManager" ) ),
uno::UNO_QUERY );
}
catch( const uno::Exception&)
diff --git a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx
index d209bb63d5f3..5319a58ca34b 100644
--- a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx
+++ b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx
@@ -503,12 +503,12 @@ ResultSetBase::getPropertySetInfo()
throw( uno::RuntimeException)
{
uno::Sequence< beans::Property > seq(2);
- seq[0].Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "RowCount" ));
+ seq[0].Name = rtl::OUString( "RowCount" );
seq[0].Handle = -1;
seq[0].Type = getCppuType( static_cast< sal_Int32* >(0) );
seq[0].Attributes = beans::PropertyAttribute::READONLY;
- seq[1].Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "IsRowCountFinal" ));
+ seq[1].Name = rtl::OUString( "IsRowCountFinal" );
seq[1].Handle = -1;
seq[1].Type = getCppuType( static_cast< sal_Bool* >(0) );
seq[1].Attributes = beans::PropertyAttribute::READONLY;
@@ -529,8 +529,8 @@ void SAL_CALL ResultSetBase::setPropertyValue(
{
(void)aValue;
- if( aPropertyName == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "IsRowCountFinal" )) ||
- aPropertyName == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "RowCount" )) )
+ if( aPropertyName == rtl::OUString( "IsRowCountFinal" ) ||
+ aPropertyName == rtl::OUString( "RowCount" ) )
return;
throw beans::UnknownPropertyException();
@@ -543,13 +543,13 @@ uno::Any SAL_CALL ResultSetBase::getPropertyValue(
lang::WrappedTargetException,
uno::RuntimeException)
{
- if( PropertyName == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "IsRowCountFinal" )) )
+ if( PropertyName == rtl::OUString( "IsRowCountFinal" ) )
{
uno::Any aAny;
aAny <<= m_bRowCountFinal;
return aAny;
}
- else if ( PropertyName == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "RowCount" )) )
+ else if ( PropertyName == rtl::OUString( "RowCount" ) )
{
uno::Any aAny;
sal_Int32 count = m_aItems.size();
@@ -568,7 +568,7 @@ void SAL_CALL ResultSetBase::addPropertyChangeListener(
lang::WrappedTargetException,
uno::RuntimeException)
{
- if( aPropertyName == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "IsRowCountFinal" )) )
+ if( aPropertyName == rtl::OUString( "IsRowCountFinal" ) )
{
osl::MutexGuard aGuard( m_aMutex );
if ( ! m_pIsFinalListeners )
@@ -577,7 +577,7 @@ void SAL_CALL ResultSetBase::addPropertyChangeListener(
m_pIsFinalListeners->addInterface( xListener );
}
- else if ( aPropertyName == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "RowCount" )) )
+ else if ( aPropertyName == rtl::OUString( "RowCount" ) )
{
osl::MutexGuard aGuard( m_aMutex );
if ( ! m_pRowCountListeners )
@@ -597,13 +597,13 @@ void SAL_CALL ResultSetBase::removePropertyChangeListener(
lang::WrappedTargetException,
uno::RuntimeException)
{
- if( aPropertyName == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "IsRowCountFinal" )) &&
+ if( aPropertyName == rtl::OUString( "IsRowCountFinal" ) &&
m_pIsFinalListeners )
{
osl::MutexGuard aGuard( m_aMutex );
m_pIsFinalListeners->removeInterface( aListener );
}
- else if ( aPropertyName == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "RowCount" )) &&
+ else if ( aPropertyName == rtl::OUString( "RowCount" ) &&
m_pRowCountListeners )
{
osl::MutexGuard aGuard( m_aMutex );
diff --git a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx
index 61340307e9d7..240edffdba20 100644
--- a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx
+++ b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx
@@ -94,7 +94,7 @@ ResultSetForQuery::ResultSetForQuery( const uno::Reference< lang::XMultiServiceF
m_aURLParameter( aURLParameter )
{
Reference< XTransliteration > xTrans(
- xMSF->createInstance( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.i18n.Transliteration" )) ),
+ xMSF->createInstance( rtl::OUString( "com.sun.star.i18n.Transliteration" ) ),
UNO_QUERY );
Locale aLocale( aURLParameter.get_language(),
rtl::OUString(),
@@ -323,8 +323,8 @@ ResultSetForQuery::ResultSetForQuery( const uno::Reference< lang::XMultiServiceF
delete pIndexFolderVector;
}
- sal_Int32 replIdx = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "#HLP#" )).getLength();
- rtl::OUString replWith = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.help://" ));
+ sal_Int32 replIdx = rtl::OUString( "#HLP#" ).getLength();
+ rtl::OUString replWith = rtl::OUString( "vnd.sun.star.help://" );
int nResultCount = aCompleteResultVector.size();
for( int r = 0 ; r < nResultCount ; ++r )
@@ -338,16 +338,16 @@ ResultSetForQuery::ResultSetForQuery( const uno::Reference< lang::XMultiServiceF
m_aIdents.resize( m_aPath.size() );
Command aCommand;
- aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ));
+ aCommand.Name = rtl::OUString( "getPropertyValues" );
aCommand.Argument <<= m_sProperty;
for( m_nRow = 0; sal::static_int_cast<sal_uInt32>( m_nRow ) < m_aPath.size(); ++m_nRow )
{
m_aPath[m_nRow] =
- m_aPath[m_nRow] +
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "?Language=" )) +
- m_aURLParameter.get_language() +
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "&System=" )) +
+ m_aPath[m_nRow] +
+ rtl::OUString( "?Language=" ) +
+ m_aURLParameter.get_language() +
+ rtl::OUString( "&System=" ) +
m_aURLParameter.get_system();
uno::Reference< XContent > content = queryContent();
diff --git a/xmlhelp/source/cxxhelp/provider/resultsetforroot.cxx b/xmlhelp/source/cxxhelp/provider/resultsetforroot.cxx
index 1fe0425a631d..f5702566a410 100644
--- a/xmlhelp/source/cxxhelp/provider/resultsetforroot.cxx
+++ b/xmlhelp/source/cxxhelp/provider/resultsetforroot.cxx
@@ -55,17 +55,17 @@ ResultSetForRoot::ResultSetForRoot( const uno::Reference< lang::XMultiServiceFac
m_aIdents.resize( m_aPath.size() );
Command aCommand;
- aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ));
+ aCommand.Name = rtl::OUString( "getPropertyValues" );
aCommand.Argument <<= m_sProperty;
for( sal_uInt32 i = 0; i < m_aPath.size(); ++i )
{
m_aPath[i] =
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.help://" )) +
- m_aPath[i] +
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "?Language=" )) +
- m_aURLParameter.get_language() +
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "&System=" )) +
+ rtl::OUString( "vnd.sun.star.help://" ) +
+ m_aPath[i] +
+ rtl::OUString( "?Language=" ) +
+ m_aURLParameter.get_language() +
+ rtl::OUString( "&System=" ) +
m_aURLParameter.get_system();
m_nRow = sal_Int32( i );
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
index 6cc30b7e59d1..e4f483d24d26 100644
--- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
+++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
@@ -179,7 +179,7 @@ rtl::OUString URLParameter::get_title()
m_aTitle = inf->get_title();
}
else // This must be the root
- m_aTitle = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("root"));
+ m_aTitle = rtl::OUString("root");
return m_aTitle;
}
@@ -274,7 +274,7 @@ rtl::OUString URLParameter::get_the_jar()
return m_aJar;
}
else
- return get_module() + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".jar"));
+ return get_module() + rtl::OUString(".jar");
}
@@ -282,7 +282,7 @@ rtl::OUString URLParameter::get_the_jar()
void URLParameter::readBerkeley()
{
- static rtl::OUString aQuestionMark(RTL_CONSTASCII_USTRINGPARAM("?"));
+ static rtl::OUString aQuestionMark("?");
if( get_id().compareToAscii("") == 0 )
return;
@@ -444,7 +444,7 @@ void URLParameter::open( const Reference< XMultiServiceFactory >& rxSMgr,
{
Reference< XInputStream > xStream;
Reference< XHierarchicalNameAccess > xNA =
- m_pDatabases->jarFile( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "picture.jar" )),
+ m_pDatabases->jarFile( rtl::OUString( "picture.jar" ),
get_language() );
rtl::OUString path = get_path();
@@ -514,7 +514,7 @@ void URLParameter::open( const Reference< XMultiServiceFactory >& rxSMgr,
{
Reference< XInputStream > xStream;
Reference< XHierarchicalNameAccess > xNA =
- m_pDatabases->jarFile( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "picture.jar" )),
+ m_pDatabases->jarFile( rtl::OUString( "picture.jar" ),
get_language() );
rtl::OUString path = get_path();
@@ -568,7 +568,7 @@ bool URLParameter::scheme()
if( aLastStr.compareToAscii( "DbPAR=" ) == 0 )
{
rtl::OUString aNewExpr = m_aExpr.copy( 0, 20 );
- rtl::OUString aSharedStr(RTL_CONSTASCII_USTRINGPARAM("shared"));
+ rtl::OUString aSharedStr("shared");
aNewExpr += aSharedStr;
aNewExpr += m_aExpr.copy( 20 );
aNewExpr += aSharedStr;
@@ -681,7 +681,7 @@ bool URLParameter::query()
if( m_aQuery.isEmpty() )
m_aQuery = value;
else
- m_aQuery += ( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( " " )) + value );
+ m_aQuery += ( rtl::OUString( " " ) + value );
}
else if( parameter.compareToAscii( "Scope" ) == 0 )
m_aScope = value;
@@ -1006,12 +1006,12 @@ InputStreamTransformer::InputStreamTransformer( URLParameter* urlParam,
if (xProps.is())
{
xProps->getPropertyValue(
- ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("DefaultContext") ) ) >>= xContext;
+ ::rtl::OUString( "DefaultContext" ) ) >>= xContext;
}
if( !xContext.is() )
{
throw RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "InputStreamTransformer::InputStreamTransformer(), no XComponentContext" )),
+ ::rtl::OUString( "InputStreamTransformer::InputStreamTransformer(), no XComponentContext" ),
Reference< XInterface >() );
}
diff --git a/xmlhelp/source/cxxhelp/test/searchdemo.cxx b/xmlhelp/source/cxxhelp/test/searchdemo.cxx
index 3abc080f0737..4908cfe1182b 100644
--- a/xmlhelp/source/cxxhelp/test/searchdemo.cxx
+++ b/xmlhelp/source/cxxhelp/test/searchdemo.cxx
@@ -76,21 +76,21 @@ int main( int argc,char* argv[] )
try
{
- rtl::OUString installDir(RTL_CONSTASCII_USTRINGPARAM("//./e|/index/"));
+ rtl::OUString installDir("//./e|/index/");
QueryProcessor queryProcessor( installDir );
std::vector<rtl::OUString> Query(2);
- Query[0] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "text*" ));
- Query[1] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "abbildung" ));
- rtl::OUString Scope = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "headingheading" ));
+ Query[0] = rtl::OUString( "text*" );
+ Query[1] = rtl::OUString( "abbildung" );
+ rtl::OUString Scope = rtl::OUString( "headingheading" );
int HitCount = 40;
QueryStatement queryStatement( HitCount,Query,Scope );
queryResults = queryProcessor.processQuery( queryStatement );
rtl::OUString translations[2];
- translations[0] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "#HLP#" ));
- translations[1] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.help://" ));
+ translations[0] = rtl::OUString( "#HLP#" );
+ translations[1] = rtl::OUString( "vnd.sun.star.help://" );
PrefixTranslator* translator = PrefixTranslator::makePrefixTranslator( translations,2 );
diff --git a/xmlhelp/source/treeview/tvfactory.cxx b/xmlhelp/source/treeview/tvfactory.cxx
index ffebbd1434c5..936d7b75b14a 100644
--- a/xmlhelp/source/treeview/tvfactory.cxx
+++ b/xmlhelp/source/treeview/tvfactory.cxx
@@ -145,7 +145,7 @@ TVFactory::createInstance(
aAny <<= rtl::OUString();
Sequence< Any > seq( 1 );
seq[0] <<= PropertyValue(
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "nodepath" )),
+ rtl::OUString( "nodepath" ),
-1,
aAny,
PropertyState_DIRECT_VALUE );
@@ -206,7 +206,7 @@ TVFactory::getAvailableServiceNames( )
throw( RuntimeException )
{
Sequence< rtl::OUString > seq( 1 );
- seq[0] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ucb.HierarchyDataReadAccess" ));
+ seq[0] = rtl::OUString( "com.sun.star.ucb.HierarchyDataReadAccess" );
return seq;
}
@@ -218,7 +218,7 @@ TVFactory::getAvailableServiceNames( )
rtl::OUString SAL_CALL
TVFactory::getImplementationName_static()
{
- return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.help.TreeViewImpl" ));
+ return rtl::OUString( "com.sun.star.help.TreeViewImpl" );
}
@@ -226,8 +226,8 @@ Sequence< rtl::OUString > SAL_CALL
TVFactory::getSupportedServiceNames_static()
{
Sequence< rtl::OUString > seq( 2 );
- seq[0] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.help.TreeView" ));
- seq[1] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ucb.HiearchyDataSource" ));
+ seq[0] = rtl::OUString( "com.sun.star.help.TreeView" );
+ seq[1] = rtl::OUString( "com.sun.star.ucb.HiearchyDataSource" );
return seq;
}
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx
index af4be054b32e..8679fa520abe 100644
--- a/xmlhelp/source/treeview/tvread.cxx
+++ b/xmlhelp/source/treeview/tvread.cxx
@@ -185,11 +185,11 @@ using namespace com::sun::star::deployment;
ConfigData::ConfigData()
- : prodName(RTL_CONSTASCII_USTRINGPARAM("%PRODUCTNAME")),
- prodVersion(RTL_CONSTASCII_USTRINGPARAM("%PRODUCTVERSION")),
- vendName(RTL_CONSTASCII_USTRINGPARAM("%VENDORNAME")),
- vendVersion(RTL_CONSTASCII_USTRINGPARAM("%VENDORVERSION")),
- vendShort(RTL_CONSTASCII_USTRINGPARAM("%VENDORSHORT"))
+ : prodName("%PRODUCTNAME"),
+ prodVersion("%PRODUCTVERSION"),
+ vendName("%VENDORNAME"),
+ vendVersion("%VENDORVERSION"),
+ vendShort("%VENDORSHORT")
{
}
@@ -308,7 +308,7 @@ TVRead::TVRead( const ConfigData& configData,TVDom* tvDom )
{
TargetURL = ( tvDom->getTargetURL() + configData.appendix );
if( !tvDom->anchor.isEmpty() )
- TargetURL += ( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "#" )) +
+ TargetURL += ( rtl::OUString( "#" ) +
tvDom->anchor );
}
else
@@ -363,9 +363,9 @@ TVRead::getElementNames( )
{
Sequence< rtl::OUString > seq( 3 );
- seq[0] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Title" ));
- seq[1] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "TargetURL" ));
- seq[2] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Children" ));
+ seq[0] = rtl::OUString( "Title" );
+ seq[1] = rtl::OUString( "TargetURL" );
+ seq[2] = rtl::OUString( "Children" );
return seq;
}
@@ -666,7 +666,7 @@ ConfigData TVChildTarget::init( const Reference< XMultiServiceFactory >& xSMgr )
rtl::OUString instPath( getKey( xHierAccess,"Path/Current/Help" ) );
if( instPath.isEmpty() )
// try to determine path from default
- instPath = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "$(instpath)/help" ));
+ instPath = rtl::OUString( "$(instpath)/help" );
// replace anything like $(instpath);
subst( xSMgr,instPath );
@@ -684,21 +684,21 @@ ConfigData TVChildTarget::init( const Reference< XMultiServiceFactory >& xSMgr )
try
{
uno::Reference< lang::XMultiServiceFactory > xConfigProvider(
- xSMgr ->createInstance(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.configuration.ConfigurationProvider"))), uno::UNO_QUERY_THROW);
+ xSMgr ->createInstance(::rtl::OUString("com.sun.star.configuration.ConfigurationProvider")), uno::UNO_QUERY_THROW);
uno::Sequence < uno::Any > lParams(1);
beans::PropertyValue aParam ;
- aParam.Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("nodepath"));
- aParam.Value <<= ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Setup/Product"));
+ aParam.Name = ::rtl::OUString("nodepath");
+ aParam.Value <<= ::rtl::OUString("/org.openoffice.Setup/Product");
lParams[0] = uno::makeAny(aParam);
// open it
uno::Reference< uno::XInterface > xCFG( xConfigProvider->createInstanceWithArguments(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.configuration.ConfigurationAccess")),
+ ::rtl::OUString("com.sun.star.configuration.ConfigurationAccess"),
lParams) );
uno::Reference< container::XNameAccess > xDirectAccess(xCFG, uno::UNO_QUERY);
- uno::Any aRet = xDirectAccess->getByName(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ooSetupExtension")));
+ uno::Any aRet = xDirectAccess->getByName(::rtl::OUString("ooSetupExtension"));
aRet >>= setupextension;
}
@@ -707,7 +707,7 @@ ConfigData TVChildTarget::init( const Reference< XMultiServiceFactory >& xSMgr )
}
rtl::OUString productVersion( setupversion +
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( " " )) +
+ rtl::OUString( " " ) +
setupextension );
rtl::OUString locale( getKey( xHierAccess,"L10N/ooLocale" ) );
@@ -717,7 +717,7 @@ ConfigData TVChildTarget::init( const Reference< XMultiServiceFactory >& xSMgr )
osl::FileBase::RC errFile = osl::FileBase::getFileURLFromSystemPath( instPath,url );
if( errFile != osl::FileBase::E_None ) return configData;
if( url.lastIndexOf( sal_Unicode( '/' ) ) != url.getLength() - 1 )
- url += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/" ));
+ url += rtl::OUString( "/" );
rtl::OUString ret;
sal_Int32 idx;
osl::DirectoryItem aDirItem;
@@ -730,8 +730,8 @@ ConfigData TVChildTarget::init( const Reference< XMultiServiceFactory >& xSMgr )
ret = locale.copy( 0,idx );
else
{
- locale = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "en-US" ));
- ret = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("en"));
+ locale = rtl::OUString( "en-US" );
+ ret = rtl::OUString("en");
}
url = url + ret;
@@ -804,11 +804,11 @@ ConfigData TVChildTarget::init( const Reference< XMultiServiceFactory >& xSMgr )
configData.system = system;
configData.locale = locale;
configData.appendix =
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "?Language=" )) +
+ rtl::OUString( "?Language=" ) +
configData.locale +
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "&System=" )) +
+ rtl::OUString( "&System=" ) +
configData.system +
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "&UseDB=no" )) ;
+ rtl::OUString( "&UseDB=no" ) ;
return configData;
}
@@ -830,7 +830,7 @@ TVChildTarget::getConfiguration(const Reference< XMultiServiceFactory >& m_xSMgr
try
{
rtl::OUString sProviderService =
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.configuration.ConfigurationProvider" ));
+ rtl::OUString( "com.sun.star.configuration.ConfigurationProvider" );
sProvider =
Reference< XMultiServiceFactory >(
m_xSMgr->createInstance( sProviderService ),
@@ -857,7 +857,7 @@ TVChildTarget::getHierAccess( const Reference< XMultiServiceFactory >& sProvider
{
Sequence< Any > seq(1);
rtl::OUString sReaderService =
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.configuration.ConfigurationAccess" ));
+ rtl::OUString( "com.sun.star.configuration.ConfigurationAccess" );
seq[0] <<= rtl::OUString::createFromAscii( file );
@@ -934,7 +934,7 @@ void TVChildTarget::subst( const Reference< XMultiServiceFactory >& m_xSMgr,
{
xCfgMgr =
Reference< XConfigManager >(
- m_xSMgr->createInstance( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.config.SpecialConfigManager" )) ),
+ m_xSMgr->createInstance( rtl::OUString( "com.sun.star.config.SpecialConfigManager" ) ),
UNO_QUERY );
}
catch( const com::sun::star::uno::Exception& )
@@ -953,9 +953,9 @@ void TVChildTarget::subst( const Reference< XMultiServiceFactory >& m_xSMgr,
//===================================================================
// class ExtensionIteratorBase
-static rtl::OUString aSlash(RTL_CONSTASCII_USTRINGPARAM("/"));
-static rtl::OUString aHelpFilesBaseName(RTL_CONSTASCII_USTRINGPARAM("help"));
-static rtl::OUString aHelpMediaType(RTL_CONSTASCII_USTRINGPARAM( "application/vnd.sun.star.help"));
+static rtl::OUString aSlash("/");
+static rtl::OUString aHelpFilesBaseName("help");
+static rtl::OUString aHelpMediaType("application/vnd.sun.star.help");
ExtensionIteratorBase::ExtensionIteratorBase( const rtl::OUString& aLanguage )
: m_eState( USER_EXTENSIONS )
@@ -972,19 +972,19 @@ void ExtensionIteratorBase::init()
if (xProps.is())
{
xProps->getPropertyValue(
- ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("DefaultContext") ) ) >>= m_xContext;
+ ::rtl::OUString( "DefaultContext" ) ) >>= m_xContext;
OSL_ASSERT( m_xContext.is() );
}
if( !m_xContext.is() )
{
throw RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "ExtensionIteratorBase::init(), no XComponentContext" )),
+ ::rtl::OUString( "ExtensionIteratorBase::init(), no XComponentContext" ),
Reference< XInterface >() );
}
Reference< XMultiComponentFactory > xSMgr( m_xContext->getServiceManager(), UNO_QUERY );
m_xSFA = Reference< ucb::XSimpleFileAccess >(
- xSMgr->createInstanceWithContext( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ucb.SimpleFileAccess" )),
+ xSMgr->createInstanceWithContext( rtl::OUString( "com.sun.star.ucb.SimpleFileAccess" ),
m_xContext ), UNO_QUERY_THROW );
m_bUserPackagesLoaded = false;
@@ -1055,7 +1055,7 @@ Reference< deployment::XPackage > ExtensionIteratorBase::implGetNextUserHelpPack
if( !m_bUserPackagesLoaded )
{
Reference< XPackageManager > xUserManager =
- thePackageManagerFactory::get( m_xContext )->getPackageManager( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("user")) );
+ thePackageManagerFactory::get( m_xContext )->getPackageManager( rtl::OUString("user") );
m_aUserPackagesSeq = xUserManager->getDeployedPackages
( Reference< task::XAbortChannel >(), Reference< ucb::XCommandEnvironment >() );
@@ -1085,7 +1085,7 @@ Reference< deployment::XPackage > ExtensionIteratorBase::implGetNextSharedHelpPa
if( !m_bSharedPackagesLoaded )
{
Reference< XPackageManager > xSharedManager =
- thePackageManagerFactory::get( m_xContext )->getPackageManager( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("shared")) );
+ thePackageManagerFactory::get( m_xContext )->getPackageManager( rtl::OUString("shared") );
m_aSharedPackagesSeq = xSharedManager->getDeployedPackages
( Reference< task::XAbortChannel >(), Reference< ucb::XCommandEnvironment >() );
@@ -1115,7 +1115,7 @@ Reference< deployment::XPackage > ExtensionIteratorBase::implGetNextBundledHelpP
if( !m_bBundledPackagesLoaded )
{
Reference< XPackageManager > xBundledManager =
- thePackageManagerFactory::get( m_xContext )->getPackageManager( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("bundled")) );
+ thePackageManagerFactory::get( m_xContext )->getPackageManager( rtl::OUString("bundled") );
m_aBundledPackagesSeq = xBundledManager->getDeployedPackages
( Reference< task::XAbortChannel >(), Reference< ucb::XCommandEnvironment >() );
@@ -1239,18 +1239,18 @@ rtl::OUString TreeFileIterator::expandURL( const rtl::OUString& aURL )
Reference< XMultiComponentFactory > xSMgr( m_xContext->getServiceManager(), UNO_QUERY );
xFac = Reference< uri::XUriReferenceFactory >(
- xSMgr->createInstanceWithContext( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.uri.UriReferenceFactory")), m_xContext ) , UNO_QUERY );
+ xSMgr->createInstanceWithContext( rtl::OUString(
+ "com.sun.star.uri.UriReferenceFactory"), m_xContext ) , UNO_QUERY );
if( !xFac.is() )
{
throw RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Databases::expand(), could not instatiate UriReferenceFactory." )),
+ ::rtl::OUString( "Databases::expand(), could not instatiate UriReferenceFactory." ),
Reference< XInterface >() );
}
xMacroExpander = Reference< util::XMacroExpander >(
m_xContext->getValueByName(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/singletons/com.sun.star.util.theMacroExpander" )) ),
+ ::rtl::OUString( "/singletons/com.sun.star.util.theMacroExpander" ) ),
UNO_QUERY_THROW );
}
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
index 72c28eb4bdaf..690d5be09b71 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
@@ -54,7 +54,7 @@ Reference< xml::input::XElement > Frame::startChildElement(
throw (xml::sax::SAXException, RuntimeException)
{
if ( !m_xContainer.is() )
- m_xContainer.set( _pImport->_xDialogModelFactory->createInstance( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoFrameModel") ) ), UNO_QUERY );
+ m_xContainer.set( _pImport->_xDialogModelFactory->createInstance( rtl::OUString( "com.sun.star.awt.UnoFrameModel" ) ), UNO_QUERY );
// event
if (_pImport->isEventElement( nUid, rLocalName ))
{
@@ -71,7 +71,7 @@ Reference< xml::input::XElement > Frame::startChildElement(
else if ( rLocalName == "title" )
{
getStringAttr( &_label,
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ OUString( "value" ),
xAttributes,
_pImport->XMLNS_DIALOGS_UID );
@@ -83,7 +83,7 @@ Reference< xml::input::XElement > Frame::startChildElement(
{
OSL_TRACE("****** ARGGGGG!!!! **********");
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -93,7 +93,7 @@ void Frame::endElement()
throw (xml::sax::SAXException, RuntimeException)
{
if ( !m_xContainer.is() )
- m_xContainer.set( _pImport->_xDialogModelFactory->createInstance( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoFrameModel") ) ), UNO_QUERY );
+ m_xContainer.set( _pImport->_xDialogModelFactory->createInstance( rtl::OUString( "com.sun.star.awt.UnoFrameModel" ) ), UNO_QUERY );
Reference< beans::XPropertySet > xProps( m_xContainer, UNO_QUERY_THROW );
// _pImport is what we need to add to ( e.g. the dialog in this case )
ControlImportContext ctx( _pImport, xProps, getControlId( _xAttributes ) );
@@ -112,7 +112,7 @@ void Frame::endElement()
ctx.importDefaults( 0, 0, _xAttributes ); // inherited from BulletinBoardElement
if (!_label.isEmpty())
{
- xControlModel->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
+ xControlModel->setPropertyValue( OUString( "Label" ),
makeAny( _label ) );
}
ctx.importEvents( _events );
@@ -145,7 +145,7 @@ Reference< xml::input::XElement > MultiPage::startChildElement(
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -171,12 +171,12 @@ void MultiPage::endElement()
}
ctx.importDefaults( 0, 0, _xAttributes ); // inherited from BulletinBoardElement
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiPageValue") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importLongProperty( OUString( "MultiPageValue" ),
+ OUString( "value" ),
_xAttributes );
ctx.importBooleanProperty(
- OUString( RTL_CONSTASCII_USTRINGPARAM("Decoration") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("withtabs") ),
+ OUString( "Decoration" ),
+ OUString( "withtabs" ),
_xAttributes );
ctx.importEvents( _events );
// avoid ring-reference:
@@ -206,7 +206,7 @@ Reference< xml::input::XElement > Page::startChildElement(
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -232,7 +232,7 @@ void Page::endElement()
}
ctx.importDefaults( 0, 0, _xAttributes ); // inherited from BulletinBoardElement
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Title") ), OUString( RTL_CONSTASCII_USTRINGPARAM("title") ), _xAttributes );
+ ctx.importStringProperty( OUString( "Title" ), OUString( "title" ), _xAttributes );
ctx.importEvents( _events );
// avoid ring-reference:
// vector< event elements > holding event elements holding this (via _pParent)
@@ -255,7 +255,7 @@ Reference< xml::input::XElement > ProgressBarElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -265,7 +265,7 @@ void ProgressBarElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlProgressBarModel") ) );
+ OUString( "com.sun.star.awt.UnoControlProgressBarModel" ) );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is())
@@ -278,14 +278,14 @@ void ProgressBarElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ProgressValue") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importLongProperty( OUString( "ProgressValue" ),
+ OUString( "value" ),
_xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ProgressValueMin") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value-min") ),
+ ctx.importLongProperty( OUString( "ProgressValueMin" ),
+ OUString( "value-min" ),
_xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ProgressValueMax") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value-max") ),
+ ctx.importLongProperty( OUString( "ProgressValueMax" ),
+ OUString( "value-max" ),
_xAttributes );
ctx.importEvents( _events );
// avoid ring-reference:
@@ -310,7 +310,7 @@ Reference< xml::input::XElement > ScrollBarElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -320,7 +320,7 @@ void ScrollBarElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- getControlModelName( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlScrollBarModel") ), _xAttributes ) );
+ getControlModelName( OUString( "com.sun.star.awt.UnoControlScrollBarModel" ), _xAttributes ) );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is())
@@ -332,36 +332,36 @@ void ScrollBarElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importOrientationProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Orientation") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("align") ),
+ ctx.importOrientationProperty( OUString( "Orientation" ),
+ OUString( "align" ),
_xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("BlockIncrement") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("pageincrement") ),
+ ctx.importLongProperty( OUString( "BlockIncrement" ),
+ OUString( "pageincrement" ),
_xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("LineIncrement") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("increment") ),
+ ctx.importLongProperty( OUString( "LineIncrement" ),
+ OUString( "increment" ),
_xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ScrollValue") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("curpos") ),
+ ctx.importLongProperty( OUString( "ScrollValue" ),
+ OUString( "curpos" ),
_xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ScrollValueMax") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("maxpos") ),
+ ctx.importLongProperty( OUString( "ScrollValueMax" ),
+ OUString( "maxpos" ),
_xAttributes );
ctx.importLongProperty( OUSTR("ScrollValueMin"), OUSTR("minpos"),
_xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("VisibleSize") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("visible-size") ),
+ ctx.importLongProperty( OUString( "VisibleSize" ),
+ OUString( "visible-size" ),
_xAttributes );
ctx.importLongProperty( OUSTR("RepeatDelay"), OUSTR("repeat"),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("LiveScroll") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("live-scroll") ),
+ ctx.importBooleanProperty( OUString( "LiveScroll" ),
+ OUString( "live-scroll" ),
_xAttributes );
- ctx.importHexLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("SymbolColor") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("symbol-color") ),
+ ctx.importHexLongProperty( OUString( "SymbolColor" ),
+ OUString( "symbol-color" ),
_xAttributes );
ctx.importDataAwareProperty( OUSTR("linked-cell" ), _xAttributes );
@@ -388,7 +388,7 @@ Reference< xml::input::XElement > SpinButtonElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -398,7 +398,7 @@ void SpinButtonElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- getControlModelName( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlSpinButtonModel") ), _xAttributes ) );
+ getControlModelName( OUString( "com.sun.star.awt.UnoControlSpinButtonModel" ), _xAttributes ) );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is())
@@ -410,25 +410,25 @@ void SpinButtonElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importOrientationProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Orientation") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("align") ),
+ ctx.importOrientationProperty( OUString( "Orientation" ),
+ OUString( "align" ),
_xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("SpinIncrement") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("increment") ),
+ ctx.importLongProperty( OUString( "SpinIncrement" ),
+ OUString( "increment" ),
_xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("SpinValue") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("curval") ),_xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("SpinValueMax") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("maxval") ), _xAttributes );
+ ctx.importLongProperty( OUString( "SpinValue" ),
+ OUString( "curval" ),_xAttributes );
+ ctx.importLongProperty( OUString( "SpinValueMax" ),
+ OUString( "maxval" ), _xAttributes );
ctx.importLongProperty( OUSTR("SpinValueMin"), OUSTR("minval"),
_xAttributes );
ctx.importLongProperty( OUSTR("Repeat"), OUSTR("repeat"), _xAttributes );
ctx.importLongProperty( OUSTR("RepeatDelay"), OUSTR("repeat-delay"),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ), _xAttributes );
- ctx.importHexLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("SymbolColor") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("symbol-color") ), _xAttributes );
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ), _xAttributes );
+ ctx.importHexLongProperty( OUString( "SymbolColor" ),
+ OUString( "symbol-color" ), _xAttributes );
ctx.importDataAwareProperty( OUSTR("linked-cell" ), _xAttributes );
ctx.importEvents( _events );
// avoid ring-reference:
@@ -453,7 +453,7 @@ Reference< xml::input::XElement > FixedLineElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -463,7 +463,7 @@ void FixedLineElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlFixedLineModel") ) );
+ OUString( "com.sun.star.awt.UnoControlFixedLineModel" ) );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is())
@@ -476,11 +476,11 @@ void FixedLineElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importStringProperty( OUString( "Label" ),
+ OUString( "value" ),
_xAttributes );
- ctx.importOrientationProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Orientation") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("align") ),
+ ctx.importOrientationProperty( OUString( "Orientation" ),
+ OUString( "align" ),
_xAttributes );
ctx.importEvents( _events );
// avoid ring-reference:
@@ -505,7 +505,7 @@ Reference< xml::input::XElement > PatternFieldElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -515,7 +515,7 @@ void PatternFieldElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlPatternFieldModel") ) );
+ OUString( "com.sun.star.awt.UnoControlPatternFieldModel" ) );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is())
@@ -530,29 +530,29 @@ void PatternFieldElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("readonly") ),
+ ctx.importBooleanProperty( OUString( "ReadOnly" ),
+ OUString( "readonly" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("strict-format") ),
+ ctx.importBooleanProperty( OUString( "StrictFormat" ),
+ OUString( "strict-format" ),
_xAttributes );
ctx.importBooleanProperty(
OUSTR("HideInactiveSelection"), OUSTR("hide-inactive-selection"),
_xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Text") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importStringProperty( OUString( "Text" ),
+ OUString( "value" ),
_xAttributes );
- ctx.importShortProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("MaxTextLen") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("maxlength") ),
+ ctx.importShortProperty( OUString( "MaxTextLen" ),
+ OUString( "maxlength" ),
_xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("EditMask") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("edit-mask") ),
+ ctx.importStringProperty( OUString( "EditMask" ),
+ OUString( "edit-mask" ),
_xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("LiteralMask") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("literal-mask") ),
+ ctx.importStringProperty( OUString( "LiteralMask" ),
+ OUString( "literal-mask" ),
_xAttributes );
ctx.importEvents( _events );
// avoid ring-reference:
@@ -577,7 +577,7 @@ Reference< xml::input::XElement > FormattedFieldElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -587,7 +587,7 @@ void FormattedFieldElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlFormattedFieldModel") ) );
+ OUString( "com.sun.star.awt.UnoControlFormattedFieldModel" ) );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is())
@@ -602,38 +602,38 @@ void FormattedFieldElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("readonly") ),
+ ctx.importBooleanProperty( OUString( "ReadOnly" ),
+ OUString( "readonly" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("strict-format") ),
+ ctx.importBooleanProperty( OUString( "StrictFormat" ),
+ OUString( "strict-format" ),
_xAttributes );
ctx.importBooleanProperty(
OUSTR("HideInactiveSelection"), OUSTR("hide-inactive-selection"),
_xAttributes );
- ctx.importAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("align") ),
+ ctx.importAlignProperty( OUString( "Align" ),
+ OUString( "align" ),
_xAttributes );
- ctx.importDoubleProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("EffectiveMin") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value-min") ),
+ ctx.importDoubleProperty( OUString( "EffectiveMin" ),
+ OUString( "value-min" ),
_xAttributes );
- ctx.importDoubleProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("EffectiveMax") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value-max") ),
+ ctx.importDoubleProperty( OUString( "EffectiveMax" ),
+ OUString( "value-max" ),
_xAttributes );
- ctx.importDoubleProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("EffectiveValue") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importDoubleProperty( OUString( "EffectiveValue" ),
+ OUString( "value" ),
_xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Text") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("text") ),
+ ctx.importStringProperty( OUString( "Text" ),
+ OUString( "text" ),
_xAttributes );
- ctx.importShortProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("MaxTextLen") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("maxlength") ),
+ ctx.importShortProperty( OUString( "MaxTextLen" ),
+ OUString( "maxlength" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Spin") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("spin") ),
+ ctx.importBooleanProperty( OUString( "Spin" ),
+ OUString( "spin" ),
_xAttributes );
if (ctx.importLongProperty( OUSTR("RepeatDelay"), OUSTR("repeat"),
_xAttributes ))
@@ -643,7 +643,7 @@ void FormattedFieldElement::endElement()
OUString sDefault(
_xAttributes->getValueByUidName(
_pImport->XMLNS_DIALOGS_UID,
- OUString( RTL_CONSTASCII_USTRINGPARAM("value-default") ) ) );
+ OUString( "value-default") ) );
if (!sDefault.isEmpty())
{
double d = sDefault.toDouble();
@@ -652,26 +652,26 @@ void FormattedFieldElement::endElement()
sDefault.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("0.0") ))
{
ctx.getControlModel()->setPropertyValue(
- OUString( RTL_CONSTASCII_USTRINGPARAM("EffectiveDefault") ),
+ OUString( "EffectiveDefault" ),
makeAny( d ) );
}
else // treat as string
{
ctx.getControlModel()->setPropertyValue(
- OUString( RTL_CONSTASCII_USTRINGPARAM("EffectiveDefault") ),
+ OUString( "EffectiveDefault" ),
makeAny( sDefault ) );
}
}
// format spec
ctx.getControlModel()->setPropertyValue(
- OUString( RTL_CONSTASCII_USTRINGPARAM("FormatsSupplier") ),
+ OUString( "FormatsSupplier" ),
makeAny( _pImport->getNumberFormatsSupplier() ) );
OUString sFormat(
_xAttributes->getValueByUidName(
_pImport->XMLNS_DIALOGS_UID,
- OUString( RTL_CONSTASCII_USTRINGPARAM("format-code") ) ) );
+ OUString( "format-code") ) );
if (!sFormat.isEmpty())
{
lang::Locale locale;
@@ -679,7 +679,7 @@ void FormattedFieldElement::endElement()
OUString sLocale(
_xAttributes->getValueByUidName(
_pImport->XMLNS_DIALOGS_UID,
- OUString( RTL_CONSTASCII_USTRINGPARAM("format-locale") ) ) );
+ OUString( "format-locale") ) );
if (!sLocale.isEmpty())
{
// split locale
@@ -715,7 +715,7 @@ void FormattedFieldElement::endElement()
nKey = xFormats->addNew( sFormat, locale );
}
ctx.getControlModel()->setPropertyValue(
- OUString( RTL_CONSTASCII_USTRINGPARAM("FormatKey") ), makeAny( nKey ) );
+ OUString( "FormatKey" ), makeAny( nKey ) );
}
catch (const util::MalformedNumberFormatException & exc)
{
@@ -725,11 +725,11 @@ void FormattedFieldElement::endElement()
}
}
ctx.importBooleanProperty(
- OUString( RTL_CONSTASCII_USTRINGPARAM("TreatAsNumber") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("treat-as-number") ),
+ OUString( "TreatAsNumber" ),
+ OUString( "treat-as-number" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("EnforceFormat") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("enforce-format") ),
+ ctx.importBooleanProperty( OUString( "EnforceFormat" ),
+ OUString( "enforce-format" ),
_xAttributes );
ctx.importDataAwareProperty( OUSTR("linked-cell" ), _xAttributes );
@@ -756,7 +756,7 @@ Reference< xml::input::XElement > TimeFieldElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -766,7 +766,7 @@ void TimeFieldElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlTimeFieldModel") ) );
+ OUString( "com.sun.star.awt.UnoControlTimeFieldModel" ) );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is())
@@ -781,42 +781,42 @@ void TimeFieldElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("readonly") ),
+ ctx.importBooleanProperty( OUString( "ReadOnly" ),
+ OUString( "readonly" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("strict-format") ),
+ ctx.importBooleanProperty( OUString( "StrictFormat" ),
+ OUString( "strict-format" ),
_xAttributes );
ctx.importBooleanProperty(
OUSTR("HideInactiveSelection"), OUSTR("hide-inactive-selection"),
_xAttributes );
- ctx.importTimeFormatProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("TimeFormat") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("time-format") ),
+ ctx.importTimeFormatProperty( OUString( "TimeFormat" ),
+ OUString( "time-format" ),
_xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Time") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importLongProperty( OUString( "Time" ),
+ OUString( "value" ),
_xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("TimeMin") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value-min") ),
+ ctx.importLongProperty( OUString( "TimeMin" ),
+ OUString( "value-min" ),
_xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("TimeMax") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value-max") ),
+ ctx.importLongProperty( OUString( "TimeMax" ),
+ OUString( "value-max" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Spin") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("spin") ),
+ ctx.importBooleanProperty( OUString( "Spin" ),
+ OUString( "spin" ),
_xAttributes );
if (ctx.importLongProperty( OUSTR("RepeatDelay"), OUSTR("repeat"),
_xAttributes ))
ctx.getControlModel()->setPropertyValue(
OUSTR("Repeat"), makeAny(true) );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Text") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("text") ),
+ ctx.importStringProperty( OUString( "Text" ),
+ OUString( "text" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("EnforceFormat") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("enforce-format") ),
+ ctx.importBooleanProperty( OUString( "EnforceFormat" ),
+ OUString( "enforce-format" ),
_xAttributes );
ctx.importEvents( _events );
@@ -842,7 +842,7 @@ Reference< xml::input::XElement > NumericFieldElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -852,7 +852,7 @@ void NumericFieldElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlNumericFieldModel") ) );
+ OUString( "com.sun.star.awt.UnoControlNumericFieldModel") );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is())
@@ -867,45 +867,45 @@ void NumericFieldElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("readonly") ),
+ ctx.importBooleanProperty( OUString( "ReadOnly" ),
+ OUString( "readonly" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("strict-format") ),
+ ctx.importBooleanProperty( OUString( "StrictFormat" ),
+ OUString( "strict-format" ),
_xAttributes );
ctx.importBooleanProperty(
OUSTR("HideInactiveSelection"), OUSTR("hide-inactive-selection"),
_xAttributes );
- ctx.importShortProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("DecimalAccuracy") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("decimal-accuracy") ),
+ ctx.importShortProperty( OUString( "DecimalAccuracy" ),
+ OUString( "decimal-accuracy" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ShowThousandsSeparator") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("thousands-separator") ),
+ ctx.importBooleanProperty( OUString( "ShowThousandsSeparator" ),
+ OUString( "thousands-separator" ),
_xAttributes );
- ctx.importDoubleProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Value") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importDoubleProperty( OUString( "Value" ),
+ OUString( "value" ),
_xAttributes );
- ctx.importDoubleProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ValueMin") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value-min") ),
+ ctx.importDoubleProperty( OUString( "ValueMin" ),
+ OUString( "value-min" ),
_xAttributes );
- ctx.importDoubleProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ValueMax") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value-max") ),
+ ctx.importDoubleProperty( OUString( "ValueMax" ),
+ OUString( "value-max" ),
_xAttributes );
- ctx.importDoubleProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ValueStep") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value-step") ),
+ ctx.importDoubleProperty( OUString( "ValueStep" ),
+ OUString( "value-step" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Spin") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("spin") ),
+ ctx.importBooleanProperty( OUString( "Spin" ),
+ OUString( "spin" ),
_xAttributes );
if (ctx.importLongProperty( OUSTR("RepeatDelay"), OUSTR("repeat"),
_xAttributes ))
ctx.getControlModel()->setPropertyValue(
OUSTR("Repeat"), makeAny(true) );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("EnforceFormat") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("enforce-format") ),
+ ctx.importBooleanProperty( OUString( "EnforceFormat" ),
+ OUString( "enforce-format" ),
_xAttributes );
ctx.importEvents( _events );
// avoid ring-reference:
@@ -930,7 +930,7 @@ Reference< xml::input::XElement > DateFieldElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -940,7 +940,7 @@ void DateFieldElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlDateFieldModel") ) );
+ OUString( "com.sun.star.awt.UnoControlDateFieldModel") );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is())
@@ -955,48 +955,48 @@ void DateFieldElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("readonly") ),
+ ctx.importBooleanProperty( OUString( "ReadOnly" ),
+ OUString( "readonly" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("strict-format") ),
+ ctx.importBooleanProperty( OUString( "StrictFormat" ),
+ OUString( "strict-format" ),
_xAttributes );
ctx.importBooleanProperty(
OUSTR("HideInactiveSelection"), OUSTR("hide-inactive-selection"),
_xAttributes );
- ctx.importDateFormatProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("DateFormat") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("date-format") ),
+ ctx.importDateFormatProperty( OUString( "DateFormat" ),
+ OUString( "date-format" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("DateShowCentury") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("show-century") ),
+ ctx.importBooleanProperty( OUString( "DateShowCentury" ),
+ OUString( "show-century" ),
_xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Date") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importLongProperty( OUString( "Date" ),
+ OUString( "value" ),
_xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("DateMin") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value-min") ),
+ ctx.importLongProperty( OUString( "DateMin" ),
+ OUString( "value-min" ),
_xAttributes );
- ctx.importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("DateMax") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value-max") ),
+ ctx.importLongProperty( OUString( "DateMax" ),
+ OUString( "value-max" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Spin") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("spin") ),
+ ctx.importBooleanProperty( OUString( "Spin" ),
+ OUString( "spin" ),
_xAttributes );
if (ctx.importLongProperty( OUSTR("RepeatDelay"), OUSTR("repeat"),
_xAttributes ))
ctx.getControlModel()->setPropertyValue(
OUSTR("Repeat"), makeAny(true) );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Dropdown") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("dropdown") ),
+ ctx.importBooleanProperty( OUString( "Dropdown" ),
+ OUString( "dropdown" ),
_xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Text") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("text") ),
+ ctx.importStringProperty( OUString( "Text" ),
+ OUString( "text" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("EnforceFormat") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("enforce-format") ),
+ ctx.importBooleanProperty( OUString( "EnforceFormat" ),
+ OUString( "enforce-format" ),
_xAttributes );
ctx.importEvents( _events );
// avoid ring-reference:
@@ -1021,7 +1021,7 @@ Reference< xml::input::XElement > CurrencyFieldElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -1031,7 +1031,7 @@ void CurrencyFieldElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlCurrencyFieldModel") ) );
+ OUString( "com.sun.star.awt.UnoControlCurrencyFieldModel") );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is())
@@ -1046,51 +1046,51 @@ void CurrencyFieldElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("readonly") ),
+ ctx.importBooleanProperty( OUString( "ReadOnly" ),
+ OUString( "readonly" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("StrictFormat") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("strict-format") ),
+ ctx.importBooleanProperty( OUString( "StrictFormat" ),
+ OUString( "strict-format" ),
_xAttributes );
ctx.importBooleanProperty(
OUSTR("HideInactiveSelection"), OUSTR("hide-inactive-selection"),
_xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("CurrencySymbol") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("currency-symbol") ),
+ ctx.importStringProperty( OUString( "CurrencySymbol" ),
+ OUString( "currency-symbol" ),
_xAttributes );
- ctx.importShortProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("DecimalAccuracy") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("decimal-accuracy") ),
+ ctx.importShortProperty( OUString( "DecimalAccuracy" ),
+ OUString( "decimal-accuracy" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ShowThousandsSeparator") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("thousands-separator") ),
+ ctx.importBooleanProperty( OUString( "ShowThousandsSeparator" ),
+ OUString( "thousands-separator" ),
_xAttributes );
- ctx.importDoubleProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Value") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importDoubleProperty( OUString( "Value" ),
+ OUString( "value" ),
_xAttributes );
- ctx.importDoubleProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ValueMin") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value-min") ),
+ ctx.importDoubleProperty( OUString( "ValueMin" ),
+ OUString( "value-min" ),
_xAttributes );
- ctx.importDoubleProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ValueMax") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value-max") ),
+ ctx.importDoubleProperty( OUString( "ValueMax" ),
+ OUString( "value-max" ),
_xAttributes );
- ctx.importDoubleProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ValueStep") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value-step") ),
+ ctx.importDoubleProperty( OUString( "ValueStep" ),
+ OUString( "value-step" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Spin") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("spin") ),
+ ctx.importBooleanProperty( OUString( "Spin" ),
+ OUString( "spin" ),
_xAttributes );
if (ctx.importLongProperty( OUSTR("RepeatDelay"), OUSTR("repeat"),
_xAttributes ))
ctx.getControlModel()->setPropertyValue(
OUSTR("Repeat"), makeAny(true) );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("PrependCurrencySymbol") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("prepend-symbol") ),
+ ctx.importBooleanProperty( OUString( "PrependCurrencySymbol" ),
+ OUString( "prepend-symbol" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("EnforceFormat") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("enforce-format") ),
+ ctx.importBooleanProperty( OUString( "EnforceFormat" ),
+ OUString( "enforce-format" ),
_xAttributes );
ctx.importEvents( _events );
// avoid ring-reference:
@@ -1115,7 +1115,7 @@ Reference< xml::input::XElement > FileControlElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -1125,7 +1125,7 @@ void FileControlElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlFileControlModel") ) );
+ OUString( "com.sun.star.awt.UnoControlFileControlModel") );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is())
@@ -1140,17 +1140,17 @@ void FileControlElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
ctx.importBooleanProperty(
OUSTR("HideInactiveSelection"), OUSTR("hide-inactive-selection"),
_xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Text") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importStringProperty( OUString( "Text" ),
+ OUString( "value" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("readonly") ),
+ ctx.importBooleanProperty( OUString( "ReadOnly" ),
+ OUString( "readonly" ),
_xAttributes );
ctx.importEvents( _events );
// avoid ring-reference:
@@ -1174,7 +1174,7 @@ Reference< xml::input::XElement > TreeControlElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -1184,7 +1184,7 @@ void TreeControlElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.tree.TreeControlModel") ) );
+ OUString( "com.sun.star.awt.tree.TreeControlModel") );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is())
@@ -1196,29 +1196,29 @@ void TreeControlElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
- ctx.importSelectionTypeProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("SelectionType") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("selectiontype") ),
+ ctx.importSelectionTypeProperty( OUString( "SelectionType" ),
+ OUString( "selectiontype" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("RootDisplayed") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("rootdisplayed") ),
+ ctx.importBooleanProperty( OUString( "RootDisplayed" ),
+ OUString( "rootdisplayed" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ShowsHandles") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("showshandles") ),
+ ctx.importBooleanProperty( OUString( "ShowsHandles" ),
+ OUString( "showshandles" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ShowsRootHandles") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("showsroothandles") ),
+ ctx.importBooleanProperty( OUString( "ShowsRootHandles" ),
+ OUString( "showsroothandles" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Editable") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("editable") ),
+ ctx.importBooleanProperty( OUString( "Editable" ),
+ OUString( "editable" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("RowHeight") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("readonly") ),
+ ctx.importBooleanProperty( OUString( "RowHeight" ),
+ OUString( "readonly" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("InvokesStopNodeEditing") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("invokesstopnodeediting") ),
+ ctx.importBooleanProperty( OUString( "InvokesStopNodeEditing" ),
+ OUString( "invokesstopnodeediting" ),
_xAttributes );
ctx.importEvents( _events );
@@ -1244,7 +1244,7 @@ Reference< xml::input::XElement > ImageControlElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -1254,7 +1254,7 @@ void ImageControlElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlImageControlModel") ) );
+ OUString( "com.sun.star.awt.UnoControlImageControlModel") );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is())
@@ -1266,15 +1266,15 @@ void ImageControlElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ScaleImage") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("scale-image") ),
+ ctx.importBooleanProperty( OUString( "ScaleImage" ),
+ OUString( "scale-image" ),
_xAttributes );
rtl::OUString sURL = _xAttributes->getValueByUidName( _pImport->XMLNS_DIALOGS_UID, OUSTR( "src" ) );
Reference< document::XStorageBasedDocument > xDocStorage( _pImport->getDocOwner(), UNO_QUERY );
ctx.importImageURLProperty( OUSTR( "ImageURL" ), OUSTR( "src" ), _xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
ctx.importEvents( _events );
// avoid ring-reference:
@@ -1299,7 +1299,7 @@ Reference< xml::input::XElement > TextElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -1309,7 +1309,7 @@ void TextElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlFixedTextModel") ) );
+ OUString( "com.sun.star.awt.UnoControlFixedTextModel") );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is())
@@ -1324,23 +1324,23 @@ void TextElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importStringProperty( OUString( "Label" ),
+ OUString( "value" ),
_xAttributes );
- ctx.importAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("align") ),
+ ctx.importAlignProperty( OUString( "Align" ),
+ OUString( "align" ),
_xAttributes );
- ctx.importVerticalAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("VerticalAlign") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("valign") ),
+ ctx.importVerticalAlignProperty( OUString( "VerticalAlign" ),
+ OUString( "valign" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("multiline") ),
+ ctx.importBooleanProperty( OUString( "MultiLine" ),
+ OUString( "multiline" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("NoLabel") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("nolabel") ),
+ ctx.importBooleanProperty( OUString( "NoLabel" ),
+ OUString( "nolabel" ),
_xAttributes );
ctx.importEvents( _events );
// avoid ring-reference:
@@ -1364,7 +1364,7 @@ Reference< xml::input::XElement > FixedHyperLinkElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -1374,7 +1374,7 @@ void FixedHyperLinkElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlFixedHyperlinkModel") ) );
+ OUString( "com.sun.star.awt.UnoControlFixedHyperlinkModel" ) );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is())
@@ -1389,30 +1389,30 @@ void FixedHyperLinkElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importStringProperty( OUString( "Label" ),
+ OUString( "value" ),
_xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("URL") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("url") ),
+ ctx.importStringProperty( OUString( "URL" ),
+ OUString( "url" ),
_xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Description") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("description") ),
+ ctx.importStringProperty( OUString( "Description" ),
+ OUString( "description" ),
_xAttributes );
- ctx.importAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("align") ),
+ ctx.importAlignProperty( OUString( "Align" ),
+ OUString( "align" ),
_xAttributes );
- ctx.importVerticalAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("VerticalAlign") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("valign") ),
+ ctx.importVerticalAlignProperty( OUString( "VerticalAlign" ),
+ OUString( "valign" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("multiline") ),
+ ctx.importBooleanProperty( OUString( "MultiLine" ),
+ OUString( "multiline" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("NoLabel") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("nolabel") ),
+ ctx.importBooleanProperty( OUString( "NoLabel" ),
+ OUString( "nolabel" ),
_xAttributes );
ctx.importEvents( _events );
// avoid ring-reference:
@@ -1437,7 +1437,7 @@ Reference< xml::input::XElement > TextFieldElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -1447,7 +1447,7 @@ void TextFieldElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlEditModel") ) );
+ OUString( "com.sun.star.awt.UnoControlEditModel") );
Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
@@ -1462,49 +1462,49 @@ void TextFieldElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
- ctx.importAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("align") ),
+ ctx.importAlignProperty( OUString( "Align" ),
+ OUString( "align" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("HardLineBreaks") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("hard-linebreaks") ),
+ ctx.importBooleanProperty( OUString( "HardLineBreaks" ),
+ OUString( "hard-linebreaks" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("HScroll") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("hscroll") ),
+ ctx.importBooleanProperty( OUString( "HScroll" ),
+ OUString( "hscroll" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("VScroll") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("vscroll") ),
+ ctx.importBooleanProperty( OUString( "VScroll" ),
+ OUString( "vscroll" ),
_xAttributes );
ctx.importBooleanProperty(
OUSTR("HideInactiveSelection"), OUSTR("hide-inactive-selection"),
_xAttributes );
- ctx.importShortProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("MaxTextLen") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("maxlength") ),
+ ctx.importShortProperty( OUString( "MaxTextLen" ),
+ OUString( "maxlength" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("multiline") ),
+ ctx.importBooleanProperty( OUString( "MultiLine" ),
+ OUString( "multiline" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("readonly") ),
+ ctx.importBooleanProperty( OUString( "ReadOnly" ),
+ OUString( "readonly" ),
_xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Text") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importStringProperty( OUString( "Text" ),
+ OUString( "value" ),
_xAttributes );
- ctx.importLineEndFormatProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("LineEndFormat") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("lineend-format") ),
+ ctx.importLineEndFormatProperty( OUString( "LineEndFormat" ),
+ OUString( "lineend-format" ),
_xAttributes );
OUString aValue;
if (getStringAttr( &aValue,
- OUString( RTL_CONSTASCII_USTRINGPARAM("echochar") ),
+ OUString( "echochar" ),
_xAttributes,
_pImport->XMLNS_DIALOGS_UID ) &&
!aValue.isEmpty() )
{
OSL_ENSURE( aValue.getLength() == 1, "### more than one character given for echochar!" );
sal_Int16 nChar = (sal_Int16)aValue[ 0 ];
- xControlModel->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("EchoChar") ),
+ xControlModel->setPropertyValue( OUString( "EchoChar" ),
makeAny( nChar ) );
}
@@ -1531,14 +1531,14 @@ Reference< xml::input::XElement > TitledBoxElement::startChildElement(
else if (_pImport->XMLNS_DIALOGS_UID != nUid)
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("illegal namespace!") ),
+ OUString( "illegal namespace!" ),
Reference< XInterface >(), Any() );
}
// title
else if ( rLocalName == "title" )
{
getStringAttr( &_label,
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ OUString( "value" ),
xAttributes,
_pImport->XMLNS_DIALOGS_UID );
@@ -1573,7 +1573,7 @@ void TitledBoxElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlGroupBoxModel") ) );
+ OUString( "com.sun.star.awt.UnoControlGroupBoxModel" ) );
Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
@@ -1589,7 +1589,7 @@ void TitledBoxElement::endElement()
if (!_label.isEmpty())
{
- xControlModel->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
+ xControlModel->setPropertyValue( OUString( "Label" ),
makeAny( _label ) );
}
@@ -1608,7 +1608,7 @@ void TitledBoxElement::endElement()
ControlImportContext ctx(
_pImport, getControlId( xAttributes ),
- getControlModelName( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlRadioButtonModel") ), xAttributes ) );
+ getControlModelName( OUString( "com.sun.star.awt.UnoControlRadioButtonModel" ), xAttributes ) );
Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() );
Reference< xml::input::XElement > xStyle( getStyle( xAttributes ) );
@@ -1623,40 +1623,40 @@ void TitledBoxElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importStringProperty( OUString( "Label" ),
+ OUString( "value" ),
xAttributes );
- ctx.importAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("align") ),
+ ctx.importAlignProperty( OUString( "Align" ),
+ OUString( "align" ),
xAttributes );
- ctx.importVerticalAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("VerticalAlign") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("valign") ),
+ ctx.importVerticalAlignProperty( OUString( "VerticalAlign" ),
+ OUString( "valign" ),
xAttributes );
ctx.importImageURLProperty( OUSTR( "ImageURL" ), OUSTR( "image-src" ), _xAttributes );
- ctx.importImagePositionProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ImagePosition") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("image-position") ),
+ ctx.importImagePositionProperty( OUString( "ImagePosition" ),
+ OUString( "image-position" ),
xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("multiline") ),
+ ctx.importBooleanProperty( OUString( "MultiLine" ),
+ OUString( "multiline" ),
xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("GroupName") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("group-name") ),
+ ctx.importStringProperty( OUString( "GroupName" ),
+ OUString( "group-name" ),
xAttributes );
sal_Int16 nVal = 0;
sal_Bool bChecked = sal_False;
if (getBoolAttr( &bChecked,
- OUString( RTL_CONSTASCII_USTRINGPARAM("checked") ),
+ OUString( "checked" ),
xAttributes,
_pImport->XMLNS_DIALOGS_UID ) &&
bChecked)
{
nVal = 1;
}
- xControlModel->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("State") ),
+ xControlModel->setPropertyValue( OUString( "State" ),
makeAny( nVal ) );
ctx.importDataAwareProperty( OUSTR("linked-cell" ), xAttributes );
::std::vector< Reference< xml::input::XElement > > * radioEvents =
@@ -1688,7 +1688,7 @@ Reference< xml::input::XElement > RadioElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -1705,7 +1705,7 @@ Reference< xml::input::XElement > RadioGroupElement::startChildElement(
if (_pImport->XMLNS_DIALOGS_UID != nUid)
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("illegal namespace!") ),
+ OUString( "illegal namespace!" ),
Reference< XInterface >(), Any() );
}
// radio
@@ -1721,7 +1721,7 @@ Reference< xml::input::XElement > RadioGroupElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected radio element!") ),
+ OUString( "expected radio element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -1737,7 +1737,7 @@ void RadioGroupElement::endElement()
ControlImportContext ctx(
_pImport, getControlId( xAttributes ),
- getControlModelName( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlRadioButtonModel") ), xAttributes ) );
+ getControlModelName( OUString( "com.sun.star.awt.UnoControlRadioButtonModel" ), xAttributes ) );
Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() );
Reference< xml::input::XElement > xStyle( getStyle( xAttributes ) );
@@ -1752,39 +1752,39 @@ void RadioGroupElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importStringProperty( OUString( "Label" ),
+ OUString( "value" ),
xAttributes );
- ctx.importAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("align") ),
+ ctx.importAlignProperty( OUString( "Align" ),
+ OUString( "align" ),
xAttributes );
- ctx.importVerticalAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("VerticalAlign") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("valign") ),
+ ctx.importVerticalAlignProperty( OUString( "VerticalAlign" ),
+ OUString( "valign" ),
xAttributes );
ctx.importImageURLProperty( OUSTR( "ImageURL" ), OUSTR( "image-src" ), xAttributes );
- ctx.importImagePositionProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ImagePosition") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("image-position") ),
+ ctx.importImagePositionProperty( OUString( "ImagePosition" ),
+ OUString( "image-position" ),
xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("multiline") ),
+ ctx.importBooleanProperty( OUString( "MultiLine" ),
+ OUString( "multiline" ),
xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("GroupName") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("group-name") ),
+ ctx.importStringProperty( OUString( "GroupName" ),
+ OUString( "group-name" ),
xAttributes );
sal_Int16 nVal = 0;
sal_Bool bChecked = sal_False;
if (getBoolAttr( &bChecked,
- OUString( RTL_CONSTASCII_USTRINGPARAM("checked") ),
+ OUString( "checked" ),
xAttributes,
_pImport->XMLNS_DIALOGS_UID ) &&
bChecked)
{
nVal = 1;
}
- xControlModel->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("State") ),
+ xControlModel->setPropertyValue( OUString( "State" ),
makeAny( nVal ) );
ctx.importDataAwareProperty( OUSTR("linked-cell" ), xAttributes );
@@ -1813,7 +1813,7 @@ Reference< xml::input::XElement > MenuPopupElement::startChildElement(
if (_pImport->XMLNS_DIALOGS_UID != nUid)
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("illegal namespace!") ),
+ OUString( "illegal namespace!" ),
Reference< XInterface >(), Any() );
}
// menuitem
@@ -1822,7 +1822,7 @@ Reference< xml::input::XElement > MenuPopupElement::startChildElement(
OUString aValue(
xAttributes->getValueByUidName(
_pImport->XMLNS_DIALOGS_UID,
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ) ) );
+ OUString( "value" ) ) );
OSL_ENSURE( !aValue.isEmpty(), "### menuitem has no value?" );
if (!aValue.isEmpty())
{
@@ -1831,7 +1831,7 @@ Reference< xml::input::XElement > MenuPopupElement::startChildElement(
OUString aSel(
xAttributes->getValueByUidName(
_pImport->XMLNS_DIALOGS_UID,
- OUString( RTL_CONSTASCII_USTRINGPARAM("selected") ) ) );
+ OUString( "selected" ) ) );
if (!aSel.isEmpty() && aSel.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("true") ))
{
_itemSelected.push_back(
@@ -1845,7 +1845,7 @@ Reference< xml::input::XElement > MenuPopupElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected menuitem!") ),
+ OUString( "expected menuitem!" ),
Reference< XInterface >(), Any() );
}
}
@@ -1889,7 +1889,7 @@ Reference< xml::input::XElement > MenuListElement::startChildElement(
else if (_pImport->XMLNS_DIALOGS_UID != nUid)
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("illegal namespace!") ),
+ OUString( "illegal namespace!" ),
Reference< XInterface >(), Any() );
}
// menupopup
@@ -1901,7 +1901,7 @@ Reference< xml::input::XElement > MenuListElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event or menupopup element!") ),
+ OUString( "expected event or menupopup element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -1912,7 +1912,7 @@ void MenuListElement::endElement()
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- getControlModelName( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlListBoxModel") ), _xAttributes ) );
+ getControlModelName( OUString( "com.sun.star.awt.UnoControlListBoxModel" ), _xAttributes ) );
Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
@@ -1927,23 +1927,23 @@ void MenuListElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiSelection") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("multiselection") ),
+ ctx.importBooleanProperty( OUString( "MultiSelection" ),
+ OUString( "multiselection" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("readonly") ),
+ ctx.importBooleanProperty( OUString( "ReadOnly" ),
+ OUString( "readonly" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Dropdown") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("spin") ),
+ ctx.importBooleanProperty( OUString( "Dropdown" ),
+ OUString( "spin" ),
_xAttributes );
- ctx.importShortProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("LineCount") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("linecount") ),
+ ctx.importShortProperty( OUString( "LineCount" ),
+ OUString( "linecount" ),
_xAttributes );
- ctx.importAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("align") ),
+ ctx.importAlignProperty( OUString( "Align" ),
+ OUString( "align" ),
_xAttributes );
bool bHasLinkedCell = ctx.importDataAwareProperty( OUSTR("linked-cell" ), _xAttributes );
bool bHasSrcRange = ctx.importDataAwareProperty( OUSTR("source-cell-range" ), _xAttributes );
@@ -1951,9 +1951,9 @@ void MenuListElement::endElement()
{
MenuPopupElement * p = static_cast< MenuPopupElement * >( _popup.get() );
if ( !bHasSrcRange )
- xControlModel->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("StringItemList") ), makeAny( p->getItemValues() ) );
+ xControlModel->setPropertyValue( OUString( "StringItemList" ), makeAny( p->getItemValues() ) );
if ( !bHasLinkedCell )
- xControlModel->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("SelectedItems") ), makeAny( p->getSelectedItems() ) );
+ xControlModel->setPropertyValue( OUString( "SelectedItems" ), makeAny( p->getSelectedItems() ) );
}
ctx.importEvents( _events );
@@ -1979,7 +1979,7 @@ Reference< xml::input::XElement > ComboBoxElement::startChildElement(
else if (_pImport->XMLNS_DIALOGS_UID != nUid)
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("illegal namespace!") ),
+ OUString( "illegal namespace!" ),
Reference< XInterface >(), Any() );
}
// menupopup
@@ -1991,7 +1991,7 @@ Reference< xml::input::XElement > ComboBoxElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event or menupopup element!") ),
+ OUString( "expected event or menupopup element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -2001,7 +2001,7 @@ void ComboBoxElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- getControlModelName( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlComboBoxModel") ), _xAttributes ) );
+ getControlModelName( OUString( "com.sun.star.awt.UnoControlComboBoxModel" ), _xAttributes ) );
Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
@@ -2016,39 +2016,39 @@ void ComboBoxElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ReadOnly") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("readonly") ),
+ ctx.importBooleanProperty( OUString( "ReadOnly" ),
+ OUString( "readonly" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Autocomplete") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("autocomplete") ),
+ ctx.importBooleanProperty( OUString( "Autocomplete" ),
+ OUString( "autocomplete" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Dropdown") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("spin") ),
+ ctx.importBooleanProperty( OUString( "Dropdown" ),
+ OUString( "spin" ),
_xAttributes );
ctx.importBooleanProperty(
OUSTR("HideInactiveSelection"), OUSTR("hide-inactive-selection"),
_xAttributes );
- ctx.importShortProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("MaxTextLen") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("maxlength") ),
+ ctx.importShortProperty( OUString( "MaxTextLen" ),
+ OUString( "maxlength" ),
_xAttributes );
- ctx.importShortProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("LineCount") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("linecount") ),
+ ctx.importShortProperty( OUString( "LineCount" ),
+ OUString( "linecount" ),
_xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Text") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importStringProperty( OUString( "Text" ),
+ OUString( "value" ),
_xAttributes );
- ctx.importAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("align") ),
+ ctx.importAlignProperty( OUString( "Align" ),
+ OUString( "align" ),
_xAttributes );
ctx.importDataAwareProperty( OUSTR("linked-cell" ), _xAttributes );
bool bHasSrcRange = ctx.importDataAwareProperty( OUSTR("source-cell-range" ), _xAttributes );
if (_popup.is() && !bHasSrcRange )
{
MenuPopupElement * p = static_cast< MenuPopupElement * >( _popup.get() );
- xControlModel->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("StringItemList") ),
+ xControlModel->setPropertyValue( OUString( "StringItemList" ),
makeAny( p->getItemValues() ) );
}
@@ -2075,7 +2075,7 @@ Reference< xml::input::XElement > CheckBoxElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -2085,7 +2085,7 @@ void CheckBoxElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlCheckBoxModel") ) );
+ OUString( "com.sun.star.awt.UnoControlCheckBoxModel") );
Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
@@ -2100,51 +2100,51 @@ void CheckBoxElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importStringProperty( OUString( "Label" ),
+ OUString( "value" ),
_xAttributes );
- ctx.importAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("align") ),
+ ctx.importAlignProperty( OUString( "Align" ),
+ OUString( "align" ),
_xAttributes );
- ctx.importVerticalAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("VerticalAlign") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("valign") ),
+ ctx.importVerticalAlignProperty( OUString( "VerticalAlign" ),
+ OUString( "valign" ),
_xAttributes );
ctx.importImageURLProperty( OUSTR( "ImageURL" ), OUSTR( "image-src" ), _xAttributes );
- ctx.importImagePositionProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ImagePosition") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("image-position") ),
+ ctx.importImagePositionProperty( OUString( "ImagePosition" ),
+ OUString( "image-position" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("multiline") ),
+ ctx.importBooleanProperty( OUString( "MultiLine" ),
+ OUString( "multiline" ),
_xAttributes );
sal_Bool bTriState = sal_False;
if (getBoolAttr( &bTriState,
- OUString( RTL_CONSTASCII_USTRINGPARAM("tristate") ),
+ OUString( "tristate" ),
_xAttributes,
_pImport->XMLNS_DIALOGS_UID ))
{
- xControlModel->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("TriState") ),
+ xControlModel->setPropertyValue( OUString( "TriState" ),
makeAny( bTriState ) );
}
sal_Bool bChecked = sal_False;
if (getBoolAttr( &bChecked,
- OUString( RTL_CONSTASCII_USTRINGPARAM("checked") ),
+ OUString( "checked" ),
_xAttributes,
_pImport->XMLNS_DIALOGS_UID ))
{
// has "checked" attribute
sal_Int16 nVal = (bChecked ? 1 : 0);
- xControlModel->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("State") ),
+ xControlModel->setPropertyValue( OUString( "State" ),
makeAny( nVal ) );
}
else
{
sal_Int16 nVal = (bTriState ? 2 : 0); // if tristate set, but checked omitted => dont know!
- xControlModel->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("State") ),
+ xControlModel->setPropertyValue( OUString( "State" ),
makeAny( nVal ) );
}
@@ -2171,7 +2171,7 @@ Reference< xml::input::XElement > ButtonElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected event element!") ),
+ OUString( "expected event element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -2181,7 +2181,7 @@ void ButtonElement::endElement()
{
ControlImportContext ctx(
_pImport, getControlId( _xAttributes ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlButtonModel") ) );
+ OUString( "com.sun.star.awt.UnoControlButtonModel" ) );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is())
@@ -2195,30 +2195,30 @@ void ButtonElement::endElement()
}
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tabstop") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("tabstop") ),
+ ctx.importBooleanProperty( OUString( "Tabstop" ),
+ OUString( "tabstop" ),
_xAttributes );
- ctx.importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Label") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("value") ),
+ ctx.importStringProperty( OUString( "Label" ),
+ OUString( "value" ),
_xAttributes );
- ctx.importAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Align") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("align") ),
+ ctx.importAlignProperty( OUString( "Align" ),
+ OUString( "align" ),
_xAttributes );
- ctx.importVerticalAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("VerticalAlign") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("valign") ),
+ ctx.importVerticalAlignProperty( OUString( "VerticalAlign" ),
+ OUString( "valign" ),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("DefaultButton") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("default") ),
+ ctx.importBooleanProperty( OUString( "DefaultButton" ),
+ OUString( "default" ),
_xAttributes );
- ctx.importButtonTypeProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("PushButtonType") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("button-type") ),
+ ctx.importButtonTypeProperty( OUString( "PushButtonType" ),
+ OUString( "button-type" ),
_xAttributes );
ctx.importImageURLProperty( OUSTR( "ImageURL" ), OUSTR( "image-src" ), _xAttributes );
- ctx.importImagePositionProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ImagePosition") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("image-position") ),
+ ctx.importImagePositionProperty( OUString( "ImagePosition" ),
+ OUString( "image-position" ),
_xAttributes );
- ctx.importImageAlignProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("ImageAlign") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("image-align") ),
+ ctx.importImageAlignProperty( OUString( "ImageAlign" ),
+ OUString( "image-align" ),
_xAttributes );
if (ctx.importLongProperty( OUSTR("RepeatDelay"), OUSTR("repeat"),
_xAttributes ))
@@ -2230,21 +2230,21 @@ void ButtonElement::endElement()
ctx.getControlModel()->setPropertyValue(OUSTR("Toggle"), makeAny(true));
ctx.importBooleanProperty( OUSTR("FocusOnClick"), OUSTR("grab-focus"),
_xAttributes );
- ctx.importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("MultiLine") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("multiline") ),
+ ctx.importBooleanProperty( OUString( "MultiLine" ),
+ OUString( "multiline" ),
_xAttributes );
// State
sal_Bool bChecked = sal_False;
if (getBoolAttr(
&bChecked,
- OUString( RTL_CONSTASCII_USTRINGPARAM("checked") ),
+ OUString( "checked" ),
_xAttributes,
_pImport->XMLNS_DIALOGS_UID ) &&
bChecked)
{
sal_Int16 nVal = 1;
ctx.getControlModel()->setPropertyValue(
- OUString( RTL_CONSTASCII_USTRINGPARAM("State") ), makeAny( nVal ) );
+ OUString( "State" ), makeAny( nVal ) );
}
ctx.importEvents( _events );
@@ -2265,7 +2265,7 @@ Reference< xml::input::XElement > BulletinBoardElement::startChildElement(
if (_pImport->XMLNS_DIALOGS_UID != nUid)
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("illegal namespace!") ),
+ OUString( "illegal namespace!" ),
Reference< XInterface >(), Any() );
}
// button
@@ -2397,7 +2397,7 @@ Reference< xml::input::XElement > BulletinBoardElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected styles, bulletinboard or bulletinboard element, not: ") ) + rLocalName,
+ OUString( "expected styles, bulletinboard or bulletinboard element, not: " ) + rLocalName,
Reference< XInterface >(), Any() );
}
}
@@ -2412,14 +2412,14 @@ BulletinBoardElement::BulletinBoardElement(
OUString aValue(
_xAttributes->getValueByUidName(
_pImport->XMLNS_DIALOGS_UID,
- OUString( RTL_CONSTASCII_USTRINGPARAM("left") ) ) );
+ OUString( "left" ) ) );
if (!aValue.isEmpty())
{
_nBasePosX += toInt32( aValue );
}
aValue = _xAttributes->getValueByUidName(
_pImport->XMLNS_DIALOGS_UID,
- OUString( RTL_CONSTASCII_USTRINGPARAM("top") ) );
+ OUString( "top" ) );
if (!aValue.isEmpty())
{
_nBasePosY += toInt32( aValue );
@@ -2436,7 +2436,7 @@ Reference< xml::input::XElement > StyleElement::startChildElement(
throw (xml::sax::SAXException, RuntimeException)
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("unexpected sub elements of style!") ),
+ OUString( "unexpected sub elements of style!" ),
Reference< XInterface >(), Any() );
}
//__________________________________________________________________________________________________
@@ -2447,7 +2447,7 @@ void StyleElement::endElement()
OUString aStyleId(
_xAttributes->getValueByUidName(
_pImport->XMLNS_DIALOGS_UID,
- OUString( RTL_CONSTASCII_USTRINGPARAM("style-id") ) ) );
+ OUString( "style-id" ) ) );
if (!aStyleId.isEmpty())
{
_pImport->addStyle( aStyleId, this );
@@ -2455,7 +2455,7 @@ void StyleElement::endElement()
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("missing style-id attribute!") ),
+ OUString( "missing style-id attribute!" ),
Reference< XInterface >(), Any() );
}
}
@@ -2472,7 +2472,7 @@ Reference< xml::input::XElement > StylesElement::startChildElement(
if (_pImport->XMLNS_DIALOGS_UID != nUid)
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("illegal namespace!") ),
+ OUString( "illegal namespace!" ),
Reference< XInterface >(), Any() );
}
// style
@@ -2483,7 +2483,7 @@ Reference< xml::input::XElement > StylesElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected style element!") ),
+ OUString( "expected style element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -2505,7 +2505,7 @@ Reference< xml::input::XElement > WindowElement::startChildElement(
else if (_pImport->XMLNS_DIALOGS_UID != nUid)
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("illegal namespace!") ),
+ OUString( "illegal namespace!" ),
Reference< XInterface >(), Any() );
}
// styles
@@ -2521,7 +2521,7 @@ Reference< xml::input::XElement > WindowElement::startChildElement(
else
{
throw xml::sax::SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("expected styles ot bulletinboard element!") ),
+ OUString( "expected styles ot bulletinboard element!" ),
Reference< XInterface >(), Any() );
}
}
@@ -2545,24 +2545,24 @@ void WindowElement::endElement()
ctx.importDefaults( 0, 0, _xAttributes, false );
ctx.importBooleanProperty(
- OUString( RTL_CONSTASCII_USTRINGPARAM("Closeable") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("closeable") ),
+ OUString( "Closeable" ),
+ OUString( "closeable" ),
_xAttributes );
ctx.importBooleanProperty(
- OUString( RTL_CONSTASCII_USTRINGPARAM("Moveable") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("moveable") ),
+ OUString( "Moveable" ),
+ OUString( "moveable" ),
_xAttributes );
ctx.importBooleanProperty(
- OUString( RTL_CONSTASCII_USTRINGPARAM("Sizeable") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("resizeable") ),
+ OUString( "Sizeable" ),
+ OUString( "resizeable" ),
_xAttributes );
ctx.importStringProperty(
- OUString( RTL_CONSTASCII_USTRINGPARAM("Title") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("title") ),
+ OUString( "Title" ),
+ OUString( "title" ),
_xAttributes );
ctx.importBooleanProperty(
- OUString( RTL_CONSTASCII_USTRINGPARAM("Decoration") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM("withtitlebar") ),
+ OUString( "Decoration" ),
+ OUString( "withtitlebar" ),
_xAttributes );
ctx.importImageURLProperty( OUSTR( "ImageURL" ), OUSTR( "image-src" ), _xAttributes );
ctx.importEvents( _events );