testtools, wizards, xmlsecurity: fix issues found by Ruff linter
[libreoffice.git] / chart2 / source / inc / DataSource.hxx
blob9b976e439a6675cb54701880fefaa3a76266e1b3
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 <config_options.h>
22 #include <com/sun/star/lang/XServiceInfo.hpp>
23 #include <com/sun/star/chart2/data/XDataSource.hpp>
24 #include <com/sun/star/chart2/data/XDataSink.hpp>
25 #include <cppuhelper/implbase.hxx>
26 #include <vector>
27 #include "charttoolsdllapi.hxx"
29 namespace chart
31 class LabeledDataSequence;
33 class UNLESS_MERGELIBS(OOO_DLLPUBLIC_CHARTTOOLS) DataSource final : public
34 ::cppu::WeakImplHelper<
35 css::lang::XServiceInfo,
36 css::chart2::data::XDataSource,
37 css::chart2::data::XDataSink >
39 public:
40 explicit DataSource();
41 explicit DataSource(
42 const css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > & rSequences );
43 explicit DataSource(
44 const std::vector< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > & rSequences );
46 virtual ~DataSource() override;
48 /// declare XServiceInfo methods
49 virtual OUString SAL_CALL getImplementationName() override;
50 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
51 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
53 // ____ XDataSource ____
54 virtual css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > SAL_CALL
55 getDataSequences() override;
57 // ____ XDataSink ____
58 virtual void SAL_CALL setData( const css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > >& aData ) override;
60 private:
61 css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > >
62 m_aDataSeq;
65 } // namespace chart
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */