LibreOffice Module vcl (master) 1
|
#include <mnemonic.hxx>
Public Member Functions | |
MnemonicGenerator (sal_Unicode cMnemonic=MNEMONIC_CHAR) | |
MnemonicGenerator & | operator= (MnemonicGenerator const &) |
MnemonicGenerator (MnemonicGenerator const &) | |
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 54 of file mnemonic.hxx.
MnemonicGenerator::MnemonicGenerator | ( | sal_Unicode | cMnemonic = MNEMONIC_CHAR | ) |
Definition at line 34 of file window/mnemonic.cxx.
References maMnemonics.
|
default |
OUString MnemonicGenerator::CreateMnemonic | ( | const OUString & | rKey | ) |
Definition at line 124 of file window/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, and nIndex.
Referenced by Menu::CreateAutoMnemonics(), and GenerateAutoMnemonicsOnHierarchy().
|
static |
Definition at line 315 of file window/mnemonic.cxx.
References aStr, i, MNEMONIC_RANGE_2_END, MNEMONIC_RANGE_2_START, and u.
Referenced by SvxIconChoiceCtrlEntry::GetDisplayText(), vcl::CommandInfoProvider::GetTooltipForCommand(), ToolBox::InsertItem(), ToolBox::RequestHelp(), and ToolBox::SetItemText().
uno::Reference< i18n::XCharacterClassification > const & MnemonicGenerator::GetCharClass | ( | ) |
Definition at line 308 of file window/mnemonic.cxx.
References vcl::unohelper::CreateCharacterClassification(), and mxCharClass.
Referenced by CreateMnemonic(), and RegisterMnemonic().
|
private |
Definition at line 66 of file window/mnemonic.cxx.
References m_cMnemonic, nIndex, and SAL_WARN.
Referenced by CreateMnemonic(), and RegisterMnemonic().
|
staticprivate |
Definition at line 43 of file window/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().
|
default |
void MnemonicGenerator::RegisterMnemonic | ( | const OUString & | rKey | ) |
Definition at line 84 of file window/mnemonic.cxx.
References GetCharClass(), ImplFindMnemonic(), ImplGetMnemonicIndex(), maMnemonics, MNEMONIC_INDEX_NOTFOUND, and nIndex.
Referenced by SystemWindow::CollectMenuBarMnemonics(), Menu::CreateAutoMnemonics(), and GenerateAutoMnemonicsOnHierarchy().
|
private |
Definition at line 56 of file mnemonic.hxx.
Referenced by CreateMnemonic(), and ImplFindMnemonic().
|
private |
Definition at line 58 of file mnemonic.hxx.
Referenced by CreateMnemonic(), MnemonicGenerator(), and RegisterMnemonic().
|
private |
Definition at line 59 of file mnemonic.hxx.
Referenced by GetCharClass().