Public Types | |
enum | StartReason { ActivateOnMouseClick, ActivateOnMouseDblClick, ActivateOnNavigation, ActivateOnUserStart } |
Indicates the reason for the start of edit in place. More... | |
enum | StopReason { Undefined, KeyReturn, KeyEscape, KeyUp, KeyDown, KeyLeft, KeyRight, KeyPageUp, KeyPageDown, KeyHome, KeyEnd, KeySpace, KeyTab, KeyShiftTab, KeyCtrlTab, MouseWheelUp, MouseWheelDown, MouseRBDown, MouseLBDown, MouseLBDblClick, MouseRBDblClick , LostFocus, UserStop } |
Indicates the reason for the stop of edit in place. More... | |
Public Member Functions | |
virtual | ~IEditInPlace () |
Virtual destructor. | |
virtual bool | CanBeginEdit (const CEditInPlaceContext &context, StartReason startReason) const =0 |
Indicates whether edit in place can be started in a specified cell with a given start reason. | |
virtual bool | AttachControl (CEditInPlaceContext &context, StartReason startReason, const Common::CFormat *format)=0 |
virtual bool | CanStopEdit (const CEditInPlaceContext &context, StopReason stopReason) const =0 |
Indicates whether edit in place can be stopped. | |
virtual void | OnBeginEdit (const CEditInPlaceContext &context, CWnd *editControl)=0 |
Called at the beginning of edit in place. | |
virtual void | OnEndEdit (CEditInPlaceContext &context, StopReason stopReason, CWnd *detachedControl, const Common::CFormat *format)=0 |
Stops edit in place. Detaches a control throught IControlReflector interface. | |
virtual bool | Navigate (CEditInPlaceContext &context, StopReason stopReason)=0 |
Allows to choose the next control upon a navigation event like Tab, KeyUp, KeyDown etc. | |
virtual UINT | PrePaintCell (CGridCell &cell, const CPaintContext &paintContext, UINT paintFilter)=0 |
Forwards cell drawing of CGrid painting routine to an appropriate reflector before the cell is pained. | |
virtual void | PostPaintCell (CGridCell &cell, const CPaintContext &paintContext, UINT paintFilter)=0 |
Forwards cell drawing of CGrid painting routine to an appropriate reflector after the cell is pained. | |
Classes | |
struct | NavigationTarget |
Determines the next cell which can participate in navigation. More... |
enum StartReason |
Indicates the reason for the start of edit in place.
enum StopReason |
Indicates the reason for the stop of edit in place.
bool CanBeginEdit | ( | const CEditInPlaceContext & | context, | |
StartReason | startReason | |||
) | const [pure virtual] |
Indicates whether edit in place can be started in a specified cell with a given start reason.
[in] | context | Nested information with the reference to CGrid, line and column where edit in place to be processed. |
[in] | startReason | Indicates the reason for the start of edit in place. |
Implemented in CEditInPlace.
virtual bool AttachControl | ( | CEditInPlaceContext & | context, | |
StartReason | startReason, | |||
const Common::CFormat * | format | |||
) | [pure virtual] |
Starts edit in place. Handles control creation through IControlReflector interface. The best place to choose the appropriate reflector if default behavior doesn't conform to your needs.
Implemented in CEditInPlace.
bool CanStopEdit | ( | const CEditInPlaceContext & | context, | |
StopReason | stopReason | |||
) | const [pure virtual] |
Indicates whether edit in place can be stopped.
[in] | context | Nested information with the reference to CGrid, line and column where edit in place is processed. |
[in] | stopReason | Indicates the reason for the stop of edit in place. |
Implemented in CEditInPlace.
void OnEndEdit | ( | CEditInPlaceContext & | context, | |
StopReason | stopReason, | |||
CWnd * | detachedControl, | |||
const Common::CFormat * | format | |||
) | [pure virtual] |
Stops edit in place. Detaches a control throught IControlReflector interface.
[in] | context | Nested information with the reference to CGrid, line and column where edit in place is processed. |
[in] | stopReason | Indicates the reason for the stop of edit in place. |
[in] | detachedControl | Control to be detached. |
[in] | format | Format to transform string to the non-formatted value which will be passed to the data object. |
Implemented in CEditInPlace.
bool Navigate | ( | CEditInPlaceContext & | context, | |
StopReason | stopReason | |||
) | [pure virtual] |
Allows to choose the next control upon a navigation event like Tab, KeyUp, KeyDown etc.
[in] | context | Nested information with the reference to CGrid, line and column where edit in place is processed. |
[in] | stopReason | Indicates the reason for the stop of edit in place. |
Implemented in CEditInPlace.
void PrePaintCell | ( | CGridCell & | cell, | |
const CPaintContext & | paintContext, | |||
UINT | paintFilter | |||
) | [pure virtual] |
Forwards cell drawing of CGrid painting routine to an appropriate reflector before the cell is pained.
[in] | cell | Cell related information |
[in] | paintContext | Contains common information like device context, header, grid etc. |
[in] | paintFilter | Set of painting operations, defined in PaintFilter enumeration. |
Implemented in CEditInPlace.
void PostPaintCell | ( | CGridCell & | cell, | |
const CPaintContext & | paintContext, | |||
UINT | paintFilter | |||
) | [pure virtual] |
Forwards cell drawing of CGrid painting routine to an appropriate reflector after the cell is pained.
[in] | cell | Cell related information |
[in] | paintContext | Contains common information like device context, header, grid etc. |
[in] | paintFilter | Set of painting operations, defined in PaintFilter enumeration. |
Implemented in CEditInPlace.
Copyright Dapfor 2007-2009 | Generated on Wed Jul 7 03:24:43 2010 for MFCGrid by 1.5.5 |