1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_SVX_SDR_PRIMITIVE2D_SDRDECOMPOSITIONTOOLS_HXX
21 #define INCLUDED_SVX_SDR_PRIMITIVE2D_SDRDECOMPOSITIONTOOLS_HXX
23 #include <drawinglayer/primitive2d/baseprimitive2d.hxx>
24 #include <basegfx/matrix/b2dhommatrix.hxx>
26 #include <svx/svxdllapi.h>
35 namespace drawinglayer
{ namespace attribute
{
36 class SdrFillAttribute
;
37 class SdrLineAttribute
;
38 class FillGradientAttribute
;
39 class SdrShadowAttribute
;
40 class SdrLineStartEndAttribute
;
41 class SdrTextAttribute
;
45 namespace drawinglayer
49 Primitive2DReference SVX_DLLPUBLIC
createPolyPolygonFillPrimitive(
50 const basegfx::B2DPolyPolygon
& rPolyPolygon
,
51 const attribute::SdrFillAttribute
& rFill
,
52 const attribute::FillGradientAttribute
& rFillGradient
);
54 Primitive2DReference SVX_DLLPUBLIC
createPolyPolygonFillPrimitive(
55 const basegfx::B2DPolyPolygon
& rPolyPolygon
,
56 const basegfx::B2DRange
& rDefinitionRange
,
57 const attribute::SdrFillAttribute
& rFill
,
58 const attribute::FillGradientAttribute
& rFillGradient
);
60 Primitive2DReference SVX_DLLPUBLIC
createPolygonLinePrimitive(
61 const basegfx::B2DPolygon
& rPolygon
,
62 const attribute::SdrLineAttribute
& rLine
,
63 const attribute::SdrLineStartEndAttribute
& rStroke
);
65 Primitive2DReference SVX_DLLPUBLIC
createTextPrimitive(
66 const basegfx::B2DPolyPolygon
& rUnitPolyPolygon
,
67 const basegfx::B2DHomMatrix
& rObjectTransform
,
68 const attribute::SdrTextAttribute
& rText
,
69 const attribute::SdrLineAttribute
& rStroke
,
73 Primitive2DContainer SVX_DLLPUBLIC
createEmbeddedShadowPrimitive(
74 const Primitive2DContainer
& rContent
,
75 const attribute::SdrShadowAttribute
& rShadow
,
76 const basegfx::B2DHomMatrix
& rObjectMatrix
= basegfx::B2DHomMatrix());
78 } // end of namespace primitive2d
79 } // end of namespace drawinglayer
82 #endif // INCLUDED_SVX_SDR_PRIMITIVE2D_SDRDECOMPOSITIONTOOLS_HXX
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */