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

 

LTETextAction



Overview:

LTETextAction is a PowerPlant class that is used for handling the common editing actions for a TextEdit field.

Methods :

The methods in this class are:

 

LTETextAction()  
~LTETextAction()  
CanRedo()  
CanUndo()  
Redo()  
Undo()  
UndoSelf()  
 

Data Members:

The data members in this class are:

 

mTextCommander  
mTextPane  
mMacTEH  
mActionCommand  
mDeletedTextH  
mDeletedTextLen  
mSelStart  
mSelEnd  

Operation:

This is a simple class for handling operations for the TextEdit field.

Source files:

(Action Classes)

UTETextAction.h

UTETextAction.cp

Ancestors:

LAction

LTETextAction

LTETextAction()

Purpose:

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

Access:

Public

Prototype:

LTETextAction( SInt16 inDescriptionIndex,
CommandT inActionCommand,
TEHandle inMacTEH,
LCommander *inTextCommander,
LPane *inTextPane,
Boolean inAlreadyDone );
Parameters:

The parameters for this constructor are:

 

SInt16  
inDescriptionIndex  
The description index to send to the LAction() constructor.  
CommandT  
inActionCommand  
The action command.  
TEHandle  
inMacTEH  
The Mac OS TextEdit handle.  
LCommander*  
inTextCommander  
The commander.  
LPane*  
inTextPane  
The pane for the text.  
Boolean  
inAlreadyDone  
This is passed to the LAction() constructor.  

~LTETextAction()

Purpose:

The destructor destroys the object.

Access:

Virtual, Public

Prototype:

virtual ~LTETextAction();

CanRedo()

Purpose:

This is an override of CanRedo() in LAction.

CanUndo()

Purpose:

This is an override of CanUndo() in LAction.

Redo()

Purpose:

This is an override of Redo() in LAction.

Undo()

Purpose:

This is an override of Undo() in LAction.

UndoSelf()

Purpose:

This is an override of UndoSelf() in LAction.

mTextCommander

Purpose:

Pointer storage for the text Commander.

Access:

Protected

Prototype:

LCommander *mTextCommander;

mTextPane

Purpose:

A pointer to the text Pane.

Access:

Protected

Prototype:

LPane *mTextPane;

mMacTEH

Purpose:

The Mac OS TextEdit handle.

Access:

Protected

Prototype:

TEHandle mMacTEH;

mActionCommand

Purpose:

Storage for the action command.

Access:

Protected

Prototype:

MessageT mActionCommand;

mDeletedTextH

Purpose:

Storage for the handle to deleted text.

Access:

Protected

Prototype:

Handle mDeletedTextH;

mDeletedTextLen

Purpose:

Storage for the length of the deleted text.

Access:

Protected

Prototype:

SInt32 mDeletedTextLen;

mSelStart

Purpose:

The start of the selection.

Access:

Protected

Prototype:

SInt16 mSelStart;

mSelEnd

Purpose:

The end of the selection.

Access:

Protected

Prototype:

SInt16 mSelEnd;

 


[ 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