LibreOffice Module framework (master) 1
|
#include <fontsizemenucontroller.hxx>
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::Long > | m_aHeightArray |
css::frame::status::FontHeight | m_aFontHeight |
css::uno::Reference< css::frame::XDispatch > | m_xCurrentFontDispatch |
Definition at line 32 of file fontsizemenucontroller.hxx.
framework::FontSizeMenuController::FontSizeMenuController | ( | const css::uno::Reference< css::uno::XComponentContext > & | xContext | ) |
Definition at line 69 of file fontsizemenucontroller.cxx.
|
overridevirtual |
Definition at line 74 of file fontsizemenucontroller.cxx.
|
overridevirtual |
Definition at line 207 of file fontsizemenucontroller.cxx.
References m_aMutex, m_xCurrentFontDispatch, m_xDispatch, and m_xFrame.
|
private |
Definition at line 132 of file fontsizemenucontroller.cxx.
References aCommand, ScopedVclPtr< class reference_type >::disposeAndReset(), VclPtr< class reference_type >::get(), Application::GetDefaultDevice(), vcl::I18nHelper::GetNum(), Application::GetSettings(), FontList::GetStdSizeAry(), AllSettings::GetUILocaleI18nHelper(), i, m_aFontHeight, m_aHeightArray, m_xFrame, nCount, nPos, retrievePrinterName(), setCurHeight(), and u.
Referenced by statusChanged().
|
overridevirtual |
Definition at line 54 of file fontsizemenucontroller.cxx.
|
overridevirtual |
Definition at line 64 of file fontsizemenucontroller.cxx.
References framework::SERVICENAME_POPUPMENUCONTROLLER.
|
overrideprivatevirtual |
Definition at line 247 of file fontsizemenucontroller.cxx.
References aTargetURL, m_xCurrentFontDispatch, and m_xFrame.
|
private |
Definition at line 79 of file fontsizemenucontroller.cxx.
References m_xFrame, and xController.
Referenced by fillPopupMenu().
|
private |
Definition at line 108 of file fontsizemenucontroller.cxx.
References i, and m_aHeightArray.
Referenced by fillPopupMenu(), and statusChanged().
|
overridevirtual |
Definition at line 221 of file fontsizemenucontroller.cxx.
References fillPopupMenu(), m_aFontHeight, m_aMutex, and setCurHeight().
|
overridevirtual |
Definition at line 59 of file fontsizemenucontroller.cxx.
References sServiceName, and cppu::supportsService().
|
overridevirtual |
Definition at line 257 of file fontsizemenucontroller.cxx.
References aTargetURL, m_aMutex, m_xCurrentFontDispatch, and xDispatch.
|
private |
Definition at line 61 of file fontsizemenucontroller.hxx.
Referenced by fillPopupMenu(), and statusChanged().
|
private |
Definition at line 60 of file fontsizemenucontroller.hxx.
Referenced by fillPopupMenu(), and setCurHeight().
|
private |
Definition at line 62 of file fontsizemenucontroller.hxx.
Referenced by disposing(), impl_setPopupMenu(), and updatePopupMenu().