xref: /AOO41X/main/drawinglayer/inc/drawinglayer/attribute/sdrallattribute3d.hxx (revision 4f506f19cd544df9572ed8c88b6bdbc6c8f33210)
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 #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRALLATTRIBUTE3D_HXX
25 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRALLATTRIBUTE3D_HXX
26 
27 #include <drawinglayer/drawinglayerdllapi.h>
28 #include <drawinglayer/attribute/sdrlineattribute.hxx>
29 #include <drawinglayer/attribute/sdrfillattribute.hxx>
30 #include <drawinglayer/attribute/sdrlinestartendattribute.hxx>
31 #include <drawinglayer/attribute/sdrshadowattribute.hxx>
32 #include <drawinglayer/attribute/fillgradientattribute.hxx>
33 
34 //////////////////////////////////////////////////////////////////////////////
35 // predefines
36 
37 //////////////////////////////////////////////////////////////////////////////
38 
39 namespace drawinglayer
40 {
41     namespace attribute
42     {
43         class DRAWINGLAYER_DLLPUBLIC SdrLineFillShadowAttribute3D
44         {
45         private:
46             const SdrLineAttribute          maLine;
47             const SdrFillAttribute          maFill;
48             const SdrLineStartEndAttribute  maLineStartEnd;
49             const SdrShadowAttribute        maShadow;
50             const FillGradientAttribute     maFillFloatTransGradient;
51 
52         public:
53             /// constructors/assignmentoperator/destructor
54             SdrLineFillShadowAttribute3D(
55                 const SdrLineAttribute& rLine,
56                 const SdrFillAttribute& rFill,
57                 const SdrLineStartEndAttribute& rLineStartEnd,
58                 const SdrShadowAttribute& rShadow,
59                 const FillGradientAttribute& rFillFloatTransGradient);
60             SdrLineFillShadowAttribute3D();
61 
62             // checks if the incarnation is default constructed
63             bool isDefault() const;
64 
65             // compare operator
66             bool operator==(const SdrLineFillShadowAttribute3D& rCandidate) const;
67 
68             // data read access
getLine() const69             const SdrLineAttribute& getLine() const { return maLine; }
getFill() const70             const SdrFillAttribute& getFill() const { return maFill; }
getLineStartEnd() const71             const SdrLineStartEndAttribute& getLineStartEnd() const { return maLineStartEnd; }
getShadow() const72             const SdrShadowAttribute& getShadow() const { return maShadow; }
getFillFloatTransGradient() const73             const FillGradientAttribute& getFillFloatTransGradient() const { return maFillFloatTransGradient; }
74         };
75     } // end of namespace overlay
76 } // end of namespace drawinglayer
77 
78 //////////////////////////////////////////////////////////////////////////////
79 
80 #endif // INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRALLATTRIBUTE3D_HXX
81 
82 // eof
83