Kaydet (Commit) 4b641686 authored tarafından Olivier Hallot's avatar Olivier Hallot

More RTL_CONSTASCII_USTRINGPARAM removals

üst 0b1a0cf3
...@@ -265,7 +265,7 @@ void FuFormatPaintBrush::Paste( bool bNoCharacterFormats, bool bNoParagraphForma ...@@ -265,7 +265,7 @@ void FuFormatPaintBrush::Paste( bool bNoCharacterFormats, bool bNoParagraphForma
// except in a few cases (?) // except in a few cases (?)
if( pObj ) if( pObj )
{ {
String sLabel( mpViewShell->GetViewShellBase().RetrieveLabelFromCommand( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:FormatPaintbrush" ) ) ) ); rtl::OUString sLabel( mpViewShell->GetViewShellBase().RetrieveLabelFromCommand(".uno:FormatPaintbrush" ) );
mpDoc->BegUndo( sLabel ); mpDoc->BegUndo( sLabel );
mpDoc->AddUndo( mpDoc->GetSdrUndoFactory().CreateUndoAttrObject( *pObj, sal_False, sal_True ) ); mpDoc->AddUndo( mpDoc->GetSdrUndoFactory().CreateUndoAttrObject( *pObj, sal_False, sal_True ) );
} }
......
...@@ -226,8 +226,7 @@ void FuHangulHanjaConversion::StartChineseConversion() ...@@ -226,8 +226,7 @@ void FuHangulHanjaConversion::StartChineseConversion()
if(xMCF.is()) if(xMCF.is())
{ {
Reference< ui::dialogs::XExecutableDialog > xDialog( Reference< ui::dialogs::XExecutableDialog > xDialog(
xMCF->createInstanceWithContext( xMCF->createInstanceWithContext("com.sun.star.linguistic2.ChineseTranslationDialog"
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.linguistic2.ChineseTranslationDialog"))
, xContext), UNO_QUERY); , xContext), UNO_QUERY);
Reference< lang::XInitialization > xInit( xDialog, UNO_QUERY ); Reference< lang::XInitialization > xInit( xDialog, UNO_QUERY );
if( xInit.is() ) if( xInit.is() )
...@@ -237,7 +236,7 @@ void FuHangulHanjaConversion::StartChineseConversion() ...@@ -237,7 +236,7 @@ void FuHangulHanjaConversion::StartChineseConversion()
Sequence<Any> aSeq(1); Sequence<Any> aSeq(1);
Any* pArray = aSeq.getArray(); Any* pArray = aSeq.getArray();
PropertyValue aParam; PropertyValue aParam;
aParam.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ParentWindow")); aParam.Name = "ParentWindow";
aParam.Value <<= makeAny(xDialogParentWindow); aParam.Value <<= makeAny(xDialogParentWindow);
pArray[0] <<= makeAny(aParam); pArray[0] <<= makeAny(aParam);
xInit->initialize( aSeq ); xInit->initialize( aSeq );
......
...@@ -380,15 +380,15 @@ void FuInsertOLE::DoExecute( SfxRequest& rReq ) ...@@ -380,15 +380,15 @@ void FuInsertOLE::DoExecute( SfxRequest& rReq )
{ {
if (nSlotId == SID_INSERT_DIAGRAM) if (nSlotId == SID_INSERT_DIAGRAM)
{ {
pOleObj->SetProgName( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "StarChart" ) ) ); pOleObj->SetProgName( rtl::OUString( "StarChart" ));
} }
else if (nSlotId == SID_ATTR_TABLE) else if (nSlotId == SID_ATTR_TABLE)
{ {
pOleObj->SetProgName( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "StarCalc" ) ) ); pOleObj->SetProgName( rtl::OUString( "StarCalc" ) );
} }
else if (nSlotId == SID_INSERT_MATH) else if (nSlotId == SID_INSERT_MATH)
{ {
pOleObj->SetProgName( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "StarMath" ) ) ); pOleObj->SetProgName( rtl::OUString( "StarMath" ) );
} }
pOleObj->SetLogicRect(aRect); pOleObj->SetLogicRect(aRect);
...@@ -503,7 +503,7 @@ void FuInsertOLE::DoExecute( SfxRequest& rReq ) ...@@ -503,7 +503,7 @@ void FuInsertOLE::DoExecute( SfxRequest& rReq )
uno::Reference < beans::XPropertySet > xSet( xSup->getComponent(), uno::UNO_QUERY ); uno::Reference < beans::XPropertySet > xSet( xSup->getComponent(), uno::UNO_QUERY );
if ( xSet.is() ) if ( xSet.is() )
{ {
xSet->setPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PluginURL")), xSet->setPropertyValue("PluginURL",
uno::makeAny( ::rtl::OUString( aURL.GetMainURL( INetURLObject::NO_DECODE ) ) ) ); uno::makeAny( ::rtl::OUString( aURL.GetMainURL( INetURLObject::NO_DECODE ) ) ) );
} }
} }
......
...@@ -120,21 +120,21 @@ void FuInsertFile::DoExecute( SfxRequest& rReq ) ...@@ -120,21 +120,21 @@ void FuInsertFile::DoExecute( SfxRequest& rReq )
SFXWB_INSERT ); SFXWB_INSERT );
Reference< XFilePicker > xFilePicker( aFileDialog.GetFilePicker(), UNO_QUERY ); Reference< XFilePicker > xFilePicker( aFileDialog.GetFilePicker(), UNO_QUERY );
Reference< XFilterManager > xFilterManager( xFilePicker, UNO_QUERY ); Reference< XFilterManager > xFilterManager( xFilePicker, UNO_QUERY );
String aOwnCont; rtl::OUString aOwnCont;
String aOtherCont; rtl::OUString aOtherCont;
const SfxFilter* pFilter = NULL; const SfxFilter* pFilter = NULL;
aFileDialog.SetTitle( String( SdResId(STR_DLG_INSERT_PAGES_FROM_FILE ) ) ); aFileDialog.SetTitle( String( SdResId(STR_DLG_INSERT_PAGES_FROM_FILE ) ) );
if( mpDoc->GetDocumentType() == DOCUMENT_TYPE_IMPRESS ) if( mpDoc->GetDocumentType() == DOCUMENT_TYPE_IMPRESS )
{ {
aOwnCont = String( RTL_CONSTASCII_USTRINGPARAM( "simpress" ) ); aOwnCont = "simpress";
aOtherCont = String( RTL_CONSTASCII_USTRINGPARAM( "sdraw" ) ) ; aOtherCont = "sdraw";
} }
else else
{ {
aOtherCont = String( RTL_CONSTASCII_USTRINGPARAM( "simpress" ) ); aOtherCont = "simpress";
aOwnCont = String( RTL_CONSTASCII_USTRINGPARAM( "sdraw" ) ) ; aOwnCont = "sdraw" ;
} }
SfxFilterMatcher aMatch( aOwnCont ); SfxFilterMatcher aMatch( aOwnCont );
...@@ -752,13 +752,13 @@ void FuInsertFile::GetSupportedFilterVector( ::std::vector< OUString >& rFilterV ...@@ -752,13 +752,13 @@ void FuInsertFile::GetSupportedFilterVector( ::std::vector< OUString >& rFilterV
rFilterVector.clear(); rFilterVector.clear();
if( ( pSearchFilter = rMatcher.GetFilter4Mime( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "text/plain" ) ) ) ) != NULL ) if( ( pSearchFilter = rMatcher.GetFilter4Mime( "text/plain" )) != NULL )
rFilterVector.push_back( pSearchFilter->GetMimeType() ); rFilterVector.push_back( pSearchFilter->GetMimeType() );
if( ( pSearchFilter = rMatcher.GetFilter4Mime( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "application/rtf" ) ) ) ) != NULL ) if( ( pSearchFilter = rMatcher.GetFilter4Mime( "application/rtf" ) ) != NULL )
rFilterVector.push_back( pSearchFilter->GetMimeType() ); rFilterVector.push_back( pSearchFilter->GetMimeType() );
if( ( pSearchFilter = rMatcher.GetFilter4Mime( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "text/html" ) ) ) ) != NULL ) if( ( pSearchFilter = rMatcher.GetFilter4Mime( "text/html" ) ) != NULL )
rFilterVector.push_back( pSearchFilter->GetMimeType() ); rFilterVector.push_back( pSearchFilter->GetMimeType() );
} }
......
...@@ -312,7 +312,7 @@ const SfxItemSet* FuPage::ExecuteDialog( Window* pParent ) ...@@ -312,7 +312,7 @@ const SfxItemSet* FuPage::ExecuteDialog( Window* pParent )
// MigrateItemSet makes sure the XFillBitmapItem will have a unique name // MigrateItemSet makes sure the XFillBitmapItem will have a unique name
SfxItemSet aMigrateSet( mpDoc->GetPool(), XATTR_FILLBITMAP, XATTR_FILLBITMAP ); SfxItemSet aMigrateSet( mpDoc->GetPool(), XATTR_FILLBITMAP, XATTR_FILLBITMAP );
aMigrateSet.Put( XFillBitmapItem( String(RTL_CONSTASCII_USTRINGPARAM("background")), XOBitmap(aGraphic) ) ); aMigrateSet.Put( XFillBitmapItem( rtl::OUString("background") , XOBitmap(aGraphic) ) );
mpDoc->MigrateItemSet( &aMigrateSet, pTempSet.get(), NULL ); mpDoc->MigrateItemSet( &aMigrateSet, pTempSet.get(), NULL );
pTempSet->Put( XFillBmpStretchItem( sal_True )); pTempSet->Put( XFillBmpStretchItem( sal_True ));
......
...@@ -161,7 +161,7 @@ void FuTemplate::DoExecute( SfxRequest& rReq ) ...@@ -161,7 +161,7 @@ void FuTemplate::DoExecute( SfxRequest& rReq )
Reference< XPropertySet > xInfo( xStyles->getByName( pNameItem->GetValue() ), UNO_QUERY_THROW ); Reference< XPropertySet > xInfo( xStyles->getByName( pNameItem->GetValue() ), UNO_QUERY_THROW );
OUString aUIName; OUString aUIName;
xInfo->getPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("DisplayName")) ) >>= aUIName; xInfo->getPropertyValue( "DisplayName" ) >>= aUIName;
if ( !aUIName.isEmpty() ) if ( !aUIName.isEmpty() )
rReq.AppendItem( SfxStringItem( nSId, aUIName ) ); rReq.AppendItem( SfxStringItem( nSId, aUIName ) );
} }
......
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