summaryrefslogtreecommitdiff
path: root/svx/source/unoedit/unoviwou.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/unoedit/unoviwou.cxx')
-rw-r--r--svx/source/unoedit/unoviwou.cxx27
1 files changed, 19 insertions, 8 deletions
diff --git a/svx/source/unoedit/unoviwou.cxx b/svx/source/unoedit/unoviwou.cxx
index 6860440de8c0..d008fb3467cf 100644
--- a/svx/source/unoedit/unoviwou.cxx
+++ b/svx/source/unoedit/unoviwou.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unoviwou.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: thb $ $Date: 2002-05-27 16:43:06 $
+ * last change: $Author: thb $ $Date: 2002-05-29 15:49:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -99,8 +99,12 @@ Rectangle SvxDrawOutlinerViewForwarder::GetVisArea() const
if( pOutliner )
{
- aVisArea = pOutDev->LogicToLogic( aVisArea, pOutliner->GetRefMapMode(), pOutDev->GetMapMode() );
- return pOutDev->LogicToPixel( aVisArea );
+ MapMode aMapMode(pOutDev->GetMapMode());
+ aVisArea = OutputDevice::LogicToLogic( aVisArea,
+ pOutliner->GetRefMapMode(),
+ aMapMode.GetMapUnit() );
+ aMapMode.SetOrigin(Point());
+ return pOutDev->LogicToPixel( aVisArea, aMapMode );
}
}
@@ -113,8 +117,11 @@ Point SvxDrawOutlinerViewForwarder::LogicToPixel( const Point& rPoint, const Map
if( pOutDev )
{
- Point aPoint( pOutDev->LogicToLogic( rPoint, rMapMode, pOutDev->GetMapMode() ) );
- return pOutDev->LogicToPixel( aPoint );
+ MapMode aMapMode(pOutDev->GetMapMode());
+ Point aPoint( OutputDevice::LogicToLogic( rPoint, rMapMode,
+ aMapMode.GetMapUnit() ) );
+ aMapMode.SetOrigin(Point());
+ return pOutDev->LogicToPixel( aPoint, aMapMode );
}
return Point();
@@ -126,8 +133,12 @@ Point SvxDrawOutlinerViewForwarder::PixelToLogic( const Point& rPoint, const Map
if( pOutDev )
{
- Point aPoint( pOutDev->PixelToLogic( rPoint ) );
- return pOutDev->LogicToLogic( aPoint, pOutDev->GetMapMode(), rMapMode );
+ MapMode aMapMode(pOutDev->GetMapMode());
+ aMapMode.SetOrigin(Point());
+ Point aPoint( pOutDev->PixelToLogic( rPoint, aMapMode ) );
+ return OutputDevice::LogicToLogic( aPoint,
+ aMapMode.GetMapUnit(),
+ rMapMode );
}
return Point();