Replaced O[U]String::valueOf( static_cast<> ) with O[U]String::number()

Change-Id: I2f11f2f15a652a9edc3c7e5b67c854debeed20de
Reviewed-on: https://gerrit.libreoffice.org/1784
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
This commit is contained in:
Jean-Noël Rouvignac 2013-01-20 13:55:09 +01:00 committed by Luboš Luňák
parent d912979b4f
commit 63bcb139b9
82 changed files with 188 additions and 197 deletions

View File

@ -1521,7 +1521,7 @@ sal_Bool BasicManager::LoadLib( sal_uInt16 nLib )
else
{
StringErrorInfo* pErrInf = new StringErrorInfo( ERRCODE_BASMGR_LIBLOAD, OUString(), ERRCODE_BUTTON_OK );
aErrors.push_back(BasicError(*pErrInf, BASERR_REASON_LIBNOTFOUND, OUString::valueOf(static_cast<sal_Int32>(nLib))));
aErrors.push_back(BasicError(*pErrInf, BASERR_REASON_LIBNOTFOUND, OUString::number(nLib)));
}
return bDone;
}

View File

@ -1663,7 +1663,7 @@ void StarBASIC::MakeErrorText( SbError nId, const OUString& aMsg )
}
else if( nOldID != 0 )
{
OUString aStdMsg = "Fehler " + OUString::valueOf(static_cast<sal_Int32>(nOldID)) +
OUString aStdMsg = "Fehler " + OUString::number(nOldID) +
": Kein Fehlertext verfuegbar!";
GetSbData()->aErrMsg = aStdMsg;
}

View File

@ -830,7 +830,7 @@ void SbxObject::Dump( SvStream& rStrm, sal_Bool bFill )
<< ( aNameStr.isEmpty() ? "<unnamed>" : aNameStr.getStr() ) << "', "
<< "of class '" << aClassNameStr.getStr() << "', "
<< "counts "
<< rtl::OString::valueOf(static_cast<sal_Int64>(GetRefCount())).getStr()
<< OString::number(GetRefCount()).getStr()
<< " refs, ";
if ( GetParent() )
{

View File

@ -174,7 +174,7 @@ void writeValueContent(oslFileHandle handle, sal_Bool value) {
}
void writeValueContent(oslFileHandle handle, sal_Int16 value) {
writeData(handle, rtl::OString::valueOf(static_cast< sal_Int32 >(value)));
writeData(handle, OString::number(value));
}
void writeValueContent(oslFileHandle handle, sal_Int32 value) {
@ -201,7 +201,7 @@ void writeValueContent(oslFileHandle handle, OUString const & value) {
writeData(
handle, RTL_CONSTASCII_STRINGPARAM("<unicode oor:scalar=\""));
writeData(
handle, rtl::OString::valueOf(static_cast< sal_Int32 >(c)));
handle, OString::number(c));
writeData(handle, RTL_CONSTASCII_STRINGPARAM("\"/>"));
i = j + 1;
} else if (c == '\x0D') {

View File

@ -395,7 +395,7 @@ void ODbaseIndex::createINFEntry()
while (aNewEntry.isEmpty())
{
aNewEntry = rtl::OString(RTL_CONSTASCII_STRINGPARAM("NDX"));
aNewEntry += rtl::OString::valueOf(static_cast<sal_Int32>(++nSuffix));
aNewEntry += OString::number(++nSuffix);
for (sal_uInt16 i = 0; i < aInfFile.GetKeyCount(); i++)
{
aKeyName = aInfFile.GetKeyName(i);

View File

@ -1956,7 +1956,7 @@ sal_Bool ODbaseTable::UpdateBuffer(OValueRefVector& rRow, OValueRefRow pOrgRow,
if (!m_pMemoStream || !WriteMemo(thisColVal, nBlockNo))
break;
rtl::OString aBlock(rtl::OString::valueOf(static_cast<sal_Int32>(nBlockNo)));
rtl::OString aBlock(OString::number(nBlockNo));
//align aBlock at the right of a nLen sequence, fill to the left with '0'
rtl::OStringBuffer aStr;
comphelper::string::padToLength(aStr, nLen - aBlock.getLength(), '0');

View File

@ -3256,15 +3256,12 @@ sal_Bool SvxCharPositionPage::FillItemSet( SfxItemSet& rSet )
void SvxCharPositionPage::FillUserData()
{
const sal_Unicode cTok = ';';
const OUString cTok( ";" );
OUString sUser( OUString::valueOf( static_cast<sal_Int32>(m_nSuperEsc)) );
sUser += OUString( cTok );
sUser += OUString::valueOf( static_cast<sal_Int32>(m_nSubEsc) );
sUser += OUString (cTok );
sUser += OUString::valueOf( static_cast<sal_Int32>(m_nSuperProp) );
sUser += OUString ( cTok );
sUser += OUString::valueOf( static_cast<sal_Int32>(m_nSubProp) );
OUString sUser = OUString::number( m_nSuperEsc ) + cTok +
OUString::number( m_nSubEsc ) + cTok +
OUString::number( m_nSuperProp ) + cTok +
OUString::number( m_nSubProp );
SetUserData( sUser );
}

View File

@ -972,8 +972,8 @@ void SvxNumberFormatTabPage::UpdateOptions_Impl( sal_Bool bCheckCatChange /*= sa
m_pEdLeadZeroes->Enable();
m_pBtnNegRed->Enable();
m_pBtnThousand->Enable();
m_pEdDecimals->SetText( OUString::valueOf( static_cast<sal_Int32>(nDecimals) ) );
m_pEdLeadZeroes->SetText( OUString::valueOf( static_cast<sal_Int32>(nZeroes) ) );
m_pEdDecimals->SetText( OUString::number( nDecimals ) );
m_pEdLeadZeroes->SetText( OUString::number( nZeroes ) );
m_pBtnNegRed->Check( bNegRed );
m_pBtnThousand->Check( bThousand );
break;
@ -994,8 +994,8 @@ void SvxNumberFormatTabPage::UpdateOptions_Impl( sal_Bool bCheckCatChange /*= sa
m_pEdLeadZeroes->Disable();
m_pBtnNegRed->Disable();
m_pBtnThousand->Disable();
m_pEdDecimals->SetText( OUString::valueOf( static_cast<sal_Int32>(0) ) );
m_pEdLeadZeroes->SetText( OUString::valueOf( static_cast<sal_Int32>(0) ) );
m_pEdDecimals->SetText( OUString::number( 0 ) );
m_pEdLeadZeroes->SetText( OUString::number( 0 ) );
m_pBtnNegRed->Check( sal_False );
m_pBtnThousand->Check( sal_False );
}

View File

@ -1266,7 +1266,7 @@ void SvxNumOptionsTabPage::Reset( const SfxItemSet& rSet )
if(!m_pLevelLB->GetEntryCount())
{
for(sal_uInt16 i = 1; i <= pSaveNum->GetLevelCount(); i++)
m_pLevelLB->InsertEntry( OUString::valueOf(static_cast<sal_Int32>(i)));
m_pLevelLB->InsertEntry( OUString::number(i));
if(pSaveNum->GetLevelCount() > 1)
{
OUString sEntry( "1 - " );
@ -3018,7 +3018,7 @@ void SvxNumPositionTabPage::Reset( const SfxItemSet& rSet )
if(!m_pLevelLB->GetEntryCount())
{
for(sal_uInt16 i = 1; i <= pSaveNum->GetLevelCount(); i++)
m_pLevelLB->InsertEntry( OUString::valueOf(static_cast<sal_Int32>(i)) );
m_pLevelLB->InsertEntry( OUString::number(i) );
if(pSaveNum->GetLevelCount() > 1)
{
OUString sEntry( "1 - " );

View File

@ -1223,7 +1223,7 @@ sal_uInt16 SvxColorTabPage::PercentToColor_Impl( sal_uInt16 nPercent )
void SvxColorTabPage::FillUserData()
{
// the color model is saved in the Ini-file
SetUserData( OUString::valueOf( static_cast<sal_Int32>(eCM) ) );
SetUserData( OUString::number( eCM ) );
}
//------------------------------------------------------------------------

View File

@ -878,7 +878,7 @@ XubString SvxTabStop::GetValueString() const
XubString aStr;
aStr += sal_Unicode( '(' );
aStr += rtl::OUString::valueOf(static_cast<sal_Int32>(nTabPos));
aStr += OUString::number(nTabPos);
aStr += cpDelim;
aStr += EE_RESSTR(RID_SVXITEMS_TAB_ADJUST_BEGIN + (sal_uInt16)eAdjustment);

View File

@ -262,7 +262,7 @@ void DffPropertyReader::ReadPropSet( SvStream& rIn, void* pClientData ) const
if ( IsProperty( DFF_Prop_adjustValue ) || IsProperty( DFF_Prop_pVertices ) )
{
pOut->WriteLine( "" );
OString aString("ShapeId: " + OString::valueOf(static_cast<sal_Int32>(nShapeId)));
OString aString("ShapeId: " + OString::number(nShapeId));
pOut->WriteLine(aString);
}
for ( sal_uInt32 i = DFF_Prop_adjustValue; i <= DFF_Prop_adjust10Value; i++ )
@ -287,13 +287,13 @@ void DffPropertyReader::ReadPropSet( SvStream& rIn, void* pClientData ) const
if ( nLen )
{
pOut->WriteLine( "" );
OStringBuffer aDesc("Property:" + OString::valueOf(static_cast<sal_Int32>(i)) +
OStringBuffer aDesc("Property:" + OString::number(i) +
" Size:" + OString::valueOf(nLen));
pOut->WriteLine(aDesc.makeStringAndClear());
sal_Int16 nNumElem, nNumElemMem, nNumSize;
rIn >> nNumElem >> nNumElemMem >> nNumSize;
aDesc.append("Entries: " + OString::valueOf(static_cast<sal_Int32>(nNumElem)) +
" Size:" + OString::valueOf(static_cast<sal_Int32>(nNumSize)));
aDesc.append("Entries: " + OString::number(nNumElem) +
" Size:" + OString::number(nNumSize));
pOut->WriteLine(aDesc.makeStringAndClear());
if ( nNumSize < 0 )
nNumSize = ( ( -nNumSize ) >> 2 );
@ -331,7 +331,7 @@ void DffPropertyReader::ReadPropSet( SvStream& rIn, void* pClientData ) const
}
else
{
OString aString("Property" + OString::valueOf(static_cast<sal_Int32>(i)) +
OString aString("Property" + OString::number(i) +
":" + OString::valueOf(static_cast<sal_Int32>(GetPropertyValue(i))));
pOut->WriteLine(aString);
}

View File

@ -112,7 +112,7 @@ const uno::Reference< container::XIndexContainer >&
while( xNameCont->hasByName( sName ) )
{
sName = sWW8_form;
sName += OUString::valueOf( static_cast<sal_Int32>(++n) );
sName += OUString::number( ++n );
}
const uno::Reference< lang::XMultiServiceFactory > &rServiceFactory

View File

@ -418,7 +418,7 @@ OUString XMLFilterSettingsDialog::createUniqueInterfaceName( const OUString& rIn
if( nDefaultNumber )
{
aInterfaceName += OUString( sal_Unicode( ' ' ) );
aInterfaceName += OUString::valueOf( static_cast<sal_Int32>(nDefaultNumber) );
aInterfaceName += OUString::number( nDefaultNumber );
}
return aInterfaceName;
@ -922,7 +922,7 @@ void XMLFilterSettingsDialog::onSave()
if( nFilters > 0 )
{
aMsg = RESIDSTR(STR_FILTERS_HAVE_BEEN_SAVED);
aMsg = aMsg.replaceFirst( sPlaceholder, OUString::valueOf( static_cast<sal_Int32>(nFilters) ) );
aMsg = aMsg.replaceFirst( sPlaceholder, OUString::number( nFilters ) );
aMsg = aMsg.replaceFirst( sPlaceholder, aURL.GetName() );
}
else
@ -997,7 +997,7 @@ void XMLFilterSettingsDialog::onOpen()
else
{
aMsg = RESIDSTR(STR_FILTERS_INSTALLED);
aMsg = aMsg.replaceFirst( sPlaceholder, OUString::valueOf( static_cast<sal_Int32>(nFilters) ) );
aMsg = aMsg.replaceFirst( sPlaceholder, OUString::number( nFilters ) );
}
InfoBox aBox(this, aMsg );

View File

@ -36,7 +36,7 @@ rtl::OString SvToken::GetTokenAsString() const
aStr = aString;
break;
case SVTOKEN_INTEGER:
aStr = rtl::OString::valueOf(static_cast<sal_Int64>(nLong));
aStr = OString::number(nLong);
break;
case SVTOKEN_STRING:
aStr = aString;

View File

@ -561,9 +561,9 @@ void SvMetaExtern::WriteAttributes( SvIdlDataBase & rBase, SvStream & rOutStm,
rOutStm << "uuid(" << rtl::OUStringToOString(GetUUId().GetHexName(), RTL_TEXTENCODING_UTF8).getStr() << ")," << endl;
WriteTab( rOutStm, nTab );
rOutStm << "version("
<< rtl::OString::valueOf(static_cast<sal_Int32>(aVersion.GetMajorVersion())).getStr()
<< OString::number(aVersion.GetMajorVersion()).getStr()
<< '.'
<< rtl::OString::valueOf(static_cast<sal_Int32>(aVersion.GetMinorVersion())).getStr()
<< OString::number(aVersion.GetMinorVersion()).getStr()
<< ")," << endl;
}

View File

@ -413,9 +413,9 @@ sal_Bool SvVersion::ReadSvIdl( SvTokenStream & rInStm )
sal_Bool SvVersion::WriteSvIdl( SvStream & rOutStm )
{
rOutStm << SvHash_Version()->GetName().getStr() << '('
<< rtl::OString::valueOf(static_cast<sal_Int32>(nMajorVersion)).getStr()
<< OString::number(nMajorVersion).getStr()
<< '.'
<< rtl::OString::valueOf(static_cast<sal_Int32>(nMinorVersion)).getStr()
<< OString::number(nMinorVersion).getStr()
<< ')';
return sal_True;
}

View File

@ -1152,7 +1152,7 @@ void SvMetaSlot::WriteSlot( const rtl::OString& rShellName, sal_uInt16 nCount,
sal_Bool bIsEnumSlot = 0 != pEnumValue;
rOutStm << "// Slot Nr. "
<< rtl::OString::valueOf(static_cast<sal_Int32>(nListPos)).getStr()
<< OString::number(nListPos).getStr()
<< " : ";
rtl::OString aSlotIdValue(rtl::OString::valueOf(static_cast<sal_Int32>(
GetSlotId().GetValue())));
@ -1364,7 +1364,7 @@ void SvMetaSlot::WriteSlot( const rtl::OString& rShellName, sal_uInt16 nCount,
rOutStm << ',' << endl;
WriteTab( rOutStm, 4 );
rOutStm
<< rtl::OString::valueOf(static_cast<sal_Int32>(nCount)).getStr()
<< OString::number(nCount).getStr()
<< "/*Offset*/, ";
if( IsMethod() )
@ -1494,7 +1494,7 @@ void SvMetaSlot::WriteHelpId( SvIdlDataBase & rBase, SvStream & rOutStm,
{
rTable[ nSId ] = this;
rOutStm << "#define " << GetSlotId().getString().getStr() << '\t'
<< rtl::OString::valueOf(static_cast<sal_Int32>(nSId)).getStr()
<< OString::number(nSId).getStr()
<< endl;
}
@ -1519,7 +1519,7 @@ void SvMetaSlot::WriteHelpId( SvIdlDataBase & rBase, SvStream & rOutStm,
sal_Bool bIdOk = sal_False;
if( rBase.FindId( aSId, &nSId2 ) )
{
aSId = rtl::OString::valueOf(static_cast<sal_Int32>(nSId2));
aSId = OString::number(nSId2);
bIdOk = sal_True;
}

View File

@ -1402,7 +1402,7 @@ void SvMetaType::WriteSfxItem(
rtl::OStringBuffer aAttrArray;
sal_uLong nAttrCount = MakeSfx( aAttrArray );
rtl::OString aAttrCount(
rtl::OString::valueOf(static_cast<sal_Int32>(nAttrCount)));
OString::number(nAttrCount));
aTypeName.append(aAttrCount);
rOutStm << "extern " << aTypeName.getStr()

View File

@ -1159,7 +1159,7 @@ void Export::InsertListEntry(const rtl::OString &rText, const rtl::OString &rLin
if ( nListIndex + 1 > pList->size())
{
ExportListEntry *pNew = new ExportListEntry();
(*pNew)[LIST_REFID] = rtl::OString::valueOf(static_cast<sal_Int32>(REFID_NONE));
(*pNew)[LIST_REFID] = OString::number(REFID_NONE);
pList->push_back(pNew);
}
ExportListEntry *pCurEntry = (*pList)[ nListIndex ];
@ -1464,7 +1464,7 @@ sal_Bool Export::PrepareTextToMerge(rtl::OString &rText, sal_uInt16 nTyp,
{
pResData->sId = GetPairedListID( sLastListLine );
}
else pResData->sId = rtl::OString::valueOf(static_cast<sal_Int32>(nListIndex));
else pResData->sId = OString::number(nListIndex);
if (!pResData->sGId.isEmpty())
pResData->sGId = pResData->sGId + rtl::OString('.');
@ -1692,7 +1692,7 @@ void Export::MergeRest( ResData *pResData, sal_uInt16 nMode )
*/
sal_Bool bTranslateList = true;
if( !bPairedList ){
pResData->sId = OString::valueOf(static_cast<sal_Int32>(nMaxIndex));
pResData->sId = OString::number(nMaxIndex);
pEntrys = pMergeDataFile->GetPFormEntrys( pResData );
if ( !pEntrys )
bTranslateList = false;
@ -1815,7 +1815,7 @@ void Export::MergeRest( ResData *pResData, sal_uInt16 nMode )
}
}
else
pResData->sId = rtl::OString::valueOf(static_cast<sal_Int32>(nIdx));
pResData->sId = OString::number(nIdx);
PFormEntrys *oldEntry = pEntrys;
pEntrys = pMergeDataFile->GetPFormEntrys( pResData );
if( !pEntrys )

View File

@ -222,27 +222,27 @@ void StringHelper::appendString( OUStringBuffer& rStr, const OUString& rData, sa
void StringHelper::appendDec( OUStringBuffer& rStr, sal_uInt8 nData, sal_Int32 nWidth, sal_Unicode cFill )
{
appendString( rStr, OUString::valueOf( static_cast< sal_Int32 >( nData ) ), nWidth, cFill );
appendString( rStr, OUString::number( nData ), nWidth, cFill );
}
void StringHelper::appendDec( OUStringBuffer& rStr, sal_Int8 nData, sal_Int32 nWidth, sal_Unicode cFill )
{
appendString( rStr, OUString::valueOf( static_cast< sal_Int32 >( nData ) ), nWidth, cFill );
appendString( rStr, OUString::number( nData ), nWidth, cFill );
}
void StringHelper::appendDec( OUStringBuffer& rStr, sal_uInt16 nData, sal_Int32 nWidth, sal_Unicode cFill )
{
appendString( rStr, OUString::valueOf( static_cast< sal_Int32 >( nData ) ), nWidth, cFill );
appendString( rStr, OUString::number( nData ), nWidth, cFill );
}
void StringHelper::appendDec( OUStringBuffer& rStr, sal_Int16 nData, sal_Int32 nWidth, sal_Unicode cFill )
{
appendString( rStr, OUString::valueOf( static_cast< sal_Int32 >( nData ) ), nWidth, cFill );
appendString( rStr, OUString::number( nData ), nWidth, cFill );
}
void StringHelper::appendDec( OUStringBuffer& rStr, sal_uInt32 nData, sal_Int32 nWidth, sal_Unicode cFill )
{
appendString( rStr, OUString::valueOf( static_cast< sal_Int64 >( nData ) ), nWidth, cFill );
appendString( rStr, OUString::number( nData ), nWidth, cFill );
}
void StringHelper::appendDec( OUStringBuffer& rStr, sal_Int32 nData, sal_Int32 nWidth, sal_Unicode cFill )

View File

@ -262,7 +262,7 @@ static void impl_AddInt( sax_fastparser::FastAttributeList *pAttrList, sal_Int32
if ( !pAttrList )
return;
pAttrList->add( nElement, OString::valueOf( static_cast< sal_Int32 >( nValue ) ).getStr() );
pAttrList->add( nElement, OString::number( nValue ).getStr() );
}
inline sal_uInt16 impl_GetUInt16( const sal_uInt8* &pVal )

View File

@ -635,7 +635,7 @@ const Reference< XIndexContainer >&
while( xNameCont->hasByName( sName ) )
{
sName = sStdName;
sName += OUString::valueOf(static_cast<sal_Int32>(++n));
sName += OUString::number(++n);
}
const Reference< XMultiServiceFactory > &rServiceFactory

View File

@ -517,9 +517,9 @@ void SAL_CALL OFixedLine::setSize( const awt::Size& aSize ) throw (beans::Proper
const char hundredthmmC[] = "0\xe2\x80\x89\xC2\xB5""m"; // in UTF-8: 0, thin space, µ (micro), m (meter)
const rtl::OUString hundredthmm(hundredthmmC, sizeof(hundredthmmC)-1, RTL_TEXTENCODING_UTF8);
if ( aSize.Width < MIN_WIDTH && m_nOrientation == 1 )
throw beans::PropertyVetoException("Too small width for FixedLine; minimum is " + rtl::OUString::valueOf(static_cast<sal_Int32>(MIN_WIDTH)) + hundredthmm, static_cast<cppu::OWeakObject*>(this));
throw beans::PropertyVetoException("Too small width for FixedLine; minimum is " + OUString::number(MIN_WIDTH) + hundredthmm, static_cast<cppu::OWeakObject*>(this));
else if ( aSize.Height < MIN_HEIGHT && m_nOrientation == 0 )
throw beans::PropertyVetoException("Too small height for FixedLine; minimum is " + rtl::OUString::valueOf(static_cast<sal_Int32>(MIN_HEIGHT)) + hundredthmm, static_cast<cppu::OWeakObject*>(this));
throw beans::PropertyVetoException("Too small height for FixedLine; minimum is " + OUString::number(MIN_HEIGHT) + hundredthmm, static_cast<cppu::OWeakObject*>(this));
OShapeHelper::setSize(aSize,this);
}
// -----------------------------------------------------------------------------

View File

@ -112,7 +112,7 @@ void RscError::WriteError( const ERRTYPE& rError, const char * pMessage )
case ERR_ERROR: {
StdLstErr( "!! " );
if( 1 == nErrors )
StdLstErr(rtl::OString::valueOf(static_cast<sal_Int32>(nErrors )).getStr());
StdLstErr(OString::number(nErrors).getStr());
else
StdLstErr(rtl::OString::valueOf(static_cast<sal_Int32>(nErrors -1)).getStr());
StdLstErr( " Error" );

View File

@ -786,7 +786,7 @@ rtl::OUString ScDPDimensionSaveData::CreateGroupDimName(
{
rtl::OUString aDimName( rSourceName );
if ( !bUseSource )
aDimName += rtl::OUString::valueOf(static_cast<sal_Int32>(nAdd));
aDimName += OUString::number(nAdd);
bool bExists = false;
// look for existing group dimensions

View File

@ -2798,7 +2798,7 @@ void ScDPResultDimension::LateInitFrom(
{
if ( rParams.IsEnd( nPos ) )
return;
OSL_ENSURE( nPos <= pItemData.size(), rtl::OString::valueOf(static_cast<sal_Int32>(pItemData.size())).getStr() );
OSL_ENSURE( nPos <= pItemData.size(), OString::number(pItemData.size()).getStr() );
ScDPDimension* pThisDim = rParams.GetDim( nPos );
ScDPLevel* pThisLevel = rParams.GetLevel( nPos );
SCROW rThisData = pItemData[nPos];

View File

@ -2395,7 +2395,7 @@ void getFormatString(SvNumberFormatter* pFormatter, sal_uLong nFormat, String& r
}
}
if( bAppendPrec )
rFmtStr += rtl::OUString::valueOf(static_cast<sal_Int32>(nPrec));
rFmtStr += OUString::number(nPrec);
const SvNumberformat* pFormat = pFormatter->GetEntry( nFormat );
if( lcl_FormatHasNegColor( pFormat ) )
rFmtStr += '-';

View File

@ -572,7 +572,7 @@ void XclImpAutoFilterData::ReadAutoFilter( XclImpStream& rStrm )
aEntry.eConnect = SC_AND;
rItem.meType = ScQueryEntry::ByString;
rItem.maString = rtl::OUString::valueOf(static_cast<sal_Int32>(nCntOfTop10));
rItem.maString = OUString::number(nCntOfTop10);
rStrm.Ignore(20);
return;
@ -640,7 +640,7 @@ void XclImpAutoFilterData::ReadAutoFilter( XclImpStream& rStrm )
case EXC_AFTYPE_BOOLERR:
rStrm >> nBoolErr >> nVal;
rStrm.Ignore( 6 );
rItem.maString = rtl::OUString::valueOf(static_cast<sal_Int32>(nVal));
rItem.maString = OUString::number(nVal);
bIgnore = (nBoolErr != 0);
break;
case EXC_AFTYPE_EMPTY:

View File

@ -1233,7 +1233,7 @@ rtl::OString createHexStringFromDigit(sal_uInt8 nDigit)
{
rtl::OString aString = rtl::OString::valueOf( static_cast<sal_Int32>(nDigit), 16 );
if(aString.getLength() == 1)
aString = aString + rtl::OString::valueOf(static_cast<sal_Int32>(0));
aString = aString + OString::number(0);
return aString;
}

View File

@ -140,8 +140,8 @@ void XclExpExtDataBar::SaveXml( XclExpXmlStream& rStrm )
{
sax_fastparser::FSHelperPtr& rWorksheet = rStrm.GetCurrentStream();
rWorksheet->startElementNS( XML_x14, XML_dataBar,
XML_minLength, rtl::OString::valueOf(static_cast<sal_Int32>(0)).getStr(),
XML_maxLength, rtl::OString::valueOf(static_cast<sal_Int32>(100)).getStr(),
XML_minLength, OString::number(0).getStr(),
XML_maxLength, OString::number(100).getStr(),
XML_axisPosition, getAxisPosition(meAxisPosition),
FSEND );

View File

@ -1213,7 +1213,7 @@ void XclExpNumFmt::SaveXml( XclExpXmlStream& rStrm )
{
sax_fastparser::FSHelperPtr& rStyleSheet = rStrm.GetCurrentStream();
rStyleSheet->singleElement( XML_numFmt,
XML_numFmtId, OString::valueOf( static_cast<sal_Int32>(mnXclNumFmt) ).getStr(),
XML_numFmtId, OString::number( mnXclNumFmt ).getStr(),
XML_formatCode, rtl::OUStringToOString(maNumFmtString, RTL_TEXTENCODING_UTF8).getStr(),
FSEND );
}
@ -2988,7 +2988,7 @@ void XclExpDxfs::SaveXml( XclExpXmlStream& rStrm )
sax_fastparser::FSHelperPtr& rStyleSheet = rStrm.GetCurrentStream();
rStyleSheet->startElement( XML_dxfs,
XML_count, rtl::OString::valueOf( static_cast<sal_Int32>(maDxf.size())).getStr(),
XML_count, OString::number(maDxf.size()).getStr(),
FSEND );
for ( DxfContainer::iterator itr = maDxf.begin(); itr != maDxf.end(); ++itr )

View File

@ -79,7 +79,7 @@ void XclPCItem::SetDateTime( const DateTime& rDateTime )
void XclPCItem::SetInteger( sal_Int16 nValue )
{
meType = EXC_PCITEM_INTEGER;
maText = rtl::OUString::valueOf(static_cast<sal_Int32>(nValue));
maText = OUString::number(nValue);
mnValue = nValue;
}

View File

@ -484,7 +484,7 @@ OUString XclTools::GetXclBuiltInDefName( sal_Unicode cBuiltIn )
if( cBuiltIn < SAL_N_ELEMENTS( ppcDefNames ) )
return rtl::OUString::createFromAscii(ppcDefNames[cBuiltIn]);
else
return rtl::OUString::valueOf(static_cast<sal_Int32>(cBuiltIn));
return OUString::number(cBuiltIn);
}
OUString XclTools::GetBuiltInDefName( sal_Unicode cBuiltIn )

View File

@ -424,7 +424,7 @@ void ScHTMLExport::WriteOverview()
{
pDoc->GetName( nTab, aStr );
rStrm << "<A HREF=\"#table"
<< rtl::OString::valueOf(static_cast<sal_Int32>(nTab)).getStr()
<< OString::number(nTab).getStr()
<< "\">";
OUT_STR( aStr );
rStrm << "</A>";
@ -686,7 +686,7 @@ void ScHTMLExport::WriteTables()
// Anker festlegen:
rStrm << "<A NAME=\"table"
<< rtl::OString::valueOf(static_cast<sal_Int32>(nTab)).getStr()
<< OString::number(nTab).getStr()
<< "\">";
TAG_ON( OOO_STRING_SVTOOLS_HTML_head1 );
OUT_STR( aStrOut );

View File

@ -1832,7 +1832,7 @@ sal_Int32 lclCreatePredefinedFormat( const Reference< XNumberFormats >& rxNumFmt
catch( Exception& )
{
OSL_FAIL( OStringBuffer( "lclCreatePredefinedFormat - cannot create predefined number format " ).
append( OString::valueOf( static_cast< sal_Int32 >( nPredefId ) ) ).getStr() );
append( OString::number( nPredefId ) ).getStr() );
}
return nIndex;
}

View File

@ -1018,7 +1018,7 @@ sal_uLong Sc10Import::Import()
#if OSL_DEBUG_LEVEL > 0
if (nError)
{
OSL_FAIL( rtl::OString::valueOf(static_cast<sal_Int32>(nError)).getStr());
OSL_FAIL( OString::number(nError).getStr());
}
#endif

View File

@ -919,7 +919,7 @@ void ScXMLExport::WriteSingleColumn(const sal_Int32 nRepeatColumns, const sal_In
AddAttribute(XML_NAMESPACE_TABLE, XML_VISIBILITY, XML_COLLAPSE);
if (nRepeatColumns > 1)
{
OUString sOUEndCol(OUString::valueOf(static_cast <sal_Int32> (nRepeatColumns)));
OUString sOUEndCol(OUString::number(nRepeatColumns));
AddAttribute(sAttrColumnsRepeated, sOUEndCol);
}
if (nIndex != -1)
@ -4161,7 +4161,7 @@ void ScXMLExport::WriteExternalRefCaches()
{
if (nMaxColsUsed > 1)
AddAttribute(XML_NAMESPACE_TABLE, XML_NUMBER_COLUMNS_REPEATED,
OUString::valueOf(static_cast<sal_Int32>(nMaxColsUsed)));
OUString::number(nMaxColsUsed));
SvXMLElementExport aElemColumn(*this, XML_NAMESPACE_TABLE, XML_TABLE_COLUMN, true, true);
}

View File

@ -271,9 +271,9 @@ IMPL_LINK_NOARG( ScDataBarSettingsDlg, TypeSelectHdl )
if(!maEdMin.GetText().Len())
{
if(nSelectMin == COLORSCALE_PERCENTILE || nSelectMin == COLORSCALE_PERCENT)
maEdMin.SetText(rtl::OUString::valueOf(static_cast<sal_Int32>(50)));
maEdMin.SetText(OUString::number(50));
else
maEdMin.SetText(rtl::OUString::valueOf(static_cast<sal_Int32>(0)));
maEdMin.SetText(OUString::number(0));
}
}
@ -286,9 +286,9 @@ IMPL_LINK_NOARG( ScDataBarSettingsDlg, TypeSelectHdl )
if(!maEdMax.GetText().Len())
{
if(nSelectMax == COLORSCALE_PERCENTILE || nSelectMax == COLORSCALE_PERCENT)
maEdMax.SetText(rtl::OUString::valueOf(static_cast<sal_Int32>(50)));
maEdMax.SetText(OUString::number(50));
else
maEdMax.SetText(rtl::OUString::valueOf(static_cast<sal_Int32>(0)));
maEdMax.SetText(OUString::number(0));
}
}
return 0;

View File

@ -835,7 +835,7 @@ ScColorScale3FrmtEntry::ScColorScale3FrmtEntry( Window* pParent, ScDocument* pDo
maLbEntryTypeMin.SelectEntryPos(0);
maLbEntryTypeMiddle.SelectEntryPos(2);
maLbEntryTypeMax.SelectEntryPos(1);
maEdMiddle.SetText(rtl::OUString::valueOf(static_cast<sal_Int32>(50)));
maEdMiddle.SetText(OUString::number(50));
}
FreeResource();

View File

@ -1129,7 +1129,7 @@ String SdDrawDocument::CreatePageNumValue(sal_uInt16 nNum) const
aPageNumValue += sal_Unicode(' ');
break;
default:
aPageNumValue += rtl::OUString::valueOf(static_cast<sal_Int32>(nNum));
aPageNumValue += OUString::number(nNum);
}
return(aPageNumValue);

View File

@ -78,7 +78,7 @@ sal_uInt32 ExSoundEntry::GetSize( sal_uInt32 nId ) const
if ( !aExtension.isEmpty() ) // String Atom ( instance 1 - extension of sound )
nSize += aExtension.getLength() * 2 + 8;
rtl::OUString aId( rtl::OUString::valueOf(static_cast<sal_Int32>(nId)) ); // String Atom ( instance 2 - reference id )
rtl::OUString aId( OUString::number(nId) ); // String Atom ( instance 2 - reference id )
nSize += 2 * aId.getLength() + 8;
nSize += nFileSize + 8; // SoundData Atom
@ -116,7 +116,7 @@ void ExSoundEntry::Write( SvStream& rSt, sal_uInt32 nId ) const
rSt << aExtension[i];
}
// id of sound ( instance 2 )
rtl::OUString aId( rtl::OUString::valueOf(static_cast<sal_Int32>(nId) ) );
rtl::OUString aId( OUString::number(nId ) );
sal_Int32 nIdLen = aId.getLength();
rSt << (sal_uInt32)( ( EPP_CString << 16 ) | 32 ) << (sal_uInt32)( nIdLen * 2 );
for ( i = 0; i < nIdLen; ++i )

View File

@ -1875,7 +1875,7 @@ String ImplSdPPTImport::ReadSound(sal_uInt32 nSoundRef) const
}
if ( bRefStrValid )
{
if ( rtl::OUString::valueOf(static_cast<sal_Int32>(nSoundRef)) == aRefStr )
if ( OUString::number(nSoundRef) == aRefStr )
{
rStCtrl.Seek( nPosMerk2 );
if ( SeekToRec( rStCtrl, PPT_PST_CString, nStrLen, NULL, 0 ) )

View File

@ -648,7 +648,7 @@ Window * lcl_GetTopmostParent( Window * pWindow )
void CustomAnimationCreateDialog::setPosition()
{
SvtViewOptions aDlgOpt(
E_TABDIALOG, rtl::OUString::valueOf(static_cast<sal_Int32>(DLG_CUSTOMANIMATION_CREATE)));
E_TABDIALOG, OUString::number(DLG_CUSTOMANIMATION_CREATE));
if ( aDlgOpt.Exists() )
{
SetWindowState( rtl::OUStringToOString(aDlgOpt.GetWindowState(),
@ -676,7 +676,7 @@ void CustomAnimationCreateDialog::storePosition()
{
// save settings (screen position and current page)
SvtViewOptions aDlgOpt(
E_TABDIALOG, rtl::OUString::valueOf(static_cast<sal_Int32>(DLG_CUSTOMANIMATION_CREATE)));
E_TABDIALOG, OUString::number(DLG_CUSTOMANIMATION_CREATE));
aDlgOpt.SetWindowState(OStringToOUString(
GetWindowState(WINDOWSTATE_MASK_POS), RTL_TEXTENCODING_ASCII_US));
}

View File

@ -124,22 +124,22 @@ CopyDlg::~CopyDlg()
{
String& rStr = GetExtraData();
rStr = OUString::valueOf(static_cast<sal_Int64>(maNumFldCopies.GetValue()));
rStr = OUString::number(maNumFldCopies.GetValue());
rStr.Append( TOKEN );
rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldMoveX.GetValue()));
rStr += OUString::number(maMtrFldMoveX.GetValue());
rStr.Append( TOKEN );
rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldMoveY.GetValue()));
rStr += OUString::number(maMtrFldMoveY.GetValue());
rStr.Append( TOKEN );
rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldAngle.GetValue()));
rStr += OUString::number(maMtrFldAngle.GetValue());
rStr.Append( TOKEN );
rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldWidth.GetValue()));
rStr += OUString::number(maMtrFldWidth.GetValue());
rStr.Append( TOKEN );
rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldHeight.GetValue()));
rStr += OUString::number(maMtrFldHeight.GetValue());
rStr.Append( TOKEN );
rStr += OUString::valueOf( (long)maLbStartColor.GetSelectEntryColor().GetColor() );

View File

@ -138,7 +138,7 @@ void FuPresentationObjects::DoExecute( SfxRequest& )
String aStr(SdResId( STR_LAYOUT_OUTLINE ));
aStyleName.Append( aStr );
aStyleName.Append( sal_Unicode(' ') );
aStyleName.Append( OUString::valueOf( static_cast<sal_Int32>( nDepth ) ) );
aStyleName.Append( OUString::number( nDepth ) );
}
SfxStyleSheetBasePool* pStyleSheetPool = mpDocSh->GetStyleSheetPool();

View File

@ -299,7 +299,7 @@ void ConfigurationAccess::SaveConfiguration()
for( k = 1; k < maSettings.size(); k++ )
{
OptimizerSettings& rSettings( maSettings[ k ] );
OUString aElementName( TKGet( TK_Template ).concat( OUString::valueOf( static_cast< sal_Int32 >( k ) ) ) );
OUString aElementName( TKGet( TK_Template ).concat( OUString::number( k ) ) );
Reference< lang::XSingleServiceFactory > xChildFactory ( xSet, UNO_QUERY_THROW );
Reference< container::XNameReplace > xChild( xChildFactory->createInstance(), UNO_QUERY_THROW );
xNameContainer->insertByName( aElementName, Any( xChild ) );

View File

@ -278,7 +278,7 @@ css::registry::RegistryKeyType Key::getKeyType(rtl::OUString const & rKeyName)
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key getKeyType:"
" underlying RegistryKey::getKeyType() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
switch (type) {
@ -311,7 +311,7 @@ css::registry::RegistryValueType Key::getValueType()
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key getValueType:"
" underlying RegistryKey::getValueInfo() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
switch (type) {
@ -360,7 +360,7 @@ sal_Int32 Key::getLongValue() throw (
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key getLongValue:"
" underlying RegistryKey::getValue() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
return value;
@ -378,7 +378,7 @@ void Key::setLongValue(sal_Int32 value)
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key setLongValue:"
" underlying RegistryKey::setValue() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
}
@ -409,7 +409,7 @@ css::uno::Sequence< sal_Int32 > Key::getLongListValue() throw (
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key getLongListValue:"
" underlying RegistryKey::getLongListValue() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
sal_uInt32 n = list.getLength();
@ -445,7 +445,7 @@ void Key::setLongListValue(css::uno::Sequence< sal_Int32 > const & seqValue)
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key setLongListValue:"
" underlying RegistryKey::setLongListValue() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
}
@ -464,7 +464,7 @@ rtl::OUString Key::getAsciiValue() throw (
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key getAsciiValue:"
" underlying RegistryKey::getValueInfo() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
if (type != RG_VALUETYPE_STRING) {
@ -473,7 +473,7 @@ rtl::OUString Key::getAsciiValue() throw (
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key getAsciiValue:"
" underlying RegistryKey type = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(type))),
OUString::number(type)),
static_cast< OWeakObject * >(this));
}
// size contains terminating null (error in underlying registry.cxx):
@ -502,7 +502,7 @@ rtl::OUString Key::getAsciiValue() throw (
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key getAsciiValue:"
" underlying RegistryKey::getValue() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
if (list[size - 1] != '\0') {
@ -559,7 +559,7 @@ void Key::setAsciiValue(rtl::OUString const & value)
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key setAsciiValue:"
" underlying RegistryKey::setValue() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
}
@ -591,7 +591,7 @@ css::uno::Sequence< rtl::OUString > Key::getAsciiListValue() throw (
"com.sun.star.registry.SimpleRegistry key"
" getAsciiListValue: underlying"
" RegistryKey::getStringListValue() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
sal_uInt32 n = list.getLength();
@ -665,7 +665,7 @@ void Key::setAsciiListValue(
"com.sun.star.registry.SimpleRegistry key"
" setAsciiListValue: underlying"
" RegistryKey::setStringListValue() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
}
@ -684,7 +684,7 @@ rtl::OUString Key::getStringValue() throw (
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key getStringValue:"
" underlying RegistryKey::getValueInfo() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
if (type != RG_VALUETYPE_UNICODE) {
@ -693,7 +693,7 @@ rtl::OUString Key::getStringValue() throw (
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key getStringValue:"
" underlying RegistryKey type = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(type))),
OUString::number(type)),
static_cast< OWeakObject * >(this));
}
// size contains terminating null and is *2 (error in underlying
@ -723,7 +723,7 @@ rtl::OUString Key::getStringValue() throw (
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key getStringValue:"
" underlying RegistryKey::getValue() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
if (list[size/2 - 1] != 0) {
@ -753,7 +753,7 @@ void Key::setStringValue(rtl::OUString const & value)
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key setStringValue:"
" underlying RegistryKey::setValue() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
}
@ -785,7 +785,7 @@ css::uno::Sequence< rtl::OUString > Key::getStringListValue() throw (
"com.sun.star.registry.SimpleRegistry key"
" getStringListValue: underlying"
" RegistryKey::getUnicodeListValue() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
sal_uInt32 n = list.getLength();
@ -824,7 +824,7 @@ void Key::setStringListValue(
"com.sun.star.registry.SimpleRegistry key"
" setStringListValue: underlying"
" RegistryKey::setUnicodeListValue() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
}
@ -844,7 +844,7 @@ css::uno::Sequence< sal_Int8 > Key::getBinaryValue()
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key getBinaryValue:"
" underlying RegistryKey::getValueInfo() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
if (type != RG_VALUETYPE_BINARY) {
@ -853,7 +853,7 @@ css::uno::Sequence< sal_Int8 > Key::getBinaryValue()
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key getBinaryValue:"
" underlying RegistryKey type = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(type))),
OUString::number(type)),
static_cast< OWeakObject * >(this));
}
if (size > SAL_MAX_INT32) {
@ -872,7 +872,7 @@ css::uno::Sequence< sal_Int8 > Key::getBinaryValue()
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key getBinaryValue:"
" underlying RegistryKey::getValue() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
return value;
@ -892,7 +892,7 @@ void Key::setBinaryValue(css::uno::Sequence< sal_Int8 > const & value)
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key setBinaryValue:"
" underlying RegistryKey::setValue() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
}
@ -915,7 +915,7 @@ css::uno::Reference< css::registry::XRegistryKey > Key::openKey(
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key openKey:"
" underlying RegistryKey::openKey() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
}
@ -938,7 +938,7 @@ css::uno::Reference< css::registry::XRegistryKey > Key::createKey(
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key createKey:"
" underlying RegistryKey::createKey() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
}
@ -954,7 +954,7 @@ void Key::closeKey()
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key closeKey:"
" underlying RegistryKey::closeKey() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
}
@ -970,7 +970,7 @@ void Key::deleteKey(rtl::OUString const & rKeyName)
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key deleteKey:"
" underlying RegistryKey::deleteKey() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
}
@ -988,7 +988,7 @@ Key::openKeys()
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key openKeys:"
" underlying RegistryKey::openSubKeys() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
sal_uInt32 n = list.getLength();
@ -1021,7 +1021,7 @@ css::uno::Sequence< rtl::OUString > Key::getKeyNames()
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key getKeyNames:"
" underlying RegistryKey::getKeyNames() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
sal_uInt32 n = list.getLength();
@ -1056,7 +1056,7 @@ sal_Bool Key::createLink(
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key createLink:"
" underlying RegistryKey::createLink() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
default:
return false;
@ -1074,7 +1074,7 @@ void Key::deleteLink(rtl::OUString const & rLinkName)
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key deleteLink:"
" underlying RegistryKey::deleteLink() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
}
@ -1091,7 +1091,7 @@ rtl::OUString Key::getLinkTarget(rtl::OUString const & rLinkName)
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key getLinkTarget:"
" underlying RegistryKey::getLinkTarget() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
return target;
@ -1109,7 +1109,7 @@ rtl::OUString Key::getResolvedName(rtl::OUString const & aKeyName)
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry key getResolvedName:"
" underlying RegistryKey::getResolvedName() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
return resolved;
@ -1140,7 +1140,7 @@ void SimpleRegistry::open(
rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM(
"): underlying Registry::open/create() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
}
@ -1161,7 +1161,7 @@ void SimpleRegistry::close()
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry.close:"
" underlying Registry::close() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
}
@ -1177,7 +1177,7 @@ void SimpleRegistry::destroy()
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry.destroy:"
" underlying Registry::destroy() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
}
@ -1194,7 +1194,7 @@ css::uno::Reference< css::registry::XRegistryKey > SimpleRegistry::getRootKey()
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry.getRootKey:"
" underlying Registry::getRootKey() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
return new Key(this, root);
@ -1236,7 +1236,7 @@ void SimpleRegistry::mergeKey(
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.registry.SimpleRegistry.mergeKey:"
" underlying Registry::getRootKey/mergeKey() = ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
OUString::number(err)),
static_cast< OWeakObject * >(this));
}
}

View File

@ -238,7 +238,7 @@ void SfxAllEnumItem::InsertValue( sal_uInt16 nValue )
DBG_CHKTHIS(SfxAllEnumItem, 0);
SfxAllEnumValue_Impl *pVal = new SfxAllEnumValue_Impl;
pVal->nValue = nValue;
pVal->aText = rtl::OUString::valueOf(static_cast<sal_Int32>(nValue));
pVal->aText = OUString::number(nValue);
if ( !pValues )
pValues = new SfxAllEnumValueArr;

View File

@ -463,7 +463,7 @@ SfxItemPresentation CntUInt32Item::GetPresentation(SfxItemPresentation,
const
{
DBG_CHKTHIS(CntUInt32Item, 0);
rText = rtl::OUString::valueOf(static_cast<sal_Int64>(m_nValue));
rText = OUString::number(m_nValue);
return SFX_ITEM_PRESENTATION_NAMELESS;
}

View File

@ -94,7 +94,7 @@ SfxItemPresentation SfxInt16Item::GetPresentation(SfxItemPresentation,
const IntlWrapper *) const
{
DBG_CHKTHIS(SfxInt16Item, 0);
rText = rtl::OUString::valueOf(static_cast<sal_Int32>(m_nValue));
rText = OUString::number(m_nValue);
return SFX_ITEM_PRESENTATION_NAMELESS;
}

View File

@ -71,9 +71,7 @@ SfxItemPresentation SfxXRangeItem::GetPresentation
const IntlWrapper *
) const
{
rText = rtl::OUString::valueOf(static_cast<sal_Int64>(nFrom));
rText += ':';
rText += rtl::OUString::valueOf(static_cast<sal_Int64>(nTo));
rText = OUString::number(nFrom) + ":" + OUString::number(nTo);
return SFX_ITEM_PRESENTATION_NAMELESS;
}

View File

@ -726,12 +726,12 @@ void BrowserScrollBar::Tracking( const TrackingEvent& rTEvt )
sal_uLong nPos = GetThumbPos();
if ( nPos != _nLastPos )
{
String aTip( rtl::OUString::valueOf(static_cast<sal_Int32>(nPos)) );
String aTip( OUString::number(nPos) );
aTip += '/';
if ( _pDataWin->GetRealRowCount().Len() )
aTip += _pDataWin->GetRealRowCount();
else
aTip += rtl::OUString::valueOf(static_cast<sal_Int32>(GetRangeMax()));
aTip += OUString::number(GetRangeMax());
Rectangle aRect( GetPointerPosPixel(), Size( GetTextHeight(), GetTextWidth( aTip ) ) );
if ( _nTip )

View File

@ -894,7 +894,7 @@ void Calendar::ImplDraw( sal_Bool bPaint )
String aMonthText( maCalendarWrapper.getDisplayName(
i18n::CalendarDisplayIndex::MONTH, nMonth-1, 1));
aMonthText += ' ';
aMonthText += rtl::OUString::valueOf(static_cast<sal_Int64>(nYear));
aMonthText += OUString::number(nYear);
long nMonthTextWidth = GetTextWidth( aMonthText );
long nMonthOffX1 = 0;
long nMonthOffX2 = 0;
@ -912,7 +912,7 @@ void Calendar::ImplDraw( sal_Bool bPaint )
aMonthText = maCalendarWrapper.getDisplayName(
i18n::CalendarDisplayIndex::MONTH, nMonth-1, 0);
aMonthText += ' ';
aMonthText += rtl::OUString::valueOf(static_cast<sal_Int64>(nYear));
aMonthText += OUString::number(nYear);
nMonthTextWidth = GetTextWidth( aMonthText );
}
long nTempOff = (mnMonthWidth-nMonthTextWidth+1)/2;

View File

@ -497,7 +497,7 @@ void Ruler::ImplDrawTicks( long nMin, long nMax, long nStart, long nCenter )
nMaxWidth /= nTickUnit;
else
nMaxWidth /= aImplRulerUnitTab[mnUnitIndex].nTickUnit;
OUString aNumStr = OUString::valueOf(static_cast<sal_Int32>(nMaxWidth));
OUString aNumStr = OUString::number(nMaxWidth);
long nTxtWidth = GetTextWidth( aNumStr );
const long nTextOff = 4;
if ( nTickWidth < nTxtWidth+nTextOff )

View File

@ -186,7 +186,7 @@ static ::rtl::OUString ImplGetParameterString( const TransferableObjectDescripto
}
aParams += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ";viewaspect=\"" ));
aParams += ::rtl::OUString::valueOf( static_cast< sal_Int32 >( rObjDesc.mnViewAspect ) );
aParams += OUString::number( rObjDesc.mnViewAspect );
aParams += aChar;
aParams += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ";width=\"" ));

View File

@ -229,7 +229,7 @@ namespace svt { namespace uno
DBG_UNHANDLED_EXCEPTION();
}
// fallback for ill-behaved clients: the numeric state
return rtl::OUString::valueOf(static_cast<sal_Int32>(i_nState));
return OUString::number(i_nState);
}
//------------------------------------------------------------------------------------------------------------------

View File

@ -123,7 +123,7 @@ void CompressGraphicsDialog::Update()
aViewSizeString += String( " x " ) ;
aViewSizeString += GetUnitString( m_aViewSize100mm.Height(), eFieldUnit, cSeparator );
aViewSizeString += ( " at " ) ;
aViewSizeString += OUString::valueOf( static_cast< sal_Int32 >(aValX));
aViewSizeString += OUString::number( aValX);
aViewSizeString += ( " DPI" ) ;
m_pFixedText3->SetText(aViewSizeString);
@ -144,13 +144,13 @@ void CompressGraphicsDialog::Update()
void CompressGraphicsDialog::UpdateNewWidthMF()
{
int nPixelX = (sal_Int32)( GetViewWidthInch() * m_dResolution );
m_pMFNewWidth->SetText( OUString::valueOf( static_cast< sal_Int32 >( nPixelX ) ));
m_pMFNewWidth->SetText( OUString::number( nPixelX ));
}
void CompressGraphicsDialog::UpdateNewHeightMF()
{
int nPixelY = (sal_Int32)( GetViewHeightInch() * m_dResolution );
m_pMFNewHeight->SetText( OUString::valueOf( static_cast< sal_Int32 >( nPixelY ) ));
m_pMFNewHeight->SetText( OUString::number( nPixelY ));
}
void CompressGraphicsDialog::UpdateResolutionLB()

View File

@ -815,8 +815,7 @@ SfxItemPresentation SdrPercentItem::GetPresentation(
SfxItemPresentation ePres, SfxMapUnit /*eCoreMetric*/,
SfxMapUnit /*ePresMetric*/, XubString& rText, const IntlWrapper *) const
{
rText = OUString::valueOf( static_cast< sal_Int32 >(GetValue()));
rText += sal_Unicode('%');
rText = OUString::number(GetValue()) + "%";
if(ePres == SFX_ITEM_PRESENTATION_COMPLETE)
{
@ -1299,9 +1298,7 @@ SfxItemPresentation SdrTextAniDelayItem::GetPresentation(
SfxItemPresentation ePres, SfxMapUnit /*eCoreMetric*/, SfxMapUnit /*ePresMetric*/,
XubString& rText, const IntlWrapper *) const
{
rText = OUString::valueOf( static_cast< sal_Int32 >( GetValue()));
rText += sal_Unicode('m');
rText += sal_Unicode('s');
rText = OUString::number(GetValue()) + "ms";
if(ePres == SFX_ITEM_PRESENTATION_COMPLETE)
{
@ -1486,7 +1483,7 @@ SfxItemPresentation SdrCustomShapeAdjustmentItem::GetPresentation(
SfxMapUnit /*ePresentationMetric*/, XubString &rText, const IntlWrapper *) const
{
sal_uInt32 i, nCount = GetCount();
rText.Append( OUString::valueOf( static_cast<sal_Int32>( nCount ) ) );
rText.Append( OUString::number( nCount ) );
for ( i = 0; i < nCount; i++ )
{
rText += sal_Unicode( ' ' );
@ -2055,8 +2052,7 @@ SfxItemPresentation SdrSignedPercentItem::GetPresentation(
SfxItemPresentation ePres, SfxMapUnit /*eCoreMetric*/, SfxMapUnit /*ePresMetric*/,
XubString& rText, const IntlWrapper *) const
{
rText = OUString::valueOf( static_cast< sal_Int32 >( GetValue()));
rText += sal_Unicode('%');
rText = OUString::number(GetValue()) + "%";
if(ePres == SFX_ITEM_PRESENTATION_COMPLETE)
{

View File

@ -594,7 +594,7 @@ const XubString& SdrMarkList::GetMarkDescription() const
}
aNam.Insert(sal_Unicode(' '), 0);
aNam.Insert(OUString::valueOf( static_cast<sal_Int32>(nAnz) ), 0);
aNam.Insert(OUString::number( nAnz ), 0);
}
((SdrMarkList*)(this))->maMarkName = aNam;
@ -694,7 +694,7 @@ const XubString& SdrMarkList::GetPointMarkDescription(sal_Bool bGlue) const
}
aNam.Insert(sal_Unicode(' '), 0);
aNam.Insert(OUString::valueOf( static_cast<sal_Int32>(nMarkPtObjAnz) ), 0);
aNam.Insert(OUString::number( nMarkPtObjAnz ), 0);
}
XubString aStr1;
@ -706,7 +706,7 @@ const XubString& SdrMarkList::GetPointMarkDescription(sal_Bool bGlue) const
else
{
aStr1 = (ImpGetResStr(bGlue ? STR_ViewMarkedGluePoints : STR_ViewMarkedPoints));
aStr1.SearchAndReplaceAscii("%2", OUString::valueOf( static_cast<sal_Int32>(nMarkPtAnz) ));
aStr1.SearchAndReplaceAscii("%2", OUString::number( nMarkPtAnz ));
}
aStr1.SearchAndReplaceAscii("%1", aNam);

View File

@ -1954,7 +1954,7 @@ void SdrMarkView::ImpTakeDescriptionStr(sal_uInt16 nStrCacheID, XubString& rStr,
if(nPos != STRING_NOTFOUND)
{
rStr.Erase(nPos, 2);
rStr.Insert(OUString::valueOf( static_cast<sal_Int32>(nVal) ), nPos);
rStr.Insert(OUString::number( nVal ), nPos);
}
}

View File

@ -1096,7 +1096,7 @@ void SdrObject::ImpTakeDescriptionStr(sal_uInt16 nStrCacheID, rtl::OUString& rSt
if (nPos >= 0)
// Replace '%2' with the passed value.
rStr = rStr.replaceAt(
nPos, 2, rtl::OUString::valueOf(static_cast<sal_Int32>(nVal)));
nPos, 2, OUString::number(nVal));
}
void SdrObject::ImpForcePlusData()

View File

@ -1946,7 +1946,7 @@ void SdrPathObj::TakeObjNameSingul(XubString& rName) const
if(STRING_NOTFOUND != nPos)
{
rName.Erase(nPos, 2);
rName.Insert(rtl::OUString::valueOf(static_cast<sal_Int32>(nPointCount)), nPos);
rName.Insert(OUString::number(nPointCount), nPos);
}
}
}

View File

@ -99,7 +99,7 @@ SfxItemPresentation XLineTransparenceItem::GetPresentation
rText = XubString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) );
rText.AppendAscii(": ");
case SFX_ITEM_PRESENTATION_NAMELESS:
rText += OUString::valueOf(static_cast<sal_Int32>(GetValue()));
rText += OUString::number(GetValue());
rText += sal_Unicode('%');
return ePres;
default:
@ -495,7 +495,7 @@ SfxItemPresentation XFillTransparenceItem::GetPresentation
rText = XubString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) );
rText.AppendAscii(": ");
case SFX_ITEM_PRESENTATION_NAMELESS:
rText += OUString::valueOf(static_cast<sal_Int32>(GetValue()));
rText += OUString::number(GetValue());
rText += sal_Unicode('%');
return ePres;
default:
@ -622,7 +622,7 @@ SfxItemPresentation XGradientStepCountItem::GetPresentation
// rText = XubString( ResId( RID_SVXSTR_GRADIENTSTEPCOUNT, DIALOG_MGR() ) );
// rText += ": ";
case SFX_ITEM_PRESENTATION_NAMELESS:
rText += OUString::valueOf(static_cast<sal_Int32>(GetValue()));
rText += OUString::number(GetValue());
return ePres;
default:
return SFX_ITEM_PRESENTATION_NONE;

View File

@ -237,7 +237,7 @@ SwField* SwPageNumberField::Copy() const
rtl::OUString SwPageNumberField::GetPar2() const
{
return rtl::OUString::valueOf(static_cast<sal_Int32>(nOffset));
return OUString::number(nOffset);
}
void SwPageNumberField::SetPar2(const rtl::OUString& rStr)
@ -2126,7 +2126,7 @@ SwField* SwRefPageSetField::Copy() const
rtl::OUString SwRefPageSetField::GetPar2() const
{
return rtl::OUString::valueOf(static_cast<sal_Int32>(GetOffset()));
return OUString::number(GetOffset());
}
void SwRefPageSetField::SetPar2(const rtl::OUString& rStr)

View File

@ -114,7 +114,7 @@ void SwDateTimeField::SetPar2(const rtl::OUString& rStr)
rtl::OUString SwDateTimeField::GetPar2() const
{
if (nOffset)
return rtl::OUString::valueOf(static_cast<sal_Int32>(nOffset));
return OUString::number(nOffset);
return rtl::OUString();
}

View File

@ -501,7 +501,7 @@ static sal_uInt16 lcl_html_fillEndNoteInfo( const SwEndNoteInfo& rInfo,
}
if( rInfo.nFtnOffset > 0 )
{
pParts[1] = rtl::OUString::valueOf(static_cast<sal_Int32>(rInfo.nFtnOffset));
pParts[1] = OUString::number(rInfo.nFtnOffset);
nParts = 2;
}
if( !rInfo.GetPrefix().isEmpty() )

View File

@ -2779,10 +2779,10 @@ void DocxAttributeOutput::SectionFormProtection( bool bProtected )
void DocxAttributeOutput::SectionLineNumbering( sal_uLong nRestartNo, const SwLineNumberInfo& rLnNumInfo )
{
FastAttributeList* pAttr = m_pSerializer->createAttrList();
pAttr->add( FSNS( XML_w, XML_countBy ), OString::valueOf(static_cast<sal_Int32>(rLnNumInfo.GetCountBy())).getStr());
pAttr->add( FSNS( XML_w, XML_countBy ), OString::number(rLnNumInfo.GetCountBy()).getStr());
pAttr->add( FSNS( XML_w, XML_restart ), rLnNumInfo.IsRestartEachPage() ? "newPage" : "continuous" );
if( rLnNumInfo.GetPosFromLeft())
pAttr->add( FSNS( XML_w, XML_distance ), OString::valueOf(static_cast<sal_Int32>(rLnNumInfo.GetPosFromLeft())).getStr());
pAttr->add( FSNS( XML_w, XML_distance ), OString::number(rLnNumInfo.GetPosFromLeft()).getStr());
if( nRestartNo )
pAttr->add( FSNS( XML_w, XML_start ), OString::valueOf( long( nRestartNo )).getStr());
XFastAttributeListRef xAttrs( pAttr );
@ -2990,7 +2990,7 @@ void DocxAttributeOutput::EmbedFontStyle( const OUString& name, int tag, const c
if( file.open( osl_File_OpenFlag_Write ) != osl::File::E_None )
return;
uno::Reference< com::sun::star::io::XOutputStream > xOutStream = m_rExport.GetFilter().openFragmentStream(
OUString( "word/fonts/font" ) + OUString::valueOf( static_cast< sal_Int32 >( m_nextFontId )) + ".ttf",
OUString( "word/fonts/font" ) + OUString::number(m_nextFontId) + ".ttf",
"application/vnd.openxmlformats-officedocument.obfuscatedFont" );
// Not much point in trying hard with the obfuscation key, whoever reads the spec can read the font anyway,
// so just alter the first and last part of the key.
@ -3041,7 +3041,7 @@ void DocxAttributeOutput::EmbedFontStyle( const OUString& name, int tag, const c
xOutStream->closeOutput();
OString relId = OUStringToOString( GetExport().GetFilter().addRelation( m_pSerializer->getOutputStream(),
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",
OUString( "fonts/font" ) + OUString::valueOf( static_cast< sal_Int32 >( m_nextFontId )) + ".ttf" ), RTL_TEXTENCODING_UTF8 );
OUString( "fonts/font" ) + OUString::number(m_nextFontId) + ".ttf" ), RTL_TEXTENCODING_UTF8 );
m_pSerializer->singleElementNS( XML_w, tag,
FSNS( XML_r, XML_id ), relId.getStr(),
FSNS( XML_w, XML_fontKey ), fontKeyStr,
@ -3178,7 +3178,7 @@ void DocxAttributeOutput::NumberingLevel( sal_uInt8 nLevel,
m_pSerializer->startElementNS( XML_w, XML_tabs, FSEND );
m_pSerializer->singleElementNS( XML_w, XML_tab,
FSNS( XML_w, XML_val ), "num",
FSNS( XML_w, XML_pos ), OString::valueOf( static_cast<sal_Int32>(nListTabPos) ).getStr(),
FSNS( XML_w, XML_pos ), OString::number( nListTabPos ).getStr(),
FSEND );
m_pSerializer->endElementNS( XML_w, XML_tabs );
}

View File

@ -50,7 +50,7 @@ namespace
{
void setValue(FixedText *pWidget, sal_uLong nValue)
{
rtl::OUString sValue(rtl::OUString::valueOf(static_cast<sal_Int64>(nValue)));
rtl::OUString sValue(OUString::number(nValue));
pWidget->SetText(sValue);
}
}

View File

@ -1246,10 +1246,10 @@ void SwView::StateStatusLine(SfxItemSet &rSet)
const sal_uInt32 stringId = selectionStats.nWord? STR_STATUSBAR_WORDCOUNT : STR_STATUSBAR_WORDCOUNT_NO_SELECTION;
rtl::OUString wordCount(SW_RES(stringId));
wordCount = wordCount.replaceAll("$1", rtl::OUString::valueOf(static_cast<sal_Int64>(documentStats.nWord)));
wordCount = wordCount.replaceAll("$1", OUString::number(documentStats.nWord));
if (selectionStats.nWord)
{
wordCount = wordCount.replaceAll("$2", rtl::OUString::valueOf(static_cast<sal_Int64>(selectionStats.nWord)));
wordCount = wordCount.replaceAll("$2", OUString::number(selectionStats.nWord));
}
rSet.Put(SfxStringItem(FN_STAT_WORDCOUNT, wordCount));

View File

@ -1095,7 +1095,7 @@ SfxItemPresentation SwRotationGrf::GetPresentation(
rText = SW_RESSTR( STR_ROTATION );
else if( rText.Len() )
rText.Erase();
( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '\xB0';
( rText += OUString::number( GetValue() )) += '\xB0';
break;
default:
@ -1118,7 +1118,7 @@ SfxItemPresentation SwLuminanceGrf::GetPresentation(
rText = SW_RESSTR( STR_LUMINANCE );
else if( rText.Len() )
rText.Erase();
( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '%';
( rText += OUString::number( GetValue() )) += '%';
break;
default:
@ -1141,7 +1141,7 @@ SfxItemPresentation SwContrastGrf::GetPresentation(
rText = SW_RESSTR( STR_CONTRAST );
else if( rText.Len() )
rText.Erase();
( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '%';
( rText += OUString::number( GetValue() )) += '%';
break;
default:
@ -1177,7 +1177,7 @@ SfxItemPresentation SwChannelGrf::GetPresentation(
}
else if( rText.Len() )
rText.Erase();
( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '%';
( rText += OUString::number( GetValue() )) += '%';
break;
default:
@ -1245,7 +1245,7 @@ SfxItemPresentation SwTransparencyGrf::GetPresentation(
rText = SW_RESSTR( STR_TRANSPARENCY );
else if( rText.Len() )
rText.Erase();
( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '%';
( rText += OUString::number( GetValue() )) += '%';
break;
default:

View File

@ -201,7 +201,7 @@ void MkFilter::Filter()
for ( size_t i=0; i<nCount; i++ )
{
MkLine *pMkLine = (*pLine->pPrivateTnrLst)[ i ];
rtl::OString aLine = pMkLine->aLine.replaceAll(aTnr, rtl::OString::valueOf(static_cast<sal_Int32>(n)));
rtl::OString aLine = pMkLine->aLine.replaceAll(aTnr, OString::number(n));
fputs( aLine.getStr(), pOut );
fprintf( stderr, "o" );
}

View File

@ -702,7 +702,7 @@ UniString GetTypeRes_Impl( const ResId& rTypeId )
{
// Return on resource errors
static int bInUse = sal_False;
rtl::OUString aTypStr(OUString::valueOf(static_cast<sal_Int32>(rTypeId.GetId())));
rtl::OUString aTypStr(OUString::number(rTypeId.GetId()));
if ( !bInUse )
{

View File

@ -1066,7 +1066,7 @@ void UcbContent::open( const rtl::OUString & rName, const UniString& rInput,
{
OUString aId( xContentAccess->
queryContentIdentifierString() );
aText = OUString::valueOf( static_cast<sal_Int64>(++n) ) + ") " + aId + " : ";
aText = OUString::number( ++n ) + ") " + aId + " : ";
}
// Title:
@ -1150,7 +1150,7 @@ void UcbContent::open( const rtl::OUString & rName, const UniString& rInput,
if ( bTiming )
{
nTime = Time::GetSystemTicks() - nTime;
OUString aText = "Operation took " + OUString::valueOf(static_cast<sal_Int64>(nTime)) + " ms.";
OUString aText = "Operation took " + OUString::number(nTime) + " ms.";
print( aText );
}
}
@ -1176,7 +1176,7 @@ void UcbContent::openAll( Ucb& rUCB, bool bPrint, bool bTiming, bool bSort,
OUString aText;
for ( sal_uInt32 i = aEntry.m_nLevel; i != 0; --i )
aText += '=';
aText = aText + "LEVEL " + OUString::valueOf(static_cast<sal_Int64>(aEntry.m_nLevel));
aText = aText + "LEVEL " + OUString::number(aEntry.m_nLevel);
uno::Reference< ucb::XContentIdentifier > xID;
if ( aEntry.m_bUseIdentifier )
@ -1225,7 +1225,7 @@ void UcbContent::openAll( Ucb& rUCB, bool bPrint, bool bTiming, bool bSort,
if ( bTiming )
{
nTime = Time::GetSystemTicks() - nTime;
OUString aText = "Operation took " + OUString::valueOf(static_cast<sal_Int64>(nTime)) + " ms.";
OUString aText = "Operation took " + OUString::number(nTime) + " ms.";
print( aText );
}
}

View File

@ -37,7 +37,7 @@ rtl::OUString toAbsoluteFileUrl(rtl::OUString const & relativePathname) {
(rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM(
"osl_getProcessWorkingDir failed with ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(e1))),
OUString::number(e1)),
css::uno::Reference< css::uno::XInterface >());
}
rtl::OUString url;
@ -50,7 +50,7 @@ rtl::OUString toAbsoluteFileUrl(rtl::OUString const & relativePathname) {
"osl::FileBase::getFileURLFromSystemPath(")) +
relativePathname +
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(") failed with ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(e2))),
OUString::number(e2)),
css::uno::Reference< css::uno::XInterface >());
}
rtl::OUString absUrl;
@ -62,7 +62,7 @@ rtl::OUString toAbsoluteFileUrl(rtl::OUString const & relativePathname) {
"osl::FileBase::getAbsoluteFileURL(")) +
cwd + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(", ")) + url +
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(") failed with ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(e2))),
OUString::number(e2)),
css::uno::Reference< css::uno::XInterface >());
}
return absUrl;

View File

@ -32,7 +32,7 @@ rtl::OUString uniquePipeName(rtl::OUString const & name) {
CPPUNIT_ASSERT_EQUAL(
osl_Process_E_None,
osl_getProcessInfo(0, osl_Process_IDENTIFIER, &info));
return name + rtl::OUString::valueOf(static_cast< sal_Int64 >(info.Ident));
return name + OUString::number(info.Ident);
}
}

View File

@ -1204,7 +1204,7 @@ PrinterGfx::DrawEPS( const Rectangle& rBoundingBox, void* pPtr, sal_uInt32 nSize
static sal_uInt16 nEps = 0;
if( aDocTitle.isEmpty() )
aDocTitle = rtl::OString::valueOf(static_cast<sal_Int32>(nEps++));
aDocTitle = OString::number(nEps++);
if( fLeft != fRight && fTop != fBottom )
{

View File

@ -808,7 +808,7 @@ Window *VclBuilder::makeObject(Window *pParent, const OString &name, const OStri
//Make up a name for it
OString sTabPageId = get_by_window(pParent) +
OString("-page") +
OString::valueOf(static_cast<sal_Int32>(nNewPageCount));
OString::number(nNewPageCount);
m_aChildren.push_back(WinAndId(sTabPageId, pPage, false));
pPage->SetHelpId(m_sHelpRoot + sTabPageId);

View File

@ -300,7 +300,7 @@ int WW8IntValue::getInt() const
OUString WW8IntValue::getString() const
{
return OUString::valueOf(static_cast<sal_Int32>(mValue));
return OUString::number(mValue);
}
uno::Any WW8IntValue::getAny() const

View File

@ -193,7 +193,7 @@ std::string RTFValue::toString() const
if (!m_sValue.isEmpty() || m_bForceString)
return OUStringToOString(m_sValue, RTL_TEXTENCODING_UTF8).getStr();
else
return OString::valueOf(static_cast<sal_Int32>(m_nValue)).getStr();
return OString::number(m_nValue).getStr();
}
RTFValue* RTFValue::Clone()

View File

@ -2119,7 +2119,7 @@ void XMLShapeExport::ImpExportMediaShape(
const OUString aVolumeDBStr( "VolumeDB" );
xPropSet->getPropertyValue( OUString( "VolumeDB" ) ) >>= nVolumeDB;
mrExport.AddAttribute( XML_NAMESPACE_DRAW, XML_NAME, aVolumeDBStr );
mrExport.AddAttribute( XML_NAMESPACE_DRAW, XML_VALUE, OUString::valueOf( static_cast< sal_Int32 >( nVolumeDB ) ) );
mrExport.AddAttribute( XML_NAMESPACE_DRAW, XML_VALUE, OUString::number( nVolumeDB ) );
delete( new SvXMLElementExport( mrExport, XML_NAMESPACE_DRAW, XML_PARAM, sal_False, sal_True ) );
media::ZoomLevel eZoom;

View File

@ -73,7 +73,7 @@ XmlReader::XmlReader(rtl::OUString const & fileUrl)
throw css::uno::RuntimeException(
(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("cannot open ")) +
fileUrl_ + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(": ")) +
rtl::OUString::valueOf(static_cast< sal_Int32 >(e))),
OUString::number(e)),
css::uno::Reference< css::uno::XInterface >());
}
e = osl_getFileSize(fileHandle_, &fileSize_);
@ -91,7 +91,7 @@ XmlReader::XmlReader(rtl::OUString const & fileUrl)
}
throw css::uno::RuntimeException(
("cannot mmap " + fileUrl_ + " (" +
rtl::OUString::valueOf(static_cast< sal_Int32 >(e)) + ")"),
OUString::number(e) + ")"),
css::uno::Reference< css::uno::XInterface >());
}
namespaceIris_.push_back(