LibreOffice Module framework (master) 1
|
#include <toolbarsmenucontroller.hxx>
Classes | |
struct | ExecuteInfo |
Public Member Functions | |
ToolbarsMenuController (const css::uno::Reference< css::uno::XComponentContext > &xContext) | |
virtual | ~ToolbarsMenuController () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &sServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual void SAL_CALL | setPopupMenu (const css::uno::Reference< css::awt::XPopupMenu > &PopupMenu) override |
virtual void SAL_CALL | statusChanged (const css::frame::FeatureStateEvent &Event) override |
virtual void SAL_CALL | itemSelected (const css::awt::MenuEvent &rEvent) override |
virtual void SAL_CALL | itemActivated (const css::awt::MenuEvent &rEvent) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
DECL_STATIC_LINK (ToolbarsMenuController, ExecuteHdl_Impl, void *, void) | |
Private Member Functions | |
virtual void | initializeImpl (std::unique_lock< std::mutex > &rGuard, const css::uno::Sequence< css::uno::Any > &aArguments) override |
void | fillPopupMenu (css::uno::Reference< css::awt::XPopupMenu > const &rPopupMenu) |
css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > | getLayoutManagerToolbars (const css::uno::Reference< css::frame::XLayoutManager > &rLayoutManager) |
css::uno::Reference< css::frame::XDispatch > | getDispatchFromCommandURL (const OUString &rCommandURL) |
void | addCommand (css::uno::Reference< css::awt::XPopupMenu > const &rPopupMenu, const OUString &rCommandURL, const OUString &aLabel) |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::container::XNameAccess > | m_xPersistentWindowState |
css::uno::Reference< css::ui::XUIConfigurationManager > | m_xModuleCfgMgr |
css::uno::Reference< css::ui::XUIConfigurationManager > | m_xDocCfgMgr |
bool | m_bResetActive |
std::vector< OUString > | m_aCommandVector |
IntlWrapper | m_aIntlWrapper |
Definition at line 35 of file toolbarsmenucontroller.hxx.
framework::ToolbarsMenuController::ToolbarsMenuController | ( | const css::uno::Reference< css::uno::XComponentContext > & | xContext | ) |
Definition at line 145 of file toolbarsmenucontroller.cxx.
|
overridevirtual |
Definition at line 153 of file toolbarsmenucontroller.cxx.
|
private |
Definition at line 157 of file toolbarsmenucontroller.cxx.
References aLabel, aProperties, vcl::CommandInfoProvider::GetCommandProperties(), getDispatchFromCommandURL(), vcl::CommandInfoProvider::GetMenuLabelForCommand(), Application::GetSettings(), AllSettings::GetStyleSettings(), StyleSettings::GetUseImagesInMenus(), vcl::CommandInfoProvider::GetXGraphicForCommand(), m_aCommandVector, m_xFrame, and STATIC_INTERNAL_CMD_PART.
Referenced by fillPopupMenu().
framework::ToolbarsMenuController::DECL_STATIC_LINK | ( | ToolbarsMenuController | , |
ExecuteHdl_Impl | , | ||
void * | , | ||
void | |||
) |
|
overridevirtual |
Definition at line 446 of file toolbarsmenucontroller.cxx.
References m_aMutex, m_xContext, m_xDispatch, m_xDocCfgMgr, m_xFrame, and m_xModuleCfgMgr.
|
private |
Definition at line 292 of file toolbarsmenucontroller.cxx.
References a, aCommand, addCommand(), Any, aUIName, bVisible, CMD_LOCKTOOLBARS, CMD_RESTOREVISIBILITY, framework::CompareToolBarEntry(), Exception, framework::fillHashMap(), FwkResId(), IntlWrapper::getCaseCollator(), framework::getLayoutManagerFromFrame(), getLayoutManagerToolbars(), SvtCommandOptions::HasEntriesDisabled(), i, SvtCommandOptions::LookupDisabled(), m_aCommandVector, m_aIntlWrapper, m_bResetActive, m_xDocCfgMgr, m_xFrame, m_xModuleCfgMgr, m_xPersistentWindowState, n, nCount, nIndex, STATIC_CMD_PART, WINDOWSTATE_PROPERTY_CONTEXT, WINDOWSTATE_PROPERTY_HIDEFROMENU, WINDOWSTATE_PROPERTY_UINAME, and WINDOWSTATE_PROPERTY_VISIBLE.
Referenced by itemActivated(), and setPopupMenu().
|
private |
Definition at line 195 of file toolbarsmenucontroller.cxx.
References aTargetURL, m_xFrame, URL, and xFrame.
Referenced by addCommand().
|
overridevirtual |
Definition at line 127 of file toolbarsmenucontroller.cxx.
|
private |
Definition at line 238 of file toolbarsmenucontroller.cxx.
References aSeq, aToolBarResName, aToolBarUIName, Exception, framework::g_aPropResourceURL(), framework::g_aPropUIName(), VCLUnoHelper::GetWindow(), i, comphelper::makePropertyValue(), nCount, and nType.
Referenced by fillPopupMenu().
|
overridevirtual |
Definition at line 137 of file toolbarsmenucontroller.cxx.
References framework::SERVICENAME_POPUPMENUCONTROLLER.
|
overrideprivatevirtual |
Definition at line 722 of file toolbarsmenucontroller.cxx.
References aArguments, Exception, m_xContext, m_xDocCfgMgr, m_xFrame, m_xModuleCfgMgr, m_xPersistentWindowState, xController, and xModel.
|
overridevirtual |
Definition at line 662 of file toolbarsmenucontroller.cxx.
References aTargetURL, CMD_RESTOREVISIBILITY, fillPopupMenu(), i, m_aCommandVector, m_aMutex, m_bResetActive, m_xFrame, nCount, STATIC_INTERNAL_CMD_PART, statusChanged(), URL, and xDispatch.
|
overridevirtual |
Definition at line 509 of file toolbarsmenucontroller.cxx.
References framework::ToolbarsMenuController::ExecuteInfo::aArgs, Any, framework::ToolbarsMenuController::ExecuteInfo::aTargetURL, aTargetURL, aToolBarResName, bVisible, Exception, framework::getLayoutManagerFromFrame(), i, LINK, m_aMutex, m_xContext, m_xFrame, m_xPersistentWindowState, Name, nCount, nIndex, Application::PostUserEvent(), framework::RefreshToolbars(), STATIC_CMD_PART, STATIC_INTERNAL_CMD_PART, URL, WINDOWSTATE_PROPERTY_CONTEXT, WINDOWSTATE_PROPERTY_VISIBLE, xDispatch, framework::ToolbarsMenuController::ExecuteInfo::xDispatch, and xFrame.
|
overridevirtual |
Definition at line 703 of file toolbarsmenucontroller.cxx.
References fillPopupMenu(), m_aMutex, and m_xFrame.
|
overridevirtual |
Definition at line 463 of file toolbarsmenucontroller.cxx.
References i, m_aMutex, nCount, and nId.
Referenced by itemActivated().
|
overridevirtual |
Definition at line 132 of file toolbarsmenucontroller.cxx.
References sServiceName, and cppu::supportsService().
|
private |
Definition at line 84 of file toolbarsmenucontroller.hxx.
Referenced by addCommand(), fillPopupMenu(), and itemActivated().
|
private |
Definition at line 85 of file toolbarsmenucontroller.hxx.
Referenced by fillPopupMenu().
|
private |
Definition at line 83 of file toolbarsmenucontroller.hxx.
Referenced by fillPopupMenu(), and itemActivated().
|
private |
Definition at line 79 of file toolbarsmenucontroller.hxx.
Referenced by disposing(), initializeImpl(), and itemSelected().
|
private |
Definition at line 82 of file toolbarsmenucontroller.hxx.
Referenced by disposing(), fillPopupMenu(), and initializeImpl().
|
private |
Definition at line 81 of file toolbarsmenucontroller.hxx.
Referenced by disposing(), fillPopupMenu(), and initializeImpl().
|
private |
Definition at line 80 of file toolbarsmenucontroller.hxx.
Referenced by fillPopupMenu(), initializeImpl(), and itemSelected().