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