Kaydet (Commit) e2e99d0b authored tarafından Chr. Rossmanith's avatar Chr. Rossmanith

Remove RTL_CONSTASCII_USTRINGPARAM in svx

replace equals() with ==

Change-Id: Ic1aed52398beb2132d8c6824335b865ceb4255b3
üst 088af317
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
rtl::OUString EnhancedCustomShapeEngine_getImplementationName() rtl::OUString EnhancedCustomShapeEngine_getImplementationName()
throw( NMSP_UNO::RuntimeException ) throw( NMSP_UNO::RuntimeException )
{ {
return B2UCONST( "com.sun.star.drawing.EnhancedCustomShapeEngine" ); return OUString( "com.sun.star.drawing.EnhancedCustomShapeEngine" );
} }
sal_Bool SAL_CALL EnhancedCustomShapeEngine_supportsService( const rtl::OUString& ServiceName ) sal_Bool SAL_CALL EnhancedCustomShapeEngine_supportsService( const rtl::OUString& ServiceName )
throw( NMSP_UNO::RuntimeException ) throw( NMSP_UNO::RuntimeException )
...@@ -62,7 +62,7 @@ SEQ( rtl::OUString ) SAL_CALL EnhancedCustomShapeEngine_getSupportedServiceNames ...@@ -62,7 +62,7 @@ SEQ( rtl::OUString ) SAL_CALL EnhancedCustomShapeEngine_getSupportedServiceNames
{ {
SEQ( rtl::OUString ) aRet(1); SEQ( rtl::OUString ) aRet(1);
rtl::OUString* pArray = aRet.getArray(); rtl::OUString* pArray = aRet.getArray();
pArray[0] = B2UCONST( "com.sun.star.drawing.CustomShapeEngine" ); pArray[0] = "com.sun.star.drawing.CustomShapeEngine";
return aRet; return aRet;
} }
...@@ -245,7 +245,7 @@ REF( com::sun::star::drawing::XShape ) SAL_CALL EnhancedCustomShapeEngine::rende ...@@ -245,7 +245,7 @@ REF( com::sun::star::drawing::XShape ) SAL_CALL EnhancedCustomShapeEngine::rende
SdrCustomShapeGeometryItem& rGeometryItem = (SdrCustomShapeGeometryItem&) SdrCustomShapeGeometryItem& rGeometryItem = (SdrCustomShapeGeometryItem&)
pSdrObjCustomShape->GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY ); pSdrObjCustomShape->GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY );
sal_Bool bTextPathOn = sal_False; sal_Bool bTextPathOn = sal_False;
const rtl::OUString sTextPath( RTL_CONSTASCII_USTRINGPARAM ( "TextPath" ) ); const rtl::OUString sTextPath( "TextPath" );
com::sun::star::uno::Any* pAny = rGeometryItem.GetPropertyValueByName( sTextPath, sTextPath ); com::sun::star::uno::Any* pAny = rGeometryItem.GetPropertyValueByName( sTextPath, sTextPath );
if ( pAny ) if ( pAny )
*pAny >>= bTextPathOn; *pAny >>= bTextPathOn;
......
...@@ -44,7 +44,6 @@ ...@@ -44,7 +44,6 @@
#define REF( _def_Obj ) NMSP_UNO::Reference< _def_Obj > #define REF( _def_Obj ) NMSP_UNO::Reference< _def_Obj >
#define SEQ( _def_Obj ) NMSP_UNO::Sequence< _def_Obj > #define SEQ( _def_Obj ) NMSP_UNO::Sequence< _def_Obj >
#define B2UCONST( _def_pChar ) (rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(_def_pChar )))
// --------------------------- // ---------------------------
// - EnhancedCustomShapeEngine - // - EnhancedCustomShapeEngine -
......
...@@ -37,7 +37,7 @@ SFX_IMPL_TOOLBOX_CONTROL(SvxTbxCtlCustomShapes, SfxBoolItem); ...@@ -37,7 +37,7 @@ SFX_IMPL_TOOLBOX_CONTROL(SvxTbxCtlCustomShapes, SfxBoolItem);
SvxTbxCtlCustomShapes::SvxTbxCtlCustomShapes( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ) : SvxTbxCtlCustomShapes::SvxTbxCtlCustomShapes( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ) :
SfxToolBoxControl( nSlotId, nId, rTbx ), SfxToolBoxControl( nSlotId, nId, rTbx ),
m_aSubTbxResName( RTL_CONSTASCII_USTRINGPARAM( "private:resource/toolbar/" ) ) m_aSubTbxResName( "private:resource/toolbar/" )
{ {
switch( nSlotId ) switch( nSlotId )
{ {
...@@ -47,40 +47,40 @@ SvxTbxCtlCustomShapes::SvxTbxCtlCustomShapes( sal_uInt16 nSlotId, sal_uInt16 nId ...@@ -47,40 +47,40 @@ SvxTbxCtlCustomShapes::SvxTbxCtlCustomShapes( sal_uInt16 nSlotId, sal_uInt16 nId
} }
case SID_DRAWTBX_CS_BASIC : case SID_DRAWTBX_CS_BASIC :
{ {
m_aCommand = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:BasicShapes.diamond" ) ); m_aCommand = ".uno:BasicShapes.diamond";
m_aSubTbName = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "basicshapes" ) ); m_aSubTbName = "basicshapes";
} }
break; break;
case SID_DRAWTBX_CS_SYMBOL : case SID_DRAWTBX_CS_SYMBOL :
{ {
m_aCommand = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:SymbolShapes.smiley" ) ); m_aCommand = ".uno:SymbolShapes.smiley";
m_aSubTbName = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "symbolshapes" ) ); m_aSubTbName = "symbolshapes";
} }
break; break;
case SID_DRAWTBX_CS_ARROW : case SID_DRAWTBX_CS_ARROW :
{ {
m_aCommand = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:ArrowShapes.left-right-arrow" ) ); m_aCommand = ".uno:ArrowShapes.left-right-arrow";
m_aSubTbName = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "arrowshapes" ) ); m_aSubTbName = "arrowshapes";
} }
break; break;
case SID_DRAWTBX_CS_FLOWCHART : case SID_DRAWTBX_CS_FLOWCHART :
{ {
m_aCommand = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:FlowChartShapes.flowchart-internal-storage" ) ); m_aCommand = ".uno:FlowChartShapes.flowchart-internal-storage";
m_aSubTbName = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "flowchartshapes" ) ); m_aSubTbName = "flowchartshapes";
} }
break; break;
case SID_DRAWTBX_CS_CALLOUT : case SID_DRAWTBX_CS_CALLOUT :
{ {
m_aCommand = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:CalloutShapes.round-rectangular-callout" ) ); m_aCommand = ".uno:CalloutShapes.round-rectangular-callout";
m_aSubTbName = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "calloutshapes" ) ); m_aSubTbName = "calloutshapes";
} }
break; break;
case SID_DRAWTBX_CS_STAR : case SID_DRAWTBX_CS_STAR :
{ {
m_aCommand = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:StarShapes.star5" ) ); m_aCommand = ".uno:StarShapes.star5";
m_aSubTbName = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "starshapes" ) ); m_aSubTbName = "starshapes";
} }
break; break;
} }
......
...@@ -1214,19 +1214,19 @@ void SvxBmpMask::SetAccessibleNames (void) ...@@ -1214,19 +1214,19 @@ void SvxBmpMask::SetAccessibleNames (void)
String sSourceColorN; String sSourceColorN;
sSourceColorN = sSourceColor; sSourceColorN = sSourceColor;
sSourceColorN.AppendAscii (RTL_CONSTASCII_STRINGPARAM (" 1")); sSourceColorN.AppendAscii (" 1");
aCbx1.SetAccessibleName (sSourceColorN); aCbx1.SetAccessibleName (sSourceColorN);
sSourceColorN = sSourceColor; sSourceColorN = sSourceColor;
sSourceColorN.AppendAscii (RTL_CONSTASCII_STRINGPARAM (" 2")); sSourceColorN.AppendAscii (" 2");
aCbx2.SetAccessibleName (sSourceColorN); aCbx2.SetAccessibleName (sSourceColorN);
sSourceColorN = sSourceColor; sSourceColorN = sSourceColor;
sSourceColorN.AppendAscii (RTL_CONSTASCII_STRINGPARAM (" 3")); sSourceColorN.AppendAscii (" 3");
aCbx3.SetAccessibleName (sSourceColorN); aCbx3.SetAccessibleName (sSourceColorN);
sSourceColorN = sSourceColor; sSourceColorN = sSourceColor;
sSourceColorN.AppendAscii (RTL_CONSTASCII_STRINGPARAM (" 4")); sSourceColorN.AppendAscii (" 4");
aCbx4.SetAccessibleName (sSourceColorN); aCbx4.SetAccessibleName (sSourceColorN);
} }
......
...@@ -130,9 +130,9 @@ SvxPluginFileDlg::SvxPluginFileDlg (Window *, sal_uInt16 nKind ) ...@@ -130,9 +130,9 @@ SvxPluginFileDlg::SvxPluginFileDlg (Window *, sal_uInt16 nKind )
} }
// build filterdescription // build filterdescription
aStrPlugName.AppendAscii( RTL_CONSTASCII_STRINGPARAM( " (" ) ); aStrPlugName.AppendAscii( " (" );
aStrPlugName.Append( aStrPlugExtension ); aStrPlugName.Append( aStrPlugExtension );
aStrPlugName.AppendAscii( RTL_CONSTASCII_STRINGPARAM( ")" ) ); aStrPlugName.AppendAscii( ")" );
// use a own description for the video-formate avi, mov and mpeg // use a own description for the video-formate avi, mov and mpeg
// the descriptions of these MIME-types are not very meaningful // the descriptions of these MIME-types are not very meaningful
......
...@@ -201,7 +201,7 @@ namespace svx{ ...@@ -201,7 +201,7 @@ namespace svx{
bool ErrorRepSendDialog::SendReport() bool ErrorRepSendDialog::SendReport()
{ {
rtl::OUString sSubEnvVar(RTL_CONSTASCII_USTRINGPARAM("ERRORREPORT_SUBJECT")); rtl::OUString sSubEnvVar("ERRORREPORT_SUBJECT");
rtl::OUString strSubject(GetDocType()); rtl::OUString strSubject(GetDocType());
osl_setEnvironment(sSubEnvVar.pData, strSubject.pData); osl_setEnvironment(sSubEnvVar.pData, strSubject.pData);
...@@ -216,16 +216,14 @@ namespace svx{ ...@@ -216,16 +216,14 @@ namespace svx{
OSL_VERIFY(nWritten == static_cast<size_t>(strUTF8.getLength())); OSL_VERIFY(nWritten == static_cast<size_t>(strUTF8.getLength()));
fclose( fp ); fclose( fp );
rtl::OUString sBodyEnvVar(RTL_CONSTASCII_USTRINGPARAM("ERRORREPORT_BODYFILE")); rtl::OUString sBodyEnvVar("ERRORREPORT_BODYFILE");
rtl::OUString strBodyFile(rtl::OStringToOUString(rtl::OString(szBodyFile), rtl::OUString strBodyFile(rtl::OStringToOUString(rtl::OString(szBodyFile),
osl_getThreadTextEncoding())); osl_getThreadTextEncoding()));
osl_setEnvironment(sBodyEnvVar.pData, strBodyFile.pData); osl_setEnvironment(sBodyEnvVar.pData, strBodyFile.pData);
} }
int ret = -1; int ret = -1;
rtl::OUString path1( rtl::OUString path1("$BRAND_BASE_DIR/program/crashrep");
RTL_CONSTASCII_USTRINGPARAM(
"$BRAND_BASE_DIR/program/crashrep"));
rtl::Bootstrap::expandMacros(path1); rtl::Bootstrap::expandMacros(path1);
rtl::OString path2; rtl::OString path2;
if ((osl::FileBase::getSystemPathFromFileURL(path1, path1) == if ((osl::FileBase::getSystemPathFromFileURL(path1, path1) ==
...@@ -237,7 +235,7 @@ namespace svx{ ...@@ -237,7 +235,7 @@ namespace svx{
{ {
rtl::OStringBuffer cmd; rtl::OStringBuffer cmd;
tools::appendUnixShellWord(&cmd, path2); tools::appendUnixShellWord(&cmd, path2);
cmd.append(RTL_CONSTASCII_STRINGPARAM(" -debug -load -send -noui")); cmd.append(" -debug -load -send -noui");
ret = system(cmd.getStr()); ret = system(cmd.getStr());
} }
......
...@@ -2248,7 +2248,7 @@ String& SvxSearchDialog::BuildAttrText_Impl( String& rStr, ...@@ -2248,7 +2248,7 @@ String& SvxSearchDialog::BuildAttrText_Impl( String& rStr,
const SearchAttrItem& rItem = pList->GetObject(i); const SearchAttrItem& rItem = pList->GetObject(i);
if ( rStr.Len() ) if ( rStr.Len() )
rStr.AppendAscii( RTL_CONSTASCII_STRINGPARAM( ", " ) ); rStr.AppendAscii( ", " );
if ( !IsInvalidItem( rItem.pItem ) ) if ( !IsInvalidItem( rItem.pItem ) )
{ {
......
...@@ -304,9 +304,9 @@ void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt ) ...@@ -304,9 +304,9 @@ void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt )
} }
Sequence< PropertyValue > aProperties(2); Sequence< PropertyValue > aProperties(2);
PropertyValue* pProperties = aProperties.getArray(); PropertyValue* pProperties = aProperties.getArray();
pProperties[0].Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("NumberingType")); pProperties[0].Name = rtl::OUString("NumberingType");
pProperties[0].Value <<= aNumberingTypes[i]; pProperties[0].Value <<= aNumberingTypes[i];
pProperties[1].Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Value")); pProperties[1].Name = rtl::OUString("Value");
pProperties[1].Value <<= (sal_Int32)1; pProperties[1].Value <<= (sal_Int32)1;
try try
{ {
...@@ -319,7 +319,7 @@ void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt ) ...@@ -319,7 +319,7 @@ void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt )
aLeft.Y() -= (pDev->GetTextHeight()/2); aLeft.Y() -= (pDev->GetTextHeight()/2);
if(!sPrefixes[i].isEmpty() && if(!sPrefixes[i].isEmpty() &&
!sPrefixes[i].equalsAsciiL(" ", 1) && sPrefixes[i] != " " &&
sPrefixes[i].getStr()[0] != 0) sPrefixes[i].getStr()[0] != 0)
{ {
pVDev->SetFont(aFont); pVDev->SetFont(aFont);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment