LibreOffice Module vcl (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
MnemonicGenerator Class Reference

#include <mnemonic.hxx>

Public Member Functions

 MnemonicGenerator (sal_Unicode cMnemonic=MNEMONIC_CHAR)
 
void RegisterMnemonic (const OUString &rKey)
 
OUString CreateMnemonic (const OUString &rKey)
 
css::uno::Reference< css::i18n::XCharacterClassification > const & GetCharClass ()
 

Static Public Member Functions

static OUString EraseAllMnemonicChars (const OUString &rStr)
 

Private Member Functions

SAL_DLLPRIVATE sal_Unicode ImplFindMnemonic (const OUString &rKey)
 

Static Private Member Functions

static SAL_DLLPRIVATE sal_uInt16 ImplGetMnemonicIndex (sal_Unicode c)
 

Private Attributes

sal_Unicode m_cMnemonic
 
sal_uInt8 maMnemonics [MAX_MNEMONICS]
 
css::uno::Reference< css::i18n::XCharacterClassification > mxCharClass
 

Detailed Description

Definition at line 52 of file mnemonic.hxx.

Constructor & Destructor Documentation

MnemonicGenerator::MnemonicGenerator ( sal_Unicode  cMnemonic = MNEMONIC_CHAR)

Definition at line 33 of file mnemonic.cxx.

References maMnemonics.

Member Function Documentation

OUString MnemonicGenerator::CreateMnemonic ( const OUString &  rKey)
OUString MnemonicGenerator::EraseAllMnemonicChars ( const OUString &  rStr)
static
uno::Reference< i18n::XCharacterClassification > const & MnemonicGenerator::GetCharClass ( )

Definition at line 300 of file mnemonic.cxx.

References vcl::unohelper::CreateCharacterClassification(), and mxCharClass.

Referenced by CreateMnemonic(), and RegisterMnemonic().

sal_Unicode MnemonicGenerator::ImplFindMnemonic ( const OUString &  rKey)
private

Definition at line 62 of file mnemonic.cxx.

References m_cMnemonic.

Referenced by CreateMnemonic(), and RegisterMnemonic().

sal_uInt16 MnemonicGenerator::ImplGetMnemonicIndex ( sal_Unicode  c)
staticprivate
void MnemonicGenerator::RegisterMnemonic ( const OUString &  rKey)

Member Data Documentation

sal_Unicode MnemonicGenerator::m_cMnemonic
private

Definition at line 54 of file mnemonic.hxx.

Referenced by CreateMnemonic(), and ImplFindMnemonic().

sal_uInt8 MnemonicGenerator::maMnemonics[MAX_MNEMONICS]
private

Definition at line 56 of file mnemonic.hxx.

Referenced by CreateMnemonic(), MnemonicGenerator(), and RegisterMnemonic().

css::uno::Reference< css::i18n::XCharacterClassification > MnemonicGenerator::mxCharClass
private

Definition at line 57 of file mnemonic.hxx.

Referenced by GetCharClass().


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