summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorSzabolcs Dezsi <dezsiszabi@hotmail.com>2012-04-06 14:28:18 +0200
committerJan Holesovsky <kendy@suse.cz>2012-04-06 14:30:05 +0200
commit8a01ee624318ac08800af89d988971114637a04e (patch)
treee4acf35e42ab0c1d0b593bd8970fa2c435f90c95 /oox
parent6cf547f02c79278430ee75483a3128076cfc609e (diff)
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
Diffstat (limited to 'oox')
-rw-r--r--oox/source/core/filterdetect.cxx4
-rw-r--r--oox/source/docprop/ooxmldocpropimport.cxx2
-rw-r--r--oox/source/drawingml/graphicshapecontext.cxx6
-rw-r--r--oox/source/dump/dffdumper.cxx8
-rw-r--r--oox/source/dump/dumperbase.cxx70
-rw-r--r--oox/source/dump/oledumper.cxx68
-rw-r--r--oox/source/dump/pptxdumper.cxx4
-rw-r--r--oox/source/export/drawingml.cxx10
-rw-r--r--oox/source/export/shapes.cxx6
-rw-r--r--oox/source/ppt/timenode.cxx2
-rw-r--r--oox/source/ppt/timenodelistcontext.cxx2
-rw-r--r--oox/source/vml/vmlformatting.cxx2
12 files changed, 92 insertions, 92 deletions
diff --git a/oox/source/core/filterdetect.cxx b/oox/source/core/filterdetect.cxx
index 259b5c1f653e..90b287e88cd5 100644
--- a/oox/source/core/filterdetect.cxx
+++ b/oox/source/core/filterdetect.cxx
@@ -163,7 +163,7 @@ void SAL_CALL FilterDetectDocHandler::processingInstruction(
void FilterDetectDocHandler::parseRelationship( const AttributeList& rAttribs )
{
OUString aType = rAttribs.getString( XML_Type, OUString() );
- if( aType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" ) ) )
+ if ( aType == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" )
{
Reference< com::sun::star::uri::XUriReferenceFactory > xFac = com::sun::star::uri::UriReferenceFactory::create( mxContext );
try
@@ -202,7 +202,7 @@ OUString FilterDetectDocHandler::getFilterNameFromContentType( const OUString& r
rContentType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "application/vnd.ms-excel.template.macroEnabled.main+xml" ) ) )
return CREATE_OUSTRING( "MS Excel 2007 XML Template" );
- if( rContentType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "application/vnd.ms-excel.sheet.binary.macroEnabled.main" ) ) )
+ if ( rContentType == "application/vnd.ms-excel.sheet.binary.macroEnabled.main" )
return CREATE_OUSTRING( "MS Excel 2007 Binary" );
if( rContentType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml" ) ) ||
diff --git a/oox/source/docprop/ooxmldocpropimport.cxx b/oox/source/docprop/ooxmldocpropimport.cxx
index 736e3400c3de..ef651734fc50 100644
--- a/oox/source/docprop/ooxmldocpropimport.cxx
+++ b/oox/source/docprop/ooxmldocpropimport.cxx
@@ -92,7 +92,7 @@ Sequence< InputSource > lclGetRelatedStreams( const Reference< XStorage >& rxSto
for( sal_Int32 nEntryIndex = 0, nEntryLength = rEntries.getLength(); nEntryIndex < nEntryLength; ++nEntryIndex )
{
const StringPair& rEntry = rEntries[ nEntryIndex ];
- if( rEntry.First.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Target" ) ) )
+ if ( rEntry.First == "Target" )
{
Reference< XExtendedStorageStream > xExtStream(
xHierarchy->openStreamElementByHierarchicalName( rEntry.Second, ElementModes::READ ), UNO_QUERY_THROW );
diff --git a/oox/source/drawingml/graphicshapecontext.cxx b/oox/source/drawingml/graphicshapecontext.cxx
index 2230a3bbe60a..8af4e802a0ca 100644
--- a/oox/source/drawingml/graphicshapecontext.cxx
+++ b/oox/source/drawingml/graphicshapecontext.cxx
@@ -143,11 +143,11 @@ Reference< XFastContextHandler > GraphicalObjectFrameContext::createFastChildCon
case XML_graphicData : // CT_GraphicalObjectData
{
OUString sUri( xAttribs->getOptionalValue( XML_uri ) );
- if ( sUri.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "http://schemas.openxmlformats.org/presentationml/2006/ole" ) ) )
+ if ( sUri == "http://schemas.openxmlformats.org/presentationml/2006/ole" )
xRet.set( new OleObjectGraphicDataContext( *this, mpShapePtr ) );
- else if ( sUri.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "http://schemas.openxmlformats.org/drawingml/2006/diagram" ) ) )
+ else if ( sUri == "http://schemas.openxmlformats.org/drawingml/2006/diagram" )
xRet.set( new DiagramGraphicDataContext( *this, mpShapePtr ) );
- else if ( sUri.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "http://schemas.openxmlformats.org/drawingml/2006/chart" ) ) )
+ else if ( sUri == "http://schemas.openxmlformats.org/drawingml/2006/chart" )
xRet.set( new ChartGraphicDataContext( *this, mpShapePtr, mbEmbedShapesInChart ) );
else if ( sUri.compareToAscii( "http://schemas.openxmlformats.org/drawingml/2006/table" ) == 0 )
xRet.set( new table::TableContext( *this, mpShapePtr ) );
diff --git a/oox/source/dump/dffdumper.cxx b/oox/source/dump/dffdumper.cxx
index 9ffeddf5d39a..13fd50788124 100644
--- a/oox/source/dump/dffdumper.cxx
+++ b/oox/source/dump/dffdumper.cxx
@@ -216,13 +216,13 @@ void DffStreamObject::dumpDffOpt()
{
const ItemFormat& rItemFmt = aIt->second;
aName = rItemFmt.maItemName;
- if( rItemFmt.maListName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "binary" ) ) )
+ if ( rItemFmt.maListName == "binary" )
eType = PROPTYPE_BINARY;
- else if( rItemFmt.maListName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "string" ) ) )
+ else if ( rItemFmt.maListName == "string" )
eType = PROPTYPE_STRING;
- else if( rItemFmt.maListName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "blip" ) ) )
+ else if ( rItemFmt.maListName == "blip" )
eType = PROPTYPE_BLIP;
- else if( rItemFmt.maListName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "colorarray" ) ) )
+ else if ( rItemFmt.maListName == "colorarray" )
eType = PROPTYPE_COLORARRAY;
}
aPropInfos.push_back( PropInfo( aName( "property-data" ), eType, nBaseId, nValue ) );
diff --git a/oox/source/dump/dumperbase.cxx b/oox/source/dump/dumperbase.cxx
index d529d7203cd2..bcbdb41aedd2 100644
--- a/oox/source/dump/dumperbase.cxx
+++ b/oox/source/dump/dumperbase.cxx
@@ -204,9 +204,9 @@ OUStringVector::const_iterator ItemFormat::parse( const OUStringVector& rFormatV
if( meFmtType == FORMATTYPE_NONE )
{
- if( aFmtType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "unused" ) ) )
+ if ( aFmtType == "unused" )
set( meDataType, FORMATTYPE_HEX, CREATE_OUSTRING( OOX_DUMP_UNUSED ) );
- else if( aFmtType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "unknown" ) ) )
+ else if ( aFmtType == "unknown" )
set( meDataType, FORMATTYPE_HEX, CREATE_OUSTRING( OOX_DUMP_UNKNOWN ) );
}
@@ -728,25 +728,25 @@ OString StringHelper::convertToUtf8( const OUString& rStr )
DataType StringHelper::convertToDataType( const OUString& rStr )
{
DataType eType = DATATYPE_VOID;
- if( rStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "int8" ) ) )
+ if ( rStr == "int8" )
eType = DATATYPE_INT8;
- else if( rStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "uint8" ) ) )
+ else if ( rStr == "uint8" )
eType = DATATYPE_UINT8;
- else if( rStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "int16" ) ) )
+ else if ( rStr == "int16" )
eType = DATATYPE_INT16;
- else if( rStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "uint16" ) ) )
+ else if ( rStr == "uint16" )
eType = DATATYPE_UINT16;
- else if( rStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "int32" ) ) )
+ else if ( rStr == "int32" )
eType = DATATYPE_INT32;
- else if( rStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "uint32" ) ) )
+ else if ( rStr == "uint32" )
eType = DATATYPE_UINT32;
- else if( rStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "int64" ) ) )
+ else if ( rStr == "int64" )
eType = DATATYPE_INT64;
- else if( rStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "uint64" ) ) )
+ else if ( rStr == "uint64" )
eType = DATATYPE_UINT64;
- else if( rStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "float" ) ) )
+ else if ( rStr == "float" )
eType = DATATYPE_FLOAT;
- else if( rStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "double" ) ) )
+ else if ( rStr == "double" )
eType = DATATYPE_DOUBLE;
return eType;
}
@@ -754,17 +754,17 @@ DataType StringHelper::convertToDataType( const OUString& rStr )
FormatType StringHelper::convertToFormatType( const OUString& rStr )
{
FormatType eType = FORMATTYPE_NONE;
- if( rStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "dec" ) ) )
+ if ( rStr == "dec" )
eType = FORMATTYPE_DEC;
- else if( rStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "hex" ) ) )
+ else if ( rStr == "hex" )
eType = FORMATTYPE_HEX;
- else if( rStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "shorthex" ) ) )
+ else if ( rStr == "shorthex" )
eType = FORMATTYPE_SHORTHEX;
- else if( rStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "bin" ) ) )
+ else if ( rStr == "bin" )
eType = FORMATTYPE_BIN;
- else if( rStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "fix" ) ) )
+ else if ( rStr == "fix" )
eType = FORMATTYPE_FIX;
- else if( rStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "bool" ) ) )
+ else if ( rStr == "bool" )
eType = FORMATTYPE_BOOL;
return eType;
}
@@ -828,9 +828,9 @@ bool StringHelper::convertStringToDouble( double& orfData, const OUString& rData
bool StringHelper::convertStringToBool( const OUString& rData )
{
- if( rData.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "true" ) ) )
+ if ( rData == "true" )
return true;
- if( rData.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "false" ) ) )
+ if ( rData == "false" )
return false;
sal_Int64 nData;
return convertStringToInt( nData, rData ) && (nData != 0);
@@ -996,9 +996,9 @@ bool NameListBase::implIsValid() const
void NameListBase::implProcessConfigItemStr(
TextInputStream& rStrm, const OUString& rKey, const OUString& rData )
{
- if( rKey.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "include" ) ) )
+ if ( rKey == "include" )
include( rData );
- else if( rKey.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "exclude" ) ) )
+ else if ( rKey == "exclude" )
exclude( rData );
else
ConfigItemBase::implProcessConfigItemStr( rStrm, rKey, rData );
@@ -1058,9 +1058,9 @@ ConstList::ConstList( const SharedConfigData& rCfgData ) :
void ConstList::implProcessConfigItemStr(
TextInputStream& rStrm, const OUString& rKey, const OUString& rData )
{
- if( rKey.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "default" ) ) )
+ if ( rKey == "default" )
setDefaultName( rData );
- else if( rKey.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "quote-names" ) ) )
+ else if ( rKey == "quote-names" )
setQuoteNames( StringHelper::convertStringToBool( rData ) );
else
NameListBase::implProcessConfigItemStr( rStrm, rKey, rData );
@@ -1117,7 +1117,7 @@ void MultiList::setNamesFromVec( sal_Int64 nStartKey, const OUStringVector& rNam
void MultiList::implProcessConfigItemStr(
TextInputStream& rStrm, const OUString& rKey, const OUString& rData )
{
- if( rKey.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ignore-empty" ) ) )
+ if ( rKey == "ignore-empty" )
mbIgnoreEmpty = StringHelper::convertStringToBool( rData );
else
ConstList::implProcessConfigItemStr( rStrm, rKey, rData );
@@ -1141,7 +1141,7 @@ FlagsList::FlagsList( const SharedConfigData& rCfgData ) :
void FlagsList::implProcessConfigItemStr(
TextInputStream& rStrm, const OUString& rKey, const OUString& rData )
{
- if( rKey.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ignore" ) ) )
+ if ( rKey == "ignore" )
{
sal_Int64 nIgnore;
if( StringHelper::convertStringToInt( nIgnore, rData ) )
@@ -1246,11 +1246,11 @@ void CombiList::implSetName( sal_Int64 nKey, const OUString& rName )
for( OUStringVector::iterator aIt = aRemain.begin(), aEnd = aRemain.end(); aIt != aEnd; ++aIt )
{
OUStringPair aPair = StringHelper::convertStringToPair( *aIt );
- if( aPair.first.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "noshift" ) ) )
+ if ( aPair.first == "noshift" )
{
aItemFmt.mbShiftValue = StringHelper::convertStringToBool( aPair.second );
}
- else if( aPair.first.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "filter" ) ) )
+ else if ( aPair.first == "filter" )
{
OUStringPair aFilter = StringHelper::convertStringToPair( aPair.second, '~' );
ExtItemFormatKey aKey( nKey );
@@ -1438,19 +1438,19 @@ bool SharedConfigData::implIsValid() const
void SharedConfigData::implProcessConfigItemStr(
TextInputStream& rStrm, const OUString& rKey, const OUString& rData )
{
- if( rKey.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "include-config-file" ) ) )
+ if ( rKey == "include-config-file" )
readConfigFile( maConfigPath + rData );
- else if( rKey.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "constlist" ) ) )
+ else if ( rKey == "constlist" )
readNameList< ConstList >( rStrm, rData );
- else if( rKey.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "multilist" ) ) )
+ else if ( rKey == "multilist" )
readNameList< MultiList >( rStrm, rData );
- else if( rKey.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "flagslist" ) ) )
+ else if ( rKey == "flagslist" )
readNameList< FlagsList >( rStrm, rData );
- else if( rKey.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "combilist" ) ) )
+ else if ( rKey == "combilist" )
readNameList< CombiList >( rStrm, rData );
- else if( rKey.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "shortlist" ) ) )
+ else if ( rKey == "shortlist" )
createShortList( rData );
- else if( rKey.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "unitconverter" ) ) )
+ else if ( rKey == "unitconverter" )
createUnitConverter( rData );
else
setOption( rKey, rData );
diff --git a/oox/source/dump/oledumper.cxx b/oox/source/dump/oledumper.cxx
index 1aa62161f745..d400fe1dc99b 100644
--- a/oox/source/dump/oledumper.cxx
+++ b/oox/source/dump/oledumper.cxx
@@ -273,9 +273,9 @@ void OlePropertyStreamObject::dumpSection( const OUString& rGuid, sal_uInt32 nSt
// property ID names
mxPropIds = cfg().createNameList< ConstList >( "OLEPROP-IDS" );
OUString aGuidName = cfg().getStringOption( rGuid, OUString() );
- if( aGuidName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "GlobalDocProp" ) ) )
+ if ( aGuidName == "GlobalDocProp" )
mxPropIds->includeList( cfg().getNameList( "OLEPROP-GLOBALIDS" ) );
- else if( aGuidName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "BuiltinDocProp" ) ) )
+ else if ( aGuidName == "BuiltinDocProp" )
mxPropIds->includeList( cfg().getNameList( "OLEPROP-BUILTINIDS" ) );
else
mxPropIds->includeList( cfg().getNameList( "OLEPROP-BASEIDS" ) );
@@ -559,7 +559,7 @@ void OleStorageObject::construct( const ObjectBase& rParent, const StorageRef& r
void OleStorageObject::implDumpStream( const Reference< XInputStream >& rxStrm, const OUString& /*rStrgPath*/, const OUString& rStrmName, const OUString& rSysFileName )
{
- if( rStrmName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "\001CompObj" ) ) )
+ if ( rStrmName == "\001CompObj" )
OleCompObjObject( *this, rxStrm, rSysFileName ).dump();
else if( rStrmName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "\005SummaryInformation" ) ) || rStrmName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "\005DocumentSummaryInformation" ) ) )
OlePropertyStreamObject( *this, rxStrm, rSysFileName ).dump();
@@ -660,7 +660,7 @@ bool ComCtlObjectBase::dumpComCtlComplex()
writeEmptyItem( "font" );
IndentGuard aIndGuard2( mxOut );
OUString aClassName = cfg().getStringOption( dumpGuid(), OUString() );
- if( aClassName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "StdFont" ) ) )
+ if ( aClassName == "StdFont" )
StdFontObject( *this ).dump();
}
if( !mxStrm->isEof() && (nFlags & 0x02) )
@@ -668,7 +668,7 @@ bool ComCtlObjectBase::dumpComCtlComplex()
writeEmptyItem( "mouse-icon" );
IndentGuard aIndGuard2( mxOut );
OUString aClassName = cfg().getStringOption( dumpGuid(), OUString() );
- if( aClassName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "StdPic" ) ) )
+ if ( aClassName == "StdPic" )
StdPicObject( *this ).dump();
}
return !mxStrm->isEof();
@@ -1215,11 +1215,11 @@ void AxPropertyObjectBase::dumpLargeProperties()
{
IndentGuard aIndGuard2( mxOut );
OUString aClassName = cfg().getStringOption( dumpGuid(), OUString() );
- if( aClassName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "StdFont" ) ) )
+ if ( aClassName == "StdFont" )
StdFontObject( *this ).dump();
- else if( aClassName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "StdPic" ) ) )
+ else if ( aClassName == "StdPic" )
StdPicObject( *this ).dump();
- else if( aClassName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "CFontNew" ) ) )
+ else if ( aClassName == "CFontNew" )
AxCFontNewObject( *this ).dump();
else
ensureValid( false );
@@ -1530,7 +1530,7 @@ void FormControlStreamObject::implDump()
if( !maProgId.isEmpty() && !mxStrm->isEof() )
{
- if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.CommandButton.1" ) ) )
+ if ( maProgId == "Forms.CommandButton.1" )
AxCommandButtonObject( *this ).dump();
else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.TextBox.1" ) ) ||
maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.ListBox.1" ) ) ||
@@ -1540,45 +1540,45 @@ void FormControlStreamObject::implDump()
maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.ToggleButton.1" ) ) ||
maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "RefEdit.Ctrl" ) ) )
AxMorphControlObject( *this ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.Label.1" ) ) )
+ else if ( maProgId == "Forms.Label.1" )
AxLabelObject( *this ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.Image.1" ) ) )
+ else if ( maProgId == "Forms.Image.1" )
AxImageObject( *this ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.ScrollBar.1" ) ) )
+ else if ( maProgId == "Forms.ScrollBar.1" )
AxScrollBarObject( *this ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.SpinButton.1" ) ) )
+ else if ( maProgId == "Forms.SpinButton.1" )
AxSpinButtonObject( *this ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.TabStrip.1" ) ) )
+ else if ( maProgId == "Forms.TabStrip.1" )
AxTabStripObject( *this ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "MSComCtl2.FlatScrollBar.2" ) ) )
+ else if ( maProgId == "MSComCtl2.FlatScrollBar.2" )
ComCtlScrollBarObject( *this, 6 ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "COMCTL.ProgCtrl.1" ) ) )
+ else if ( maProgId == "COMCTL.ProgCtrl.1" )
ComCtlProgressBarObject( *this, 5 ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "MSComctlLib.ProgCtrl.2" ) ) )
+ else if ( maProgId == "MSComctlLib.ProgCtrl.2" )
ComCtlProgressBarObject( *this, 6 ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "COMCTL.Slider.1" ) ) )
+ else if ( maProgId == "COMCTL.Slider.1" )
ComCtlSliderObject( *this, 5 ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "MSComctlLib.Slider.2" ) ) )
+ else if ( maProgId == "MSComctlLib.Slider.2" )
ComCtlSliderObject( *this, 6 ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ComCtl2.UpDown.1" ) ) )
+ else if ( maProgId == "ComCtl2.UpDown.1" )
ComCtlUpDownObject( *this, 5 ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "MSComCtl2.UpDown.2" ) ) )
+ else if ( maProgId == "MSComCtl2.UpDown.2" )
ComCtlUpDownObject( *this, 6 ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "COMCTL.ImageListCtrl.1" ) ) )
+ else if ( maProgId == "COMCTL.ImageListCtrl.1" )
ComCtlImageListObject( *this, 5 ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "MSComctlLib.ImageListCtrl.2" ) ) )
+ else if ( maProgId == "MSComctlLib.ImageListCtrl.2" )
ComCtlImageListObject( *this, 6 ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "COMCTL.TabStrip.1" ) ) )
+ else if ( maProgId == "COMCTL.TabStrip.1" )
ComCtlTabStripObject( *this, 5 ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "MSComctlLib.TabStrip.2" ) ) )
+ else if ( maProgId == "MSComctlLib.TabStrip.2" )
ComCtlTabStripObject( *this, 6 ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "COMCTL.TreeCtrl.1" ) ) )
+ else if ( maProgId == "COMCTL.TreeCtrl.1" )
ComCtlTreeViewObject( *this, 5 ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "MSComctlLib.TreeCtrl.2" ) ) )
+ else if ( maProgId == "MSComctlLib.TreeCtrl.2" )
ComCtlTreeViewObject( *this, 6 ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "COMCTL.SBarCtrl.1" ) ) )
+ else if ( maProgId == "COMCTL.SBarCtrl.1" )
ComCtlStatusBarObject( *this, 5 ).dump();
- else if( maProgId.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "StdPic" ) ) )
+ else if ( maProgId == "StdPic" )
StdPicObject( *this ).dump();
}
dumpRemainingStream();
@@ -1933,11 +1933,11 @@ VbaContainerStorageObject::VbaContainerStorageObject( const ObjectBase& rParent,
void VbaContainerStorageObject::implDumpStream( const Reference< XInputStream >& rxStrm, const OUString& rStrgPath, const OUString& rStrmName, const OUString& rSysFileName )
{
- if( rStrmName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "f" ) ) )
+ if ( rStrmName == "f" )
VbaFStreamObject( *this, rxStrm, rSysFileName, maFormData ).dump();
- else if( rStrmName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "o" ) ) )
+ else if ( rStrmName == "o" )
VbaOStreamObject( *this, rxStrm, rSysFileName, maFormData ).dump();
- else if( rStrmName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "x" ) ) )
+ else if ( rStrmName == "x" )
VbaXStreamObject( *this, rxStrm, rSysFileName, maFormData ).dump();
else
OleStorageObject::implDumpStream( rxStrm, rStrgPath, rStrmName, rSysFileName );
@@ -2175,7 +2175,7 @@ VbaFormStorageObject::VbaFormStorageObject( const ObjectBase& rParent, const Sto
void VbaFormStorageObject::implDumpStream( const Reference< XInputStream >& rxStrm, const OUString& rStrgPath, const OUString& rStrmName, const OUString& rSysFileName )
{
- if( rStrmName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "\003VBFrame" ) ) )
+ if ( rStrmName == "\003VBFrame" )
TextLineStreamObject( *this, rxStrm, mrVbaData.meTextEnc, rSysFileName ).dump();
else
VbaContainerStorageObject::implDumpStream( rxStrm, rStrgPath, rStrmName, rSysFileName );
@@ -2199,7 +2199,7 @@ void VbaProjectStorageObject::implDumpStream( const Reference< XInputStream >& r
void VbaProjectStorageObject::implDumpStorage( const StorageRef& rxStrg, const OUString& rStrgPath, const OUString& rSysPath )
{
- if( rStrgPath.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "VBA" ) ) )
+ if ( rStrgPath == "VBA" )
VbaStorageObject( *this, rxStrg, rSysPath, maVbaData ).dump();
else
VbaFormStorageObject( *this, rxStrg, rSysPath, maVbaData ).dump();
diff --git a/oox/source/dump/pptxdumper.cxx b/oox/source/dump/pptxdumper.cxx
index f470afadbac6..f9ca6422aab4 100644
--- a/oox/source/dump/pptxdumper.cxx
+++ b/oox/source/dump/pptxdumper.cxx
@@ -99,12 +99,12 @@ void RootStorageObject::implDumpStream( const Reference< XInputStream >& rxStrm,
StorageRef xStrg( new ::oox::ole::OleStorage( getContext(), rxStrm, false ) );
VbaProjectStorageObject( *this, xStrg, rSysFileName ).dump();
}
- else if( rStrgPath.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ppt/embeddings" ) ) )
+ else if ( rStrgPath == "ppt/embeddings" )
{
StorageRef xStrg( new ::oox::ole::OleStorage( getContext(), rxStrm, false ) );
OleStorageObject( *this, xStrg, rSysFileName ).dump();
}
- else if( rStrgPath.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ppt/activeX" ) ) )
+ else if ( rStrgPath == "ppt/activeX" )
{
StorageRef xStrg( new ::oox::ole::OleStorage( getContext(), rxStrm, true ) );
ActiveXStorageObject( *this, xStrg, rSysFileName ).dump();
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 01e4c015f3b3..3ab7dd91d7af 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -1015,7 +1015,7 @@ void DrawingML::WriteParagraphNumbering( Reference< XPropertySet > rXPropSet, sa
if ( pValue ) {
OUString aPropName( pPropValue[ i ].Name );
DBG(printf ("pro name: %s\n", OUStringToOString( aPropName, RTL_TEXTENCODING_UTF8 ).getStr()));
- if ( aPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "NumberingType" ) ) )
+ if ( aPropName == "NumberingType" )
nNumberingType = *( (sal_Int16*)pValue );
else if ( aPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Prefix" ) ) ) {
if( *(OUString*)pValue == US( ")" ) )
@@ -1025,12 +1025,12 @@ void DrawingML::WriteParagraphNumbering( Reference< XPropertySet > rXPropSet, sa
bSDot = true;
else if( *(OUString*)pValue == US( ")" ) )
bPBehind = true;
- } else if ( aPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "BulletChar" ) ) )
+ } else if ( aPropName == "BulletChar" )
{
aBulletChar = String ( *( (String*)pValue ) ).GetChar( 0 );
//printf ("bullet char: %d\n", aBulletChar.getStr());
}
- else if ( aPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "BulletFont" ) ) )
+ else if ( aPropName == "BulletFont" )
{
aFontDesc = *( (awt::FontDescriptor*)pValue );
bHasFontDesc = true;
@@ -1039,7 +1039,7 @@ void DrawingML::WriteParagraphNumbering( Reference< XPropertySet > rXPropSet, sa
// instead of a Unicode encoding the encoding RTL_TEXTENCODING_SYMBOL was used.
// Because there might exist a lot of damaged documemts I added this two lines
// which fixes the bullet problem for the export.
- if ( aFontDesc.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "StarSymbol" ) ) )
+ if ( aFontDesc.Name == "StarSymbol" )
aFontDesc.CharSet = RTL_TEXTENCODING_MS_1252;
} else if ( aPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "BulletRelSize" ) ) ) {
@@ -1047,7 +1047,7 @@ void DrawingML::WriteParagraphNumbering( Reference< XPropertySet > rXPropSet, sa
} else if ( aPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "GraphicURL" ) ) ) {
aGraphicURL = ( *(OUString*)pValue );
DBG(printf ("graphic url: %s\n", OUStringToOString( aGraphicURL, RTL_TEXTENCODING_UTF8 ).getStr()));
- } else if ( aPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "GraphicSize" ) ) )
+ } else if ( aPropName == "GraphicSize" )
{
if ( pPropValue[ i ].Value.getValueType() == ::getCppuType( (awt::Size*)0) )
{
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx
index 640418447d1f..066a53fb813e 100644
--- a/oox/source/export/shapes.cxx
+++ b/oox/source/export/shapes.cxx
@@ -713,12 +713,12 @@ ShapeExport& ShapeExport::WriteCustomShape( Reference< XShape > xShape )
const PropertyValue& rProp = aGeometrySeq[ i ];
DBG(printf("geometry property: %s\n", USS( rProp.Name )));
- if( rProp.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "MirroredX" ) ))
+ if ( rProp.Name == "MirroredX" )
rProp.Value >>= bFlipH;
- if( rProp.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "MirroredY" ) ))
+ if ( rProp.Name == "MirroredY" )
rProp.Value >>= bFlipV;
- if( rProp.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "AdjustmentValues" ) ))
+ if ( rProp.Name == "AdjustmentValues" )
nAdjustmentValuesIndex = i;
else if( rProp.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Handles" ) )) {
if( !bIsDefaultObject )
diff --git a/oox/source/ppt/timenode.cxx b/oox/source/ppt/timenode.cxx
index 776e2bfe513a..44ca44b75bb9 100644
--- a/oox/source/ppt/timenode.cxx
+++ b/oox/source/ppt/timenode.cxx
@@ -159,7 +159,7 @@ namespace oox { namespace ppt {
sal_Int32 nLength = aUserData.getLength();
while( nLength-- )
{
- if( p->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "node-type" ) ) )
+ if ( p->Name == "node-type" )
{
sal_Int16 nNodeType = 0;
p->Value >>= nNodeType;
diff --git a/oox/source/ppt/timenodelistcontext.cxx b/oox/source/ppt/timenodelistcontext.cxx
index fa312d527b0c..1112e68d28d8 100644
--- a/oox/source/ppt/timenodelistcontext.cxx
+++ b/oox/source/ppt/timenodelistcontext.cxx
@@ -273,7 +273,7 @@ namespace oox { namespace ppt {
break;
case XML_evt:
case XML_call:
- if( msCommand.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "onstopaudio" ) ) )
+ if ( msCommand == "onstopaudio" )
{
nCommand = EffectCommands::STOPAUDIO;
}
diff --git a/oox/source/vml/vmlformatting.cxx b/oox/source/vml/vmlformatting.cxx
index 1d5a9588f44f..f7ebde4f193b 100644
--- a/oox/source/vml/vmlformatting.cxx
+++ b/oox/source/vml/vmlformatting.cxx
@@ -119,7 +119,7 @@ bool lclExtractDouble( double& orfValue, sal_Int32& ornEndPos, const OUString& r
return 0;
// TODO: according to spec, value may contain "auto"
- if( rValue.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "auto" ) ) )
+ if ( rValue == "auto" )
{
OSL_FAIL( "ConversionHelper::decodeMeasureToEmu - special value 'auto' must be handled by caller" );
return nRefValue;