LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/framework/inc/helper - propertysetcontainer.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2013-07-09 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 __FRAMEWORK_HELPER_PROPERTYSETCONTAINER_HXX_
      21             : #define __FRAMEWORK_HELPER_PROPERTYSETCONTAINER_HXX_
      22             : 
      23             : /** Attention: stl headers must(!) be included at first. Otherwhise 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 <threadhelp/threadhelpbase.hxx>
      31             : #include <framework/fwedllapi.h>
      32             : 
      33             : namespace framework
      34             : {
      35             : 
      36             : class FWE_DLLPUBLIC PropertySetContainer : public com::sun::star::container::XIndexContainer    ,
      37             :                              public ThreadHelpBase                              ,   // Struct for right initalization of mutex member! Must be first of baseclasses.
      38             :                              public ::cppu::OWeakObject
      39             : {
      40             :     public:
      41             :         PropertySetContainer();
      42             :         virtual ~PropertySetContainer();
      43             : 
      44             :         // XInterface
      45             :         virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType )
      46             :             throw (::com::sun::star::uno::RuntimeException);
      47             :         virtual void SAL_CALL acquire() throw ();
      48             :         virtual void SAL_CALL release() throw ();
      49             : 
      50             :         // XIndexContainer
      51             :         virtual void SAL_CALL insertByIndex( sal_Int32 Index, const ::com::sun::star::uno::Any& Element )
      52             :             throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
      53             : 
      54             :         virtual void SAL_CALL removeByIndex( sal_Int32 Index )
      55             :             throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
      56             : 
      57             :         // XIndexReplace
      58             :         virtual void SAL_CALL replaceByIndex( sal_Int32 Index, const ::com::sun::star::uno::Any& Element )
      59             :             throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
      60             : 
      61             :         // XIndexAccess
      62             :         virtual sal_Int32 SAL_CALL getCount()
      63             :             throw (::com::sun::star::uno::RuntimeException);
      64             : 
      65             :         virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index )
      66             :             throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
      67             : 
      68             :         // XElementAccess
      69           0 :         virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
      70             :             throw (::com::sun::star::uno::RuntimeException)
      71             :         {
      72           0 :             return ::getCppuType((com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet >*)0);
      73             :         }
      74             : 
      75             :         virtual sal_Bool SAL_CALL hasElements()
      76             :             throw (::com::sun::star::uno::RuntimeException);
      77             : 
      78             :     private:
      79             :         typedef std::vector< com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > > PropertySetVector;
      80             :         PropertySetVector                                                               m_aPropertySetVector;
      81             : 
      82             : };
      83             : 
      84             : }
      85             : 
      86             : #endif // __FRAMEWORK_CLASSES_PROPERTYSETCONTAINER_HXX_
      87             : 
      88             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10