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:
parent
d912979b4f
commit
63bcb139b9
@ -1521,7 +1521,7 @@ sal_Bool BasicManager::LoadLib( sal_uInt16 nLib )
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
StringErrorInfo* pErrInf = new StringErrorInfo( ERRCODE_BASMGR_LIBLOAD, OUString(), ERRCODE_BUTTON_OK );
|
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;
|
return bDone;
|
||||||
}
|
}
|
||||||
|
@ -1663,7 +1663,7 @@ void StarBASIC::MakeErrorText( SbError nId, const OUString& aMsg )
|
|||||||
}
|
}
|
||||||
else if( nOldID != 0 )
|
else if( nOldID != 0 )
|
||||||
{
|
{
|
||||||
OUString aStdMsg = "Fehler " + OUString::valueOf(static_cast<sal_Int32>(nOldID)) +
|
OUString aStdMsg = "Fehler " + OUString::number(nOldID) +
|
||||||
": Kein Fehlertext verfuegbar!";
|
": Kein Fehlertext verfuegbar!";
|
||||||
GetSbData()->aErrMsg = aStdMsg;
|
GetSbData()->aErrMsg = aStdMsg;
|
||||||
}
|
}
|
||||||
|
@ -830,7 +830,7 @@ void SbxObject::Dump( SvStream& rStrm, sal_Bool bFill )
|
|||||||
<< ( aNameStr.isEmpty() ? "<unnamed>" : aNameStr.getStr() ) << "', "
|
<< ( aNameStr.isEmpty() ? "<unnamed>" : aNameStr.getStr() ) << "', "
|
||||||
<< "of class '" << aClassNameStr.getStr() << "', "
|
<< "of class '" << aClassNameStr.getStr() << "', "
|
||||||
<< "counts "
|
<< "counts "
|
||||||
<< rtl::OString::valueOf(static_cast<sal_Int64>(GetRefCount())).getStr()
|
<< OString::number(GetRefCount()).getStr()
|
||||||
<< " refs, ";
|
<< " refs, ";
|
||||||
if ( GetParent() )
|
if ( GetParent() )
|
||||||
{
|
{
|
||||||
|
@ -174,7 +174,7 @@ void writeValueContent(oslFileHandle handle, sal_Bool value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void writeValueContent(oslFileHandle handle, sal_Int16 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) {
|
void writeValueContent(oslFileHandle handle, sal_Int32 value) {
|
||||||
@ -201,7 +201,7 @@ void writeValueContent(oslFileHandle handle, OUString const & value) {
|
|||||||
writeData(
|
writeData(
|
||||||
handle, RTL_CONSTASCII_STRINGPARAM("<unicode oor:scalar=\""));
|
handle, RTL_CONSTASCII_STRINGPARAM("<unicode oor:scalar=\""));
|
||||||
writeData(
|
writeData(
|
||||||
handle, rtl::OString::valueOf(static_cast< sal_Int32 >(c)));
|
handle, OString::number(c));
|
||||||
writeData(handle, RTL_CONSTASCII_STRINGPARAM("\"/>"));
|
writeData(handle, RTL_CONSTASCII_STRINGPARAM("\"/>"));
|
||||||
i = j + 1;
|
i = j + 1;
|
||||||
} else if (c == '\x0D') {
|
} else if (c == '\x0D') {
|
||||||
|
@ -395,7 +395,7 @@ void ODbaseIndex::createINFEntry()
|
|||||||
while (aNewEntry.isEmpty())
|
while (aNewEntry.isEmpty())
|
||||||
{
|
{
|
||||||
aNewEntry = rtl::OString(RTL_CONSTASCII_STRINGPARAM("NDX"));
|
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++)
|
for (sal_uInt16 i = 0; i < aInfFile.GetKeyCount(); i++)
|
||||||
{
|
{
|
||||||
aKeyName = aInfFile.GetKeyName(i);
|
aKeyName = aInfFile.GetKeyName(i);
|
||||||
|
@ -1956,7 +1956,7 @@ sal_Bool ODbaseTable::UpdateBuffer(OValueRefVector& rRow, OValueRefRow pOrgRow,
|
|||||||
if (!m_pMemoStream || !WriteMemo(thisColVal, nBlockNo))
|
if (!m_pMemoStream || !WriteMemo(thisColVal, nBlockNo))
|
||||||
break;
|
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'
|
//align aBlock at the right of a nLen sequence, fill to the left with '0'
|
||||||
rtl::OStringBuffer aStr;
|
rtl::OStringBuffer aStr;
|
||||||
comphelper::string::padToLength(aStr, nLen - aBlock.getLength(), '0');
|
comphelper::string::padToLength(aStr, nLen - aBlock.getLength(), '0');
|
||||||
|
@ -3256,15 +3256,12 @@ sal_Bool SvxCharPositionPage::FillItemSet( SfxItemSet& rSet )
|
|||||||
|
|
||||||
void SvxCharPositionPage::FillUserData()
|
void SvxCharPositionPage::FillUserData()
|
||||||
{
|
{
|
||||||
const sal_Unicode cTok = ';';
|
const OUString cTok( ";" );
|
||||||
|
|
||||||
OUString sUser( OUString::valueOf( static_cast<sal_Int32>(m_nSuperEsc)) );
|
OUString sUser = OUString::number( m_nSuperEsc ) + cTok +
|
||||||
sUser += OUString( cTok );
|
OUString::number( m_nSubEsc ) + cTok +
|
||||||
sUser += OUString::valueOf( static_cast<sal_Int32>(m_nSubEsc) );
|
OUString::number( m_nSuperProp ) + cTok +
|
||||||
sUser += OUString (cTok );
|
OUString::number( m_nSubProp );
|
||||||
sUser += OUString::valueOf( static_cast<sal_Int32>(m_nSuperProp) );
|
|
||||||
sUser += OUString ( cTok );
|
|
||||||
sUser += OUString::valueOf( static_cast<sal_Int32>(m_nSubProp) );
|
|
||||||
SetUserData( sUser );
|
SetUserData( sUser );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -972,8 +972,8 @@ void SvxNumberFormatTabPage::UpdateOptions_Impl( sal_Bool bCheckCatChange /*= sa
|
|||||||
m_pEdLeadZeroes->Enable();
|
m_pEdLeadZeroes->Enable();
|
||||||
m_pBtnNegRed->Enable();
|
m_pBtnNegRed->Enable();
|
||||||
m_pBtnThousand->Enable();
|
m_pBtnThousand->Enable();
|
||||||
m_pEdDecimals->SetText( OUString::valueOf( static_cast<sal_Int32>(nDecimals) ) );
|
m_pEdDecimals->SetText( OUString::number( nDecimals ) );
|
||||||
m_pEdLeadZeroes->SetText( OUString::valueOf( static_cast<sal_Int32>(nZeroes) ) );
|
m_pEdLeadZeroes->SetText( OUString::number( nZeroes ) );
|
||||||
m_pBtnNegRed->Check( bNegRed );
|
m_pBtnNegRed->Check( bNegRed );
|
||||||
m_pBtnThousand->Check( bThousand );
|
m_pBtnThousand->Check( bThousand );
|
||||||
break;
|
break;
|
||||||
@ -994,8 +994,8 @@ void SvxNumberFormatTabPage::UpdateOptions_Impl( sal_Bool bCheckCatChange /*= sa
|
|||||||
m_pEdLeadZeroes->Disable();
|
m_pEdLeadZeroes->Disable();
|
||||||
m_pBtnNegRed->Disable();
|
m_pBtnNegRed->Disable();
|
||||||
m_pBtnThousand->Disable();
|
m_pBtnThousand->Disable();
|
||||||
m_pEdDecimals->SetText( OUString::valueOf( static_cast<sal_Int32>(0) ) );
|
m_pEdDecimals->SetText( OUString::number( 0 ) );
|
||||||
m_pEdLeadZeroes->SetText( OUString::valueOf( static_cast<sal_Int32>(0) ) );
|
m_pEdLeadZeroes->SetText( OUString::number( 0 ) );
|
||||||
m_pBtnNegRed->Check( sal_False );
|
m_pBtnNegRed->Check( sal_False );
|
||||||
m_pBtnThousand->Check( sal_False );
|
m_pBtnThousand->Check( sal_False );
|
||||||
}
|
}
|
||||||
|
@ -1266,7 +1266,7 @@ void SvxNumOptionsTabPage::Reset( const SfxItemSet& rSet )
|
|||||||
if(!m_pLevelLB->GetEntryCount())
|
if(!m_pLevelLB->GetEntryCount())
|
||||||
{
|
{
|
||||||
for(sal_uInt16 i = 1; i <= pSaveNum->GetLevelCount(); i++)
|
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)
|
if(pSaveNum->GetLevelCount() > 1)
|
||||||
{
|
{
|
||||||
OUString sEntry( "1 - " );
|
OUString sEntry( "1 - " );
|
||||||
@ -3018,7 +3018,7 @@ void SvxNumPositionTabPage::Reset( const SfxItemSet& rSet )
|
|||||||
if(!m_pLevelLB->GetEntryCount())
|
if(!m_pLevelLB->GetEntryCount())
|
||||||
{
|
{
|
||||||
for(sal_uInt16 i = 1; i <= pSaveNum->GetLevelCount(); i++)
|
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)
|
if(pSaveNum->GetLevelCount() > 1)
|
||||||
{
|
{
|
||||||
OUString sEntry( "1 - " );
|
OUString sEntry( "1 - " );
|
||||||
|
@ -1223,7 +1223,7 @@ sal_uInt16 SvxColorTabPage::PercentToColor_Impl( sal_uInt16 nPercent )
|
|||||||
void SvxColorTabPage::FillUserData()
|
void SvxColorTabPage::FillUserData()
|
||||||
{
|
{
|
||||||
// the color model is saved in the Ini-file
|
// the color model is saved in the Ini-file
|
||||||
SetUserData( OUString::valueOf( static_cast<sal_Int32>(eCM) ) );
|
SetUserData( OUString::number( eCM ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
|
@ -878,7 +878,7 @@ XubString SvxTabStop::GetValueString() const
|
|||||||
XubString aStr;
|
XubString aStr;
|
||||||
|
|
||||||
aStr += sal_Unicode( '(' );
|
aStr += sal_Unicode( '(' );
|
||||||
aStr += rtl::OUString::valueOf(static_cast<sal_Int32>(nTabPos));
|
aStr += OUString::number(nTabPos);
|
||||||
aStr += cpDelim;
|
aStr += cpDelim;
|
||||||
aStr += EE_RESSTR(RID_SVXITEMS_TAB_ADJUST_BEGIN + (sal_uInt16)eAdjustment);
|
aStr += EE_RESSTR(RID_SVXITEMS_TAB_ADJUST_BEGIN + (sal_uInt16)eAdjustment);
|
||||||
|
|
||||||
|
@ -262,7 +262,7 @@ void DffPropertyReader::ReadPropSet( SvStream& rIn, void* pClientData ) const
|
|||||||
if ( IsProperty( DFF_Prop_adjustValue ) || IsProperty( DFF_Prop_pVertices ) )
|
if ( IsProperty( DFF_Prop_adjustValue ) || IsProperty( DFF_Prop_pVertices ) )
|
||||||
{
|
{
|
||||||
pOut->WriteLine( "" );
|
pOut->WriteLine( "" );
|
||||||
OString aString("ShapeId: " + OString::valueOf(static_cast<sal_Int32>(nShapeId)));
|
OString aString("ShapeId: " + OString::number(nShapeId));
|
||||||
pOut->WriteLine(aString);
|
pOut->WriteLine(aString);
|
||||||
}
|
}
|
||||||
for ( sal_uInt32 i = DFF_Prop_adjustValue; i <= DFF_Prop_adjust10Value; i++ )
|
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 )
|
if ( nLen )
|
||||||
{
|
{
|
||||||
pOut->WriteLine( "" );
|
pOut->WriteLine( "" );
|
||||||
OStringBuffer aDesc("Property:" + OString::valueOf(static_cast<sal_Int32>(i)) +
|
OStringBuffer aDesc("Property:" + OString::number(i) +
|
||||||
" Size:" + OString::valueOf(nLen));
|
" Size:" + OString::valueOf(nLen));
|
||||||
pOut->WriteLine(aDesc.makeStringAndClear());
|
pOut->WriteLine(aDesc.makeStringAndClear());
|
||||||
sal_Int16 nNumElem, nNumElemMem, nNumSize;
|
sal_Int16 nNumElem, nNumElemMem, nNumSize;
|
||||||
rIn >> nNumElem >> nNumElemMem >> nNumSize;
|
rIn >> nNumElem >> nNumElemMem >> nNumSize;
|
||||||
aDesc.append("Entries: " + OString::valueOf(static_cast<sal_Int32>(nNumElem)) +
|
aDesc.append("Entries: " + OString::number(nNumElem) +
|
||||||
" Size:" + OString::valueOf(static_cast<sal_Int32>(nNumSize)));
|
" Size:" + OString::number(nNumSize));
|
||||||
pOut->WriteLine(aDesc.makeStringAndClear());
|
pOut->WriteLine(aDesc.makeStringAndClear());
|
||||||
if ( nNumSize < 0 )
|
if ( nNumSize < 0 )
|
||||||
nNumSize = ( ( -nNumSize ) >> 2 );
|
nNumSize = ( ( -nNumSize ) >> 2 );
|
||||||
@ -331,7 +331,7 @@ void DffPropertyReader::ReadPropSet( SvStream& rIn, void* pClientData ) const
|
|||||||
}
|
}
|
||||||
else
|
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))));
|
":" + OString::valueOf(static_cast<sal_Int32>(GetPropertyValue(i))));
|
||||||
pOut->WriteLine(aString);
|
pOut->WriteLine(aString);
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ const uno::Reference< container::XIndexContainer >&
|
|||||||
while( xNameCont->hasByName( sName ) )
|
while( xNameCont->hasByName( sName ) )
|
||||||
{
|
{
|
||||||
sName = sWW8_form;
|
sName = sWW8_form;
|
||||||
sName += OUString::valueOf( static_cast<sal_Int32>(++n) );
|
sName += OUString::number( ++n );
|
||||||
}
|
}
|
||||||
|
|
||||||
const uno::Reference< lang::XMultiServiceFactory > &rServiceFactory
|
const uno::Reference< lang::XMultiServiceFactory > &rServiceFactory
|
||||||
|
@ -418,7 +418,7 @@ OUString XMLFilterSettingsDialog::createUniqueInterfaceName( const OUString& rIn
|
|||||||
if( nDefaultNumber )
|
if( nDefaultNumber )
|
||||||
{
|
{
|
||||||
aInterfaceName += OUString( sal_Unicode( ' ' ) );
|
aInterfaceName += OUString( sal_Unicode( ' ' ) );
|
||||||
aInterfaceName += OUString::valueOf( static_cast<sal_Int32>(nDefaultNumber) );
|
aInterfaceName += OUString::number( nDefaultNumber );
|
||||||
}
|
}
|
||||||
|
|
||||||
return aInterfaceName;
|
return aInterfaceName;
|
||||||
@ -922,7 +922,7 @@ void XMLFilterSettingsDialog::onSave()
|
|||||||
if( nFilters > 0 )
|
if( nFilters > 0 )
|
||||||
{
|
{
|
||||||
aMsg = RESIDSTR(STR_FILTERS_HAVE_BEEN_SAVED);
|
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() );
|
aMsg = aMsg.replaceFirst( sPlaceholder, aURL.GetName() );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -997,7 +997,7 @@ void XMLFilterSettingsDialog::onOpen()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
aMsg = RESIDSTR(STR_FILTERS_INSTALLED);
|
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 );
|
InfoBox aBox(this, aMsg );
|
||||||
|
@ -36,7 +36,7 @@ rtl::OString SvToken::GetTokenAsString() const
|
|||||||
aStr = aString;
|
aStr = aString;
|
||||||
break;
|
break;
|
||||||
case SVTOKEN_INTEGER:
|
case SVTOKEN_INTEGER:
|
||||||
aStr = rtl::OString::valueOf(static_cast<sal_Int64>(nLong));
|
aStr = OString::number(nLong);
|
||||||
break;
|
break;
|
||||||
case SVTOKEN_STRING:
|
case SVTOKEN_STRING:
|
||||||
aStr = aString;
|
aStr = aString;
|
||||||
|
@ -561,9 +561,9 @@ void SvMetaExtern::WriteAttributes( SvIdlDataBase & rBase, SvStream & rOutStm,
|
|||||||
rOutStm << "uuid(" << rtl::OUStringToOString(GetUUId().GetHexName(), RTL_TEXTENCODING_UTF8).getStr() << ")," << endl;
|
rOutStm << "uuid(" << rtl::OUStringToOString(GetUUId().GetHexName(), RTL_TEXTENCODING_UTF8).getStr() << ")," << endl;
|
||||||
WriteTab( rOutStm, nTab );
|
WriteTab( rOutStm, nTab );
|
||||||
rOutStm << "version("
|
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;
|
<< ")," << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -413,9 +413,9 @@ sal_Bool SvVersion::ReadSvIdl( SvTokenStream & rInStm )
|
|||||||
sal_Bool SvVersion::WriteSvIdl( SvStream & rOutStm )
|
sal_Bool SvVersion::WriteSvIdl( SvStream & rOutStm )
|
||||||
{
|
{
|
||||||
rOutStm << SvHash_Version()->GetName().getStr() << '('
|
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;
|
return sal_True;
|
||||||
}
|
}
|
||||||
|
@ -1152,7 +1152,7 @@ void SvMetaSlot::WriteSlot( const rtl::OString& rShellName, sal_uInt16 nCount,
|
|||||||
sal_Bool bIsEnumSlot = 0 != pEnumValue;
|
sal_Bool bIsEnumSlot = 0 != pEnumValue;
|
||||||
|
|
||||||
rOutStm << "// Slot Nr. "
|
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>(
|
rtl::OString aSlotIdValue(rtl::OString::valueOf(static_cast<sal_Int32>(
|
||||||
GetSlotId().GetValue())));
|
GetSlotId().GetValue())));
|
||||||
@ -1364,7 +1364,7 @@ void SvMetaSlot::WriteSlot( const rtl::OString& rShellName, sal_uInt16 nCount,
|
|||||||
rOutStm << ',' << endl;
|
rOutStm << ',' << endl;
|
||||||
WriteTab( rOutStm, 4 );
|
WriteTab( rOutStm, 4 );
|
||||||
rOutStm
|
rOutStm
|
||||||
<< rtl::OString::valueOf(static_cast<sal_Int32>(nCount)).getStr()
|
<< OString::number(nCount).getStr()
|
||||||
<< "/*Offset*/, ";
|
<< "/*Offset*/, ";
|
||||||
|
|
||||||
if( IsMethod() )
|
if( IsMethod() )
|
||||||
@ -1494,7 +1494,7 @@ void SvMetaSlot::WriteHelpId( SvIdlDataBase & rBase, SvStream & rOutStm,
|
|||||||
{
|
{
|
||||||
rTable[ nSId ] = this;
|
rTable[ nSId ] = this;
|
||||||
rOutStm << "#define " << GetSlotId().getString().getStr() << '\t'
|
rOutStm << "#define " << GetSlotId().getString().getStr() << '\t'
|
||||||
<< rtl::OString::valueOf(static_cast<sal_Int32>(nSId)).getStr()
|
<< OString::number(nSId).getStr()
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1519,7 +1519,7 @@ void SvMetaSlot::WriteHelpId( SvIdlDataBase & rBase, SvStream & rOutStm,
|
|||||||
sal_Bool bIdOk = sal_False;
|
sal_Bool bIdOk = sal_False;
|
||||||
if( rBase.FindId( aSId, &nSId2 ) )
|
if( rBase.FindId( aSId, &nSId2 ) )
|
||||||
{
|
{
|
||||||
aSId = rtl::OString::valueOf(static_cast<sal_Int32>(nSId2));
|
aSId = OString::number(nSId2);
|
||||||
bIdOk = sal_True;
|
bIdOk = sal_True;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1402,7 +1402,7 @@ void SvMetaType::WriteSfxItem(
|
|||||||
rtl::OStringBuffer aAttrArray;
|
rtl::OStringBuffer aAttrArray;
|
||||||
sal_uLong nAttrCount = MakeSfx( aAttrArray );
|
sal_uLong nAttrCount = MakeSfx( aAttrArray );
|
||||||
rtl::OString aAttrCount(
|
rtl::OString aAttrCount(
|
||||||
rtl::OString::valueOf(static_cast<sal_Int32>(nAttrCount)));
|
OString::number(nAttrCount));
|
||||||
aTypeName.append(aAttrCount);
|
aTypeName.append(aAttrCount);
|
||||||
|
|
||||||
rOutStm << "extern " << aTypeName.getStr()
|
rOutStm << "extern " << aTypeName.getStr()
|
||||||
|
@ -1159,7 +1159,7 @@ void Export::InsertListEntry(const rtl::OString &rText, const rtl::OString &rLin
|
|||||||
if ( nListIndex + 1 > pList->size())
|
if ( nListIndex + 1 > pList->size())
|
||||||
{
|
{
|
||||||
ExportListEntry *pNew = new ExportListEntry();
|
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);
|
pList->push_back(pNew);
|
||||||
}
|
}
|
||||||
ExportListEntry *pCurEntry = (*pList)[ nListIndex ];
|
ExportListEntry *pCurEntry = (*pList)[ nListIndex ];
|
||||||
@ -1464,7 +1464,7 @@ sal_Bool Export::PrepareTextToMerge(rtl::OString &rText, sal_uInt16 nTyp,
|
|||||||
{
|
{
|
||||||
pResData->sId = GetPairedListID( sLastListLine );
|
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())
|
if (!pResData->sGId.isEmpty())
|
||||||
pResData->sGId = pResData->sGId + rtl::OString('.');
|
pResData->sGId = pResData->sGId + rtl::OString('.');
|
||||||
@ -1692,7 +1692,7 @@ void Export::MergeRest( ResData *pResData, sal_uInt16 nMode )
|
|||||||
*/
|
*/
|
||||||
sal_Bool bTranslateList = true;
|
sal_Bool bTranslateList = true;
|
||||||
if( !bPairedList ){
|
if( !bPairedList ){
|
||||||
pResData->sId = OString::valueOf(static_cast<sal_Int32>(nMaxIndex));
|
pResData->sId = OString::number(nMaxIndex);
|
||||||
pEntrys = pMergeDataFile->GetPFormEntrys( pResData );
|
pEntrys = pMergeDataFile->GetPFormEntrys( pResData );
|
||||||
if ( !pEntrys )
|
if ( !pEntrys )
|
||||||
bTranslateList = false;
|
bTranslateList = false;
|
||||||
@ -1815,7 +1815,7 @@ void Export::MergeRest( ResData *pResData, sal_uInt16 nMode )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
pResData->sId = rtl::OString::valueOf(static_cast<sal_Int32>(nIdx));
|
pResData->sId = OString::number(nIdx);
|
||||||
PFormEntrys *oldEntry = pEntrys;
|
PFormEntrys *oldEntry = pEntrys;
|
||||||
pEntrys = pMergeDataFile->GetPFormEntrys( pResData );
|
pEntrys = pMergeDataFile->GetPFormEntrys( pResData );
|
||||||
if( !pEntrys )
|
if( !pEntrys )
|
||||||
|
@ -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 )
|
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 )
|
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 )
|
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 )
|
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 )
|
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 )
|
void StringHelper::appendDec( OUStringBuffer& rStr, sal_Int32 nData, sal_Int32 nWidth, sal_Unicode cFill )
|
||||||
|
@ -262,7 +262,7 @@ static void impl_AddInt( sax_fastparser::FastAttributeList *pAttrList, sal_Int32
|
|||||||
if ( !pAttrList )
|
if ( !pAttrList )
|
||||||
return;
|
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 )
|
inline sal_uInt16 impl_GetUInt16( const sal_uInt8* &pVal )
|
||||||
|
@ -635,7 +635,7 @@ const Reference< XIndexContainer >&
|
|||||||
while( xNameCont->hasByName( sName ) )
|
while( xNameCont->hasByName( sName ) )
|
||||||
{
|
{
|
||||||
sName = sStdName;
|
sName = sStdName;
|
||||||
sName += OUString::valueOf(static_cast<sal_Int32>(++n));
|
sName += OUString::number(++n);
|
||||||
}
|
}
|
||||||
|
|
||||||
const Reference< XMultiServiceFactory > &rServiceFactory
|
const Reference< XMultiServiceFactory > &rServiceFactory
|
||||||
|
@ -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 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);
|
const rtl::OUString hundredthmm(hundredthmmC, sizeof(hundredthmmC)-1, RTL_TEXTENCODING_UTF8);
|
||||||
if ( aSize.Width < MIN_WIDTH && m_nOrientation == 1 )
|
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 )
|
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);
|
OShapeHelper::setSize(aSize,this);
|
||||||
}
|
}
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
@ -112,7 +112,7 @@ void RscError::WriteError( const ERRTYPE& rError, const char * pMessage )
|
|||||||
case ERR_ERROR: {
|
case ERR_ERROR: {
|
||||||
StdLstErr( "!! " );
|
StdLstErr( "!! " );
|
||||||
if( 1 == nErrors )
|
if( 1 == nErrors )
|
||||||
StdLstErr(rtl::OString::valueOf(static_cast<sal_Int32>(nErrors )).getStr());
|
StdLstErr(OString::number(nErrors).getStr());
|
||||||
else
|
else
|
||||||
StdLstErr(rtl::OString::valueOf(static_cast<sal_Int32>(nErrors -1)).getStr());
|
StdLstErr(rtl::OString::valueOf(static_cast<sal_Int32>(nErrors -1)).getStr());
|
||||||
StdLstErr( " Error" );
|
StdLstErr( " Error" );
|
||||||
|
@ -786,7 +786,7 @@ rtl::OUString ScDPDimensionSaveData::CreateGroupDimName(
|
|||||||
{
|
{
|
||||||
rtl::OUString aDimName( rSourceName );
|
rtl::OUString aDimName( rSourceName );
|
||||||
if ( !bUseSource )
|
if ( !bUseSource )
|
||||||
aDimName += rtl::OUString::valueOf(static_cast<sal_Int32>(nAdd));
|
aDimName += OUString::number(nAdd);
|
||||||
bool bExists = false;
|
bool bExists = false;
|
||||||
|
|
||||||
// look for existing group dimensions
|
// look for existing group dimensions
|
||||||
|
@ -2798,7 +2798,7 @@ void ScDPResultDimension::LateInitFrom(
|
|||||||
{
|
{
|
||||||
if ( rParams.IsEnd( nPos ) )
|
if ( rParams.IsEnd( nPos ) )
|
||||||
return;
|
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 );
|
ScDPDimension* pThisDim = rParams.GetDim( nPos );
|
||||||
ScDPLevel* pThisLevel = rParams.GetLevel( nPos );
|
ScDPLevel* pThisLevel = rParams.GetLevel( nPos );
|
||||||
SCROW rThisData = pItemData[nPos];
|
SCROW rThisData = pItemData[nPos];
|
||||||
|
@ -2395,7 +2395,7 @@ void getFormatString(SvNumberFormatter* pFormatter, sal_uLong nFormat, String& r
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if( bAppendPrec )
|
if( bAppendPrec )
|
||||||
rFmtStr += rtl::OUString::valueOf(static_cast<sal_Int32>(nPrec));
|
rFmtStr += OUString::number(nPrec);
|
||||||
const SvNumberformat* pFormat = pFormatter->GetEntry( nFormat );
|
const SvNumberformat* pFormat = pFormatter->GetEntry( nFormat );
|
||||||
if( lcl_FormatHasNegColor( pFormat ) )
|
if( lcl_FormatHasNegColor( pFormat ) )
|
||||||
rFmtStr += '-';
|
rFmtStr += '-';
|
||||||
|
@ -572,7 +572,7 @@ void XclImpAutoFilterData::ReadAutoFilter( XclImpStream& rStrm )
|
|||||||
aEntry.eConnect = SC_AND;
|
aEntry.eConnect = SC_AND;
|
||||||
|
|
||||||
rItem.meType = ScQueryEntry::ByString;
|
rItem.meType = ScQueryEntry::ByString;
|
||||||
rItem.maString = rtl::OUString::valueOf(static_cast<sal_Int32>(nCntOfTop10));
|
rItem.maString = OUString::number(nCntOfTop10);
|
||||||
|
|
||||||
rStrm.Ignore(20);
|
rStrm.Ignore(20);
|
||||||
return;
|
return;
|
||||||
@ -640,7 +640,7 @@ void XclImpAutoFilterData::ReadAutoFilter( XclImpStream& rStrm )
|
|||||||
case EXC_AFTYPE_BOOLERR:
|
case EXC_AFTYPE_BOOLERR:
|
||||||
rStrm >> nBoolErr >> nVal;
|
rStrm >> nBoolErr >> nVal;
|
||||||
rStrm.Ignore( 6 );
|
rStrm.Ignore( 6 );
|
||||||
rItem.maString = rtl::OUString::valueOf(static_cast<sal_Int32>(nVal));
|
rItem.maString = OUString::number(nVal);
|
||||||
bIgnore = (nBoolErr != 0);
|
bIgnore = (nBoolErr != 0);
|
||||||
break;
|
break;
|
||||||
case EXC_AFTYPE_EMPTY:
|
case EXC_AFTYPE_EMPTY:
|
||||||
|
@ -1233,7 +1233,7 @@ rtl::OString createHexStringFromDigit(sal_uInt8 nDigit)
|
|||||||
{
|
{
|
||||||
rtl::OString aString = rtl::OString::valueOf( static_cast<sal_Int32>(nDigit), 16 );
|
rtl::OString aString = rtl::OString::valueOf( static_cast<sal_Int32>(nDigit), 16 );
|
||||||
if(aString.getLength() == 1)
|
if(aString.getLength() == 1)
|
||||||
aString = aString + rtl::OString::valueOf(static_cast<sal_Int32>(0));
|
aString = aString + OString::number(0);
|
||||||
return aString;
|
return aString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,8 +140,8 @@ void XclExpExtDataBar::SaveXml( XclExpXmlStream& rStrm )
|
|||||||
{
|
{
|
||||||
sax_fastparser::FSHelperPtr& rWorksheet = rStrm.GetCurrentStream();
|
sax_fastparser::FSHelperPtr& rWorksheet = rStrm.GetCurrentStream();
|
||||||
rWorksheet->startElementNS( XML_x14, XML_dataBar,
|
rWorksheet->startElementNS( XML_x14, XML_dataBar,
|
||||||
XML_minLength, rtl::OString::valueOf(static_cast<sal_Int32>(0)).getStr(),
|
XML_minLength, OString::number(0).getStr(),
|
||||||
XML_maxLength, rtl::OString::valueOf(static_cast<sal_Int32>(100)).getStr(),
|
XML_maxLength, OString::number(100).getStr(),
|
||||||
XML_axisPosition, getAxisPosition(meAxisPosition),
|
XML_axisPosition, getAxisPosition(meAxisPosition),
|
||||||
FSEND );
|
FSEND );
|
||||||
|
|
||||||
|
@ -1213,7 +1213,7 @@ void XclExpNumFmt::SaveXml( XclExpXmlStream& rStrm )
|
|||||||
{
|
{
|
||||||
sax_fastparser::FSHelperPtr& rStyleSheet = rStrm.GetCurrentStream();
|
sax_fastparser::FSHelperPtr& rStyleSheet = rStrm.GetCurrentStream();
|
||||||
rStyleSheet->singleElement( XML_numFmt,
|
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(),
|
XML_formatCode, rtl::OUStringToOString(maNumFmtString, RTL_TEXTENCODING_UTF8).getStr(),
|
||||||
FSEND );
|
FSEND );
|
||||||
}
|
}
|
||||||
@ -2988,7 +2988,7 @@ void XclExpDxfs::SaveXml( XclExpXmlStream& rStrm )
|
|||||||
|
|
||||||
sax_fastparser::FSHelperPtr& rStyleSheet = rStrm.GetCurrentStream();
|
sax_fastparser::FSHelperPtr& rStyleSheet = rStrm.GetCurrentStream();
|
||||||
rStyleSheet->startElement( XML_dxfs,
|
rStyleSheet->startElement( XML_dxfs,
|
||||||
XML_count, rtl::OString::valueOf( static_cast<sal_Int32>(maDxf.size())).getStr(),
|
XML_count, OString::number(maDxf.size()).getStr(),
|
||||||
FSEND );
|
FSEND );
|
||||||
|
|
||||||
for ( DxfContainer::iterator itr = maDxf.begin(); itr != maDxf.end(); ++itr )
|
for ( DxfContainer::iterator itr = maDxf.begin(); itr != maDxf.end(); ++itr )
|
||||||
|
@ -79,7 +79,7 @@ void XclPCItem::SetDateTime( const DateTime& rDateTime )
|
|||||||
void XclPCItem::SetInteger( sal_Int16 nValue )
|
void XclPCItem::SetInteger( sal_Int16 nValue )
|
||||||
{
|
{
|
||||||
meType = EXC_PCITEM_INTEGER;
|
meType = EXC_PCITEM_INTEGER;
|
||||||
maText = rtl::OUString::valueOf(static_cast<sal_Int32>(nValue));
|
maText = OUString::number(nValue);
|
||||||
mnValue = nValue;
|
mnValue = nValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -484,7 +484,7 @@ OUString XclTools::GetXclBuiltInDefName( sal_Unicode cBuiltIn )
|
|||||||
if( cBuiltIn < SAL_N_ELEMENTS( ppcDefNames ) )
|
if( cBuiltIn < SAL_N_ELEMENTS( ppcDefNames ) )
|
||||||
return rtl::OUString::createFromAscii(ppcDefNames[cBuiltIn]);
|
return rtl::OUString::createFromAscii(ppcDefNames[cBuiltIn]);
|
||||||
else
|
else
|
||||||
return rtl::OUString::valueOf(static_cast<sal_Int32>(cBuiltIn));
|
return OUString::number(cBuiltIn);
|
||||||
}
|
}
|
||||||
|
|
||||||
OUString XclTools::GetBuiltInDefName( sal_Unicode cBuiltIn )
|
OUString XclTools::GetBuiltInDefName( sal_Unicode cBuiltIn )
|
||||||
|
@ -424,7 +424,7 @@ void ScHTMLExport::WriteOverview()
|
|||||||
{
|
{
|
||||||
pDoc->GetName( nTab, aStr );
|
pDoc->GetName( nTab, aStr );
|
||||||
rStrm << "<A HREF=\"#table"
|
rStrm << "<A HREF=\"#table"
|
||||||
<< rtl::OString::valueOf(static_cast<sal_Int32>(nTab)).getStr()
|
<< OString::number(nTab).getStr()
|
||||||
<< "\">";
|
<< "\">";
|
||||||
OUT_STR( aStr );
|
OUT_STR( aStr );
|
||||||
rStrm << "</A>";
|
rStrm << "</A>";
|
||||||
@ -686,7 +686,7 @@ void ScHTMLExport::WriteTables()
|
|||||||
|
|
||||||
// Anker festlegen:
|
// Anker festlegen:
|
||||||
rStrm << "<A NAME=\"table"
|
rStrm << "<A NAME=\"table"
|
||||||
<< rtl::OString::valueOf(static_cast<sal_Int32>(nTab)).getStr()
|
<< OString::number(nTab).getStr()
|
||||||
<< "\">";
|
<< "\">";
|
||||||
TAG_ON( OOO_STRING_SVTOOLS_HTML_head1 );
|
TAG_ON( OOO_STRING_SVTOOLS_HTML_head1 );
|
||||||
OUT_STR( aStrOut );
|
OUT_STR( aStrOut );
|
||||||
|
@ -1832,7 +1832,7 @@ sal_Int32 lclCreatePredefinedFormat( const Reference< XNumberFormats >& rxNumFmt
|
|||||||
catch( Exception& )
|
catch( Exception& )
|
||||||
{
|
{
|
||||||
OSL_FAIL( OStringBuffer( "lclCreatePredefinedFormat - cannot create predefined number format " ).
|
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;
|
return nIndex;
|
||||||
}
|
}
|
||||||
|
@ -1018,7 +1018,7 @@ sal_uLong Sc10Import::Import()
|
|||||||
#if OSL_DEBUG_LEVEL > 0
|
#if OSL_DEBUG_LEVEL > 0
|
||||||
if (nError)
|
if (nError)
|
||||||
{
|
{
|
||||||
OSL_FAIL( rtl::OString::valueOf(static_cast<sal_Int32>(nError)).getStr());
|
OSL_FAIL( OString::number(nError).getStr());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -919,7 +919,7 @@ void ScXMLExport::WriteSingleColumn(const sal_Int32 nRepeatColumns, const sal_In
|
|||||||
AddAttribute(XML_NAMESPACE_TABLE, XML_VISIBILITY, XML_COLLAPSE);
|
AddAttribute(XML_NAMESPACE_TABLE, XML_VISIBILITY, XML_COLLAPSE);
|
||||||
if (nRepeatColumns > 1)
|
if (nRepeatColumns > 1)
|
||||||
{
|
{
|
||||||
OUString sOUEndCol(OUString::valueOf(static_cast <sal_Int32> (nRepeatColumns)));
|
OUString sOUEndCol(OUString::number(nRepeatColumns));
|
||||||
AddAttribute(sAttrColumnsRepeated, sOUEndCol);
|
AddAttribute(sAttrColumnsRepeated, sOUEndCol);
|
||||||
}
|
}
|
||||||
if (nIndex != -1)
|
if (nIndex != -1)
|
||||||
@ -4161,7 +4161,7 @@ void ScXMLExport::WriteExternalRefCaches()
|
|||||||
{
|
{
|
||||||
if (nMaxColsUsed > 1)
|
if (nMaxColsUsed > 1)
|
||||||
AddAttribute(XML_NAMESPACE_TABLE, XML_NUMBER_COLUMNS_REPEATED,
|
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);
|
SvXMLElementExport aElemColumn(*this, XML_NAMESPACE_TABLE, XML_TABLE_COLUMN, true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -271,9 +271,9 @@ IMPL_LINK_NOARG( ScDataBarSettingsDlg, TypeSelectHdl )
|
|||||||
if(!maEdMin.GetText().Len())
|
if(!maEdMin.GetText().Len())
|
||||||
{
|
{
|
||||||
if(nSelectMin == COLORSCALE_PERCENTILE || nSelectMin == COLORSCALE_PERCENT)
|
if(nSelectMin == COLORSCALE_PERCENTILE || nSelectMin == COLORSCALE_PERCENT)
|
||||||
maEdMin.SetText(rtl::OUString::valueOf(static_cast<sal_Int32>(50)));
|
maEdMin.SetText(OUString::number(50));
|
||||||
else
|
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(!maEdMax.GetText().Len())
|
||||||
{
|
{
|
||||||
if(nSelectMax == COLORSCALE_PERCENTILE || nSelectMax == COLORSCALE_PERCENT)
|
if(nSelectMax == COLORSCALE_PERCENTILE || nSelectMax == COLORSCALE_PERCENT)
|
||||||
maEdMax.SetText(rtl::OUString::valueOf(static_cast<sal_Int32>(50)));
|
maEdMax.SetText(OUString::number(50));
|
||||||
else
|
else
|
||||||
maEdMax.SetText(rtl::OUString::valueOf(static_cast<sal_Int32>(0)));
|
maEdMax.SetText(OUString::number(0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -835,7 +835,7 @@ ScColorScale3FrmtEntry::ScColorScale3FrmtEntry( Window* pParent, ScDocument* pDo
|
|||||||
maLbEntryTypeMin.SelectEntryPos(0);
|
maLbEntryTypeMin.SelectEntryPos(0);
|
||||||
maLbEntryTypeMiddle.SelectEntryPos(2);
|
maLbEntryTypeMiddle.SelectEntryPos(2);
|
||||||
maLbEntryTypeMax.SelectEntryPos(1);
|
maLbEntryTypeMax.SelectEntryPos(1);
|
||||||
maEdMiddle.SetText(rtl::OUString::valueOf(static_cast<sal_Int32>(50)));
|
maEdMiddle.SetText(OUString::number(50));
|
||||||
}
|
}
|
||||||
FreeResource();
|
FreeResource();
|
||||||
|
|
||||||
|
@ -1129,7 +1129,7 @@ String SdDrawDocument::CreatePageNumValue(sal_uInt16 nNum) const
|
|||||||
aPageNumValue += sal_Unicode(' ');
|
aPageNumValue += sal_Unicode(' ');
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
aPageNumValue += rtl::OUString::valueOf(static_cast<sal_Int32>(nNum));
|
aPageNumValue += OUString::number(nNum);
|
||||||
}
|
}
|
||||||
|
|
||||||
return(aPageNumValue);
|
return(aPageNumValue);
|
||||||
|
@ -78,7 +78,7 @@ sal_uInt32 ExSoundEntry::GetSize( sal_uInt32 nId ) const
|
|||||||
if ( !aExtension.isEmpty() ) // String Atom ( instance 1 - extension of sound )
|
if ( !aExtension.isEmpty() ) // String Atom ( instance 1 - extension of sound )
|
||||||
nSize += aExtension.getLength() * 2 + 8;
|
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 += 2 * aId.getLength() + 8;
|
||||||
|
|
||||||
nSize += nFileSize + 8; // SoundData Atom
|
nSize += nFileSize + 8; // SoundData Atom
|
||||||
@ -116,7 +116,7 @@ void ExSoundEntry::Write( SvStream& rSt, sal_uInt32 nId ) const
|
|||||||
rSt << aExtension[i];
|
rSt << aExtension[i];
|
||||||
}
|
}
|
||||||
// id of sound ( instance 2 )
|
// 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();
|
sal_Int32 nIdLen = aId.getLength();
|
||||||
rSt << (sal_uInt32)( ( EPP_CString << 16 ) | 32 ) << (sal_uInt32)( nIdLen * 2 );
|
rSt << (sal_uInt32)( ( EPP_CString << 16 ) | 32 ) << (sal_uInt32)( nIdLen * 2 );
|
||||||
for ( i = 0; i < nIdLen; ++i )
|
for ( i = 0; i < nIdLen; ++i )
|
||||||
|
@ -1875,7 +1875,7 @@ String ImplSdPPTImport::ReadSound(sal_uInt32 nSoundRef) const
|
|||||||
}
|
}
|
||||||
if ( bRefStrValid )
|
if ( bRefStrValid )
|
||||||
{
|
{
|
||||||
if ( rtl::OUString::valueOf(static_cast<sal_Int32>(nSoundRef)) == aRefStr )
|
if ( OUString::number(nSoundRef) == aRefStr )
|
||||||
{
|
{
|
||||||
rStCtrl.Seek( nPosMerk2 );
|
rStCtrl.Seek( nPosMerk2 );
|
||||||
if ( SeekToRec( rStCtrl, PPT_PST_CString, nStrLen, NULL, 0 ) )
|
if ( SeekToRec( rStCtrl, PPT_PST_CString, nStrLen, NULL, 0 ) )
|
||||||
|
@ -648,7 +648,7 @@ Window * lcl_GetTopmostParent( Window * pWindow )
|
|||||||
void CustomAnimationCreateDialog::setPosition()
|
void CustomAnimationCreateDialog::setPosition()
|
||||||
{
|
{
|
||||||
SvtViewOptions aDlgOpt(
|
SvtViewOptions aDlgOpt(
|
||||||
E_TABDIALOG, rtl::OUString::valueOf(static_cast<sal_Int32>(DLG_CUSTOMANIMATION_CREATE)));
|
E_TABDIALOG, OUString::number(DLG_CUSTOMANIMATION_CREATE));
|
||||||
if ( aDlgOpt.Exists() )
|
if ( aDlgOpt.Exists() )
|
||||||
{
|
{
|
||||||
SetWindowState( rtl::OUStringToOString(aDlgOpt.GetWindowState(),
|
SetWindowState( rtl::OUStringToOString(aDlgOpt.GetWindowState(),
|
||||||
@ -676,7 +676,7 @@ void CustomAnimationCreateDialog::storePosition()
|
|||||||
{
|
{
|
||||||
// save settings (screen position and current page)
|
// save settings (screen position and current page)
|
||||||
SvtViewOptions aDlgOpt(
|
SvtViewOptions aDlgOpt(
|
||||||
E_TABDIALOG, rtl::OUString::valueOf(static_cast<sal_Int32>(DLG_CUSTOMANIMATION_CREATE)));
|
E_TABDIALOG, OUString::number(DLG_CUSTOMANIMATION_CREATE));
|
||||||
aDlgOpt.SetWindowState(OStringToOUString(
|
aDlgOpt.SetWindowState(OStringToOUString(
|
||||||
GetWindowState(WINDOWSTATE_MASK_POS), RTL_TEXTENCODING_ASCII_US));
|
GetWindowState(WINDOWSTATE_MASK_POS), RTL_TEXTENCODING_ASCII_US));
|
||||||
}
|
}
|
||||||
|
@ -124,22 +124,22 @@ CopyDlg::~CopyDlg()
|
|||||||
{
|
{
|
||||||
String& rStr = GetExtraData();
|
String& rStr = GetExtraData();
|
||||||
|
|
||||||
rStr = OUString::valueOf(static_cast<sal_Int64>(maNumFldCopies.GetValue()));
|
rStr = OUString::number(maNumFldCopies.GetValue());
|
||||||
rStr.Append( TOKEN );
|
rStr.Append( TOKEN );
|
||||||
|
|
||||||
rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldMoveX.GetValue()));
|
rStr += OUString::number(maMtrFldMoveX.GetValue());
|
||||||
rStr.Append( TOKEN );
|
rStr.Append( TOKEN );
|
||||||
|
|
||||||
rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldMoveY.GetValue()));
|
rStr += OUString::number(maMtrFldMoveY.GetValue());
|
||||||
rStr.Append( TOKEN );
|
rStr.Append( TOKEN );
|
||||||
|
|
||||||
rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldAngle.GetValue()));
|
rStr += OUString::number(maMtrFldAngle.GetValue());
|
||||||
rStr.Append( TOKEN );
|
rStr.Append( TOKEN );
|
||||||
|
|
||||||
rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldWidth.GetValue()));
|
rStr += OUString::number(maMtrFldWidth.GetValue());
|
||||||
rStr.Append( TOKEN );
|
rStr.Append( TOKEN );
|
||||||
|
|
||||||
rStr += OUString::valueOf(static_cast<sal_Int64>(maMtrFldHeight.GetValue()));
|
rStr += OUString::number(maMtrFldHeight.GetValue());
|
||||||
rStr.Append( TOKEN );
|
rStr.Append( TOKEN );
|
||||||
|
|
||||||
rStr += OUString::valueOf( (long)maLbStartColor.GetSelectEntryColor().GetColor() );
|
rStr += OUString::valueOf( (long)maLbStartColor.GetSelectEntryColor().GetColor() );
|
||||||
|
@ -138,7 +138,7 @@ void FuPresentationObjects::DoExecute( SfxRequest& )
|
|||||||
String aStr(SdResId( STR_LAYOUT_OUTLINE ));
|
String aStr(SdResId( STR_LAYOUT_OUTLINE ));
|
||||||
aStyleName.Append( aStr );
|
aStyleName.Append( aStr );
|
||||||
aStyleName.Append( sal_Unicode(' ') );
|
aStyleName.Append( sal_Unicode(' ') );
|
||||||
aStyleName.Append( OUString::valueOf( static_cast<sal_Int32>( nDepth ) ) );
|
aStyleName.Append( OUString::number( nDepth ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
SfxStyleSheetBasePool* pStyleSheetPool = mpDocSh->GetStyleSheetPool();
|
SfxStyleSheetBasePool* pStyleSheetPool = mpDocSh->GetStyleSheetPool();
|
||||||
|
@ -299,7 +299,7 @@ void ConfigurationAccess::SaveConfiguration()
|
|||||||
for( k = 1; k < maSettings.size(); k++ )
|
for( k = 1; k < maSettings.size(); k++ )
|
||||||
{
|
{
|
||||||
OptimizerSettings& rSettings( maSettings[ 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< lang::XSingleServiceFactory > xChildFactory ( xSet, UNO_QUERY_THROW );
|
||||||
Reference< container::XNameReplace > xChild( xChildFactory->createInstance(), UNO_QUERY_THROW );
|
Reference< container::XNameReplace > xChild( xChildFactory->createInstance(), UNO_QUERY_THROW );
|
||||||
xNameContainer->insertByName( aElementName, Any( xChild ) );
|
xNameContainer->insertByName( aElementName, Any( xChild ) );
|
||||||
|
@ -278,7 +278,7 @@ css::registry::RegistryKeyType Key::getKeyType(rtl::OUString const & rKeyName)
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key getKeyType:"
|
"com.sun.star.registry.SimpleRegistry key getKeyType:"
|
||||||
" underlying RegistryKey::getKeyType() = ")) +
|
" underlying RegistryKey::getKeyType() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
switch (type) {
|
switch (type) {
|
||||||
@ -311,7 +311,7 @@ css::registry::RegistryValueType Key::getValueType()
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key getValueType:"
|
"com.sun.star.registry.SimpleRegistry key getValueType:"
|
||||||
" underlying RegistryKey::getValueInfo() = ")) +
|
" underlying RegistryKey::getValueInfo() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
switch (type) {
|
switch (type) {
|
||||||
@ -360,7 +360,7 @@ sal_Int32 Key::getLongValue() throw (
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key getLongValue:"
|
"com.sun.star.registry.SimpleRegistry key getLongValue:"
|
||||||
" underlying RegistryKey::getValue() = ")) +
|
" underlying RegistryKey::getValue() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
@ -378,7 +378,7 @@ void Key::setLongValue(sal_Int32 value)
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key setLongValue:"
|
"com.sun.star.registry.SimpleRegistry key setLongValue:"
|
||||||
" underlying RegistryKey::setValue() = ")) +
|
" underlying RegistryKey::setValue() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -409,7 +409,7 @@ css::uno::Sequence< sal_Int32 > Key::getLongListValue() throw (
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key getLongListValue:"
|
"com.sun.star.registry.SimpleRegistry key getLongListValue:"
|
||||||
" underlying RegistryKey::getLongListValue() = ")) +
|
" underlying RegistryKey::getLongListValue() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
sal_uInt32 n = list.getLength();
|
sal_uInt32 n = list.getLength();
|
||||||
@ -445,7 +445,7 @@ void Key::setLongListValue(css::uno::Sequence< sal_Int32 > const & seqValue)
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key setLongListValue:"
|
"com.sun.star.registry.SimpleRegistry key setLongListValue:"
|
||||||
" underlying RegistryKey::setLongListValue() = ")) +
|
" underlying RegistryKey::setLongListValue() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -464,7 +464,7 @@ rtl::OUString Key::getAsciiValue() throw (
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key getAsciiValue:"
|
"com.sun.star.registry.SimpleRegistry key getAsciiValue:"
|
||||||
" underlying RegistryKey::getValueInfo() = ")) +
|
" underlying RegistryKey::getValueInfo() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
if (type != RG_VALUETYPE_STRING) {
|
if (type != RG_VALUETYPE_STRING) {
|
||||||
@ -473,7 +473,7 @@ rtl::OUString Key::getAsciiValue() throw (
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key getAsciiValue:"
|
"com.sun.star.registry.SimpleRegistry key getAsciiValue:"
|
||||||
" underlying RegistryKey type = ")) +
|
" underlying RegistryKey type = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(type))),
|
OUString::number(type)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
// size contains terminating null (error in underlying registry.cxx):
|
// size contains terminating null (error in underlying registry.cxx):
|
||||||
@ -502,7 +502,7 @@ rtl::OUString Key::getAsciiValue() throw (
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key getAsciiValue:"
|
"com.sun.star.registry.SimpleRegistry key getAsciiValue:"
|
||||||
" underlying RegistryKey::getValue() = ")) +
|
" underlying RegistryKey::getValue() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
if (list[size - 1] != '\0') {
|
if (list[size - 1] != '\0') {
|
||||||
@ -559,7 +559,7 @@ void Key::setAsciiValue(rtl::OUString const & value)
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key setAsciiValue:"
|
"com.sun.star.registry.SimpleRegistry key setAsciiValue:"
|
||||||
" underlying RegistryKey::setValue() = ")) +
|
" underlying RegistryKey::setValue() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -591,7 +591,7 @@ css::uno::Sequence< rtl::OUString > Key::getAsciiListValue() throw (
|
|||||||
"com.sun.star.registry.SimpleRegistry key"
|
"com.sun.star.registry.SimpleRegistry key"
|
||||||
" getAsciiListValue: underlying"
|
" getAsciiListValue: underlying"
|
||||||
" RegistryKey::getStringListValue() = ")) +
|
" RegistryKey::getStringListValue() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
sal_uInt32 n = list.getLength();
|
sal_uInt32 n = list.getLength();
|
||||||
@ -665,7 +665,7 @@ void Key::setAsciiListValue(
|
|||||||
"com.sun.star.registry.SimpleRegistry key"
|
"com.sun.star.registry.SimpleRegistry key"
|
||||||
" setAsciiListValue: underlying"
|
" setAsciiListValue: underlying"
|
||||||
" RegistryKey::setStringListValue() = ")) +
|
" RegistryKey::setStringListValue() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -684,7 +684,7 @@ rtl::OUString Key::getStringValue() throw (
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key getStringValue:"
|
"com.sun.star.registry.SimpleRegistry key getStringValue:"
|
||||||
" underlying RegistryKey::getValueInfo() = ")) +
|
" underlying RegistryKey::getValueInfo() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
if (type != RG_VALUETYPE_UNICODE) {
|
if (type != RG_VALUETYPE_UNICODE) {
|
||||||
@ -693,7 +693,7 @@ rtl::OUString Key::getStringValue() throw (
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key getStringValue:"
|
"com.sun.star.registry.SimpleRegistry key getStringValue:"
|
||||||
" underlying RegistryKey type = ")) +
|
" underlying RegistryKey type = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(type))),
|
OUString::number(type)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
// size contains terminating null and is *2 (error in underlying
|
// size contains terminating null and is *2 (error in underlying
|
||||||
@ -723,7 +723,7 @@ rtl::OUString Key::getStringValue() throw (
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key getStringValue:"
|
"com.sun.star.registry.SimpleRegistry key getStringValue:"
|
||||||
" underlying RegistryKey::getValue() = ")) +
|
" underlying RegistryKey::getValue() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
if (list[size/2 - 1] != 0) {
|
if (list[size/2 - 1] != 0) {
|
||||||
@ -753,7 +753,7 @@ void Key::setStringValue(rtl::OUString const & value)
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key setStringValue:"
|
"com.sun.star.registry.SimpleRegistry key setStringValue:"
|
||||||
" underlying RegistryKey::setValue() = ")) +
|
" underlying RegistryKey::setValue() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -785,7 +785,7 @@ css::uno::Sequence< rtl::OUString > Key::getStringListValue() throw (
|
|||||||
"com.sun.star.registry.SimpleRegistry key"
|
"com.sun.star.registry.SimpleRegistry key"
|
||||||
" getStringListValue: underlying"
|
" getStringListValue: underlying"
|
||||||
" RegistryKey::getUnicodeListValue() = ")) +
|
" RegistryKey::getUnicodeListValue() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
sal_uInt32 n = list.getLength();
|
sal_uInt32 n = list.getLength();
|
||||||
@ -824,7 +824,7 @@ void Key::setStringListValue(
|
|||||||
"com.sun.star.registry.SimpleRegistry key"
|
"com.sun.star.registry.SimpleRegistry key"
|
||||||
" setStringListValue: underlying"
|
" setStringListValue: underlying"
|
||||||
" RegistryKey::setUnicodeListValue() = ")) +
|
" RegistryKey::setUnicodeListValue() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -844,7 +844,7 @@ css::uno::Sequence< sal_Int8 > Key::getBinaryValue()
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key getBinaryValue:"
|
"com.sun.star.registry.SimpleRegistry key getBinaryValue:"
|
||||||
" underlying RegistryKey::getValueInfo() = ")) +
|
" underlying RegistryKey::getValueInfo() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
if (type != RG_VALUETYPE_BINARY) {
|
if (type != RG_VALUETYPE_BINARY) {
|
||||||
@ -853,7 +853,7 @@ css::uno::Sequence< sal_Int8 > Key::getBinaryValue()
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key getBinaryValue:"
|
"com.sun.star.registry.SimpleRegistry key getBinaryValue:"
|
||||||
" underlying RegistryKey type = ")) +
|
" underlying RegistryKey type = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(type))),
|
OUString::number(type)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
if (size > SAL_MAX_INT32) {
|
if (size > SAL_MAX_INT32) {
|
||||||
@ -872,7 +872,7 @@ css::uno::Sequence< sal_Int8 > Key::getBinaryValue()
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key getBinaryValue:"
|
"com.sun.star.registry.SimpleRegistry key getBinaryValue:"
|
||||||
" underlying RegistryKey::getValue() = ")) +
|
" underlying RegistryKey::getValue() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
@ -892,7 +892,7 @@ void Key::setBinaryValue(css::uno::Sequence< sal_Int8 > const & value)
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key setBinaryValue:"
|
"com.sun.star.registry.SimpleRegistry key setBinaryValue:"
|
||||||
" underlying RegistryKey::setValue() = ")) +
|
" underlying RegistryKey::setValue() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -915,7 +915,7 @@ css::uno::Reference< css::registry::XRegistryKey > Key::openKey(
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key openKey:"
|
"com.sun.star.registry.SimpleRegistry key openKey:"
|
||||||
" underlying RegistryKey::openKey() = ")) +
|
" underlying RegistryKey::openKey() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -938,7 +938,7 @@ css::uno::Reference< css::registry::XRegistryKey > Key::createKey(
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key createKey:"
|
"com.sun.star.registry.SimpleRegistry key createKey:"
|
||||||
" underlying RegistryKey::createKey() = ")) +
|
" underlying RegistryKey::createKey() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -954,7 +954,7 @@ void Key::closeKey()
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key closeKey:"
|
"com.sun.star.registry.SimpleRegistry key closeKey:"
|
||||||
" underlying RegistryKey::closeKey() = ")) +
|
" underlying RegistryKey::closeKey() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -970,7 +970,7 @@ void Key::deleteKey(rtl::OUString const & rKeyName)
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key deleteKey:"
|
"com.sun.star.registry.SimpleRegistry key deleteKey:"
|
||||||
" underlying RegistryKey::deleteKey() = ")) +
|
" underlying RegistryKey::deleteKey() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -988,7 +988,7 @@ Key::openKeys()
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key openKeys:"
|
"com.sun.star.registry.SimpleRegistry key openKeys:"
|
||||||
" underlying RegistryKey::openSubKeys() = ")) +
|
" underlying RegistryKey::openSubKeys() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
sal_uInt32 n = list.getLength();
|
sal_uInt32 n = list.getLength();
|
||||||
@ -1021,7 +1021,7 @@ css::uno::Sequence< rtl::OUString > Key::getKeyNames()
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key getKeyNames:"
|
"com.sun.star.registry.SimpleRegistry key getKeyNames:"
|
||||||
" underlying RegistryKey::getKeyNames() = ")) +
|
" underlying RegistryKey::getKeyNames() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
sal_uInt32 n = list.getLength();
|
sal_uInt32 n = list.getLength();
|
||||||
@ -1056,7 +1056,7 @@ sal_Bool Key::createLink(
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key createLink:"
|
"com.sun.star.registry.SimpleRegistry key createLink:"
|
||||||
" underlying RegistryKey::createLink() = ")) +
|
" underlying RegistryKey::createLink() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
@ -1074,7 +1074,7 @@ void Key::deleteLink(rtl::OUString const & rLinkName)
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key deleteLink:"
|
"com.sun.star.registry.SimpleRegistry key deleteLink:"
|
||||||
" underlying RegistryKey::deleteLink() = ")) +
|
" underlying RegistryKey::deleteLink() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1091,7 +1091,7 @@ rtl::OUString Key::getLinkTarget(rtl::OUString const & rLinkName)
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key getLinkTarget:"
|
"com.sun.star.registry.SimpleRegistry key getLinkTarget:"
|
||||||
" underlying RegistryKey::getLinkTarget() = ")) +
|
" underlying RegistryKey::getLinkTarget() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
return target;
|
return target;
|
||||||
@ -1109,7 +1109,7 @@ rtl::OUString Key::getResolvedName(rtl::OUString const & aKeyName)
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry key getResolvedName:"
|
"com.sun.star.registry.SimpleRegistry key getResolvedName:"
|
||||||
" underlying RegistryKey::getResolvedName() = ")) +
|
" underlying RegistryKey::getResolvedName() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
return resolved;
|
return resolved;
|
||||||
@ -1140,7 +1140,7 @@ void SimpleRegistry::open(
|
|||||||
rtl::OUString(
|
rtl::OUString(
|
||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"): underlying Registry::open/create() = ")) +
|
"): underlying Registry::open/create() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1161,7 +1161,7 @@ void SimpleRegistry::close()
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry.close:"
|
"com.sun.star.registry.SimpleRegistry.close:"
|
||||||
" underlying Registry::close() = ")) +
|
" underlying Registry::close() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1177,7 +1177,7 @@ void SimpleRegistry::destroy()
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry.destroy:"
|
"com.sun.star.registry.SimpleRegistry.destroy:"
|
||||||
" underlying Registry::destroy() = ")) +
|
" underlying Registry::destroy() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1194,7 +1194,7 @@ css::uno::Reference< css::registry::XRegistryKey > SimpleRegistry::getRootKey()
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry.getRootKey:"
|
"com.sun.star.registry.SimpleRegistry.getRootKey:"
|
||||||
" underlying Registry::getRootKey() = ")) +
|
" underlying Registry::getRootKey() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
return new Key(this, root);
|
return new Key(this, root);
|
||||||
@ -1236,7 +1236,7 @@ void SimpleRegistry::mergeKey(
|
|||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"com.sun.star.registry.SimpleRegistry.mergeKey:"
|
"com.sun.star.registry.SimpleRegistry.mergeKey:"
|
||||||
" underlying Registry::getRootKey/mergeKey() = ")) +
|
" underlying Registry::getRootKey/mergeKey() = ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(err))),
|
OUString::number(err)),
|
||||||
static_cast< OWeakObject * >(this));
|
static_cast< OWeakObject * >(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -238,7 +238,7 @@ void SfxAllEnumItem::InsertValue( sal_uInt16 nValue )
|
|||||||
DBG_CHKTHIS(SfxAllEnumItem, 0);
|
DBG_CHKTHIS(SfxAllEnumItem, 0);
|
||||||
SfxAllEnumValue_Impl *pVal = new SfxAllEnumValue_Impl;
|
SfxAllEnumValue_Impl *pVal = new SfxAllEnumValue_Impl;
|
||||||
pVal->nValue = nValue;
|
pVal->nValue = nValue;
|
||||||
pVal->aText = rtl::OUString::valueOf(static_cast<sal_Int32>(nValue));
|
pVal->aText = OUString::number(nValue);
|
||||||
if ( !pValues )
|
if ( !pValues )
|
||||||
pValues = new SfxAllEnumValueArr;
|
pValues = new SfxAllEnumValueArr;
|
||||||
|
|
||||||
|
@ -463,7 +463,7 @@ SfxItemPresentation CntUInt32Item::GetPresentation(SfxItemPresentation,
|
|||||||
const
|
const
|
||||||
{
|
{
|
||||||
DBG_CHKTHIS(CntUInt32Item, 0);
|
DBG_CHKTHIS(CntUInt32Item, 0);
|
||||||
rText = rtl::OUString::valueOf(static_cast<sal_Int64>(m_nValue));
|
rText = OUString::number(m_nValue);
|
||||||
return SFX_ITEM_PRESENTATION_NAMELESS;
|
return SFX_ITEM_PRESENTATION_NAMELESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ SfxItemPresentation SfxInt16Item::GetPresentation(SfxItemPresentation,
|
|||||||
const IntlWrapper *) const
|
const IntlWrapper *) const
|
||||||
{
|
{
|
||||||
DBG_CHKTHIS(SfxInt16Item, 0);
|
DBG_CHKTHIS(SfxInt16Item, 0);
|
||||||
rText = rtl::OUString::valueOf(static_cast<sal_Int32>(m_nValue));
|
rText = OUString::number(m_nValue);
|
||||||
return SFX_ITEM_PRESENTATION_NAMELESS;
|
return SFX_ITEM_PRESENTATION_NAMELESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,9 +71,7 @@ SfxItemPresentation SfxXRangeItem::GetPresentation
|
|||||||
const IntlWrapper *
|
const IntlWrapper *
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
rText = rtl::OUString::valueOf(static_cast<sal_Int64>(nFrom));
|
rText = OUString::number(nFrom) + ":" + OUString::number(nTo);
|
||||||
rText += ':';
|
|
||||||
rText += rtl::OUString::valueOf(static_cast<sal_Int64>(nTo));
|
|
||||||
return SFX_ITEM_PRESENTATION_NAMELESS;
|
return SFX_ITEM_PRESENTATION_NAMELESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -726,12 +726,12 @@ void BrowserScrollBar::Tracking( const TrackingEvent& rTEvt )
|
|||||||
sal_uLong nPos = GetThumbPos();
|
sal_uLong nPos = GetThumbPos();
|
||||||
if ( nPos != _nLastPos )
|
if ( nPos != _nLastPos )
|
||||||
{
|
{
|
||||||
String aTip( rtl::OUString::valueOf(static_cast<sal_Int32>(nPos)) );
|
String aTip( OUString::number(nPos) );
|
||||||
aTip += '/';
|
aTip += '/';
|
||||||
if ( _pDataWin->GetRealRowCount().Len() )
|
if ( _pDataWin->GetRealRowCount().Len() )
|
||||||
aTip += _pDataWin->GetRealRowCount();
|
aTip += _pDataWin->GetRealRowCount();
|
||||||
else
|
else
|
||||||
aTip += rtl::OUString::valueOf(static_cast<sal_Int32>(GetRangeMax()));
|
aTip += OUString::number(GetRangeMax());
|
||||||
|
|
||||||
Rectangle aRect( GetPointerPosPixel(), Size( GetTextHeight(), GetTextWidth( aTip ) ) );
|
Rectangle aRect( GetPointerPosPixel(), Size( GetTextHeight(), GetTextWidth( aTip ) ) );
|
||||||
if ( _nTip )
|
if ( _nTip )
|
||||||
|
@ -894,7 +894,7 @@ void Calendar::ImplDraw( sal_Bool bPaint )
|
|||||||
String aMonthText( maCalendarWrapper.getDisplayName(
|
String aMonthText( maCalendarWrapper.getDisplayName(
|
||||||
i18n::CalendarDisplayIndex::MONTH, nMonth-1, 1));
|
i18n::CalendarDisplayIndex::MONTH, nMonth-1, 1));
|
||||||
aMonthText += ' ';
|
aMonthText += ' ';
|
||||||
aMonthText += rtl::OUString::valueOf(static_cast<sal_Int64>(nYear));
|
aMonthText += OUString::number(nYear);
|
||||||
long nMonthTextWidth = GetTextWidth( aMonthText );
|
long nMonthTextWidth = GetTextWidth( aMonthText );
|
||||||
long nMonthOffX1 = 0;
|
long nMonthOffX1 = 0;
|
||||||
long nMonthOffX2 = 0;
|
long nMonthOffX2 = 0;
|
||||||
@ -912,7 +912,7 @@ void Calendar::ImplDraw( sal_Bool bPaint )
|
|||||||
aMonthText = maCalendarWrapper.getDisplayName(
|
aMonthText = maCalendarWrapper.getDisplayName(
|
||||||
i18n::CalendarDisplayIndex::MONTH, nMonth-1, 0);
|
i18n::CalendarDisplayIndex::MONTH, nMonth-1, 0);
|
||||||
aMonthText += ' ';
|
aMonthText += ' ';
|
||||||
aMonthText += rtl::OUString::valueOf(static_cast<sal_Int64>(nYear));
|
aMonthText += OUString::number(nYear);
|
||||||
nMonthTextWidth = GetTextWidth( aMonthText );
|
nMonthTextWidth = GetTextWidth( aMonthText );
|
||||||
}
|
}
|
||||||
long nTempOff = (mnMonthWidth-nMonthTextWidth+1)/2;
|
long nTempOff = (mnMonthWidth-nMonthTextWidth+1)/2;
|
||||||
|
@ -497,7 +497,7 @@ void Ruler::ImplDrawTicks( long nMin, long nMax, long nStart, long nCenter )
|
|||||||
nMaxWidth /= nTickUnit;
|
nMaxWidth /= nTickUnit;
|
||||||
else
|
else
|
||||||
nMaxWidth /= aImplRulerUnitTab[mnUnitIndex].nTickUnit;
|
nMaxWidth /= aImplRulerUnitTab[mnUnitIndex].nTickUnit;
|
||||||
OUString aNumStr = OUString::valueOf(static_cast<sal_Int32>(nMaxWidth));
|
OUString aNumStr = OUString::number(nMaxWidth);
|
||||||
long nTxtWidth = GetTextWidth( aNumStr );
|
long nTxtWidth = GetTextWidth( aNumStr );
|
||||||
const long nTextOff = 4;
|
const long nTextOff = 4;
|
||||||
if ( nTickWidth < nTxtWidth+nTextOff )
|
if ( nTickWidth < nTxtWidth+nTextOff )
|
||||||
|
@ -186,7 +186,7 @@ static ::rtl::OUString ImplGetParameterString( const TransferableObjectDescripto
|
|||||||
}
|
}
|
||||||
|
|
||||||
aParams += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ";viewaspect=\"" ));
|
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 += aChar;
|
||||||
|
|
||||||
aParams += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ";width=\"" ));
|
aParams += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ";width=\"" ));
|
||||||
|
@ -229,7 +229,7 @@ namespace svt { namespace uno
|
|||||||
DBG_UNHANDLED_EXCEPTION();
|
DBG_UNHANDLED_EXCEPTION();
|
||||||
}
|
}
|
||||||
// fallback for ill-behaved clients: the numeric state
|
// fallback for ill-behaved clients: the numeric state
|
||||||
return rtl::OUString::valueOf(static_cast<sal_Int32>(i_nState));
|
return OUString::number(i_nState);
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -123,7 +123,7 @@ void CompressGraphicsDialog::Update()
|
|||||||
aViewSizeString += String( " x " ) ;
|
aViewSizeString += String( " x " ) ;
|
||||||
aViewSizeString += GetUnitString( m_aViewSize100mm.Height(), eFieldUnit, cSeparator );
|
aViewSizeString += GetUnitString( m_aViewSize100mm.Height(), eFieldUnit, cSeparator );
|
||||||
aViewSizeString += ( " at " ) ;
|
aViewSizeString += ( " at " ) ;
|
||||||
aViewSizeString += OUString::valueOf( static_cast< sal_Int32 >(aValX));
|
aViewSizeString += OUString::number( aValX);
|
||||||
aViewSizeString += ( " DPI" ) ;
|
aViewSizeString += ( " DPI" ) ;
|
||||||
m_pFixedText3->SetText(aViewSizeString);
|
m_pFixedText3->SetText(aViewSizeString);
|
||||||
|
|
||||||
@ -144,13 +144,13 @@ void CompressGraphicsDialog::Update()
|
|||||||
void CompressGraphicsDialog::UpdateNewWidthMF()
|
void CompressGraphicsDialog::UpdateNewWidthMF()
|
||||||
{
|
{
|
||||||
int nPixelX = (sal_Int32)( GetViewWidthInch() * m_dResolution );
|
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()
|
void CompressGraphicsDialog::UpdateNewHeightMF()
|
||||||
{
|
{
|
||||||
int nPixelY = (sal_Int32)( GetViewHeightInch() * m_dResolution );
|
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()
|
void CompressGraphicsDialog::UpdateResolutionLB()
|
||||||
|
@ -815,8 +815,7 @@ SfxItemPresentation SdrPercentItem::GetPresentation(
|
|||||||
SfxItemPresentation ePres, SfxMapUnit /*eCoreMetric*/,
|
SfxItemPresentation ePres, SfxMapUnit /*eCoreMetric*/,
|
||||||
SfxMapUnit /*ePresMetric*/, XubString& rText, const IntlWrapper *) const
|
SfxMapUnit /*ePresMetric*/, XubString& rText, const IntlWrapper *) const
|
||||||
{
|
{
|
||||||
rText = OUString::valueOf( static_cast< sal_Int32 >(GetValue()));
|
rText = OUString::number(GetValue()) + "%";
|
||||||
rText += sal_Unicode('%');
|
|
||||||
|
|
||||||
if(ePres == SFX_ITEM_PRESENTATION_COMPLETE)
|
if(ePres == SFX_ITEM_PRESENTATION_COMPLETE)
|
||||||
{
|
{
|
||||||
@ -1299,9 +1298,7 @@ SfxItemPresentation SdrTextAniDelayItem::GetPresentation(
|
|||||||
SfxItemPresentation ePres, SfxMapUnit /*eCoreMetric*/, SfxMapUnit /*ePresMetric*/,
|
SfxItemPresentation ePres, SfxMapUnit /*eCoreMetric*/, SfxMapUnit /*ePresMetric*/,
|
||||||
XubString& rText, const IntlWrapper *) const
|
XubString& rText, const IntlWrapper *) const
|
||||||
{
|
{
|
||||||
rText = OUString::valueOf( static_cast< sal_Int32 >( GetValue()));
|
rText = OUString::number(GetValue()) + "ms";
|
||||||
rText += sal_Unicode('m');
|
|
||||||
rText += sal_Unicode('s');
|
|
||||||
|
|
||||||
if(ePres == SFX_ITEM_PRESENTATION_COMPLETE)
|
if(ePres == SFX_ITEM_PRESENTATION_COMPLETE)
|
||||||
{
|
{
|
||||||
@ -1486,7 +1483,7 @@ SfxItemPresentation SdrCustomShapeAdjustmentItem::GetPresentation(
|
|||||||
SfxMapUnit /*ePresentationMetric*/, XubString &rText, const IntlWrapper *) const
|
SfxMapUnit /*ePresentationMetric*/, XubString &rText, const IntlWrapper *) const
|
||||||
{
|
{
|
||||||
sal_uInt32 i, nCount = GetCount();
|
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++ )
|
for ( i = 0; i < nCount; i++ )
|
||||||
{
|
{
|
||||||
rText += sal_Unicode( ' ' );
|
rText += sal_Unicode( ' ' );
|
||||||
@ -2055,8 +2052,7 @@ SfxItemPresentation SdrSignedPercentItem::GetPresentation(
|
|||||||
SfxItemPresentation ePres, SfxMapUnit /*eCoreMetric*/, SfxMapUnit /*ePresMetric*/,
|
SfxItemPresentation ePres, SfxMapUnit /*eCoreMetric*/, SfxMapUnit /*ePresMetric*/,
|
||||||
XubString& rText, const IntlWrapper *) const
|
XubString& rText, const IntlWrapper *) const
|
||||||
{
|
{
|
||||||
rText = OUString::valueOf( static_cast< sal_Int32 >( GetValue()));
|
rText = OUString::number(GetValue()) + "%";
|
||||||
rText += sal_Unicode('%');
|
|
||||||
|
|
||||||
if(ePres == SFX_ITEM_PRESENTATION_COMPLETE)
|
if(ePres == SFX_ITEM_PRESENTATION_COMPLETE)
|
||||||
{
|
{
|
||||||
|
@ -594,7 +594,7 @@ const XubString& SdrMarkList::GetMarkDescription() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
aNam.Insert(sal_Unicode(' '), 0);
|
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;
|
((SdrMarkList*)(this))->maMarkName = aNam;
|
||||||
@ -694,7 +694,7 @@ const XubString& SdrMarkList::GetPointMarkDescription(sal_Bool bGlue) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
aNam.Insert(sal_Unicode(' '), 0);
|
aNam.Insert(sal_Unicode(' '), 0);
|
||||||
aNam.Insert(OUString::valueOf( static_cast<sal_Int32>(nMarkPtObjAnz) ), 0);
|
aNam.Insert(OUString::number( nMarkPtObjAnz ), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
XubString aStr1;
|
XubString aStr1;
|
||||||
@ -706,7 +706,7 @@ const XubString& SdrMarkList::GetPointMarkDescription(sal_Bool bGlue) const
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
aStr1 = (ImpGetResStr(bGlue ? STR_ViewMarkedGluePoints : STR_ViewMarkedPoints));
|
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);
|
aStr1.SearchAndReplaceAscii("%1", aNam);
|
||||||
|
@ -1954,7 +1954,7 @@ void SdrMarkView::ImpTakeDescriptionStr(sal_uInt16 nStrCacheID, XubString& rStr,
|
|||||||
if(nPos != STRING_NOTFOUND)
|
if(nPos != STRING_NOTFOUND)
|
||||||
{
|
{
|
||||||
rStr.Erase(nPos, 2);
|
rStr.Erase(nPos, 2);
|
||||||
rStr.Insert(OUString::valueOf( static_cast<sal_Int32>(nVal) ), nPos);
|
rStr.Insert(OUString::number( nVal ), nPos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1096,7 +1096,7 @@ void SdrObject::ImpTakeDescriptionStr(sal_uInt16 nStrCacheID, rtl::OUString& rSt
|
|||||||
if (nPos >= 0)
|
if (nPos >= 0)
|
||||||
// Replace '%2' with the passed value.
|
// Replace '%2' with the passed value.
|
||||||
rStr = rStr.replaceAt(
|
rStr = rStr.replaceAt(
|
||||||
nPos, 2, rtl::OUString::valueOf(static_cast<sal_Int32>(nVal)));
|
nPos, 2, OUString::number(nVal));
|
||||||
}
|
}
|
||||||
|
|
||||||
void SdrObject::ImpForcePlusData()
|
void SdrObject::ImpForcePlusData()
|
||||||
|
@ -1946,7 +1946,7 @@ void SdrPathObj::TakeObjNameSingul(XubString& rName) const
|
|||||||
if(STRING_NOTFOUND != nPos)
|
if(STRING_NOTFOUND != nPos)
|
||||||
{
|
{
|
||||||
rName.Erase(nPos, 2);
|
rName.Erase(nPos, 2);
|
||||||
rName.Insert(rtl::OUString::valueOf(static_cast<sal_Int32>(nPointCount)), nPos);
|
rName.Insert(OUString::number(nPointCount), nPos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@ SfxItemPresentation XLineTransparenceItem::GetPresentation
|
|||||||
rText = XubString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) );
|
rText = XubString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) );
|
||||||
rText.AppendAscii(": ");
|
rText.AppendAscii(": ");
|
||||||
case SFX_ITEM_PRESENTATION_NAMELESS:
|
case SFX_ITEM_PRESENTATION_NAMELESS:
|
||||||
rText += OUString::valueOf(static_cast<sal_Int32>(GetValue()));
|
rText += OUString::number(GetValue());
|
||||||
rText += sal_Unicode('%');
|
rText += sal_Unicode('%');
|
||||||
return ePres;
|
return ePres;
|
||||||
default:
|
default:
|
||||||
@ -495,7 +495,7 @@ SfxItemPresentation XFillTransparenceItem::GetPresentation
|
|||||||
rText = XubString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) );
|
rText = XubString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) );
|
||||||
rText.AppendAscii(": ");
|
rText.AppendAscii(": ");
|
||||||
case SFX_ITEM_PRESENTATION_NAMELESS:
|
case SFX_ITEM_PRESENTATION_NAMELESS:
|
||||||
rText += OUString::valueOf(static_cast<sal_Int32>(GetValue()));
|
rText += OUString::number(GetValue());
|
||||||
rText += sal_Unicode('%');
|
rText += sal_Unicode('%');
|
||||||
return ePres;
|
return ePres;
|
||||||
default:
|
default:
|
||||||
@ -622,7 +622,7 @@ SfxItemPresentation XGradientStepCountItem::GetPresentation
|
|||||||
// rText = XubString( ResId( RID_SVXSTR_GRADIENTSTEPCOUNT, DIALOG_MGR() ) );
|
// rText = XubString( ResId( RID_SVXSTR_GRADIENTSTEPCOUNT, DIALOG_MGR() ) );
|
||||||
// rText += ": ";
|
// rText += ": ";
|
||||||
case SFX_ITEM_PRESENTATION_NAMELESS:
|
case SFX_ITEM_PRESENTATION_NAMELESS:
|
||||||
rText += OUString::valueOf(static_cast<sal_Int32>(GetValue()));
|
rText += OUString::number(GetValue());
|
||||||
return ePres;
|
return ePres;
|
||||||
default:
|
default:
|
||||||
return SFX_ITEM_PRESENTATION_NONE;
|
return SFX_ITEM_PRESENTATION_NONE;
|
||||||
|
@ -237,7 +237,7 @@ SwField* SwPageNumberField::Copy() const
|
|||||||
|
|
||||||
rtl::OUString SwPageNumberField::GetPar2() 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)
|
void SwPageNumberField::SetPar2(const rtl::OUString& rStr)
|
||||||
@ -2126,7 +2126,7 @@ SwField* SwRefPageSetField::Copy() const
|
|||||||
|
|
||||||
rtl::OUString SwRefPageSetField::GetPar2() 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)
|
void SwRefPageSetField::SetPar2(const rtl::OUString& rStr)
|
||||||
|
@ -114,7 +114,7 @@ void SwDateTimeField::SetPar2(const rtl::OUString& rStr)
|
|||||||
rtl::OUString SwDateTimeField::GetPar2() const
|
rtl::OUString SwDateTimeField::GetPar2() const
|
||||||
{
|
{
|
||||||
if (nOffset)
|
if (nOffset)
|
||||||
return rtl::OUString::valueOf(static_cast<sal_Int32>(nOffset));
|
return OUString::number(nOffset);
|
||||||
return rtl::OUString();
|
return rtl::OUString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -501,7 +501,7 @@ static sal_uInt16 lcl_html_fillEndNoteInfo( const SwEndNoteInfo& rInfo,
|
|||||||
}
|
}
|
||||||
if( rInfo.nFtnOffset > 0 )
|
if( rInfo.nFtnOffset > 0 )
|
||||||
{
|
{
|
||||||
pParts[1] = rtl::OUString::valueOf(static_cast<sal_Int32>(rInfo.nFtnOffset));
|
pParts[1] = OUString::number(rInfo.nFtnOffset);
|
||||||
nParts = 2;
|
nParts = 2;
|
||||||
}
|
}
|
||||||
if( !rInfo.GetPrefix().isEmpty() )
|
if( !rInfo.GetPrefix().isEmpty() )
|
||||||
|
@ -2779,10 +2779,10 @@ void DocxAttributeOutput::SectionFormProtection( bool bProtected )
|
|||||||
void DocxAttributeOutput::SectionLineNumbering( sal_uLong nRestartNo, const SwLineNumberInfo& rLnNumInfo )
|
void DocxAttributeOutput::SectionLineNumbering( sal_uLong nRestartNo, const SwLineNumberInfo& rLnNumInfo )
|
||||||
{
|
{
|
||||||
FastAttributeList* pAttr = m_pSerializer->createAttrList();
|
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" );
|
pAttr->add( FSNS( XML_w, XML_restart ), rLnNumInfo.IsRestartEachPage() ? "newPage" : "continuous" );
|
||||||
if( rLnNumInfo.GetPosFromLeft())
|
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 )
|
if( nRestartNo )
|
||||||
pAttr->add( FSNS( XML_w, XML_start ), OString::valueOf( long( nRestartNo )).getStr());
|
pAttr->add( FSNS( XML_w, XML_start ), OString::valueOf( long( nRestartNo )).getStr());
|
||||||
XFastAttributeListRef xAttrs( pAttr );
|
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 )
|
if( file.open( osl_File_OpenFlag_Write ) != osl::File::E_None )
|
||||||
return;
|
return;
|
||||||
uno::Reference< com::sun::star::io::XOutputStream > xOutStream = m_rExport.GetFilter().openFragmentStream(
|
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" );
|
"application/vnd.openxmlformats-officedocument.obfuscatedFont" );
|
||||||
// Not much point in trying hard with the obfuscation key, whoever reads the spec can read the font anyway,
|
// 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.
|
// 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();
|
xOutStream->closeOutput();
|
||||||
OString relId = OUStringToOString( GetExport().GetFilter().addRelation( m_pSerializer->getOutputStream(),
|
OString relId = OUStringToOString( GetExport().GetFilter().addRelation( m_pSerializer->getOutputStream(),
|
||||||
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",
|
"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,
|
m_pSerializer->singleElementNS( XML_w, tag,
|
||||||
FSNS( XML_r, XML_id ), relId.getStr(),
|
FSNS( XML_r, XML_id ), relId.getStr(),
|
||||||
FSNS( XML_w, XML_fontKey ), fontKeyStr,
|
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->startElementNS( XML_w, XML_tabs, FSEND );
|
||||||
m_pSerializer->singleElementNS( XML_w, XML_tab,
|
m_pSerializer->singleElementNS( XML_w, XML_tab,
|
||||||
FSNS( XML_w, XML_val ), "num",
|
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 );
|
FSEND );
|
||||||
m_pSerializer->endElementNS( XML_w, XML_tabs );
|
m_pSerializer->endElementNS( XML_w, XML_tabs );
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ namespace
|
|||||||
{
|
{
|
||||||
void setValue(FixedText *pWidget, sal_uLong nValue)
|
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);
|
pWidget->SetText(sValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1246,10 +1246,10 @@ void SwView::StateStatusLine(SfxItemSet &rSet)
|
|||||||
|
|
||||||
const sal_uInt32 stringId = selectionStats.nWord? STR_STATUSBAR_WORDCOUNT : STR_STATUSBAR_WORDCOUNT_NO_SELECTION;
|
const sal_uInt32 stringId = selectionStats.nWord? STR_STATUSBAR_WORDCOUNT : STR_STATUSBAR_WORDCOUNT_NO_SELECTION;
|
||||||
rtl::OUString wordCount(SW_RES(stringId));
|
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)
|
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));
|
rSet.Put(SfxStringItem(FN_STAT_WORDCOUNT, wordCount));
|
||||||
|
|
||||||
|
@ -1095,7 +1095,7 @@ SfxItemPresentation SwRotationGrf::GetPresentation(
|
|||||||
rText = SW_RESSTR( STR_ROTATION );
|
rText = SW_RESSTR( STR_ROTATION );
|
||||||
else if( rText.Len() )
|
else if( rText.Len() )
|
||||||
rText.Erase();
|
rText.Erase();
|
||||||
( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '\xB0';
|
( rText += OUString::number( GetValue() )) += '\xB0';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -1118,7 +1118,7 @@ SfxItemPresentation SwLuminanceGrf::GetPresentation(
|
|||||||
rText = SW_RESSTR( STR_LUMINANCE );
|
rText = SW_RESSTR( STR_LUMINANCE );
|
||||||
else if( rText.Len() )
|
else if( rText.Len() )
|
||||||
rText.Erase();
|
rText.Erase();
|
||||||
( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '%';
|
( rText += OUString::number( GetValue() )) += '%';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -1141,7 +1141,7 @@ SfxItemPresentation SwContrastGrf::GetPresentation(
|
|||||||
rText = SW_RESSTR( STR_CONTRAST );
|
rText = SW_RESSTR( STR_CONTRAST );
|
||||||
else if( rText.Len() )
|
else if( rText.Len() )
|
||||||
rText.Erase();
|
rText.Erase();
|
||||||
( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '%';
|
( rText += OUString::number( GetValue() )) += '%';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -1177,7 +1177,7 @@ SfxItemPresentation SwChannelGrf::GetPresentation(
|
|||||||
}
|
}
|
||||||
else if( rText.Len() )
|
else if( rText.Len() )
|
||||||
rText.Erase();
|
rText.Erase();
|
||||||
( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '%';
|
( rText += OUString::number( GetValue() )) += '%';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -1245,7 +1245,7 @@ SfxItemPresentation SwTransparencyGrf::GetPresentation(
|
|||||||
rText = SW_RESSTR( STR_TRANSPARENCY );
|
rText = SW_RESSTR( STR_TRANSPARENCY );
|
||||||
else if( rText.Len() )
|
else if( rText.Len() )
|
||||||
rText.Erase();
|
rText.Erase();
|
||||||
( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '%';
|
( rText += OUString::number( GetValue() )) += '%';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -201,7 +201,7 @@ void MkFilter::Filter()
|
|||||||
for ( size_t i=0; i<nCount; i++ )
|
for ( size_t i=0; i<nCount; i++ )
|
||||||
{
|
{
|
||||||
MkLine *pMkLine = (*pLine->pPrivateTnrLst)[ 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 );
|
fputs( aLine.getStr(), pOut );
|
||||||
fprintf( stderr, "o" );
|
fprintf( stderr, "o" );
|
||||||
}
|
}
|
||||||
|
@ -702,7 +702,7 @@ UniString GetTypeRes_Impl( const ResId& rTypeId )
|
|||||||
{
|
{
|
||||||
// Return on resource errors
|
// Return on resource errors
|
||||||
static int bInUse = sal_False;
|
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 )
|
if ( !bInUse )
|
||||||
{
|
{
|
||||||
|
@ -1066,7 +1066,7 @@ void UcbContent::open( const rtl::OUString & rName, const UniString& rInput,
|
|||||||
{
|
{
|
||||||
OUString aId( xContentAccess->
|
OUString aId( xContentAccess->
|
||||||
queryContentIdentifierString() );
|
queryContentIdentifierString() );
|
||||||
aText = OUString::valueOf( static_cast<sal_Int64>(++n) ) + ") " + aId + " : ";
|
aText = OUString::number( ++n ) + ") " + aId + " : ";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Title:
|
// Title:
|
||||||
@ -1150,7 +1150,7 @@ void UcbContent::open( const rtl::OUString & rName, const UniString& rInput,
|
|||||||
if ( bTiming )
|
if ( bTiming )
|
||||||
{
|
{
|
||||||
nTime = Time::GetSystemTicks() - nTime;
|
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 );
|
print( aText );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1176,7 +1176,7 @@ void UcbContent::openAll( Ucb& rUCB, bool bPrint, bool bTiming, bool bSort,
|
|||||||
OUString aText;
|
OUString aText;
|
||||||
for ( sal_uInt32 i = aEntry.m_nLevel; i != 0; --i )
|
for ( sal_uInt32 i = aEntry.m_nLevel; i != 0; --i )
|
||||||
aText += '=';
|
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;
|
uno::Reference< ucb::XContentIdentifier > xID;
|
||||||
if ( aEntry.m_bUseIdentifier )
|
if ( aEntry.m_bUseIdentifier )
|
||||||
@ -1225,7 +1225,7 @@ void UcbContent::openAll( Ucb& rUCB, bool bPrint, bool bTiming, bool bSort,
|
|||||||
if ( bTiming )
|
if ( bTiming )
|
||||||
{
|
{
|
||||||
nTime = Time::GetSystemTicks() - nTime;
|
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 );
|
print( aText );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ rtl::OUString toAbsoluteFileUrl(rtl::OUString const & relativePathname) {
|
|||||||
(rtl::OUString(
|
(rtl::OUString(
|
||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"osl_getProcessWorkingDir failed with ")) +
|
"osl_getProcessWorkingDir failed with ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(e1))),
|
OUString::number(e1)),
|
||||||
css::uno::Reference< css::uno::XInterface >());
|
css::uno::Reference< css::uno::XInterface >());
|
||||||
}
|
}
|
||||||
rtl::OUString url;
|
rtl::OUString url;
|
||||||
@ -50,7 +50,7 @@ rtl::OUString toAbsoluteFileUrl(rtl::OUString const & relativePathname) {
|
|||||||
"osl::FileBase::getFileURLFromSystemPath(")) +
|
"osl::FileBase::getFileURLFromSystemPath(")) +
|
||||||
relativePathname +
|
relativePathname +
|
||||||
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(") failed with ")) +
|
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(") failed with ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(e2))),
|
OUString::number(e2)),
|
||||||
css::uno::Reference< css::uno::XInterface >());
|
css::uno::Reference< css::uno::XInterface >());
|
||||||
}
|
}
|
||||||
rtl::OUString absUrl;
|
rtl::OUString absUrl;
|
||||||
@ -62,7 +62,7 @@ rtl::OUString toAbsoluteFileUrl(rtl::OUString const & relativePathname) {
|
|||||||
"osl::FileBase::getAbsoluteFileURL(")) +
|
"osl::FileBase::getAbsoluteFileURL(")) +
|
||||||
cwd + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(", ")) + url +
|
cwd + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(", ")) + url +
|
||||||
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(") failed with ")) +
|
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(") failed with ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(e2))),
|
OUString::number(e2)),
|
||||||
css::uno::Reference< css::uno::XInterface >());
|
css::uno::Reference< css::uno::XInterface >());
|
||||||
}
|
}
|
||||||
return absUrl;
|
return absUrl;
|
||||||
|
@ -32,7 +32,7 @@ rtl::OUString uniquePipeName(rtl::OUString const & name) {
|
|||||||
CPPUNIT_ASSERT_EQUAL(
|
CPPUNIT_ASSERT_EQUAL(
|
||||||
osl_Process_E_None,
|
osl_Process_E_None,
|
||||||
osl_getProcessInfo(0, osl_Process_IDENTIFIER, &info));
|
osl_getProcessInfo(0, osl_Process_IDENTIFIER, &info));
|
||||||
return name + rtl::OUString::valueOf(static_cast< sal_Int64 >(info.Ident));
|
return name + OUString::number(info.Ident);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1204,7 +1204,7 @@ PrinterGfx::DrawEPS( const Rectangle& rBoundingBox, void* pPtr, sal_uInt32 nSize
|
|||||||
|
|
||||||
static sal_uInt16 nEps = 0;
|
static sal_uInt16 nEps = 0;
|
||||||
if( aDocTitle.isEmpty() )
|
if( aDocTitle.isEmpty() )
|
||||||
aDocTitle = rtl::OString::valueOf(static_cast<sal_Int32>(nEps++));
|
aDocTitle = OString::number(nEps++);
|
||||||
|
|
||||||
if( fLeft != fRight && fTop != fBottom )
|
if( fLeft != fRight && fTop != fBottom )
|
||||||
{
|
{
|
||||||
|
@ -808,7 +808,7 @@ Window *VclBuilder::makeObject(Window *pParent, const OString &name, const OStri
|
|||||||
//Make up a name for it
|
//Make up a name for it
|
||||||
OString sTabPageId = get_by_window(pParent) +
|
OString sTabPageId = get_by_window(pParent) +
|
||||||
OString("-page") +
|
OString("-page") +
|
||||||
OString::valueOf(static_cast<sal_Int32>(nNewPageCount));
|
OString::number(nNewPageCount);
|
||||||
m_aChildren.push_back(WinAndId(sTabPageId, pPage, false));
|
m_aChildren.push_back(WinAndId(sTabPageId, pPage, false));
|
||||||
pPage->SetHelpId(m_sHelpRoot + sTabPageId);
|
pPage->SetHelpId(m_sHelpRoot + sTabPageId);
|
||||||
|
|
||||||
|
@ -300,7 +300,7 @@ int WW8IntValue::getInt() const
|
|||||||
|
|
||||||
OUString WW8IntValue::getString() const
|
OUString WW8IntValue::getString() const
|
||||||
{
|
{
|
||||||
return OUString::valueOf(static_cast<sal_Int32>(mValue));
|
return OUString::number(mValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
uno::Any WW8IntValue::getAny() const
|
uno::Any WW8IntValue::getAny() const
|
||||||
|
@ -193,7 +193,7 @@ std::string RTFValue::toString() const
|
|||||||
if (!m_sValue.isEmpty() || m_bForceString)
|
if (!m_sValue.isEmpty() || m_bForceString)
|
||||||
return OUStringToOString(m_sValue, RTL_TEXTENCODING_UTF8).getStr();
|
return OUStringToOString(m_sValue, RTL_TEXTENCODING_UTF8).getStr();
|
||||||
else
|
else
|
||||||
return OString::valueOf(static_cast<sal_Int32>(m_nValue)).getStr();
|
return OString::number(m_nValue).getStr();
|
||||||
}
|
}
|
||||||
|
|
||||||
RTFValue* RTFValue::Clone()
|
RTFValue* RTFValue::Clone()
|
||||||
|
@ -2119,7 +2119,7 @@ void XMLShapeExport::ImpExportMediaShape(
|
|||||||
const OUString aVolumeDBStr( "VolumeDB" );
|
const OUString aVolumeDBStr( "VolumeDB" );
|
||||||
xPropSet->getPropertyValue( OUString( "VolumeDB" ) ) >>= nVolumeDB;
|
xPropSet->getPropertyValue( OUString( "VolumeDB" ) ) >>= nVolumeDB;
|
||||||
mrExport.AddAttribute( XML_NAMESPACE_DRAW, XML_NAME, aVolumeDBStr );
|
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 ) );
|
delete( new SvXMLElementExport( mrExport, XML_NAMESPACE_DRAW, XML_PARAM, sal_False, sal_True ) );
|
||||||
|
|
||||||
media::ZoomLevel eZoom;
|
media::ZoomLevel eZoom;
|
||||||
|
@ -73,7 +73,7 @@ XmlReader::XmlReader(rtl::OUString const & fileUrl)
|
|||||||
throw css::uno::RuntimeException(
|
throw css::uno::RuntimeException(
|
||||||
(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("cannot open ")) +
|
(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("cannot open ")) +
|
||||||
fileUrl_ + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(": ")) +
|
fileUrl_ + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(": ")) +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(e))),
|
OUString::number(e)),
|
||||||
css::uno::Reference< css::uno::XInterface >());
|
css::uno::Reference< css::uno::XInterface >());
|
||||||
}
|
}
|
||||||
e = osl_getFileSize(fileHandle_, &fileSize_);
|
e = osl_getFileSize(fileHandle_, &fileSize_);
|
||||||
@ -91,7 +91,7 @@ XmlReader::XmlReader(rtl::OUString const & fileUrl)
|
|||||||
}
|
}
|
||||||
throw css::uno::RuntimeException(
|
throw css::uno::RuntimeException(
|
||||||
("cannot mmap " + fileUrl_ + " (" +
|
("cannot mmap " + fileUrl_ + " (" +
|
||||||
rtl::OUString::valueOf(static_cast< sal_Int32 >(e)) + ")"),
|
OUString::number(e) + ")"),
|
||||||
css::uno::Reference< css::uno::XInterface >());
|
css::uno::Reference< css::uno::XInterface >());
|
||||||
}
|
}
|
||||||
namespaceIris_.push_back(
|
namespaceIris_.push_back(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user