summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-07-17 13:17:58 +0000
committerOliver Bolte <obo@openoffice.org>2007-07-17 13:17:58 +0000
commit4b8a3891d7ad50ec351281cb33fc3717bb615a4b (patch)
treeccb9d91d2c1eeefbafffb1d1627e0fbdf4d336dc /canvas
parent6af78ca0a81febb80d326c89235064ff9868a27d (diff)
INTEGRATION: CWS presfixes12 (1.3.18); FILE MERGED
2007/02/20 22:23:06 thb 1.3.18.2: #i37778# Added XCanvas::clear() method throughout all implementations 2007/02/14 13:21:01 thb 1.3.18.1: #i37778# Added XCanvas::clear() to all canvas implentations
Diffstat (limited to 'canvas')
-rw-r--r--canvas/inc/canvas/base/canvasbase.hxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/canvas/inc/canvas/base/canvasbase.hxx b/canvas/inc/canvas/base/canvasbase.hxx
index 2c8cd3c58fb3..e611ada41a0c 100644
--- a/canvas/inc/canvas/base/canvasbase.hxx
+++ b/canvas/inc/canvas/base/canvasbase.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: canvasbase.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: kz $ $Date: 2006-12-13 14:36:03 $
+ * last change: $Author: obo $ $Date: 2007-07-17 14:17:58 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -153,6 +153,16 @@ namespace canvas
}
// XCanvas
+ virtual void SAL_CALL clear() throw (::com::sun::star::uno::RuntimeException)
+ {
+ MutexType aGuard( BaseType::m_aMutex );
+
+ mbSurfaceDirty = true;
+ maCanvasHelper.modifying();
+
+ maCanvasHelper.clear();
+ }
+
virtual void SAL_CALL drawPoint( const ::com::sun::star::geometry::RealPoint2D& aPoint,
const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException,
@@ -478,7 +488,6 @@ namespace canvas
return maCanvasHelper.getDevice();
}
-
protected:
~CanvasBase() {} // we're a ref-counted UNO class. _We_ destroy ourselves.