tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / chart2 / source / model / template / AreaChartTypeTemplate.hxx
blob76a5bfd4c89013179edb87324088132318b9486a
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 #pragma once
21 #include <ChartTypeTemplate.hxx>
22 #include <StackMode.hxx>
24 #include <OPropertySet.hxx>
25 #include <comphelper/uno3.hxx>
27 namespace chart
30 class AreaChartTypeTemplate :
31 public ChartTypeTemplate,
32 public ::property::OPropertySet
34 public:
35 explicit AreaChartTypeTemplate(
36 css::uno::Reference< css::uno::XComponentContext > const & xContext,
37 const OUString & rServiceName,
38 StackMode eStackMode,
39 sal_Int32 nDim = 2 );
40 virtual ~AreaChartTypeTemplate() override;
42 /// merge XInterface implementations
43 DECLARE_XINTERFACE()
44 /// merge XTypeProvider implementations
45 DECLARE_XTYPEPROVIDER()
47 protected:
48 // ____ OPropertySet ____
49 virtual void GetDefaultValue( sal_Int32 nHandle, css::uno::Any& rAny ) const override;
50 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
52 // ____ XPropertySet ____
53 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
54 getPropertySetInfo() override;
56 // ____ ChartTypeTemplate ____
57 virtual rtl::Reference< ::chart::ChartType >
58 getChartTypeForNewSeries2( const std::vector<
59 rtl::Reference< ::chart::ChartType > >& aFormerlyUsedChartTypes ) override;
60 virtual void applyStyle2(
61 const rtl::Reference< ::chart::DataSeries >& xSeries,
62 ::sal_Int32 nChartTypeGroupIndex,
63 ::sal_Int32 nSeriesIndex,
64 ::sal_Int32 nSeriesCount ) override;
65 virtual void resetStyles2(
66 const rtl::Reference< ::chart::Diagram >& xDiagram ) override;
68 // ____ ChartTypeTemplate ____
69 virtual rtl::Reference< ::chart::ChartType >
70 getChartTypeForIndex( sal_Int32 nChartTypeIndex ) override;
71 virtual sal_Int32 getDimension() const override;
72 virtual StackMode getStackMode( sal_Int32 nChartTypeIndex ) const override;
74 private:
75 StackMode m_eStackMode;
78 } // namespace chart
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */