summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJean-Noël Rouvignac <jn.rouvignac@gmail.com>2013-02-20 00:21:37 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-02-24 12:59:02 +0000
commit63b0ce97ba0f71c28a7880c741100b0240332e74 (patch)
tree9589db9bb4fd6e27acd750a549f7df71a169b928 /sfx2
parent3648c3226d369ce7a547e48f824b876180559476 (diff)
fdo#38838 searched, replaced and removed String::CreateFromInt32().
I ran the following code replace: s/(Uni|Xub)?String\s*::\s*CreateFromInt32/OUString::number/ And finally removed String::CreateFromInt32(). Change-Id: I53b26a59c68511ae09f0ee82cfade210d0de3fa5 Reviewed-on: https://gerrit.libreoffice.org/2279 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/childwin.cxx4
-rw-r--r--sfx2/source/appl/newhelp.cxx16
-rw-r--r--sfx2/source/bastyp/frmhtmlw.cxx10
-rw-r--r--sfx2/source/dialog/basedlgs.cxx10
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx14
-rw-r--r--sfx2/source/dialog/dockwin.cxx16
-rw-r--r--sfx2/source/dialog/filedlghelper.cxx6
-rw-r--r--sfx2/source/dialog/mgetempl.cxx4
-rw-r--r--sfx2/source/dialog/passwd.cxx2
-rw-r--r--sfx2/source/dialog/splitwin.cxx4
-rw-r--r--sfx2/source/dialog/srchdlg.cxx8
-rw-r--r--sfx2/source/dialog/tabdlg.cxx10
-rw-r--r--sfx2/source/view/viewfrm2.cxx2
13 files changed, 53 insertions, 53 deletions
diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx
index e1e24be242c0..6d3869ba729c 100644
--- a/sfx2/source/appl/childwin.cxx
+++ b/sfx2/source/appl/childwin.cxx
@@ -288,7 +288,7 @@ void SfxChildWindow::SaveStatus(const SfxChildWinInfo& rInfo)
aWinData.append(rInfo.aExtraString);
}
- SvtViewOptions aWinOpt( E_WINDOW, String::CreateFromInt32( nID ) );
+ SvtViewOptions aWinOpt( E_WINDOW, OUString::number( nID ) );
aWinOpt.SetWindowState(rtl::OStringToOUString(rInfo.aWinState, RTL_TEXTENCODING_UTF8));
::com::sun::star::uno::Sequence < ::com::sun::star::beans::NamedValue > aSeq(1);
@@ -350,7 +350,7 @@ sal_uInt16 SfxChildWindow::GetPosition()
void SfxChildWindow::InitializeChildWinFactory_Impl( sal_uInt16 nId, SfxChildWinInfo& rInfo )
{
// load configuration
- SvtViewOptions aWinOpt( E_WINDOW, String::CreateFromInt32( nId ) );
+ SvtViewOptions aWinOpt( E_WINDOW, OUString::number( nId ) );
if ( aWinOpt.Exists() && aWinOpt.HasVisible() )
rInfo.bVisible = aWinOpt.IsVisible(); // set state from configuration. Can be overwritten by UserData, see below
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 1bf812bb29e6..4187f67017c7 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -1010,10 +1010,10 @@ SearchTabPage_Impl::~SearchTabPage_Impl()
{
SvtViewOptions aViewOpt( E_TABPAGE, CONFIGNAME_SEARCHPAGE );
sal_Int32 nChecked = aFullWordsCB.IsChecked() ? 1 : 0;
- String aUserData = String::CreateFromInt32( nChecked );
+ String aUserData = OUString::number( nChecked );
aUserData += ';';
nChecked = aScopeCB.IsChecked() ? 1 : 0;
- aUserData += String::CreateFromInt32( nChecked );
+ aUserData += OUString::number( nChecked );
aUserData += ';';
sal_uInt16 nCount = Min( aSearchED.GetEntryCount(), (sal_uInt16)10 ); // save only 10 entries
@@ -2992,20 +2992,20 @@ void SfxHelpWindow_Impl::SaveConfig()
}
aViewOpt.SetVisible( bIndex );
- String aUserData = String::CreateFromInt32( nIndexSize );
+ String aUserData = OUString::number( nIndexSize );
aUserData += ';';
- aUserData += String::CreateFromInt32( nTextSize );
+ aUserData += OUString::number( nTextSize );
aUserData += ';';
- aUserData += String::CreateFromInt32( nW );
+ aUserData += OUString::number( nW );
aUserData += ';';
- aUserData += String::CreateFromInt32( nH );
+ aUserData += OUString::number( nH );
Window* pScreenWin = VCLUnoHelper::GetWindow( xWindow );
aWinPos = pScreenWin->GetWindowExtentsRelative( NULL ).TopLeft();
aUserData += ';';
- aUserData += String::CreateFromInt32( aWinPos.X() );
+ aUserData += OUString::number( aWinPos.X() );
aUserData += ';';
- aUserData += String::CreateFromInt32( aWinPos.Y() );
+ aUserData += OUString::number( aWinPos.Y() );
aViewOpt.SetUserItem( USERITEM_NAME, makeAny( rtl::OUString( aUserData ) ) );
}
diff --git a/sfx2/source/bastyp/frmhtmlw.cxx b/sfx2/source/bastyp/frmhtmlw.cxx
index 46131aae5c7c..bf79d7f4f924 100644
--- a/sfx2/source/bastyp/frmhtmlw.cxx
+++ b/sfx2/source/bastyp/frmhtmlw.cxx
@@ -147,7 +147,7 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const String& rBaseURL,
if( (i_xDocProps->getAutoloadSecs() != 0) ||
!i_xDocProps->getAutoloadURL().isEmpty() )
{
- String sContent = String::CreateFromInt32(
+ String sContent = OUString::number(
i_xDocProps->getAutoloadSecs() );
const String &rReloadURL = i_xDocProps->getAutoloadURL();
@@ -173,9 +173,9 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const String& rBaseURL,
::util::DateTime uDT = i_xDocProps->getCreationDate();
Date aD(uDT.Day, uDT.Month, uDT.Year);
Time aT(uDT.Hours, uDT.Minutes, uDT.Seconds, uDT.HundredthSeconds);
- String sOut = String::CreateFromInt32(aD.GetDate());
+ String sOut = OUString::number(aD.GetDate());
sOut += ';';
- sOut += String::CreateFromInt32(aT.GetTime());
+ sOut += OUString::number(aT.GetTime());
OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_created, sOut, sal_False,
eDestEnc, pNonConvertableChars );
@@ -189,9 +189,9 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const String& rBaseURL,
uDT = i_xDocProps->getModificationDate();
Date aD2(uDT.Day, uDT.Month, uDT.Year);
Time aT2(uDT.Hours, uDT.Minutes, uDT.Seconds, uDT.HundredthSeconds);
- sOut = String::CreateFromInt32(aD2.GetDate());
+ sOut = OUString::number(aD2.GetDate());
sOut += ';';
- sOut += String::CreateFromInt32(aT2.GetTime());
+ sOut += OUString::number(aT2.GetTime());
OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_changed, sOut, sal_False,
eDestEnc, pNonConvertableChars );
diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx
index 06a361afa08a..65f393496ed3 100644
--- a/sfx2/source/dialog/basedlgs.cxx
+++ b/sfx2/source/dialog/basedlgs.cxx
@@ -98,7 +98,7 @@ void SfxFloatingWindow_Impl::Notify( SfxBroadcaster&, const SfxHint& rHint )
void SfxModalDialog::SetDialogData_Impl()
{
// save settings (position and user data)
- SvtViewOptions aDlgOpt( E_DIALOG, String::CreateFromInt32( nUniqId ) );
+ SvtViewOptions aDlgOpt( E_DIALOG, OUString::number( nUniqId ) );
aDlgOpt.SetWindowState(OStringToOUString(
GetWindowState(WINDOWSTATE_MASK_POS), RTL_TEXTENCODING_ASCII_US));
if ( aExtraData.Len() )
@@ -116,7 +116,7 @@ void SfxModalDialog::GetDialogData_Impl()
*/
{
- SvtViewOptions aDlgOpt( E_DIALOG, String::CreateFromInt32( nUniqId ) );
+ SvtViewOptions aDlgOpt( E_DIALOG, OUString::number( nUniqId ) );
if ( aDlgOpt.Exists() )
{
// load settings
@@ -707,7 +707,7 @@ IMPL_LINK_NOARG(SfxSingleTabDialogBase, OKHdl_Impl)
// Save user data in IniManager.
pImpl->m_pSfxPage->FillUserData();
String sData( pImpl->m_pSfxPage->GetUserData() );
- SvtViewOptions aPageOpt( E_TABPAGE, String::CreateFromInt32( GetUniqId() ) );
+ SvtViewOptions aPageOpt( E_TABPAGE, OUString::number( GetUniqId() ) );
aPageOpt.SetUserItem( USERITEM_NAME, makeAny( OUString( sData ) ) );
EndDialog( RET_OK );
}
@@ -807,7 +807,7 @@ void SfxSingleTabDialog::setTabPage(SfxTabPage* pTabPage,
if ( pImpl->m_pSfxPage )
{
// First obtain the user data, only then Reset()
- SvtViewOptions aPageOpt( E_TABPAGE, String::CreateFromInt32( GetUniqId() ) );
+ SvtViewOptions aPageOpt( E_TABPAGE, OUString::number( GetUniqId() ) );
String sUserData;
Any aUserItem = aPageOpt.GetUserItem( USERITEM_NAME );
OUString aTemp;
@@ -857,7 +857,7 @@ void SfxNoLayoutSingleTabDialog::SetTabPage( SfxTabPage* pTabPage,
if ( pImpl->m_pSfxPage )
{
// First obtain the user data, only then Reset()
- SvtViewOptions aPageOpt( E_TABPAGE, String::CreateFromInt32( GetUniqId() ) );
+ SvtViewOptions aPageOpt( E_TABPAGE, OUString::number( GetUniqId() ) );
String sUserData;
Any aUserItem = aPageOpt.GetUserItem( USERITEM_NAME );
OUString aTemp;
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index fee23481e897..109522070d9b 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -1090,7 +1090,7 @@ void SfxDocumentPage::Reset( const SfxItemSet& rSet )
{
const Time aT( nTime/3600, (nTime%3600)/60, nTime%60 );
m_pTimeLogValFt->SetText( rLocaleWrapper.getDuration( aT ) );
- m_pDocNoValFt->SetText( String::CreateFromInt32(
+ m_pDocNoValFt->SetText( OUString::number(
m_pInfoItem->getEditingCycles() ) );
}
@@ -1626,12 +1626,12 @@ void CustomPropertiesDurationField::SetDuration( const util::Duration& rDuration
m_aDuration = rDuration;
String sText(rDuration.Negative ? rtl::OUString('-') : rtl::OUString('+'));
sText += m_pLine->m_sDurationFormat;
- sText.SearchAndReplace(rtl::OUString("%1"), String::CreateFromInt32( rDuration.Years ) );
- sText.SearchAndReplace(rtl::OUString("%2"), String::CreateFromInt32( rDuration.Months ) );
- sText.SearchAndReplace(rtl::OUString("%3"), String::CreateFromInt32( rDuration.Days ) );
- sText.SearchAndReplace(rtl::OUString("%4"), String::CreateFromInt32( rDuration.Hours ) );
- sText.SearchAndReplace(rtl::OUString("%5"), String::CreateFromInt32( rDuration.Minutes) );
- sText.SearchAndReplace(rtl::OUString("%6"), String::CreateFromInt32( rDuration.Seconds) );
+ sText.SearchAndReplace(rtl::OUString("%1"), OUString::number( rDuration.Years ) );
+ sText.SearchAndReplace(rtl::OUString("%2"), OUString::number( rDuration.Months ) );
+ sText.SearchAndReplace(rtl::OUString("%3"), OUString::number( rDuration.Days ) );
+ sText.SearchAndReplace(rtl::OUString("%4"), OUString::number( rDuration.Hours ) );
+ sText.SearchAndReplace(rtl::OUString("%5"), OUString::number( rDuration.Minutes) );
+ sText.SearchAndReplace(rtl::OUString("%6"), OUString::number( rDuration.Seconds) );
SetText( sText );
}
diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx
index e0a16237a788..d1b87e610f9c 100644
--- a/sfx2/source/dialog/dockwin.cxx
+++ b/sfx2/source/dialog/dockwin.cxx
@@ -1199,24 +1199,24 @@ void SfxDockingWindow::FillInfo(SfxChildWinInfo& rInfo) const
rInfo.aWinState = pImp->aWinState;
rInfo.aExtraString = "AL:(";
- rInfo.aExtraString += String::CreateFromInt32((sal_uInt16) GetAlignment());
+ rInfo.aExtraString += OUString::number((sal_uInt16) GetAlignment());
rInfo.aExtraString += ',';
- rInfo.aExtraString += String::CreateFromInt32 ((sal_uInt16) pImp->GetLastAlignment());
+ rInfo.aExtraString += OUString::number ((sal_uInt16) pImp->GetLastAlignment());
if ( pImp->bSplitable )
{
Point aPos(pImp->nLine, pImp->nPos);
rInfo.aExtraString += ',';
- rInfo.aExtraString += String::CreateFromInt32( aPos.X() );
+ rInfo.aExtraString += OUString::number( aPos.X() );
rInfo.aExtraString += '/';
- rInfo.aExtraString += String::CreateFromInt32( aPos.Y() );
+ rInfo.aExtraString += OUString::number( aPos.Y() );
rInfo.aExtraString += '/';
- rInfo.aExtraString += String::CreateFromInt32( pImp->nHorizontalSize );
+ rInfo.aExtraString += OUString::number( pImp->nHorizontalSize );
rInfo.aExtraString += '/';
- rInfo.aExtraString += String::CreateFromInt32( pImp->nVerticalSize );
+ rInfo.aExtraString += OUString::number( pImp->nVerticalSize );
rInfo.aExtraString += ',';
- rInfo.aExtraString += String::CreateFromInt32( pImp->aSplitSize.Width() );
+ rInfo.aExtraString += OUString::number( pImp->aSplitSize.Width() );
rInfo.aExtraString += ';';
- rInfo.aExtraString += String::CreateFromInt32( pImp->aSplitSize.Height() );
+ rInfo.aExtraString += OUString::number( pImp->aSplitSize.Height() );
}
rInfo.aExtraString += ')';
diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx
index d20e542b7ae0..2e4a53619f42 100644
--- a/sfx2/source/dialog/filedlghelper.cxx
+++ b/sfx2/source/dialog/filedlghelper.cxx
@@ -1965,7 +1965,7 @@ void FileDialogHelper_Impl::saveConfig()
aValue = xDlg->getValue( ExtendedFilePickerElementIds::CHECKBOX_PREVIEW, 0 );
bValue = sal_False;
aValue >>= bValue;
- aUserData.SetToken( 1, ' ', String::CreateFromInt32( (sal_Int32) bValue ) );
+ aUserData.SetToken( 1, ' ', OUString::number( (sal_Int32) bValue ) );
INetURLObject aObj( getPath() );
@@ -2001,7 +2001,7 @@ void FileDialogHelper_Impl::saveConfig()
aValue = xDlg->getValue( ExtendedFilePickerElementIds::CHECKBOX_AUTOEXTENSION, 0 );
sal_Bool bAutoExt = sal_True;
aValue >>= bAutoExt;
- aUserData.SetToken( 0, ' ', String::CreateFromInt32( (sal_Int32) bAutoExt ) );
+ aUserData.SetToken( 0, ' ', OUString::number( (sal_Int32) bAutoExt ) );
bWriteConfig = sal_True;
}
catch( const IllegalArgumentException& ){}
@@ -2027,7 +2027,7 @@ void FileDialogHelper_Impl::saveConfig()
aValue >>= bSelection;
if ( comphelper::string::getTokenCount(aUserData, ' ') < 3 )
aUserData.Append(' ');
- aUserData.SetToken( 2, ' ', String::CreateFromInt32( (sal_Int32) bSelection ) );
+ aUserData.SetToken( 2, ' ', OUString::number( (sal_Int32) bSelection ) );
bWriteConfig = sal_True;
}
catch( const IllegalArgumentException& ){}
diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx
index 3c820cc39e88..3d127ad4bddc 100644
--- a/sfx2/source/dialog/mgetempl.cxx
+++ b/sfx2/source/dialog/mgetempl.cxx
@@ -115,12 +115,12 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage( Window* pParent, const SfxItem
String aNoName( SfxResId(STR_NONAME).toString() );
sal_uInt16 nNo = 1;
String aNo( aNoName );
- aNoName += String::CreateFromInt32( nNo );
+ aNoName += OUString::number( nNo );
while ( pPool->Find( aNoName ) )
{
++nNo;
aNoName = aNo;
- aNoName += String::CreateFromInt32( nNo );
+ aNoName += OUString::number( nNo );
}
pStyle->SetName( aNoName );
aName = aNoName;
diff --git a/sfx2/source/dialog/passwd.cxx b/sfx2/source/dialog/passwd.cxx
index 239713670d74..cfd28ce960c5 100644
--- a/sfx2/source/dialog/passwd.cxx
+++ b/sfx2/source/dialog/passwd.cxx
@@ -134,7 +134,7 @@ void SfxPasswordDialog::SetPasswdText( )
else
{
maMainPwdStr = maMinLenPwdStr;
- maMainPwdStr.SearchAndReplace( OUString("$(MINLEN)"), String::CreateFromInt32((sal_Int32) mnMinLen ), 0);
+ maMainPwdStr.SearchAndReplace( OUString("$(MINLEN)"), OUString::number((sal_Int32) mnMinLen ), 0);
mpMinLengthFT->SetText(maMainPwdStr);
}
}
diff --git a/sfx2/source/dialog/splitwin.cxx b/sfx2/source/dialog/splitwin.cxx
index a865280c1017..e5b08586cc97 100644
--- a/sfx2/source/dialog/splitwin.cxx
+++ b/sfx2/source/dialog/splitwin.cxx
@@ -233,7 +233,7 @@ SfxSplitWindow::SfxSplitWindow( Window* pParent, SfxChildAlignment eAl,
{
// Read Configuration
String aWindowId = rtl::OUString("SplitWindow");
- aWindowId += String::CreateFromInt32( (sal_Int32) eTbxAlign );
+ aWindowId += OUString::number( (sal_Int32) eTbxAlign );
SvtViewOptions aWinOpt( E_WINDOW, aWindowId );
String aWinData;
Any aUserItem = aWinOpt.GetUserItem( USERITEM_NAME );
@@ -336,7 +336,7 @@ void SfxSplitWindow::SaveConfig_Impl()
}
String aWindowId = rtl::OUString("SplitWindow");
- aWindowId += String::CreateFromInt32( (sal_Int32) GetAlign() );
+ aWindowId += OUString::number( (sal_Int32) GetAlign() );
SvtViewOptions aWinOpt( E_WINDOW, aWindowId );
aWinOpt.SetUserItem( USERITEM_NAME, makeAny( aWinData.makeStringAndClear() ) );
}
diff --git a/sfx2/source/dialog/srchdlg.cxx b/sfx2/source/dialog/srchdlg.cxx
index 0cf9690d9896..7d7c45ad8cab 100644
--- a/sfx2/source/dialog/srchdlg.cxx
+++ b/sfx2/source/dialog/srchdlg.cxx
@@ -119,13 +119,13 @@ void SearchDialog::SaveConfig()
}
sUserData = comphelper::string::stripStart(sUserData, '\t');
sUserData += ';';
- sUserData += String::CreateFromInt32( m_aWholeWordsBox.IsChecked() ? 1 : 0 );
+ sUserData += OUString::number( m_aWholeWordsBox.IsChecked() ? 1 : 0 );
sUserData += ';';
- sUserData += String::CreateFromInt32( m_aMatchCaseBox.IsChecked() ? 1 : 0 );
+ sUserData += OUString::number( m_aMatchCaseBox.IsChecked() ? 1 : 0 );
sUserData += ';';
- sUserData += String::CreateFromInt32( m_aWrapAroundBox.IsChecked() ? 1 : 0 );
+ sUserData += OUString::number( m_aWrapAroundBox.IsChecked() ? 1 : 0 );
sUserData += ';';
- sUserData += String::CreateFromInt32( m_aBackwardsBox.IsChecked() ? 1 : 0 );
+ sUserData += OUString::number( m_aBackwardsBox.IsChecked() ? 1 : 0 );
Any aUserItem = makeAny( ::rtl::OUString( sUserData ) );
aViewOpt.SetUserItem( "UserItem", aUserItem );
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index 130abfe192be..4ec5a76e035b 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -528,7 +528,7 @@ SfxTabDialog::~SfxTabDialog()
if ( aPageData.Len() )
{
// save settings of all pages (user data)
- SvtViewOptions aPageOpt( E_TABPAGE, String::CreateFromInt32( pDataObject->nId ) );
+ SvtViewOptions aPageOpt( E_TABPAGE, OUString::number( pDataObject->nId ) );
aPageOpt.SetUserItem( USERITEM_NAME, makeAny( OUString( aPageData ) ) );
}
@@ -784,7 +784,7 @@ void SfxTabDialog::Start_Impl()
sal_uInt16 nActPage = m_pTabCtrl->GetPageId( 0 );
// load old settings, when exists
- SvtViewOptions aDlgOpt( E_TABDIALOG, String::CreateFromInt32( nResId ) );
+ SvtViewOptions aDlgOpt( E_TABDIALOG, OUString::number( nResId ) );
if ( aDlgOpt.Exists() )
{
SetWindowState(rtl::OUStringToOString(aDlgOpt.GetWindowState().getStr(), RTL_TEXTENCODING_ASCII_US));
@@ -971,7 +971,7 @@ void SfxTabDialog::RemoveTabPage( sal_uInt16 nId )
if ( aPageData.Len() )
{
// save settings of this page (user data)
- SvtViewOptions aPageOpt( E_TABPAGE, String::CreateFromInt32( pDataObject->nId ) );
+ SvtViewOptions aPageOpt( E_TABPAGE, OUString::number( pDataObject->nId ) );
aPageOpt.SetUserItem( USERITEM_NAME, makeAny( OUString( aPageData ) ) );
}
@@ -1042,7 +1042,7 @@ SfxTabPage* SfxTabDialog::GetTabPage( sal_uInt16 nPageId ) const
void SfxTabDialog::SavePosAndId()
{
// save settings (screen position and current page)
- SvtViewOptions aDlgOpt( E_TABDIALOG, String::CreateFromInt32( nResId ) );
+ SvtViewOptions aDlgOpt( E_TABDIALOG, OUString::number( nResId ) );
aDlgOpt.SetWindowState(OStringToOUString(GetWindowState(WINDOWSTATE_MASK_POS),RTL_TEXTENCODING_ASCII_US));
aDlgOpt.SetPageID( m_pTabCtrl->GetCurPageId() );
}
@@ -1402,7 +1402,7 @@ IMPL_LINK( SfxTabDialog, ActivatePageHdl, TabControl *, pTabCtrl )
pDataObject->pTabPage = pTabPage;
pDataObject->pTabPage->SetTabDialog( this );
- SvtViewOptions aPageOpt( E_TABPAGE, String::CreateFromInt32( pDataObject->nId ) );
+ SvtViewOptions aPageOpt( E_TABPAGE, OUString::number( pDataObject->nId ) );
String sUserData;
Any aUserItem = aPageOpt.GetUserItem( USERITEM_NAME );
OUString aTemp;
diff --git a/sfx2/source/view/viewfrm2.cxx b/sfx2/source/view/viewfrm2.cxx
index 64dcdf583fc0..86ce6401bc10 100644
--- a/sfx2/source/view/viewfrm2.cxx
+++ b/sfx2/source/view/viewfrm2.cxx
@@ -147,7 +147,7 @@ void SfxViewFrame::UpdateTitle()
if ( IsVisible() )
{
aSbxName += ':';
- aSbxName += String::CreateFromInt32(pImp->nDocViewNo);
+ aSbxName += OUString::number(pImp->nDocViewNo);
}
SetName( aSbxName );