fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / model / template / PieChartTypeTemplate.hxx
bloba21972a9a0a9ce032833d0b8b6789c830fda907d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_CHART2_SOURCE_MODEL_TEMPLATE_PIECHARTTYPETEMPLATE_HXX
20 #define INCLUDED_CHART2_SOURCE_MODEL_TEMPLATE_PIECHARTTYPETEMPLATE_HXX
22 #include "OPropertySet.hxx"
23 #include "MutexContainer.hxx"
24 #include <comphelper/uno3.hxx>
26 #include "ChartTypeTemplate.hxx"
27 #include <com/sun/star/chart2/PieChartOffsetMode.hpp>
29 namespace chart
32 class PieChartTypeTemplate :
33 public MutexContainer,
34 public ChartTypeTemplate,
35 public ::property::OPropertySet
37 public:
38 PieChartTypeTemplate(
39 ::com::sun::star::uno::Reference<
40 ::com::sun::star::uno::XComponentContext > const & xContext,
41 const OUString & rServiceName,
42 ::com::sun::star::chart2::PieChartOffsetMode eMode,
43 bool bRings = false,
44 sal_Int32 nDim = 2 );
45 virtual ~PieChartTypeTemplate();
47 /// merge XInterface implementations
48 DECLARE_XINTERFACE()
49 /// merge XTypeProvider implementations
50 DECLARE_XTYPEPROVIDER()
52 protected:
53 // ____ OPropertySet ____
54 virtual ::com::sun::star::uno::Any GetDefaultValue( sal_Int32 nHandle ) const
55 throw(::com::sun::star::beans::UnknownPropertyException) SAL_OVERRIDE;
56 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() SAL_OVERRIDE;
58 // ____ XPropertySet ____
59 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
60 getPropertySetInfo()
61 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
63 // ____ XChartTypeTemplate ____
64 virtual sal_Bool SAL_CALL matchesTemplate(
65 const ::com::sun::star::uno::Reference<
66 ::com::sun::star::chart2::XDiagram >& xDiagram,
67 sal_Bool bAdaptProperties )
68 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
69 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartType > SAL_CALL
70 getChartTypeForNewSeries( const ::com::sun::star::uno::Sequence<
71 ::com::sun::star::uno::Reference<
72 ::com::sun::star::chart2::XChartType > >& aFormerlyUsedChartTypes )
73 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
74 virtual void SAL_CALL applyStyle(
75 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataSeries >& xSeries,
76 ::sal_Int32 nChartTypeGroupIndex,
77 ::sal_Int32 nSeriesIndex,
78 ::sal_Int32 nSeriesCount )
79 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
80 virtual void SAL_CALL resetStyles(
81 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDiagram >& xDiagram )
82 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
84 // ____ ChartTypeTemplate ____
85 virtual sal_Int32 getDimension() const SAL_OVERRIDE;
87 virtual void adaptDiagram(
88 const ::com::sun::star::uno::Reference<
89 ::com::sun::star::chart2::XDiagram > & xDiagram ) SAL_OVERRIDE;
91 virtual sal_Int32 getAxisCountByDimension( sal_Int32 nDimension ) SAL_OVERRIDE;
93 virtual void adaptAxes(
94 const ::com::sun::star::uno::Sequence<
95 ::com::sun::star::uno::Reference<
96 ::com::sun::star::chart2::XCoordinateSystem > > & rCoordSys ) SAL_OVERRIDE;
98 virtual void adaptScales(
99 const ::com::sun::star::uno::Sequence<
100 ::com::sun::star::uno::Reference<
101 ::com::sun::star::chart2::XCoordinateSystem > > & aCooSysSeq,
102 const ::com::sun::star::uno::Reference<
103 ::com::sun::star::chart2::data::XLabeledDataSequence > & xCategories ) SAL_OVERRIDE;
105 virtual void createChartTypes(
106 const ::com::sun::star::uno::Sequence<
107 ::com::sun::star::uno::Sequence<
108 ::com::sun::star::uno::Reference<
109 ::com::sun::star::chart2::XDataSeries > > >& aSeriesSeq,
110 const ::com::sun::star::uno::Sequence<
111 ::com::sun::star::uno::Reference<
112 ::com::sun::star::chart2::XCoordinateSystem > > & rCoordSys,
113 const ::com::sun::star::uno::Sequence<
114 ::com::sun::star::uno::Reference<
115 ::com::sun::star::chart2::XChartType > > & aOldChartTypesSeq
116 ) SAL_OVERRIDE;
118 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartType >
119 getChartTypeForIndex( sal_Int32 nChartTypeIndex ) SAL_OVERRIDE;
122 } // namespace chart
124 // INCLUDED_CHART2_SOURCE_MODEL_TEMPLATE_PIECHARTTYPETEMPLATE_HXX
125 #endif
127 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */