1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: unoshcol.hxx,v $
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>
36 #ifndef _COM_SUN_STAR_DRAWING_XSHAPES_HPP_
37 #include <com/sun/star/drawing/XShapes.hpp>
39 #ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_
40 #include <com/sun/star/lang/XServiceInfo.hpp>
42 #ifndef _CPPUHELPER_INTERFACECONTAINER_HXX_
43 #include <cppuhelper/interfacecontainer.hxx>
46 #include <cppuhelper/implbase3.hxx>
51 class SvxShapeCollectionMutex
57 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> SvxShapeCollection_NewInstance() throw();
59 /***********************************************************************
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
70 cppu::OInterfaceContainerHelper maShapeContainer
;
72 cppu::OBroadcastHelper mrBHelper
;
74 virtual void disposing() throw();
77 SvxShapeCollection() throw();
78 virtual ~SvxShapeCollection() throw();
81 virtual void SAL_CALL
release() throw();
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
);
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
);
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
);
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
);
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