diff options
author | Malte Timmermann <mt@openoffice.org> | 2001-07-27 08:31:30 +0000 |
---|---|---|
committer | Malte Timmermann <mt@openoffice.org> | 2001-07-27 08:31:30 +0000 |
commit | fa61358ebeee3c6607c08bbd503013205239988e (patch) | |
tree | 8fd0b3db29dec1df23209e01af29b29fd89f06a7 /toolkit/source/awt/vclxdevice.cxx | |
parent | 311a89380902e97998b697153902a5b67888e75a (diff) |
#88347# bCreatedWithToolkit...
Diffstat (limited to 'toolkit/source/awt/vclxdevice.cxx')
-rw-r--r-- | toolkit/source/awt/vclxdevice.cxx | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/toolkit/source/awt/vclxdevice.cxx b/toolkit/source/awt/vclxdevice.cxx index deef35ba7b4e..9212ebdbac0c 100644 --- a/toolkit/source/awt/vclxdevice.cxx +++ b/toolkit/source/awt/vclxdevice.cxx @@ -2,9 +2,9 @@ * * $RCSfile: vclxdevice.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: mt $ $Date: 2001-05-15 12:34:01 $ + * last change: $Author: mt $ $Date: 2001-07-27 09:29:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -87,18 +87,17 @@ VCLXDevice::VCLXDevice() : mrMutex( Application::GetSolarMutex() ) { mpOutputDevice = NULL; -#ifdef DEBUG - nDummy = 0x12345678; - pDummy = (void*)0x12345678; -#endif + nFlags = 0; } VCLXDevice::~VCLXDevice() { -#ifdef DEBUG - nDummy = 0xbaadbaad; - pDummy = (void*)0xbaadbaad; -#endif +// Was thought for #88347#, but didn't help, because the interface will not be released +// But would be a good idea anyway, check after 6.0, it's a little bit dangerous now +// if( mpOutputDevice && IsCreatedWithToolkit() ) +// { +// delete mpOutputDevice; +// } } void VCLXDevice::DestroyOutputDevice() @@ -107,6 +106,19 @@ void VCLXDevice::DestroyOutputDevice() mpOutputDevice = NULL; } +void VCLXDevice::SetCreatedWithToolkit( sal_Bool bCreatedWithToolkit ) +{ + if ( bCreatedWithToolkit ) + nFlags |= FLAGS_CREATEDWITHTOOLKIT; + else + nFlags &= ~FLAGS_CREATEDWITHTOOLKIT; +} + +sal_Bool VCLXDevice::IsCreatedWithToolkit() const +{ + return ( nFlags & FLAGS_CREATEDWITHTOOLKIT ) != 0; +} + // ::com::sun::star::uno::XInterface ::com::sun::star::uno::Any VCLXDevice::queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { |