Kaydet (Commit) 4e1d190f authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Andras Timar

fix cherry-pick from master

Change-Id: I8c75292755877e678cadbda8cf5b2307150fa90c
üst fa7add20
...@@ -1469,7 +1469,7 @@ void Ruler::ImplUpdate( bool bMustCalc ) ...@@ -1469,7 +1469,7 @@ void Ruler::ImplUpdate( bool bMustCalc )
{ {
// clear lines in this place so they aren't considered at recalculation // clear lines in this place so they aren't considered at recalculation
if (!mbFormat) if (!mbFormat)
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
// set flags // set flags
if (bMustCalc) if (bMustCalc)
...@@ -1483,7 +1483,7 @@ void Ruler::ImplUpdate( bool bMustCalc ) ...@@ -1483,7 +1483,7 @@ void Ruler::ImplUpdate( bool bMustCalc )
// otherwise trigger update // otherwise trigger update
if (IsReallyVisible() && IsUpdateMode()) if (IsReallyVisible() && IsUpdateMode())
{ {
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
} }
} }
...@@ -1879,7 +1879,7 @@ bool Ruler::ImplStartDrag( RulerSelection* pHitTest, sal_uInt16 nModifier ) ...@@ -1879,7 +1879,7 @@ bool Ruler::ImplStartDrag( RulerSelection* pHitTest, sal_uInt16 nModifier )
mbDrag = true; mbDrag = true;
mnStartDragPos = mnDragPos; mnStartDragPos = mnDragPos;
StartTracking(); StartTracking();
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
return true; return true;
} }
else else
...@@ -1946,7 +1946,7 @@ void Ruler::ImplDrag( const Point& rPos ) ...@@ -1946,7 +1946,7 @@ void Ruler::ImplDrag( const Point& rPos )
Drag(); Drag();
// and redraw // and redraw
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
// reset the data as before cancel // reset the data as before cancel
*mpDragData = aTempData; *mpDragData = aTempData;
...@@ -1967,7 +1967,7 @@ void Ruler::ImplDrag( const Point& rPos ) ...@@ -1967,7 +1967,7 @@ void Ruler::ImplDrag( const Point& rPos )
// redraw // redraw
if (mbFormat) if (mbFormat)
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
} }
} }
...@@ -1996,7 +1996,7 @@ void Ruler::ImplEndDrag() ...@@ -1996,7 +1996,7 @@ void Ruler::ImplEndDrag()
mnStartDragPos = 0; mnStartDragPos = 0;
// redraw // redraw
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
} }
void Ruler::MouseButtonDown( const MouseEvent& rMEvt ) void Ruler::MouseButtonDown( const MouseEvent& rMEvt )
...@@ -2010,7 +2010,7 @@ void Ruler::MouseButtonDown( const MouseEvent& rMEvt ) ...@@ -2010,7 +2010,7 @@ void Ruler::MouseButtonDown( const MouseEvent& rMEvt )
// update ruler // update ruler
if ( mbFormat ) if ( mbFormat )
{ {
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
} }
if ( maExtraRect.IsInside( aMousePos ) ) if ( maExtraRect.IsInside( aMousePos ) )
...@@ -2119,7 +2119,7 @@ void Ruler::MouseMove( const MouseEvent& rMEvt ) ...@@ -2119,7 +2119,7 @@ void Ruler::MouseMove( const MouseEvent& rMEvt )
if (mbFormat) if (mbFormat)
{ {
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
} }
} }
...@@ -2176,7 +2176,7 @@ void Ruler::Resize() ...@@ -2176,7 +2176,7 @@ void Ruler::Resize()
if ( bVisible && !mpData->pLines.empty() ) if ( bVisible && !mpData->pLines.empty() )
{ {
mnUpdateFlags |= RULER_UPDATE_LINES; mnUpdateFlags |= RULER_UPDATE_LINES;
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
} }
// recalculate some values if the height/width changes // recalculate some values if the height/width changes
...@@ -2199,7 +2199,7 @@ void Ruler::Resize() ...@@ -2199,7 +2199,7 @@ void Ruler::Resize()
if ( bVisible ) if ( bVisible )
{ {
if ( nNewHeight ) if ( nNewHeight )
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
else if ( mpData->bAutoPageWidth ) else if ( mpData->bAutoPageWidth )
{ {
// only at AutoPageWidth muss we redraw // only at AutoPageWidth muss we redraw
...@@ -2226,7 +2226,7 @@ void Ruler::Resize() ...@@ -2226,7 +2226,7 @@ void Ruler::Resize()
aRect.Right() = RULER_OFF + mnVirHeight; aRect.Right() = RULER_OFF + mnVirHeight;
} }
Invalidate(aRect, InvalidateFlags::NoErase); Invalidate(aRect, INVALIDATE_NOERASE);
} }
} }
...@@ -2318,13 +2318,13 @@ void Ruler::Activate() ...@@ -2318,13 +2318,13 @@ void Ruler::Activate()
// update positionlies - draw is delayed // update positionlies - draw is delayed
mnUpdateFlags |= RULER_UPDATE_LINES; mnUpdateFlags |= RULER_UPDATE_LINES;
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
} }
void Ruler::Deactivate() void Ruler::Deactivate()
{ {
// clear positionlines // clear positionlines
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
mbActive = false; mbActive = false;
} }
...@@ -2344,7 +2344,7 @@ bool Ruler::StartDocDrag( const MouseEvent& rMEvt, RulerType eDragType ) ...@@ -2344,7 +2344,7 @@ bool Ruler::StartDocDrag( const MouseEvent& rMEvt, RulerType eDragType )
// update ruler // update ruler
if ( mbFormat ) if ( mbFormat )
{ {
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
} }
if ( nMouseClicks == 1 ) if ( nMouseClicks == 1 )
...@@ -2409,7 +2409,7 @@ RulerType Ruler::GetType( const Point& rPos, sal_uInt16* pAryPos ) ...@@ -2409,7 +2409,7 @@ RulerType Ruler::GetType( const Point& rPos, sal_uInt16* pAryPos )
// update ruler // update ruler
if ( IsReallyVisible() && mbFormat ) if ( IsReallyVisible() && mbFormat )
{ {
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
} }
(void)ImplHitTest(rPos, &aHitTest); (void)ImplHitTest(rPos, &aHitTest);
...@@ -2459,7 +2459,7 @@ void Ruler::SetBorderPos( long nOff ) ...@@ -2459,7 +2459,7 @@ void Ruler::SetBorderPos( long nOff )
mnBorderOff = nOff; mnBorderOff = nOff;
if ( IsReallyVisible() && IsUpdateMode() ) if ( IsReallyVisible() && IsUpdateMode() )
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
} }
} }
} }
...@@ -2534,7 +2534,7 @@ void Ruler::SetExtraType( RulerExtra eNewExtraType, sal_uInt16 nStyle ) ...@@ -2534,7 +2534,7 @@ void Ruler::SetExtraType( RulerExtra eNewExtraType, sal_uInt16 nStyle )
meExtraType = eNewExtraType; meExtraType = eNewExtraType;
mnExtraStyle = nStyle; mnExtraStyle = nStyle;
if (IsReallyVisible() && IsUpdateMode()) if (IsReallyVisible() && IsUpdateMode())
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
} }
} }
...@@ -2620,7 +2620,7 @@ void Ruler::SetLines( sal_uInt32 aLineArraySize, const RulerLine* pLineArray ) ...@@ -2620,7 +2620,7 @@ void Ruler::SetLines( sal_uInt32 aLineArraySize, const RulerLine* pLineArray )
// Delete old lines // Delete old lines
if ( bMustUpdate ) if ( bMustUpdate )
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
// New data set // New data set
if ( !aLineArraySize || !pLineArray ) if ( !aLineArraySize || !pLineArray )
...@@ -2641,7 +2641,7 @@ void Ruler::SetLines( sal_uInt32 aLineArraySize, const RulerLine* pLineArray ) ...@@ -2641,7 +2641,7 @@ void Ruler::SetLines( sal_uInt32 aLineArraySize, const RulerLine* pLineArray )
mpData->pLines.begin() ); mpData->pLines.begin() );
if ( bMustUpdate ) if ( bMustUpdate )
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
} }
} }
...@@ -2833,7 +2833,7 @@ RulerUnitData Ruler::GetCurrentRulerUnit() const ...@@ -2833,7 +2833,7 @@ RulerUnitData Ruler::GetCurrentRulerUnit() const
void Ruler::DrawTicks() void Ruler::DrawTicks()
{ {
mbFormat = true; mbFormat = true;
Invalidate(InvalidateFlags::NoErase); Invalidate(INVALIDATE_NOERASE);
} }
uno::Reference< XAccessible > Ruler::CreateAccessible() uno::Reference< XAccessible > Ruler::CreateAccessible()
......
...@@ -1231,7 +1231,7 @@ void StatusBar::SetItemData( sal_uInt16 nItemId, void* pNewData ) ...@@ -1231,7 +1231,7 @@ void StatusBar::SetItemData( sal_uInt16 nItemId, void* pNewData )
{ {
Update(); Update();
Rectangle aRect = ImplGetItemRectPos(nPos); Rectangle aRect = ImplGetItemRectPos(nPos);
Invalidate(aRect, InvalidateFlags::NoErase); Invalidate(aRect, INVALIDATE_NOERASE);
Flush(); Flush();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment