LibreOffice Module chart2 (master) 1
AreaChartType.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 "AreaChartType.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
39{}
40
41// ____ XCloneable ____
43{
45}
46
48{
49 return new AreaChartType( *this );
50}
51
52// ____ XChartType ____
53OUString SAL_CALL AreaChartType::getChartType()
54{
56}
57
59{
60 return "com.sun.star.comp.chart.AreaChartType";
61}
62
63sal_Bool SAL_CALL AreaChartType::supportsService( const OUString& rServiceName )
64{
65 return cppu::supportsService(this, rServiceName);
66}
67
68css::uno::Sequence< OUString > SAL_CALL AreaChartType::getSupportedServiceNames()
69{
70 return {
72 "com.sun.star.chart2.ChartType" };
73}
74
75} // namespace chart
76
77extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
78com_sun_star_comp_chart_AreaChartType_get_implementation(css::uno::XComponentContext * /*context*/,
79 css::uno::Sequence<css::uno::Any> const &)
80{
81 return cppu::acquire(new ::chart::AreaChartType);
82}
83
84/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_chart_AreaChartType_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString SAL_CALL getChartType() override
virtual rtl::Reference< ChartType > cloneChartType() const override
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual ~AreaChartType() override
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
constexpr OUStringLiteral CHART2_SERVICE_NAME_CHARTTYPE_AREA
unsigned char sal_Bool