xref: /AOO41X/main/drawinglayer/source/attribute/sdrallattribute3d.cxx (revision 464702f4578bd67db020a330afd07883930c5e07)
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 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_drawinglayer.hxx"
26 
27 #include <drawinglayer/attribute/sdrallattribute3d.hxx>
28 
29 //////////////////////////////////////////////////////////////////////////////
30 
31 namespace drawinglayer
32 {
33     namespace attribute
34     {
SdrLineFillShadowAttribute3D(const SdrLineAttribute & rLine,const SdrFillAttribute & rFill,const SdrLineStartEndAttribute & rLineStartEnd,const SdrShadowAttribute & rShadow,const FillGradientAttribute & rFillFloatTransGradient)35         SdrLineFillShadowAttribute3D::SdrLineFillShadowAttribute3D(
36             const SdrLineAttribute& rLine,
37             const SdrFillAttribute& rFill,
38             const SdrLineStartEndAttribute& rLineStartEnd,
39             const SdrShadowAttribute& rShadow,
40             const FillGradientAttribute& rFillFloatTransGradient)
41         :   maLine(rLine),
42             maFill(rFill),
43             maLineStartEnd(rLineStartEnd),
44             maShadow(rShadow),
45             maFillFloatTransGradient(rFillFloatTransGradient)
46         {
47         }
48 
SdrLineFillShadowAttribute3D()49         SdrLineFillShadowAttribute3D::SdrLineFillShadowAttribute3D()
50         :   maLine(),
51             maFill(),
52             maLineStartEnd(),
53             maShadow(),
54             maFillFloatTransGradient()
55         {
56         }
57 
isDefault() const58         bool SdrLineFillShadowAttribute3D::isDefault() const
59         {
60             return(getLine().isDefault()
61                 && getFill().isDefault()
62                 && getLineStartEnd().isDefault()
63                 && getShadow().isDefault()
64                 && getFillFloatTransGradient().isDefault());
65         }
66 
operator ==(const SdrLineFillShadowAttribute3D & rCandidate) const67         bool SdrLineFillShadowAttribute3D::operator==(const SdrLineFillShadowAttribute3D& rCandidate) const
68         {
69             return(getLine() == rCandidate.getLine()
70                 && getFill() == rCandidate.getFill()
71                 && getLineStartEnd() == rCandidate.getLineStartEnd()
72                 && getShadow() == rCandidate.getShadow()
73                 && getFillFloatTransGradient() == rCandidate.getFillFloatTransGradient());
74         }
75     } // end of namespace overlay
76 } // end of namespace drawinglayer
77 
78 //////////////////////////////////////////////////////////////////////////////
79 // eof
80