summaryrefslogtreecommitdiff
path: root/cppcanvas/source/wrapper
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-07-17 14:26:57 +0000
committerOliver Bolte <obo@openoffice.org>2007-07-17 14:26:57 +0000
commit3e7cc5d8f1e21af1a1053d7e01735a74fe26deb5 (patch)
tree7d6796a36c6af8be98a3efa89d7c9b31919240f7 /cppcanvas/source/wrapper
parent482df81a67fc3936d6984396dfd6ce43eb9b16ed (diff)
INTEGRATION: CWS presfixes12 (1.7.50); FILE MERGED
2007/03/08 21:37:08 thb 1.7.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:30 thb 1.7.50.1: #i37778# Added XCanvas::clear() to all relevant interfaces
Diffstat (limited to 'cppcanvas/source/wrapper')
-rw-r--r--cppcanvas/source/wrapper/implcanvas.hxx35
1 files changed, 15 insertions, 20 deletions
diff --git a/cppcanvas/source/wrapper/implcanvas.hxx b/cppcanvas/source/wrapper/implcanvas.hxx
index a6054361d282..aff3307d0a29 100644
--- a/cppcanvas/source/wrapper/implcanvas.hxx
+++ b/cppcanvas/source/wrapper/implcanvas.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: implcanvas.hxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: kz $ $Date: 2005-11-02 13:43:26 $
+ * last change: $Author: obo $ $Date: 2007-07-17 15:26:57 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -36,20 +36,12 @@
#ifndef _CPPCANVAS_IMPLCANVAS_HXX
#define _CPPCANVAS_IMPLCANVAS_HXX
-#ifndef _COM_SUN_STAR_UNO_REFERENCE_HXX_
#include <com/sun/star/uno/Reference.hxx>
-#endif
-
-#ifndef _COM_SUN_STAR_RENDERING_VIEWSTATE_HPP__
#include <com/sun/star/rendering/ViewState.hpp>
-#endif
-
-#ifndef BOOST_SHARED_PTR_HPP_INCLUDED
-#include <boost/shared_ptr.hpp>
-#endif
-
#include <cppcanvas/canvas.hxx>
+#include <boost/optional.hpp>
+
namespace rtl
{
class OUString;
@@ -82,17 +74,20 @@ namespace cppcanvas
::com::sun::star::rendering::XCanvas >& rCanvas );
virtual ~ImplCanvas();
- virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix );
- virtual ::basegfx::B2DHomMatrix getTransformation() const;
+ virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix );
+ virtual ::basegfx::B2DHomMatrix getTransformation() const;
+
+ virtual void setClip( const ::basegfx::B2DPolyPolygon& rClipPoly );
+ virtual void setClip();
+ virtual ::basegfx::B2DPolyPolygon const* getClip() const;
- virtual void setClip( const ::basegfx::B2DPolyPolygon& rClipPoly );
- virtual ::basegfx::B2DPolyPolygon getClip() const;
+ virtual FontSharedPtr createFont( const ::rtl::OUString& rFontName, const double& rCellSize ) const;
- virtual FontSharedPtr createFont( const ::rtl::OUString& rFontName, const double& rCellSize ) const;
+ virtual ColorSharedPtr createColor() const;
- virtual ColorSharedPtr createColor() const;
+ virtual CanvasSharedPtr clone() const;
- virtual CanvasSharedPtr clone() const;
+ virtual void clear() const;
virtual ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XCanvas > getUNOCanvas() const;
@@ -107,7 +102,7 @@ namespace cppcanvas
ImplCanvas& operator=( const ImplCanvas& );
mutable ::com::sun::star::rendering::ViewState maViewState;
- ::basegfx::B2DPolyPolygon maClipPolyPolygon;
+ boost::optional<basegfx::B2DPolyPolygon> maClipPolyPolygon;
const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > mxCanvas;
};