Lines Matching refs:pData

207 void ImplBorderWindowView::ImplInitTitle( ImplBorderFrameData* pData )  in ImplInitTitle()  argument
209 ImplBorderWindow* pBorderWindow = pData->mpBorderWindow; in ImplInitTitle()
212 (pData->mnTitleType == BORDERWINDOW_TITLE_NONE) ) in ImplInitTitle()
214 pData->mnTitleType = BORDERWINDOW_TITLE_NONE; in ImplInitTitle()
215 pData->mnTitleHeight = 0; in ImplInitTitle()
219 const StyleSettings& rStyleSettings = pData->mpOutDev->GetSettings().GetStyleSettings(); in ImplInitTitle()
220 if ( pData->mnTitleType == BORDERWINDOW_TITLE_TEAROFF ) in ImplInitTitle()
221 pData->mnTitleHeight = rStyleSettings.GetTearOffTitleHeight(); in ImplInitTitle()
224 if ( pData->mnTitleType == BORDERWINDOW_TITLE_SMALL ) in ImplInitTitle()
227 pData->mnTitleHeight = rStyleSettings.GetFloatTitleHeight(); in ImplInitTitle()
232 pData->mnTitleHeight = rStyleSettings.GetTitleHeight(); in ImplInitTitle()
235 if ( nTextHeight > pData->mnTitleHeight ) in ImplInitTitle()
236 pData->mnTitleHeight = nTextHeight; in ImplInitTitle()
243 sal_uInt16 ImplBorderWindowView::ImplHitTest( ImplBorderFrameData* pData, const Point& rPos ) in ImplHitTest() argument
245 ImplBorderWindow* pBorderWindow = pData->mpBorderWindow; in ImplHitTest()
247 if ( pData->maTitleRect.IsInside( rPos ) ) in ImplHitTest()
249 if ( pData->maCloseRect.IsInside( rPos ) ) in ImplHitTest()
251 else if ( pData->maRollRect.IsInside( rPos ) ) in ImplHitTest()
253 else if ( pData->maMenuRect.IsInside( rPos ) ) in ImplHitTest()
255 else if ( pData->maDockRect.IsInside( rPos ) ) in ImplHitTest()
257 else if ( pData->maHideRect.IsInside( rPos ) ) in ImplHitTest()
259 else if ( pData->maHelpRect.IsInside( rPos ) ) in ImplHitTest()
261 else if ( pData->maPinRect.IsInside( rPos ) ) in ImplHitTest()
270 long nSizeWidth = pData->mnNoTitleTop+pData->mnTitleHeight; in ImplHitTest()
279 if ( rPos.X() < pData->mnLeftBorder ) in ImplHitTest()
283 else if ( rPos.Y() >= pData->mnHeight-nSizeWidth ) in ImplHitTest()
288 else if ( rPos.X() >= pData->mnWidth-pData->mnRightBorder ) in ImplHitTest()
292 else if ( rPos.Y() >= pData->mnHeight-nSizeWidth ) in ImplHitTest()
297 else if ( rPos.Y() < pData->mnNoTitleTop ) in ImplHitTest()
301 else if ( rPos.X() >= pData->mnWidth-nSizeWidth ) in ImplHitTest()
306 else if ( rPos.Y() >= pData->mnHeight-pData->mnBottomBorder ) in ImplHitTest()
310 else if ( rPos.X() >= pData->mnWidth-nSizeWidth ) in ImplHitTest()
322 sal_Bool ImplBorderWindowView::ImplMouseMove( ImplBorderFrameData* pData, const MouseEvent& rMEvt ) in ImplMouseMove() argument
324 sal_uInt16 oldCloseState = pData->mnCloseState; in ImplMouseMove()
325 sal_uInt16 oldMenuState = pData->mnMenuState; in ImplMouseMove()
326 pData->mnCloseState &= ~BUTTON_DRAW_HIGHLIGHT; in ImplMouseMove()
327 pData->mnMenuState &= ~BUTTON_DRAW_HIGHLIGHT; in ImplMouseMove()
330 sal_uInt16 nHitTest = ImplHitTest( pData, aMousePos ); in ImplMouseMove()
349 pData->mnCloseState |= BUTTON_DRAW_HIGHLIGHT; in ImplMouseMove()
351 pData->mnMenuState |= BUTTON_DRAW_HIGHLIGHT; in ImplMouseMove()
352 pData->mpBorderWindow->SetPointer( Pointer( ePtrStyle ) ); in ImplMouseMove()
354 if( pData->mnCloseState != oldCloseState ) in ImplMouseMove()
355 pData->mpBorderWindow->Invalidate( pData->maCloseRect ); in ImplMouseMove()
356 if( pData->mnMenuState != oldMenuState ) in ImplMouseMove()
357 pData->mpBorderWindow->Invalidate( pData->maMenuRect ); in ImplMouseMove()
364 sal_Bool ImplBorderWindowView::ImplMouseButtonDown( ImplBorderFrameData* pData, const MouseEvent& r… in ImplMouseButtonDown() argument
366 ImplBorderWindow* pBorderWindow = pData->mpBorderWindow; in ImplMouseButtonDown()
370 pData->maMouseOff = rMEvt.GetPosPixel(); in ImplMouseButtonDown()
371 pData->mnHitTest = ImplHitTest( pData, pData->maMouseOff ); in ImplMouseButtonDown()
373 if ( pData->mnHitTest ) in ImplMouseButtonDown()
378 if ( pData->mnHitTest & BORDERWINDOW_HITTEST_CLOSE ) in ImplMouseButtonDown()
380 pData->mnCloseState |= BUTTON_DRAW_PRESSED; in ImplMouseButtonDown()
383 else if ( pData->mnHitTest & BORDERWINDOW_HITTEST_ROLL ) in ImplMouseButtonDown()
385 pData->mnRollState |= BUTTON_DRAW_PRESSED; in ImplMouseButtonDown()
388 else if ( pData->mnHitTest & BORDERWINDOW_HITTEST_DOCK ) in ImplMouseButtonDown()
390 pData->mnDockState |= BUTTON_DRAW_PRESSED; in ImplMouseButtonDown()
393 else if ( pData->mnHitTest & BORDERWINDOW_HITTEST_MENU ) in ImplMouseButtonDown()
395 pData->mnMenuState |= BUTTON_DRAW_PRESSED; in ImplMouseButtonDown()
405 else if ( pData->mnHitTest & BORDERWINDOW_HITTEST_HIDE ) in ImplMouseButtonDown()
407 pData->mnHideState |= BUTTON_DRAW_PRESSED; in ImplMouseButtonDown()
410 else if ( pData->mnHitTest & BORDERWINDOW_HITTEST_HELP ) in ImplMouseButtonDown()
412 pData->mnHelpState |= BUTTON_DRAW_PRESSED; in ImplMouseButtonDown()
415 else if ( pData->mnHitTest & BORDERWINDOW_HITTEST_PIN ) in ImplMouseButtonDown()
417 pData->mnPinState |= BUTTON_DRAW_PRESSED; in ImplMouseButtonDown()
428 pData->mnTrackX = aPos.X(); in ImplMouseButtonDown()
429 pData->mnTrackY = aPos.Y(); in ImplMouseButtonDown()
430 pData->mnTrackWidth = aSize.Width(); in ImplMouseButtonDown()
431 pData->mnTrackHeight = aSize.Height(); in ImplMouseButtonDown()
433 if ( pData->mnHitTest & BORDERWINDOW_HITTEST_TITLE ) in ImplMouseButtonDown()
443 if ( (pData->mnHitTest & BORDERWINDOW_DRAW_TITLE) && in ImplMouseButtonDown()
446 pData->mnHitTest = 0; in ImplMouseButtonDown()
469 pData->mbDragFull = sal_False; in ImplMouseButtonDown()
471pData->mbDragFull = sal_True; // always fulldrag for proper docking, ignore system settings in ImplMouseButtonDown()
475 pData->mnHitTest = 0; in ImplMouseButtonDown()
484 sal_Bool ImplBorderWindowView::ImplTracking( ImplBorderFrameData* pData, const TrackingEvent& rTEvt… in ImplTracking() argument
486 ImplBorderWindow* pBorderWindow = pData->mpBorderWindow; in ImplTracking()
490 sal_uInt16 nHitTest = pData->mnHitTest; in ImplTracking()
491 pData->mnHitTest = 0; in ImplTracking()
495 if ( pData->mnCloseState & BUTTON_DRAW_PRESSED ) in ImplTracking()
497 pData->mnCloseState &= ~BUTTON_DRAW_PRESSED; in ImplTracking()
517 if ( pData->mnRollState & BUTTON_DRAW_PRESSED ) in ImplTracking()
519 pData->mnRollState &= ~BUTTON_DRAW_PRESSED; in ImplTracking()
539 if ( pData->mnDockState & BUTTON_DRAW_PRESSED ) in ImplTracking()
541 pData->mnDockState &= ~BUTTON_DRAW_PRESSED; in ImplTracking()
557 if ( pData->mnMenuState & BUTTON_DRAW_PRESSED ) in ImplTracking()
559 pData->mnMenuState &= ~BUTTON_DRAW_PRESSED; in ImplTracking()
567 if ( pData->mnHideState & BUTTON_DRAW_PRESSED ) in ImplTracking()
569 pData->mnHideState &= ~BUTTON_DRAW_PRESSED; in ImplTracking()
585 if ( pData->mnHelpState & BUTTON_DRAW_PRESSED ) in ImplTracking()
587 pData->mnHelpState &= ~BUTTON_DRAW_PRESSED; in ImplTracking()
598 if ( pData->mnPinState & BUTTON_DRAW_PRESSED ) in ImplTracking()
600 pData->mnPinState &= ~BUTTON_DRAW_PRESSED; in ImplTracking()
617 if ( pData->mbDragFull ) in ImplTracking()
621 …pBorderWindow->SetPosSizePixel( Point( pData->mnTrackX, pData->mnTrackY ), Size( pData->mnTrackWid… in ImplTracking()
627 …pBorderWindow->SetPosSizePixel( Point( pData->mnTrackX, pData->mnTrackY ), Size( pData->mnTrackWid… in ImplTracking()
644 if ( pData->mnHitTest & BORDERWINDOW_HITTEST_CLOSE ) in ImplTracking()
646 if ( pData->maCloseRect.IsInside( aMousePos ) ) in ImplTracking()
648 if ( !(pData->mnCloseState & BUTTON_DRAW_PRESSED) ) in ImplTracking()
650 pData->mnCloseState |= BUTTON_DRAW_PRESSED; in ImplTracking()
656 if ( pData->mnCloseState & BUTTON_DRAW_PRESSED ) in ImplTracking()
658 pData->mnCloseState &= ~BUTTON_DRAW_PRESSED; in ImplTracking()
663 else if ( pData->mnHitTest & BORDERWINDOW_HITTEST_ROLL ) in ImplTracking()
665 if ( pData->maRollRect.IsInside( aMousePos ) ) in ImplTracking()
667 if ( !(pData->mnRollState & BUTTON_DRAW_PRESSED) ) in ImplTracking()
669 pData->mnRollState |= BUTTON_DRAW_PRESSED; in ImplTracking()
675 if ( pData->mnRollState & BUTTON_DRAW_PRESSED ) in ImplTracking()
677 pData->mnRollState &= ~BUTTON_DRAW_PRESSED; in ImplTracking()
682 else if ( pData->mnHitTest & BORDERWINDOW_HITTEST_DOCK ) in ImplTracking()
684 if ( pData->maDockRect.IsInside( aMousePos ) ) in ImplTracking()
686 if ( !(pData->mnDockState & BUTTON_DRAW_PRESSED) ) in ImplTracking()
688 pData->mnDockState |= BUTTON_DRAW_PRESSED; in ImplTracking()
694 if ( pData->mnDockState & BUTTON_DRAW_PRESSED ) in ImplTracking()
696 pData->mnDockState &= ~BUTTON_DRAW_PRESSED; in ImplTracking()
701 else if ( pData->mnHitTest & BORDERWINDOW_HITTEST_MENU ) in ImplTracking()
703 if ( pData->maMenuRect.IsInside( aMousePos ) ) in ImplTracking()
705 if ( !(pData->mnMenuState & BUTTON_DRAW_PRESSED) ) in ImplTracking()
707 pData->mnMenuState |= BUTTON_DRAW_PRESSED; in ImplTracking()
714 if ( pData->mnMenuState & BUTTON_DRAW_PRESSED ) in ImplTracking()
716 pData->mnMenuState &= ~BUTTON_DRAW_PRESSED; in ImplTracking()
721 else if ( pData->mnHitTest & BORDERWINDOW_HITTEST_HIDE ) in ImplTracking()
723 if ( pData->maHideRect.IsInside( aMousePos ) ) in ImplTracking()
725 if ( !(pData->mnHideState & BUTTON_DRAW_PRESSED) ) in ImplTracking()
727 pData->mnHideState |= BUTTON_DRAW_PRESSED; in ImplTracking()
733 if ( pData->mnHideState & BUTTON_DRAW_PRESSED ) in ImplTracking()
735 pData->mnHideState &= ~BUTTON_DRAW_PRESSED; in ImplTracking()
740 else if ( pData->mnHitTest & BORDERWINDOW_HITTEST_HELP ) in ImplTracking()
742 if ( pData->maHelpRect.IsInside( aMousePos ) ) in ImplTracking()
744 if ( !(pData->mnHelpState & BUTTON_DRAW_PRESSED) ) in ImplTracking()
746 pData->mnHelpState |= BUTTON_DRAW_PRESSED; in ImplTracking()
752 if ( pData->mnHelpState & BUTTON_DRAW_PRESSED ) in ImplTracking()
754 pData->mnHelpState &= ~BUTTON_DRAW_PRESSED; in ImplTracking()
759 else if ( pData->mnHitTest & BORDERWINDOW_HITTEST_PIN ) in ImplTracking()
761 if ( pData->maPinRect.IsInside( aMousePos ) ) in ImplTracking()
763 if ( !(pData->mnPinState & BUTTON_DRAW_PRESSED) ) in ImplTracking()
765 pData->mnPinState |= BUTTON_DRAW_PRESSED; in ImplTracking()
771 if ( pData->mnPinState & BUTTON_DRAW_PRESSED ) in ImplTracking()
773 pData->mnPinState &= ~BUTTON_DRAW_PRESSED; in ImplTracking()
795 aMousePos.X() -= pData->maMouseOff.X(); in ImplTracking()
796 aMousePos.Y() -= pData->maMouseOff.Y(); in ImplTracking()
798 if ( pData->mnHitTest & BORDERWINDOW_HITTEST_TITLE ) in ImplTracking()
800 pData->mpBorderWindow->SetPointer( Pointer( POINTER_MOVE ) ); in ImplTracking()
805 if ( pData->mbDragFull ) in ImplTracking()
813 pData->mnTrackX = aPos.X(); in ImplTracking()
814 pData->mnTrackY = aPos.Y(); in ImplTracking()
825 long nBorderWidth = pData->mnLeftBorder+pData->mnRightBorder; in ImplTracking()
826 long nBorderHeight = pData->mnTopBorder+pData->mnBottomBorder; in ImplTracking()
833 if ( pData->mnTitleHeight ) in ImplTracking()
838 nMinWidth2 += pData->maCloseRect.GetWidth(); in ImplTracking()
842 …if ( pData->mnHitTest & (BORDERWINDOW_HITTEST_LEFT | BORDERWINDOW_HITTEST_TOPLEFT | BORDERWINDOW_H… in ImplTracking()
850 …else if ( pData->mnHitTest & (BORDERWINDOW_HITTEST_RIGHT | BORDERWINDOW_HITTEST_TOPRIGHT | BORDERW… in ImplTracking()
858 …if ( pData->mnHitTest & (BORDERWINDOW_HITTEST_TOP | BORDERWINDOW_HITTEST_TOPLEFT | BORDERWINDOW_HI… in ImplTracking()
866 …else if ( pData->mnHitTest & (BORDERWINDOW_HITTEST_BOTTOM | BORDERWINDOW_HITTEST_BOTTOMLEFT | BORD… in ImplTracking()
893 …if ( pData->mnHitTest & (BORDERWINDOW_HITTEST_LEFT | BORDERWINDOW_HITTEST_TOPLEFT | BORDERWINDOW_H… in ImplTracking()
897 …if ( pData->mnHitTest & (BORDERWINDOW_HITTEST_TOP | BORDERWINDOW_HITTEST_TOPLEFT | BORDERWINDOW_HI… in ImplTracking()
903 if ( pData->mbDragFull ) in ImplTracking()
915 …if ( pData->mnHitTest & (BORDERWINDOW_HITTEST_RIGHT | BORDERWINDOW_HITTEST_TOPRIGHT | BORDERWINDOW… in ImplTracking()
916 pData->maMouseOff.X() += aNewRect.GetWidth()-nOldWidth; in ImplTracking()
917 …if ( pData->mnHitTest & (BORDERWINDOW_HITTEST_BOTTOM | BORDERWINDOW_HITTEST_BOTTOMLEFT | BORDERWIN… in ImplTracking()
918 pData->maMouseOff.Y() += aNewRect.GetHeight()-nOldHeight; in ImplTracking()
922 pData->mnTrackX = aNewRect.Left(); in ImplTracking()
923 pData->mnTrackY = aNewRect.Top(); in ImplTracking()
924 pData->mnTrackWidth = aNewRect.GetWidth(); in ImplTracking()
925 pData->mnTrackHeight = aNewRect.GetHeight(); in ImplTracking()
937 String ImplBorderWindowView::ImplRequestHelp( ImplBorderFrameData* pData, in ImplRequestHelp() argument
943 sal_uInt16 nHitTest = ImplHitTest( pData, rPos ); in ImplRequestHelp()
949 rHelpRect = pData->maCloseRect; in ImplRequestHelp()
953 if ( pData->mpBorderWindow->mbRollUp ) in ImplRequestHelp()
957 rHelpRect = pData->maRollRect; in ImplRequestHelp()
962 rHelpRect = pData->maDockRect; in ImplRequestHelp()
973 rHelpRect = pData->maHideRect; in ImplRequestHelp()
978 rHelpRect = pData->maHelpRect; in ImplRequestHelp()
983 rHelpRect = pData->maPinRect; in ImplRequestHelp()
987 if( !pData->maTitleRect.IsEmpty() ) in ImplRequestHelp()
990 if( pData->mbTitleClipped ) in ImplRequestHelp()
992 rHelpRect = pData->maTitleRect; in ImplRequestHelp()
994 aHelpStr = pData->mpBorderWindow->GetText(); in ImplRequestHelp()
1008 long ImplBorderWindowView::ImplCalcTitleWidth( const ImplBorderFrameData* pData ) const in ImplCalcTitleWidth()
1011 if ( !pData->mnTitleHeight ) in ImplCalcTitleWidth()
1014 ImplBorderWindow* pBorderWindow = pData->mpBorderWindow; in ImplCalcTitleWidth()
1016 nTitleWidth += pData->maPinRect.GetWidth(); in ImplCalcTitleWidth()
1017 nTitleWidth += pData->maCloseRect.GetWidth(); in ImplCalcTitleWidth()
1018 nTitleWidth += pData->maRollRect.GetWidth(); in ImplCalcTitleWidth()
1019 nTitleWidth += pData->maDockRect.GetWidth(); in ImplCalcTitleWidth()
1020 nTitleWidth += pData->maMenuRect.GetWidth(); in ImplCalcTitleWidth()
1021 nTitleWidth += pData->maHideRect.GetWidth(); in ImplCalcTitleWidth()
1022 nTitleWidth += pData->maHelpRect.GetWidth(); in ImplCalcTitleWidth()
1023 nTitleWidth += pData->mnLeftBorder+pData->mnRightBorder; in ImplCalcTitleWidth()
1482 ImplBorderFrameData* pData = &maFrameData; in Init() local
1489 pData->mpOutDev = pDev; in Init()
1490 pData->mnWidth = nWidth; in Init()
1491 pData->mnHeight = nHeight; in Init()
1493 pData->mnTitleType = pBorderWindow->mnTitleType; in Init()
1494 pData->mbFloatWindow = pBorderWindow->mbFloatWindow; in Init()
1496 …if ( !(pBorderWindow->GetStyle() & WB_MOVEABLE) || (pData->mnTitleType == BORDERWINDOW_TITLE_NONE)… in Init()
1497 pData->mnBorderSize = 0; in Init()
1498 else if ( pData->mnTitleType == BORDERWINDOW_TITLE_TEAROFF ) in Init()
1499 pData->mnBorderSize = 0; in Init()
1501 pData->mnBorderSize = rStyleSettings.GetBorderSize(); in Init()
1502 pData->mnLeftBorder = aCalcRect.Left(); in Init()
1503 pData->mnTopBorder = aCalcRect.Top(); in Init()
1504 pData->mnRightBorder = aRect.Right()-aCalcRect.Right(); in Init()
1505 pData->mnBottomBorder = aRect.Bottom()-aCalcRect.Bottom(); in Init()
1506 pData->mnLeftBorder += pData->mnBorderSize; in Init()
1507 pData->mnTopBorder += pData->mnBorderSize; in Init()
1508 pData->mnRightBorder += pData->mnBorderSize; in Init()
1509 pData->mnBottomBorder += pData->mnBorderSize; in Init()
1510 pData->mnNoTitleTop = pData->mnTopBorder; in Init()
1513 if ( pData->mnTitleHeight ) in Init()
1516 if( pData->mnTitleHeight < MIN_CAPTION_HEIGHT ) in Init()
1517 pData->mnTitleHeight = MIN_CAPTION_HEIGHT; in Init()
1523 pData->maTitleRect.Left() = pData->mnLeftBorder; in Init()
1524 pData->maTitleRect.Right() = nWidth-pData->mnRightBorder-1; in Init()
1525 pData->maTitleRect.Top() = pData->mnTopBorder; in Init()
1526 pData->maTitleRect.Bottom() = pData->maTitleRect.Top()+pData->mnTitleHeight-1; in Init()
1528 if ( pData->mnTitleType & (BORDERWINDOW_TITLE_NORMAL | BORDERWINDOW_TITLE_SMALL) ) in Init()
1530 long nLeft = pData->maTitleRect.Left(); in Init()
1531 long nRight = pData->maTitleRect.Right(); in Init()
1532 long nItemTop = pData->maTitleRect.Top(); in Init()
1533 long nItemBottom = pData->maTitleRect.Bottom(); in Init()
1543 pData->maPinRect.Top() = nItemTop; in Init()
1544 pData->maPinRect.Bottom() = nItemBottom; in Init()
1545 pData->maPinRect.Left() = nLeft; in Init()
1546 pData->maPinRect.Right() = pData->maPinRect.Left()+aImage.GetSizePixel().Width(); in Init()
1547 nLeft += pData->maPinRect.GetWidth()+3; in Init()
1552 pData->maCloseRect.Top() = nItemTop; in Init()
1553 pData->maCloseRect.Bottom() = nItemBottom; in Init()
1554 pData->maCloseRect.Right() = nRight; in Init()
1555 pData->maCloseRect.Left() = pData->maCloseRect.Right()-pData->maCloseRect.GetHeight()+1; in Init()
1556 nRight -= pData->maCloseRect.GetWidth()+3; in Init()
1561 pData->maMenuRect.Top() = nItemTop; in Init()
1562 pData->maMenuRect.Bottom() = nItemBottom; in Init()
1563 pData->maMenuRect.Right() = nRight; in Init()
1564 pData->maMenuRect.Left() = pData->maMenuRect.Right()-pData->maMenuRect.GetHeight()+1; in Init()
1565 nRight -= pData->maMenuRect.GetWidth(); in Init()
1570 pData->maDockRect.Top() = nItemTop; in Init()
1571 pData->maDockRect.Bottom() = nItemBottom; in Init()
1572 pData->maDockRect.Right() = nRight; in Init()
1573 pData->maDockRect.Left() = pData->maDockRect.Right()-pData->maDockRect.GetHeight()+1; in Init()
1574 nRight -= pData->maDockRect.GetWidth(); in Init()
1582 pData->maHideRect.Top() = nItemTop; in Init()
1583 pData->maHideRect.Bottom() = nItemBottom; in Init()
1584 pData->maHideRect.Right() = nRight; in Init()
1585 pData->maHideRect.Left() = pData->maHideRect.Right()-pData->maHideRect.GetHeight()+1; in Init()
1586 nRight -= pData->maHideRect.GetWidth(); in Init()
1593 pData->maRollRect.Top() = nItemTop; in Init()
1594 pData->maRollRect.Bottom() = nItemBottom; in Init()
1595 pData->maRollRect.Right() = nRight; in Init()
1596 pData->maRollRect.Left() = pData->maRollRect.Right()-pData->maRollRect.GetHeight()+1; in Init()
1597 nRight -= pData->maRollRect.GetWidth(); in Init()
1602 pData->maHelpRect.Top() = nItemTop; in Init()
1603 pData->maHelpRect.Bottom() = nItemBottom; in Init()
1604 pData->maHelpRect.Right() = nRight; in Init()
1605 pData->maHelpRect.Left() = pData->maHelpRect.Right()-pData->maHelpRect.GetHeight()+1; in Init()
1606 nRight -= pData->maHelpRect.GetWidth()+3; in Init()
1611 pData->maPinRect.SetEmpty(); in Init()
1612 pData->maCloseRect.SetEmpty(); in Init()
1613 pData->maDockRect.SetEmpty(); in Init()
1614 pData->maMenuRect.SetEmpty(); in Init()
1615 pData->maHideRect.SetEmpty(); in Init()
1616 pData->maRollRect.SetEmpty(); in Init()
1617 pData->maHelpRect.SetEmpty(); in Init()
1620 pData->mnTopBorder += pData->mnTitleHeight; in Init()
1624 pData->maTitleRect.SetEmpty(); in Init()
1625 pData->maPinRect.SetEmpty(); in Init()
1626 pData->maCloseRect.SetEmpty(); in Init()
1627 pData->maDockRect.SetEmpty(); in Init()
1628 pData->maMenuRect.SetEmpty(); in Init()
1629 pData->maHideRect.SetEmpty(); in Init()
1630 pData->maRollRect.SetEmpty(); in Init()
1631 pData->maHelpRect.SetEmpty(); in Init()
1657 ImplBorderFrameData* pData = &maFrameData; in DrawWindow() local
1658 OutputDevice* pDev = pOutDev ? pOutDev : pData->mpOutDev; in DrawWindow()
1659 ImplBorderWindow* pBorderWindow = pData->mpBorderWindow; in DrawWindow()
1661 Rectangle aInRect( aTmpPoint, Size( pData->mnWidth, pData->mnHeight ) ); in DrawWindow()
1662 const StyleSettings& rStyleSettings = pData->mpOutDev->GetSettings().GetStyleSettings(); in DrawWindow()
1683 long nBorderSize = pData->mnBorderSize; in DrawWindow()
1698 if ( (nDrawFlags & BORDERWINDOW_DRAW_TITLE) && !pData->maTitleRect.IsEmpty() ) in DrawWindow()
1700 aInRect = pData->maTitleRect; in DrawWindow()
1705 Rectangle aTitleRect( pData->maTitleRect ); in DrawWindow()
1711 if ( pData->mnTitleType != BORDERWINDOW_TITLE_TEAROFF ) in DrawWindow()
1716 if ( !pData->maPinRect.IsEmpty() ) in DrawWindow()
1717 aInRect.Left() = pData->maPinRect.Right()+2; in DrawWindow()
1719 if ( !pData->maHelpRect.IsEmpty() ) in DrawWindow()
1720 aInRect.Right() = pData->maHelpRect.Left()-2; in DrawWindow()
1721 else if ( !pData->maRollRect.IsEmpty() ) in DrawWindow()
1722 aInRect.Right() = pData->maRollRect.Left()-2; in DrawWindow()
1723 else if ( !pData->maHideRect.IsEmpty() ) in DrawWindow()
1724 aInRect.Right() = pData->maHideRect.Left()-2; in DrawWindow()
1725 else if ( !pData->maDockRect.IsEmpty() ) in DrawWindow()
1726 aInRect.Right() = pData->maDockRect.Left()-2; in DrawWindow()
1727 else if ( !pData->maMenuRect.IsEmpty() ) in DrawWindow()
1728 aInRect.Right() = pData->maMenuRect.Left()-2; in DrawWindow()
1729 else if ( !pData->maCloseRect.IsEmpty() ) in DrawWindow()
1730 aInRect.Right() = pData->maCloseRect.Left()-2; in DrawWindow()
1740 pData->mbTitleClipped = aInfo.IsEllipses(); in DrawWindow()
1747 !pData->maCloseRect.IsEmpty() ) in DrawWindow()
1749 Rectangle aSymbolRect( pData->maCloseRect ); in DrawWindow()
1752 ImplDrawBrdWinSymbolButton( pDev, aSymbolRect, SYMBOL_CLOSE, pData->mnCloseState ); in DrawWindow()
1755 !pData->maDockRect.IsEmpty() ) in DrawWindow()
1757 Rectangle aSymbolRect( pData->maDockRect ); in DrawWindow()
1760 ImplDrawBrdWinSymbolButton( pDev, aSymbolRect, SYMBOL_DOCK, pData->mnDockState ); in DrawWindow()
1763 !pData->maMenuRect.IsEmpty() ) in DrawWindow()
1765 Rectangle aSymbolRect( pData->maMenuRect ); in DrawWindow()
1768 ImplDrawBrdWinSymbolButton( pDev, aSymbolRect, SYMBOL_MENU, pData->mnMenuState ); in DrawWindow()
1771 !pData->maHideRect.IsEmpty() ) in DrawWindow()
1773 Rectangle aSymbolRect( pData->maHideRect ); in DrawWindow()
1776 ImplDrawBrdWinSymbolButton( pDev, aSymbolRect, SYMBOL_HIDE, pData->mnHideState ); in DrawWindow()
1779 !pData->maRollRect.IsEmpty() ) in DrawWindow()
1786 Rectangle aSymbolRect( pData->maRollRect ); in DrawWindow()
1789 ImplDrawBrdWinSymbolButton( pDev, aSymbolRect, eType, pData->mnRollState ); in DrawWindow()
1793 !pData->maHelpRect.IsEmpty() ) in DrawWindow()
1795 Rectangle aSymbolRect( pData->maHelpRect ); in DrawWindow()
1798 ImplDrawBrdWinSymbolButton( pDev, aSymbolRect, SYMBOL_HELP, pData->mnHelpState ); in DrawWindow()
1801 !pData->maPinRect.IsEmpty() ) in DrawWindow()
1804 ImplGetPinImage( pData->mnPinState, pBorderWindow->mbPined, aImage ); in DrawWindow()
1806 long nRectHeight = pData->maPinRect.GetHeight(); in DrawWindow()
1807 Point aPos( pData->maPinRect.TopLeft() ); in DrawWindow()