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

#include <fontsizemenucontroller.hxx>

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

Public Member Functions

 FontSizeMenuController (const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
virtual ~FontSizeMenuController () 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

virtual void impl_setPopupMenu () override
 
void setCurHeight (tools::Long nHeight, css::uno::Reference< css::awt::XPopupMenu > const &rPopupMenu)
 
void fillPopupMenu (css::uno::Reference< css::awt::XPopupMenu > const &rPopupMenu)
 
OUString retrievePrinterName (css::uno::Reference< css::frame::XFrame > const &rFrame)
 

Private Attributes

std::vector< tools::Longm_aHeightArray
 
css::frame::status::FontHeight m_aFontHeight
 
css::uno::Reference< css::frame::XDispatch > m_xCurrentFontDispatch
 

Detailed Description

Definition at line 32 of file fontsizemenucontroller.hxx.

Constructor & Destructor Documentation

◆ FontSizeMenuController()

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

Definition at line 69 of file fontsizemenucontroller.cxx.

◆ ~FontSizeMenuController()

framework::FontSizeMenuController::~FontSizeMenuController ( )
overridevirtual

Definition at line 74 of file fontsizemenucontroller.cxx.

Member Function Documentation

◆ disposing()

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

Definition at line 207 of file fontsizemenucontroller.cxx.

References m_aMutex, m_xCurrentFontDispatch, m_xDispatch, and m_xFrame.

◆ fillPopupMenu()

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

◆ getImplementationName()

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

Definition at line 54 of file fontsizemenucontroller.cxx.

◆ getSupportedServiceNames()

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

◆ impl_setPopupMenu()

void framework::FontSizeMenuController::impl_setPopupMenu ( )
overrideprivatevirtual

Definition at line 247 of file fontsizemenucontroller.cxx.

References aTargetURL, m_xCurrentFontDispatch, and m_xFrame.

◆ retrievePrinterName()

OUString framework::FontSizeMenuController::retrievePrinterName ( css::uno::Reference< css::frame::XFrame > const &  rFrame)
private

Definition at line 79 of file fontsizemenucontroller.cxx.

References m_xFrame, and xController.

Referenced by fillPopupMenu().

◆ setCurHeight()

void framework::FontSizeMenuController::setCurHeight ( tools::Long  nHeight,
css::uno::Reference< css::awt::XPopupMenu > const &  rPopupMenu 
)
private

Definition at line 108 of file fontsizemenucontroller.cxx.

References i, and m_aHeightArray.

Referenced by fillPopupMenu(), and statusChanged().

◆ statusChanged()

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

Definition at line 221 of file fontsizemenucontroller.cxx.

References fillPopupMenu(), m_aFontHeight, m_aMutex, and setCurHeight().

◆ supportsService()

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

Definition at line 59 of file fontsizemenucontroller.cxx.

References sServiceName, and cppu::supportsService().

◆ updatePopupMenu()

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

Definition at line 257 of file fontsizemenucontroller.cxx.

References aTargetURL, m_aMutex, m_xCurrentFontDispatch, and xDispatch.

Member Data Documentation

◆ m_aFontHeight

css::frame::status::FontHeight framework::FontSizeMenuController::m_aFontHeight
private

Definition at line 61 of file fontsizemenucontroller.hxx.

Referenced by fillPopupMenu(), and statusChanged().

◆ m_aHeightArray

std::vector<tools::Long> framework::FontSizeMenuController::m_aHeightArray
private

Definition at line 60 of file fontsizemenucontroller.hxx.

Referenced by fillPopupMenu(), and setCurHeight().

◆ m_xCurrentFontDispatch

css::uno::Reference< css::frame::XDispatch > framework::FontSizeMenuController::m_xCurrentFontDispatch
private

Definition at line 62 of file fontsizemenucontroller.hxx.

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


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