diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-10-12 11:01:24 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-10-12 11:01:24 +0000 |
commit | 6e5afde78f67492d72562c8d45f224e7e48cfbd1 (patch) | |
tree | bf4b21da95dcaf6c5a597f9f11a66bd5c25a6b47 /svx/source/accessibility | |
parent | c4d8ada020abf2661a1081bfa155dac3aa8e15c0 (diff) |
INTEGRATION: CWS sb59 (1.11.62); FILE MERGED
2006/08/10 11:37:38 thb 1.11.62.1: #i67535# Added virtual destructor to ExpressionNode interface; added various static_int_casts for accessibility; corrected using <method> declarations in unoshape.hxx; removed dead code from EnhancedCustomShape3d; fixed ugly infinite recursion in _contdlg (induced by removing a warning via method renaming)
Diffstat (limited to 'svx/source/accessibility')
-rw-r--r-- | svx/source/accessibility/charmapacc.cxx | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/svx/source/accessibility/charmapacc.cxx b/svx/source/accessibility/charmapacc.cxx index 286bad46fff7..4db105a5405b 100644 --- a/svx/source/accessibility/charmapacc.cxx +++ b/svx/source/accessibility/charmapacc.cxx @@ -4,9 +4,9 @@ * * $RCSfile: charmapacc.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: obo $ $Date: 2006-09-17 04:05:41 $ + * last change: $Author: obo $ $Date: 2006-10-12 12:01:24 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -128,7 +128,7 @@ uno::Reference< accessibility::XAccessible > SAL_CALL SvxShowCharSetVirtualAcc:: ensureAlive(); uno::Reference< accessibility::XAccessible > xRet; - const USHORT nItemId = mpParent->PixelToMapIndex( Point( aPoint.X, aPoint.Y ) ); + const USHORT nItemId = sal::static_int_cast<USHORT>(mpParent->PixelToMapIndex( Point( aPoint.X, aPoint.Y ) )); if( USHORT(-1) != nItemId ) { @@ -360,7 +360,8 @@ IMPLEMENT_FORWARD_XTYPEPROVIDER2( SvxShowCharSetAcc, OAccessibleSelectionHelper, // ----------------------------------------------------------------------- sal_Bool SvxShowCharSetAcc::implIsSelected( sal_Int32 nAccessibleChildIndex ) throw (RuntimeException) { - return m_pParent && m_pParent->getCharSetControl()->IsSelected(nAccessibleChildIndex); + return m_pParent && m_pParent->getCharSetControl()->IsSelected( + sal::static_int_cast<USHORT>(nAccessibleChildIndex)); } // ----------------------------------------------------------------------------- // select the specified child => watch for special ChildIndexes (ACCESSIBLE_SELECTION_CHILD_xxx) @@ -510,7 +511,8 @@ uno::Reference< accessibility::XAccessible > SAL_CALL SvxShowCharSetAcc::getAcce ensureAlive(); uno::Reference< accessibility::XAccessible > xRet; - const USHORT nItemId = m_pParent->getCharSetControl()->PixelToMapIndex( Point( aPoint.X, aPoint.Y ) ); + const USHORT nItemId = sal::static_int_cast<USHORT>( + m_pParent->getCharSetControl()->PixelToMapIndex( Point( aPoint.X, aPoint.Y ) )); if( USHORT(-1) != nItemId ) { @@ -615,7 +617,8 @@ Reference< XAccessible > SAL_CALL SvxShowCharSetAcc::getAccessibleCellAt( sal_In { OExternalLockGuard aGuard( this ); ensureAlive(); - ::svx::SvxShowCharSetItem* pItem = m_pParent->getCharSetControl()->ImplGetItem( getAccessibleIndex(nRow,nColumn) ); + ::svx::SvxShowCharSetItem* pItem = m_pParent->getCharSetControl()->ImplGetItem( + sal::static_int_cast<USHORT>(getAccessibleIndex(nRow,nColumn) )); if ( !pItem ) throw IndexOutOfBoundsException(); return pItem->GetAccessible(); @@ -647,14 +650,14 @@ sal_Int32 SAL_CALL SvxShowCharSetAcc::getAccessibleRow( sal_Int32 nChildIndex ) { OExternalLockGuard aGuard( this ); ensureAlive(); - return m_pParent->getCharSetControl()->GetRowPos(nChildIndex); + return m_pParent->getCharSetControl()->GetRowPos(sal::static_int_cast<USHORT>(nChildIndex)); } // ----------------------------------------------------------------------------- sal_Int32 SAL_CALL SvxShowCharSetAcc::getAccessibleColumn( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException) { OExternalLockGuard aGuard( this ); ensureAlive(); - return m_pParent->getCharSetControl()->GetColumnPos(nChildIndex); + return m_pParent->getCharSetControl()->GetColumnPos(sal::static_int_cast<USHORT>(nChildIndex)); } // ----------------------------------------------------------------------------- @@ -740,7 +743,7 @@ sal_Int16 SAL_CALL SvxShowCharSetItemAcc::getAccessibleRole() sal_Unicode c_Shifted = c; for( int i = 0; i < 4; ++i ) { - char h = c_Shifted & 0x0F; + char h = (char)(c_Shifted & 0x0F); buf[5-i] = (h > 9) ? (h - 10 + 'A') : (h + '0'); c_Shifted >>= 4; } |