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_SDROLE2PRIMITIVE2D_HXX
25 #define INCLUDED_SDR_PRIMITIVE2D_SDROLE2PRIMITIVE2D_HXX
26 
27 #include <drawinglayer/primitive2d/baseprimitive2d.hxx>
28 #include <basegfx/matrix/b2dhommatrix.hxx>
29 #include <svx/sdr/attribute/sdrlinefillshadowtextattribute.hxx>
30 
31 //////////////////////////////////////////////////////////////////////////////
32 // predefines
33 
34 //////////////////////////////////////////////////////////////////////////////
35 
36 namespace drawinglayer
37 {
38 	namespace primitive2d
39 	{
40 		class SdrOle2Primitive2D : public BasePrimitive2D
41 		{
42 		private:
43             Primitive2DSequence                         maOLEContent;
44 			basegfx::B2DHomMatrix						maTransform;
45 			attribute::SdrLineFillShadowTextAttribute	maSdrLFSTAttribute;
46 
47         public:
48 			SdrOle2Primitive2D(
49 				const Primitive2DSequence& rOLEContent,
50 				const basegfx::B2DHomMatrix& rTransform,
51 				const attribute::SdrLineFillShadowTextAttribute& rSdrLFSTAttribute);
52 
53 			// data access
getOLEContent() const54             const Primitive2DSequence& getOLEContent() const { return maOLEContent; }
getTransform() const55 			const basegfx::B2DHomMatrix& getTransform() const { return maTransform; }
getSdrLFSTAttribute() const56 			const attribute::SdrLineFillShadowTextAttribute& getSdrLFSTAttribute() const { return maSdrLFSTAttribute; }
57 
58 			// compare operator
59 			virtual bool operator==(const BasePrimitive2D& rPrimitive) const;
60 
61 			// local decomposition.
62 			virtual Primitive2DSequence get2DDecomposition(const geometry::ViewInformation2D& aViewInformation) const;
63 
64 			// provide unique ID
65 			DeclPrimitrive2DIDBlock()
66 		};
67 	} // end of namespace primitive2d
68 } // end of namespace drawinglayer
69 
70 //////////////////////////////////////////////////////////////////////////////
71 
72 #endif //INCLUDED_SDR_PRIMITIVE2D_SDROLE2PRIMITIVE2D_HXX
73 
74 // eof
75