Lines Matching refs:pItems
325 ImplSplitItem* pItems = pSet->mpItems; in ImplFindSet() local
329 if ( pItems[i].mnId == nId ) in ImplFindSet()
330 return pItems[i].mpSet; in ImplFindSet()
335 if ( pItems[i].mpSet ) in ImplFindSet()
337 ImplSplitSet* pFindSet = ImplFindSet( pItems[i].mpSet, nId ); in ImplFindSet()
352 ImplSplitItem* pItems = pSet->mpItems; in ImplFindItem() local
356 if ( pItems[i].mnId == nId ) in ImplFindItem()
365 if ( pItems[i].mpSet ) in ImplFindItem()
367 ImplSplitSet* pFindSet = ImplFindItem( pItems[i].mpSet, nId, rPos ); in ImplFindItem()
382 ImplSplitItem* pItems = pSet->mpItems; in ImplFindItem() local
386 if ( pItems[i].mpWindow == pWindow ) in ImplFindItem()
387 return pItems[i].mnId; in ImplFindItem()
390 if ( pItems[i].mpSet ) in ImplFindItem()
392 sal_uInt16 nId = ImplFindItem( pItems[i].mpSet, pWindow ); in ImplFindItem()
409 ImplSplitItem* pItems = pSet->mpItems; in ImplFindItem() local
413 if ( pItems[i].mnWidth && pItems[i].mnHeight ) in ImplFindItem()
416 Point aPoint( pItems[i].mnLeft, pItems[i].mnTop ); in ImplFindItem()
417 Size aSize( pItems[i].mnWidth, pItems[i].mnHeight ); in ImplFindItem()
436 if ( pItems[i].mpSet && pItems[i].mpSet->mpItems ) in ImplFindItem()
438 return ImplFindItem( pItems[i].mpSet, rPos, in ImplFindItem()
439 ((pItems[i].mnBits & SWIB_COLSET) == 0) ); in ImplFindItem()
442 return pItems[i].mnId; in ImplFindItem()
456 ImplSplitItem* pItems = pSet->mpItems; in ImplDeleteSet() local
460 if ( pItems[i].mpSet ) in ImplDeleteSet()
461 ImplDeleteSet( pItems[i].mpSet ); in ImplDeleteSet()
470 delete [] pItems; in ImplDeleteSet()
515 ImplSplitItem* pItems = pSet->mpItems; in ImplCalcSet() local
522 if ( !(pItems[i].mnBits & SWIB_INVISIBLE) ) in ImplCalcSet()
542 if ( !(pItems[i].mnBits & SWIB_INVISIBLE) ) in ImplCalcSet()
544 if ( pItems[i].mnBits & SWIB_RELATIVESIZE ) in ImplCalcSet()
545 nRelCount += pItems[i].mnSize; in ImplCalcSet()
546 else if ( pItems[i].mnBits & SWIB_PERCENTSIZE ) in ImplCalcSet()
547 nPercent += pItems[i].mnSize; in ImplCalcSet()
549 nAbsSize += pItems[i].mnSize; in ImplCalcSet()
575 if ( pItems[i].mnBits & SWIB_INVISIBLE ) in ImplCalcSet()
576 pItems[i].mnPixSize = 0; in ImplCalcSet()
577 else if ( pItems[i].mnBits & SWIB_RELATIVESIZE ) in ImplCalcSet()
580 pItems[i].mnPixSize = 0; in ImplCalcSet()
582 pItems[i].mnPixSize = (nSizeDelta*pItems[i].mnSize*nRelPercent)/nPercent; in ImplCalcSet()
584 else if ( pItems[i].mnBits & SWIB_PERCENTSIZE ) in ImplCalcSet()
587 pItems[i].mnPixSize = 0; in ImplCalcSet()
589 pItems[i].mnPixSize = (nSizeDelta*pItems[i].mnSize*nPercentFactor)/nPercent; in ImplCalcSet()
592 pItems[i].mnPixSize = pItems[i].mnSize; in ImplCalcSet()
593 nCurSize += pItems[i].mnPixSize; in ImplCalcSet()
610 if ( !(pItems[i].mnBits & SWIB_INVISIBLE) ) in ImplCalcSet()
612 if ( !(pItems[i].mnBits & (SWIB_RELATIVESIZE | SWIB_PERCENTSIZE)) ) in ImplCalcSet()
615 nSizeWinSize += pItems[i].mnPixSize; in ImplCalcSet()
624 if ( !(pItems[i].mnBits & SWIB_INVISIBLE) ) in ImplCalcSet()
626 if ( !(pItems[i].mnBits & (SWIB_RELATIVESIZE | SWIB_PERCENTSIZE)) ) in ImplCalcSet()
628 pItems[i].mnPixSize += (nSizeDelta*pItems[i].mnPixSize)/nSizeWinSize; in ImplCalcSet()
629 nNewSizeWinSize += pItems[i].mnPixSize; in ImplCalcSet()
647 pItems[i].mbSubSize = sal_False; in ImplCalcSet()
650 pItems[i].mbSubSize = sal_True; in ImplCalcSet()
653 if ( !(pItems[i].mnBits & SWIB_INVISIBLE) ) in ImplCalcSet()
655 if ( (nSizeDelta > 0) || pItems[i].mnPixSize ) in ImplCalcSet()
658 pItems[i].mbSubSize = sal_True; in ImplCalcSet()
661 if ( (j == 0) && (pItems[i].mnBits & (SWIB_RELATIVESIZE | SWIB_PERCENTSIZE)) ) in ImplCalcSet()
662 pItems[i].mbSubSize = sal_True; in ImplCalcSet()
668 if ( pItems[i].mbSubSize ) in ImplCalcSet()
681 if ( pItems[i].mnBits & SWIB_INVISIBLE ) in ImplCalcSet()
683 else if ( pItems[i].mbSubSize ) in ImplCalcSet()
685 pSize = &(pItems[i].mnPixSize); in ImplCalcSet()
727 if ( !(pItems[i].mnBits & SWIB_INVISIBLE) ) in ImplCalcSet()
728 nCurSize += pItems[i].mnPixSize; in ImplCalcSet()
753 pItems[i].mnOldSplitPos = pItems[i].mnSplitPos; in ImplCalcSet()
754 pItems[i].mnOldSplitSize = pItems[i].mnSplitSize; in ImplCalcSet()
755 pItems[i].mnOldWidth = pItems[i].mnWidth; in ImplCalcSet()
756 pItems[i].mnOldHeight = pItems[i].mnHeight; in ImplCalcSet()
758 if ( pItems[i].mnBits & SWIB_INVISIBLE ) in ImplCalcSet()
765 if ( nPos+pItems[i].mnPixSize > nMaxPos ) in ImplCalcSet()
770 nPos -= pItems[i].mnPixSize; in ImplCalcSet()
778 pItems[i].mnWidth = 0; in ImplCalcSet()
779 pItems[i].mnHeight = 0; in ImplCalcSet()
780 pItems[i].mnSplitSize = 0; in ImplCalcSet()
786 pItems[i].mnLeft = nSetLeft; in ImplCalcSet()
787 pItems[i].mnTop = nPos; in ImplCalcSet()
788 pItems[i].mnWidth = nSetWidth; in ImplCalcSet()
789 pItems[i].mnHeight = pItems[i].mnPixSize; in ImplCalcSet()
793 pItems[i].mnLeft = nPos; in ImplCalcSet()
794 pItems[i].mnTop = nSetTop; in ImplCalcSet()
795 pItems[i].mnWidth = pItems[i].mnPixSize; in ImplCalcSet()
796 pItems[i].mnHeight = nSetHeight; in ImplCalcSet()
800 pItems[i].mnSplitSize = 0; in ImplCalcSet()
803 pItems[i].mnSplitSize = pSet->mnSplitSize; in ImplCalcSet()
806 pItems[i].mnSplitPos = nPos+pItems[i].mnPixSize; in ImplCalcSet()
807 if ( pItems[i].mnSplitPos+pItems[i].mnSplitSize > nMaxPos ) in ImplCalcSet()
808 pItems[i].mnSplitSize = nMaxPos-pItems[i].mnSplitPos; in ImplCalcSet()
812 pItems[i].mnSplitPos = nPos-pSet->mnSplitSize; in ImplCalcSet()
813 if ( pItems[i].mnSplitPos < nMaxPos ) in ImplCalcSet()
814 pItems[i].mnSplitSize = pItems[i].mnSplitPos+pSet->mnSplitSize-nMaxPos; in ImplCalcSet()
819 if ( !(pItems[i].mnBits & SWIB_INVISIBLE) ) in ImplCalcSet()
824 nPos += pItems[i].mnPixSize+pSet->mnSplitSize; in ImplCalcSet()
831 if ( pItems[i].mpSet && pItems[i].mnWidth && pItems[i].mnHeight ) in ImplCalcSet()
833 ImplCalcSet( pItems[i].mpSet, in ImplCalcSet()
834 pItems[i].mnLeft, pItems[i].mnTop, in ImplCalcSet()
835 pItems[i].mnWidth, pItems[i].mnHeight, in ImplCalcSet()
836 ((pItems[i].mnBits & SWIB_COLSET) == 0) ); in ImplCalcSet()
843 pItems[i].mbFixed = sal_False; in ImplCalcSet()
844 if ( pItems[i].mnBits & SWIB_FIXED ) in ImplCalcSet()
845 pItems[i].mbFixed = sal_True; in ImplCalcSet()
850 if ( pItems[i].mpSet ) in ImplCalcSet()
852 for ( j = 0; j < pItems[i].mpSet->mnItems; j++ ) in ImplCalcSet()
854 if ( pItems[i].mpSet->mpItems[j].mbFixed ) in ImplCalcSet()
856 pItems[i].mbFixed = sal_True; in ImplCalcSet()
872 ImplSplitItem* pItems = pSet->mpItems; in ImplCalcSet2() local
878 if ( pItems[i].mnSplitSize ) in ImplCalcSet2()
881 if ( (pItems[i].mnOldSplitPos != pItems[i].mnSplitPos) || in ImplCalcSet2()
882 (pItems[i].mnOldSplitSize != pItems[i].mnSplitSize) || in ImplCalcSet2()
883 (pItems[i].mnOldWidth != pItems[i].mnWidth) || in ImplCalcSet2()
884 (pItems[i].mnOldHeight != pItems[i].mnHeight) ) in ImplCalcSet2()
891 aRect.Left() = pItems[i].mnLeft; in ImplCalcSet2()
892 aRect.Right() = pItems[i].mnLeft+pItems[i].mnOldWidth-1; in ImplCalcSet2()
893 aRect.Top() = pItems[i].mnOldSplitPos; in ImplCalcSet2()
894 aRect.Bottom() = aRect.Top() + pItems[i].mnOldSplitSize; in ImplCalcSet2()
898 aRect.Top() = pItems[i].mnTop; in ImplCalcSet2()
899 aRect.Bottom() = pItems[i].mnTop+pItems[i].mnOldHeight-1; in ImplCalcSet2()
900 aRect.Left() = pItems[i].mnOldSplitPos; in ImplCalcSet2()
901 aRect.Right() = aRect.Left() + pItems[i].mnOldSplitSize; in ImplCalcSet2()
907 aRect.Left() = pItems[i].mnLeft; in ImplCalcSet2()
908 aRect.Right() = pItems[i].mnLeft+pItems[i].mnWidth-1; in ImplCalcSet2()
909 aRect.Top() = pItems[i].mnSplitPos; in ImplCalcSet2()
910 aRect.Bottom() = aRect.Top() + pItems[i].mnSplitSize; in ImplCalcSet2()
914 aRect.Top() = pItems[i].mnTop; in ImplCalcSet2()
915 aRect.Bottom() = pItems[i].mnTop+pItems[i].mnHeight-1; in ImplCalcSet2()
916 aRect.Left() = pItems[i].mnSplitPos; in ImplCalcSet2()
917 aRect.Right() = aRect.Left() + pItems[i].mnSplitSize; in ImplCalcSet2()
923 if ( pItems[i].mpSet && !pItems[i].mpSet->mpItems ) in ImplCalcSet2()
925 aRect.Left() = pItems[i].mnLeft; in ImplCalcSet2()
926 aRect.Top() = pItems[i].mnTop; in ImplCalcSet2()
927 aRect.Right() = pItems[i].mnLeft+pItems[i].mnWidth-1; in ImplCalcSet2()
928 aRect.Bottom() = pItems[i].mnTop+pItems[i].mnHeight-1; in ImplCalcSet2()
939 if ( pItems[i].mpSet ) in ImplCalcSet2()
942 if ( !pItems[i].mnWidth || !pItems[i].mnHeight ) in ImplCalcSet2()
944 ImplCalcSet2( pWindow, pItems[i].mpSet, bTempHide, in ImplCalcSet2()
945 ((pItems[i].mnBits & SWIB_COLSET) == 0) ); in ImplCalcSet2()
949 if ( pItems[i].mnWidth && pItems[i].mnHeight && !bHide ) in ImplCalcSet2()
951 Point aPos( pItems[i].mnLeft, pItems[i].mnTop ); in ImplCalcSet2()
952 Size aSize( pItems[i].mnWidth, pItems[i].mnHeight ); in ImplCalcSet2()
953 pItems[i].mpWindow->SetPosSizePixel( aPos, aSize ); in ImplCalcSet2()
956 pItems[i].mpWindow->Hide(); in ImplCalcSet2()
963 if ( pItems[i].mpWindow && pItems[i].mnWidth && pItems[i].mnHeight && !bHide ) in ImplCalcSet2()
964 pItems[i].mpWindow->Show(); in ImplCalcSet2()
970 static void ImplCalcLogSize( ImplSplitItem* pItems, sal_uInt16 nItems ) in ImplCalcLogSize() argument
978 if ( pItems[i].mnBits & SWIB_RELATIVESIZE ) in ImplCalcLogSize()
979 nRelSize += pItems[i].mnPixSize; in ImplCalcLogSize()
980 else if ( pItems[i].mnBits & SWIB_PERCENTSIZE ) in ImplCalcLogSize()
981 nPerSize += pItems[i].mnPixSize; in ImplCalcLogSize()
986 if ( pItems[i].mnBits & SWIB_RELATIVESIZE ) in ImplCalcLogSize()
989 pItems[i].mnSize = (pItems[i].mnPixSize+(nRelSize/2))/nRelSize; in ImplCalcLogSize()
991 pItems[i].mnSize = 1; in ImplCalcLogSize()
993 else if ( pItems[i].mnBits & SWIB_PERCENTSIZE ) in ImplCalcLogSize()
996 pItems[i].mnSize = (pItems[i].mnPixSize*100)/nPerSize; in ImplCalcLogSize()
998 pItems[i].mnSize = 1; in ImplCalcLogSize()
1001 pItems[i].mnSize = pItems[i].mnPixSize; in ImplCalcLogSize()
1040 ImplSplitItem* pItems = pSet->mpItems; in ImplDrawBack() local
1057 pSet = pItems[i].mpSet; in ImplDrawBack()
1063 Point aPoint( pItems[i].mnLeft, pItems[i].mnTop ); in ImplDrawBack()
1064 Size aSize( pItems[i].mnWidth, pItems[i].mnHeight ); in ImplDrawBack()
1073 if ( pItems[i].mpSet ) in ImplDrawBack()
1074 ImplDrawBack( pWindow, pItems[i].mpSet ); in ImplDrawBack()
1091 ImplSplitItem* pItems = pSet->mpItems; in ImplDrawSplit() local
1098 if ( pItems[i].mnSplitSize ) in ImplDrawSplit()
1100 nPos = pItems[i].mnSplitPos; in ImplDrawSplit()
1102 long nItemSplitSize = pItems[i].mnSplitSize; in ImplDrawSplit()
1106 nTop = pItems[i].mnLeft; in ImplDrawSplit()
1107 nBottom = pItems[i].mnLeft+pItems[i].mnWidth-1; in ImplDrawSplit()
1136 nTop = pItems[i].mnTop; in ImplDrawSplit()
1137 nBottom = pItems[i].mnTop+pSet->mpItems[i].mnHeight-1; in ImplDrawSplit()
1168 if ( pItems[i].mpSet && pItems[i].mnWidth && pItems[i].mnHeight ) in ImplDrawSplit()
1169 ImplDrawSplit( pWindow, pItems[i].mpSet, ((pItems[i].mnBits & SWIB_COLSET) == 0) ); in ImplDrawSplit()
1190 ImplSplitItem* pItems = pSet->mpItems; in ImplTestSplit() local
1205 if ( pItems[i].mnSplitSize ) in ImplTestSplit()
1209 nTop = pItems[i].mnLeft; in ImplTestSplit()
1210 nBottom = pItems[i].mnLeft+pItems[i].mnWidth-1; in ImplTestSplit()
1214 nTop = pItems[i].mnTop; in ImplTestSplit()
1215 nBottom = pItems[i].mnTop+pItems[i].mnHeight-1; in ImplTestSplit()
1217 nPos = pItems[i].mnSplitPos; in ImplTestSplit()
1220 (nMPos2 >= nPos) && (nMPos2 <= nPos+pItems[i].mnSplitSize) ) in ImplTestSplit()
1222 if ( !pItems[i].mbFixed && !pItems[i+1].mbFixed ) in ImplTestSplit()
1240 if ( pItems[i].mpSet ) in ImplTestSplit()
1242 nSplitTest = ImplTestSplit( pItems[i].mpSet, rPos, in ImplTestSplit()
1244 ((pItems[i].mnBits & SWIB_COLSET) == 0) ); in ImplTestSplit()
2357 ImplSplitItem* pItems = mpSplitSet->mpItems; in ImplStartSplit() local
2362 mpLastSizes[i*2] = pItems[i].mnSize; in ImplStartSplit()
2363 mpLastSizes[i*2+1] = pItems[i].mnPixSize; in ImplStartSplit()
2622 ImplSplitItem* pItems = mpSplitSet->mpItems; in Tracking() local
2626 pItems[i].mnSize = mpLastSizes[i*2]; in Tracking()
2627 pItems[i].mnPixSize = mpLastSizes[i*2+1]; in Tracking()
3269 ImplSplitItem* pItems; in SplitItem() local
3275 pItems = pSet->mpItems; in SplitItem()
3279 nNewSize = ValidateSize(nNewSize, pItems[nPos]); in SplitItem()
3283 pItems[nPos].mnSize = nNewSize; in SplitItem()
3287 nDelta = nNewSize-pItems[nPos].mnPixSize; in SplitItem()
3296 if ( pItems[i].mbFixed ) in SplitItem()
3359 pItems[n].mnPixSize++; in SplitItem()
3369 pItems[nPos+1].mnPixSize -= nDelta; in SplitItem()
3381 if ( nDelta && pItems[n-1].mnPixSize ) in SplitItem()
3383 pItems[n-1].mnPixSize--; in SplitItem()
3398 if ( pItems[n-1].mnPixSize+nDelta < 0 ) in SplitItem()
3400 nDelta += pItems[n-1].mnPixSize; in SplitItem()
3401 pItems[n-1].mnPixSize = 0; in SplitItem()
3405 pItems[n-1].mnPixSize += nDelta; in SplitItem()
3428 pItems[n-1].mnPixSize++; in SplitItem()
3438 pItems[nPos].mnPixSize += nDelta; in SplitItem()
3450 if ( nDelta && pItems[n].mnPixSize ) in SplitItem()
3452 pItems[n].mnPixSize--; in SplitItem()
3467 if ( pItems[n].mnPixSize-nDelta < 0 ) in SplitItem()
3469 nDelta -= pItems[n].mnPixSize; in SplitItem()
3470 pItems[n].mnPixSize = 0; in SplitItem()
3474 pItems[n].mnPixSize -= nDelta; in SplitItem()
3485 ImplCalcLogSize( pItems, nItems ); in SplitItem()
3542 ImplSplitItem* pItems; in GetItemSize() local
3547 pItems = pSet->mpItems; in GetItemSize()
3553 nTempBits = pItems[i].mnBits; in GetItemSize()
3555 nRelSize += pItems[i].mnPixSize; in GetItemSize()
3557 nPerSize += pItems[i].mnPixSize; in GetItemSize()
3563 return (pItems[nPos].mnPixSize+(nRelSize/2))/nRelSize; in GetItemSize()
3570 return (pItems[nPos].mnPixSize*100)/nPerSize; in GetItemSize()
3575 return pItems[nPos].mnPixSize; in GetItemSize()