summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/virdev.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-11-26 19:43:19 +0000
committerRüdiger Timm <rt@openoffice.org>2004-11-26 19:43:19 +0000
commit1d5543507003e08afb7c2076f316e5c1f7773fb9 (patch)
tree1ca722e3174c4bb42025c3769c6b0d06def7aa1a /vcl/source/gdi/virdev.cxx
parentecd2b80a72c29274092a97835cd15a40b880c938 (diff)
INTEGRATION: CWS presentationengine01 (1.15.2); FILE MERGED
2004/10/12 23:46:23 thb 1.15.2.2: RESYNC: (1.15-1.17); FILE MERGED 2004/08/16 18:25:30 aw 1.15.2.1: #110496#
Diffstat (limited to 'vcl/source/gdi/virdev.cxx')
-rw-r--r--vcl/source/gdi/virdev.cxx19
1 files changed, 15 insertions, 4 deletions
diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx
index 538cbc66b2ba..dd5c6fd52643 100644
--- a/vcl/source/gdi/virdev.cxx
+++ b/vcl/source/gdi/virdev.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: virdev.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: hr $ $Date: 2004-09-08 15:36:47 $
+ * last change: $Author: rt $ $Date: 2004-11-26 20:43:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -103,7 +103,7 @@ using namespace ::com::sun::star::uno;
// =======================================================================
void VirtualDevice::ImplInitVirDev( const OutputDevice* pOutDev,
- long nDX, long nDY, USHORT nBitCount )
+ long nDX, long nDY, USHORT nBitCount, const SystemGraphicsData *pData )
{
DBG_ASSERT( nBitCount <= 1,
"VirtualDevice::VirtualDevice(): Only 0 or 1 is for BitCount allowed" );
@@ -124,7 +124,7 @@ void VirtualDevice::ImplInitVirDev( const OutputDevice* pOutDev,
((OutputDevice*)pOutDev)->ImplGetGraphics();
pGraphics = pOutDev->mpGraphics;
if ( pGraphics )
- mpVirDev = pSVData->mpDefInst->CreateVirtualDevice( pGraphics, nDX, nDY, nBitCount );
+ mpVirDev = pSVData->mpDefInst->CreateVirtualDevice( pGraphics, nDX, nDY, nBitCount, pData );
else
mpVirDev = NULL;
if ( !mpVirDev )
@@ -210,6 +210,17 @@ VirtualDevice::VirtualDevice( const OutputDevice& rCompDev, USHORT nBitCount, US
// -----------------------------------------------------------------------
+VirtualDevice::VirtualDevice( const SystemGraphicsData *pData, USHORT nBitCount )
+: mpVirDev( NULL ),
+ meRefDevMode( REFDEV_NONE )
+{
+ DBG_TRACE1( "VirtualDevice::VirtualDevice( %hu )", nBitCount );
+
+ ImplInitVirDev( Application::GetDefaultDevice(), 1, 1, nBitCount, pData );
+}
+
+// -----------------------------------------------------------------------
+
VirtualDevice::~VirtualDevice()
{
DBG_TRACE( "VirtualDevice::~VirtualDevice()" );