Lines Matching refs:pThis

121 static void ImplDrawButton( ToolBox* pThis, const Rectangle &rRect, sal_uInt16 highlight, sal_Bool …
204 int ToolBox::ImplGetDragWidth( ToolBox* pThis ) in ImplGetDragWidth() argument
209 if( pThis->IsNativeControlSupported( CTRL_TOOLBAR, PART_ENTIRE_CONTROL ) ) in ImplGetDragWidth()
215 Rectangle aArea( aPoint, pThis->GetOutputSizePixel() ); in ImplGetDragWidth()
217 …if ( pThis->GetNativeControlRegion(CTRL_TOOLBAR, pThis->mbHorz ? PART_THUMB_VERT : PART_THUMB_HORZ, in ImplGetDragWidth()
220 width = pThis->mbHorz ? aContent.GetWidth() : aContent.GetHeight(); in ImplGetDragWidth()
243 void ToolBox::ImplUpdateDragArea( ToolBox *pThis ) in ImplUpdateDragArea() argument
245 ImplDockingWindowWrapper *pWrapper = ImplGetDockingManager()->GetDockingWindowWrapper( pThis ); in ImplUpdateDragArea()
248 if ( pThis->ImplIsFloatingMode() || pWrapper->IsLocked() ) in ImplUpdateDragArea()
252 if( pThis->meAlign == WINDOWALIGN_TOP || pThis->meAlign == WINDOWALIGN_BOTTOM ) in ImplUpdateDragArea()
253 …pWrapper->SetDragArea( Rectangle( 0, 0, ImplGetDragWidth( pThis ), pThis->GetOutputSizePixel().Hei… in ImplUpdateDragArea()
255 …pWrapper->SetDragArea( Rectangle( 0, 0, pThis->GetOutputSizePixel().Width(), ImplGetDragWidth( pTh… in ImplUpdateDragArea()
263 long& rRight, long& rBottom, const ToolBox *pThis ) in ImplCalcBorder() argument
265 if( pThis->ImplIsFloatingMode() || !(pThis->mnWinStyle & WB_BORDER) ) in ImplCalcBorder()
272 ImplDockingWindowWrapper *pWrapper = ImplGetDockingManager()->GetDockingWindowWrapper( pThis ); in ImplCalcBorder()
275 …int dragwidth = ( pWrapper && !pWrapper->IsLocked() ) ? ImplGetDragWidth( (ToolBox*)pThis ) : 0; in ImplCalcBorder()
312 static void ImplCheckUpdate( ToolBox *pThis ) in ImplCheckUpdate() argument
320 if( !pThis->IsBackground() && pThis->HasPaintEvent() && !pThis->IsInPaint() ) in ImplCheckUpdate()
321 pThis->Update(); in ImplCheckUpdate()
326 void ToolBox::ImplDrawGrip( ToolBox* pThis ) in ImplDrawGrip() argument
328 ImplDockingWindowWrapper *pWrapper = ImplGetDockingManager()->GetDockingWindowWrapper( pThis ); in ImplDrawGrip()
332 ImplCheckUpdate( pThis ); in ImplDrawGrip()
335 …if( pThis->IsNativeControlSupported( CTRL_TOOLBAR, pThis->mbHorz ? PART_THUMB_HORZ : PART_THUMB_VE… in ImplDrawGrip()
340 Rectangle aCtrlRegion( aPt, pThis->GetOutputSizePixel() ); in ImplDrawGrip()
343 …bNativeOk = pThis->DrawNativeControl( CTRL_TOOLBAR, pThis->mbHorz ? PART_THUMB_VERT : PART_THUMB_H… in ImplDrawGrip()
350 const StyleSettings& rStyleSettings = pThis->GetSettings().GetStyleSettings(); in ImplDrawGrip()
351 pThis->SetLineColor( rStyleSettings.GetShadowColor() ); in ImplDrawGrip()
353 Size aSz ( pThis->GetOutputSizePixel() ); in ImplDrawGrip()
355 if ( pThis->meAlign == WINDOWALIGN_TOP || pThis->meAlign == WINDOWALIGN_BOTTOM ) in ImplDrawGrip()
362 int x = ImplGetDragWidth( pThis ) / 2; in ImplDrawGrip()
364 pThis->DrawPixel( Point(x, i), rStyleSettings.GetDarkShadowColor() ); in ImplDrawGrip()
365 pThis->DrawPixel( Point(x+1, i), rStyleSettings.GetDarkShadowColor() ); in ImplDrawGrip()
367 pThis->DrawPixel( Point(x, i+1), rStyleSettings.GetShadowColor() ); in ImplDrawGrip()
368 pThis->DrawPixel( Point(x+1, i+1), rStyleSettings.GetShadowColor() ); in ImplDrawGrip()
379 int y = ImplGetDragWidth(pThis) / 2; in ImplDrawGrip()
381 pThis->DrawPixel( Point(i, y), rStyleSettings.GetDarkShadowColor() ); in ImplDrawGrip()
382 pThis->DrawPixel( Point(i+1, y), rStyleSettings.GetDarkShadowColor() ); in ImplDrawGrip()
384 pThis->DrawPixel( Point(i, y+1), rStyleSettings.GetShadowColor() ); in ImplDrawGrip()
385 pThis->DrawPixel( Point(i+1, y+1), rStyleSettings.GetShadowColor() ); in ImplDrawGrip()
392 void ToolBox::ImplDrawGradientBackground( ToolBox* pThis, ImplDockingWindowWrapper * ) in ImplDrawGradientBackground() argument
397 startCol = pThis->GetSettings().GetStyleSettings().GetFaceGradientColor(); in ImplDrawGradientBackground()
398 endCol = pThis->GetSettings().GetStyleSettings().GetFaceColor(); in ImplDrawGradientBackground()
399 if( pThis->GetSettings().GetStyleSettings().GetHighContrastMode() ) in ImplDrawGradientBackground()
404 g.SetAngle( pThis->mbHorz ? 0 : 900 ); in ImplDrawGradientBackground()
410 sal_Bool bLineColor = pThis->IsLineColor(); in ImplDrawGradientBackground()
411 Color aOldCol = pThis->GetLineColor(); in ImplDrawGradientBackground()
412 pThis->SetLineColor( pThis->GetSettings().GetStyleSettings().GetShadowColor() ); in ImplDrawGradientBackground()
414 Size aFullSz( pThis->GetOutputSizePixel() ); in ImplDrawGradientBackground()
419 if( pThis->ImplIsFloatingMode() ) in ImplDrawGradientBackground()
422 if( pThis->mbHorz ) in ImplDrawGradientBackground()
424 nLineSize = pThis->mnMaxItemHeight; in ImplDrawGradientBackground()
425 if ( pThis->mnWinHeight > pThis->mnMaxItemHeight ) in ImplDrawGradientBackground()
426 nLineSize = pThis->mnWinHeight; in ImplDrawGradientBackground()
432 nLineSize = pThis->mnMaxItemWidth; in ImplDrawGradientBackground()
438 ImplCalcBorder( pThis->meAlign, nLeft, nTop, nRight, nBottom, pThis ); in ImplDrawGradientBackground()
443 if ( pThis->mnWinStyle & WB_BORDER ) in ImplDrawGradientBackground()
445 if( pThis->mbHorz ) in ImplDrawGradientBackground()
450 if( pThis->mnCurLines == 1 ) in ImplDrawGradientBackground()
458 if( pThis->mnCurLines == 1 ) in ImplDrawGradientBackground()
463 if( pThis->mbHorz ) in ImplDrawGradientBackground()
465 aTopLineSz.Height() += pThis->mnBorderY; in ImplDrawGradientBackground()
466 if( pThis->mnCurLines == 1 ) in ImplDrawGradientBackground()
467 aTopLineSz.Height() += pThis->mnBorderY; in ImplDrawGradientBackground()
469 aBottomLineSz.Height() += pThis->mnBorderY; in ImplDrawGradientBackground()
473 aTopLineSz.Width() += pThis->mnBorderX; in ImplDrawGradientBackground()
474 if( pThis->mnCurLines == 1 ) in ImplDrawGradientBackground()
475 aTopLineSz.Width() += pThis->mnBorderX; in ImplDrawGradientBackground()
477 aBottomLineSz.Width() += pThis->mnBorderX; in ImplDrawGradientBackground()
481 if ( pThis->mnWinStyle & WB_LINESPACING ) in ImplDrawGradientBackground()
483 if( pThis->mbHorz ) in ImplDrawGradientBackground()
486 if( pThis->mnCurLines > 1 ) in ImplDrawGradientBackground()
492 if( pThis->mnCurLines > 1 ) in ImplDrawGradientBackground()
497 if( pThis->mbHorz ) in ImplDrawGradientBackground()
502 pThis->DrawGradient( Rectangle( 0, y, aTopLineSz.Width(), y+aTopLineSz.Height()), g ); in ImplDrawGradientBackground()
506 pThis->DrawLine( Point(0, y-2), Point(aTopLineSz.Width(), y-2) ); in ImplDrawGradientBackground()
508 while( y < (pThis->mnDY - aBottomLineSz.Height()) ) in ImplDrawGradientBackground()
510 pThis->DrawGradient( Rectangle( 0, y, aLineSz.Width(), y+aLineSz.Height()), g); in ImplDrawGradientBackground()
514 pThis->DrawLine( Point(0, y-2), Point(aLineSz.Width(), y-2) ); in ImplDrawGradientBackground()
517 pThis->DrawGradient( Rectangle( 0, y, aBottomLineSz.Width(), y+aBottomLineSz.Height()), g ); in ImplDrawGradientBackground()
519 pThis->DrawLine( Point(0, y-2), Point(aBottomLineSz.Width(), y-2) ); in ImplDrawGradientBackground()
525 pThis->DrawGradient( Rectangle( x, 0, x+aTopLineSz.Width(), aTopLineSz.Height()), g ); in ImplDrawGradientBackground()
528 while( x < (pThis->mnDX - aBottomLineSz.Width()) ) in ImplDrawGradientBackground()
530 pThis->DrawGradient( Rectangle( x, 0, x+aLineSz.Width(), aLineSz.Height()), g); in ImplDrawGradientBackground()
534 pThis->DrawGradient( Rectangle( x, 0, x+aBottomLineSz.Width(), aBottomLineSz.Height()), g ); in ImplDrawGradientBackground()
538 pThis->SetLineColor( aOldCol ); in ImplDrawGradientBackground()
542 sal_Bool ToolBox::ImplDrawNativeBackground( ToolBox* pThis, const Region & ) in ImplDrawNativeBackground() argument
546 Rectangle aCtrlRegion( aPt, pThis->GetOutputSizePixel() ); in ImplDrawNativeBackground()
549 …return pThis->DrawNativeControl( CTRL_TOOLBAR, pThis->mbHorz ? PART_DRAW_BACKGROUND_HORZ : PART_DR… in ImplDrawNativeBackground()
553 void ToolBox::ImplDrawTransparentBackground( ToolBox* pThis, const Region &rRegion ) in ImplDrawTransparentBackground() argument
557 const bool bOldPaintLock = pThis->mpData->mbIsPaintLocked; in ImplDrawTransparentBackground()
558 pThis->mpData->mbIsPaintLocked = true; in ImplDrawTransparentBackground()
561 pThis->Invalidate( rRegion, INVALIDATE_UPDATE|INVALIDATE_NOCLIPCHILDREN ); in ImplDrawTransparentBackground()
563 pThis->mpData->mbIsPaintLocked = bOldPaintLock; in ImplDrawTransparentBackground()
566 void ToolBox::ImplDrawConstantBackground( ToolBox* pThis, const Region &rRegion, sal_Bool bIsInPopu… in ImplDrawConstantBackground() argument
571 pThis->Erase( rRegion.GetBoundRect() ); in ImplDrawConstantBackground()
575 pThis->DrawWallpaper( rRegion.GetBoundRect(), in ImplDrawConstantBackground()
576 Wallpaper( pThis->GetSettings().GetStyleSettings().GetFaceGradientColor() ) ); in ImplDrawConstantBackground()
581 void ToolBox::ImplDrawBackground( ToolBox* pThis, const Rectangle &rRect ) in ImplDrawBackground() argument
584 ImplCheckUpdate( pThis ); in ImplDrawBackground()
586 ImplDockingWindowWrapper *pWrapper = ImplGetDockingManager()->GetDockingWindowWrapper( pThis ); in ImplDrawBackground()
587 sal_Bool bIsInPopupMode = pThis->ImplIsInPopupMode(); in ImplDrawBackground()
592 if( pThis->IsInPaint() ) in ImplDrawBackground()
593 aPaintRegion.Intersect( pThis->GetActiveClipRegion() ); in ImplDrawBackground()
595 pThis->Push( PUSH_CLIPREGION ); in ImplDrawBackground()
596 pThis->IntersectClipRegion( aPaintRegion ); in ImplDrawBackground()
602 if( !pThis->IsBackground() && !pThis->IsInPaint() ) in ImplDrawBackground()
603 ImplDrawTransparentBackground( pThis, aPaintRegion ); in ImplDrawBackground()
605 ImplDrawConstantBackground( pThis, aPaintRegion, bIsInPopupMode ); in ImplDrawBackground()
613 …if( pThis->ImplIsFloatingMode() && pThis->IsNativeControlSupported( CTRL_TOOLBAR, PART_ENTIRE_CONT… in ImplDrawBackground()
614 bNativeOk = ImplDrawNativeBackground( pThis, aPaintRegion ); in ImplDrawBackground()
618 if( !pThis->IsBackground() ) in ImplDrawBackground()
620 if( !pThis->IsInPaint() ) in ImplDrawBackground()
621 ImplDrawTransparentBackground( pThis, aPaintRegion ); in ImplDrawBackground()
624 ImplDrawGradientBackground( pThis, pWrapper ); in ImplDrawBackground()
629 pThis->Pop(); in ImplDrawBackground()
632 void ToolBox::ImplErase( ToolBox* pThis, const Rectangle &rRect, sal_Bool bHighlight, sal_Bool bHas… in ImplErase() argument
637 if( !pThis->mpData->mbNativeButtons && in ImplErase()
638 (bHighlight || ! (((Window*) pThis)->GetStyle() & WB_3DLOOK ) ) ) in ImplErase()
640 if( (((Window*) pThis)->GetStyle() & WB_3DLOOK ) ) in ImplErase()
642 pThis->Push( PUSH_LINECOLOR | PUSH_FILLCOLOR ); in ImplErase()
643 pThis->SetLineColor(); in ImplErase()
646pThis->SetFillColor( pThis->GetSettings().GetStyleSettings().GetFaceGradientColor() ); in ImplErase()
648 pThis->SetFillColor( Color( COL_WHITE ) ); in ImplErase()
650 pThis->DrawRect( rRect ); in ImplErase()
651 pThis->Pop(); in ImplErase()
654 ImplDrawBackground( pThis, rRect ); in ImplErase()
657 ImplDrawBackground( pThis, rRect ); in ImplErase()
736 const ImplToolItem *ToolBox::ImplGetFirstClippedItem( const ToolBox* pThis ) in ImplGetFirstClippedItem() argument
739 it = pThis->mpData->m_aItems.begin(); in ImplGetFirstClippedItem()
740 while ( it != pThis->mpData->m_aItems.end() ) in ImplGetFirstClippedItem()
751 Size ToolBox::ImplCalcSize( const ToolBox* pThis, sal_uInt16 nCalcLines, sal_uInt16 nCalcMode ) in ImplCalcSize() argument
759 WindowAlign eOldAlign = pThis->meAlign; in ImplCalcSize()
760 sal_Bool bOldHorz = pThis->mbHorz; in ImplCalcSize()
761 sal_Bool bOldAssumeDocked = pThis->mpData->mbAssumeDocked; in ImplCalcSize()
762 sal_Bool bOldAssumeFloating = pThis->mpData->mbAssumeFloating; in ImplCalcSize()
766 sal_Bool bOldFloatingMode = pThis->ImplIsFloatingMode(); in ImplCalcSize()
768 pThis->mpData->mbAssumeDocked = sal_False; in ImplCalcSize()
769 pThis->mpData->mbAssumeFloating = sal_False; in ImplCalcSize()
773pThis->mpData->mbAssumeDocked = sal_True; // force non-floating mode during calculation in ImplCalcSize()
774 ImplCalcBorder( WINDOWALIGN_TOP, nLeft, nTop, nRight, nBottom, pThis ); in ImplCalcSize()
775 ((ToolBox*)pThis)->mbHorz = sal_True; in ImplCalcSize()
776 if ( pThis->mbHorz != bOldHorz ) in ImplCalcSize()
777 ((ToolBox*)pThis)->meAlign = WINDOWALIGN_TOP; in ImplCalcSize()
781pThis->mpData->mbAssumeDocked = sal_True; // force non-floating mode during calculation in ImplCalcSize()
782 ImplCalcBorder( WINDOWALIGN_LEFT, nLeft, nTop, nRight, nBottom, pThis ); in ImplCalcSize()
783 ((ToolBox*)pThis)->mbHorz = sal_False; in ImplCalcSize()
784 if ( pThis->mbHorz != bOldHorz ) in ImplCalcSize()
785 ((ToolBox*)pThis)->meAlign = WINDOWALIGN_LEFT; in ImplCalcSize()
789pThis->mpData->mbAssumeFloating = sal_True; // force non-floating mode during calculation in ImplCalcSize()
791 ((ToolBox*)pThis)->mbHorz = sal_True; in ImplCalcSize()
792 if ( pThis->mbHorz != bOldHorz ) in ImplCalcSize()
793 ((ToolBox*)pThis)->meAlign = WINDOWALIGN_TOP; in ImplCalcSize()
796 if ( (pThis->meAlign != eOldAlign) || (pThis->mbHorz != bOldHorz) || in ImplCalcSize()
797 (pThis->ImplIsFloatingMode() != bOldFloatingMode ) ) in ImplCalcSize()
798 ((ToolBox*)pThis)->mbCalc = sal_True; in ImplCalcSize()
801 ImplCalcBorder( pThis->meAlign, nLeft, nTop, nRight, nBottom, pThis ); in ImplCalcSize()
803 ((ToolBox*)pThis)->ImplCalcItem(); in ImplCalcSize()
805 if( !nCalcMode && pThis->ImplIsFloatingMode() ) in ImplCalcSize()
807 aSize = ImplCalcFloatSize( ((ToolBox*)pThis), nCalcLines ); in ImplCalcSize()
811 if ( pThis->mbHorz ) in ImplCalcSize()
813 if ( pThis->mnWinHeight > pThis->mnMaxItemHeight ) in ImplCalcSize()
814 aSize.Height() = nCalcLines * pThis->mnWinHeight; in ImplCalcSize()
816 aSize.Height() = nCalcLines * pThis->mnMaxItemHeight; in ImplCalcSize()
818 if ( pThis->mnWinStyle & WB_LINESPACING ) in ImplCalcSize()
821 if ( pThis->mnWinStyle & WB_BORDER ) in ImplCalcSize()
825 ((ToolBox*)pThis)->ImplCalcBreaks( TB_MAXNOSCROLL, &nMax, pThis->mbHorz ); in ImplCalcSize()
829 if ( pThis->mnWinStyle & WB_BORDER ) in ImplCalcSize()
834 aSize.Width() = nCalcLines * pThis->mnMaxItemWidth; in ImplCalcSize()
836 if ( pThis->mnWinStyle & WB_LINESPACING ) in ImplCalcSize()
839 if ( pThis->mnWinStyle & WB_BORDER ) in ImplCalcSize()
843 ((ToolBox*)pThis)->ImplCalcBreaks( TB_MAXNOSCROLL, &nMax, pThis->mbHorz ); in ImplCalcSize()
847 if ( pThis->mnWinStyle & WB_BORDER ) in ImplCalcSize()
854 pThis->mpData->mbAssumeDocked = bOldAssumeDocked; in ImplCalcSize()
855 pThis->mpData->mbAssumeFloating = bOldAssumeFloating; in ImplCalcSize()
856 if ( (pThis->meAlign != eOldAlign) || (pThis->mbHorz != bOldHorz) ) in ImplCalcSize()
858 ((ToolBox*)pThis)->meAlign = eOldAlign; in ImplCalcSize()
859 ((ToolBox*)pThis)->mbHorz = bOldHorz; in ImplCalcSize()
860 ((ToolBox*)pThis)->mbCalc = sal_True; in ImplCalcSize()
865 aSize.Width() += pThis->mnBorderX*2; in ImplCalcSize()
867 aSize.Height() += pThis->mnBorderY*2; in ImplCalcSize()
874 void ToolBox::ImplCalcFloatSizes( ToolBox* pThis ) in ImplCalcFloatSizes() argument
876 if ( pThis->mpFloatSizeAry ) in ImplCalcFloatSizes()
883 it = pThis->mpData->m_aItems.begin(); in ImplCalcFloatSizes()
884 while ( it != pThis->mpData->m_aItems.end() ) in ImplCalcFloatSizes()
904 long upperBoundWidth = nCalcSize * pThis->mpData->m_aItems.size(); in ImplCalcFloatSizes()
912 nCalcLines = pThis->ImplCalcBreaks( nCalcSize, &nMaxLineWidth, sal_True ); in ImplCalcFloatSizes()
914 pThis->mpFloatSizeAry = new ImplToolSizeArray; in ImplCalcFloatSizes()
915 pThis->mpFloatSizeAry->mpSize = new ImplToolSize[nCalcLines]; in ImplCalcFloatSizes()
916 pThis->mpFloatSizeAry->mnLength = nCalcLines; in ImplCalcFloatSizes()
918 memset( pThis->mpFloatSizeAry->mpSize, 0, sizeof( ImplToolSize )*nCalcLines ); in ImplCalcFloatSizes()
923 nHeight = ImplCalcSize( pThis, nTempLines, TB_CALCMODE_FLOAT ).Height(); in ImplCalcFloatSizes()
924 pThis->mpFloatSizeAry->mnLastEntry = i; in ImplCalcFloatSizes()
925 pThis->mpFloatSizeAry->mpSize[i].mnHeight = nHeight; in ImplCalcFloatSizes()
926 pThis->mpFloatSizeAry->mpSize[i].mnLines = nTempLines; in ImplCalcFloatSizes()
927 pThis->mpFloatSizeAry->mpSize[i].mnWidth = nMaxLineWidth+(TB_BORDER_OFFSET1*2); in ImplCalcFloatSizes()
933 nCalcSize += pThis->mnMaxItemWidth; in ImplCalcFloatSizes()
934 nTempLines = pThis->ImplCalcBreaks( nCalcSize, &nMaxLineWidth, sal_True ); in ImplCalcFloatSizes()
946 Size ToolBox::ImplCalcFloatSize( ToolBox* pThis, sal_uInt16& rLines ) in ImplCalcFloatSize() argument
948 ImplCalcFloatSizes( pThis ); in ImplCalcFloatSize()
952 rLines = pThis->mnFloatLines; in ImplCalcFloatSize()
954 rLines = pThis->mnLines; in ImplCalcFloatSize()
958 while ( i < pThis->mpFloatSizeAry->mnLastEntry && in ImplCalcFloatSize()
959 rLines < pThis->mpFloatSizeAry->mpSize[i].mnLines ) in ImplCalcFloatSize()
962 Size aSize( pThis->mpFloatSizeAry->mpSize[i].mnWidth, in ImplCalcFloatSize()
963 pThis->mpFloatSizeAry->mpSize[i].mnHeight ); in ImplCalcFloatSize()
964 rLines = pThis->mpFloatSizeAry->mpSize[i].mnLines; in ImplCalcFloatSize()
965 if ( pThis->maNextToolBoxStr.Len() && pThis->mbScroll ) in ImplCalcFloatSize()
972 void ToolBox::ImplCalcMinMaxFloatSize( ToolBox* pThis, Size& rMinSize, Size& rMaxSize ) in ImplCalcMinMaxFloatSize() argument
974 ImplCalcFloatSizes( pThis ); in ImplCalcMinMaxFloatSize()
977 …rMinSize = Size( pThis->mpFloatSizeAry->mpSize[i].mnWidth, pThis->mpFloatSizeAry->mpSize[i].mnHeig… in ImplCalcMinMaxFloatSize()
978 …rMaxSize = Size( pThis->mpFloatSizeAry->mpSize[i].mnWidth, pThis->mpFloatSizeAry->mpSize[i].mnHeig… in ImplCalcMinMaxFloatSize()
979 while ( ++i <= pThis->mpFloatSizeAry->mnLastEntry ) in ImplCalcMinMaxFloatSize()
981 if( pThis->mpFloatSizeAry->mpSize[i].mnWidth < rMinSize.Width() ) in ImplCalcMinMaxFloatSize()
982 rMinSize.Width() = pThis->mpFloatSizeAry->mpSize[i].mnWidth; in ImplCalcMinMaxFloatSize()
983 if( pThis->mpFloatSizeAry->mpSize[i].mnHeight < rMinSize.Height() ) in ImplCalcMinMaxFloatSize()
984 rMinSize.Height() = pThis->mpFloatSizeAry->mpSize[i].mnHeight; in ImplCalcMinMaxFloatSize()
986 if( pThis->mpFloatSizeAry->mpSize[i].mnWidth > rMaxSize.Width() ) in ImplCalcMinMaxFloatSize()
987 rMaxSize.Width() = pThis->mpFloatSizeAry->mpSize[i].mnWidth; in ImplCalcMinMaxFloatSize()
988 if( pThis->mpFloatSizeAry->mpSize[i].mnHeight > rMaxSize.Height() ) in ImplCalcMinMaxFloatSize()
989 rMaxSize.Height() = pThis->mpFloatSizeAry->mpSize[i].mnHeight; in ImplCalcMinMaxFloatSize()
993 void ToolBox::ImplSetMinMaxFloatSize( ToolBox *pThis ) in ImplSetMinMaxFloatSize() argument
995 ImplDockingWindowWrapper *pWrapper = ImplGetDockingManager()->GetDockingWindowWrapper( pThis ); in ImplSetMinMaxFloatSize()
997 ImplCalcMinMaxFloatSize( pThis, aMinSize, aMaxSize ); in ImplSetMinMaxFloatSize()
1002 …pWrapper->ShowTitleButton( TITLE_BUTTON_MENU, ( pThis->GetMenuType() & TOOLBOX_MENUTYPE_CUSTOMIZE)… in ImplSetMinMaxFloatSize()
1007 pThis->SetMinOutputSizePixel( aMinSize ); in ImplSetMinMaxFloatSize()
1008 pThis->SetMaxOutputSizePixel( aMaxSize ); in ImplSetMinMaxFloatSize()
1015 sal_uInt16 ToolBox::ImplCalcLines( ToolBox* pThis, long nToolSize ) in ImplCalcLines() argument
1019 if ( pThis->mbHorz ) in ImplCalcLines()
1021 if ( pThis->mnWinHeight > pThis->mnMaxItemHeight ) in ImplCalcLines()
1022 nLineHeight = pThis->mnWinHeight; in ImplCalcLines()
1024 nLineHeight = pThis->mnMaxItemHeight; in ImplCalcLines()
1027 nLineHeight = pThis->mnMaxItemWidth; in ImplCalcLines()
1029 if ( pThis->mnWinStyle & WB_BORDER ) in ImplCalcLines()
1032 if ( pThis->mnWinStyle & WB_LINESPACING ) in ImplCalcLines()
1048 sal_uInt16 ToolBox::ImplTestLineSize( ToolBox* pThis, const Point& rPos ) in ImplTestLineSize() argument
1050 if ( !pThis->ImplIsFloatingMode() && in ImplTestLineSize()
1051 (!pThis->mbScroll || (pThis->mnLines > 1) || (pThis->mnCurLines > pThis->mnVisLines)) ) in ImplTestLineSize()
1053 WindowAlign eAlign = pThis->GetAlign(); in ImplTestLineSize()
1057 if ( rPos.X() > pThis->mnDX-DOCK_LINEOFFSET ) in ImplTestLineSize()
1062 if ( rPos.Y() > pThis->mnDY-DOCK_LINEOFFSET ) in ImplTestLineSize()
1082 void ToolBox::ImplLineSizing( ToolBox* pThis, const Point& rPos, Rectangle& rRect, in ImplLineSizing() argument
1118 Size aWinSize = pThis->GetSizePixel(); in ImplLineSizing()
1119 … sal_uInt16 nMaxLines = (pThis->mnLines > pThis->mnCurLines) ? pThis->mnLines : pThis->mnCurLines; in ImplLineSizing()
1124 nOneLineSize = ImplCalcSize( pThis, 1 ).Height(); in ImplLineSizing()
1125 nMaxSize = pThis->maOutDockRect.GetHeight() - 20; in ImplLineSizing()
1131 nOneLineSize = ImplCalcSize( pThis, 1 ).Width(); in ImplLineSizing()
1132 nMaxSize = pThis->maOutDockRect.GetWidth() - 20; in ImplLineSizing()
1146 aSize = ImplCalcSize( pThis, i ); in ImplLineSizing()
1154 aSize = ImplCalcSize( pThis, i ); in ImplLineSizing()
1173 pThis->mnDockLines = i; in ImplLineSizing()
3211 void ToolBox::ImplDrawMenubutton( ToolBox *pThis, sal_Bool bHighlight ) in ImplDrawMenubutton() argument
3213 if( !pThis->mpData->maMenubuttonItem.maRect.IsEmpty() ) in ImplDrawMenubutton()
3216 if( !(pThis->GetMenuType() & TOOLBOX_MENUTYPE_CUSTOMIZE) && !pThis->ImplHasClippedItems() ) in ImplDrawMenubutton()
3220 ImplCheckUpdate( pThis ); in ImplDrawMenubutton()
3222 sal_Bool bFillColor = pThis->IsFillColor(); in ImplDrawMenubutton()
3223 sal_Bool bLineColor = pThis->IsLineColor(); in ImplDrawMenubutton()
3224 Color aOldFillCol = pThis->GetFillColor(); in ImplDrawMenubutton()
3225 Color aOldLineCol = pThis->GetLineColor(); in ImplDrawMenubutton()
3226 sal_Bool bNativeButtons = pThis->IsNativeControlSupported( CTRL_TOOLBAR, PART_BUTTON ); in ImplDrawMenubutton()
3228 Rectangle aInnerRect( pThis->mpData->maMenubuttonItem.maRect ); in ImplDrawMenubutton()
3229 if( pThis->mpData->mnMenuButtonWidth > TB_MENUBUTTON_SIZE ) in ImplDrawMenubutton()
3231 long nDiff = pThis->mpData->mnMenuButtonWidth - TB_MENUBUTTON_SIZE; in ImplDrawMenubutton()
3234 if( pThis->IsHorizontal() ) in ImplDrawMenubutton()
3246 if( pThis->IsHorizontal() ) in ImplDrawMenubutton()
3261 …ImplErase( pThis, bNativeButtons ? pThis->mpData->maMenubuttonItem.maRect : aInnerRect, bHighlight… in ImplDrawMenubutton()
3266 …ImplDrawButton( pThis, pThis->mpData->maMenubuttonItem.maRect, 2, sal_False, sal_True, sal_False ); in ImplDrawMenubutton()
3268 pThis->DrawSelectionBackground( aInnerRect, 2, sal_False, sal_False, sal_False ); in ImplDrawMenubutton()
3274 g.SetAngle( pThis->mbHorz ? 0 : 900 ); in ImplDrawMenubutton()
3277 g.SetStartColor( pThis->GetSettings().GetStyleSettings().GetFaceColor() ); in ImplDrawMenubutton()
3278 g.SetEndColor( pThis->GetSettings().GetStyleSettings().GetShadowColor() ); in ImplDrawMenubutton()
3280 pThis->DrawGradient( aInnerRect, g ); in ImplDrawMenubutton()
3284 if( pThis->mbHorz ) in ImplDrawMenubutton()
3289 if( pThis->mpData->maMenuType & TOOLBOX_MENUTYPE_CUSTOMIZE ) in ImplDrawMenubutton()
3290 ImplDrawDropdownArrow( pThis, aRect, sal_True, !pThis->mbHorz ); in ImplDrawMenubutton()
3292 if( pThis->ImplHasClippedItems() ) in ImplDrawMenubutton()
3295 if( pThis->mbHorz ) in ImplDrawMenubutton()
3300 ImplDrawMoreIndicator( pThis, aRect, sal_True, !pThis->mbHorz ); in ImplDrawMenubutton()
3304 pThis->mpData->mbMenubuttonSelected = bHighlight; in ImplDrawMenubutton()
3308 pThis->SetFillColor( aOldFillCol ); in ImplDrawMenubutton()
3310 pThis->SetFillColor(); in ImplDrawMenubutton()
3312 pThis->SetLineColor( aOldLineCol ); in ImplDrawMenubutton()
3314 pThis->SetLineColor(); in ImplDrawMenubutton()
3398 static void ImplDrawButton( ToolBox* pThis, const Rectangle &rRect, sal_uInt16 highlight, sal_Bool … in ImplDrawButton() argument
3404 if( !bIsWindow && pThis->IsNativeControlSupported( CTRL_TOOLBAR, PART_BUTTON ) ) in ImplDrawButton()
3416 bNativeOk = pThis->DrawNativeControl( CTRL_TOOLBAR, PART_BUTTON, in ImplDrawButton()
3421pThis->DrawSelectionBackground( rRect, bIsWindow ? 3 : highlight, bChecked, sal_True, bIsWindow, 2… in ImplDrawButton()
5381 sal_uInt16 ToolBox::ImplCountLineBreaks( const ToolBox *pThis ) in ImplCountLineBreaks() argument
5385 std::vector< ImplToolItem >::const_iterator it = ((ToolBox*)pThis)->mpData->m_aItems.begin(); in ImplCountLineBreaks()
5386 while ( it != ((ToolBox*)pThis)->mpData->m_aItems.end() ) in ImplCountLineBreaks()
5409 ToolBox *pThis = (ToolBox*) this; in CalcPopupWindowSizePixel() local
5410 pThis->mpData->mbAssumePopupMode = sal_True; in CalcPopupWindowSizePixel()
5414 pThis->mpData->mbAssumePopupMode = bPopup; in CalcPopupWindowSizePixel()
5431 ToolBox *pThis = (ToolBox*) this; in CalcFloatingWindowSizePixel() local
5432 pThis->mpData->mbAssumeFloating = sal_True; in CalcFloatingWindowSizePixel()
5433 pThis->mpData->mbAssumeDocked = sal_False; in CalcFloatingWindowSizePixel()
5437 pThis->mbFormat = sal_True; in CalcFloatingWindowSizePixel()
5438 pThis->mpData->mbAssumeFloating = bFloat; in CalcFloatingWindowSizePixel()
5439 pThis->mpData->mbAssumeDocked = bDocking; in CalcFloatingWindowSizePixel()