Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TClientJobDescription
Inherited By:
None.
Purpose:
This is a concrete derived class of TClientJobDescription that provides reasonable defaults for print time options. It also allows its state to be altered quite readily for custom jobs.
Instantiation:
Always allocate on the heap.
Deriving Classes:
Clients should not derive from this class. Clients who wish to provide job description behavior should derive from TClientJobDescription. If absolutely necessary, clients may derive from this class and override any of its virtual functions. The derived class can then be safely supplied as a parameter to TPrintJobDescription.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
- TGenericClientJobDescription ()
- TGenericClientJobDescription (const TGenericClientJobDescription &)
Interface Category:
API.
Purpose:
- Default constructor.
- Copy constructor.
Calling Context:
- Called by the stream-in operators.
- Called to copy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual ~ TGenericClientJobDescription ()
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.
virtual unsigned long GetCopies () const
Interface Category:
API.
Purpose:
Returns the number of copies to be printed for this print job.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns an unsigned long representing the number of copies.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TClientJobDescription::EBannerPage GetCoverPage () const
Interface Category:
API.
Purpose:
Returns the cover page choice for this print job.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns one of the possible EBannerPage enumerations.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TClientJobDescription::EBannerPage GetEndPage () const
Interface Category:
API.
Purpose:
Returns the end page choice for this print job.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns one of the possible EBannerPage enumerations.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TPageRange * CopyPageRange () const
Interface Category:
API.
Purpose:
Returns the page range for this print job.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns a pointer to a TPageRange derived class. Clients must delete this pointer when done.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TPageDescription::EPageMismatchOption GetPageMismatchChoice() const
Interface Category:
API.
Purpose:
Returns the page mismatch choice for this print job. The page mismatch choice specifies what you want to do when the page sizes do not match between the document and the printer. These options are defined in PageDescription.h (kPrintTiled, kPrintClipped, kPrintScaled, kNonUniformScale, kNoPrint).
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns one of the EPageMismatchOption values.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void SetCopies (unsigned long numberCopies)
Interface Category:
API.
Purpose:
Sets the number of copies for this print job.
Calling Context:
Call this function directly.
Parameters:
- unsigned long numberCopies -The number of copies for this print job.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void SetCoverPage (TClientJobDescription :: EBannerPage coverPage)
Interface Category:
API.
Purpose:
Sets the cover page option for this print job.
Calling Context:
Call this function directly.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void SetEndPage (TClientJobDescription :: EBannerPage endPage)
Interface Category:
API.
Purpose:
Sets the end page option for this print job.
Calling Context:
Call this function directly.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void AdoptPageRange (TPageRange * adoptRange)
Interface Category:
API.
Purpose:
Sets the page range for this print job.
Calling Context:
Call this function directly.
Parameters:
- TPageRange * adoptRange -A pointer to the TPageRange object. This pointer is adopted. Clients should not delete it.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void SetPageMismatchChoice (TPageDescription :: EPageMismatchOption choice)
Interface Category:
API.
Purpose:
Sets the page mismatch choice for this print job.
Calling Context:
Call this function directly.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
TGenericClientJobDescription & operator =(const TGenericClientJobDescription &)
Interface Category:
API.
Purpose:
Assignment operator.
Calling Context:
Called when an object is assigned to another compatible object.
Parameters:
Return Value:
A non-const reference to the left-hand side object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual long Hash () const
Interface Category:
API.
Purpose:
Generates a hash value.
Calling Context:
Called to generate a hash value.
Parameters:
Return Value:
A long hash value.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TStream & operator <<= (TStream & fromwhere)
Interface Category:
API.
Purpose:
Stream-in operator.
Calling Context:
Called to stream in data.
Parameters:
- TStream & fromWhere -The stream the object is streamed in from.
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.
virtual TStream & operator >>=(TStream & towhere) const
Interface Category:
API.
Purpose:
Stream-out operator.
Calling Context:
Called to stream out data.
Parameters:
- TStream & toWhere -The stream the object is streamed out to.
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.
virtual void SetJobName (const TText & jobName)
Interface Category:
API.
Purpose:
A print job is named by the Document Framework or other clients who create print jobs. This function is used to set the name.
Calling Context:
Called to set the name of the job by the client who created this object.
Parameters:
- const TText & jobName -The name by which the job is meant to be known.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual const TText * GetJobName () const
Interface Category:
API.
Purpose:
This function is used to retrieve the name of the print job as set by the job creator.
Calling Context:
Called to obtain the name of the job.
Parameters:
Return Value:
Returns a pointer to the name of the job which must not be altered or deleted. If a client calls SetJobName after this value is retrieved (which shouldn't happen under normal circumstances), this value becomes invalid and should be refreshed by calling GetJobName again.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
The name of the job must not be altered or deleted. If a client calls SetJobName after this function returns its information (which shouldn't happen under normal circumstances), its return value becomes invalid and should be refreshed by calling GetJobName again.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.