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 #ifndef CHART_SCENEPROPERTIES_HXX
24 #define CHART_SCENEPROPERTIES_HXX
25 
26 #include "PropertyHelper.hxx"
27 #include "FastPropertyIdRanges.hxx"
28 #include "charttoolsdllapi.hxx"
29 #include <com/sun/star/beans/Property.hpp>
30 
31 #include <vector>
32 
33 namespace chart
34 {
35 
36 // implements service SceneProperties
37 class OOO_DLLPUBLIC_CHARTTOOLS SceneProperties
38 {
39 public:
40     // FastProperty Ids for properties
41     enum
42     {
43         // "com.sun.star.drawing.SceneProperties" (does not exist)
44         PROP_SCENE_TRANSF_MATRIX = FAST_PROPERTY_ID_START_SCENE_PROP,
45         PROP_SCENE_DISTANCE,
46         PROP_SCENE_FOCAL_LENGTH,
47         PROP_SCENE_SHADOW_SLANT,
48         PROP_SCENE_SHADE_MODE,
49         PROP_SCENE_AMBIENT_COLOR,
50         PROP_SCENE_TWO_SIDED_LIGHTING,
51         PROP_SCENE_CAMERA_GEOMETRY,
52         PROP_SCENE_PERSPECTIVE,
53         PROP_SCENE_LIGHT_COLOR_1,
54         PROP_SCENE_LIGHT_DIRECTION_1,
55         PROP_SCENE_LIGHT_ON_1,
56         PROP_SCENE_LIGHT_COLOR_2,
57         PROP_SCENE_LIGHT_DIRECTION_2,
58         PROP_SCENE_LIGHT_ON_2,
59         PROP_SCENE_LIGHT_COLOR_3,
60         PROP_SCENE_LIGHT_DIRECTION_3,
61         PROP_SCENE_LIGHT_ON_3,
62         PROP_SCENE_LIGHT_COLOR_4,
63         PROP_SCENE_LIGHT_DIRECTION_4,
64         PROP_SCENE_LIGHT_ON_4,
65         PROP_SCENE_LIGHT_COLOR_5,
66         PROP_SCENE_LIGHT_DIRECTION_5,
67         PROP_SCENE_LIGHT_ON_5,
68         PROP_SCENE_LIGHT_COLOR_6,
69         PROP_SCENE_LIGHT_DIRECTION_6,
70         PROP_SCENE_LIGHT_ON_6,
71         PROP_SCENE_LIGHT_COLOR_7,
72         PROP_SCENE_LIGHT_DIRECTION_7,
73         PROP_SCENE_LIGHT_ON_7,
74         PROP_SCENE_LIGHT_COLOR_8,
75         PROP_SCENE_LIGHT_DIRECTION_8,
76         PROP_SCENE_LIGHT_ON_8
77     };
78 
79     static void AddPropertiesToVector(
80         ::std::vector< ::com::sun::star::beans::Property > & rOutProperties );
81 
82     static void AddDefaultsToMap( ::chart::tPropertyValueMap & rOutMap );
83 
84 private:
85     // not implemented
86     SceneProperties();
87 };
88 
89 } //  namespace chart
90 
91 // CHART_FILLPROPERTIES_HXX
92 #endif
93