LibreOffice Module framework (master) 1
|
#include <newmenucontroller.hxx>
Public Member Functions | |
NewMenuController (const css::uno::Reference< css::uno::XComponentContext > &xContext) | |
virtual | ~NewMenuController () 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 | 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 |
Private Member Functions | |
virtual void | initializeImpl (std::unique_lock< std::mutex > &rGuard, const css::uno::Sequence< css::uno::Any > &aArguments) override |
virtual void | impl_setPopupMenu () override |
void | fillPopupMenu (css::uno::Reference< css::awt::XPopupMenu > const &rPopupMenu) |
void | retrieveShortcutsFromConfiguration (const css::uno::Reference< css::ui::XAcceleratorConfiguration > &rAccelCfg, const css::uno::Sequence< OUString > &rCommands, std::vector< vcl::KeyCode > &aMenuShortCuts) |
void | setAccelerators () |
void | determineAndSetNewDocAccel (const css::awt::KeyEvent &rKeyCode) |
void | setMenuImages (PopupMenu *pPopupMenu, bool bSetImages) |
Private Attributes | |
bool | m_bShowImages: 1 |
bool | m_bNewMenu: 1 |
bool | m_bModuleIdentified: 1 |
bool | m_bAcceleratorCfg: 1 |
OUString | m_aIconTheme |
OUString | m_aTargetFrame |
OUString | m_aModuleIdentifier |
OUString | m_aEmptyDocURL |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::ui::XAcceleratorConfiguration > | m_xDocAcceleratorManager |
css::uno::Reference< css::ui::XAcceleratorConfiguration > | m_xModuleAcceleratorManager |
css::uno::Reference< css::ui::XAcceleratorConfiguration > | m_xGlobalAcceleratorManager |
Definition at line 30 of file newmenucontroller.hxx.
framework::NewMenuController::NewMenuController | ( | const css::uno::Reference< css::uno::XComponentContext > & | xContext | ) |
Definition at line 268 of file newmenucontroller.cxx.
|
overridevirtual |
Definition at line 279 of file newmenucontroller.cxx.
|
private |
Definition at line 109 of file newmenucontroller.cxx.
References aCommand, i, m_aEmptyDocURL, nCount, and nId.
Referenced by setAccelerators().
|
overridevirtual |
Definition at line 335 of file newmenucontroller.cxx.
References m_aMutex, m_xContext, m_xDispatch, and m_xFrame.
|
private |
Definition at line 284 of file newmenucontroller.cxx.
References aSlotAutoPilot, aSlotNewDocDirect, aTargetURL, framework::MenuAttributes::CreateAttribute(), VCLXMenu::GetMenu(), SvtDynamicMenuOptions::GetMenu(), m_bNewMenu, m_bShowImages, m_xFrame, framework::MenuAttributes::ReleaseAttribute(), setMenuImages(), VCLXMenu::setUserValue(), and URL.
Referenced by impl_setPopupMenu().
|
overridevirtual |
Definition at line 61 of file newmenucontroller.cxx.
|
overridevirtual |
Definition at line 71 of file newmenucontroller.cxx.
References framework::SERVICENAME_POPUPMENUCONTROLLER.
|
overrideprivatevirtual |
Definition at line 415 of file newmenucontroller.cxx.
References Exception, fillPopupMenu(), m_aModuleIdentifier, m_bModuleIdentified, m_xContext, and m_xFrame.
|
overrideprivatevirtual |
Definition at line 438 of file newmenucontroller.cxx.
References aArguments, aSlotNewDocDirect, StyleSettings::DetermineIconTheme(), Application::GetSettings(), AllSettings::GetStyleSettings(), StyleSettings::GetUseImagesInMenus(), m_aIconTheme, m_bNewMenu, and m_bShowImages.
|
overridevirtual |
Definition at line 392 of file newmenucontroller.cxx.
References StyleSettings::DetermineIconTheme(), Application::GetSettings(), AllSettings::GetStyleSettings(), StyleSettings::GetUseImagesInMenus(), m_aIconTheme, m_bShowImages, m_xFrame, setAccelerators(), and setMenuImages().
|
overridevirtual |
Definition at line 356 of file newmenucontroller.cxx.
References framework::MenuAttributes::aTargetFrame, aURL, dispatchCommand(), VCLXMenu::getCommand(), VCLXMenu::getUserValue(), m_aMutex, m_aTargetFrame, m_xContext, and comphelper::makePropertyValue().
|
private |
Definition at line 245 of file newmenucontroller.cxx.
References i, and svt::AcceleratorExecute::st_AWTKey2VCLKey().
Referenced by setAccelerators().
|
private |
Definition at line 135 of file newmenucontroller.cxx.
References aSeq, determineAndSetNewDocAccel(), i, m_aModuleIdentifier, m_bAcceleratorCfg, m_bModuleIdentified, m_bNewMenu, m_xContext, m_xDocAcceleratorManager, m_xFrame, m_xGlobalAcceleratorManager, m_xModuleAcceleratorManager, nCount, nId, retrieveShortcutsFromConfiguration(), svt::AcceleratorExecute::st_VCLKey2AWTKey(), xController, and xModel.
Referenced by itemActivated().
|
private |
Definition at line 76 of file newmenucontroller.cxx.
References framework::MenuAttributes::aImageId, vcl::CommandInfoProvider::GetImageForCommand(), SvFileInformationManager::GetImageNoDefault(), Menu::GetItemCommand(), Menu::GetItemCount(), Menu::GetItemId(), Menu::GetUserValue(), i, m_xFrame, Menu::SetItemImage(), and xFrame.
Referenced by fillPopupMenu(), and itemActivated().
|
overridevirtual |
Definition at line 350 of file newmenucontroller.cxx.
References m_aEmptyDocURL.
|
overridevirtual |
Definition at line 66 of file newmenucontroller.cxx.
References sServiceName, and cppu::supportsService().
|
private |
Definition at line 76 of file newmenucontroller.hxx.
Referenced by determineAndSetNewDocAccel(), and statusChanged().
|
private |
Definition at line 73 of file newmenucontroller.hxx.
Referenced by initializeImpl(), and itemActivated().
|
private |
Definition at line 75 of file newmenucontroller.hxx.
Referenced by impl_setPopupMenu(), and setAccelerators().
|
private |
Definition at line 74 of file newmenucontroller.hxx.
Referenced by itemSelected().
|
private |
Definition at line 72 of file newmenucontroller.hxx.
Referenced by setAccelerators().
|
private |
Definition at line 71 of file newmenucontroller.hxx.
Referenced by impl_setPopupMenu(), and setAccelerators().
|
private |
Definition at line 70 of file newmenucontroller.hxx.
Referenced by fillPopupMenu(), initializeImpl(), and setAccelerators().
|
private |
Definition at line 69 of file newmenucontroller.hxx.
Referenced by fillPopupMenu(), initializeImpl(), and itemActivated().
|
private |
Definition at line 77 of file newmenucontroller.hxx.
Referenced by disposing(), impl_setPopupMenu(), itemSelected(), and setAccelerators().
|
private |
Definition at line 78 of file newmenucontroller.hxx.
Referenced by setAccelerators().
|
private |
Definition at line 80 of file newmenucontroller.hxx.
Referenced by setAccelerators().
|
private |
Definition at line 79 of file newmenucontroller.hxx.
Referenced by setAccelerators().