class CAknCcpuSupport : public CAknControl |
Cut, copy, paste and undo support class. Takes care of CBA handling and menu command processing when FEP instructs this control to activate the commands for ccpu operations.
Public Member Functions | |
---|---|
CAknCcpuSupport(MEikCcpuEditor *) | |
~CAknCcpuSupport() | |
IMPORT_C void | ConstructL() |
IMPORT_C void | DynInitMenuPaneL(TInt, CEikMenuPane *) |
IMPORT_C void | HandleFocusChangeL() |
IMPORT_C void | HandlePointerEventL(const TPointerEvent &) |
IMPORT_C void | HandleSelectionChangeL() |
IMPORT_C TKeyResponse | OfferKeyEventL(const TKeyEvent &, TEventCode) |
IMPORT_C void | ProcessCommandL(TInt) |
Private Member Functions | |
---|---|
void | DeleteCBAL() |
IMPORT_C void * | ExtensionInterface(TUid) |
void | SetEmphasis(CCoeControl *, TBool) |
TBool | UpdateCBALabelL(TInt, TInt, TInt) |
void | UpdateCBALabelsL() |
Inherited Enumerations | |
---|---|
CCoeControl:TZoomType |
Private Attributes | |
---|---|
MEikCcpuEditor * | iEditor |
CAknCcpuSupportExtension * | iExtention |
TBitFlags | iFlags |
CEikMenuBar * | iMenu |
Inherited Attributes | |
---|---|
CCoeControl::iCoeEnv | |
CCoeControl::iContext | |
CCoeControl::iPosition | |
CCoeControl::iSize |
IMPORT_C | CAknCcpuSupport | ( | MEikCcpuEditor * | aEditor | ) |
Constructor. ConstructL() must be called after a call to this function.
MEikCcpuEditor * aEditor | A pointer to the editor implementing the MEikCcpuEditor interface. |
IMPORT_C void | ConstructL | ( | ) |
2nd phase constructor.
Adds this control to the control stack.
IMPORT_C void | DynInitMenuPaneL | ( | TInt | aResourceId, |
CEikMenuPane * | aMenuPane | |||
) |
From MEikMenuObserver.
Dynamically initialises a menu pane.
TInt aResourceId | Resource ID of the menu. |
CEikMenuPane * aMenuPane | The in-memory representation of the menu pane. |
IMPORT_C void * | ExtensionInterface | ( | TUid | aInterface | ) | [private, virtual] |
From CAknControl
TUid aInterface |
IMPORT_C void | HandleFocusChangeL | ( | ) |
Updates the CBA labels according to editor focus state.
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
From CCoeControl.
Handles pointer events.
const TPointerEvent & aPointerEvent | The pointer event. |
IMPORT_C void | HandleSelectionChangeL | ( | ) |
Updates the CBA labels according to selection and clipboard contents.
IMPORT_C TKeyResponse | OfferKeyEventL | ( | const TKeyEvent & | aKeyEvent, |
TEventCode | aType | |||
) | [virtual] |
Responds to key presses.
Overrides CCoeControl::OfferKeyEventL().
Indicates whether or not the key event was consumed.
const TKeyEvent & aKeyEvent | The key event. |
TEventCode aType | Not used. |
IMPORT_C void | ProcessCommandL | ( | TInt | aCommandId | ) |
From MEikCommandObserver.
Processes user commands.
TInt aCommandId | ID of the command to respond to. |
void | SetEmphasis | ( | CCoeControl * | aMenuControl, |
TBool | aEmphasis | |||
) | [private] |
CCoeControl * aMenuControl | |
TBool aEmphasis |
TBool | UpdateCBALabelL | ( | TInt | aPosition, |
TInt | aCommandId, | |||
TInt | aTextResId | |||
) | [private] |