LCOV - code coverage report
Current view: top level - reportdesign/source/core/inc - Functions.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 6 0.0 %
Date: 2014-04-14 Functions: 0 2 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 REPORTDESIGN_API_FUNCTIONS_HXX
      20             : #define REPORTDESIGN_API_FUNCTIONS_HXX
      21             : 
      22             : #include <com/sun/star/report/XFunctions.hpp>
      23             : #include <com/sun/star/report/XFunctionsSupplier.hpp>
      24             : #include <cppuhelper/compbase1.hxx>
      25             : #include <comphelper/broadcasthelper.hxx>
      26             : #include <com/sun/star/uno/XComponentContext.hpp>
      27             : #include <list>
      28             : 
      29             : 
      30             : namespace reportdesign
      31             : {
      32             :     typedef ::cppu::WeakComponentImplHelper1< com::sun::star::report::XFunctions> FunctionsBase;
      33             :     /** \class OFunctions Defines the implementation of a \interface com:::sun::star::report::XFunctions
      34             :      * \ingroup reportdesign_api
      35             :      *
      36             :      */
      37             :     class OFunctions : public comphelper::OBaseMutex,
      38             :                     public FunctionsBase
      39             :     {
      40             :         typedef ::std::list< ::com::sun::star::uno::Reference< ::com::sun::star::report::XFunction > >  TFunctions;
      41             :         ::cppu::OInterfaceContainerHelper                                                       m_aContainerListeners;
      42             :         ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >            m_xContext;
      43             :         ::com::sun::star::uno::WeakReference< ::com::sun::star::report::XFunctionsSupplier >    m_xParent;
      44             :         TFunctions                                                                              m_aFunctions;
      45             :     private:
      46             :         OFunctions& operator=(const OFunctions&);
      47             :         OFunctions(const OFunctions&);
      48             :         void checkIndex(sal_Int32 _nIndex);
      49             :     protected:
      50             :         // TODO: VirtualFunctionFinder: This is virtual function!
      51             : 
      52             :         virtual ~OFunctions();
      53             : 
      54             :         /** this function is called upon disposing the component
      55             :         */
      56             :         // TODO: VirtualFunctionFinder: This is virtual function!
      57             : 
      58             :         virtual void SAL_CALL disposing() SAL_OVERRIDE;
      59             :     public:
      60             :         explicit OFunctions( const ::com::sun::star::uno::Reference< ::com::sun::star::report::XFunctionsSupplier >& _xParent
      61             :                 ,const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& context);
      62             : 
      63             :     // XFunctions
      64             :         // Methods
      65             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::report::XFunction > SAL_CALL createFunction(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      66             :     // XIndexContainer
      67             :         virtual void SAL_CALL insertByIndex( ::sal_Int32 Index, const ::com::sun::star::uno::Any& Element ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      68             :         virtual void SAL_CALL removeByIndex( ::sal_Int32 Index ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      69             :     // XIndexReplace
      70             :         virtual void SAL_CALL replaceByIndex( ::sal_Int32 Index, const ::com::sun::star::uno::Any& Element ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      71             :     // XIndexAccess
      72             :         virtual ::sal_Int32 SAL_CALL getCount(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      73             :         virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( ::sal_Int32 Index ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      74             :     // XElementAccess
      75             :         virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      76             :         virtual sal_Bool SAL_CALL hasElements(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      77             :     // XChild
      78             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getParent(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      79             :         virtual void SAL_CALL setParent( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Parent ) throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      80             :     // XContainer
      81             :         virtual void SAL_CALL addContainerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      82             :         virtual void SAL_CALL removeContainerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      83             : 
      84             :         // XComponent
      85             :         virtual void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      86           0 :         virtual void SAL_CALL addEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      87             :         {
      88           0 :             cppu::WeakComponentImplHelperBase::addEventListener(aListener);
      89           0 :         }
      90           0 :         virtual void SAL_CALL removeEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      91             :         {
      92           0 :             cppu::WeakComponentImplHelperBase::removeEventListener(aListener);
      93           0 :         }
      94             :     };
      95             : }
      96             : #endif // REPORTDESIGN_API_FUNCTIONS_HXX
      97             : 
      98             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10