LibreOffice Module framework (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
framework::NewMenuController Class Referencefinal

#include <newmenucontroller.hxx>

Inheritance diagram for framework::NewMenuController:
[legend]
Collaboration diagram for framework::NewMenuController:
[legend]

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
 

Detailed Description

Definition at line 30 of file newmenucontroller.hxx.

Constructor & Destructor Documentation

◆ NewMenuController()

framework::NewMenuController::NewMenuController ( const css::uno::Reference< css::uno::XComponentContext > &  xContext)

Definition at line 268 of file newmenucontroller.cxx.

◆ ~NewMenuController()

framework::NewMenuController::~NewMenuController ( )
overridevirtual

Definition at line 279 of file newmenucontroller.cxx.

Member Function Documentation

◆ determineAndSetNewDocAccel()

void framework::NewMenuController::determineAndSetNewDocAccel ( const css::awt::KeyEvent &  rKeyCode)
private

Definition at line 109 of file newmenucontroller.cxx.

References aCommand, i, m_aEmptyDocURL, nCount, and nId.

Referenced by setAccelerators().

◆ disposing()

void SAL_CALL framework::NewMenuController::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 335 of file newmenucontroller.cxx.

References m_aMutex, m_xContext, m_xDispatch, and m_xFrame.

◆ fillPopupMenu()

void framework::NewMenuController::fillPopupMenu ( css::uno::Reference< css::awt::XPopupMenu > const &  rPopupMenu)
private

◆ getImplementationName()

OUString SAL_CALL framework::NewMenuController::getImplementationName ( )
overridevirtual

Definition at line 61 of file newmenucontroller.cxx.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL framework::NewMenuController::getSupportedServiceNames ( )
overridevirtual

Definition at line 71 of file newmenucontroller.cxx.

References framework::SERVICENAME_POPUPMENUCONTROLLER.

◆ impl_setPopupMenu()

void framework::NewMenuController::impl_setPopupMenu ( )
overrideprivatevirtual

◆ initializeImpl()

void framework::NewMenuController::initializeImpl ( std::unique_lock< std::mutex > &  rGuard,
const css::uno::Sequence< css::uno::Any > &  aArguments 
)
overrideprivatevirtual

◆ itemActivated()

void SAL_CALL framework::NewMenuController::itemActivated ( const css::awt::MenuEvent &  rEvent)
overridevirtual

◆ itemSelected()

void SAL_CALL framework::NewMenuController::itemSelected ( const css::awt::MenuEvent &  rEvent)
overridevirtual

◆ retrieveShortcutsFromConfiguration()

void framework::NewMenuController::retrieveShortcutsFromConfiguration ( const css::uno::Reference< css::ui::XAcceleratorConfiguration > &  rAccelCfg,
const css::uno::Sequence< OUString > &  rCommands,
std::vector< vcl::KeyCode > &  aMenuShortCuts 
)
private

Definition at line 245 of file newmenucontroller.cxx.

References i, and svt::AcceleratorExecute::st_AWTKey2VCLKey().

Referenced by setAccelerators().

◆ setAccelerators()

void framework::NewMenuController::setAccelerators ( )
private

◆ setMenuImages()

void framework::NewMenuController::setMenuImages ( PopupMenu pPopupMenu,
bool  bSetImages 
)
private

◆ statusChanged()

void SAL_CALL framework::NewMenuController::statusChanged ( const css::frame::FeatureStateEvent &  Event)
overridevirtual

Definition at line 350 of file newmenucontroller.cxx.

References m_aEmptyDocURL.

◆ supportsService()

sal_Bool SAL_CALL framework::NewMenuController::supportsService ( const OUString &  sServiceName)
overridevirtual

Definition at line 66 of file newmenucontroller.cxx.

References sServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_aEmptyDocURL

OUString framework::NewMenuController::m_aEmptyDocURL
private

Definition at line 76 of file newmenucontroller.hxx.

Referenced by determineAndSetNewDocAccel(), and statusChanged().

◆ m_aIconTheme

OUString framework::NewMenuController::m_aIconTheme
private

Definition at line 73 of file newmenucontroller.hxx.

Referenced by initializeImpl(), and itemActivated().

◆ m_aModuleIdentifier

OUString framework::NewMenuController::m_aModuleIdentifier
private

Definition at line 75 of file newmenucontroller.hxx.

Referenced by impl_setPopupMenu(), and setAccelerators().

◆ m_aTargetFrame

OUString framework::NewMenuController::m_aTargetFrame
private

Definition at line 74 of file newmenucontroller.hxx.

Referenced by itemSelected().

◆ m_bAcceleratorCfg

bool framework::NewMenuController::m_bAcceleratorCfg
private

Definition at line 72 of file newmenucontroller.hxx.

Referenced by setAccelerators().

◆ m_bModuleIdentified

bool framework::NewMenuController::m_bModuleIdentified
private

Definition at line 71 of file newmenucontroller.hxx.

Referenced by impl_setPopupMenu(), and setAccelerators().

◆ m_bNewMenu

bool framework::NewMenuController::m_bNewMenu
private

Definition at line 70 of file newmenucontroller.hxx.

Referenced by fillPopupMenu(), initializeImpl(), and setAccelerators().

◆ m_bShowImages

bool framework::NewMenuController::m_bShowImages
private

Definition at line 69 of file newmenucontroller.hxx.

Referenced by fillPopupMenu(), initializeImpl(), and itemActivated().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > framework::NewMenuController::m_xContext
private

Definition at line 77 of file newmenucontroller.hxx.

Referenced by disposing(), impl_setPopupMenu(), itemSelected(), and setAccelerators().

◆ m_xDocAcceleratorManager

css::uno::Reference< css::ui::XAcceleratorConfiguration > framework::NewMenuController::m_xDocAcceleratorManager
private

Definition at line 78 of file newmenucontroller.hxx.

Referenced by setAccelerators().

◆ m_xGlobalAcceleratorManager

css::uno::Reference< css::ui::XAcceleratorConfiguration > framework::NewMenuController::m_xGlobalAcceleratorManager
private

Definition at line 80 of file newmenucontroller.hxx.

Referenced by setAccelerators().

◆ m_xModuleAcceleratorManager

css::uno::Reference< css::ui::XAcceleratorConfiguration > framework::NewMenuController::m_xModuleAcceleratorManager
private

Definition at line 79 of file newmenucontroller.hxx.

Referenced by setAccelerators().


The documentation for this class was generated from the following files: