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
This commit is contained in:
Oliver Bolte
2007-07-17 14:23:11 +00:00
parent 203ba87eab
commit cf6a48e7c6

View File

@@ -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