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 CHART2_VLEGENDSYMBOLFACTORY_HXX 24 #define CHART2_VLEGENDSYMBOLFACTORY_HXX 25 26 #include "LegendEntryProvider.hxx" 27 #include <com/sun/star/beans/XPropertySet.hpp> 28 #include <com/sun/star/lang/XMultiServiceFactory.hpp> 29 #include <com/sun/star/drawing/XShapes.hpp> 30 31 namespace chart 32 { 33 34 class VLegendSymbolFactory 35 { 36 public: 37 enum tPropertyType 38 { 39 PROP_TYPE_FILLED_SERIES, 40 PROP_TYPE_LINE_SERIES, 41 PROP_TYPE_FILL, 42 PROP_TYPE_LINE, 43 PROP_TYPE_FILL_AND_LINE 44 }; 45 46 static ::com::sun::star::uno::Reference< 47 ::com::sun::star::drawing::XShape > 48 createSymbol( 49 const ::com::sun::star::awt::Size& rEntryKeyAspectRatio, 50 const ::com::sun::star::uno::Reference< 51 ::com::sun::star::drawing::XShapes > xSymbolContainer, 52 LegendSymbolStyle eStyle, 53 const ::com::sun::star::uno::Reference< 54 ::com::sun::star::lang::XMultiServiceFactory > & xShapeFactory, 55 const ::com::sun::star::uno::Reference< 56 ::com::sun::star::beans::XPropertySet > & xLegendEntryProperties, 57 tPropertyType ePropertyType, 58 const ::com::sun::star::uno::Any& rExplicitSymbol /*should contain a ::com::sun::star::chart2::Symbol without automatic symbol if the charttype does support symbols else empty*/); 59 60 private: 61 VLegendSymbolFactory(); 62 }; 63 64 } // namespace chart 65 66 // CHART2_VLEGENDSYMBOLFACTORY_HXX 67 #endif 68