Kaydet (Commit) c82d9325 authored tarafından Noel Grandin's avatar Noel Grandin

convert remnants of String to OUString in SFX2 module

Change-Id: Ie07684f2b8b902b0ce0844eabc8174482e02d8db
üst 4805c2f4
...@@ -1946,7 +1946,7 @@ sal_Bool SfxHelpIndexWindow_Impl::HasFocusOnEdit() const ...@@ -1946,7 +1946,7 @@ sal_Bool SfxHelpIndexWindow_Impl::HasFocusOnEdit() const
OUString SfxHelpIndexWindow_Impl::GetSearchText() const OUString SfxHelpIndexWindow_Impl::GetSearchText() const
{ {
String sRet; OUString sRet;
if ( aTabCtrl.GetCurPageId() == HELP_INDEX_PAGE_SEARCH && pSPage ) if ( aTabCtrl.GetCurPageId() == HELP_INDEX_PAGE_SEARCH && pSPage )
sRet = pSPage->GetSearchText(); sRet = pSPage->GetSearchText();
return sRet; return sRet;
...@@ -2182,7 +2182,7 @@ void SfxHelpTextWindow_Impl::InitOnStartupBox( bool bOnlyText ) ...@@ -2182,7 +2182,7 @@ void SfxHelpTextWindow_Impl::InitOnStartupBox( bool bOnlyText )
else else
{ {
// detect module name // detect module name
String sModuleName; OUString sModuleName;
if ( xConfiguration.is() ) if ( xConfiguration.is() )
{ {
...@@ -2197,14 +2197,14 @@ void SfxHelpTextWindow_Impl::InitOnStartupBox( bool bOnlyText ) ...@@ -2197,14 +2197,14 @@ void SfxHelpTextWindow_Impl::InitOnStartupBox( bool bOnlyText )
{ {
SAL_WARN( "sfx.appl", "SfxHelpTextWindow_Impl::InitOnStartupBox(): unexpected exception" ); SAL_WARN( "sfx.appl", "SfxHelpTextWindow_Impl::InitOnStartupBox(): unexpected exception" );
} }
sModuleName = String( sTemp ); sModuleName = sTemp;
} }
if ( sModuleName.Len() > 0 ) if ( !sModuleName.isEmpty() )
{ {
// set module name in checkbox text // set module name in checkbox text
String sText( aOnStartupText ); OUString sText( aOnStartupText );
sText.SearchAndReplace( OUString("%MODULENAME"), sModuleName ); sText = sText.replaceFirst( "%MODULENAME", sModuleName );
aOnStartupCB.SetText( sText ); aOnStartupCB.SetText( sText );
// and show it // and show it
aOnStartupCB.Show(); aOnStartupCB.Show();
...@@ -2213,7 +2213,7 @@ void SfxHelpTextWindow_Impl::InitOnStartupBox( bool bOnlyText ) ...@@ -2213,7 +2213,7 @@ void SfxHelpTextWindow_Impl::InitOnStartupBox( bool bOnlyText )
aOnStartupCB.SaveValue(); aOnStartupCB.SaveValue();
// calculate and set optimal width of the onstartup checkbox // calculate and set optimal width of the onstartup checkbox
String sCBText( "XXX" ); OUString sCBText( "XXX" );
sCBText += aOnStartupCB.GetText(); sCBText += aOnStartupCB.GetText();
long nTextWidth = aOnStartupCB.GetTextWidth( sCBText ); long nTextWidth = aOnStartupCB.GetTextWidth( sCBText );
Size aSize = aOnStartupCB.GetSizePixel(); Size aSize = aOnStartupCB.GetSizePixel();
...@@ -2333,7 +2333,7 @@ IMPL_LINK_NOARG(SfxHelpTextWindow_Impl, SelectHdl) ...@@ -2333,7 +2333,7 @@ IMPL_LINK_NOARG(SfxHelpTextWindow_Impl, SelectHdl)
xSrchDesc->setPropertyValue( "SearchWords", xSrchDesc->setPropertyValue( "SearchWords",
makeAny( sal_Bool( sal_True ) ) ); makeAny( sal_Bool( sal_True ) ) );
String sSearchString = sfx2::PrepareSearchString( aSearchText, GetBreakIterator(), false ); OUString sSearchString = sfx2::PrepareSearchString( aSearchText, GetBreakIterator(), false );
xSrchDesc->setSearchString( sSearchString ); xSrchDesc->setSearchString( sSearchString );
Reference< XIndexAccess > xSelection = xSearchable->findAll( xSrchDesc ); Reference< XIndexAccess > xSelection = xSearchable->findAll( xSrchDesc );
...@@ -2375,7 +2375,7 @@ IMPL_LINK( SfxHelpTextWindow_Impl, FindHdl, sfx2::SearchDialog*, pDlg ) ...@@ -2375,7 +2375,7 @@ IMPL_LINK( SfxHelpTextWindow_Impl, FindHdl, sfx2::SearchDialog*, pDlg )
if ( bWrapAround ) if ( bWrapAround )
pDlg = pSrchDlg; pDlg = pSrchDlg;
DBG_ASSERT( pDlg, "invalid search dialog" ); DBG_ASSERT( pDlg, "invalid search dialog" );
String sSearchText = pDlg->GetSearchText(); OUString sSearchText = pDlg->GetSearchText();
try try
{ {
// select the words, which are equal to the search text of the search page // select the words, which are equal to the search text of the search page
...@@ -2778,8 +2778,8 @@ void SfxHelpTextWindow_Impl::DoSearch() ...@@ -2778,8 +2778,8 @@ void SfxHelpTextWindow_Impl::DoSearch()
Reference< XTextRange > xCursor = getCursor(); Reference< XTextRange > xCursor = getCursor();
if ( xCursor.is() ) if ( xCursor.is() )
{ {
String sText = xCursor->getString(); OUString sText = xCursor->getString();
if ( sText.Len() > 0 ) if ( !sText.isEmpty() )
pSrchDlg->SetSearchText( sText ); pSrchDlg->SetSearchText( sText );
} }
pSrchDlg->Show(); pSrchDlg->Show();
...@@ -2921,20 +2921,20 @@ void SfxHelpWindow_Impl::LoadConfig() ...@@ -2921,20 +2921,20 @@ void SfxHelpWindow_Impl::LoadConfig()
if ( aViewOpt.Exists() ) if ( aViewOpt.Exists() )
{ {
bIndex = aViewOpt.IsVisible(); bIndex = aViewOpt.IsVisible();
String aUserData; OUString aUserData;
Any aUserItem = aViewOpt.GetUserItem( USERITEM_NAME ); Any aUserItem = aViewOpt.GetUserItem( USERITEM_NAME );
OUString aTemp; OUString aTemp;
if ( aUserItem >>= aTemp ) if ( aUserItem >>= aTemp )
{ {
aUserData = String( aTemp ); aUserData = aTemp;
DBG_ASSERT( comphelper::string::getTokenCount(aUserData, ';') == 6, "invalid user data" ); DBG_ASSERT( comphelper::string::getTokenCount(aUserData, ';') == 6, "invalid user data" );
sal_Int32 nIdx = 0; sal_Int32 nIdx = 0;
nIndexSize = aUserData.GetToken( 0, ';', nIdx ).ToInt32(); nIndexSize = aUserData.getToken( 0, ';', nIdx ).toInt32();
nTextSize = aUserData.GetToken( 0, ';', nIdx ).ToInt32(); nTextSize = aUserData.getToken( 0, ';', nIdx ).toInt32();
sal_Int32 nWidth = aUserData.GetToken( 0, ';', nIdx ).ToInt32(); sal_Int32 nWidth = aUserData.getToken( 0, ';', nIdx ).toInt32();
nHeight = aUserData.GetToken( 0, ';', nIdx ).ToInt32(); nHeight = aUserData.getToken( 0, ';', nIdx ).toInt32();
aWinPos.X() = aUserData.GetToken( 0, ';', nIdx ).ToInt32(); aWinPos.X() = aUserData.getToken( 0, ';', nIdx ).toInt32();
aWinPos.Y() = aUserData.GetToken( 0, ';', nIdx ).ToInt32(); aWinPos.Y() = aUserData.getToken( 0, ';', nIdx ).toInt32();
if ( bIndex ) if ( bIndex )
{ {
nExpandWidth = nWidth; nExpandWidth = nWidth;
...@@ -2966,19 +2966,19 @@ void SfxHelpWindow_Impl::SaveConfig() ...@@ -2966,19 +2966,19 @@ void SfxHelpWindow_Impl::SaveConfig()
} }
aViewOpt.SetVisible( bIndex ); aViewOpt.SetVisible( bIndex );
String aUserData = OUString::number( nIndexSize ); OUString aUserData = OUString::number( nIndexSize );
aUserData += ';'; aUserData += ";";
aUserData += OUString::number( nTextSize ); aUserData += OUString::number( nTextSize );
aUserData += ';'; aUserData += ";";
aUserData += OUString::number( nW ); aUserData += OUString::number( nW );
aUserData += ';'; aUserData += ";";
aUserData += OUString::number( nH ); aUserData += OUString::number( nH );
Window* pScreenWin = VCLUnoHelper::GetWindow( xWindow ); Window* pScreenWin = VCLUnoHelper::GetWindow( xWindow );
aWinPos = pScreenWin->GetWindowExtentsRelative( NULL ).TopLeft(); aWinPos = pScreenWin->GetWindowExtentsRelative( NULL ).TopLeft();
aUserData += ';'; aUserData += ";";
aUserData += OUString::number( aWinPos.X() ); aUserData += OUString::number( aWinPos.X() );
aUserData += ';'; aUserData += ";";
aUserData += OUString::number( aWinPos.Y() ); aUserData += OUString::number( aWinPos.Y() );
aViewOpt.SetUserItem( USERITEM_NAME, makeAny( OUString( aUserData ) ) ); aViewOpt.SetUserItem( USERITEM_NAME, makeAny( OUString( aUserData ) ) );
...@@ -3013,30 +3013,30 @@ IMPL_LINK( SfxHelpWindow_Impl, SelectHdl, ToolBox* , pToolBox ) ...@@ -3013,30 +3013,30 @@ IMPL_LINK( SfxHelpWindow_Impl, SelectHdl, ToolBox* , pToolBox )
IMPL_LINK_NOARG(SfxHelpWindow_Impl, OpenHdl) IMPL_LINK_NOARG(SfxHelpWindow_Impl, OpenHdl)
{ {
pIndexWin->SelectExecutableEntry(); pIndexWin->SelectExecutableEntry();
String aEntry = pIndexWin->GetSelectEntry(); OUString aEntry = pIndexWin->GetSelectEntry();
if ( aEntry.Len() < 1 ) if ( aEntry.isEmpty() )
return 0; return 0;
OUString sHelpURL; OUString sHelpURL;
bool bComplete = OUString(aEntry).toAsciiLowerCase().match(OUString("vnd.sun.star.help"),0); bool bComplete = OUString(aEntry).toAsciiLowerCase().match("vnd.sun.star.help");
if (bComplete) if (bComplete)
sHelpURL = OUString(aEntry); sHelpURL = OUString(aEntry);
else else
{ {
String aId; OUString aId;
String aAnchor = OUString('#'); OUString aAnchor = OUString('#');
if ( comphelper::string::getTokenCount(aEntry, '#') == 2 ) if ( comphelper::string::getTokenCount(aEntry, '#') == 2 )
{ {
aId = aEntry.GetToken( 0, '#' ); aId = aEntry.getToken( 0, '#' );
aAnchor += aEntry.GetToken( 1, '#' ); aAnchor += aEntry.getToken( 1, '#' );
} }
else else
aId = aEntry; aId = aEntry;
aEntry = '/'; aEntry = "/";
aEntry += aId; aEntry += aId;
sHelpURL = SfxHelpWindow_Impl::buildHelpURL(pIndexWin->GetFactory(), sHelpURL = SfxHelpWindow_Impl::buildHelpURL(pIndexWin->GetFactory(),
...@@ -3123,8 +3123,8 @@ void SfxHelpWindow_Impl::openDone(const OUString& sURL , ...@@ -3123,8 +3123,8 @@ void SfxHelpWindow_Impl::openDone(const OUString& sURL ,
} }
// When the SearchPage opens the help doc, then select all words, which are equal to its text // When the SearchPage opens the help doc, then select all words, which are equal to its text
String sSearchText = comphelper::string::strip(pIndexWin->GetSearchText(), ' '); OUString sSearchText = comphelper::string::strip(pIndexWin->GetSearchText(), ' ');
if ( sSearchText.Len() > 0 ) if ( !sSearchText.isEmpty() )
pTextWin->SelectSearchText( sSearchText, pIndexWin->IsFullWordSearch() ); pTextWin->SelectSearchText( sSearchText, pIndexWin->IsFullWordSearch() );
// no page style header -> this prevents a print output of the URL // no page style header -> this prevents a print output of the URL
...@@ -3294,7 +3294,7 @@ void SfxHelpWindow_Impl::DoAction( sal_uInt16 nActionId ) ...@@ -3294,7 +3294,7 @@ void SfxHelpWindow_Impl::DoAction( sal_uInt16 nActionId )
else else
aURL.Complete = ".uno:SearchDialog"; aURL.Complete = ".uno:SearchDialog";
PARSE_URL( aURL ); PARSE_URL( aURL );
Reference < XDispatch > xDisp = xProv->queryDispatch( aURL, String(), 0 ); Reference < XDispatch > xDisp = xProv->queryDispatch( aURL, OUString(), 0 );
if ( xDisp.is() ) if ( xDisp.is() )
xDisp->dispatch( aURL, Sequence < PropertyValue >() ); xDisp->dispatch( aURL, Sequence < PropertyValue >() );
} }
...@@ -3303,8 +3303,8 @@ void SfxHelpWindow_Impl::DoAction( sal_uInt16 nActionId ) ...@@ -3303,8 +3303,8 @@ void SfxHelpWindow_Impl::DoAction( sal_uInt16 nActionId )
case TBI_BOOKMARKS : case TBI_BOOKMARKS :
{ {
String aURL = pHelpInterceptor->GetCurrentURL(); OUString aURL = pHelpInterceptor->GetCurrentURL();
if ( aURL.Len() > 0 ) if ( !aURL.isEmpty() )
{ {
try try
{ {
...@@ -3316,7 +3316,7 @@ void SfxHelpWindow_Impl::DoAction( sal_uInt16 nActionId ) ...@@ -3316,7 +3316,7 @@ void SfxHelpWindow_Impl::DoAction( sal_uInt16 nActionId )
OUString aValue; OUString aValue;
if ( aAny >>= aValue ) if ( aAny >>= aValue )
{ {
String aTitle( aValue ); OUString aTitle( aValue );
SfxAddHelpBookmarkDialog_Impl aDlg( this, sal_False ); SfxAddHelpBookmarkDialog_Impl aDlg( this, sal_False );
aDlg.SetTitle( aTitle ); aDlg.SetTitle( aTitle );
if ( aDlg.Execute() == RET_OK ) if ( aDlg.Execute() == RET_OK )
......
...@@ -118,7 +118,7 @@ static const char DOCUMENT_SIGNATURE_MENU_CMD[] = "Signature"; ...@@ -118,7 +118,7 @@ static const char DOCUMENT_SIGNATURE_MENU_CMD[] = "Signature";
//------------------------------------------------------------------------ //------------------------------------------------------------------------
namespace { namespace {
String CreateSizeText( sal_Int64 nSize ) OUString CreateSizeText( sal_Int64 nSize )
{ {
OUString aUnitStr(" "); OUString aUnitStr(" ");
aUnitStr += SfxResId(STR_BYTES).toString(); aUnitStr += SfxResId(STR_BYTES).toString();
...@@ -173,7 +173,7 @@ String CreateSizeText( sal_Int64 nSize ) ...@@ -173,7 +173,7 @@ String CreateSizeText( sal_Int64 nSize )
return aSizeStr; return aSizeStr;
} }
String ConvertDateTime_Impl( const OUString& rName, OUString ConvertDateTime_Impl( const OUString& rName,
const util::DateTime& uDT, const LocaleDataWrapper& rWrapper ) const util::DateTime& uDT, const LocaleDataWrapper& rWrapper )
{ {
Date aD(uDT.Day, uDT.Month, uDT.Year); Date aD(uDT.Day, uDT.Month, uDT.Year);
...@@ -2379,8 +2379,8 @@ Sequence< document::CmisProperty > CmisPropertiesWindow::GetCmisProperties() con ...@@ -2379,8 +2379,8 @@ Sequence< document::CmisProperty > CmisPropertiesWindow::GetCmisProperties() con
aPropertiesSeq[i].OpenChoice = pLine->m_bOpenChoice; aPropertiesSeq[i].OpenChoice = pLine->m_bOpenChoice;
aPropertiesSeq[i].MultiValued = pLine->m_bMultiValued; aPropertiesSeq[i].MultiValued = pLine->m_bMultiValued;
String sPropertyName = pLine->m_aName->GetText(); OUString sPropertyName = pLine->m_aName->GetText();
if ( sPropertyName.Len() > 0 ) if ( !sPropertyName.isEmpty() )
{ {
aPropertiesSeq[i].Name = sPropertyName; aPropertiesSeq[i].Name = sPropertyName;
OUString sType = pLine->m_aType->GetText( ); OUString sType = pLine->m_aType->GetText( );
......
...@@ -1902,6 +1902,41 @@ void FileDialogHelper_Impl::addGraphicFilter() ...@@ -1902,6 +1902,41 @@ void FileDialogHelper_Impl::addGraphicFilter()
#define GRF_CONFIG_STR " " #define GRF_CONFIG_STR " "
#define STD_CONFIG_STR "1 " #define STD_CONFIG_STR "1 "
static void SetToken( OUString rOrigStr, sal_Int32 nToken, sal_Unicode cTok, const OUString& rStr)
{
const sal_Unicode* pStr = rOrigStr.getStr();
sal_Int32 nLen = rOrigStr.getLength();
sal_Int32 nTok = 0;
sal_Int32 nFirstChar = 0;
sal_Int32 i = nFirstChar;
// Determine token position and length
pStr += i;
while ( i < nLen )
{
// Increase token count if match
if ( *pStr == cTok )
{
++nTok;
if ( nTok == nToken )
nFirstChar = i+1;
else
{
if ( nTok > nToken )
break;
}
}
++pStr,
++i;
}
if ( nTok >= nToken )
rOrigStr = rOrigStr.replaceAt( nFirstChar, i-nFirstChar, rStr );
}
void FileDialogHelper_Impl::saveConfig() void FileDialogHelper_Impl::saveConfig()
{ {
uno::Reference < XFilePickerControlAccess > xDlg( mxFileDlg, UNO_QUERY ); uno::Reference < XFilePickerControlAccess > xDlg( mxFileDlg, UNO_QUERY );
...@@ -1913,25 +1948,25 @@ void FileDialogHelper_Impl::saveConfig() ...@@ -1913,25 +1948,25 @@ void FileDialogHelper_Impl::saveConfig()
if ( mbHasPreview ) if ( mbHasPreview )
{ {
SvtViewOptions aDlgOpt( E_DIALOG, IMPGRF_CONFIGNAME ); SvtViewOptions aDlgOpt( E_DIALOG, IMPGRF_CONFIGNAME );
String aUserData(GRF_CONFIG_STR); OUString aUserData(GRF_CONFIG_STR);
try try
{ {
aValue = xDlg->getValue( ExtendedFilePickerElementIds::CHECKBOX_PREVIEW, 0 ); aValue = xDlg->getValue( ExtendedFilePickerElementIds::CHECKBOX_PREVIEW, 0 );
sal_Bool bValue = sal_False; sal_Bool bValue = sal_False;
aValue >>= bValue; aValue >>= bValue;
aUserData.SetToken( 1, ' ', OUString::number( (sal_Int32) bValue ) ); SetToken( aUserData, 1, ' ', OUString::number( (sal_Int32) bValue ) );
INetURLObject aObj( getPath() ); INetURLObject aObj( getPath() );
if ( aObj.GetProtocol() == INET_PROT_FILE ) if ( aObj.GetProtocol() == INET_PROT_FILE )
aUserData.SetToken( 2, ' ', aObj.GetMainURL( INetURLObject::NO_DECODE ) ); SetToken( aUserData, 2, ' ', aObj.GetMainURL( INetURLObject::NO_DECODE ) );
OUString aFilter = getFilter(); OUString aFilter = getFilter();
aFilter = EncodeSpaces_Impl( aFilter ); aFilter = EncodeSpaces_Impl( aFilter );
aUserData.SetToken( 3, ' ', aFilter ); SetToken( aUserData, 3, ' ', aFilter );
aDlgOpt.SetUserItem( USERITEM_NAME, makeAny( OUString( aUserData ) ) ); aDlgOpt.SetUserItem( USERITEM_NAME, makeAny( aUserData ) );
} }
catch( const IllegalArgumentException& ){} catch( const IllegalArgumentException& ){}
} }
...@@ -1939,7 +1974,7 @@ void FileDialogHelper_Impl::saveConfig() ...@@ -1939,7 +1974,7 @@ void FileDialogHelper_Impl::saveConfig()
{ {
sal_Bool bWriteConfig = sal_False; sal_Bool bWriteConfig = sal_False;
SvtViewOptions aDlgOpt( E_DIALOG, IODLG_CONFIGNAME ); SvtViewOptions aDlgOpt( E_DIALOG, IODLG_CONFIGNAME );
String aUserData(STD_CONFIG_STR); OUString aUserData(STD_CONFIG_STR);
if ( aDlgOpt.Exists() ) if ( aDlgOpt.Exists() )
{ {
...@@ -1956,7 +1991,7 @@ void FileDialogHelper_Impl::saveConfig() ...@@ -1956,7 +1991,7 @@ void FileDialogHelper_Impl::saveConfig()
aValue = xDlg->getValue( ExtendedFilePickerElementIds::CHECKBOX_AUTOEXTENSION, 0 ); aValue = xDlg->getValue( ExtendedFilePickerElementIds::CHECKBOX_AUTOEXTENSION, 0 );
sal_Bool bAutoExt = sal_True; sal_Bool bAutoExt = sal_True;
aValue >>= bAutoExt; aValue >>= bAutoExt;
aUserData.SetToken( 0, ' ', OUString::number( (sal_Int32) bAutoExt ) ); SetToken( aUserData, 0, ' ', OUString::number( (sal_Int32) bAutoExt ) );
bWriteConfig = sal_True; bWriteConfig = sal_True;
} }
catch( const IllegalArgumentException& ){} catch( const IllegalArgumentException& ){}
...@@ -1968,7 +2003,7 @@ void FileDialogHelper_Impl::saveConfig() ...@@ -1968,7 +2003,7 @@ void FileDialogHelper_Impl::saveConfig()
if ( !aPath.isEmpty() && if ( !aPath.isEmpty() &&
utl::LocalFileHelper::IsLocalFile( aPath ) ) utl::LocalFileHelper::IsLocalFile( aPath ) )
{ {
aUserData.SetToken( 1, ' ', aPath ); SetToken( aUserData, 1, ' ', aPath );
bWriteConfig = sal_True; bWriteConfig = sal_True;
} }
} }
...@@ -1982,7 +2017,7 @@ void FileDialogHelper_Impl::saveConfig() ...@@ -1982,7 +2017,7 @@ void FileDialogHelper_Impl::saveConfig()
aValue >>= bSelection; aValue >>= bSelection;
if ( comphelper::string::getTokenCount(aUserData, ' ') < 3 ) if ( comphelper::string::getTokenCount(aUserData, ' ') < 3 )
aUserData += " "; aUserData += " ";
aUserData.SetToken( 2, ' ', OUString::number( (sal_Int32) bSelection ) ); SetToken( aUserData, 2, ' ', OUString::number( (sal_Int32) bSelection ) );
bWriteConfig = sal_True; bWriteConfig = sal_True;
} }
catch( const IllegalArgumentException& ){} catch( const IllegalArgumentException& ){}
......
...@@ -903,7 +903,7 @@ namespace sfx2 ...@@ -903,7 +903,7 @@ namespace sfx2
const OUString& sFilterName = m_lFilters[nIndex]; const OUString& sFilterName = m_lFilters[nIndex];
if (sFilterName.isEmpty()) if (sFilterName.isEmpty())
return 0; return 0;
return SfxFilter::GetFilterByName(String(sFilterName)); return SfxFilter::GetFilterByName(sFilterName);
} }
//-------------------------------------------------------------------- //--------------------------------------------------------------------
......
...@@ -1048,11 +1048,11 @@ SfxCommonTemplateDialog_Impl::~SfxCommonTemplateDialog_Impl() ...@@ -1048,11 +1048,11 @@ SfxCommonTemplateDialog_Impl::~SfxCommonTemplateDialog_Impl()
{ {
OUString aEmpty; OUString aEmpty;
Execute_Impl(SID_STYLE_END_PREVIEW, Execute_Impl(SID_STYLE_END_PREVIEW,
String(), String(), OUString(), OUString(),
0, 0, 0, 0 ); 0, 0, 0, 0 );
#if defined STYLESPREVIEW #if defined STYLESPREVIEW
Execute_Impl(SID_STYLE_END_PREVIEW, Execute_Impl(SID_STYLE_END_PREVIEW,
String(), String(), OUString(), OUString(),
0, 0, 0, 0 ); 0, 0, 0, 0 );
#endif #endif
if ( bIsWater ) if ( bIsWater )
......
...@@ -293,7 +293,7 @@ SfxVersionDialog::SfxVersionDialog ( SfxViewFrame* pVwFrame, sal_Bool bIsSaveVer ...@@ -293,7 +293,7 @@ SfxVersionDialog::SfxVersionDialog ( SfxViewFrame* pVwFrame, sal_Bool bIsSaveVer
m_pVersionBox->setColSizes(); m_pVersionBox->setColSizes();
} }
String ConvertWhiteSpaces_Impl( const OUString& rText ) OUString ConvertWhiteSpaces_Impl( const OUString& rText )
{ {
// converted linebreaks and tabs to blanks; it's necessary for the display // converted linebreaks and tabs to blanks; it's necessary for the display
OUStringBuffer sConverted; OUStringBuffer sConverted;
......
...@@ -3135,7 +3135,7 @@ sal_uInt16 SfxMedium::AddVersion_Impl( util::RevisionTag& rRevision ) ...@@ -3135,7 +3135,7 @@ sal_uInt16 SfxMedium::AddVersion_Impl( util::RevisionTag& rRevision )
sal_Int32 nLength = pImp->aVersions.getLength(); sal_Int32 nLength = pImp->aVersions.getLength();
for ( sal_Int32 m=0; m<nLength; m++ ) for ( sal_Int32 m=0; m<nLength; m++ )
{ {
sal_uInt32 nVer = static_cast<sal_uInt32>(String( pImp->aVersions[m].Identifier ).Copy(7).ToInt32()); sal_uInt32 nVer = static_cast<sal_uInt32>( pImp->aVersions[m].Identifier.copy(7).toInt32());
size_t n; size_t n;
for ( n=0; n<aLongs.size(); ++n ) for ( n=0; n<aLongs.size(); ++n )
if ( nVer<aLongs[n] ) if ( nVer<aLongs[n] )
......
...@@ -87,7 +87,7 @@ void SfxFrameDescriptor::SetActualURL( const OUString& rURL ) ...@@ -87,7 +87,7 @@ void SfxFrameDescriptor::SetActualURL( const OUString& rURL )
void SfxFrameDescriptor::SetActualURL( const INetURLObject& rURL ) void SfxFrameDescriptor::SetActualURL( const INetURLObject& rURL )
{ {
SetActualURL(String(rURL.GetMainURL( INetURLObject::DECODE_TO_IURI ))); SetActualURL(rURL.GetMainURL( INetURLObject::DECODE_TO_IURI ));
} }
void SfxFrameDescriptor::SetEditable( sal_Bool bSet ) void SfxFrameDescriptor::SetEditable( sal_Bool bSet )
......
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