diff options
author | Oliver Bolte <obo@openoffice.org> | 2007-07-17 14:23:11 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2007-07-17 14:23:11 +0000 |
commit | cf6a48e7c6d82a6b8242b28f4fd82a0d44d973ef (patch) | |
tree | 6f269410a6d91bf720baea0b106c7ae2c428c889 | |
parent | 203ba87eabc94c334121734787bc5aac5982965c (diff) |
INTEGRATION: CWS presfixes12 (1.8.50); FILE MERGED
2007/03/08 21:37:18 thb 1.8.50.2: #i37778# Added extra setClip() method to be able to set no clip - setting a clip with zero polygons by definition clips everything
2007/02/20 22:29:26 thb 1.8.50.1: #i37778# Added XCanvas::clear() to all relevant interfaces
-rw-r--r-- | cppcanvas/inc/cppcanvas/canvas.hxx | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/cppcanvas/inc/cppcanvas/canvas.hxx b/cppcanvas/inc/cppcanvas/canvas.hxx index bb48bbb1ac24..7d1040bc3416 100644 --- a/cppcanvas/inc/cppcanvas/canvas.hxx +++ b/cppcanvas/inc/cppcanvas/canvas.hxx @@ -4,9 +4,9 @@ * * $RCSfile: canvas.hxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: kz $ $Date: 2005-11-02 13:38:25 $ + * last change: $Author: obo $ $Date: 2007-07-17 15:23:11 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -102,17 +102,24 @@ namespace cppcanvas virtual ~Canvas() {} - virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix ) = 0; - virtual ::basegfx::B2DHomMatrix getTransformation() const = 0; + virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix ) = 0; + virtual ::basegfx::B2DHomMatrix getTransformation() const = 0; - virtual void setClip( const ::basegfx::B2DPolyPolygon& rClipPoly ) = 0; - virtual ::basegfx::B2DPolyPolygon getClip() const = 0; + virtual void setClip( const ::basegfx::B2DPolyPolygon& rClipPoly ) = 0; + virtual void setClip() = 0; - virtual FontSharedPtr createFont( const ::rtl::OUString& rFontName, const double& rCellSize ) const = 0; + /** Get current clip - virtual ColorSharedPtr createColor() const = 0; + @return NULL, if no clip is set, otherwise the current clip poly-polygon + */ + virtual ::basegfx::B2DPolyPolygon const* getClip() const = 0; - virtual CanvasSharedPtr clone() const = 0; + virtual FontSharedPtr createFont( const ::rtl::OUString& rFontName, const double& rCellSize ) const = 0; + + virtual ColorSharedPtr createColor() const = 0; + + virtual CanvasSharedPtr clone() const = 0; + virtual void clear() const = 0; // this should be considered private. if RTTI gets enabled // someday, remove that to a separate interface |