diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-06-26 11:08:07 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-06-26 11:08:07 +0000 |
commit | 9f4b2b8233e12e59b7b9eb944be8ff608cae46cb (patch) | |
tree | bafdb122e9d987d318880e7e20b6846d6522a188 /svx/source/svdraw/sdrpagewindow.cxx | |
parent | cafa6dd34f297aadf9b3f24a6e26b79bd5467bbd (diff) |
INTEGRATION: CWS aw046 (1.5.2); FILE MERGED
2007/05/21 10:32:26 fs 1.5.2.3: #i74769# GetControlContainer: use original PaintWindow if applicable
2007/04/23 22:00:40 aw 1.5.2.2: RESYNC: (1.5-1.6); FILE MERGED
2007/04/03 10:02:30 aw 1.5.2.1: #i74769# removed ExpandPaintClipRegion
Diffstat (limited to 'svx/source/svdraw/sdrpagewindow.cxx')
-rw-r--r-- | svx/source/svdraw/sdrpagewindow.cxx | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/svx/source/svdraw/sdrpagewindow.cxx b/svx/source/svdraw/sdrpagewindow.cxx index 08b4ac81588d..f39a1c19460f 100644 --- a/svx/source/svdraw/sdrpagewindow.cxx +++ b/svx/source/svdraw/sdrpagewindow.cxx @@ -4,9 +4,9 @@ * * $RCSfile: sdrpagewindow.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: vg $ $Date: 2007-02-26 15:59:12 $ + * last change: $Author: hr $ $Date: 2007-06-26 12:08:07 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -115,10 +115,11 @@ using namespace ::com::sun::star; { SdrView& rView = GetPageView().GetView(); - if(GetPaintWindow().OutputToWindow() && !rView.IsPrintPreview()) + const SdrPaintWindow& rPaintWindow( GetOriginalPaintWindow() ? *GetOriginalPaintWindow() : GetPaintWindow() ); + if ( rPaintWindow.OutputToWindow() && !rView.IsPrintPreview() ) { - Window* pWindow = (Window*)(&GetPaintWindow().GetOutputDevice()); - const_cast< SdrPageWindow* >( this )->mxControlContainer = VCLUnoHelper::CreateControlContainer( pWindow ); + Window& rWindow = dynamic_cast< Window& >( rPaintWindow.GetOutputDevice() ); + const_cast< SdrPageWindow* >( this )->mxControlContainer = VCLUnoHelper::CreateControlContainer( &rWindow ); // #100394# xC->setVisible triggers window->Show() and this has // problems when the view is not completely constructed which may @@ -165,7 +166,7 @@ using namespace ::com::sun::star; if (xControl.is()) xControl->setModel(xModel); - OutputDevice& rOutDev = GetPaintWindow().GetOutputDevice(); + OutputDevice& rOutDev = rPaintWindow.GetOutputDevice(); Point aPosPix = rOutDev.GetMapMode().GetOrigin(); Size aSizePix = rOutDev.GetOutputSizePixel(); @@ -334,9 +335,6 @@ void SdrPageWindow::PrepareRedraw(const Region& rReg) // no PagePainting for preparations aDisplayInfo.SetPagePainting(rView.IsPagePaintingAllowed()); // #i72889# - // keep draw hierarchy up-to-date and expand ClipRegion - GetObjectContact().PreProcessDisplay(aDisplayInfo); - // remember eventually changed RedrawArea at PaintWindow for usage with // overlay and PreRenderDevice stuff GetPaintWindow().SetRedrawRegion(aDisplayInfo.GetRedrawArea()); @@ -590,15 +588,6 @@ void SdrPageWindow::RedrawLayer( // Writer or calc, coming from original RedrawOneLayer. aDisplayInfo.SetPagePainting(sal_False); // #i72889# no page painting for layer painting - // check for valid draw hierarchy - if(!GetObjectContact().IsDrawHierarchyValid()) - { - // Normally, PreProcessDisplay is called from BeginDrawLayer() for layer painting. Instead of finding - // all places where SC and SW use RedrawLayer() and embrace the calls with BeginDrawLayer()/EndDrawLayer(), - // i will do what happened before (and worked): build the draw hierarchy. - GetObjectContact().PreProcessDisplay(aDisplayInfo); - } - // paint page GetObjectContact().ProcessDisplay(aDisplayInfo); |