Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_MLTESupport Class Reference

Mix-in class to provide support for the CP_TextView implmentation class based on MacOS MLTE.

List of all members.

Initialization

void InitMLTE ()
void CreateMLTEObject (OSWindow inWindow, const CP_Rect &inBounds, TXNFrameOptions inFrameOptions, TXNFrameType inFrameType, TXNFileType inFileType, TXNPermanentTextEncodingType inPermanentEncoding, OSControl inOwnerControl)
static bool IsInited ()

Public Member Functions

Constructor / Destructor
 CP_MLTESupport ()
 Constructor.
virtual ~CP_MLTESupport () throw ()
 Destructor.
Appearance
void ActivateText (bool inActive)
void FocusText (bool inFocus)
Command Handling
void HandleCommandStatus (CP_CommandStatus &inCommandStatus, bool &inOutResult, CP_CommandNo &inCommandNo)
void HandleCutCommand (OSStatus &inOutStatus)
void HandleCopyCommand (OSStatus &inOutStatus)
void HandleClearCommand (OSStatus &inOutStatus)
void HandlePasteCommand (OSStatus &inOutStatus)
void HandleSelectAllCommand (OSStatus &inOutStatus)
void HandleUndoCommand (OSStatus &inOutStatus)
void HandleRedoCommand (OSStatus &inOutStatus)
Drawing
void Draw ()
Events
ControlPartCode HandleClick (const CP_Point &inMouseLocation)
Getters
TXNObject GetTXNObject ()
TXNFrameID GetTXNFrameID ()
CP_Rect GetTextArea ()
CP_Rect GetFocusOutline ()
CP_Rect GetTextOutline ()
UInt32 GetTextLength ()
CP_String GetText (char inLineEnd=CP_LF)
bool GetDrawFrameWhenFocused ()
Printing
void Print ()
Selection
void GetSelection (UInt32 *inStartSelection, UInt32 *inEndSelection)
void SetSelection (UInt32 inStartSelection, UInt32 inEndSelection)
bool HasSelection ()
Setters
void SetTXNObject (TXNObject inObject)
void SetTXNFrameID (TXNFrameID inFrameID)
void SetText (const CP_String &inText)
void SetText (CP_InStream *inStream)
void InsertText (const CP_String &inText)
void InsertText (const char *inTextPtr, SInt32 inTextLength)
void SetPortBounds (const CP_Rect &inBounds)
void SetFontSpec (CP_FontSpec &inFontSpec)
void SetActive (bool inActive)
void SetTEActive (bool inTEActive)
void SetFocused (bool inFocused)
void SetTextArea (const CP_Rect inTextArea)
void SetFocusOutline (const CP_Rect inFocusOutline)
void SetTextOutline (const CP_Rect inTextOutline)
void SetDrawFrameWhenFocused (bool inDrawFrame)
Testers
bool IsActive ()
bool IsTEActive ()
bool IsFocused ()

Protected Attributes

OSControl fOwnerControl
TXNObject fTXNObject
TXNFrameID fTXNFrameID
CP_Rect fTextArea
CP_Rect fFocusOutline
CP_Rect fTextOutline
CP_Region fTextBackgroundRgn
bool fIsActive
bool fTEActive
bool fIsFocued
bool fDrawFrameWhenFocused
CGrafPtr fDrawingEnvironment

Static Protected Attributes

static bool fsIsInited = false

Private Member Functions

void SetFontName (const CP_String &inFontName)
void SetFontSize (SInt16 inFontSize)
void SetFontStyle (SInt16 inFontStyle)


Constructor & Destructor Documentation

CP_MLTESupport::CP_MLTESupport  ) 
 

Constructor.

CP_MLTESupport::~CP_MLTESupport  )  throw () [virtual]
 

Destructor.


Member Function Documentation

static bool CP_MLTESupport::IsInited  )  [static]
 

void CP_MLTESupport::InitMLTE  ) 
 

void CP_MLTESupport::CreateMLTEObject OSWindow  inWindow,
const CP_Rect inBounds,
TXNFrameOptions  inFrameOptions,
TXNFrameType  inFrameType,
TXNFileType  inFileType,
TXNPermanentTextEncodingType  inPermanentEncoding,
OSControl  inOwnerControl
 

void CP_MLTESupport::ActivateText bool  inActive  ) 
 

void CP_MLTESupport::FocusText bool  inFocus  ) 
 

void CP_MLTESupport::HandleCommandStatus CP_CommandStatus inCommandStatus,
bool &  inOutResult,
CP_CommandNo inCommandNo
 

void CP_MLTESupport::HandleCutCommand OSStatus inOutStatus  ) 
 

void CP_MLTESupport::HandleCopyCommand OSStatus inOutStatus  ) 
 

void CP_MLTESupport::HandleClearCommand OSStatus inOutStatus  ) 
 

void CP_MLTESupport::HandlePasteCommand OSStatus inOutStatus  ) 
 

void CP_MLTESupport::HandleSelectAllCommand OSStatus inOutStatus  ) 
 

void CP_MLTESupport::HandleUndoCommand OSStatus inOutStatus  ) 
 

void CP_MLTESupport::HandleRedoCommand OSStatus inOutStatus  ) 
 

void CP_MLTESupport::Draw  ) 
 

ControlPartCode CP_MLTESupport::HandleClick const CP_Point inMouseLocation  ) 
 

TXNObject CP_MLTESupport::GetTXNObject  ) 
 

TXNFrameID CP_MLTESupport::GetTXNFrameID  ) 
 

CP_Rect CP_MLTESupport::GetTextArea  ) 
 

CP_Rect CP_MLTESupport::GetFocusOutline  ) 
 

CP_Rect CP_MLTESupport::GetTextOutline  ) 
 

UInt32 CP_MLTESupport::GetTextLength  ) 
 

CP_String CP_MLTESupport::GetText char  inLineEnd = CP_LF  ) 
 

bool CP_MLTESupport::GetDrawFrameWhenFocused  ) 
 

void CP_MLTESupport::Print  ) 
 

void CP_MLTESupport::GetSelection UInt32 inStartSelection,
UInt32 inEndSelection
 

void CP_MLTESupport::SetSelection UInt32  inStartSelection,
UInt32  inEndSelection
 

bool CP_MLTESupport::HasSelection  ) 
 

void CP_MLTESupport::SetTXNObject TXNObject  inObject  ) 
 

void CP_MLTESupport::SetTXNFrameID TXNFrameID  inFrameID  ) 
 

void CP_MLTESupport::SetText const CP_String inText  ) 
 

void CP_MLTESupport::SetText CP_InStream inStream  ) 
 

Todo:
to be implemented

void CP_MLTESupport::InsertText const CP_String inText  ) 
 

void CP_MLTESupport::InsertText const char *  inTextPtr,
SInt32  inTextLength
 

void CP_MLTESupport::SetPortBounds const CP_Rect inBounds  ) 
 

void CP_MLTESupport::SetFontSpec CP_FontSpec inFontSpec  ) 
 

void CP_MLTESupport::SetActive bool  inActive  ) 
 

void CP_MLTESupport::SetTEActive bool  inTEActive  ) 
 

void CP_MLTESupport::SetFocused bool  inFocused  ) 
 

void CP_MLTESupport::SetTextArea const CP_Rect  inTextArea  ) 
 

void CP_MLTESupport::SetFocusOutline const CP_Rect  inFocusOutline  ) 
 

void CP_MLTESupport::SetTextOutline const CP_Rect  inTextOutline  ) 
 

void CP_MLTESupport::SetDrawFrameWhenFocused bool  inDrawFrame  ) 
 

bool CP_MLTESupport::IsActive  ) 
 

bool CP_MLTESupport::IsTEActive  ) 
 

bool CP_MLTESupport::IsFocused  ) 
 

void CP_MLTESupport::SetFontName const CP_String inFontName  )  [private]
 

void CP_MLTESupport::SetFontSize SInt16  inFontSize  )  [private]
 

void CP_MLTESupport::SetFontStyle SInt16  inFontStyle  )  [private]
 


Member Data Documentation

CPLAT_Begin_Namespace_CPLAT bool CP_MLTESupport::fsIsInited = false [static, protected]
 

OSControl CP_MLTESupport::fOwnerControl [protected]
 

TXNObject CP_MLTESupport::fTXNObject [protected]
 

TXNFrameID CP_MLTESupport::fTXNFrameID [protected]
 

the txn record

CP_Rect CP_MLTESupport::fTextArea [protected]
 

the txn frame ID

CP_Rect CP_MLTESupport::fFocusOutline [protected]
 

CP_Rect CP_MLTESupport::fTextOutline [protected]
 

rectangle used to draw the focus box

CP_Region CP_MLTESupport::fTextBackgroundRgn [protected]
 

rectangle used to draw the border

bool CP_MLTESupport::fIsActive [protected]
 

bool CP_MLTESupport::fTEActive [protected]
 

bool CP_MLTESupport::fIsFocued [protected]
 

bool CP_MLTESupport::fDrawFrameWhenFocused [protected]
 

CGrafPtr CP_MLTESupport::fDrawingEnvironment [protected]
 


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:01:53 2005 for CPLAT by  doxygen 1.4.0