valueacc.cxx (4d7c9de0) valueacc.cxx (3ea0c3d5)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 774 unchanged lines hidden (view full) ---

783 if (nIndex == 0)
784 // When present the first item is the then allways visible none field.
785 pItem = mpParent->ImplGetItem (VALUESET_ITEM_NONEITEM);
786 else
787 // Shift down the index to compensate for the none field.
788 nIndex -= 1;
789 }
790 if (pItem == NULL)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 774 unchanged lines hidden (view full) ---

783 if (nIndex == 0)
784 // When present the first item is the then allways visible none field.
785 pItem = mpParent->ImplGetItem (VALUESET_ITEM_NONEITEM);
786 else
787 // Shift down the index to compensate for the none field.
788 nIndex -= 1;
789 }
790 if (pItem == NULL)
791 //pItem = mpParent->ImplGetVisibleItem (static_cast<sal_uInt16>(nIndex));
792 pItem = mpParent->ImplGetItem (static_cast<sal_uInt16>(nIndex));
793
794 return pItem;
795}
796
797
798
799

--- 168 unchanged lines hidden (view full) ---

968 sal_uInt16 nCount = mpParent->mrParent.ImplGetVisibleItemCount();
969 ValueSetItem* pItem;
970 for (sal_uInt16 i=0; i<nCount && !bDone; i++)
971 {
972 // Guard the retrieval of the i-th child with a try/catch block
973 // just in case the number of children changes in the mean time.
974 try
975 {
791 pItem = mpParent->ImplGetItem (static_cast<sal_uInt16>(nIndex));
792
793 return pItem;
794}
795
796
797
798

--- 168 unchanged lines hidden (view full) ---

967 sal_uInt16 nCount = mpParent->mrParent.ImplGetVisibleItemCount();
968 ValueSetItem* pItem;
969 for (sal_uInt16 i=0; i<nCount && !bDone; i++)
970 {
971 // Guard the retrieval of the i-th child with a try/catch block
972 // just in case the number of children changes in the mean time.
973 try
974 {
976 //pItem = mpParent->mrParent.ImplGetVisibleItem (i);
977 pItem = mpParent->mrParent.ImplGetItem(i);
978 }
979 catch (lang::IndexOutOfBoundsException aException)
980 {
981 pItem = NULL;
982 }
983
984 // Do not create an accessible object for the test.

--- 314 unchanged lines hidden ---
975 pItem = mpParent->mrParent.ImplGetItem(i);
976 }
977 catch (lang::IndexOutOfBoundsException aException)
978 {
979 pItem = NULL;
980 }
981
982 // Do not create an accessible object for the test.

--- 314 unchanged lines hidden ---