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>
25 #include <svx/svxdllapi.h>
34 namespace drawinglayer
{ namespace attribute
{
35 class SdrFillAttribute
;
36 class SdrLineAttribute
;
37 class FillGradientAttribute
;
38 class SdrShadowAttribute
;
39 class SdrLineStartEndAttribute
;
40 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
,
74 Primitive2DSequence SVX_DLLPUBLIC
createEmbeddedShadowPrimitive(
75 const Primitive2DSequence
& rContent
,
76 const attribute::SdrShadowAttribute
& rShadow
);
78 } // end of namespace primitive2d
79 } // end of namespace drawinglayer
83 #endif // INCLUDED_SVX_SDR_PRIMITIVE2D_SDRDECOMPOSITIONTOOLS_HXX
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */