1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_FRAMEWORK_INC_HELPER_PROPERTYSETCONTAINER_HXX
21 #define INCLUDED_FRAMEWORK_INC_HELPER_PROPERTYSETCONTAINER_HXX
23 /** Attention: stl headers must(!) be included at first. Otherwise it can make trouble
24 with solaris headers ...
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>
35 class FWE_DLLPUBLIC PropertySetContainer
: public com::sun::star::container::XIndexContainer
,
36 public ::cppu::OWeakObject
39 PropertySetContainer();
40 virtual ~PropertySetContainer();
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
;
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
;
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
;
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
;
60 virtual sal_Int32 SAL_CALL
getCount()
61 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
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
;
67 virtual ::com::sun::star::uno::Type SAL_CALL
getElementType()
68 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
70 return cppu::UnoType
<com::sun::star::beans::XPropertySet
>::get();
73 virtual sal_Bool SAL_CALL
hasElements()
74 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
77 typedef std::vector
< com::sun::star::uno::Reference
< com::sun::star::beans::XPropertySet
> > PropertySetVector
;
78 PropertySetVector m_aPropertySetVector
;
84 #endif // __FRAMEWORK_CLASSES_PROPERTYSETCONTAINER_HXX_
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */