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_DATAPOINTPROPERTIES_HXX
24 #define CHART_DATAPOINTPROPERTIES_HXX
25 
26 #include "PropertyHelper.hxx"
27 #include "FastPropertyIdRanges.hxx"
28 #include <com/sun/star/beans/Property.hpp>
29 
30 #include <vector>
31 
32 namespace chart
33 {
34 
35 // implements service DataPointProperties
36 class DataPointProperties
37 {
38 public:
39     // FastProperty Ids for properties
40     enum
41     {
42         // common
43         PROP_DATAPOINT_COLOR = FAST_PROPERTY_ID_START_DATA_POINT,
44         PROP_DATAPOINT_TRANSPARENCY,
45 
46         // fill
47         PROP_DATAPOINT_FILL_STYLE,
48 //         PROP_DATAPOINT_TRANSPARENCY_STYLE,
49         PROP_DATAPOINT_TRANSPARENCY_GRADIENT_NAME,
50         PROP_DATAPOINT_GRADIENT_NAME,
51         PROP_DATAPOINT_GRADIENT_STEPCOUNT,
52         PROP_DATAPOINT_HATCH_NAME,
53         PROP_DATAPOINT_FILL_BITMAP_NAME,
54         PROP_DATAPOINT_FILL_BACKGROUND,
55 
56         // border (of filled objects)
57         PROP_DATAPOINT_BORDER_COLOR,
58         PROP_DATAPOINT_BORDER_STYLE,
59         PROP_DATAPOINT_BORDER_WIDTH,
60         PROP_DATAPOINT_BORDER_DASH_NAME,
61         PROP_DATAPOINT_BORDER_TRANSPARENCY,
62 
63         // others
64         PROP_DATAPOINT_SYMBOL_PROP,
65         PROP_DATAPOINT_OFFSET,
66         PROP_DATAPOINT_GEOMETRY3D,
67         PROP_DATAPOINT_LABEL,
68         PROP_DATAPOINT_LABEL_SEPARATOR,
69         PROP_DATAPOINT_NUMBER_FORMAT,
70         PROP_DATAPOINT_PERCENTAGE_NUMBER_FORMAT,
71         PROP_DATAPOINT_LABEL_PLACEMENT,
72         PROP_DATAPOINT_REFERENCE_DIAGRAM_SIZE,
73         PROP_DATAPOINT_TEXT_ROTATION,
74 
75         // statistics
76         PROP_DATAPOINT_ERROR_BAR_X,
77         PROP_DATAPOINT_ERROR_BAR_Y,
78         PROP_DATAPOINT_SHOW_ERROR_BOX,
79         PROP_DATAPOINT_PERCENT_DIAGONAL
80 
81         // additionally some properites from ::chart::LineProperties
82     };
83 
84     static void AddPropertiesToVector(
85         ::std::vector< ::com::sun::star::beans::Property > & rOutProperties );
86 
87     static void AddDefaultsToMap( ::chart::tPropertyValueMap & rOutMap );
88 
89 private:
90     // not implemented
91     DataPointProperties();
92 };
93 
94 } //  namespace chart
95 
96 // CHART_DATAPOINTPROPERTIES_HXX
97 #endif
98