1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef INCLUDED_SDR_PRIMITIVE2D_SDRDECOMPOSITIONTOOLS_HXX
25 #define INCLUDED_SDR_PRIMITIVE2D_SDRDECOMPOSITIONTOOLS_HXX
26 
27 #include <drawinglayer/primitive2d/baseprimitive2d.hxx>
28 
29 //////////////////////////////////////////////////////////////////////////////
30 // predefines
31 namespace basegfx {
32 	class B2DPolygon;
33 	class B2DPolyPolygon;
34 	class B2DHomMatrix;
35 }
36 
37 namespace drawinglayer { namespace attribute {
38 	class SdrFillAttribute;
39 	class SdrLineAttribute;
40 	class FillGradientAttribute;
41 	class SdrShadowAttribute;
42 	class SdrLineStartEndAttribute;
43 	class SdrTextAttribute;
44 }}
45 
46 //////////////////////////////////////////////////////////////////////////////
47 
48 namespace drawinglayer
49 {
50 	namespace primitive2d
51 	{
52 		Primitive2DReference createPolyPolygonFillPrimitive(
53 			const basegfx::B2DPolyPolygon& rUnitPolyPolygon,
54 			const basegfx::B2DHomMatrix& rObjectTransform,
55 			const attribute::SdrFillAttribute& rFill,
56 			const attribute::FillGradientAttribute& rFillGradient);
57 
58 		Primitive2DReference createPolygonLinePrimitive(
59 			const basegfx::B2DPolygon& rUnitPolygon,
60 			const basegfx::B2DHomMatrix& rObjectTransform,
61 			const attribute::SdrLineAttribute& rLine,
62 			const attribute::SdrLineStartEndAttribute& rStroke);
63 
64 		Primitive2DReference createTextPrimitive(
65 			const basegfx::B2DPolyPolygon& rUnitPolyPolygon,
66 			const basegfx::B2DHomMatrix& rObjectTransform,
67 			const attribute::SdrTextAttribute& rText,
68 			const attribute::SdrLineAttribute& rStroke,
69 			bool bCellText,
70             bool bWordWrap,
71 			bool bClipOnBounds);
72 
73         Primitive2DSequence createEmbeddedShadowPrimitive(
74             const Primitive2DSequence& rContent,
75             const attribute::SdrShadowAttribute& rShadow);
76 
77     } // end of namespace primitive2d
78 } // end of namespace drawinglayer
79 
80 //////////////////////////////////////////////////////////////////////////////
81 
82 #endif //INCLUDED_SDR_PRIMITIVE2D_SDRDECOMPOSITIONTOOLS_HXX
83 
84 // eof
85