22#include <com/sun/star/frame/XDispatch.hpp>
23#include <com/sun/star/frame/XLayoutManager.hpp>
24#include <com/sun/star/container/XNameAccess.hpp>
25#include <com/sun/star/ui/XUIConfigurationManager.hpp>
28#include <rtl/ustring.hxx>
37 using svt::PopupMenuControllerBase::disposing;
49 virtual void SAL_CALL
setPopupMenu(
const css::uno::Reference< css::awt::XPopupMenu >&
PopupMenu )
override;
52 virtual void SAL_CALL
statusChanged(
const css::frame::FeatureStateEvent& Event )
override;
55 virtual void SAL_CALL
itemSelected(
const css::awt::MenuEvent& rEvent )
override;
56 virtual void SAL_CALL
itemActivated(
const css::awt::MenuEvent& rEvent )
override;
59 virtual void SAL_CALL
disposing(
const css::lang::EventObject&
Source )
override;
63 css::uno::Reference< css::frame::XDispatch >
xDispatch;
65 css::uno::Sequence< css::beans::PropertyValue >
aArgs;
72 virtual void initializeImpl( std::unique_lock<std::mutex>& rGuard,
const css::uno::Sequence< css::uno::Any >& aArguments )
override;
74 void fillPopupMenu( css::uno::Reference< css::awt::XPopupMenu >
const & rPopupMenu );
75 css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > >
getLayoutManagerToolbars(
const css::uno::Reference< css::frame::XLayoutManager >& rLayoutManager );
77 void addCommand( css::uno::Reference< css::awt::XPopupMenu >
const & rPopupMenu,
const OUString& rCommandURL,
const OUString&
aLabel );
79 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
82 css::uno::Reference< css::ui::XUIConfigurationManager >
m_xDocCfgMgr;
constexpr OUStringLiteral sServiceName