22#include <com/sun/star/frame/XNotifyingDispatch.hpp>
23#include <com/sun/star/frame/XDispatch.hpp>
24#include <com/sun/star/frame/XDispatchProvider.hpp>
25#include <com/sun/star/lang/XServiceInfo.hpp>
26#include <com/sun/star/uno/XComponentContext.hpp>
27#include <com/sun/star/util/URL.hpp>
28#include <com/sun/star/beans/PropertyValue.hpp>
29#include <com/sun/star/frame/XStatusListener.hpp>
46 css::lang::XServiceInfo,
47 css::frame::XDispatchProvider,
48 css::frame::XNotifyingDispatch>
54 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
60 MailToDispatcher( css::uno::Reference< css::uno::XComponentContext > xContext );
69 virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL
queryDispatch (
const css::util::URL& aURL ,
70 const OUString& sTarget ,
71 sal_Int32 nFlags )
override;
72 virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL
queryDispatches(
const css::uno::Sequence< css::frame::DispatchDescriptor >& lDescriptor )
override;
76 const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
77 const css::uno::Reference< css::frame::XDispatchResultListener >& xListener )
override;
80 virtual void SAL_CALL
dispatch (
const css::util::URL& aURL ,
81 const css::uno::Sequence< css::beans::PropertyValue >& lArguments )
override;
82 virtual void SAL_CALL
addStatusListener (
const css::uno::Reference< css::frame::XStatusListener >& xListener ,
83 const css::util::URL& aURL )
override;
84 virtual void SAL_CALL
removeStatusListener(
const css::uno::Reference< css::frame::XStatusListener >& xListener ,
85 const css::util::URL& aURL )
override;
protocol handler for "mailto:" URLs @descr It's a special dispatch object which is used registered fo...
MailToDispatcher(css::uno::Reference< css::uno::XComponentContext > xContext)
standard ctor @descr This initializes a new instance of this class with needed information for work.
virtual void SAL_CALL removeStatusListener(const css::uno::Reference< css::frame::XStatusListener > &xListener, const css::util::URL &aURL) override
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch(const css::util::URL &aURL, const OUString &sTarget, sal_Int32 nFlags) override
decide if this dispatch implementation can be used for requested URL or not @descr A protocol handler...
bool implts_dispatch(const css::util::URL &aURL)
threadsafe helper for dispatch calls @descr We support two interfaces for the same process - dispatch...
virtual void SAL_CALL addStatusListener(const css::uno::Reference< css::frame::XStatusListener > &xListener, const css::util::URL &aURL) override
add/remove listener for state events @descr Because we use an external process to forward such mail U...
virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches(const css::uno::Sequence< css::frame::DispatchDescriptor > &lDescriptor) override
do the same like dispatch() but for multiple requests at the same time
css::uno::Reference< css::uno::XComponentContext > m_xContext
reference to global uno service manager which had created us
virtual void SAL_CALL dispatch(const css::util::URL &aURL, const css::uno::Sequence< css::beans::PropertyValue > &lArguments) override
dispatch URL with arguments @descr We use threadsafe internal method to do so.
virtual void SAL_CALL dispatchWithNotification(const css::util::URL &aURL, const css::uno::Sequence< css::beans::PropertyValue > &lArguments, const css::uno::Reference< css::frame::XDispatchResultListener > &xListener) override
dispatch with guaranteed notifications about success @descr We use threadsafe internal method to do s...
virtual ~MailToDispatcher() override
standard dtor
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL supportsService(const OUString &sServiceName) override
virtual OUString SAL_CALL getImplementationName() override