LCOV - code coverage report
Current view: top level - chart2/source/inc - DataSource.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : #ifndef INCLUDED_CHART2_SOURCE_INC_DATASOURCE_HXX
      20             : #define INCLUDED_CHART2_SOURCE_INC_DATASOURCE_HXX
      21             : 
      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"
      29             : 
      30             : namespace chart
      31             : {
      32             : 
      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 >
      38             : {
      39             : public:
      40             :     explicit DataSource(
      41             :         const ::com::sun::star::uno::Reference<
      42             :             ::com::sun::star::uno::XComponentContext > & xContext );
      43             :     explicit DataSource(
      44             :         const ::com::sun::star::uno::Sequence<
      45             :             ::com::sun::star::uno::Reference<
      46             :                 ::com::sun::star::chart2::data::XLabeledDataSequence > > & rSequences );
      47             : 
      48             :     virtual ~DataSource();
      49             : 
      50             :     /// establish methods for factory instatiation
      51           0 :     APPHELPER_SERVICE_FACTORY_HELPER( DataSource )
      52             :     /// declare XServiceInfo methods
      53             :     APPHELPER_XSERVICEINFO_DECL()
      54             : 
      55             : protected:
      56             :     // ____ XDataSource ____
      57             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XLabeledDataSequence > > SAL_CALL
      58             :         getDataSequences()
      59             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      60             : 
      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, std::exception) SAL_OVERRIDE;
      64             : 
      65             : private:
      66             :     ::com::sun::star::uno::Sequence<
      67             :         ::com::sun::star::uno::Reference<
      68             :             ::com::sun::star::chart2::data::XLabeledDataSequence > >
      69             :         m_aDataSeq;
      70             : };
      71             : 
      72             : } //  namespace chart
      73             : 
      74             : // INCLUDED_CHART2_SOURCE_INC_DATASOURCE_HXX
      75             : #endif
      76             : 
      77             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10