Bump version to 5.0-14
[LibreOffice.git] / cppcanvas / source / wrapper / implpolypolygon.hxx
blob16cd744a0e8df8bcb27425f23aaf573cee407307
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_CPPCANVAS_SOURCE_WRAPPER_IMPLPOLYPOLYGON_HXX
21 #define INCLUDED_CPPCANVAS_SOURCE_WRAPPER_IMPLPOLYPOLYGON_HXX
23 #include <com/sun/star/uno/Reference.hxx>
24 #include <com/sun/star/rendering/XPolyPolygon2D.hpp>
25 #include <com/sun/star/rendering/XGraphicDevice.hpp>
26 #include <com/sun/star/rendering/StrokeAttributes.hpp>
28 #include <cppcanvas/polypolygon.hxx>
29 #include <canvasgraphichelper.hxx>
31 namespace com { namespace sun { namespace star { namespace rendering
33 struct RealPoint2D;
34 } } } }
37 namespace cppcanvas
39 namespace internal
42 class ImplPolyPolygon : public virtual ::cppcanvas::PolyPolygon, protected CanvasGraphicHelper
44 public:
45 ImplPolyPolygon( const CanvasSharedPtr& rParentCanvas,
46 const ::com::sun::star::uno::Reference<
47 ::com::sun::star::rendering::XPolyPolygon2D >& rPolyPoly );
49 virtual ~ImplPolyPolygon();
51 virtual void addPolygon( const ::basegfx::B2DPolygon& rPoly ) SAL_OVERRIDE;
52 virtual void addPolyPolygon( const ::basegfx::B2DPolyPolygon& rPoly ) SAL_OVERRIDE;
54 virtual void setRGBAFillColor( Color::IntSRGBA ) SAL_OVERRIDE;
55 virtual void setRGBALineColor( Color::IntSRGBA ) SAL_OVERRIDE;
56 virtual Color::IntSRGBA getRGBAFillColor() const SAL_OVERRIDE;
57 virtual Color::IntSRGBA getRGBALineColor() const SAL_OVERRIDE;
59 virtual void setStrokeWidth( const double& rStrokeWidth ) SAL_OVERRIDE;
60 virtual double getStrokeWidth() const SAL_OVERRIDE;
62 virtual bool draw() const SAL_OVERRIDE;
64 virtual ::com::sun::star::uno::Reference<
65 ::com::sun::star::rendering::XPolyPolygon2D > getUNOPolyPolygon() const SAL_OVERRIDE;
67 private:
68 ImplPolyPolygon(const ImplPolyPolygon&) SAL_DELETED_FUNCTION;
69 ImplPolyPolygon& operator= ( const ImplPolyPolygon& ) SAL_DELETED_FUNCTION;
71 const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D > mxPolyPoly;
73 ::com::sun::star::rendering::StrokeAttributes maStrokeAttributes;
75 ::com::sun::star::uno::Sequence< double > maFillColor;
76 ::com::sun::star::uno::Sequence< double > maStrokeColor;
77 bool mbFillColorSet;
78 bool mbStrokeColorSet;
84 #endif // INCLUDED_CPPCANVAS_SOURCE_WRAPPER_IMPLPOLYPOLYGON_HXX
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */