1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef _CANVAS_IMPLPOLYPOLYGON_HXX
30 #define _CANVAS_IMPLPOLYPOLYGON_HXX
32 #include <com/sun/star/uno/Reference.hxx>
33 #include <com/sun/star/rendering/XPolyPolygon2D.hpp>
34 #include <com/sun/star/rendering/XGraphicDevice.hpp>
35 #include <com/sun/star/rendering/StrokeAttributes.hpp>
37 #include <cppcanvas/polypolygon.hxx>
38 #include <canvasgraphichelper.hxx>
40 namespace com
{ namespace sun
{ namespace star
{ namespace rendering
51 class ImplPolyPolygon
: public virtual ::cppcanvas::PolyPolygon
, protected CanvasGraphicHelper
54 ImplPolyPolygon( const CanvasSharedPtr
& rParentCanvas
,
55 const ::com::sun::star::uno::Reference
<
56 ::com::sun::star::rendering::XPolyPolygon2D
>& rPolyPoly
);
58 virtual ~ImplPolyPolygon();
60 virtual void addPolygon( const ::basegfx::B2DPolygon
& rPoly
);
61 virtual void addPolyPolygon( const ::basegfx::B2DPolyPolygon
& rPoly
);
63 virtual void setRGBAFillColor( Color::IntSRGBA
);
64 virtual void setRGBALineColor( Color::IntSRGBA
);
65 virtual Color::IntSRGBA
getRGBAFillColor() const;
66 virtual Color::IntSRGBA
getRGBALineColor() const;
68 virtual void setStrokeWidth( const double& rStrokeWidth
);
69 virtual double getStrokeWidth() const;
71 virtual bool draw() const;
73 virtual ::com::sun::star::uno::Reference
<
74 ::com::sun::star::rendering::XPolyPolygon2D
> getUNOPolyPolygon() const;
77 // default: disabled copy/assignment
78 ImplPolyPolygon(const ImplPolyPolygon
&);
79 ImplPolyPolygon
& operator= ( const ImplPolyPolygon
& );
81 const ::com::sun::star::uno::Reference
< ::com::sun::star::rendering::XPolyPolygon2D
> mxPolyPoly
;
83 ::com::sun::star::rendering::StrokeAttributes maStrokeAttributes
;
85 ::com::sun::star::uno::Sequence
< double > maFillColor
;
86 ::com::sun::star::uno::Sequence
< double > maStrokeColor
;
88 bool mbStrokeColorSet
;
94 #endif /* _CANVAS_IMPLPOLYPOLYGON_HXX */
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */