LibreOffice Module vcl (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Accelerator Class Reference

#include <accel.hxx>

Collaboration diagram for Accelerator:
[legend]

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
 
const vcl::KeyCodeGetCurKeyCode () const
 
sal_uInt16 GetItemCount () const
 
sal_uInt16 GetItemId (sal_uInt16 nPos) const
 
AcceleratorGetAccel (sal_uInt16 nItemId) const
 
void SetActivateHdl (const Link< Accelerator &, void > &rLink)
 
void SetSelectHdl (const Link< Accelerator &, void > &rLink)
 
Acceleratoroperator= (const Accelerator &rAccel)
 

Static Public Member Functions

static bool ToggleMnemonicsOnHierarchy (const CommandEvent &rCEvent, const vcl::Window *pWindow)
 
static void GenerateAutoMnemonicsOnHierarchy (const vcl::Window *pWindow)
 

Private Member Functions

SAL_DLLPRIVATE void ImplInit ()
 
SAL_DLLPRIVATE void ImplCopyData (ImplAccelData &rAccelData)
 
SAL_DLLPRIVATE void ImplDeleteData ()
 
SAL_DLLPRIVATE void ImplInsertAccel (sal_uInt16 nItemId, const vcl::KeyCode &rKeyCode, bool bEnable, Accelerator *pAutoAccel)
 
SAL_DLLPRIVATE ImplAccelEntryImplGetAccelData (const vcl::KeyCode &rKeyCode) const
 

Private Attributes

std::unique_ptr< ImplAccelDatampData
 
Link< Accelerator &, voidmaActivateHdl
 
Link< Accelerator &, voidmaSelectHdl
 
vcl::KeyCode maCurKeyCode
 
sal_uInt16 mnCurId
 
bool * mpDel
 

Friends

class ImplAccelManager
 

Detailed Description

Definition at line 32 of file accel.hxx.

Constructor & Destructor Documentation

Accelerator::Accelerator ( )

Definition at line 216 of file accel.cxx.

References ImplInit(), and mpData.

Referenced by ImplCopyData(), and ImplInsertAccel().

Accelerator::Accelerator ( const Accelerator rAccel)

Definition at line 222 of file accel.cxx.

References ImplCopyData(), ImplInit(), and mpData.

Accelerator::~Accelerator ( )

Definition at line 230 of file accel.cxx.

References ImplDeleteData(), and mpDel.

Member Function Documentation

void Accelerator::Activate ( )

Definition at line 240 of file accel.cxx.

References Link< class, class >::Call(), and maActivateHdl.

Referenced by ImplAccelManager::IsAccelKey().

void Accelerator::GenerateAutoMnemonicsOnHierarchy ( const vcl::Window pWindow)
static
Accelerator * Accelerator::GetAccel ( sal_uInt16  nItemId) const

Definition at line 271 of file accel.cxx.

References ACCELENTRY_NOTFOUND, ImplAccelEntryGetIndex(), and mpData.

Referenced by ImplAccelManager::RemoveAccel().

sal_uInt16 Accelerator::GetCurItemId ( ) const
inline

Definition at line 68 of file accel.hxx.

const vcl::KeyCode& Accelerator::GetCurKeyCode ( ) const
inline

Definition at line 69 of file accel.hxx.

sal_uInt16 Accelerator::GetItemCount ( ) const

Definition at line 255 of file accel.cxx.

References mpData.

Referenced by ImplAccelManager::RemoveAccel().

sal_uInt16 Accelerator::GetItemId ( sal_uInt16  nPos) const

Definition at line 261 of file accel.cxx.

References ImplAccelEntry::mnId, and mpData.

Referenced by ImplAccelManager::RemoveAccel().

void Accelerator::ImplCopyData ( ImplAccelData rAccelData)
private

Definition at line 135 of file accel.cxx.

References Accelerator(), i, ImplAccelData::maIdList, and mpData.

Referenced by Accelerator(), and operator=().

void Accelerator::ImplDeleteData ( )
private

Definition at line 156 of file accel.cxx.

References mpData.

Referenced by operator=(), and ~Accelerator().

ImplAccelEntry * Accelerator::ImplGetAccelData ( const vcl::KeyCode rKeyCode) const
private

Definition at line 126 of file accel.cxx.

References vcl::KeyCode::GetFullCode(), and mpData.

Referenced by ImplAccelManager::IsAccelKey().

void Accelerator::ImplInit ( )
private

Definition at line 120 of file accel.cxx.

References mnCurId, and mpDel.

Referenced by Accelerator().

void Accelerator::ImplInsertAccel ( sal_uInt16  nItemId,
const vcl::KeyCode rKeyCode,
bool  bEnable,
Accelerator pAutoAccel 
)
private
void Accelerator::InsertItem ( sal_uInt16  nItemId,
const vcl::KeyCode rKeyCode 
)

Definition at line 250 of file accel.cxx.

References ImplInsertAccel().

Referenced by ImplTBDragMgr::ImplTBDragMgr().

Accelerator & Accelerator::operator= ( const Accelerator rAccel)

Definition at line 281 of file accel.cxx.

References ImplCopyData(), ImplDeleteData(), maCurKeyCode, mnCurId, and mpData.

void Accelerator::Select ( )

Definition at line 245 of file accel.cxx.

References Link< class, class >::Call(), and maSelectHdl.

Referenced by ImplAccelManager::IsAccelKey().

void Accelerator::SetActivateHdl ( const Link< Accelerator &, void > &  rLink)
inline

Definition at line 76 of file accel.hxx.

void Accelerator::SetSelectHdl ( const Link< Accelerator &, void > &  rLink)
inline

Definition at line 77 of file accel.hxx.

Referenced by ImplTBDragMgr::ImplTBDragMgr().

bool Accelerator::ToggleMnemonicsOnHierarchy ( const CommandEvent rCEvent,
const vcl::Window pWindow 
)
static

Friends And Related Function Documentation

friend class ImplAccelManager
friend

Definition at line 34 of file accel.hxx.

Member Data Documentation

Link<Accelerator&,void> Accelerator::maActivateHdl
private

Definition at line 38 of file accel.hxx.

Referenced by Activate().

vcl::KeyCode Accelerator::maCurKeyCode
private

Definition at line 42 of file accel.hxx.

Referenced by ImplAccelManager::IsAccelKey(), and operator=().

Link<Accelerator&,void> Accelerator::maSelectHdl
private

Definition at line 39 of file accel.hxx.

Referenced by Select().

sal_uInt16 Accelerator::mnCurId
private

Definition at line 43 of file accel.hxx.

Referenced by ImplInit(), ImplAccelManager::IsAccelKey(), and operator=().

std::unique_ptr<ImplAccelData> Accelerator::mpData
private
bool* Accelerator::mpDel
private

Definition at line 44 of file accel.hxx.

Referenced by ImplInit(), ImplAccelManager::IsAccelKey(), and ~Accelerator().


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