fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / framework / inc / dispatch / systemexec.hxx
blobb4517e918e8fb3c54bd12b03a7009851b8485c18
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_DISPATCH_SYSTEMEXEC_HXX
21 #define INCLUDED_FRAMEWORK_INC_DISPATCH_SYSTEMEXEC_HXX
23 #include <macros/generic.hxx>
24 #include <macros/xinterface.hxx>
25 #include <macros/xtypeprovider.hxx>
26 #include <macros/xserviceinfo.hxx>
27 #include <general.h>
28 #include <stdtypes.h>
30 #include <com/sun/star/lang/XTypeProvider.hpp>
31 #include <com/sun/star/frame/XNotifyingDispatch.hpp>
32 #include <com/sun/star/frame/XDispatch.hpp>
33 #include <com/sun/star/frame/XDispatchProvider.hpp>
34 #include <com/sun/star/util/URL.hpp>
35 #include <com/sun/star/beans/PropertyValue.hpp>
36 #include <com/sun/star/frame/XStatusListener.hpp>
38 #include <cppuhelper/implbase3.hxx>
40 namespace framework{
42 /**
43 @short protocol handler for "systemexec:*" URLs
44 @descr It's a special dispatch/provider object which is registered for such URL pattern and will
45 be automatically used by the framework dispatch mechanism if such URL occurred.
46 It forwards all URL's to the underlying operating system.
47 So it would e.g. be possible to open HTML files outside the office within a web browser.
49 @base OWeakObject
50 provides XWeak and ref count mechanism
52 @devstatus ready to use
54 class SystemExec : public ::cppu::WeakImplHelper3<
55 css::lang::XServiceInfo ,
56 css::frame::XDispatchProvider ,
57 css::frame::XNotifyingDispatch > // => XDispatch
59 /* member */
60 private:
62 /// reference to global uno service manager which had created us
63 css::uno::Reference< css::uno::XComponentContext > m_xContext;
65 /* interface */
66 public:
68 // ctor/dtor
69 SystemExec( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
70 virtual ~SystemExec( );
72 // XInterface, XTypeProvider, XServiceInfo
73 DECLARE_XSERVICEINFO
75 // XDispatchProvider
76 virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch ( const css::util::URL& aURL ,
77 const OUString& sTarget ,
78 sal_Int32 nFlags ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
79 virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches( const css::uno::Sequence< css::frame::DispatchDescriptor >& lDescriptor ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
81 // XNotifyingDispatch
82 virtual void SAL_CALL dispatchWithNotification( const css::util::URL& aURL ,
83 const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
84 const css::uno::Reference< css::frame::XDispatchResultListener >& xListener ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
86 // XDispatch
87 virtual void SAL_CALL dispatch ( const css::util::URL& aURL ,
88 const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
89 virtual void SAL_CALL addStatusListener ( const css::uno::Reference< css::frame::XStatusListener >& xListener ,
90 const css::util::URL& aURL ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
91 virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xListener ,
92 const css::util::URL& aURL ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
94 /* internal */
95 private:
97 void impl_notifyResultListener(const css::uno::Reference< css::frame::XDispatchResultListener >& xListener,
98 const sal_Int16 nState );
100 }; // class SystemExec
102 } // namespace framework
104 #endif // INCLUDED_FRAMEWORK_INC_DISPATCH_SYSTEMEXEC_HXX
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */