1*464702f4SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*464702f4SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*464702f4SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*464702f4SAndrew Rist  * distributed with this work for additional information
6*464702f4SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*464702f4SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*464702f4SAndrew Rist  * "License"); you may not use this file except in compliance
9*464702f4SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*464702f4SAndrew Rist  *
11*464702f4SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*464702f4SAndrew Rist  *
13*464702f4SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*464702f4SAndrew Rist  * software distributed under the License is distributed on an
15*464702f4SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*464702f4SAndrew Rist  * KIND, either express or implied.  See the License for the
17*464702f4SAndrew Rist  * specific language governing permissions and limitations
18*464702f4SAndrew Rist  * under the License.
19*464702f4SAndrew Rist  *
20*464702f4SAndrew Rist  *************************************************************/
21*464702f4SAndrew Rist 
22*464702f4SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_drawinglayer.hxx"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <drawinglayer/attribute/sdrallattribute3d.hxx>
28cdf0e10cSrcweir 
29cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
30cdf0e10cSrcweir 
31cdf0e10cSrcweir namespace drawinglayer
32cdf0e10cSrcweir {
33cdf0e10cSrcweir 	namespace attribute
34cdf0e10cSrcweir 	{
SdrLineFillShadowAttribute3D(const SdrLineAttribute & rLine,const SdrFillAttribute & rFill,const SdrLineStartEndAttribute & rLineStartEnd,const SdrShadowAttribute & rShadow,const FillGradientAttribute & rFillFloatTransGradient)35cdf0e10cSrcweir         SdrLineFillShadowAttribute3D::SdrLineFillShadowAttribute3D(
36cdf0e10cSrcweir 			const SdrLineAttribute& rLine,
37cdf0e10cSrcweir 			const SdrFillAttribute& rFill,
38cdf0e10cSrcweir 			const SdrLineStartEndAttribute& rLineStartEnd,
39cdf0e10cSrcweir 			const SdrShadowAttribute& rShadow,
40cdf0e10cSrcweir 			const FillGradientAttribute& rFillFloatTransGradient)
41cdf0e10cSrcweir 		:	maLine(rLine),
42cdf0e10cSrcweir 			maFill(rFill),
43cdf0e10cSrcweir 			maLineStartEnd(rLineStartEnd),
44cdf0e10cSrcweir 			maShadow(rShadow),
45cdf0e10cSrcweir 			maFillFloatTransGradient(rFillFloatTransGradient)
46cdf0e10cSrcweir 		{
47cdf0e10cSrcweir 		}
48cdf0e10cSrcweir 
SdrLineFillShadowAttribute3D()49cdf0e10cSrcweir 		SdrLineFillShadowAttribute3D::SdrLineFillShadowAttribute3D()
50cdf0e10cSrcweir 		:	maLine(),
51cdf0e10cSrcweir 			maFill(),
52cdf0e10cSrcweir 			maLineStartEnd(),
53cdf0e10cSrcweir 			maShadow(),
54cdf0e10cSrcweir 			maFillFloatTransGradient()
55cdf0e10cSrcweir 		{
56cdf0e10cSrcweir 		}
57cdf0e10cSrcweir 
isDefault() const58cdf0e10cSrcweir         bool SdrLineFillShadowAttribute3D::isDefault() const
59cdf0e10cSrcweir 		{
60cdf0e10cSrcweir 			return(getLine().isDefault()
61cdf0e10cSrcweir 				&& getFill().isDefault()
62cdf0e10cSrcweir 				&& getLineStartEnd().isDefault()
63cdf0e10cSrcweir 				&& getShadow().isDefault()
64cdf0e10cSrcweir 				&& getFillFloatTransGradient().isDefault());
65cdf0e10cSrcweir 		}
66cdf0e10cSrcweir 
operator ==(const SdrLineFillShadowAttribute3D & rCandidate) const67cdf0e10cSrcweir 		bool SdrLineFillShadowAttribute3D::operator==(const SdrLineFillShadowAttribute3D& rCandidate) const
68cdf0e10cSrcweir 		{
69cdf0e10cSrcweir             return(getLine() == rCandidate.getLine()
70cdf0e10cSrcweir                 && getFill() == rCandidate.getFill()
71cdf0e10cSrcweir                 && getLineStartEnd() == rCandidate.getLineStartEnd()
72cdf0e10cSrcweir                 && getShadow() == rCandidate.getShadow()
73cdf0e10cSrcweir                 && getFillFloatTransGradient() == rCandidate.getFillFloatTransGradient());
74cdf0e10cSrcweir 		}
75cdf0e10cSrcweir     } // end of namespace overlay
76cdf0e10cSrcweir } // end of namespace drawinglayer
77cdf0e10cSrcweir 
78cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
79cdf0e10cSrcweir // eof
80