summaryrefslogtreecommitdiff
path: root/framework/source/uielement/fontsizemenucontroller.cxx
diff options
context:
space:
mode:
authorXiaofei Zhang <Zhangxiaofei@openoffice.org>2010-11-05 10:31:15 +0800
committerXiaofei Zhang <Zhangxiaofei@openoffice.org>2010-11-05 10:31:15 +0800
commit7799914b16ac11d59524a9e5aa1d2a2c06645185 (patch)
tree57355efb2efc4bd3c51248dcd8f5f3695dde8636 /framework/source/uielement/fontsizemenucontroller.cxx
parent1997e52744a405eb43b23acf794e6b11afbc261b (diff)
removetooltypes01: #i112600# remove tooltypes from toolkit, svtools and framework
Diffstat (limited to 'framework/source/uielement/fontsizemenucontroller.cxx')
-rw-r--r--framework/source/uielement/fontsizemenucontroller.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/framework/source/uielement/fontsizemenucontroller.cxx b/framework/source/uielement/fontsizemenucontroller.cxx
index 58cf3a3b02be..a21b857e9522 100644
--- a/framework/source/uielement/fontsizemenucontroller.cxx
+++ b/framework/source/uielement/fontsizemenucontroller.cxx
@@ -135,16 +135,16 @@ rtl::OUString FontSizeMenuController::retrievePrinterName( com::sun::star::uno::
void FontSizeMenuController::setCurHeight( long nHeight, Reference< css::awt::XPopupMenu >& rPopupMenu )
{
// check menu item
- rtl::OUString aHeight = Application::GetSettings().GetUILocaleI18nHelper().GetNum( nHeight, 1, TRUE, FALSE );
- USHORT nChecked = 0;
- USHORT nItemCount = rPopupMenu->getItemCount();
- for( USHORT i = 0; i < nItemCount; i++ )
+ rtl::OUString aHeight = Application::GetSettings().GetUILocaleI18nHelper().GetNum( nHeight, 1, sal_True, sal_False );
+ sal_uInt16 nChecked = 0;
+ sal_uInt16 nItemCount = rPopupMenu->getItemCount();
+ for( sal_uInt16 i = 0; i < nItemCount; i++ )
{
- USHORT nItemId = rPopupMenu->getItemId( i );
+ sal_uInt16 nItemId = rPopupMenu->getItemId( i );
if ( m_pHeightArray[i] == nHeight )
{
- rPopupMenu->checkItem( nItemId, TRUE );
+ rPopupMenu->checkItem( nItemId, sal_True );
return;
}
@@ -153,7 +153,7 @@ void FontSizeMenuController::setCurHeight( long nHeight, Reference< css::awt::XP
}
if ( nChecked )
- rPopupMenu->checkItem( nChecked, FALSE );
+ rPopupMenu->checkItem( nChecked, sal_False );
}
// private function
@@ -195,11 +195,11 @@ void FontSizeMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >& r
const long* pTempAry;
const long* pAry = pFontList->GetSizeAry( aFntInfo );
- USHORT nSizeCount = 0;
+ sal_uInt16 nSizeCount = 0;
while ( pAry[nSizeCount] )
nSizeCount++;
- USHORT nPos = 0;
+ sal_uInt16 nPos = 0;
const rtl::OUString aFontHeightCommand( RTL_CONSTASCII_USTRINGPARAM( ".uno:FontHeight?FontHeight.Height:float=" ));
// first insert font size names (for simplified/traditional chinese)
@@ -214,8 +214,8 @@ void FontSizeMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >& r
if ( pAry == pFontList->GetStdSizeAry() )
{
// for scalable fonts all font size names
- ULONG nCount = aFontSizeNames.Count();
- for( ULONG i = 0; i < nCount; i++ )
+ sal_uIntPtr nCount = aFontSizeNames.Count();
+ for( sal_uIntPtr i = 0; i < nCount; i++ )
{
String aSizeName = aFontSizeNames.GetIndexName( i );
long nSize = aFontSizeNames.GetIndexSize( i );
@@ -259,7 +259,7 @@ void FontSizeMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >& r
{
m_pHeightArray[nPos] = *pTempAry;
nPos++; // Id is nPos+1
- pVCLPopupMenu->InsertItem( nPos, rI18nHelper.GetNum( *pTempAry, 1, TRUE, FALSE ), MIB_RADIOCHECK | MIB_AUTOCHECK );
+ pVCLPopupMenu->InsertItem( nPos, rI18nHelper.GetNum( *pTempAry, 1, sal_True, sal_False ), MIB_RADIOCHECK | MIB_AUTOCHECK );
fPoint = float( m_pHeightArray[nPos-1] ) / 10;
// Create dispatchable .uno command and set it