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

#include <mnemonicengine.hxx>

Public Member Functions

 MnemonicEngine (IMnemonicEntryList &_rEntryList)
 ~MnemonicEngine ()
bool HandleKeyEvent (const KeyEvent &_rKEvt)
 handles a key event More...

Private Attributes

::std::unique_ptr< MnemonicEngine_Datam_pData

Detailed Description

Definition at line 121 of file mnemonicengine.hxx.

Constructor & Destructor Documentation

vcl::MnemonicEngine::MnemonicEngine ( IMnemonicEntryList _rEntryList)

Definition at line 77 of file mnemonicengine.cxx.

References m_pData.

vcl::MnemonicEngine::~MnemonicEngine ( )

Definition at line 102 of file mnemonicengine.cxx.

Member Function Documentation

bool vcl::MnemonicEngine::HandleKeyEvent ( const KeyEvent _rKEvt)

handles a key event

If the key event denotes pressing an accelerator key, then the entry list is searched for a matching entry. If such an entry is found, IMnemonicEntryList::SelectSearchEntry is called.

If the entry is the only one with the given mnemonic character, then also IMnemonicEntryList::ExecuteSearchEntry is called.

if the key event has been handled, and should thus not be processed further.

Definition at line 82 of file mnemonicengine.cxx.

References KeyEvent::GetCharCode(), KeyEvent::GetKeyCode(), vcl::KeyCode::IsMod2(), and m_pData.

Member Data Documentation

::std::unique_ptr< MnemonicEngine_Data > vcl::MnemonicEngine::m_pData

Definition at line 123 of file mnemonicengine.hxx.

Referenced by HandleKeyEvent().

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