22#include <com/sun/star/awt/XWindow.hpp>
23#include <com/sun/star/frame/XFrame.hpp>
30 class XComponentContext;
53 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
56 css::uno::WeakReference< css::frame::XFrame >
m_xFrame;
59 css::uno::WeakReference< css::awt::XWindow >
m_xWindow;
78 const css::uno::Reference< css::frame::XFrame >& xFrame);
internal helper to bind e.g.
css::uno::WeakReference< css::frame::XFrame > m_xFrame
knows the frame, where we dispatch our commands as weak reference
~WindowCommandDispatch()
used to free internal resources.
css::uno::WeakReference< css::awt::XWindow > m_xWindow
knows the VCL window (where the hard coded commands occurred) as weak XWindow reference
void impl_startListening()
establish all listener connections we need.
css::uno::Reference< css::uno::XComponentContext > m_xContext
can be used to create own needed services on demand.
DECL_LINK(impl_notifyCommand, VclWindowEvent &, void)
callback from VCL to notify new commands
void impl_stopListening()
drop all listener connections we need.
WindowCommandDispatch(css::uno::Reference< css::uno::XComponentContext > xContext, const css::uno::Reference< css::frame::XFrame > &xFrame)
creates a new instance and initialize it with all necessary parameters.