Update ooo320-m1
[ooovba.git] / chart2 / source / model / main / DataPointProperties.hxx
blobd4643a66c55e0cbddda2fb5640fea7243a7c09f7
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: DataPointProperties.hxx,v $
10 * $Revision: 1.9 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef CHART_DATAPOINTPROPERTIES_HXX
31 #define CHART_DATAPOINTPROPERTIES_HXX
33 #include "PropertyHelper.hxx"
34 #include "FastPropertyIdRanges.hxx"
35 #include <com/sun/star/beans/Property.hpp>
37 #include <vector>
39 namespace chart
42 // implements service DataPointProperties
43 class DataPointProperties
45 public:
46 // FastProperty Ids for properties
47 enum
49 // common
50 PROP_DATAPOINT_COLOR = FAST_PROPERTY_ID_START_DATA_POINT,
51 PROP_DATAPOINT_TRANSPARENCY,
53 // fill
54 PROP_DATAPOINT_FILL_STYLE,
55 // PROP_DATAPOINT_TRANSPARENCY_STYLE,
56 PROP_DATAPOINT_TRANSPARENCY_GRADIENT_NAME,
57 PROP_DATAPOINT_GRADIENT_NAME,
58 PROP_DATAPOINT_GRADIENT_STEPCOUNT,
59 PROP_DATAPOINT_HATCH_NAME,
60 PROP_DATAPOINT_FILL_BITMAP_NAME,
61 PROP_DATAPOINT_FILL_BACKGROUND,
63 // border (of filled objects)
64 PROP_DATAPOINT_BORDER_COLOR,
65 PROP_DATAPOINT_BORDER_STYLE,
66 PROP_DATAPOINT_BORDER_WIDTH,
67 PROP_DATAPOINT_BORDER_DASH_NAME,
68 PROP_DATAPOINT_BORDER_TRANSPARENCY,
70 // others
71 PROP_DATAPOINT_SYMBOL_PROP,
72 PROP_DATAPOINT_OFFSET,
73 PROP_DATAPOINT_GEOMETRY3D,
74 PROP_DATAPOINT_LABEL,
75 PROP_DATAPOINT_LABEL_SEPARATOR,
76 PROP_DATAPOINT_NUMBER_FORMAT,
77 PROP_DATAPOINT_PERCENTAGE_NUMBER_FORMAT,
78 PROP_DATAPOINT_LABEL_PLACEMENT,
79 PROP_DATAPOINT_REFERENCE_DIAGRAM_SIZE,
80 PROP_DATAPOINT_TEXT_ROTATION,
82 // statistics
83 PROP_DATAPOINT_ERROR_BAR_X,
84 PROP_DATAPOINT_ERROR_BAR_Y,
85 PROP_DATAPOINT_SHOW_ERROR_BOX,
86 PROP_DATAPOINT_PERCENT_DIAGONAL
88 // additionally some properites from ::chart::LineProperties
91 static void AddPropertiesToVector(
92 ::std::vector< ::com::sun::star::beans::Property > & rOutProperties );
94 static void AddDefaultsToMap( ::chart::tPropertyValueMap & rOutMap );
96 private:
97 // not implemented
98 DataPointProperties();
101 } // namespace chart
103 // CHART_DATAPOINTPROPERTIES_HXX
104 #endif