Lines Matching refs:pItems

74 	if (pItems && nCount>0)  in Insert()
76 if (pItems[nCount-1].nRow < nRow) in Insert()
87 ScBaseCell* pOldCell = pItems[nIndex].pCell; in Insert()
99 if ( nIndex >= nCount || pItems[nIndex].nRow != nRow ) in Insert()
103 pItems[nIndex].pCell = pNewCell; in Insert()
124 if (pItems) in Insert()
126 memmove( pNewItems, pItems, nCount * sizeof(ColEntry) ); in Insert()
127 delete[] pItems; in Insert()
129 pItems = pNewItems; in Insert()
131 memmove( &pItems[nIndex + 1], &pItems[nIndex], (nCount - nIndex) * sizeof(ColEntry) ); in Insert()
132 pItems[nIndex].pCell = pNewCell; in Insert()
133 pItems[nIndex].nRow = nRow; in Insert()
192 if (pItems) in Append()
194 memmove( pNewItems, pItems, nCount * sizeof(ColEntry) ); in Append()
195 delete[] pItems; in Append()
197 pItems = pNewItems; in Append()
199 pItems[nCount].pCell = pCell; in Append()
200 pItems[nCount].nRow = nRow; in Append()
211 ScBaseCell* pCell = pItems[nIndex].pCell; in Delete()
213 pItems[nIndex].pCell = pNoteCell; // Dummy fuer Interpret in Delete()
224 memmove( &pItems[nIndex], &pItems[nIndex + 1], (nCount - nIndex) * sizeof(ColEntry) ); in Delete()
225 pItems[nCount].nRow = 0; in Delete()
226 pItems[nCount].pCell = NULL; in Delete()
237 ScBaseCell* pCell = pItems[nIndex].pCell; in DeleteAtIndex()
239 pItems[nIndex].pCell = pNoteCell; // Dummy fuer Interpret in DeleteAtIndex()
241 ScAddress( nCol, pItems[nIndex].nRow, nTab ), pCell ) ); in DeleteAtIndex()
244 memmove( &pItems[nIndex], &pItems[nIndex + 1], (nCount - nIndex) * sizeof(ColEntry) ); in DeleteAtIndex()
245 pItems[nCount].nRow = 0; in DeleteAtIndex()
246 pItems[nCount].pCell = NULL; in DeleteAtIndex()
254 if (pItems) in FreeAll()
257 pItems[i].pCell->Delete(); in FreeAll()
258 delete[] pItems; in FreeAll()
259 pItems = NULL; in FreeAll()
270 if ( !pItems || !nCount ) in DeleteRow()
287 for ( i = nFirstIndex; i < nCount && pItems[i].nRow <= nEndRow; i++ ) in DeleteRow()
296 ScBaseCell* pCell = pItems[i].pCell; in DeleteRow()
323 sal_Bool bSingleBroadcasts = (((pItems[nCount-1].nRow - pItems[i].nRow) / in DeleteRow()
330 SCROW nOldRow = pItems[i].nRow; in DeleteRow()
334 SCROW nNewRow = (pItems[i].nRow -= nSize); in DeleteRow()
342 ScBaseCell* pCell = pItems[i].pCell; in DeleteRow()
349 rAddress.SetRow( pItems[i].nRow ); in DeleteRow()
351 aRange.aEnd.SetRow( pItems[nCount-1].nRow ); in DeleteRow()
354 SCROW nNewRow = (pItems[i].nRow -= nSize); in DeleteRow()
355 ScBaseCell* pCell = pItems[i].pCell; in DeleteRow()
376 if ( ScPostIt* pNote = pItems[ nIdx ].pCell->GetNote() ) in DeleteRange()
383 if (pItems[ nIdx ].pCell->GetBroadcaster()) in DeleteRange()
400 ScBaseCell* pOldCell = pItems[ nIdx ].pCell; in DeleteRange()
409 pItems[ nIdx ].pCell = pNoteCell; in DeleteRange()
410 aHint.GetAddress().SetRow( pItems[ nIdx ].nRow ); in DeleteRange()
417 …memmove( &pItems[nStartIndex], &pItems[nEndIndex + 1], (nCount - nEndIndex - 1) * sizeof(ColEntry)… in DeleteRange()
429 ScBaseCell* pOldCell = pItems[j].pCell; in DeleteRange()
441 …sal_uLong nIndex = (sal_uLong)((SfxUInt32Item*)GetAttr( pItems[j].nRow, ATTR_VALUE_FORMAT ))->GetV… in DeleteRange()
481 SCROW nOldRow = pItems[j].nRow; in DeleteRange()
485 pItems[j].pCell = pNoteCell; in DeleteRange()
492 memmove( &pItems[j], &pItems[j + 1], (nCount - j) * sizeof(ColEntry) ); in DeleteRange()
493 pItems[nCount].nRow = 0; in DeleteRange()
494 pItems[nCount].pCell = 0; in DeleteRange()
516 pItems[j].pCell->DeleteNote(); in DeleteRange()
564 if (pItems && nCount>0 && nContFlag) in DeleteArea()
574 if ((pItems[i].nRow >= nStartRow) && (pItems[i].nRow <= nEndRow)) in DeleteArea()
611 ScBaseCell* pCell = pItems[nIndex].pCell; in CreateRefCell()
624 pItems[nIndex].nRow, ATTR_VALUE_FORMAT ))->GetValue(); in CreateRefCell()
648 aRef.nRow = pItems[nIndex].nRow; in CreateRefCell()
681 while ( nStartIndex < rColumn.nCount && rColumn.pItems[nStartIndex].nRow <= nRow2-nDy ) in CopyFromClip()
684 if ( rColumn.pItems[nStartIndex].pCell->GetCellType() != CELLTYPE_NOTE ) in CopyFromClip()
686 SCROW nStartRow = rColumn.pItems[nStartIndex].nRow; in CopyFromClip()
693 rColumn.pItems[nEndIndex+1].nRow == nEndRow+1 && in CopyFromClip()
694 rColumn.pItems[nEndIndex+1].pCell->GetCellType() != CELLTYPE_NOTE ) in CopyFromClip()
762 SCsROW nDestRow = rColumn.pItems[i].nRow + nDy; in CopyFromClip()
783 const ScBaseCell* pSourceCell = rColumn.pItems[i].pCell; in CopyFromClip()
790 ScAddress aSourcePos( rColumn.nCol, rColumn.pItems[i].nRow, rColumn.nTab ); in CopyFromClip()
836 ScBaseCell& rSource = *pItems[nIndex].pCell; in CloneCell()
852 … if (lclCanCloneValue( *pDocument, *this, pItems[nIndex].nRow, bCloneValue, bCloneDateTime )) in CloneCell()
880 … if (lclCanCloneValue( *pDocument, *this, pItems[nIndex].nRow, bCloneValue, bCloneDateTime )) in CloneCell()
916 ScAddress aOwnPos( nCol, pItems[nIndex].nRow, nTab ); in CloneCell()
1002 nNextThis = pItems[nIndex].nRow; in MixData()
1005 nNextSrc = rSrcCol.pItems[nSrcIndex].nRow; in MixData()
1017 pSrc = rSrcCol.pItems[nSrcIndex].pCell; in MixData()
1020 pDest = pItems[nIndex].pCell; in MixData()
1144 nNextThis = ( nIndex < nCount ) ? pItems[nIndex].nRow : MAXROW+1; in MixData()
1150 nNextThis = ( nIndex < nCount ) ? pItems[nIndex].nRow : MAXROW+1; in MixData()
1156 rSrcCol.pItems[nSrcIndex].nRow : in MixData()
1171 if (pItems) in StartAllListeners()
1174 ScBaseCell* pCell = pItems[i].pCell; in StartAllListeners()
1177 SCROW nRow = pItems[i].nRow; in StartAllListeners()
1179 if ( nRow != pItems[i].nRow ) in StartAllListeners()
1188 if (pItems) in StartNeededListeners()
1192 ScBaseCell* pCell = pItems[i].pCell; in StartNeededListeners()
1198 SCROW nRow = pItems[i].nRow; in StartNeededListeners()
1200 if ( nRow != pItems[i].nRow ) in StartNeededListeners()
1211 if ( pItems ) in BroadcastInArea()
1216 while ( nIndex < nCount && (nRow = pItems[nIndex].nRow) <= nRow2 ) in BroadcastInArea()
1218 ScBaseCell* pCell = pItems[nIndex].pCell; in BroadcastInArea()
1232 if ( pItems ) in StartListeningInArea()
1237 while ( nIndex < nCount && (nRow = pItems[nIndex].nRow) <= nRow2 ) in StartListeningInArea()
1239 ScBaseCell* pCell = pItems[nIndex].pCell; in StartListeningInArea()
1242 if ( nRow != pItems[nIndex].nRow ) in StartListeningInArea()
1305 if ( pItems && nCount ) in SetString()
1315 ScBaseCell* pCell = pItems[i].pCell; in SetString()
1426 if ( bIsLoading && (!nCount || nRow > pItems[nCount-1].nRow) ) in SetString()
1437 ScBaseCell* pOldCell = pItems[i].pCell; in SetString()
1456 if ( i >= nCount || pItems[i].nRow != nRow ) in SetString()
1460 pItems[i].pCell = pNewCell; // ersetzen in SetString()
1499 while ( (nIndex < nCount) ? ((nRow=pItems[nIndex].nRow) <= nEndRow) : sal_False ) in GetFilterEntries()
1501 ScBaseCell* pCell = pItems[nIndex].pCell; in GetFilterEntries()
1593 ScBaseCell* pCell = pItems[nUpIndex-1].pCell; in GetDataEntries()
1618 ScBaseCell* pCell = pItems[nDownIndex].pCell; in GetDataEntries()
1664 while ( nIndex<nCount && pItems[nIndex].nRow<=nBottom ) in RemoveProtected()
1666 if ( pItems[nIndex].pCell->GetCellType() == CELLTYPE_FORMULA ) in RemoveProtected()
1668 ScFormulaCell* pFormula = (ScFormulaCell*)pItems[nIndex].pCell; in RemoveProtected()
1672 pItems[nIndex].pCell = new ScValueCell( nVal ); in RemoveProtected()
1678 pItems[nIndex].pCell = new ScStringCell( aString ); in RemoveProtected()
1719 ScBaseCell* pCell = pItems[nIndex].pCell; in GetString()
1742 if ( pItems ) in FillDPCacheT()
1746 …StartRow, nIndex ) ? void( ) : void(nIndex = nCount); nIndex < nCount && pItems[nIndex].nRow <= nE… in FillDPCacheT()
1748 for( ; nCurRow < pItems[nIndex].nRow; nCurRow++ ) in FillDPCacheT()
1760 if( ScBaseCell* pCell = pItems[nIndex].pCell ) in FillDPCacheT()
1804 ScBaseCell* pCell = pItems[nIndex].pCell; in GetInputString()
1823 ScBaseCell* pCell = pItems[nIndex].pCell; in GetValue()
1851 ScBaseCell* pCell = pItems[nIndex].pCell; in GetFormula()
1866 return pItems[nIndex].pCell->GetCellType(); in GetCellType()
1876 ScBaseCell* pCell = pItems[nIndex].pCell; in GetErrCode()
1888 return (pItems[nIndex].pCell)->HasStringData(); in HasStringData()
1897 return (pItems[nIndex].pCell)->HasValueData(); in HasValueData()
1905 if ( pItems ) in HasStringCells()
1909 while ( nIndex < nCount && pItems[nIndex].nRow <= nEndRow ) in HasStringCells()
1911 CellType eType = pItems[nIndex].pCell->GetCellType(); in HasStringCells()
1924 return Search( nRow, nIndex ) ? pItems[ nIndex ].pCell->GetNote() : 0; in GetNote()
1932 pItems[ nIndex ].pCell->TakeNote( pNote ); in TakeNote()
1944 ScBaseCell* pCell = pItems[ nIndex ].pCell; in ReleaseNote()
1962 if ( pItems ) in GetMaxStringLen()
1971 while ( nIndex < nCount && (nRow = pItems[nIndex].nRow) <= nRowEnd ) in GetMaxStringLen()
1973 ScBaseCell* pCell = pItems[nIndex].pCell; in GetMaxStringLen()
2017 if ( pItems ) in GetMaxNumberStringLen()
2024 while ( nIndex < nCount && (nRow = pItems[nIndex].nRow) <= nRowEnd ) in GetMaxNumberStringLen()
2026 ScBaseCell* pCell = pItems[nIndex].pCell; in GetMaxNumberStringLen()