Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_svx / unoshcol.hxx
blobc7ffc4c06c35e056e36a5a43d1618d55758330e1
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: unoshcol.hxx,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SVX_UNOSHGRP_HXX
31 #define _SVX_UNOSHGRP_HXX
33 #ifndef _COM_SUN_STAR_LANG_XCOMPONENT_HPP_
34 #include <com/sun/star/lang/XComponent.hpp>
35 #endif
36 #ifndef _COM_SUN_STAR_DRAWING_XSHAPES_HPP_
37 #include <com/sun/star/drawing/XShapes.hpp>
38 #endif
39 #ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_
40 #include <com/sun/star/lang/XServiceInfo.hpp>
41 #endif
42 #ifndef _CPPUHELPER_INTERFACECONTAINER_HXX_
43 #include <cppuhelper/interfacecontainer.hxx>
44 #endif
46 #include <cppuhelper/implbase3.hxx>
47 namespace binfilter {
49 class XShapeList;
51 class SvxShapeCollectionMutex
53 public:
54 ::osl::Mutex maMutex;
57 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SvxShapeCollection_NewInstance() throw();
59 /***********************************************************************
60 * *
61 ***********************************************************************/
62 class SvxShapeCollection : public ::cppu::WeakAggImplHelper3<
63 ::com::sun::star::drawing::XShapes,
64 ::com::sun::star::lang::XServiceInfo,
65 ::com::sun::star::lang::XComponent
67 public SvxShapeCollectionMutex
69 private:
70 cppu::OInterfaceContainerHelper maShapeContainer;
72 cppu::OBroadcastHelper mrBHelper;
74 virtual void disposing() throw();
76 public:
77 SvxShapeCollection() throw();
78 virtual ~SvxShapeCollection() throw();
80 // XInterface
81 virtual void SAL_CALL release() throw();
83 // XComponent
84 virtual void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException);
85 virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw(::com::sun::star::uno::RuntimeException);
86 virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw(::com::sun::star::uno::RuntimeException);
88 // XIndexAccess
89 virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException) ;
90 virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) throw(::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
92 // XElementAccess
93 virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw(::com::sun::star::uno::RuntimeException);
94 virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
96 // XShapes
97 virtual void SAL_CALL add( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(::com::sun::star::uno::RuntimeException);
98 virtual void SAL_CALL remove( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(::com::sun::star::uno::RuntimeException);
100 // XServiceInfo
101 virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
102 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
103 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
106 }//end of namespace binfilter
107 #endif