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_COLUMNLINECHARTTYPETEMPLATE_HXX 24 #define CHART_COLUMNLINECHARTTYPETEMPLATE_HXX 25 26 #include "ChartTypeTemplate.hxx" 27 #include "StackMode.hxx" 28 29 #include "OPropertySet.hxx" 30 #include "MutexContainer.hxx" 31 #include <comphelper/uno3.hxx> 32 33 namespace chart 34 { 35 36 class ColumnLineChartTypeTemplate : 37 public MutexContainer, 38 public ChartTypeTemplate, 39 public ::property::OPropertySet 40 { 41 public: 42 explicit ColumnLineChartTypeTemplate( 43 ::com::sun::star::uno::Reference< 44 ::com::sun::star::uno::XComponentContext > const & xContext, 45 const ::rtl::OUString & rServiceName, 46 StackMode eStackMode, 47 sal_Int32 nNumberOfLines ); 48 virtual ~ColumnLineChartTypeTemplate(); 49 50 /// XServiceInfo declarations 51 APPHELPER_XSERVICEINFO_DECL() 52 53 /// merge XInterface implementations 54 DECLARE_XINTERFACE() 55 /// merge XTypeProvider implementations 56 DECLARE_XTYPEPROVIDER() 57 58 protected: 59 // ____ OPropertySet ____ 60 virtual ::com::sun::star::uno::Any GetDefaultValue( sal_Int32 nHandle ) const; 61 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper(); 62 63 // ____ XPropertySet ____ 64 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL 65 getPropertySetInfo(); 66 67 // ____ XChartTypeTemplate ____ 68 virtual sal_Bool SAL_CALL matchesTemplate( 69 const ::com::sun::star::uno::Reference< 70 ::com::sun::star::chart2::XDiagram >& xDiagram, 71 sal_Bool bAdaptProperties ); 72 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartType > SAL_CALL 73 getChartTypeForNewSeries( const ::com::sun::star::uno::Sequence< 74 ::com::sun::star::uno::Reference< 75 ::com::sun::star::chart2::XChartType > >& aFormerlyUsedChartTypes ); 76 virtual void SAL_CALL applyStyle( 77 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataSeries >& xSeries, 78 ::sal_Int32 nChartTypeGroupIndex, 79 ::sal_Int32 nSeriesIndex, 80 ::sal_Int32 nSeriesCount ); 81 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataInterpreter > SAL_CALL getDataInterpreter(); 82 83 // ____ ChartTypeTemplate ____ 84 virtual void createChartTypes( 85 const ::com::sun::star::uno::Sequence< 86 ::com::sun::star::uno::Sequence< 87 ::com::sun::star::uno::Reference< 88 ::com::sun::star::chart2::XDataSeries > > > & aSeriesSeq, 89 const ::com::sun::star::uno::Sequence< 90 ::com::sun::star::uno::Reference< 91 ::com::sun::star::chart2::XCoordinateSystem > > & rCoordSys, 92 const ::com::sun::star::uno::Sequence< 93 ::com::sun::star::uno::Reference< 94 ::com::sun::star::chart2::XChartType > > & aOldChartTypesSeq 95 ); 96 97 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartType > 98 getChartTypeForIndex( sal_Int32 nChartTypeIndex ); 99 100 virtual StackMode getStackMode( sal_Int32 nChartTypeIndex ) const; 101 102 private: 103 StackMode m_eStackMode; 104 }; 105 106 } // namespace chart 107 108 // CHART_COLUMNLINECHARTTYPETEMPLATE_HXX 109 #endif 110