35 m_pWindow ( nullptr ),
67 css::frame::FeatureStateEvent
aEvent;
71 aEvent.Source =
static_cast<css::frame::XDispatch*
>(
this);
84 m_xIntercepted->registerDispatchProviderInterceptor(
static_cast<XDispatchProviderInterceptor*
>(
this) );
103 const URL& aURL,
const OUString& aTargetFrameName, sal_Int32 nSearchFlags )
106 Reference< XDispatch > xResult;
110 bool bHelpURL =
aURL.Complete.toAsciiLowerCase().match(
"vnd.sun.star.help",0);
114 DBG_ASSERT( xResult.is(),
"invalid dispatch" );
124 const Sequence< DispatchDescriptor >& aDescripts )
127 Sequence< Reference< XDispatch > > aReturn( aDescripts.getLength() );
128 std::transform(aDescripts.begin(), aDescripts.end(), aReturn.getArray(),
129 [
this](
const DispatchDescriptor& rDescr) -> Reference<XDispatch> {
130 return queryDispatch(rDescr.FeatureURL, rDescr.FrameName, rDescr.SearchFlags); });
170 Sequence<OUString> aURLList {
"vnd.sun.star.help://*" };
178 const URL& aURL,
const Sequence< css::beans::PropertyValue >& )
180 bool bBack =
aURL.Complete ==
".uno:Backward";
181 if ( !bBack &&
aURL.Complete !=
".uno:Forward" )
190 : std::numeric_limits<std::size_t>::max();
192 if (
nPos < std::numeric_limits<std::size_t>::max() )
202 const Reference< XStatusListener >& xControl,
const URL& )
210 const Reference< XStatusListener >&,
const URL&)
239 Reference < XDispatch >
const & aDispatch, URL
const & rURL)
241 aDispatch->addStatusListener(
this, rURL);
247 xDispatch->removeStatusListener(
this, css::util::URL());
251 const FeatureStateEvent& rEvent )
258 xDispatch->removeStatusListener(
this, css::util::URL());
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch(const css::util::URL &aURL, const OUString &aTargetFrameName, sal_Int32 nSearchFlags) override
virtual void SAL_CALL dispatch(const css::util::URL &aURL, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override
css::uno::Reference< css::frame::XDispatchProvider > m_xSlaveDispatcher
void setInterception(const css::uno::Reference< css::frame::XFrame > &xFrame)
virtual void SAL_CALL removeStatusListener(const css::uno::Reference< css::frame::XStatusListener > &xControl, const css::util::URL &aURL) override
virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches(const css::uno::Sequence< css::frame::DispatchDescriptor > &aDescripts) override
virtual void SAL_CALL addStatusListener(const css::uno::Reference< css::frame::XStatusListener > &xControl, const css::util::URL &aURL) override
virtual css::uno::Reference< css::frame::XDispatchProvider > SAL_CALL getSlaveDispatchProvider() override
css::uno::Reference< css::frame::XStatusListener > m_xListener
virtual css::uno::Sequence< OUString > SAL_CALL getInterceptedURLs() override
css::uno::Reference< css::frame::XDispatchProviderInterception > m_xIntercepted
VclPtr< SfxHelpWindow_Impl > m_pWindow
std::vector< OUString > m_vHistoryUrls
void addURL(const OUString &rURL)
virtual void SAL_CALL setMasterDispatchProvider(const css::uno::Reference< css::frame::XDispatchProvider > &xNewMaster) override
bool HasHistorySucc() const
virtual void SAL_CALL setSlaveDispatchProvider(const css::uno::Reference< css::frame::XDispatchProvider > &xNewSlave) override
virtual ~HelpInterceptor_Impl() override
virtual css::uno::Reference< css::frame::XDispatchProvider > SAL_CALL getMasterDispatchProvider() override
bool HasHistoryPred() const
friend class HelpDispatch_Impl
css::uno::Reference< css::frame::XDispatchProvider > m_xMasterDispatcher
virtual void SAL_CALL statusChanged(const css::frame::FeatureStateEvent &Event) override
HelpInterceptor_Impl * pInterceptor
virtual void SAL_CALL disposing(const css::lang::EventObject &obj) override
Link< HelpListener_Impl &, void > aChangeLink
HelpListener_Impl(HelpInterceptor_Impl *pInter)
css::uno::Reference< css::frame::XDispatch > xDispatch
virtual void SAL_CALL disposing(const css::lang::EventObject &obj) override
css::frame::FeatureStateEvent aStateEvent
virtual ~HelpStatusListener_Impl() override
virtual void SAL_CALL statusChanged(const css::frame::FeatureStateEvent &Event) override
HelpStatusListener_Impl(css::uno::Reference< css::frame::XDispatch > const &xDispatch, css::util::URL const &rURL)
OUString GetHost(DecodeMechanism eMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
#define DBG_ASSERT(sCon, aError)
Reference< XController > xController
Reference< XFrame > xFrame