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 34 of file mnemonic.cxx.

References maMnemonics.

Member Function Documentation

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

Definition at line 305 of file mnemonic.cxx.

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

Referenced by CreateMnemonic(), and RegisterMnemonic().

sal_Unicode MnemonicGenerator::ImplFindMnemonic ( const OUString &  rKey)

Definition at line 63 of file mnemonic.cxx.

References m_cMnemonic, nIndex, and SAL_WARN.

Referenced by CreateMnemonic(), and RegisterMnemonic().

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

Member Data Documentation

sal_Unicode MnemonicGenerator::m_cMnemonic

Definition at line 54 of file mnemonic.hxx.

Referenced by CreateMnemonic(), and ImplFindMnemonic().

sal_uInt8 MnemonicGenerator::maMnemonics[MAX_MNEMONICS]

Definition at line 56 of file mnemonic.hxx.

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

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

Definition at line 57 of file mnemonic.hxx.

Referenced by GetCharClass().

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