summaryrefslogtreecommitdiff
path: root/svx/source/accessibility/charmapacc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/accessibility/charmapacc.cxx')
-rw-r--r--svx/source/accessibility/charmapacc.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/svx/source/accessibility/charmapacc.cxx b/svx/source/accessibility/charmapacc.cxx
index c1509eacc843..c0e49e4f78b1 100644
--- a/svx/source/accessibility/charmapacc.cxx
+++ b/svx/source/accessibility/charmapacc.cxx
@@ -100,9 +100,9 @@ uno::Reference< accessibility::XAccessible > SAL_CALL SvxShowCharSetVirtualAcc::
ensureAlive();
uno::Reference< accessibility::XAccessible > xRet;
- const USHORT nItemId = sal::static_int_cast<USHORT>(mpParent->PixelToMapIndex( Point( aPoint.X, aPoint.Y ) ));
+ const sal_uInt16 nItemId = sal::static_int_cast<sal_uInt16>(mpParent->PixelToMapIndex( Point( aPoint.X, aPoint.Y ) ));
- if( USHORT(-1) != nItemId )
+ if( sal_uInt16(-1) != nItemId )
{
if ( !m_pTable )
m_pTable = new SvxShowCharSetAcc(this);
@@ -249,7 +249,7 @@ void SAL_CALL SvxShowCharSetVirtualAcc::disposing()
// - SvxShowCharSetItem -
// ----------------
-SvxShowCharSetItem::SvxShowCharSetItem( SvxShowCharSet& rParent,SvxShowCharSetAcc* _pParent,USHORT _nPos ) :
+SvxShowCharSetItem::SvxShowCharSetItem( SvxShowCharSet& rParent,SvxShowCharSetAcc* _pParent,sal_uInt16 _nPos ) :
mrParent( rParent )
,mnId( _nPos )
,m_pItem(NULL)
@@ -333,7 +333,7 @@ IMPLEMENT_FORWARD_XTYPEPROVIDER2( SvxShowCharSetAcc, OAccessibleSelectionHelper,
sal_Bool SvxShowCharSetAcc::implIsSelected( sal_Int32 nAccessibleChildIndex ) throw (RuntimeException)
{
return m_pParent && m_pParent->getCharSetControl()->IsSelected(
- sal::static_int_cast<USHORT>(nAccessibleChildIndex));
+ sal::static_int_cast<sal_uInt16>(nAccessibleChildIndex));
}
// -----------------------------------------------------------------------------
// select the specified child => watch for special ChildIndexes (ACCESSIBLE_SELECTION_CHILD_xxx)
@@ -385,7 +385,7 @@ uno::Reference< accessibility::XAccessible > SAL_CALL SvxShowCharSetAcc::getAcce
OExternalLockGuard aGuard( this );
ensureAlive();
uno::Reference< accessibility::XAccessible > xRet;
- SvxShowCharSetItem* pItem = m_pParent->getCharSetControl()->ImplGetItem( static_cast< USHORT >( i ) );
+ SvxShowCharSetItem* pItem = m_pParent->getCharSetControl()->ImplGetItem( static_cast< sal_uInt16 >( i ) );
if( pItem )
{
@@ -483,10 +483,10 @@ uno::Reference< accessibility::XAccessible > SAL_CALL SvxShowCharSetAcc::getAcce
ensureAlive();
uno::Reference< accessibility::XAccessible > xRet;
- const USHORT nItemId = sal::static_int_cast<USHORT>(
+ const sal_uInt16 nItemId = sal::static_int_cast<sal_uInt16>(
m_pParent->getCharSetControl()->PixelToMapIndex( Point( aPoint.X, aPoint.Y ) ));
- if( USHORT(-1) != nItemId )
+ if( sal_uInt16(-1) != nItemId )
{
SvxShowCharSetItem* pItem = m_pParent->getCharSetControl()->ImplGetItem( nItemId );
xRet = pItem->GetAccessible();
@@ -590,7 +590,7 @@ Reference< XAccessible > SAL_CALL SvxShowCharSetAcc::getAccessibleCellAt( sal_In
OExternalLockGuard aGuard( this );
ensureAlive();
::svx::SvxShowCharSetItem* pItem = m_pParent->getCharSetControl()->ImplGetItem(
- sal::static_int_cast<USHORT>(getAccessibleIndex(nRow,nColumn) ));
+ sal::static_int_cast<sal_uInt16>(getAccessibleIndex(nRow,nColumn) ));
if ( !pItem )
throw IndexOutOfBoundsException();
return pItem->GetAccessible();
@@ -622,14 +622,14 @@ sal_Int32 SAL_CALL SvxShowCharSetAcc::getAccessibleRow( sal_Int32 nChildIndex )
{
OExternalLockGuard aGuard( this );
ensureAlive();
- return m_pParent->getCharSetControl()->GetRowPos(sal::static_int_cast<USHORT>(nChildIndex));
+ return m_pParent->getCharSetControl()->GetRowPos(sal::static_int_cast<sal_uInt16>(nChildIndex));
}
// -----------------------------------------------------------------------------
sal_Int32 SAL_CALL SvxShowCharSetAcc::getAccessibleColumn( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
ensureAlive();
- return m_pParent->getCharSetControl()->GetColumnPos(sal::static_int_cast<USHORT>(nChildIndex));
+ return m_pParent->getCharSetControl()->GetColumnPos(sal::static_int_cast<sal_uInt16>(nChildIndex));
}
// -----------------------------------------------------------------------------