summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-03-01 03:13:28 +0100
committerEike Rathke <erack@redhat.com>2014-03-05 07:31:19 -0600
commit68ec95b3f80408ae50897b043eed69a07d084df9 (patch)
tree5d32076e843fae44f28e3c8d9dbbacf7648fecbc /fpicker
parentc3403ac888c2e62edaf8befe7982f5f8cc95c16f (diff)
made ListBox handle more than 64k elements, fdo#61520 related
ListBox and related now handle up to sal_Int32 elements correctly. sal_Int32 instead of sal_Size or size_t because of UNO and a11y API. Also disentangled some of the mess of SvTreeList and other containers regarding sal_uInt16, sal_uLong, long, size_t, ... type mixtures. Change-Id: Idb6e0ae689dc5bc2cf980721972b57b0261e688a Reviewed-on: https://gerrit.libreoffice.org/8460 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/OfficeControlAccess.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/fpicker/source/office/OfficeControlAccess.cxx b/fpicker/source/office/OfficeControlAccess.cxx
index 90f23d6edc1f..f546c8f103f7 100644
--- a/fpicker/source/office/OfficeControlAccess.cxx
+++ b/fpicker/source/office/OfficeControlAccess.cxx
@@ -519,7 +519,7 @@ namespace svt
{
sal_Int32 nPos = 0;
if ( _rValue >>= nPos )
- _pListbox->RemoveEntry( (sal_uInt16) nPos );
+ _pListbox->RemoveEntry( nPos );
}
break;
@@ -657,7 +657,7 @@ namespace svt
sal_Int32 nPos = 0;
if ( _rValue >>= nPos )
{
- static_cast< ListBox* >( _pControl )->SelectEntryPos( (sal_uInt16) nPos );
+ static_cast< ListBox* >( _pControl )->SelectEntryPos( nPos );
}
else if ( !_bIgnoreIllegalArgument )
{
@@ -719,7 +719,7 @@ namespace svt
Sequence< OUString > aItems( static_cast< ListBox* >( _pControl )->GetEntryCount() );
OUString* pItems = aItems.getArray();
- for ( sal_uInt16 i=0; i<static_cast< ListBox* >( _pControl )->GetEntryCount(); ++i )
+ for ( sal_Int32 i=0; i<static_cast< ListBox* >( _pControl )->GetEntryCount(); ++i )
*pItems++ = static_cast< ListBox* >( _pControl )->GetEntry( i );
aReturn <<= aItems;
@@ -731,7 +731,7 @@ namespace svt
DBG_ASSERT( WINDOW_LISTBOX == _pControl->GetType(),
"OControlAccess::implGetControlProperty: invalid control/property combination!" );
- sal_uInt16 nSelected = static_cast< ListBox* >( _pControl )->GetSelectEntryPos();
+ sal_Int32 nSelected = static_cast< ListBox* >( _pControl )->GetSelectEntryPos();
OUString sSelected;
if ( LISTBOX_ENTRY_NOTFOUND != nSelected )
sSelected = static_cast< ListBox* >( _pControl )->GetSelectEntry();
@@ -744,7 +744,7 @@ namespace svt
DBG_ASSERT( WINDOW_LISTBOX == _pControl->GetType(),
"OControlAccess::implGetControlProperty: invalid control/property combination!" );
- sal_uInt16 nSelected = static_cast< ListBox* >( _pControl )->GetSelectEntryPos();
+ sal_Int32 nSelected = static_cast< ListBox* >( _pControl )->GetSelectEntryPos();
if ( LISTBOX_ENTRY_NOTFOUND != nSelected )
aReturn <<= (sal_Int32)static_cast< ListBox* >( _pControl )->GetSelectEntryPos();
else