fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / framework / inc / helper / propertysetcontainer.hxx
blob2db5698e3d44458418be66a2b71d0d7b4eb2995f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 ...
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>
32 namespace framework
35 class FWE_DLLPUBLIC PropertySetContainer : public com::sun::star::container::XIndexContainer ,
36 public ::cppu::OWeakObject
38 public:
39 PropertySetContainer();
40 virtual ~PropertySetContainer();
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;
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;
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;
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;
59 // XIndexAccess
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;
66 // XElementAccess
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;
76 private:
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: */