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

#include <langselectionmenucontroller.hxx>

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

Public Member Functions

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

enum  Mode {
  MODE_SetLanguageSelectionMenu ,
  MODE_SetLanguageParagraphMenu ,
  MODE_SetLanguageAllTextMenu
}
 

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, const Mode rMode)
 

Private Attributes

bool m_bShowMenu
 
OUString m_aLangStatusCommandURL
 
css::uno::Reference< css::frame::XDispatch > m_xLanguageDispatch
 
OUString m_aMenuCommandURL_Lang
 
css::uno::Reference< css::frame::XDispatch > m_xMenuDispatch_Lang
 
OUString m_aMenuCommandURL_Font
 
css::uno::Reference< css::frame::XDispatch > m_xMenuDispatch_Font
 
OUString m_aMenuCommandURL_CharDlgForParagraph
 
css::uno::Reference< css::frame::XDispatch > m_xMenuDispatch_CharDlgForParagraph
 
OUString m_aCurLang
 
SvtScriptType m_nScriptType
 
OUString m_aKeyboardLang
 
OUString m_aGuessedTextLang
 
LanguageGuessingHelper m_aLangGuessHelper
 

Detailed Description

Definition at line 31 of file langselectionmenucontroller.hxx.

Member Enumeration Documentation

◆ Mode

Enumerator
MODE_SetLanguageSelectionMenu 
MODE_SetLanguageParagraphMenu 
MODE_SetLanguageAllTextMenu 

Definition at line 58 of file langselectionmenucontroller.hxx.

Constructor & Destructor Documentation

◆ LanguageSelectionMenuController()

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

Definition at line 74 of file langselectionmenucontroller.cxx.

References ASIAN, COMPLEX, and LATIN.

◆ ~LanguageSelectionMenuController()

framework::LanguageSelectionMenuController::~LanguageSelectionMenuController ( )
overridevirtual

Definition at line 82 of file langselectionmenucontroller.cxx.

Member Function Documentation

◆ disposing()

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

Definition at line 87 of file langselectionmenucontroller.cxx.

References m_aMutex, m_xDispatch, m_xFrame, and m_xLanguageDispatch.

◆ fillPopupMenu()

void framework::LanguageSelectionMenuController::fillPopupMenu ( css::uno::Reference< css::awt::XPopupMenu > const &  rPopupMenu,
const Mode  rMode 
)
private

◆ getImplementationName()

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

Definition at line 58 of file langselectionmenucontroller.cxx.

◆ getSupportedServiceNames()

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

◆ impl_setPopupMenu()

void framework::LanguageSelectionMenuController::impl_setPopupMenu ( )
overrideprivatevirtual

◆ initializeImpl()

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

◆ statusChanged()

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

◆ supportsService()

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

Definition at line 63 of file langselectionmenucontroller.cxx.

References sServiceName, and cppu::supportsService().

◆ updatePopupMenu()

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

Member Data Documentation

◆ m_aCurLang

OUString framework::LanguageSelectionMenuController::m_aCurLang
private

Definition at line 74 of file langselectionmenucontroller.hxx.

Referenced by fillPopupMenu(), and statusChanged().

◆ m_aGuessedTextLang

OUString framework::LanguageSelectionMenuController::m_aGuessedTextLang
private

Definition at line 77 of file langselectionmenucontroller.hxx.

Referenced by fillPopupMenu(), and statusChanged().

◆ m_aKeyboardLang

OUString framework::LanguageSelectionMenuController::m_aKeyboardLang
private

Definition at line 76 of file langselectionmenucontroller.hxx.

Referenced by fillPopupMenu(), and statusChanged().

◆ m_aLangGuessHelper

LanguageGuessingHelper framework::LanguageSelectionMenuController::m_aLangGuessHelper
private

Definition at line 78 of file langselectionmenucontroller.hxx.

Referenced by fillPopupMenu().

◆ m_aLangStatusCommandURL

OUString framework::LanguageSelectionMenuController::m_aLangStatusCommandURL
private

◆ m_aMenuCommandURL_CharDlgForParagraph

OUString framework::LanguageSelectionMenuController::m_aMenuCommandURL_CharDlgForParagraph
private

Definition at line 72 of file langselectionmenucontroller.hxx.

Referenced by impl_setPopupMenu(), and initializeImpl().

◆ m_aMenuCommandURL_Font

OUString framework::LanguageSelectionMenuController::m_aMenuCommandURL_Font
private

Definition at line 70 of file langselectionmenucontroller.hxx.

Referenced by impl_setPopupMenu(), and initializeImpl().

◆ m_aMenuCommandURL_Lang

OUString framework::LanguageSelectionMenuController::m_aMenuCommandURL_Lang
private

Definition at line 68 of file langselectionmenucontroller.hxx.

Referenced by impl_setPopupMenu(), and initializeImpl().

◆ m_bShowMenu

bool framework::LanguageSelectionMenuController::m_bShowMenu
private

Definition at line 65 of file langselectionmenucontroller.hxx.

Referenced by fillPopupMenu(), and statusChanged().

◆ m_nScriptType

SvtScriptType framework::LanguageSelectionMenuController::m_nScriptType
private

Definition at line 75 of file langselectionmenucontroller.hxx.

Referenced by fillPopupMenu(), and statusChanged().

◆ m_xLanguageDispatch

css::uno::Reference< css::frame::XDispatch > framework::LanguageSelectionMenuController::m_xLanguageDispatch
private

Definition at line 67 of file langselectionmenucontroller.hxx.

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

◆ m_xMenuDispatch_CharDlgForParagraph

css::uno::Reference< css::frame::XDispatch > framework::LanguageSelectionMenuController::m_xMenuDispatch_CharDlgForParagraph
private

Definition at line 73 of file langselectionmenucontroller.hxx.

Referenced by impl_setPopupMenu().

◆ m_xMenuDispatch_Font

css::uno::Reference< css::frame::XDispatch > framework::LanguageSelectionMenuController::m_xMenuDispatch_Font
private

Definition at line 71 of file langselectionmenucontroller.hxx.

Referenced by impl_setPopupMenu().

◆ m_xMenuDispatch_Lang

css::uno::Reference< css::frame::XDispatch > framework::LanguageSelectionMenuController::m_xMenuDispatch_Lang
private

Definition at line 69 of file langselectionmenucontroller.hxx.

Referenced by impl_setPopupMenu().


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