LCOV - code coverage report
Current view: top level - chart2/source/model/main - Legend.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_MODEL_MAIN_LEGEND_HXX
      20             : #define INCLUDED_CHART2_SOURCE_MODEL_MAIN_LEGEND_HXX
      21             : 
      22             : #include "ServiceMacros.hxx"
      23             : #include "ModifyListenerHelper.hxx"
      24             : #include "OPropertySet.hxx"
      25             : #include "MutexContainer.hxx"
      26             : #include <cppuhelper/implbase5.hxx>
      27             : #include <comphelper/uno3.hxx>
      28             : #include <com/sun/star/chart2/XLegend.hpp>
      29             : #include <com/sun/star/lang/XServiceInfo.hpp>
      30             : #include <com/sun/star/uno/XComponentContext.hpp>
      31             : #include <com/sun/star/util/XCloneable.hpp>
      32             : #include <com/sun/star/util/XModifyBroadcaster.hpp>
      33             : #include <com/sun/star/util/XModifyListener.hpp>
      34             : 
      35             : namespace chart
      36             : {
      37             : 
      38             : namespace impl
      39             : {
      40             : typedef ::cppu::WeakImplHelper5<
      41             :         ::com::sun::star::chart2::XLegend,
      42             :         ::com::sun::star::lang::XServiceInfo,
      43             :         ::com::sun::star::util::XCloneable,
      44             :         ::com::sun::star::util::XModifyBroadcaster,
      45             :         ::com::sun::star::util::XModifyListener >
      46             :     Legend_Base;
      47             : }
      48             : 
      49             : class Legend :
      50             :     public MutexContainer,
      51             :     public impl::Legend_Base,
      52             :     public ::property::OPropertySet
      53             : {
      54             : public:
      55             :     Legend( ::com::sun::star::uno::Reference<
      56             :             ::com::sun::star::uno::XComponentContext > const & xContext );
      57             :     virtual ~Legend();
      58             : 
      59             :     /// establish methods for factory instatiation
      60           0 :     APPHELPER_SERVICE_FACTORY_HELPER( Legend )
      61             : 
      62             :     /// XServiceInfo declarations
      63             :     APPHELPER_XSERVICEINFO_DECL()
      64             : 
      65             :     /// merge XInterface implementations
      66             :      DECLARE_XINTERFACE()
      67             :     /// merge XTypeProvider implementations
      68             :      DECLARE_XTYPEPROVIDER()
      69             : 
      70             : protected:
      71             :     explicit Legend( const Legend & rOther );
      72             : 
      73             :     // ____ OPropertySet ____
      74             :     virtual ::com::sun::star::uno::Any GetDefaultValue( sal_Int32 nHandle ) const
      75             :         throw(::com::sun::star::beans::UnknownPropertyException) SAL_OVERRIDE;
      76             : 
      77             :     // ____ OPropertySet ____
      78             :     virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() SAL_OVERRIDE;
      79             : 
      80             :     // ____ XPropertySet ____
      81             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
      82             :         getPropertySetInfo()
      83             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      84             : 
      85             :     // ____ XCloneable ____
      86             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone()
      87             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      88             : 
      89             :     // ____ XModifyBroadcaster ____
      90             :     virtual void SAL_CALL addModifyListener(
      91             :         const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
      92             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      93             :     virtual void SAL_CALL removeModifyListener(
      94             :         const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
      95             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      96             : 
      97             :     // ____ XModifyListener ____
      98             :     virtual void SAL_CALL modified(
      99             :         const ::com::sun::star::lang::EventObject& aEvent )
     100             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     101             : 
     102             :     // ____ XEventListener (base of XModifyListener) ____
     103             :     virtual void SAL_CALL disposing(
     104             :         const ::com::sun::star::lang::EventObject& Source )
     105             :         throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     106             : 
     107             :     // ____ OPropertySet ____
     108             :     virtual void firePropertyChangeEvent() SAL_OVERRIDE;
     109             :     using OPropertySet::disposing;
     110             : 
     111             :     void fireModifyEvent();
     112             : 
     113             : private:
     114             :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener > m_xModifyEventForwarder;
     115             : };
     116             : 
     117             : } //  namespace chart
     118             : 
     119             : // INCLUDED_CHART2_SOURCE_MODEL_MAIN_LEGEND_HXX
     120             : #endif
     121             : 
     122             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10