1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
21 #include <ChartTypeTemplate.hxx>
22 #include <OPropertySet.hxx>
23 #include <comphelper/uno3.hxx>
28 class ScatterChartTypeTemplate
:
29 public ChartTypeTemplate
,
30 public ::property::OPropertySet
33 explicit ScatterChartTypeTemplate(
34 css::uno::Reference
< css::uno::XComponentContext
> const & xContext
,
35 const OUString
& rServiceName
,
37 bool bHasLines
= true,
39 virtual ~ScatterChartTypeTemplate() override
;
41 /// merge XInterface implementations
43 /// merge XTypeProvider implementations
44 DECLARE_XTYPEPROVIDER()
47 // ____ OPropertySet ____
48 virtual void GetDefaultValue( sal_Int32 nHandle
, css::uno::Any
& rAny
) const override
;
49 virtual ::cppu::IPropertyArrayHelper
& SAL_CALL
getInfoHelper() override
;
51 // ____ XPropertySet ____
52 virtual css::uno::Reference
< css::beans::XPropertySetInfo
> SAL_CALL
53 getPropertySetInfo() override
;
55 // ____ ChartTypeTemplate ____
56 virtual sal_Bool SAL_CALL
supportsCategories() override
;
57 virtual bool matchesTemplate2(
58 const rtl::Reference
< ::chart::Diagram
>& xDiagram
,
59 bool bAdaptProperties
) override
;
60 virtual rtl::Reference
< ::chart::ChartType
>
61 getChartTypeForNewSeries2( const std::vector
<
62 rtl::Reference
< ::chart::ChartType
> >& aFormerlyUsedChartTypes
) override
;
63 virtual rtl::Reference
< ::chart::DataInterpreter
> getDataInterpreter2() override
;
64 virtual void applyStyle2(
65 const rtl::Reference
< ::chart::DataSeries
>& xSeries
,
66 ::sal_Int32 nChartTypeGroupIndex
,
67 ::sal_Int32 nSeriesIndex
,
68 ::sal_Int32 nSeriesCount
) override
;
70 // ____ ChartTypeTemplate ____
71 virtual rtl::Reference
< ::chart::ChartType
>
72 getChartTypeForIndex( sal_Int32 nChartTypeIndex
) override
;
73 virtual sal_Int32
getDimension() const override
;
74 virtual StackMode
getStackMode( sal_Int32 nChartTypeIndex
) const override
;
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */