cid#1607171 Data race condition
[LibreOffice.git] / chart2 / source / model / template / BubbleChartTypeTemplate.hxx
blob8a59e5e72817c457a149b2386eddd68e03b2d4b8
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 <OPropertySet.hxx>
23 #include <comphelper/uno3.hxx>
25 namespace chart
28 class BubbleChartTypeTemplate :
29 public ChartTypeTemplate,
30 public ::property::OPropertySet
32 public:
33 explicit BubbleChartTypeTemplate(
34 css::uno::Reference< css::uno::XComponentContext > const & xContext,
35 const OUString & rServiceName );
36 virtual ~BubbleChartTypeTemplate() override;
38 /// merge XInterface implementations
39 DECLARE_XINTERFACE()
40 /// merge XTypeProvider implementations
41 DECLARE_XTYPEPROVIDER()
43 protected:
44 // ____ OPropertySet ____
45 virtual void GetDefaultValue( sal_Int32 nHandle, css::uno::Any& rAny ) const override;
46 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
48 // ____ XPropertySet ____
49 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
50 getPropertySetInfo() override;
52 // ____ ChartTypeTemplate ____
53 virtual sal_Bool SAL_CALL supportsCategories() override;
54 virtual rtl::Reference< ::chart::ChartType >
55 getChartTypeForNewSeries2( const std::vector<
56 rtl::Reference< ::chart::ChartType > >& aFormerlyUsedChartTypes ) override;
57 virtual rtl::Reference< ::chart::DataInterpreter > getDataInterpreter2() override;
58 virtual void applyStyle2(
59 const rtl::Reference< ::chart::DataSeries >& xSeries,
60 ::sal_Int32 nChartTypeGroupIndex,
61 ::sal_Int32 nSeriesIndex,
62 ::sal_Int32 nSeriesCount ) override;
64 // ____ ChartTypeTemplate ____
65 virtual rtl::Reference< ::chart::ChartType >
66 getChartTypeForIndex( sal_Int32 nChartTypeIndex ) override;
67 virtual sal_Int32 getDimension() const override;
68 virtual StackMode getStackMode( sal_Int32 nChartTypeIndex ) const override;
71 } // namespace chart
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */