LCOV - code coverage report
Current view: top level - reportdesign/source/core/inc - Groups.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_GROUPS_HXX
      20             : #define REPORTDESIGN_API_GROUPS_HXX
      21             : 
      22             : #include <com/sun/star/report/XGroups.hpp>
      23             : #include <cppuhelper/compbase1.hxx>
      24             : #include <comphelper/broadcasthelper.hxx>
      25             : #include <com/sun/star/uno/XComponentContext.hpp>
      26             : #include <list>
      27             : 
      28             : 
      29             : namespace reportdesign
      30             : {
      31             :     typedef ::cppu::WeakComponentImplHelper1< com::sun::star::report::XGroups> GroupsBase;
      32             :     /** \class OGroups Defines the implementation of a \interface com:::sun::star::report::XGroups
      33             :      * \ingroup reportdesign_api
      34             :      *
      35             :      */
      36             :     class OGroups : public comphelper::OBaseMutex,
      37             :                     public GroupsBase
      38             :     {
      39             :         typedef ::std::list< ::com::sun::star::uno::Reference< ::com::sun::star::report::XGroup > > TGroups;
      40             :         ::cppu::OInterfaceContainerHelper                                                       m_aContainerListeners;
      41             :         ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >            m_xContext;
      42             :         ::com::sun::star::uno::WeakReference< ::com::sun::star::report::XReportDefinition >     m_xParent;
      43             :         TGroups                                                                                 m_aGroups;
      44             :     private:
      45             :         OGroups& operator=(const OGroups&);
      46             :         OGroups(const OGroups&);
      47             :         void checkIndex(sal_Int32 _nIndex);
      48             :     protected:
      49             :         // TODO: VirtualFunctionFinder: This is virtual function!
      50             : 
      51             :         virtual ~OGroups();
      52             : 
      53             :         /** this function is called upon disposing the component
      54             :         */
      55             :         // TODO: VirtualFunctionFinder: This is virtual function!
      56             : 
      57             :         virtual void SAL_CALL disposing() SAL_OVERRIDE;
      58             :     public:
      59             :         OGroups( const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportDefinition >& _xParent
      60             :                 ,const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& context);
      61             : 
      62             :         void copyGroups(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XGroups >& _xSource);
      63             : 
      64             :     // XGroups
      65             :         // Attributes
      66             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportDefinition > SAL_CALL getReportDefinition() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      67             :         // Methods
      68             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::report::XGroup > SAL_CALL createGroup(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      69             :     // XIndexContainer
      70             :         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;
      71             :         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;
      72             :     // XIndexReplace
      73             :         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;
      74             :     // XIndexAccess
      75             :         virtual ::sal_Int32 SAL_CALL getCount(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      76             :         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;
      77             :     // XElementAccess
      78             :         virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      79             :         virtual sal_Bool SAL_CALL hasElements(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      80             :     // XChild
      81             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getParent(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      82             :         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;
      83             :     // XContainer
      84             :         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;
      85             :         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;
      86             : 
      87             :         // XComponent
      88             :         virtual void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      89           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
      90             :         {
      91           0 :             cppu::WeakComponentImplHelperBase::addEventListener(aListener);
      92           0 :         }
      93           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
      94             :         {
      95           0 :             cppu::WeakComponentImplHelperBase::removeEventListener(aListener);
      96           0 :         }
      97             :     };
      98             : }
      99             : #endif // REPORTDESIGN_API_GROUPS_HXX
     100             : 
     101             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10