Update to m13
[ooovba.git] / applied_patches / 0528-calc-cursor-split-view.diff
blob62bab0c9bf5ddd03b9a2c7aa7b76a3f7fb69fb8b
1 diff --git sc/source/ui/view/gridwin.cxx sc/source/ui/view/gridwin.cxx
2 index e842c7d..180cbc7 100644
3 --- sc/source/ui/view/gridwin.cxx
4 +++ sc/source/ui/view/gridwin.cxx
5 @@ -5323,24 +5323,16 @@ void ScGridWindow::UpdateCursorOverlay()
6 if ( bLayoutRTL )
7 aScrPos.X() -= nSizeXPix - 2; // move instead of mirroring
9 - BOOL bFix = ( pViewData->GetHSplitMode() == SC_SPLIT_FIX ||
10 - pViewData->GetVSplitMode() == SC_SPLIT_FIX );
11 - if ( pViewData->GetActivePart()==eWhich || bFix )
12 - {
13 - aScrPos.X() -= 2;
14 - aScrPos.Y() -= 2;
15 - Rectangle aRect( aScrPos, Size( nSizeXPix + 3, nSizeYPix + 3 ) );
17 - aPixelRects.push_back(Rectangle( aRect.Left(), aRect.Top(), aRect.Left()+2, aRect.Bottom() ));
18 - aPixelRects.push_back(Rectangle( aRect.Right()-2, aRect.Top(), aRect.Right(), aRect.Bottom() ));
19 - aPixelRects.push_back(Rectangle( aRect.Left()+3, aRect.Top(), aRect.Right()-3, aRect.Top()+2 ));
20 - aPixelRects.push_back(Rectangle( aRect.Left()+3, aRect.Bottom()-2, aRect.Right()-3, aRect.Bottom() ));
21 - }
22 - else
23 - {
24 - Rectangle aRect( aScrPos, Size( nSizeXPix - 1, nSizeYPix - 1 ) );
25 - aPixelRects.push_back( aRect );
26 - }
27 + // Now, draw the cursor.
29 + aScrPos.X() -= 2;
30 + aScrPos.Y() -= 2;
31 + Rectangle aRect( aScrPos, Size( nSizeXPix + 3, nSizeYPix + 3 ) );
33 + aPixelRects.push_back(Rectangle( aRect.Left(), aRect.Top(), aRect.Left()+2, aRect.Bottom() ));
34 + aPixelRects.push_back(Rectangle( aRect.Right()-2, aRect.Top(), aRect.Right(), aRect.Bottom() ));
35 + aPixelRects.push_back(Rectangle( aRect.Left()+3, aRect.Top(), aRect.Right()-3, aRect.Top()+2 ));
36 + aPixelRects.push_back(Rectangle( aRect.Left()+3, aRect.Bottom()-2, aRect.Right()-3, aRect.Bottom() ));
40 @@ -5362,6 +5354,10 @@ void ScGridWindow::UpdateCursorOverlay()
42 ScOverlayType eType = bOld ? SC_OVERLAY_INVERT : SC_OVERLAY_SOLID;
43 Color aCursorColor( SC_MOD()->GetColorConfig().GetColorValue(svtools::FONTCOLOR).nColor );
44 + if (pViewData->GetActivePart() != eWhich)
45 + // non-active pane uses a different color.
46 + aCursorColor = SC_MOD()->GetColorConfig().GetColorValue(svtools::CALCPAGEBREAKAUTOMATIC).nColor;
48 sdr::overlay::OverlayObjectCell* pOverlay = new sdr::overlay::OverlayObjectCell( eType, aCursorColor, aRanges );
50 pOverlayManager->add(*pOverlay);
51 @@ -5513,6 +5509,10 @@ void ScGridWindow::UpdateAutoFillOverlay()
53 ScOverlayType eType = bOld ? SC_OVERLAY_INVERT : SC_OVERLAY_SOLID;
54 Color aHandleColor( SC_MOD()->GetColorConfig().GetColorValue(svtools::FONTCOLOR).nColor );
55 + if (pViewData->GetActivePart() != eWhich)
56 + // non-active pane uses a different color.
57 + aHandleColor = SC_MOD()->GetColorConfig().GetColorValue(svtools::CALCPAGEBREAKAUTOMATIC).nColor;
59 sdr::overlay::OverlayObjectCell* pOverlay =
60 new sdr::overlay::OverlayObjectCell( eType, aHandleColor, aRanges );