svdpntv.cxx (9f63b866) | svdpntv.cxx (e6f63103) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 792 unchanged lines hidden (view full) --- 801 { 802 if(!pWindow->GetPaintRegion().IsEmpty()) 803 { 804 aOptimizedRepaintRegion.Intersect(pWindow->GetPaintRegion()); 805 806#ifdef DBG_UTIL 807 // #i74769# test-paint repaint region 808 static bool bDoPaintForVisualControl(false); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 792 unchanged lines hidden (view full) --- 801 { 802 if(!pWindow->GetPaintRegion().IsEmpty()) 803 { 804 aOptimizedRepaintRegion.Intersect(pWindow->GetPaintRegion()); 805 806#ifdef DBG_UTIL 807 // #i74769# test-paint repaint region 808 static bool bDoPaintForVisualControl(false); |
809 if(bDoPaintForVisualControl) | 809 810 if(bDoPaintForVisualControl) |
810 { | 811 { |
811 RegionHandle aRegionHandle(aOptimizedRepaintRegion.BeginEnumRects()); 812 Rectangle aRegionRectangle; 813 814 while(aOptimizedRepaintRegion.GetEnumRects(aRegionHandle, aRegionRectangle)) 815 { 816 pWindow->SetLineColor(COL_LIGHTGREEN); 817 pWindow->SetFillColor(); 818 pWindow->DrawRect(aRegionRectangle); 819 } | 812 RectangleVector aRectangles; 813 aOptimizedRepaintRegion.GetRegionRectangles(aRectangles); |
820 | 814 |
821 aOptimizedRepaintRegion.EndEnumRects(aRegionHandle); | 815 pWindow->SetLineColor(COL_LIGHTGREEN); 816 pWindow->SetFillColor(); 817 818 for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++) 819 { 820 pWindow->DrawRect(*aRectIter); 821 } 822 823 //RegionHandle aRegionHandle(aOptimizedRepaintRegion.BeginEnumRects()); 824 //Rectangle aRegionRectangle; 825 // 826 //while(aOptimizedRepaintRegion.GetEnumRects(aRegionHandle, aRegionRectangle)) 827 //{ 828 // pWindow->SetLineColor(COL_LIGHTGREEN); 829 // pWindow->SetFillColor(); 830 // pWindow->DrawRect(aRegionRectangle); 831 //} 832 // 833 //aOptimizedRepaintRegion.EndEnumRects(aRegionHandle); |
822 } 823#endif 824 } 825 } 826 } 827 828 SdrPaintWindow* pPaintWindow = BeginCompleteRedraw(pOut); 829 OSL_ENSURE(pPaintWindow, "SdrPaintView::CompleteRedraw: No OutDev (!)"); --- 153 unchanged lines hidden (view full) --- 983 { 984 if(!pWindow->GetPaintRegion().IsEmpty()) 985 { 986 aOptimizedRepaintRegion.Intersect(pWindow->GetPaintRegion()); 987 988#ifdef DBG_UTIL 989 // #i74769# test-paint repaint region 990 static bool bDoPaintForVisualControl(false); | 834 } 835#endif 836 } 837 } 838 } 839 840 SdrPaintWindow* pPaintWindow = BeginCompleteRedraw(pOut); 841 OSL_ENSURE(pPaintWindow, "SdrPaintView::CompleteRedraw: No OutDev (!)"); --- 153 unchanged lines hidden (view full) --- 995 { 996 if(!pWindow->GetPaintRegion().IsEmpty()) 997 { 998 aOptimizedRepaintRegion.Intersect(pWindow->GetPaintRegion()); 999 1000#ifdef DBG_UTIL 1001 // #i74769# test-paint repaint region 1002 static bool bDoPaintForVisualControl(false); |
991 if(bDoPaintForVisualControl) | 1003 1004 if(bDoPaintForVisualControl) |
992 { | 1005 { |
993 RegionHandle aRegionHandle(aOptimizedRepaintRegion.BeginEnumRects()); 994 Rectangle aRegionRectangle; 995 996 while(aOptimizedRepaintRegion.GetEnumRects(aRegionHandle, aRegionRectangle)) 997 { 998 pWindow->SetLineColor(COL_LIGHTGREEN); 999 pWindow->SetFillColor(); 1000 pWindow->DrawRect(aRegionRectangle); 1001 } | 1006 RectangleVector aRectangles; 1007 aOptimizedRepaintRegion.GetRegionRectangles(aRectangles); |
1002 | 1008 |
1003 aOptimizedRepaintRegion.EndEnumRects(aRegionHandle); | 1009 pWindow->SetLineColor(COL_LIGHTGREEN); 1010 pWindow->SetFillColor(); 1011 1012 for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); aRectIter++) 1013 { 1014 pWindow->DrawRect(*aRectIter); 1015 } 1016 1017 //RegionHandle aRegionHandle(aOptimizedRepaintRegion.BeginEnumRects()); 1018 //Rectangle aRegionRectangle; 1019 // 1020 //while(aOptimizedRepaintRegion.GetEnumRects(aRegionHandle, aRegionRectangle)) 1021 //{ 1022 // pWindow->SetLineColor(COL_LIGHTGREEN); 1023 // pWindow->SetFillColor(); 1024 // pWindow->DrawRect(aRegionRectangle); 1025 //} 1026 // 1027 //aOptimizedRepaintRegion.EndEnumRects(aRegionHandle); |
1004 } 1005#endif 1006 } 1007 } 1008 } 1009 1010 // prepare redraw 1011 pKnownTarget->PrepareRedraw(aOptimizedRepaintRegion); --- 522 unchanged lines hidden --- | 1028 } 1029#endif 1030 } 1031 } 1032 } 1033 1034 // prepare redraw 1035 pKnownTarget->PrepareRedraw(aOptimizedRepaintRegion); --- 522 unchanged lines hidden --- |