Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
AETokenDesc Class Reference

#include <nsAETokens.h>

Inheritance diagram for AETokenDesc:
Inheritance graph
[legend]
Collaboration diagram for AETokenDesc:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AETokenDesc (AEDesc *token)
 ~AETokenDesc ()
void SetDispatchClass (DescType dispatchClass)
void SetObjectClass (DescType objectClass)
void SetPropertyCode (DescType propertyCode)
void SetElementNumber (TAEListIndex number)
void SetWindow (WindowPtr wind)
void UpdateDesc ()
CoreTokenRecordGetTokenRecord ()
DescType GetDispatchClass () const
DescType GetObjectClass () const
Boolean UsePropertyCode () const
DescType GetPropertyCode () const
long GetDocumentID () const
WindowPtr GetWindowPtr () const
TAEListIndex GetElementNumber () const

Protected Attributes

AEDesc * mTokenDesc
CoreTokenRecord mTokenRecord
Boolean mTokenWasNull

Detailed Description

Definition at line 107 of file nsAETokens.h.


Constructor & Destructor Documentation

AETokenDesc::AETokenDesc ( AEDesc *  token)

Definition at line 123 of file nsAETokens.cpp.

:      ConstAETokenDesc(token)
,      mTokenDesc(token)
{
       if (mTokenWasNull)                 // we cannot wrap a null token
              ThrowOSErr(paramErr);
}

Definition at line 132 of file nsAETokens.cpp.

{
       UpdateDesc();        // update the AEDesc that we wrap
}

Here is the call graph for this function:


Member Function Documentation

DescType ConstAETokenDesc::GetDispatchClass ( ) const [inherited]

Definition at line 60 of file nsAETokens.cpp.

Here is the caller graph for this function:

long ConstAETokenDesc::GetDocumentID ( ) const [inherited]

Definition at line 95 of file nsAETokens.cpp.

Here is the caller graph for this function:

Definition at line 112 of file nsAETokens.cpp.

Here is the caller graph for this function:

DescType ConstAETokenDesc::GetObjectClass ( ) const [inherited]

Definition at line 68 of file nsAETokens.cpp.

DescType ConstAETokenDesc::GetPropertyCode ( ) const [inherited]

Definition at line 87 of file nsAETokens.cpp.

Here is the caller graph for this function:

Definition at line 121 of file nsAETokens.h.

{ return mTokenRecord; }
WindowPtr ConstAETokenDesc::GetWindowPtr ( ) const [inherited]

Definition at line 103 of file nsAETokens.cpp.

Here is the caller graph for this function:

void AETokenDesc::SetDispatchClass ( DescType  dispatchClass)

Definition at line 145 of file nsAETokens.cpp.

{
       mTokenRecord.dispatchClass = dispatchClass;
}

Definition at line 158 of file nsAETokens.cpp.

void AETokenDesc::SetObjectClass ( DescType  objectClass)

Definition at line 152 of file nsAETokens.cpp.

{
       mTokenRecord.objectClass = objectClass;
}
void AETokenDesc::SetPropertyCode ( DescType  propertyCode)

Definition at line 139 of file nsAETokens.cpp.

{
       mTokenRecord.propertyCode = propertyCode;
}

Here is the caller graph for this function:

void AETokenDesc::SetWindow ( WindowPtr  wind)

Definition at line 164 of file nsAETokens.cpp.

{
       mTokenRecord.window = wind;
}

Definition at line 170 of file nsAETokens.cpp.

{
       OSErr  err = ::AEReplaceDescData(mTokenDesc->descriptorType, &mTokenRecord, sizeof(CoreTokenRecord), mTokenDesc);
       ThrowIfOSErr(err);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 79 of file nsAETokens.cpp.

{
       ThrowErrIfTrue(mTokenWasNull, paramErr);
       return (mTokenRecord.propertyCode != typeNull);
}

Here is the caller graph for this function:


Member Data Documentation

AEDesc* AETokenDesc::mTokenDesc [protected]

Definition at line 125 of file nsAETokens.h.

Definition at line 97 of file nsAETokens.h.

Boolean ConstAETokenDesc::mTokenWasNull [protected, inherited]

Definition at line 98 of file nsAETokens.h.


The documentation for this class was generated from the following files: