LCOV - code coverage report
Current view: top level - libreoffice/chart2/source/inc - ErrorBar.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 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 CHART2_ERRORBAR_HXX
      20             : #define CHART2_ERRORBAR_HXX
      21             : 
      22             : #include "MutexContainer.hxx"
      23             : #include "OPropertySet.hxx"
      24             : #include "ServiceMacros.hxx"
      25             : #include "ModifyListenerHelper.hxx"
      26             : #include "charttoolsdllapi.hxx"
      27             : 
      28             : #include <cppuhelper/implbase6.hxx>
      29             : #include <comphelper/uno3.hxx>
      30             : 
      31             : #include <com/sun/star/uno/XComponentContext.hpp>
      32             : #include <com/sun/star/lang/XServiceInfo.hpp>
      33             : #include <com/sun/star/lang/XServiceName.hpp>
      34             : #include <com/sun/star/util/XCloneable.hpp>
      35             : #include <com/sun/star/container/XChild.hpp>
      36             : #include <com/sun/star/chart2/data/XDataSink.hpp>
      37             : #include <com/sun/star/chart2/data/XDataSource.hpp>
      38             : 
      39             : namespace chart
      40             : {
      41             : 
      42             : OOO_DLLPUBLIC_CHARTTOOLS    ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > createErrorBar(
      43             :     const ::com::sun::star::uno::Reference<
      44             :             ::com::sun::star::uno::XComponentContext > & xContext );
      45             : 
      46             : namespace impl
      47             : {
      48             : typedef ::cppu::WeakImplHelper6<
      49             :         ::com::sun::star::lang::XServiceInfo,
      50             :         ::com::sun::star::util::XCloneable,
      51             :         ::com::sun::star::util::XModifyBroadcaster,
      52             :         ::com::sun::star::util::XModifyListener,
      53             :         ::com::sun::star::chart2::data::XDataSource,
      54             :         ::com::sun::star::chart2::data::XDataSink >
      55             :     ErrorBar_Base;
      56             : }
      57             : 
      58             : class ErrorBar :
      59             :         public MutexContainer,
      60             :         public impl::ErrorBar_Base,
      61             :         public ::property::OPropertySet
      62             : {
      63             : public:
      64             :     explicit ErrorBar(
      65             :         const ::com::sun::star::uno::Reference<
      66             :             ::com::sun::star::uno::XComponentContext > & xContext );
      67             :     virtual ~ErrorBar();
      68             : 
      69             :     /// XServiceInfo declarations
      70             :     APPHELPER_XSERVICEINFO_DECL()
      71             :     /// establish methods for factory instatiation
      72           0 :     APPHELPER_SERVICE_FACTORY_HELPER( ErrorBar )
      73             : 
      74             :     /// merge XInterface implementations
      75             :      DECLARE_XINTERFACE()
      76             :     /// merge XTypeProvider implementations
      77             :      DECLARE_XTYPEPROVIDER()
      78             : 
      79             : protected:
      80             :     ErrorBar( const ErrorBar & rOther );
      81             : 
      82             :     // ____ OPropertySet ____
      83             :     virtual ::com::sun::star::uno::Any GetDefaultValue( sal_Int32 nHandle ) const
      84             :         throw(::com::sun::star::beans::UnknownPropertyException);
      85             :     virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
      86             :     using OPropertySet::disposing;
      87             : 
      88             :     // ____ XPropertySet ____
      89             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
      90             :         getPropertySetInfo()
      91             :         throw (::com::sun::star::uno::RuntimeException);
      92             : 
      93             :     // ____ XCloneable ____
      94             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone()
      95             :         throw (::com::sun::star::uno::RuntimeException);
      96             : 
      97             :     // ____ XModifyBroadcaster ____
      98             :     virtual void SAL_CALL addModifyListener(
      99             :         const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
     100             :         throw (::com::sun::star::uno::RuntimeException);
     101             :     virtual void SAL_CALL removeModifyListener(
     102             :         const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
     103             :         throw (::com::sun::star::uno::RuntimeException);
     104             : 
     105             :     // ____ XModifyListener ____
     106             :     virtual void SAL_CALL modified(
     107             :         const ::com::sun::star::lang::EventObject& aEvent )
     108             :         throw (::com::sun::star::uno::RuntimeException);
     109             : 
     110             :     // ____ XEventListener (base of XModifyListener) ____
     111             :     virtual void SAL_CALL disposing(
     112             :         const ::com::sun::star::lang::EventObject& Source )
     113             :         throw (::com::sun::star::uno::RuntimeException);
     114             : 
     115             :     // ____ XDataSink ____
     116             :     virtual void SAL_CALL setData( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XLabeledDataSequence > >& aData )
     117             :         throw (::com::sun::star::uno::RuntimeException);
     118             : 
     119             :     // ____ XDataSource ____
     120             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XLabeledDataSequence > > SAL_CALL getDataSequences()
     121             :         throw (::com::sun::star::uno::RuntimeException);
     122             : 
     123             :     // ____ XChild ____
     124             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getParent()
     125             :         throw (::com::sun::star::uno::RuntimeException);
     126             :     virtual void SAL_CALL setParent(
     127             :         const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Parent )
     128             :         throw (::com::sun::star::lang::NoSupportException,
     129             :                ::com::sun::star::uno::RuntimeException);
     130             : 
     131             :     // ____ OPropertySet ____
     132             :     virtual void firePropertyChangeEvent();
     133             : 
     134             :     void fireModifyEvent();
     135             : 
     136             : private:
     137             :     ::com::sun::star::uno::Reference<
     138             :         ::com::sun::star::uno::XComponentContext >
     139             :                         m_xContext;
     140             : 
     141             :     typedef ::std::vector< ::com::sun::star::uno::Reference<
     142             :             ::com::sun::star::chart2::data::XLabeledDataSequence > > tDataSequenceContainer;
     143             :     tDataSequenceContainer m_aDataSequences;
     144             : 
     145             :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener > m_xModifyEventForwarder;
     146             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > m_xParent;
     147             : };
     148             : 
     149             : } //  namespace chart
     150             : 
     151             : // CHART2_ERRORBAR_HXX
     152             : #endif
     153             : 
     154             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10