Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef _SW_UNOMODULE_HXX
30 : : #define _SW_UNOMODULE_HXX
31 : :
32 : : #include <rtl/ustring.hxx>
33 : : #include <com/sun/star/frame/XDispatchProvider.hpp>
34 : : #include <com/sun/star/frame/XNotifyingDispatch.hpp>
35 : : #include <com/sun/star/uno/RuntimeException.hpp>
36 : : #include <com/sun/star/frame/DispatchDescriptor.hpp>
37 : : #include <com/sun/star/uno/Reference.h>
38 : : #include <cppuhelper/implbase3.hxx>
39 : :
40 : : #include <com/sun/star/lang/XServiceInfo.hpp>
41 : :
42 : : namespace com
43 : : {
44 : : namespace sun
45 : : {
46 : : namespace star
47 : : {
48 : : namespace lang
49 : : {
50 : : class XMultiServiceFactory;
51 : : }
52 : : namespace beans
53 : : {
54 : : struct PropertyValue;
55 : : }
56 : : }
57 : : }
58 : : }
59 : :
60 : : #define REFERENCE ::com::sun::star::uno::Reference
61 : : #define SEQUENCE ::com::sun::star::uno::Sequence
62 : : #define RUNTIMEEXCEPTION ::com::sun::star::uno::RuntimeException
63 : : #define REFERENCE ::com::sun::star::uno::Reference
64 : : #define SEQUENCE ::com::sun::star::uno::Sequence
65 : : #define XDISPATCH ::com::sun::star::frame::XDispatch
66 : : #define XNOTIFYINGDISPATCH ::com::sun::star::frame::XNotifyingDispatch
67 : : #define UNOURL ::com::sun::star::util::URL
68 : : #define DISPATCHDESCRIPTOR ::com::sun::star::frame::DispatchDescriptor
69 : :
70 [ # # ]: 0 : class SwUnoModule : public ::cppu::WeakImplHelper3< ::com::sun::star::frame::XDispatchProvider, ::com::sun::star::frame::XNotifyingDispatch, ::com::sun::star::lang::XServiceInfo >
71 : : {
72 : : REFERENCE < ::com::sun::star::lang::XMultiServiceFactory > m_xFactory;
73 : :
74 : : public:
75 : 0 : SwUnoModule( const REFERENCE < ::com::sun::star::lang::XMultiServiceFactory >& xFactory )
76 : 0 : : m_xFactory( xFactory )
77 : 0 : {}
78 : :
79 : : // XNotifyingDispatch
80 : : virtual void SAL_CALL dispatchWithNotification( const ::com::sun::star::util::URL& aURL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgs, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchResultListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
81 : :
82 : : // XDispatch
83 : : virtual void SAL_CALL dispatch( const ::com::sun::star::util::URL& aURL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgs ) throw( ::com::sun::star::uno::RuntimeException );
84 : : virtual void SAL_CALL addStatusListener(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xControl, const ::com::sun::star::util::URL& aURL) throw( ::com::sun::star::uno::RuntimeException );
85 : : virtual void SAL_CALL removeStatusListener(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xControl, const ::com::sun::star::util::URL& aURL) throw( ::com::sun::star::uno::RuntimeException );
86 : :
87 : : // XDispatchProvider
88 : : virtual SEQUENCE< REFERENCE< XDISPATCH > > SAL_CALL queryDispatches( const SEQUENCE< DISPATCHDESCRIPTOR >& seqDescriptor ) throw( RUNTIMEEXCEPTION ) ;
89 : : virtual REFERENCE< XDISPATCH > SAL_CALL queryDispatch( const UNOURL & aURL ,
90 : : const ::rtl::OUString & sTargetFrameName,
91 : : sal_Int32 eSearchFlags ) throw( RUNTIMEEXCEPTION ) ;
92 : : // XServiceInfo
93 : : virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
94 : : virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
95 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException);
96 : : };
97 : :
98 : : #endif
99 : :
100 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|