diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-07-12 13:51:52 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-07-12 13:51:52 +0000 |
commit | bfa378d727b6c7e494e30241e64867a7d1c1cefd (patch) | |
tree | 1dd4805f77dbe7bd0b4846eb0ed8fa5a1153226f /svx/source/unodraw/UnoGraphicExporter.cxx | |
parent | fa5bdf06fb22fa16546e9e453af1bc8f28287113 (diff) |
INTEGRATION: CWS aw013 (1.16.108); FILE MERGED
2004/06/29 11:33:07 aw 1.16.108.3: RESYNC: (1.16-1.17); FILE MERGED
2004/06/15 16:08:04 aw 1.16.108.2: #117095#
2004/06/11 16:11:32 aw 1.16.108.1: #114389#, #114394#
Diffstat (limited to 'svx/source/unodraw/UnoGraphicExporter.cxx')
-rw-r--r-- | svx/source/unodraw/UnoGraphicExporter.cxx | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx index e4181532a320..aefc6e0565d2 100644 --- a/svx/source/unodraw/UnoGraphicExporter.cxx +++ b/svx/source/unodraw/UnoGraphicExporter.cxx @@ -2,9 +2,9 @@ * * $RCSfile: UnoGraphicExporter.cxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: obo $ $Date: 2004-06-03 11:48:52 $ + * last change: $Author: rt $ $Date: 2004-07-12 14:51:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -243,8 +243,6 @@ namespace svx virtual sal_Bool SAL_CALL supportsMimeType( const ::rtl::OUString& MimeTypeName ) throw (RuntimeException); virtual Sequence< OUString > SAL_CALL getSupportedMimeTypeNames( ) throw (RuntimeException); - DECL_LINK(PaintProc, SdrPaintProcRec*); - VirtualDevice* CreatePageVDev( SdrPage* pPage, ULONG nWidthPixel, ULONG nHeightPixel ) const; DECL_LINK( CalcFieldValueHdl, EditFieldInfo* ); @@ -408,17 +406,6 @@ IMPL_LINK(GraphicExporter, CalcFieldValueHdl, EditFieldInfo*, pInfo) return maOldCalcFieldValueHdl.Call( pInfo ); } -IMPL_LINK( GraphicExporter, PaintProc, SdrPaintProcRec *, pRecord ) -{ - SdrObject* pObj = pRecord->pObj; - if( pObj->GetPage() && pObj->GetPage()->checkVisibility( pRecord, false ) ) - { - pObj->SingleObjectPainter( pRecord->rOut, pRecord->rInfoRec ); // #110094#-17 - } - - return 0; -} - /** creates an virtual device for the given page @return the returned VirtualDevice is owned by the caller @@ -466,12 +453,14 @@ VirtualDevice* GraphicExporter::CreatePageVDev( SdrPage* pPage, ULONG nWidthPixe SdrPageView* pPageView = pView->GetPageView(pPage); Region aRegion (Rectangle( aPoint, aPageSize ) ); - const Link aPaintProcLink( LINK(this, GraphicExporter, PaintProc ) ); + + // Use new StandardCheckVisisbilityRedirector + StandardCheckVisisbilityRedirector aRedirector; for (USHORT i=0; i<pView->GetPageViewCount(); i++) { SdrPageView* pPV=pView->GetPageViewPvNum(i); - pPV->InitRedraw(pVDev,aRegion,0,&aPaintProcLink ); + pPV->CompleteRedraw(pVDev, aRegion, 0, &aRedirector); } delete pView; @@ -724,14 +713,14 @@ sal_Bool SAL_CALL GraphicExporter::filter( const Sequence< PropertyValue >& aDes aVMap.SetOrigin( Point( -aNewOrg.X(), -aNewOrg.Y() ) ); aVDev.SetRelativeMapMode( aVMap ); aVDev.IntersectClipRegion( aClipRect ); - const Link aPaintProcLink( LINK(this, GraphicExporter, PaintProc ) ); -// pView->InitRedraw( &aVDev, Region( Rectangle( Point(), aNewSize ), 0, &aPaintProcLink ) ); + // Use new StandardCheckVisisbilityRedirector + StandardCheckVisisbilityRedirector aRedirector; for (USHORT i=0; i<pView->GetPageViewCount(); i++) { SdrPageView* pPV=pView->GetPageViewPvNum(i); - pPV->InitRedraw(&aVDev,Region( Rectangle( Point(), aNewSize ) ),0,&aPaintProcLink ); + pPV->CompleteRedraw(&aVDev, Region(Rectangle(Point(), aNewSize)), 0, &aRedirector); } aVDev.Pop(); |