Class: TComponentArea

Declaration: GUICompoundDocumentEmbedder.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

TComponentArea is a wrapper for a TDocumentComponent that provides an area to be used to layout the component in a frame view. TGUIEmbedderModel manages a list of TComponentArea to manage its embedded components. The specific use of the area is up to the client, but typically it is used to manage the allocated area in parent for frame view's on the component.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Classes that need to add additional information to be associated with a document component derive from this class.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TComponentArea::TComponentArea

  1. TComponentArea ()
  2. TComponentArea (TDocumentComponent * componentToAdopt)
  3. TComponentArea (TDocumentComponent * componentToAdopt, const TGArea & theArea)
  4. TComponentArea (const TComponentArea &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Creates a component area for a specific component.
  3. Creates a component area for a specific component with an initial area.
  4. Copy constructor.

Calling Context:

  1. Called by the stream-in operators.
  2. Called by any client object.
  3. Called by any client object.
  4. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TComponentArea::~TComponentArea

~ TComponentArea ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TComponentArea::GetArea

TGArea GetArea () const

Interface Category:

API.

Purpose:

Gets the area associated with the component. The area is typically used to manage a component frame view's allocated area in parent.

Calling Context:

Called by any client object.

Parameters:

Return Value:

Returns the current area for the component.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TComponentArea::SetArea

void SetArea (const TGArea & theArea)

Interface Category:

API.

Purpose:

Sets the area associated with the component. The area is typically used to manage a component frame view's allocated area in parent.

Calling Context:

Called by any client object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TComponentArea::GetComponent

  1. TDocumentComponent * GetComponent ()
  2. const TDocumentComponent * GetComponent () const

Interface Category:

API.

Purpose:

  1. Returns the component owned by this component area.
  2. Returns a const pointer to the component owned by this component area.

Calling Context:

  1. Called by any client object.
  2. Called by any client object.

Parameters:

Return Value:

Returns the component owned by this area.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TComponentArea::OrphanComponent

TDocumentComponent * OrphanComponent ()

Interface Category:

API.

Purpose:

Orphans the component owned by this area. This component area no long references any component. The component is owned by the caller.

Calling Context:

Called by any client object.

Parameters:

Return Value:

Returns the orphaned component.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TComponentArea::Hash

HashResult Hash () const

Interface Category:

API.

Purpose:

Provides a hash value for use in collections.

Calling Context:

Called by collection classes.

Parameters:

Return Value:

Returns the hash value for this object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TComponentArea::operator=

TComponentArea & operator =(const TComponentArea &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

Returns a const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TComponentArea::operator==

bool operator ==(const TComponentArea &) const

Interface Category:

API.

Purpose:

Compares this component area against another for equality.

Calling Context:

Called by any client object.

Parameters:

Return Value:

Returns true if this component area has the same area and same component as the other. This is only true if they are the same component area.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TComponentArea::operator!=

bool operator != (const TComponentArea &) const

Interface Category:

API.

Purpose:

Compares this component area against another for inequality.

Calling Context:

Called by any client object.

Parameters:

Return Value:

Returns true if this component area has a different area or component than the other.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TComponentArea::operator>>=

TStream & operator >>=(TStream & towhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TComponentArea::operator<<=

TStream & operator <<= (TStream & fromwhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws a TInvalidVersionError if the version of the object on the stream is unknown to the version of the shared library installed.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.