Lines Matching refs:pSet
318 static ImplSplitSet* ImplFindSet( ImplSplitSet* pSet, sal_uInt16 nId ) in ImplFindSet() argument
320 if ( pSet->mnId == nId ) in ImplFindSet()
321 return pSet; in ImplFindSet()
324 sal_uInt16 nItems = pSet->mnItems; in ImplFindSet()
325 ImplSplitItem* pItems = pSet->mpItems; in ImplFindSet()
348 static ImplSplitSet* ImplFindItem( ImplSplitSet* pSet, sal_uInt16 nId, sal_uInt16& rPos ) in ImplFindItem() argument
351 sal_uInt16 nItems = pSet->mnItems; in ImplFindItem()
352 ImplSplitItem* pItems = pSet->mpItems; in ImplFindItem()
359 return pSet; in ImplFindItem()
378 static sal_uInt16 ImplFindItem( ImplSplitSet* pSet, Window* pWindow ) in ImplFindItem() argument
381 sal_uInt16 nItems = pSet->mnItems; in ImplFindItem()
382 ImplSplitItem* pItems = pSet->mpItems; in ImplFindItem()
404 static sal_uInt16 ImplFindItem( ImplSplitSet* pSet, const Point& rPos, in ImplFindItem() argument
408 sal_uInt16 nItems = pSet->mnItems; in ImplFindItem()
409 ImplSplitItem* pItems = pSet->mpItems; in ImplFindItem()
422 aRect.Bottom() += pSet->mnSplitSize; in ImplFindItem()
424 aRect.Top() -= pSet->mnSplitSize; in ImplFindItem()
429 aRect.Right() += pSet->mnSplitSize; in ImplFindItem()
431 aRect.Left() -= pSet->mnSplitSize; in ImplFindItem()
452 static void ImplDeleteSet( ImplSplitSet* pSet ) in ImplDeleteSet() argument
455 sal_uInt16 nItems = pSet->mnItems; in ImplDeleteSet()
456 ImplSplitItem* pItems = pSet->mpItems; in ImplDeleteSet()
464 if ( pSet->mpWallpaper ) in ImplDeleteSet()
465 delete pSet->mpWallpaper; in ImplDeleteSet()
467 if ( pSet->mpBitmap ) in ImplDeleteSet()
468 delete pSet->mpBitmap; in ImplDeleteSet()
471 delete pSet; in ImplDeleteSet()
476 static void ImplSetSplitSize( ImplSplitSet* pSet, long nNewSize ) in ImplSetSplitSize() argument
478 pSet->mnSplitSize = nNewSize; in ImplSetSplitSize()
479 for ( sal_uInt16 i = 0; i < pSet->mnItems; i++ ) in ImplSetSplitSize()
481 if ( pSet->mpItems[i].mpSet ) in ImplSetSplitSize()
482 ImplSetSplitSize( pSet->mpItems[i].mpSet, nNewSize ); in ImplSetSplitSize()
488 static void ImplCalcSet( ImplSplitSet* pSet, in ImplCalcSet() argument
493 if ( !pSet->mpItems ) in ImplCalcSet()
500 sal_uInt16 nItems = pSet->mnItems; in ImplCalcSet()
515 ImplSplitItem* pItems = pSet->mpItems; in ImplCalcSet()
531 nCalcSize -= (nVisItems-1)*pSet->mnSplitSize; in ImplCalcSet()
533 if ( pSet->mbCalcPix || (pSet->mnLastSize != nCalcSize) ) in ImplCalcSet()
596 pSet->mbCalcPix = sal_False; in ImplCalcSet()
597 pSet->mnLastSize = nCalcSize; in ImplCalcSet()
803 pItems[i].mnSplitSize = pSet->mnSplitSize; in ImplCalcSet()
812 pItems[i].mnSplitPos = nPos-pSet->mnSplitSize; in ImplCalcSet()
814 pItems[i].mnSplitSize = pItems[i].mnSplitPos+pSet->mnSplitSize-nMaxPos; in ImplCalcSet()
822 nPos -= pSet->mnSplitSize; in ImplCalcSet()
824 nPos += pItems[i].mnPixSize+pSet->mnSplitSize; in ImplCalcSet()
867 void SplitWindow::ImplCalcSet2( SplitWindow* pWindow, ImplSplitSet* pSet, sal_Bool bHide, in ImplCalcSet2() argument
871 sal_uInt16 nItems = pSet->mnItems; in ImplCalcSet2()
872 ImplSplitItem* pItems = pSet->mpItems; in ImplCalcSet2()
1036 void SplitWindow::ImplDrawBack( SplitWindow* pWindow, ImplSplitSet* pSet ) in ImplDrawBack() argument
1039 sal_uInt16 nItems = pSet->mnItems; in ImplDrawBack()
1040 ImplSplitItem* pItems = pSet->mpItems; in ImplDrawBack()
1043 if ( pSet->mnId == 0 ) in ImplDrawBack()
1045 if ( pSet->mpBitmap ) in ImplDrawBack()
1051 ImplDrawBack( pWindow, aRect, pSet->mpWallpaper, pSet->mpBitmap ); in ImplDrawBack()
1057 pSet = pItems[i].mpSet; in ImplDrawBack()
1058 if ( pSet ) in ImplDrawBack()
1060 if ( pSet->mpBitmap || pSet->mpWallpaper ) in ImplDrawBack()
1066 ImplDrawBack( pWindow, aRect, pSet->mpWallpaper, pSet->mpBitmap ); in ImplDrawBack()
1080 static void ImplDrawSplit( SplitWindow* pWindow, ImplSplitSet* pSet, in ImplDrawSplit() argument
1083 if ( !pSet->mpItems ) in ImplDrawSplit()
1087 sal_uInt16 nItems = pSet->mnItems; in ImplDrawSplit()
1091 ImplSplitItem* pItems = pSet->mpItems; in ImplDrawSplit()
1103 long nSplitSize = pSet->mnSplitSize; in ImplDrawSplit()
1137 nBottom = pItems[i].mnTop+pSet->mpItems[i].mnHeight-1; in ImplDrawSplit()
1145 nPos += pSet->mnSplitSize-2; in ImplDrawSplit()
1175 sal_uInt16 SplitWindow::ImplTestSplit( ImplSplitSet* pSet, const Point& rPos, in ImplTestSplit() argument
1179 if ( !pSet->mpItems ) in ImplTestSplit()
1184 sal_uInt16 nItems = pSet->mnItems; in ImplTestSplit()
1190 ImplSplitItem* pItems = pSet->mpItems; in ImplTestSplit()
1225 *ppFoundSet = pSet; in ImplTestSplit()
1695 void SplitWindow::ImplUpdateSet( ImplSplitSet* pSet ) in ImplUpdateSet() argument
1706 pSet = mpMainSet; in ImplUpdateSet()
1712 if ( pSet == mpMainSet ) in ImplUpdateSet()
1724 pSet = ImplFindItem( mpMainSet, pSet->mnId, nPos ); in ImplUpdateSet()
1725 pItem = &(pSet->mpItems[nPos]); in ImplUpdateSet()
2878 ImplSplitSet* pSet = ImplFindSet( mpMainSet, nSetId ); in InsertItem() local
2883 if ( nPos > pSet->mnItems ) in InsertItem()
2884 nPos = pSet->mnItems; in InsertItem()
2885 ImplSplitItem* pNewItems = new ImplSplitItem[pSet->mnItems+1]; in InsertItem()
2887 memcpy( pNewItems, pSet->mpItems, sizeof( ImplSplitItem )*nPos ); in InsertItem()
2888 if ( nPos < pSet->mnItems ) in InsertItem()
2889 memcpy( pNewItems+nPos+1, pSet->mpItems+nPos, sizeof( ImplSplitItem )*(pSet->mnItems-nPos) ); in InsertItem()
2890 delete[] pSet->mpItems; in InsertItem()
2891 pSet->mpItems = pNewItems; in InsertItem()
2892 pSet->mnItems++; in InsertItem()
2893 pSet->mbCalcPix = sal_True; in InsertItem()
2896 pItem = &(pSet->mpItems[nPos]); in InsertItem()
2922 pNewSet->mnSplitSize = pSet->mnSplitSize; in InsertItem()
2952 ImplSplitSet* pSet = ImplFindItem( mpMainSet, nId, nPos ); in MoveItem() local
2955 if ( pNewSet == pSet ) in MoveItem()
2961 memcpy( &aTempItem, &(pSet->mpItems[nPos]), sizeof( aTempItem ) ); in MoveItem()
2964 memmove( pSet->mpItems+nPos, pSet->mpItems+nPos+1, in MoveItem()
2969 memmove( pSet->mpItems+nNewPos+1, pSet->mpItems+nNewPos, in MoveItem()
2972 memcpy( &(pSet->mpItems[nNewPos]), &aTempItem, sizeof( aTempItem ) ); in MoveItem()
2981 memcpy( &aTempItem, &(pSet->mpItems[nPos]), sizeof( aTempItem ) ); in MoveItem()
2982 pSet->mnItems--; in MoveItem()
2983 pSet->mbCalcPix = sal_True; in MoveItem()
2984 if ( pSet->mnItems ) in MoveItem()
2986 memmove( pSet->mpItems+nPos, pSet->mpItems+nPos+1, in MoveItem()
2987 (pSet->mnItems-nPos)*sizeof( ImplSplitItem ) ); in MoveItem()
2991 delete[] pSet->mpItems; in MoveItem()
2992 pSet->mpItems = NULL; in MoveItem()
3022 ImplSplitSet* pSet = ImplFindItem( mpMainSet, nId, nPos ); in RemoveItem() local
3023 ImplSplitItem* pItem = &(pSet->mpItems[nPos]); in RemoveItem()
3032 pSet->mnItems--; in RemoveItem()
3033 pSet->mbCalcPix = sal_True; in RemoveItem()
3034 if ( pSet->mnItems ) in RemoveItem()
3036 memmove( pSet->mpItems+nPos, pSet->mpItems+nPos+1, in RemoveItem()
3037 (pSet->mnItems-nPos)*sizeof( ImplSplitItem ) ); in RemoveItem()
3041 delete[] pSet->mpItems; in RemoveItem()
3042 pSet->mpItems = NULL; in RemoveItem()
3103 ImplSplitSet* pSet = ImplFindSet( mpMainSet, nSetId ); in SetSplitSize() local
3104 if ( pSet ) in SetSplitSize()
3107 ImplSetSplitSize( pSet, nSplitSize ); in SetSplitSize()
3109 pSet->mnSplitSize = nSplitSize; in SetSplitSize()
3118 ImplSplitSet* pSet = ImplFindSet( mpMainSet, nSetId ); in GetSplitSize() local
3119 if ( pSet ) in GetSplitSize()
3120 return pSet->mnSplitSize; in GetSplitSize()
3137 ImplSplitSet* pSet = ImplFindSet( mpMainSet, nSetId ); in SetItemBackground() local
3139 if ( pSet ) in SetItemBackground()
3145 if ( pSet->mpWallpaper ) in SetItemBackground()
3147 delete pSet->mpWallpaper; in SetItemBackground()
3148 pSet->mpWallpaper = NULL; in SetItemBackground()
3158 if ( !pSet->mpWallpaper ) in SetItemBackground()
3159 pSet->mpWallpaper = new Wallpaper( rWallpaper ); in SetItemBackground()
3161 *(pSet->mpWallpaper) = rWallpaper; in SetItemBackground()
3165 if ( pSet == mpMainSet ) in SetItemBackground()
3169 ImplUpdateSet( pSet ); in SetItemBackground()
3177 ImplSplitSet* pSet = ImplFindSet( mpMainSet, nSetId ); in GetItemBackground() local
3179 if ( pSet && pSet->mpWallpaper ) in GetItemBackground()
3180 return *(pSet->mpWallpaper); in GetItemBackground()
3192 ImplSplitSet* pSet = ImplFindSet( mpMainSet, nSetId ); in IsItemBackground() local
3194 if ( pSet && pSet->mpWallpaper ) in IsItemBackground()
3204 ImplSplitSet* pSet = ImplFindSet( mpMainSet, nSetId ); in SetItemBitmap() local
3206 if ( pSet ) in SetItemBitmap()
3212 if ( pSet->mpBitmap ) in SetItemBitmap()
3214 delete pSet->mpBitmap; in SetItemBitmap()
3215 pSet->mpBitmap = NULL; in SetItemBitmap()
3225 if ( !pSet->mpBitmap ) in SetItemBitmap()
3226 pSet->mpBitmap = new Bitmap( rBitmap ); in SetItemBitmap()
3228 *(pSet->mpBitmap) = rBitmap; in SetItemBitmap()
3232 if ( pSet == mpMainSet ) in SetItemBitmap()
3236 ImplUpdateSet( pSet ); in SetItemBitmap()
3244 ImplSplitSet* pSet = ImplFindSet( mpMainSet, nSetId ); in GetItemBitmap() local
3246 if ( pSet && pSet->mpBitmap ) in GetItemBitmap()
3247 return *(pSet->mpBitmap); in GetItemBitmap()
3268 ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos ); in SplitItem() local
3271 if ( !pSet ) in SplitItem()
3274 nItems = pSet->mnItems; in SplitItem()
3275 pItems = pSet->mpItems; in SplitItem()
3308 if ( (pSet == mpMainSet) && (mnWinStyle & WB_SIZEABLE) ) in SplitItem()
3310 if ( nPos < pSet->mnItems-1 ) in SplitItem()
3335 else if ( nPos && (nPos >= pSet->mnItems-1) ) in SplitItem()
3495 ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos ); in SetItemSize() local
3498 if ( !pSet ) in SetItemSize()
3502 pItem = &(pSet->mpItems[nPos]); in SetItemSize()
3507 pSet->mbCalcPix = sal_True; in SetItemSize()
3517 ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos ); in GetItemSize() local
3519 if ( pSet ) in GetItemSize()
3520 return pSet->mpItems[nPos].mnSize; in GetItemSize()
3530 ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos ); in GetItemSize() local
3532 if ( pSet ) in GetItemSize()
3534 if ( nBits == pSet->mpItems[nPos].mnBits ) in GetItemSize()
3535 return pSet->mpItems[nPos].mnSize; in GetItemSize()
3546 nItems = pSet->mnItems; in GetItemSize()
3547 pItems = pSet->mpItems; in GetItemSize()
3588 ImplSplitSet* pSet = ImplFindItem(mpBaseSet, nId, nPos); in SetItemSizeRange() local
3590 if (pSet != NULL) in SetItemSizeRange()
3592 pSet->mpItems[nPos].mnMinSize = aRange.Min(); in SetItemSizeRange()
3593 pSet->mpItems[nPos].mnMaxSize = aRange.Max(); in SetItemSizeRange()
3603 ImplSplitSet* pSet = ImplFindItem(mpBaseSet, nId, nPos); in GetItemSizeRange() local
3605 if (pSet != NULL) in GetItemSizeRange()
3606 return Range (pSet->mpItems[nPos].mnMinSize, pSet->mpItems[nPos].mnMaxSize); in GetItemSizeRange()
3617 ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos ); in SetItemBits() local
3620 if ( !pSet ) in SetItemBits()
3623 pItem = &(pSet->mpItems[nPos]); in SetItemBits()
3631 pSet->mbCalcPix = sal_True; in SetItemBits()
3641 ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos ); in GetItemBits() local
3643 if ( pSet ) in GetItemBits()
3644 return pSet->mpItems[nPos].mnBits; in GetItemBits()
3654 ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos ); in GetItemWindow() local
3656 if ( pSet ) in GetItemWindow()
3657 return pSet->mpItems[nPos].mpWindow; in GetItemWindow()
3667 ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos ); in GetSet() local
3669 if ( pSet ) in GetSet()
3670 return pSet->mnId; in GetSet()
3679 ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, rPos ); in GetSet() local
3680 if ( pSet ) in GetSet()
3682 rSetId = pSet->mnId; in GetSet()
3694 ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos ); in IsItemValid() local
3696 if ( pSet ) in IsItemValid()
3720 ImplSplitSet* pSet = ImplFindSet( mpBaseSet, nSetId ); in GetItemPos() local
3723 if ( pSet ) in GetItemPos()
3725 for ( sal_uInt16 i = 0; i < pSet->mnItems; i++ ) in GetItemPos()
3727 if ( pSet->mpItems[i].mnId == nId ) in GetItemPos()
3742 ImplSplitSet* pSet = ImplFindSet( mpBaseSet, nSetId ); in GetItemId() local
3743 if ( pSet && (nPos < pSet->mnItems) ) in GetItemId()
3744 return pSet->mpItems[nPos].mnId; in GetItemId()
3753 ImplSplitSet* pSet = ImplFindSet( mpBaseSet, nSetId ); in GetItemCount() local
3754 if ( pSet ) in GetItemCount()
3755 return pSet->mnItems; in GetItemCount()