[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

 

LTETypingAction



Overview:

LTETypingAction is a PowerPlant class that is used for handling common typing actions.

Methods :

The methods in this class are:

 

LTETypingAction()  
~LTETypingAction()  
BackwardErase()  
ForwardErase()  
InputCharacter()  
RedoSelf()  
Reset()  
UndoSelf()  

Data Members:

The data members in this class are:

 

mTypedTextH  
mTypingStart  
mTypingEnd  
 

Operation:

This is a simple class for handling typing in the TextEdit field.

Source files:

(Action Classes)

UTETextAction.h

UTETextAction.cp

Ancestors:

LAction

LTETextAction

LTETypingAction()

Purpose:

The constructor creates the object from the passed-in parameters.

Access:

Public

Prototype:

LTETypingAction( TEHandle inMacTEH,
LCommander *inTextCommander,
LPane *inTextPane );
Parameters:

The parameters for this constructor are:

 

TEHandle  
inMacTEH  
The Mac OS TextEdit handle.  
LCommander*  
inTextCommander  
The pointer to the text Commander.  
LPane*  
inTextPane  
The pointer to the Pane.  

~LTETypingAction()

Purpose:

The destructor destroys the object.

Access:

Virtual, Public

Prototype:

virtual ~LTETypingAction();

BackwardErase()

Purpose:

Handle the backward delete typing action. Backward delete erases the current selection if one or more characters are selected. If the selection is a single insertion point, then backward delete erases the one character before the insertion point

Access:

Virtual, Public

Prototype:

virtual void BackwardErase();
Parameters:

None

Return:

None

ForwardErase()

Purpose:

Handle forward delete typing action. Forward delete erases the current selection if one or more characters are selected. If the selection is a single insertion point, then forward delete erases the one character after the insertion point.

Access:

Virtual, Public

Prototype:

virtual void ForwardErase();
Parameters:

None

Return:

None

InputCharacter()

Purpose:

Handle an input character typing action.

Access:

Virtual, Public

Prototype:

virtual void InputCharacter( SInt16 inChar );
Parameters:

The parameters for this constructor are:

 

SInt16  
inChar  
The character that was typed.  

Return:

None

RedoSelf()

Purpose:

Redo a TypingAction by restoring the last typing sequence. This is an override of RedoSelf() in LAction.

Reset()

Purpose:

Re-initialize the state of the typing action.

Access:

Virtual, Public

Prototype:

virtual void Reset();
Parameters:

None

Return:

None

UndoSelf()

Purpose:

Undo a typing action by restoring the text and selection that existed before the current typing sequence started. This is an override of UndoSelf() in LAction.

mTypedTextH

Purpose:

The handle to the typed text.

Access:

Protected

Prototype:

Handle mTypedTextH;

mTypingStart

Purpose:

The start of the typing.

Access:

Protected

Prototype:

SInt16 mTypingStart;

mTypingEnd

Purpose:

The end of the typing.

Access:

Protected

Prototype:

SInt16 mTypingEnd;

 


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: July 21, 2000