From f41b1457116dc05936b08146aa720889775c0681 Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Fri, 25 Apr 2014 02:43:06 +1000 Subject: VCL: remove comment, rename ImplInitClipRegion to InitClipRegion Change-Id: If8d18b59285f75d61d9972ca019390fce700be3c --- vcl/source/outdev/clipping.cxx | 46 ++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 24 deletions(-) (limited to 'vcl/source/outdev/clipping.cxx') diff --git a/vcl/source/outdev/clipping.cxx b/vcl/source/outdev/clipping.cxx index cc976b06b22c..a1e3526fd4b6 100644 --- a/vcl/source/outdev/clipping.cxx +++ b/vcl/source/outdev/clipping.cxx @@ -31,30 +31,7 @@ #include -void OutputDevice::ClipToPaintRegion(Rectangle& /*rDstRect*/) -{ -} - -bool OutputDevice::ImplSelectClipRegion( const Region& rRegion, SalGraphics* pGraphics ) -{ - DBG_TESTSOLARMUTEX(); - - if( !pGraphics ) - { - if( !mpGraphics ) - if( !AcquireGraphics() ) - return false; - pGraphics = mpGraphics; - } - - bool bClipRegion = pGraphics->SetClipRegion( rRegion, this ); - OSL_ENSURE( bClipRegion, "OutputDevice::ImplSelectClipRegion() - can't create region" ); - return bClipRegion; -} - -// TODO: fdo#74424 - this needs to be moved out of OutputDevice and into the -// Window, VirtualDevice and Printer classes -void OutputDevice::ImplInitClipRegion() +void OutputDevice::InitClipRegion() { DBG_TESTSOLARMUTEX(); @@ -108,6 +85,27 @@ void OutputDevice::ImplInitClipRegion() mbInitClipRegion = false; } +void OutputDevice::ClipToPaintRegion(Rectangle& /*rDstRect*/) +{ +} + +bool OutputDevice::ImplSelectClipRegion( const Region& rRegion, SalGraphics* pGraphics ) +{ + DBG_TESTSOLARMUTEX(); + + if( !pGraphics ) + { + if( !mpGraphics ) + if( !AcquireGraphics() ) + return false; + pGraphics = mpGraphics; + } + + bool bClipRegion = pGraphics->SetClipRegion( rRegion, this ); + OSL_ENSURE( bClipRegion, "OutputDevice::ImplSelectClipRegion() - can't create region" ); + return bClipRegion; +} + void OutputDevice::ImplSetClipRegion( const Region* pRegion ) { DBG_TESTSOLARMUTEX(); -- cgit