Class: TScrapInteractionModifier

Declaration: ScrapInteractionModifier.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

TScrapInteractionModifier is used during Workspace drag and drop operations to package up modifiers to the drag operation. Modifiers change the operation performed by the drag--for example, if the user holds down the control key while dragging a document from one folder to another, the document is copied rather than moved to the destination folder. Currently only keyboard modifiers are supported, but the key modifier class itself is not used because: 1) this support should not be drag and drop interaction dependent, and 2) to allow for future extensions to this modifier object. The modifier is given to the drag source when the drag source is asked to provide all of the scrap items for the document being dragged.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None provided.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TScrapInteractionModifier::TScrapInteractionModifier

  1. TScrapInteractionModifier ()
  2. TScrapInteractionModifier (const TModifierKeys & modifierKeys)
  3. TScrapInteractionModifier (const TScrapInteractionModifier & source)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Creates a new scrap interaction modifier object for the specified modifier keys.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators.
  2. Called to construct an object with a modifier keys value.
  3. 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: TScrapInteractionModifier::~TScrapInteractionModifier

virtual ~ TScrapInteractionModifier ()

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: TScrapInteractionModifier::operator=

TScrapInteractionModifier & operator =(const TScrapInteractionModifier & source)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Call this function by using the operator in an assignment statement.

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: TScrapInteractionModifier::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: TScrapInteractionModifier::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.

Member Function: TScrapInteractionModifier::GetModifierKeys

TModifierKeys GetModifierKeys () const

Interface Category:

API.

Purpose:

Returns the modifier keys contained by this modifier object. The modifier keys are provided to this object during its construction.

Calling Context:

Called to provide the modifier keys contained by this object.

Parameters:

Return Value:

Returns the modifier keys contained by this modifier object.

Exceptions:

Throws no exceptions, passes all exceptions through.

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.