Printing class summary

Higher-level printing that does not use the print channel directly is based on the concept of one-function printing, where each printable object knows how to print itself. Objects inherit this ability from the mixin class MPrintable--any new class that you design to print should use this mixin class.

MPrintable standardizes the calling conventions associated with printable objects. It provides an object with two key functions:

Use PrintAndCreateJobHandle instead of Print if you need to track submitted print jobs. Job handles allow you to track print jobs.

Three classes form the basis of Printing services: MPageFolio, TPageIterator, and TPageRange. MPageFolio is an MPrintable. A derived class of TPageIterator, TPrintPageIterator, is also an MPrintable.


MPageFolio represents a collection of printable pages. It defines the structure and content of a printable folio. Printing services provide two types of page folios:

TPageIterator is a general class designed to navigate through collections of pages. It provides access to the pages in a folio and establishes page order . TPageIterator returns objects--derived classes of TPage--to represent the iterated pages.

TPrintPageIterator is a derived class of TPageIterator specifically designed for printing.

Printing services provide two types of printable page iterators:

TPageRange defines specific page groups or selections in a page folio. A TPageRange object allows any combination of pages to be included or excluded during printing--you can use page ranges to process the entire document, several pages, or a single page. Every page iterator has a page range--the default page range is the entire document. Printing services provide three types of page ranges:

TPage is an abstract base class derived from MDrawable that you use to represent an arbitrary page graphic. Its most important property is that it is drawable. Because it is a page, it also has a page number relative to a set of pages and a page description that describes other properties such as media and bounds.

Derived classes of TPage can add properties required by your documents. For example, the page number is determined by a page iterator and a page range, which is ordinal to other pages in the iterator. This is not necessarily the actual page number in the document or as printed on the page itself. Derived classes could add a function to provide the document page number if needed.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker