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

#include <keycod.hxx>

Public Member Functions

 KeyCode ()
 
 KeyCode (sal_uInt16 nKey, sal_uInt16 nModifier=0)
 
 KeyCode (sal_uInt16 nKey, bool bShift, bool bMod1, bool bMod2, bool bMod3)
 
 KeyCode (KeyFuncType eFunction)
 
sal_uInt16 GetFullCode () const
 
KeyFuncType GetFullFunction () const
 
sal_uInt16 GetCode () const
 
sal_uInt16 GetModifier () const
 
bool IsShift () const
 
bool IsMod1 () const
 
bool IsMod2 () const
 
bool IsMod3 () const
 
sal_uInt16 GetGroup () const
 
OUString GetName (vcl::Window *pWindow=nullptr) const
 
bool IsFunction () const
 
KeyFuncType GetFunction () const
 
bool operator== (const KeyCode &rKeyCode) const
 
bool operator!= (const KeyCode &rKeyCode) const
 

Private Attributes

sal_uInt16 nKeyCodeAndModifiers
 
KeyFuncType eFunc
 

Detailed Description

Definition at line 38 of file keycod.hxx.

Constructor & Destructor Documentation

vcl::KeyCode::KeyCode ( )
inline

Definition at line 45 of file keycod.hxx.

References DONTKNOW.

vcl::KeyCode::KeyCode ( sal_uInt16  nKey,
sal_uInt16  nModifier = 0 
)
inline

Definition at line 82 of file keycod.hxx.

References DONTKNOW, eFunc, and nKeyCodeAndModifiers.

vcl::KeyCode::KeyCode ( sal_uInt16  nKey,
bool  bShift,
bool  bMod1,
bool  bMod2,
bool  bMod3 
)
inline

Definition at line 88 of file keycod.hxx.

References DONTKNOW, KEY_MOD1, KEY_MOD2, KEY_MOD3, and KEY_SHIFT.

vcl::KeyCode::KeyCode ( KeyFuncType  eFunction)

Definition at line 72 of file keycod.cxx.

References eFunc, ImplGetKeyCode(), and nKeyCodeAndModifiers.

Member Function Documentation

sal_uInt16 vcl::KeyCode::GetCode ( ) const
inline

Definition at line 53 of file keycod.hxx.

References KEY_CODE_MASK.

Referenced by TextEngine::DoesKeyChangeText(), ComboBox::EventNotify(), SpinField::EventNotify(), Dialog::EventNotify(), FloatingWindow::EventNotify(), WizardDialog::EventNotify(), FormattedField::EventNotify(), DockingWindow::EventNotify(), ToolBox::EventNotify(), vcl::Window::EventNotify(), MenuItemList::GetItemCount(), MenuBarWindow::HandleKeyEvent(), IMPL_LINK(), Menu::ImplCalcSize(), vcl::Window::ImplDlgCtrl(), ImplHandleKey(), TabControl::ImplHandleKeyEvent(), Edit::ImplHandleKeyEvent(), Splitter::ImplKbdTracking(), ToolBox::ImplOpenItem(), Menu::ImplPaint(), ImplPatternProcessKeyInput(), TextView::ImpMoveCursor(), TaskPaneList::IsCycleKey(), TextWindow::KeyInput(), MenuButton::KeyInput(), SpinButton::KeyInput(), Splitter::KeyInput(), Slider::KeyInput(), FixedHyperlink::KeyInput(), ScrollBar::KeyInput(), MenuFloatingWindow::KeyInput(), TabControl::KeyInput(), PushButton::KeyInput(), TextView::KeyInput(), Calendar::KeyInput(), SvImpLBox::KeyInput(), SvxIconChoiceCtrl_Impl::KeyInput(), ToolBox::KeyInput(), RadioButton::KeyInput(), CheckBox::KeyInput(), DisclosureButton::KeyInput(), SvInplaceEdit2::KeyInput(), vcl::Window::KeyInput(), PushButton::KeyUp(), RadioButton::KeyUp(), CheckBox::KeyUp(), KeyEvent::LogicalTextDirectionality(), UITestLogger::logKeyInput(), vcl::ORoadmap::PreNotify(), VclMultiLineEdit::PreNotify(), ListBox::PreNotify(), SystemWindow::PreNotify(), ImplListBoxWindow::ProcessKeyInput(), and MenuItemList::SearchItem().

sal_uInt16 vcl::KeyCode::GetFullCode ( ) const
inline
KeyFuncType vcl::KeyCode::GetFullFunction ( ) const
inline

Definition at line 51 of file keycod.hxx.

KeyFuncType vcl::KeyCode::GetFunction ( ) const
sal_uInt16 vcl::KeyCode::GetGroup ( ) const
inline
sal_uInt16 vcl::KeyCode::GetModifier ( ) const
inline
OUString vcl::KeyCode::GetName ( vcl::Window pWindow = nullptr) const
bool vcl::KeyCode::IsFunction ( ) const
inline

Definition at line 71 of file keycod.hxx.

References DONTKNOW.

Referenced by Accelerator::ImplInsertAccel().

bool vcl::KeyCode::IsMod1 ( ) const
inline
bool vcl::KeyCode::IsMod2 ( ) const
inline
bool vcl::KeyCode::IsMod3 ( ) const
inline

Definition at line 64 of file keycod.hxx.

References KEY_MOD3.

Referenced by Edit::IsCharInput(), UITestLogger::logKeyInput(), and ImplListBoxWindow::ProcessKeyInput().

bool vcl::KeyCode::IsShift ( ) const
inline
bool vcl::KeyCode::operator!= ( const KeyCode rKeyCode) const
inline

Definition at line 110 of file keycod.hxx.

References DONTKNOW, eFunc, GetFunction(), and nKeyCodeAndModifiers.

bool vcl::KeyCode::operator== ( const KeyCode rKeyCode) const
inline

Definition at line 102 of file keycod.hxx.

References DONTKNOW, eFunc, GetFunction(), and nKeyCodeAndModifiers.

Member Data Documentation

KeyFuncType vcl::KeyCode::eFunc
private

Definition at line 42 of file keycod.hxx.

Referenced by KeyCode(), operator!=(), and operator==().

sal_uInt16 vcl::KeyCode::nKeyCodeAndModifiers
private

Definition at line 41 of file keycod.hxx.

Referenced by KeyCode(), operator!=(), and operator==().


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