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

#include <headermenucontroller.hxx>

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

Public Member Functions

 HeaderMenuController (const css::uno::Reference< css::uno::XComponentContext > &xContext, bool _bFooter=false)
 
virtual ~HeaderMenuController () 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 updatePopupMenu () override
 
virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent &Event) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 

Private Member Functions

void fillPopupMenu (const css::uno::Reference< css::frame::XModel > &rModel, css::uno::Reference< css::awt::XPopupMenu > const &rPopupMenu)
 

Private Attributes

css::uno::Reference< css::frame::XModel > m_xModel
 
bool m_bFooter
 

Detailed Description

Definition at line 28 of file headermenucontroller.hxx.

Constructor & Destructor Documentation

◆ HeaderMenuController()

framework::HeaderMenuController::HeaderMenuController ( const css::uno::Reference< css::uno::XComponentContext > &  xContext,
bool  _bFooter = false 
)

Definition at line 70 of file headermenucontroller.cxx.

◆ ~HeaderMenuController()

framework::HeaderMenuController::~HeaderMenuController ( )
overridevirtual

Definition at line 76 of file headermenucontroller.cxx.

Member Function Documentation

◆ disposing()

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

Definition at line 183 of file headermenucontroller.cxx.

References m_aMutex, m_xDispatch, and m_xFrame.

◆ fillPopupMenu()

void framework::HeaderMenuController::fillPopupMenu ( const css::uno::Reference< css::frame::XModel > &  rModel,
css::uno::Reference< css::awt::XPopupMenu > const &  rPopupMenu 
)
private

Definition at line 81 of file headermenucontroller.cxx.

References aCommand, ALL_MENUITEM_ID, aName, FwkResId(), m_bFooter, n, nCount, nId, and u.

Referenced by statusChanged(), and updatePopupMenu().

◆ getImplementationName()

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

Reimplemented in framework::FooterMenuController.

Definition at line 55 of file headermenucontroller.cxx.

◆ getSupportedServiceNames()

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

◆ statusChanged()

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

Definition at line 197 of file headermenucontroller.cxx.

References fillPopupMenu(), m_aMutex, m_xModel, and xModel.

◆ supportsService()

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

Reimplemented in framework::FooterMenuController.

Definition at line 60 of file headermenucontroller.cxx.

References sServiceName, and cppu::supportsService().

◆ updatePopupMenu()

void SAL_CALL framework::HeaderMenuController::updatePopupMenu ( )
overridevirtual

Definition at line 211 of file headermenucontroller.cxx.

References fillPopupMenu(), m_aMutex, m_xModel, and xModel.

Member Data Documentation

◆ m_bFooter

bool framework::HeaderMenuController::m_bFooter
private

Definition at line 54 of file headermenucontroller.hxx.

Referenced by fillPopupMenu().

◆ m_xModel

css::uno::Reference< css::frame::XModel > framework::HeaderMenuController::m_xModel
private

Definition at line 53 of file headermenucontroller.hxx.

Referenced by statusChanged(), and updatePopupMenu().


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