xref: /trunk/main/drawinglayer/inc/drawinglayer/attribute/sdrshadowattribute.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
1*4bfbcde8SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*4bfbcde8SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*4bfbcde8SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*4bfbcde8SAndrew Rist  * distributed with this work for additional information
6*4bfbcde8SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*4bfbcde8SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*4bfbcde8SAndrew Rist  * "License"); you may not use this file except in compliance
9*4bfbcde8SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*4bfbcde8SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*4bfbcde8SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*4bfbcde8SAndrew Rist  * software distributed under the License is distributed on an
15*4bfbcde8SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*4bfbcde8SAndrew Rist  * KIND, either express or implied.  See the License for the
17*4bfbcde8SAndrew Rist  * specific language governing permissions and limitations
18*4bfbcde8SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*4bfbcde8SAndrew Rist  *************************************************************/
21cdf0e10cSrcweir 
22cdf0e10cSrcweir #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRSHADOWATTRIBUTE_HXX
23cdf0e10cSrcweir #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRSHADOWATTRIBUTE_HXX
24cdf0e10cSrcweir 
25090f0eb8SEike Rathke #include <drawinglayer/drawinglayerdllapi.h>
26cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
27cdf0e10cSrcweir // predefines
28cdf0e10cSrcweir 
29cdf0e10cSrcweir namespace basegfx {
30cdf0e10cSrcweir     class BColor;
31cdf0e10cSrcweir     class B2DVector;
32cdf0e10cSrcweir }
33cdf0e10cSrcweir 
34cdf0e10cSrcweir namespace drawinglayer { namespace attribute {
35cdf0e10cSrcweir     class ImpSdrShadowAttribute;
36cdf0e10cSrcweir }}
37cdf0e10cSrcweir 
38cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
39cdf0e10cSrcweir 
40cdf0e10cSrcweir namespace drawinglayer
41cdf0e10cSrcweir {
42cdf0e10cSrcweir     namespace attribute
43cdf0e10cSrcweir     {
44090f0eb8SEike Rathke         class DRAWINGLAYER_DLLPUBLIC SdrShadowAttribute
45cdf0e10cSrcweir         {
46cdf0e10cSrcweir         private:
47cdf0e10cSrcweir             ImpSdrShadowAttribute*              mpSdrShadowAttribute;
48cdf0e10cSrcweir 
49cdf0e10cSrcweir         public:
50cdf0e10cSrcweir             /// constructors/assignmentoperator/destructor
51cdf0e10cSrcweir             SdrShadowAttribute(
52cdf0e10cSrcweir                 const basegfx::B2DVector& rOffset,
53cdf0e10cSrcweir                 double fTransparence,
54cdf0e10cSrcweir                 const basegfx::BColor& rColor);
55cdf0e10cSrcweir             SdrShadowAttribute();
56cdf0e10cSrcweir             SdrShadowAttribute(const SdrShadowAttribute& rCandidate);
57cdf0e10cSrcweir             SdrShadowAttribute& operator=(const SdrShadowAttribute& rCandidate);
58cdf0e10cSrcweir             ~SdrShadowAttribute();
59cdf0e10cSrcweir 
60cdf0e10cSrcweir             // checks if the incarnation is default constructed
61cdf0e10cSrcweir             bool isDefault() const;
62cdf0e10cSrcweir 
63cdf0e10cSrcweir             // compare operator
64cdf0e10cSrcweir             bool operator==(const SdrShadowAttribute& rCandidate) const;
65cdf0e10cSrcweir 
66cdf0e10cSrcweir             // data access
67cdf0e10cSrcweir             const basegfx::B2DVector& getOffset() const;
68cdf0e10cSrcweir             double getTransparence() const;
69cdf0e10cSrcweir             const basegfx::BColor& getColor() const;
70cdf0e10cSrcweir         };
71cdf0e10cSrcweir     } // end of namespace attribute
72cdf0e10cSrcweir } // end of namespace drawinglayer
73cdf0e10cSrcweir 
74cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
75cdf0e10cSrcweir 
76cdf0e10cSrcweir #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRSHADOWATTRIBUTE_HXX
77cdf0e10cSrcweir 
78cdf0e10cSrcweir // eof
79