LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/chart2/source/inc - LabeledDataSequence.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 1 100.0 %
Date: 2013-07-09 Functions: 1 1 100.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 CHART2_LABELEDDATASEQUENCE_HXX
      20             : #define CHART2_LABELEDDATASEQUENCE_HXX
      21             : #include "ServiceMacros.hxx"
      22             : #include "MutexContainer.hxx"
      23             : #include <comphelper/uno3.hxx>
      24             : #include <cppuhelper/implbase2.hxx>
      25             : 
      26             : #include <com/sun/star/chart2/data/XLabeledDataSequence2.hpp>
      27             : #include <com/sun/star/lang/XServiceInfo.hpp>
      28             : #include <com/sun/star/util/XCloneable.hpp>
      29             : #include <com/sun/star/uno/XComponentContext.hpp>
      30             : #include <com/sun/star/util/XModifyBroadcaster.hpp>
      31             : 
      32             : namespace chart
      33             : {
      34             : 
      35             : namespace impl
      36             : {
      37             : typedef cppu::WeakImplHelper2<
      38             :         ::com::sun::star::chart2::data::XLabeledDataSequence2,
      39             :         ::com::sun::star::lang::XServiceInfo >
      40             :     LabeledDataSequence_Base;
      41             : }
      42             : 
      43             : class LabeledDataSequence :
      44             :         public MutexContainer,
      45             :         public impl::LabeledDataSequence_Base
      46             : {
      47             : public:
      48             :     explicit LabeledDataSequence(
      49             :         const ::com::sun::star::uno::Reference<
      50             :             ::com::sun::star::uno::XComponentContext > & xContext );
      51             :     explicit LabeledDataSequence(
      52             :         const ::com::sun::star::uno::Reference<
      53             :             ::com::sun::star::chart2::data::XDataSequence > & rValues );
      54             :     explicit LabeledDataSequence(
      55             :         const ::com::sun::star::uno::Reference<
      56             :             ::com::sun::star::chart2::data::XDataSequence > & rValues,
      57             :         const ::com::sun::star::uno::Reference<
      58             :             ::com::sun::star::chart2::data::XDataSequence > & rLabels );
      59             : 
      60             :     virtual ~LabeledDataSequence();
      61             : 
      62             :     /// establish methods for factory instatiation
      63        2130 :     APPHELPER_SERVICE_FACTORY_HELPER( LabeledDataSequence )
      64             :     /// declare XServiceInfo methods
      65             :     APPHELPER_XSERVICEINFO_DECL()
      66             : 
      67             : protected:
      68             :     // ____ XLabeledDataSequence ____
      69             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > SAL_CALL getValues()
      70             :         throw (::com::sun::star::uno::RuntimeException);
      71             :     virtual void SAL_CALL setValues(
      72             :         const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence >& xSequence )
      73             :         throw (::com::sun::star::uno::RuntimeException);
      74             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > SAL_CALL getLabel()
      75             :         throw (::com::sun::star::uno::RuntimeException);
      76             :     virtual void SAL_CALL setLabel(
      77             :         const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence >& xSequence )
      78             :         throw (::com::sun::star::uno::RuntimeException);
      79             : 
      80             :     // ____ XCloneable ____
      81             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone()
      82             :         throw (::com::sun::star::uno::RuntimeException);
      83             : 
      84             :     // ____ XModifyBroadcaster ____
      85             :     virtual void SAL_CALL addModifyListener(
      86             :         const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
      87             :         throw (::com::sun::star::uno::RuntimeException);
      88             :     virtual void SAL_CALL removeModifyListener(
      89             :         const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
      90             :         throw (::com::sun::star::uno::RuntimeException);
      91             : 
      92             : private:
      93             :     ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > m_xData;
      94             :     ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > m_xLabel;
      95             : 
      96             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >      m_xContext;
      97             :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >       m_xModifyEventForwarder;
      98             : };
      99             : 
     100             : } //  namespace chart
     101             : 
     102             : // CHART2_LABELEDDATASEQUENCE_HXX
     103             : #endif
     104             : 
     105             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10