Class: TNUpCompositor

Declaration: PageCompositor.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TPageCompositor

Inherited By:

None.

Purpose:

This is a special example of a TPageCompositor that produces N-Up printing, that is, it places several target pages onto a single destination page in a tiled format.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

This is a special derived class of TPageCompositor. It is not designed to be further derived.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TNUpCompositor::TNUpCompositor

  1. TNUpCompositor (const TNUpCompositor &)
  2. TNUpCompositor (const TULongPair & xyNUpFrequency, const TPageDescription & masterPage, const TPageDescription & tiledPage, TPageMapper :: EMapOrientation align =TPageMapper :: kPickBestWithLeftBinding, TScanOrder * adoptOrder =NIL)
  3. TNUpCompositor (const TULongPair & xyNUpFrequency, const TPageDescription & masterPage)
  4. TNUpCompositor (const TULongPair & xyNUpFrequency, TPageMapper :: EMapOrientation align =TPageMapper :: kPickBestWithLeftBinding)
  5. TNUpCompositor ()

Interface Category:

API.

Purpose:

  1. Copy constructor.
  2. Constructs a custom N-Up compositor with the given page frequency. This is the most general of all the available constructors. The destination page description is masterPage and the source page description is tilePage. The page mapping will be defaulted to best with left binding if not otherwise specified and the order of the tiling will be defaulted left-to-right-top-to-bottom unless otherwise specified.
  3. Constructs a generic N-Up compositor with the source pages defaulted to be the same as the masterPage. Orientation is defaulted to kPickBestWithLeftBinding and the order is defaulted to left-to-right-top-to-bottom.
  4. This constructor defers specification of the source and master pages until a page iterator is created, at which time the destination and source pages will be derived from the target page iterator.
  5. Default constructor.

Calling Context:

  1. Called to copy an object.
  2. Called to create a custom N-Up compositor.
  3. Called to create a custom N-Up compositor with some parameters defaulted.
  4. Called to create a custom N-Up compositor with some parameters defaulted.
  5. Called to create a 1-Up compositor with defaulted parameters. Only for internal use by Resurrect. Developers should treat as protected.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TNUpCompositor::~TNUpCompositor

virtual ~ TNUpCompositor ()

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: TNUpCompositor::CreatePageIterator

virtual TPrintPageIterator * CreatePageIterator (TPageIterator * aliasIterator, TPageRange * aliasRange =NIL) const

Interface Category:

API.

Purpose:

Creates a page iterator for pages of aliasIterator arranged in some N-Up configuration as specified by the class. The page range determines which pages are included in any iteration.

Calling Context:

Called directly to create a page iterator with the desired N-Up features over a specific target.

Parameters:

Return Value:

Returns the newly created page iterator.

Exceptions:

Throws TStandardPrintPreprocessingException::kTargetMissing if the adopted page iterator is NIL.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TNUpCompositor::Hash

virtual long Hash () const

Interface Category:

API.

Purpose:

Generates hash value.

Calling Context:

Called directly to generate a hash value. Also used when an object is placed in a collection.

Parameters:

Return Value:

Returns a hash value.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TNUpCompositor::operator=

virtual TNUpCompositor & operator =(const TNUpCompositor &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TNUpCompositor::operator<<=

virtual TStream & operator <<= (TStream & fromWhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called directly to stream in data.

Parameters:

Return Value:

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

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TNUpCompositor::operator>>=

virtual TStream & operator >>=(TStream & toWhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called directly 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.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.