xref: /AOO41X/main/svx/source/sdr/attribute/sdrlineshadowtextattribute.cxx (revision f6e50924346d0b8c0b07c91832a97665dd718b0c)
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/sdrlineshadowtextattribute.hxx>
27 
28 //////////////////////////////////////////////////////////////////////////////
29 
30 namespace drawinglayer
31 {
32     namespace attribute
33     {
SdrLineShadowTextAttribute(const SdrLineAttribute & rLine,const SdrLineStartEndAttribute & rLineStartEnd,const SdrShadowAttribute & rShadow,const SdrTextAttribute & rTextAttribute)34         SdrLineShadowTextAttribute::SdrLineShadowTextAttribute(
35             const SdrLineAttribute& rLine,
36             const SdrLineStartEndAttribute& rLineStartEnd,
37             const SdrShadowAttribute& rShadow,
38             const SdrTextAttribute& rTextAttribute)
39         :   SdrShadowTextAttribute(rShadow, rTextAttribute),
40             maLine(rLine),
41             maLineStartEnd(rLineStartEnd)
42         {
43         }
44 
SdrLineShadowTextAttribute()45         SdrLineShadowTextAttribute::SdrLineShadowTextAttribute()
46         :   SdrShadowTextAttribute(),
47             maLine(),
48             maLineStartEnd()
49         {
50         }
51 
SdrLineShadowTextAttribute(const SdrLineShadowTextAttribute & rCandidate)52         SdrLineShadowTextAttribute::SdrLineShadowTextAttribute(const SdrLineShadowTextAttribute& rCandidate)
53         :   SdrShadowTextAttribute(rCandidate),
54             maLine(rCandidate.getLine()),
55             maLineStartEnd(rCandidate.getLineStartEnd())
56         {
57         }
58 
operator =(const SdrLineShadowTextAttribute & rCandidate)59         SdrLineShadowTextAttribute& SdrLineShadowTextAttribute::operator=(const SdrLineShadowTextAttribute& rCandidate)
60         {
61             SdrShadowTextAttribute::operator=(rCandidate);
62             maLine = rCandidate.getLine();
63             maLineStartEnd = rCandidate.getLineStartEnd();
64 
65             return *this;
66         }
67 
isDefault() const68         bool SdrLineShadowTextAttribute::isDefault() const
69         {
70             return(SdrShadowTextAttribute::isDefault()
71                 && getLine().isDefault()
72                 && getLineStartEnd().isDefault());
73         }
74 
operator ==(const SdrLineShadowTextAttribute & rCandidate) const75         bool SdrLineShadowTextAttribute::operator==(const SdrLineShadowTextAttribute& rCandidate) const
76         {
77             return(SdrShadowTextAttribute::operator==(rCandidate)
78                 && getLine() == rCandidate.getLine()
79                 && getLineStartEnd() == rCandidate.getLineStartEnd());
80         }
81     } // end of namespace attribute
82 } // end of namespace drawinglayer
83 
84 //////////////////////////////////////////////////////////////////////////////
85 // eof
86