LibreOffice Module chart2 (master) 1
NetChartTypeTemplate.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <ChartTypeTemplate.hxx>
22#include <StackMode.hxx>
23
24namespace chart
25{
26
28{
29public:
30 explicit NetChartTypeTemplate(
31 css::uno::Reference< css::uno::XComponentContext > const & xContext,
32 const OUString & rServiceName,
33 StackMode eStackMode,
34 bool bSymbols,
35 bool bHasLines = true,
36 bool bHasFilledArea = false
37 );
38 virtual ~NetChartTypeTemplate() override;
39
40protected:
41 // ____ ChartTypeTemplate ____
42 virtual bool matchesTemplate2(
44 bool bAdaptProperties ) override;
46 getChartTypeForNewSeries2( const std::vector<
47 rtl::Reference< ::chart::ChartType > >& aFormerlyUsedChartTypes ) override;
48 virtual void applyStyle2(
50 ::sal_Int32 nChartTypeGroupIndex,
51 ::sal_Int32 nSeriesIndex,
52 ::sal_Int32 nSeriesCount ) override;
53
54 // ____ ChartTypeTemplate ____
56 getChartTypeForIndex( sal_Int32 nChartTypeIndex ) override;
57 virtual StackMode getStackMode( sal_Int32 nChartTypeIndex ) const override;
58
59private:
64};
65
66} // namespace chart
67
68/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
For creating diagrams and modifying existing diagrams.
virtual void applyStyle2(const rtl::Reference< ::chart::DataSeries > &xSeries, ::sal_Int32 nChartTypeGroupIndex, ::sal_Int32 nSeriesIndex, ::sal_Int32 nSeriesCount) override
virtual bool matchesTemplate2(const rtl::Reference< ::chart::Diagram > &xDiagram, bool bAdaptProperties) override
virtual rtl::Reference< ::chart::ChartType > getChartTypeForIndex(sal_Int32 nChartTypeIndex) override
NetChartTypeTemplate(css::uno::Reference< css::uno::XComponentContext > const &xContext, const OUString &rServiceName, StackMode eStackMode, bool bSymbols, bool bHasLines=true, bool bHasFilledArea=false)
virtual StackMode getStackMode(sal_Int32 nChartTypeIndex) const override
returns StackMode::NONE by default.
virtual ~NetChartTypeTemplate() override
virtual rtl::Reference< ::chart::ChartType > getChartTypeForNewSeries2(const std::vector< rtl::Reference< ::chart::ChartType > > &aFormerlyUsedChartTypes) override