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/sdrshadowtextattribute.hxx>
27 
28 //////////////////////////////////////////////////////////////////////////////
29 
30 namespace drawinglayer
31 {
32 	namespace attribute
33 	{
SdrShadowTextAttribute(const SdrShadowAttribute & rShadow,const SdrTextAttribute & rTextAttribute)34 		SdrShadowTextAttribute::SdrShadowTextAttribute(
35             const SdrShadowAttribute& rShadow,
36             const SdrTextAttribute& rTextAttribute)
37 		:	maShadow(rShadow),
38 			maTextAttribute(rTextAttribute)
39 		{
40 		}
41 
SdrShadowTextAttribute()42 		SdrShadowTextAttribute::SdrShadowTextAttribute()
43 		:	maShadow(),
44 			maTextAttribute()
45 		{
46 		}
47 
SdrShadowTextAttribute(const SdrShadowTextAttribute & rCandidate)48 		SdrShadowTextAttribute::SdrShadowTextAttribute(const SdrShadowTextAttribute& rCandidate)
49 		:	maShadow(rCandidate.getShadow()),
50 			maTextAttribute(rCandidate.getText())
51 		{
52 		}
53 
operator =(const SdrShadowTextAttribute & rCandidate)54 		SdrShadowTextAttribute& SdrShadowTextAttribute::operator=(const SdrShadowTextAttribute& rCandidate)
55 		{
56 			maShadow = rCandidate.getShadow();
57 			maTextAttribute = rCandidate.getText();
58 
59 			return *this;
60 		}
61 
isDefault() const62 		bool SdrShadowTextAttribute::isDefault() const
63 		{
64 			return (getShadow().isDefault()
65 				&& getText().isDefault());
66 		}
67 
operator ==(const SdrShadowTextAttribute & rCandidate) const68 		bool SdrShadowTextAttribute::operator==(const SdrShadowTextAttribute& rCandidate) const
69 		{
70 			return (getShadow() == rCandidate.getShadow()
71 				&& getText() == rCandidate.getText());
72 		}
73 	} // end of namespace attribute
74 } // end of namespace drawinglayer
75 
76 //////////////////////////////////////////////////////////////////////////////
77 // eof
78