Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / cppcanvas / source / mtfrenderer / polypolyaction.hxx
blob394dea2771529db16036e3870bbcebe4c5f90073
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_MTFRENDERER_POLYPOLYACTION_HXX
21 #define INCLUDED_CPPCANVAS_SOURCE_MTFRENDERER_POLYPOLYACTION_HXX
23 #include <action.hxx>
24 #include <cppcanvas/canvas.hxx>
27 namespace basegfx {
28 class B2DPolyPolygon;
30 namespace com { namespace sun { namespace star { namespace rendering
32 struct Texture;
33 struct StrokeAttributes;
34 } } } }
37 /* Definition of internal::PolyPolyActionFactory */
39 namespace cppcanvas
41 namespace internal
43 struct OutDevState;
45 /** Creates encapsulated converters between GDIMetaFile and
46 XCanvas. The Canvas argument is deliberately placed at the
47 constructor, to force reconstruction of this object for a
48 new canvas. This considerably eases internal state
49 handling, since a lot of the internal state (e.g. fonts,
50 text layout) is Canvas-dependent.
52 namespace PolyPolyActionFactory
54 /// Create polygon, fill/stroke according to state
55 ActionSharedPtr createPolyPolyAction( const ::basegfx::B2DPolyPolygon&,
56 const CanvasSharedPtr&,
57 const OutDevState& );
59 /// Create texture-filled polygon
60 ActionSharedPtr createPolyPolyAction( const ::basegfx::B2DPolyPolygon&,
61 const CanvasSharedPtr&,
62 const OutDevState&,
63 const css::rendering::Texture& );
65 /// Create line polygon (always stroked, not filled)
66 ActionSharedPtr createLinePolyPolyAction( const ::basegfx::B2DPolyPolygon&,
67 const CanvasSharedPtr&,
68 const OutDevState& );
70 /// Create stroked polygon
71 ActionSharedPtr createPolyPolyAction( const ::basegfx::B2DPolyPolygon&,
72 const CanvasSharedPtr&,
73 const OutDevState&,
74 const css::rendering::StrokeAttributes& );
76 /// For transparent painting of the given polygon (normally, we take the colors always opaque)
77 ActionSharedPtr createPolyPolyAction( const ::basegfx::B2DPolyPolygon&,
78 const CanvasSharedPtr&,
79 const OutDevState&,
80 int nTransparency );
85 #endif // INCLUDED_CPPCANVAS_SOURCE_MTFRENDERER_POLYPOLYACTION_HXX
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */