[Classes] [Prev] [Next] [Methods]

CPrintMgr

Methods Index

Heritage
Description
Usage
Protected Data Members
Public Methods
Constructor and Destructor Methods
Printing Queue Methods
Printing Methods
Overrides

CPrintMgr


Heritage

Superclass: CNotifier

Subclasses: None


Description

CPrintMgr receives printing task messages and takes care of printing for an XVT-Power++ application. Currently, only views can be printed. The print manager has a queue of printing jobs and contains information about the page(s) to be designated for each job. CPrintMgr thus includes a set of printing queue methods.


Usage

CPrintMgr is used internally, but sometimes you might want to access it directly. You can access a global instance of this class through the CGlobalClassLib object (G). CPrintMgr includes a set of print queue methods and a set of printing methods that are used when you have finished filling the queue and want to send the job to the printer.

The DoPrint methods in the CApplication, CDocument, and CView classes already take care of all the print queue and print message tasks internally. You don't have to deal with the print manager at all unless you want to do customized printing that is not accommodated in the default DoPrint methods.

See Also: If you are interested in implementing your own printing mechanisms, see the "Printing" chapter in the XVT Portability Toolkit Guide.


Protected Data Members

RWOrdered itsPrintQueue; The view to print
PRINT_RCD* itsXVTPrintRecord; The XVT Portability Toolkit printing record
const CStringRW* itsTitle; The title of the print job
int itsLastPage; The last page of output
static WINDOW itsPrintWindow; The XVT Portability Toolkit printing window


Public Methods

Constructor and Destructor Methods

CPrintMgr(void);
virtual ~CPrintMgr(void);

Printing Queue Methods

virtual void Insert(const CView* theView, 
CRect& theRegion, int thePage = LASTPage);
virtual int Remove(const CView* theView, 
int thePage = ALLPages);
virtual const RWOrdered GetQueue(int thePage = ALLPages) const;
virtual void ClearQueue(void);

Printing Methods

virtual BOOLEAN DoPrint(PRINT_RCD* printRecord, 
const CStringRW& theTitle = NULLString);
static BOOLEAN PrintThread(long theData);
static WINDOW GetPrintWindow(void);

Overrides

You can override both printing methods to change the printing implementation. Take care to set the global CPrintMgr object by calling G->SetPrintMgr.



[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.