summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/clipping.cxx
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2014-04-25 02:43:06 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2014-04-25 03:18:08 +1000
commitf41b1457116dc05936b08146aa720889775c0681 (patch)
tree96f70bc2918f0042a24c846876715e8dea9c187b /vcl/source/outdev/clipping.cxx
parent99459623e0a48c079dcd7336e9f5b8cb59d73b89 (diff)
VCL: remove comment, rename ImplInitClipRegion to InitClipRegion
Change-Id: If8d18b59285f75d61d9972ca019390fce700be3c
Diffstat (limited to 'vcl/source/outdev/clipping.cxx')
-rw-r--r--vcl/source/outdev/clipping.cxx46
1 files changed, 22 insertions, 24 deletions
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 <numeric>
-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();