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

#include <fontmenucontroller.hxx>

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

Public Member Functions

 FontMenuController (const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
virtual ~FontMenuController () 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 itemActivated (const css::awt::MenuEvent &rEvent) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 

Private Member Functions

virtual void impl_setPopupMenu () override
 
void fillPopupMenu (const css::uno::Sequence< OUString > &rFontNameSeq, css::uno::Reference< css::awt::XPopupMenu > const &rPopupMenu)
 

Private Attributes

OUString m_aFontFamilyName
 
css::uno::Reference< css::frame::XDispatch > m_xFontListDispatch
 

Detailed Description

Definition at line 29 of file fontmenucontroller.hxx.

Constructor & Destructor Documentation

◆ FontMenuController()

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

Definition at line 72 of file fontmenucontroller.cxx.

◆ ~FontMenuController()

framework::FontMenuController::~FontMenuController ( )
overridevirtual

Definition at line 77 of file fontmenucontroller.cxx.

Member Function Documentation

◆ disposing()

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

Definition at line 110 of file fontmenucontroller.cxx.

References m_aMutex, m_xDispatch, m_xFontListDispatch, and m_xFrame.

◆ fillPopupMenu()

void framework::FontMenuController::fillPopupMenu ( const css::uno::Sequence< OUString > &  rFontNameSeq,
css::uno::Reference< css::awt::XPopupMenu > const &  rPopupMenu 
)
private

◆ getImplementationName()

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

Definition at line 57 of file fontmenucontroller.cxx.

◆ getSupportedServiceNames()

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

Definition at line 67 of file fontmenucontroller.cxx.

References framework::SERVICENAME_POPUPMENUCONTROLLER.

◆ impl_setPopupMenu()

void framework::FontMenuController::impl_setPopupMenu ( )
overrideprivatevirtual

Definition at line 181 of file fontmenucontroller.cxx.

References aTargetURL, m_xFontListDispatch, and m_xFrame.

◆ itemActivated()

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

Definition at line 144 of file fontmenucontroller.cxx.

References i, m_aFontFamilyName, m_aMutex, nIndex, and u.

◆ statusChanged()

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

Definition at line 125 of file fontmenucontroller.cxx.

References fillPopupMenu(), m_aFontFamilyName, and m_aMutex.

◆ supportsService()

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

Definition at line 62 of file fontmenucontroller.cxx.

References sServiceName, and cppu::supportsService().

◆ updatePopupMenu()

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

Definition at line 192 of file fontmenucontroller.cxx.

References aTargetURL, m_aMutex, m_xFontListDispatch, and xDispatch.

Member Data Documentation

◆ m_aFontFamilyName

OUString framework::FontMenuController::m_aFontFamilyName
private

Definition at line 58 of file fontmenucontroller.hxx.

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

◆ m_xFontListDispatch

css::uno::Reference< css::frame::XDispatch > framework::FontMenuController::m_xFontListDispatch
private

Definition at line 59 of file fontmenucontroller.hxx.

Referenced by disposing(), impl_setPopupMenu(), and updatePopupMenu().


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