|
LibreOffice Module vcl (master) 1
|
#include <accel.hxx>
Public Member Functions | |
| Accelerator () | |
| Accelerator (const Accelerator &rAccel) | |
| ~Accelerator () | |
| void | Activate () |
| void | Select () |
| void | InsertItem (sal_uInt16 nItemId, const vcl::KeyCode &rKeyCode) |
| sal_uInt16 | GetCurItemId () const |
| sal_uInt16 | GetItemCount () const |
| sal_uInt16 | GetItemId (sal_uInt16 nPos) const |
| Accelerator * | GetAccel (sal_uInt16 nItemId) const |
| void | SetActivateHdl (const Link< Accelerator &, void > &rLink) |
| void | SetSelectHdl (const Link< Accelerator &, void > &rLink) |
| Accelerator & | operator= (const Accelerator &rAccel) |
Private Types | |
| typedef ::std::map< sal_uLong, ImplAccelEntry * > | ImplAccelMap |
Private Member Functions | |
| void | ImplInit () |
| void | ImplCopyData (const Accelerator &rAccelData) |
| void | ImplDeleteData () |
| void | ImplInsertAccel (sal_uInt16 nItemId, const vcl::KeyCode &rKeyCode, bool bEnable, Accelerator *pAutoAccel) |
| ImplAccelEntry * | ImplGetAccelData (const vcl::KeyCode &rKeyCode) const |
Private Attributes | |
| ImplAccelMap | maKeyMap |
| ImplAccelList | maIdList |
| Link< Accelerator &, void > | maActivateHdl |
| Link< Accelerator &, void > | maSelectHdl |
| sal_uInt16 | mnCurId |
| bool * | mpDel |
Friends | |
| class | ImplAccelManager |
|
private |
| Accelerator::Accelerator | ( | ) |
Definition at line 202 of file accel.cxx.
References ImplInit().
Referenced by ImplCopyData(), and ImplInsertAccel().
| Accelerator::Accelerator | ( | const Accelerator & | rAccel | ) |
Definition at line 207 of file accel.cxx.
References ImplCopyData(), and ImplInit().
| Accelerator::~Accelerator | ( | ) |
Definition at line 213 of file accel.cxx.
References ImplDeleteData(), and mpDel.
| void Accelerator::Activate | ( | ) |
Definition at line 223 of file accel.cxx.
References Link< typename Arg, typename Ret >::Call(), and maActivateHdl.
Referenced by ImplAccelManager::IsAccelKey().
| Accelerator * Accelerator::GetAccel | ( | sal_uInt16 | nItemId | ) | const |
Definition at line 253 of file accel.cxx.
References ACCELENTRY_NOTFOUND, ImplAccelEntryGetIndex(), maIdList, and nIndex.
Referenced by ImplAccelManager::RemoveAccel().
|
inline |
| sal_uInt16 Accelerator::GetItemCount | ( | ) | const |
Definition at line 238 of file accel.cxx.
References maIdList.
Referenced by ImplAccelManager::RemoveAccel().
| sal_uInt16 Accelerator::GetItemId | ( | sal_uInt16 | nPos | ) | const |
Definition at line 243 of file accel.cxx.
References get(), maIdList, ImplAccelEntry::mnId, and nPos.
Referenced by ImplAccelManager::RemoveAccel().
|
private |
Definition at line 121 of file accel.cxx.
References Accelerator(), i, maIdList, and maKeyMap.
Referenced by Accelerator(), and operator=().
|
private |
Definition at line 142 of file accel.cxx.
References maIdList.
Referenced by operator=(), and ~Accelerator().
|
private |
Definition at line 112 of file accel.cxx.
References vcl::KeyCode::GetFullCode(), and maKeyMap.
Referenced by ImplAccelManager::IsAccelKey().
|
private |
Definition at line 106 of file accel.cxx.
References mnCurId, and mpDel.
Referenced by Accelerator().
|
private |
Definition at line 151 of file accel.cxx.
References Accelerator(), vcl::KeyCode::GetFullCode(), vcl::KeyCode::GetFunction(), ImplAccelEntryInsert(), ImplGetKeyCode(), ImplInsertAccel(), vcl::KeyCode::IsFunction(), maIdList, maKeyMap, SAL_WARN, and SAL_WARN_IF.
Referenced by ImplInsertAccel(), and InsertItem().
| void Accelerator::InsertItem | ( | sal_uInt16 | nItemId, |
| const vcl::KeyCode & | rKeyCode | ||
| ) |
Definition at line 233 of file accel.cxx.
References ImplInsertAccel().
Referenced by ImplTBDragMgr::ImplTBDragMgr(), and SvInplaceEdit2::SvInplaceEdit2().
| Accelerator & Accelerator::operator= | ( | const Accelerator & | rAccel | ) |
Definition at line 263 of file accel.cxx.
References ImplCopyData(), ImplDeleteData(), maKeyMap, and mnCurId.
| void Accelerator::Select | ( | ) |
Definition at line 228 of file accel.cxx.
References Link< typename Arg, typename Ret >::Call(), and maSelectHdl.
Referenced by ImplAccelManager::IsAccelKey().
|
inline |
Definition at line 87 of file accel.hxx.
References maActivateHdl.
Referenced by SvInplaceEdit2::SvInplaceEdit2().
|
inline |
Definition at line 88 of file accel.hxx.
References maSelectHdl.
Referenced by ImplTBDragMgr::ImplTBDragMgr().
|
friend |
|
private |
Definition at line 55 of file accel.hxx.
Referenced by Activate(), and SetActivateHdl().
|
private |
Definition at line 54 of file accel.hxx.
Referenced by GetAccel(), GetItemCount(), GetItemId(), ImplCopyData(), ImplDeleteData(), and ImplInsertAccel().
|
private |
Definition at line 53 of file accel.hxx.
Referenced by ImplCopyData(), ImplGetAccelData(), ImplInsertAccel(), and operator=().
|
private |
Definition at line 56 of file accel.hxx.
Referenced by Select(), and SetSelectHdl().
|
private |
Definition at line 59 of file accel.hxx.
Referenced by GetCurItemId(), ImplInit(), ImplAccelManager::IsAccelKey(), and operator=().
|
private |
Definition at line 60 of file accel.hxx.
Referenced by ImplInit(), ImplAccelManager::IsAccelKey(), and ~Accelerator().