1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: DataSource.hxx,v $
10 * $Revision: 1.3.44.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef CHART2_DATASOURCE_HXX
31 #define CHART2_DATASOURCE_HXX
33 #include <com/sun/star/lang/XServiceInfo.hpp>
34 #include <com/sun/star/chart2/data/XDataSource.hpp>
35 #include <com/sun/star/chart2/data/XDataSink.hpp>
36 #include <com/sun/star/uno/XComponentContext.hpp>
37 #include <cppuhelper/implbase3.hxx>
38 #include <comphelper/uno3.hxx>
39 #include "ServiceMacros.hxx"
44 class DataSource
: public
45 ::cppu::WeakImplHelper3
<
46 ::com::sun::star::lang::XServiceInfo
,
47 ::com::sun::star::chart2::data::XDataSource
,
48 ::com::sun::star::chart2::data::XDataSink
>
52 const ::com::sun::star::uno::Reference
<
53 ::com::sun::star::uno::XComponentContext
> & xContext
);
55 const ::com::sun::star::uno::Sequence
<
56 ::com::sun::star::uno::Reference
<
57 ::com::sun::star::chart2::data::XLabeledDataSequence
> > & rSequences
);
59 virtual ~DataSource();
61 /// establish methods for factory instatiation
62 APPHELPER_SERVICE_FACTORY_HELPER( DataSource
)
63 /// declare XServiceInfo methods
64 APPHELPER_XSERVICEINFO_DECL()
67 // ____ XDataSource ____
68 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XLabeledDataSequence
> > SAL_CALL
70 throw (::com::sun::star::uno::RuntimeException
);
72 // ____ XDataSink ____
73 virtual void SAL_CALL
setData( const ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XLabeledDataSequence
> >& aData
)
74 throw (::com::sun::star::uno::RuntimeException
);
77 ::com::sun::star::uno::Sequence
<
78 ::com::sun::star::uno::Reference
<
79 ::com::sun::star::chart2::data::XLabeledDataSequence
> >
85 // CHART2_DATASOURCE_HXX