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_SDRPATHPRIMITIVE2D_HXX 25 #define INCLUDED_SDR_PRIMITIVE2D_SDRPATHPRIMITIVE2D_HXX 26 27 #include <drawinglayer/primitive2d/baseprimitive2d.hxx> 28 #include <basegfx/matrix/b2dhommatrix.hxx> 29 #include <svx/sdr/attribute/sdrlinefillshadowtextattribute.hxx> 30 #include <basegfx/polygon/b2dpolypolygon.hxx> 31 32 ////////////////////////////////////////////////////////////////////////////// 33 // predefines 34 35 ////////////////////////////////////////////////////////////////////////////// 36 37 namespace drawinglayer 38 { 39 namespace primitive2d 40 { 41 class SdrPathPrimitive2D : public BufferedDecompositionPrimitive2D 42 { 43 private: 44 basegfx::B2DHomMatrix maTransform; 45 attribute::SdrLineFillShadowTextAttribute maSdrLFSTAttribute; 46 basegfx::B2DPolyPolygon maUnitPolyPolygon; 47 48 protected: 49 // local decomposition. 50 virtual Primitive2DSequence create2DDecomposition(const geometry::ViewInformation2D& aViewInformation) const; 51 52 public: 53 SdrPathPrimitive2D( 54 const basegfx::B2DHomMatrix& rTransform, 55 const attribute::SdrLineFillShadowTextAttribute& rSdrLFSTAttribute, 56 const basegfx::B2DPolyPolygon& rUnitPolyPolygon); 57 58 // data access getTransform() const59 const basegfx::B2DHomMatrix& getTransform() const { return maTransform; } getSdrLFSTAttribute() const60 const attribute::SdrLineFillShadowTextAttribute& getSdrLFSTAttribute() const { return maSdrLFSTAttribute; } getUnitPolyPolygon() const61 const basegfx::B2DPolyPolygon& getUnitPolyPolygon() const { return maUnitPolyPolygon; } 62 63 // compare operator 64 virtual bool operator==(const BasePrimitive2D& rPrimitive) const; 65 66 // provide unique ID 67 DeclPrimitrive2DIDBlock() 68 }; 69 } // end of namespace primitive2d 70 } // end of namespace drawinglayer 71 72 ////////////////////////////////////////////////////////////////////////////// 73 74 #endif //INCLUDED_SDR_PRIMITIVE2D_SDRPATHPRIMITIVE2D_HXX 75 76 // eof 77