Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_svx / unomod.hxx
blob96fb3ef89be4b9433510bb6a3829b0da7e579c0a
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: unomod.hxx,v $
10 * $Revision: 1.4 $
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 ************************************************************************/
31 #ifndef SVX_UNOMOD_HXX
32 #define SVX_UNOMOD_HXX
34 #ifndef _COM_SUN_STAR_DOCUMENT_EVENTOBJECT_HPP_
35 #include <com/sun/star/document/EventObject.hpp>
36 #endif
38 #ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
39 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
40 #endif
41 namespace binfilter {
43 class SdrHint;
44 class SdrModel;
46 class SvxUnoDrawMSFactory : public ::com::sun::star::lang::XMultiServiceFactory
48 public:
49 SvxUnoDrawMSFactory() throw() {};
51 virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createInstance( const ::rtl::OUString& aServiceSpecifier ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
52 virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createInstanceWithArguments( const ::rtl::OUString& ServiceSpecifier, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Arguments ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
53 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getAvailableServiceNames( ) throw(::com::sun::star::uno::RuntimeException);
55 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createTextField( const ::rtl::OUString& aServiceSpecifier ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
56 // internal
57 ::com::sun::star::uno::Sequence< ::rtl::OUString >
58 concatServiceNames( ::com::sun::star::uno::Sequence< ::rtl::OUString >& rServices1,
59 ::com::sun::star::uno::Sequence< ::rtl::OUString >& rServices2 ) throw();
61 /** fills the given EventObject from the given SdrHint.
62 @returns
63 true if the SdrHint could be translated to an EventObject<br>
64 false if not
66 static sal_Bool createEvent( const SdrModel* pDoc, const SdrHint* pSdrHint, ::com::sun::star::document::EventObject& aEvent );
69 }//end of namespace binfilter
70 #endif