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 #include "precompiled_svx.hxx" 25 26 #include <svx/sdr/attribute/sdrlinefillshadowtextattribute.hxx> 27 28 ////////////////////////////////////////////////////////////////////////////// 29 30 namespace drawinglayer 31 { 32 namespace attribute 33 { SdrLineFillShadowTextAttribute(const SdrLineAttribute & rLine,const SdrFillAttribute & rFill,const SdrLineStartEndAttribute & rLineStartEnd,const SdrShadowAttribute & rShadow,const FillGradientAttribute & rFillFloatTransGradient,const SdrTextAttribute & rTextAttribute)34 SdrLineFillShadowTextAttribute::SdrLineFillShadowTextAttribute( 35 const SdrLineAttribute& rLine, 36 const SdrFillAttribute& rFill, 37 const SdrLineStartEndAttribute& rLineStartEnd, 38 const SdrShadowAttribute& rShadow, 39 const FillGradientAttribute& rFillFloatTransGradient, 40 const SdrTextAttribute& rTextAttribute) 41 : SdrLineShadowTextAttribute(rLine, rLineStartEnd, rShadow, rTextAttribute), 42 maFill(rFill), 43 maFillFloatTransGradient(rFillFloatTransGradient) 44 { 45 } 46 SdrLineFillShadowTextAttribute()47 SdrLineFillShadowTextAttribute::SdrLineFillShadowTextAttribute() 48 : SdrLineShadowTextAttribute(), 49 maFill(), 50 maFillFloatTransGradient() 51 { 52 } 53 SdrLineFillShadowTextAttribute(const SdrLineFillShadowTextAttribute & rCandidate)54 SdrLineFillShadowTextAttribute::SdrLineFillShadowTextAttribute(const SdrLineFillShadowTextAttribute& rCandidate) 55 : SdrLineShadowTextAttribute(rCandidate), 56 maFill(rCandidate.getFill()), 57 maFillFloatTransGradient(rCandidate.getFillFloatTransGradient()) 58 { 59 } 60 operator =(const SdrLineFillShadowTextAttribute & rCandidate)61 SdrLineFillShadowTextAttribute& SdrLineFillShadowTextAttribute::operator=(const SdrLineFillShadowTextAttribute& rCandidate) 62 { 63 SdrLineShadowTextAttribute::operator=(rCandidate); 64 maFill = rCandidate.getFill(); 65 maFillFloatTransGradient = rCandidate.getFillFloatTransGradient(); 66 67 return *this; 68 } 69 isDefault() const70 bool SdrLineFillShadowTextAttribute::isDefault() const 71 { 72 return (SdrLineShadowTextAttribute::isDefault() 73 && getFill().isDefault() 74 && getFillFloatTransGradient().isDefault()); 75 } 76 operator ==(const SdrLineFillShadowTextAttribute & rCandidate) const77 bool SdrLineFillShadowTextAttribute::operator==(const SdrLineFillShadowTextAttribute& rCandidate) const 78 { 79 return(SdrLineShadowTextAttribute::operator==(rCandidate) 80 && getFill() == rCandidate.getFill() 81 && getFillFloatTransGradient() == rCandidate.getFillFloatTransGradient()); 82 } 83 } // end of namespace attribute 84 } // end of namespace drawinglayer 85 86 ////////////////////////////////////////////////////////////////////////////// 87 // eof 88