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 #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLINESTARTENDATTRIBUTE_HXX 23 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLINESTARTENDATTRIBUTE_HXX 24 25 #include <drawinglayer/drawinglayerdllapi.h> 26 ////////////////////////////////////////////////////////////////////////////// 27 // predefines 28 29 namespace basegfx { 30 class B2DPolyPolygon; 31 } 32 33 namespace drawinglayer { namespace attribute { 34 class ImpSdrLineStartEndAttribute; 35 }} 36 37 ////////////////////////////////////////////////////////////////////////////// 38 39 namespace drawinglayer 40 { 41 namespace attribute 42 { 43 class DRAWINGLAYER_DLLPUBLIC SdrLineStartEndAttribute 44 { 45 private: 46 ImpSdrLineStartEndAttribute* mpSdrLineStartEndAttribute; 47 48 public: 49 /// constructors/assignmentoperator/destructor 50 SdrLineStartEndAttribute( 51 const basegfx::B2DPolyPolygon& rStartPolyPolygon, 52 const basegfx::B2DPolyPolygon& rEndPolyPolygon, 53 double fStartWidth, 54 double fEndWidth, 55 bool bStartActive, 56 bool bEndActive, 57 bool bStartCentered, 58 bool bEndCentered); 59 SdrLineStartEndAttribute(); 60 SdrLineStartEndAttribute(const SdrLineStartEndAttribute& rCandidate); 61 SdrLineStartEndAttribute& operator=(const SdrLineStartEndAttribute& rCandidate); 62 ~SdrLineStartEndAttribute(); 63 64 // checks if the incarnation is default constructed 65 bool isDefault() const; 66 67 // compare operator 68 bool operator==(const SdrLineStartEndAttribute& rCandidate) const; 69 70 // data read access 71 const basegfx::B2DPolyPolygon& getStartPolyPolygon() const; 72 const basegfx::B2DPolyPolygon& getEndPolyPolygon() const; 73 double getStartWidth() const; 74 double getEndWidth() const; 75 bool isStartActive() const; 76 bool isEndActive() const; 77 bool isStartCentered() const; 78 bool isEndCentered() const; 79 }; 80 } // end of namespace attribute 81 } // end of namespace drawinglayer 82 83 ////////////////////////////////////////////////////////////////////////////// 84 85 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLINESTARTENDATTRIBUTE_HXX 86 87 // eof 88