String::CreateFromInt32->rtl::OUString::valueOf
This commit is contained in:
parent
1489254311
commit
c4a477614c
3 changed files with 10 additions and 10 deletions
|
@ -232,8 +232,8 @@ void Calendar::ImplInit( WinBits nWinStyle )
|
|||
maWeekText = XubString( SvtResId( STR_SVT_CALENDAR_WEEK ) );
|
||||
|
||||
// Tagestexte anlegen
|
||||
for ( sal_uInt16 i = 0; i < 31; i++ )
|
||||
mpDayText[i] = new UniString( UniString::CreateFromInt32( i+1 ) );
|
||||
for (sal_Int32 i = 0; i < 31; ++i)
|
||||
mpDayText[i] = new UniString(rtl::OUString::valueOf(i+1));
|
||||
|
||||
maDragScrollTimer.SetTimeoutHdl( STATIC_LINK( this, Calendar, ScrollHdl ) );
|
||||
maDragScrollTimer.SetTimeout( GetSettings().GetMouseSettings().GetScrollRepeat() );
|
||||
|
@ -979,8 +979,8 @@ void Calendar::ImplDraw( sal_Bool bPaint )
|
|||
maCalendarWrapper.setGregorianDateTime( aDate);
|
||||
for ( sal_uInt16 nWeekCount = 0; nWeekCount < 6; nWeekCount++ )
|
||||
{
|
||||
sal_Int16 nWeek = maCalendarWrapper.getValue( i18n::CalendarFieldIndex::WEEK_OF_YEAR);
|
||||
String aWeekText( String::CreateFromInt32( nWeek));
|
||||
sal_Int32 nWeek = maCalendarWrapper.getValue( i18n::CalendarFieldIndex::WEEK_OF_YEAR);
|
||||
rtl::OUString aWeekText(rtl::OUString::valueOf(nWeek));
|
||||
long nOffX = (mnWeekWidth-WEEKNUMBER_OFFX)-GetTextWidth( aWeekText );
|
||||
long nOffY = (mnDayHeight-GetTextHeight())/2;
|
||||
DrawText( Point( nDayX+nOffX, nDayY+nOffY ), aWeekText );
|
||||
|
|
|
@ -510,7 +510,7 @@ void Ruler::ImplDrawTicks( long nMin, long nMax, long nStart, long nCenter )
|
|||
nMaxWidth /= nTickUnit;
|
||||
else
|
||||
nMaxWidth /= aImplRulerUnitTab[mnUnitIndex].nTickUnit;
|
||||
UniString aNumStr( UniString::CreateFromInt32( nMaxWidth ) );
|
||||
UniString aNumStr(rtl::OUString::valueOf(static_cast<sal_Int32>(nMaxWidth)));
|
||||
long nTxtWidth = GetTextWidth( aNumStr );
|
||||
const long nTextOff = 4;
|
||||
if ( nTickWidth < nTxtWidth+nTextOff )
|
||||
|
@ -593,7 +593,6 @@ void Ruler::ImplDrawTicks( long nMin, long nMax, long nStart, long nCenter )
|
|||
// Tick3 - Output (Text)
|
||||
if ( !(nTick % nTick3) )
|
||||
{
|
||||
//aNumStr = UniString::CreateFromInt32( nTick / aImplRulerUnitTab[mnUnitIndex].nTickUnit );
|
||||
if ( ( mnUnitIndex == RULER_UNIT_CHAR ) || ( mnUnitIndex == RULER_UNIT_LINE ) )
|
||||
aNumStr = UniString::CreateFromInt32( nTick / nTickUnit );
|
||||
else
|
||||
|
|
|
@ -951,16 +951,17 @@ sal_Int16 SAL_CALL ValueItemAcc::getAccessibleRole()
|
|||
throw (uno::RuntimeException)
|
||||
{
|
||||
const SolarMutexGuard aSolarGuard;
|
||||
String aRet;
|
||||
rtl::OUString aRet;
|
||||
|
||||
if( mpParent )
|
||||
{
|
||||
aRet = mpParent->maText;
|
||||
|
||||
if( !aRet.Len() )
|
||||
if( aRet.isEmpty() )
|
||||
{
|
||||
aRet = String( RTL_CONSTASCII_USTRINGPARAM( "Item " ) );
|
||||
aRet += String::CreateFromInt32( mpParent->mnId );
|
||||
rtl::OUStringBuffer aBuffer("Item ");
|
||||
aBuffer.append(static_cast<sal_Int32>(mpParent->mnId));
|
||||
aRet = aBuffer.makeStringAndClear();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue