LCOV - code coverage report
Current view: top level - framework/inc/helper - propertysetcontainer.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 2 0.0 %
Date: 2015-06-13 12:38:46 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             : 
      20             : #ifndef INCLUDED_FRAMEWORK_INC_HELPER_PROPERTYSETCONTAINER_HXX
      21             : #define INCLUDED_FRAMEWORK_INC_HELPER_PROPERTYSETCONTAINER_HXX
      22             : 
      23             : /** Attention: stl headers must(!) be included at first. Otherwise it can make trouble
      24             :                with solaris headers ...
      25             : */
      26             : #include <vector>
      27             : #include <cppuhelper/weak.hxx>
      28             : #include <com/sun/star/container/XIndexContainer.hpp>
      29             : #include <com/sun/star/beans/XPropertySet.hpp>
      30             : #include <framework/fwedllapi.h>
      31             : 
      32             : namespace framework
      33             : {
      34             : 
      35             : class FWE_DLLPUBLIC PropertySetContainer : public com::sun::star::container::XIndexContainer    ,
      36             :                              public ::cppu::OWeakObject
      37             : {
      38             :     public:
      39             :         PropertySetContainer();
      40             :         virtual ~PropertySetContainer();
      41             : 
      42             :         // XInterface
      43             :         virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType )
      44             :             throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      45             :         virtual void SAL_CALL acquire() throw () SAL_OVERRIDE;
      46             :         virtual void SAL_CALL release() throw () SAL_OVERRIDE;
      47             : 
      48             :         // XIndexContainer
      49             :         virtual void SAL_CALL insertByIndex( sal_Int32 Index, const ::com::sun::star::uno::Any& Element )
      50             :             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;
      51             : 
      52             :         virtual void SAL_CALL removeByIndex( sal_Int32 Index )
      53             :             throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      54             : 
      55             :         // XIndexReplace
      56             :         virtual void SAL_CALL replaceByIndex( sal_Int32 Index, const ::com::sun::star::uno::Any& Element )
      57             :             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;
      58             : 
      59             :         // XIndexAccess
      60             :         virtual sal_Int32 SAL_CALL getCount()
      61             :             throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      62             : 
      63             :         virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index )
      64             :             throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      65             : 
      66             :         // XElementAccess
      67           0 :         virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
      68             :             throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      69             :         {
      70           0 :             return cppu::UnoType<com::sun::star::beans::XPropertySet>::get();
      71             :         }
      72             : 
      73             :         virtual sal_Bool SAL_CALL hasElements()
      74             :             throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      75             : 
      76             :     private:
      77             :         typedef std::vector< com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > > PropertySetVector;
      78             :         PropertySetVector                                                               m_aPropertySetVector;
      79             : 
      80             : };
      81             : 
      82             : }
      83             : 
      84             : #endif // __FRAMEWORK_CLASSES_PROPERTYSETCONTAINER_HXX_
      85             : 
      86             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11