LibreOffice Module chart2 (master) 1
BarChartType.cxx
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
20#include "BarChartType.hxx"
23
24namespace com::sun::star::uno { class XComponentContext; }
25
26using namespace ::com::sun::star;
27
28namespace chart
29{
30
32{}
33
35 ChartType( rOther )
36{
37}
38
40{}
41
42// ____ XCloneable ____
44{
46}
47
49{
50 return new BarChartType( *this );
51}
52
53// ____ XChartType ____
54OUString SAL_CALL BarChartType::getChartType()
55{
57}
58
60{
61 return { "FillColor", "BorderColor" };
62}
63
65{
66 return "com.sun.star.comp.chart.BarChartType";
67}
68
69sal_Bool SAL_CALL BarChartType::supportsService( const OUString& rServiceName )
70{
71 return cppu::supportsService(this, rServiceName);
72}
73
74css::uno::Sequence< OUString > SAL_CALL BarChartType::getSupportedServiceNames()
75{
76 return {
78 "com.sun.star.chart2.ChartType" };
79}
80
81} // namespace chart
82
83extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
84com_sun_star_comp_chart_BarChartType_get_implementation(css::uno::XComponentContext * /*context*/,
85 css::uno::Sequence<css::uno::Any> const &)
86{
87 return cppu::acquire(new ::chart::BarChartType);
88}
89
90/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_chart_BarChartType_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
virtual OUString SAL_CALL getChartType() override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual ~BarChartType() override
virtual rtl::Reference< ChartType > cloneChartType() const override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedPropertyRoles() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual OUString SAL_CALL getImplementationName() override
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
constexpr OUStringLiteral CHART2_SERVICE_NAME_CHARTTYPE_BAR
unsigned char sal_Bool