21#include <com/sun/star/frame/XDispatchProvider.hpp>
22#include <com/sun/star/frame/XDispatch.hpp>
23#include <com/sun/star/util/URLTransformer.hpp>
24#include <com/sun/star/util/XURLTransformer.hpp>
34 const uno::Reference<frame::XDispatchProvider>& rxDispatchProvider,
35 const OUString& rSlotName)
36 : mxDispatchProviderWeak(nullptr)
56 const uno::Reference<frame::XDispatchProvider>& rxDispatchProvider)
95 aURL.Complete = rSlotName;
97 uno::Reference<util::XURLTransformer> xTransformer(util::URLTransformer::create(::comphelper::getProcessComponentContext()));
98 xTransformer->parseStrict(
aURL);
103uno::Reference<frame::XDispatch>
106 uno::Reference<frame::XDispatch>
xDispatch;
109 if (xDispatchProvider.is())
110 xDispatch = xDispatchProvider->queryDispatch(rURL, OUString(), 0);
116 const frame::FeatureStateEvent& rState)
119 OUString sSlotName (rState.FeatureURL.Complete);
130 xDispatch->removeStatusListener(
this,rURL);
138 const lang::EventObject& )
146 throw lang::DisposedException (
"SlideSorterController object has already been disposed",
147 static_cast<uno::XWeak*
>(
this));
Reference< XDispatch > xDispatch