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 #include <svx/svxdllapi.h> 30 31 ////////////////////////////////////////////////////////////////////////////// 32 // predefines 33 namespace basegfx { 34 class B2DPolygon; 35 class B2DPolyPolygon; 36 class B2DHomMatrix; 37 } 38 39 namespace drawinglayer { namespace attribute { 40 class SdrFillAttribute; 41 class SdrLineAttribute; 42 class FillGradientAttribute; 43 class SdrShadowAttribute; 44 class SdrLineStartEndAttribute; 45 class SdrTextAttribute; 46 }} 47 48 ////////////////////////////////////////////////////////////////////////////// 49 50 namespace drawinglayer 51 { 52 namespace primitive2d 53 { 54 Primitive2DReference SVX_DLLPUBLIC createPolyPolygonFillPrimitive( 55 const basegfx::B2DPolyPolygon& rPolyPolygon, 56 const attribute::SdrFillAttribute& rFill, 57 const attribute::FillGradientAttribute& rFillGradient); 58 59 Primitive2DReference SVX_DLLPUBLIC createPolyPolygonFillPrimitive( 60 const basegfx::B2DPolyPolygon& rPolyPolygon, 61 const basegfx::B2DRange& rDefinitionRange, 62 const attribute::SdrFillAttribute& rFill, 63 const attribute::FillGradientAttribute& rFillGradient); 64 65 Primitive2DReference SVX_DLLPUBLIC createPolygonLinePrimitive( 66 const basegfx::B2DPolygon& rPolygon, 67 const attribute::SdrLineAttribute& rLine, 68 const attribute::SdrLineStartEndAttribute& rStroke); 69 70 Primitive2DReference SVX_DLLPUBLIC createTextPrimitive( 71 const basegfx::B2DPolyPolygon& rUnitPolyPolygon, 72 const basegfx::B2DHomMatrix& rObjectTransform, 73 const attribute::SdrTextAttribute& rText, 74 const attribute::SdrLineAttribute& rStroke, 75 bool bCellText, 76 bool bWordWrap, 77 bool bClipOnBounds); 78 79 Primitive2DSequence SVX_DLLPUBLIC createEmbeddedShadowPrimitive( 80 const Primitive2DSequence& rContent, 81 const attribute::SdrShadowAttribute& rShadow); 82 83 } // end of namespace primitive2d 84 } // end of namespace drawinglayer 85 86 ////////////////////////////////////////////////////////////////////////////// 87 88 #endif //INCLUDED_SDR_PRIMITIVE2D_SDRDECOMPOSITIONTOOLS_HXX 89 90 // eof 91