LibreOffice Module vcl (master)
1
|
#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 |
Definition at line 52 of file mnemonic.hxx.
MnemonicGenerator::MnemonicGenerator | ( | sal_Unicode | cMnemonic = MNEMONIC_CHAR | ) |
Definition at line 34 of file mnemonic.cxx.
References maMnemonics.
OUString MnemonicGenerator::CreateMnemonic | ( | const OUString & | rKey | ) |
Definition at line 121 of file mnemonic.cxx.
References aStr, GetCharClass(), Application::GetSettings(), ImplFindMnemonic(), ImplGetMnemonicIndex(), MsLangId::isCJK(), m_cMnemonic, maMnemonics, MNEMONIC_INDEX_NOTFOUND, MNEMONIC_RANGE_2_END, MNEMONIC_RANGE_2_START, nIndex, and u.
Referenced by Menu::CreateAutoMnemonics().
|
static |
Definition at line 312 of file mnemonic.cxx.
References aStr, i, MNEMONIC_RANGE_2_END, and MNEMONIC_RANGE_2_START.
Referenced by SvxIconChoiceCtrlEntry::GetDisplayText(), vcl::CommandInfoProvider::GetTooltipForCommand(), ToolBox::InsertItem(), ToolBox::RequestHelp(), and ToolBox::SetItemText().
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().
|
private |
Definition at line 63 of file mnemonic.cxx.
References m_cMnemonic, nIndex, and SAL_WARN.
Referenced by CreateMnemonic(), and RegisterMnemonic().
|
staticprivate |
Definition at line 40 of file mnemonic.cxx.
References i, MNEMONIC_INDEX_NOTFOUND, MNEMONIC_RANGE_1_END, MNEMONIC_RANGE_1_START, MNEMONIC_RANGE_2_END, MNEMONIC_RANGE_2_START, MNEMONIC_RANGE_3_END, MNEMONIC_RANGE_3_START, MNEMONIC_RANGE_4_END, MNEMONIC_RANGE_4_START, and MNEMONIC_RANGES.
Referenced by CreateMnemonic(), and RegisterMnemonic().
void MnemonicGenerator::RegisterMnemonic | ( | const OUString & | rKey | ) |
Definition at line 81 of file mnemonic.cxx.
References GetCharClass(), ImplFindMnemonic(), ImplGetMnemonicIndex(), maMnemonics, MNEMONIC_INDEX_NOTFOUND, and nIndex.
Referenced by Menu::CreateAutoMnemonics().
|
private |
Definition at line 54 of file mnemonic.hxx.
Referenced by CreateMnemonic(), and ImplFindMnemonic().
|
private |
Definition at line 56 of file mnemonic.hxx.
Referenced by CreateMnemonic(), MnemonicGenerator(), and RegisterMnemonic().
|
private |
Definition at line 57 of file mnemonic.hxx.
Referenced by GetCharClass().