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

Generated by: LCOV version 1.10