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