summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-06-13 07:50:20 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-06-13 07:50:20 +0000
commit65281813745f645ac93b7e04a079613cc8ff9b2f (patch)
treea4c63cc2586cee2a5e1e501e844d94ae5f00d64f
parentc816ada717b90a086648a12da002610f3c607b3a (diff)
INTEGRATION: CWS aquabmpfix02 (1.27.2); FILE MERGED
2008/06/02 08:44:39 hdu 1.27.2.1: #i89828# add and use OutputDevice::ImplGetDeviceTransformation() method
-rw-r--r--vcl/source/gdi/outmap.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/vcl/source/gdi/outmap.cxx b/vcl/source/gdi/outmap.cxx
index db5c75186aca..8d68823837af 100644
--- a/vcl/source/gdi/outmap.cxx
+++ b/vcl/source/gdi/outmap.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: outmap.cxx,v $
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
*
* This file is part of OpenOffice.org.
*
@@ -1101,6 +1101,17 @@ basegfx::B2DHomMatrix OutputDevice::GetInverseViewTransformation() const
// -----------------------------------------------------------------------
+basegfx::B2DHomMatrix OutputDevice::ImplGetDeviceTransformation() const
+{
+ basegfx::B2DHomMatrix aTransformation = GetViewTransformation();
+ // TODO: is it worth to cache the transformed result?
+ if( mnOutOffX || mnOutOffY )
+ aTransformation.translate( mnOutOffX, mnOutOffY );
+ return aTransformation;
+}
+
+// -----------------------------------------------------------------------
+
Point OutputDevice::LogicToPixel( const Point& rLogicPt ) const
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );