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 .
19 #ifndef CHART2_DATASOURCE_HXX
20 #define CHART2_DATASOURCE_HXX
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 <com/sun/star/uno/XComponentContext.hpp>
26 #include <cppuhelper/implbase3.hxx>
27 #include <comphelper/uno3.hxx>
28 #include "ServiceMacros.hxx"
33 class DataSource
: public
34 ::cppu::WeakImplHelper3
<
35 ::com::sun::star::lang::XServiceInfo
,
36 ::com::sun::star::chart2::data::XDataSource
,
37 ::com::sun::star::chart2::data::XDataSink
>
41 const ::com::sun::star::uno::Reference
<
42 ::com::sun::star::uno::XComponentContext
> & xContext
);
44 const ::com::sun::star::uno::Sequence
<
45 ::com::sun::star::uno::Reference
<
46 ::com::sun::star::chart2::data::XLabeledDataSequence
> > & rSequences
);
48 virtual ~DataSource();
50 /// establish methods for factory instatiation
51 APPHELPER_SERVICE_FACTORY_HELPER( DataSource
)
52 /// declare XServiceInfo methods
53 APPHELPER_XSERVICEINFO_DECL()
56 // ____ XDataSource ____
57 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XLabeledDataSequence
> > SAL_CALL
59 throw (::com::sun::star::uno::RuntimeException
);
61 // ____ XDataSink ____
62 virtual void SAL_CALL
setData( const ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XLabeledDataSequence
> >& aData
)
63 throw (::com::sun::star::uno::RuntimeException
);
66 ::com::sun::star::uno::Sequence
<
67 ::com::sun::star::uno::Reference
<
68 ::com::sun::star::chart2::data::XLabeledDataSequence
> >
74 // CHART2_DATASOURCE_HXX
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */