LCOV - code coverage report
Current view: top level - chart2/source/inc - ErrorBar.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_ERRORBAR_HXX
      20             : #define INCLUDED_CHART2_SOURCE_INC_ERRORBAR_HXX
      21             : 
      22             : #include "MutexContainer.hxx"
      23             : #include "ServiceMacros.hxx"
      24             : #include "ModifyListenerHelper.hxx"
      25             : #include "charttoolsdllapi.hxx"
      26             : #include "LineProperties.hxx"
      27             : 
      28             : #include <cppuhelper/implbase8.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             : #include <com/sun/star/beans/XPropertySet.hpp>
      39             : #include <com/sun/star/beans/XPropertyState.hpp>
      40             : #include <com/sun/star/chart/ErrorBarStyle.hpp>
      41             : 
      42             : namespace chart
      43             : {
      44             : 
      45             : OOO_DLLPUBLIC_CHARTTOOLS    ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > createErrorBar(
      46             :     const ::com::sun::star::uno::Reference<
      47             :             ::com::sun::star::uno::XComponentContext > & xContext );
      48             : 
      49             : namespace impl
      50             : {
      51             : typedef ::cppu::WeakImplHelper8<
      52             :         ::com::sun::star::lang::XServiceInfo,
      53             :         ::com::sun::star::util::XCloneable,
      54             :         ::com::sun::star::util::XModifyBroadcaster,
      55             :         ::com::sun::star::util::XModifyListener,
      56             :         ::com::sun::star::chart2::data::XDataSource,
      57             :         ::com::sun::star::chart2::data::XDataSink,
      58             :         ::com::sun::star::beans::XPropertySet,
      59             :         ::com::sun::star::beans::XPropertyState >
      60             :     ErrorBar_Base;
      61             : }
      62             : 
      63             : class ErrorBar :
      64             :         public MutexContainer,
      65             :         public impl::ErrorBar_Base,
      66             :         public LineProperties
      67             : {
      68             : private:
      69             :     bool mbShowPositiveError;
      70             :     bool mbShowNegativeError;
      71             :     double mfPositiveError;
      72             :     double mfNegativeError;
      73             :     double mfWeight;
      74             :     sal_Int32 meStyle;
      75             : 
      76             : public:
      77             :     explicit ErrorBar(
      78             :         const ::com::sun::star::uno::Reference<
      79             :             ::com::sun::star::uno::XComponentContext > & xContext );
      80             :     virtual ~ErrorBar();
      81             : 
      82             :     /// XServiceInfo declarations
      83             :     APPHELPER_XSERVICEINFO_DECL()
      84             :     /// establish methods for factory instatiation
      85           0 :     APPHELPER_SERVICE_FACTORY_HELPER( ErrorBar )
      86             : 
      87             :      // XPropertySet
      88             : 
      89             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
      90             :         getPropertySetInfo() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      91             :     virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue )
      92             :         throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      93             :     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName )
      94             :         throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      95             :     virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener )
      96             :         throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      97             :     virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener )
      98             :         throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      99             :     virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener )
     100             :                                 throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     101             :     virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener )
     102             :                                 throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     103             : 
     104             :     // XPropertyState
     105             :     virtual com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const OUString& rPropName )
     106             :         throw (com::sun::star::beans::UnknownPropertyException, std::exception) SAL_OVERRIDE;
     107             :     virtual com::sun::star::uno::Sequence< com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates(
     108             :             const com::sun::star::uno::Sequence< OUString >& rPropNames )
     109             :         throw (com::sun::star::beans::UnknownPropertyException, std::exception) SAL_OVERRIDE;
     110             :     virtual void SAL_CALL setPropertyToDefault( const OUString& rPropName )
     111             :         throw (com::sun::star::beans::UnknownPropertyException, std::exception) SAL_OVERRIDE;
     112             :     virtual com::sun::star::uno::Any SAL_CALL getPropertyDefault( const OUString& rPropName )
     113             :         throw (com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException, std::exception) SAL_OVERRIDE;
     114             : 
     115             : protected:
     116             :     ErrorBar( const ErrorBar & rOther );
     117             : 
     118             :     // ____ XCloneable ____
     119             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone()
     120             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     121             : 
     122             :     // ____ XModifyBroadcaster ____
     123             :     virtual void SAL_CALL addModifyListener(
     124             :         const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
     125             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     126             :     virtual void SAL_CALL removeModifyListener(
     127             :         const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
     128             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     129             : 
     130             :     // ____ XModifyListener ____
     131             :     virtual void SAL_CALL modified(
     132             :         const ::com::sun::star::lang::EventObject& aEvent )
     133             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     134             : 
     135             :     // ____ XEventListener (base of XModifyListener) ____
     136             :     virtual void SAL_CALL disposing(
     137             :         const ::com::sun::star::lang::EventObject& Source )
     138             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     139             : 
     140             :     // ____ XDataSink ____
     141             :     virtual void SAL_CALL setData( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XLabeledDataSequence > >& aData )
     142             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     143             : 
     144             :     // ____ XDataSource ____
     145             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XLabeledDataSequence > > SAL_CALL getDataSequences()
     146             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     147             : 
     148             :     // ____ XChild ____
     149             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getParent()
     150             :         throw (::com::sun::star::uno::RuntimeException);
     151             :     virtual void SAL_CALL setParent(
     152             :         const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Parent )
     153             :         throw (::com::sun::star::lang::NoSupportException,
     154             :                ::com::sun::star::uno::RuntimeException);
     155             : 
     156             : private:
     157             :     ::com::sun::star::uno::Reference<
     158             :         ::com::sun::star::uno::XComponentContext >
     159             :                         m_xContext;
     160             : 
     161             :     typedef ::std::vector< ::com::sun::star::uno::Reference<
     162             :             ::com::sun::star::chart2::data::XLabeledDataSequence > > tDataSequenceContainer;
     163             :     tDataSequenceContainer m_aDataSequences;
     164             : 
     165             :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener > m_xModifyEventForwarder;
     166             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > m_xParent;
     167             : };
     168             : 
     169             : } //  namespace chart
     170             : 
     171             : // INCLUDED_CHART2_SOURCE_INC_ERRORBAR_HXX
     172             : #endif
     173             : 
     174             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10