1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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/.
11 #include <OPropertySet.hxx>
12 #include <comphelper/uno3.hxx>
14 #include <ChartTypeTemplate.hxx>
15 #include <StackMode.hxx>
19 class HistogramChartTypeTemplate
: public ChartTypeTemplate
, public ::property::OPropertySet
22 explicit HistogramChartTypeTemplate(
23 css::uno::Reference
<css::uno::XComponentContext
> const& xContext
,
24 const OUString
& rServiceName
, StackMode eStackMode
);
26 /// merge XInterface implementations
28 /// merge XTypeProvider implementations
29 DECLARE_XTYPEPROVIDER()
32 // ____ OPropertySet ____
33 virtual void GetDefaultValue(sal_Int32 nHandle
, css::uno::Any
& rAny
) const override
;
34 virtual ::cppu::IPropertyArrayHelper
& SAL_CALL
getInfoHelper() override
;
36 // ____ XPropertySet ____
37 virtual css::uno::Reference
<css::beans::XPropertySetInfo
>
38 SAL_CALL
getPropertySetInfo() override
;
40 // ____ ChartTypeTemplate ____
41 virtual rtl::Reference
<::chart::ChartType
> getChartTypeForNewSeries2(
42 const std::vector
<rtl::Reference
<::chart::ChartType
>>& aFormerlyUsedChartTypes
) override
;
44 virtual sal_Bool SAL_CALL
supportsCategories() override
{ return true; }
46 virtual void applyStyle2(const rtl::Reference
<::chart::DataSeries
>& xSeries
,
47 ::sal_Int32 nChartTypeGroupIndex
, ::sal_Int32 nSeriesIndex
,
48 ::sal_Int32 nSeriesCount
) override
;
50 virtual void resetStyles2(const rtl::Reference
<::chart::Diagram
>& xDiagram
) override
;
52 virtual rtl::Reference
<::chart::ChartType
>
53 getChartTypeForIndex(sal_Int32 nChartTypeIndex
) override
;
55 virtual sal_Int32
getDimension() const override
;
56 virtual StackMode
getStackMode(sal_Int32 nChartTypeIndex
) const override
;
58 rtl::Reference
<chart::DataInterpreter
> getDataInterpreter2() override
;
61 StackMode m_eStackMode
;
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */