InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CPrintSetupProvider Class Reference

#include <CPrintSetupProvider.h>

Inheritance diagram for CPrintSetupProvider:
IPrintSetupProviderIPMUnknownCusCondTxtPrintSetupProviderPrnSelPrintSetupProviderPrtMemPrintSetupProvider

Public Member Functions

virtual void StartPrintPub (bool16 &bReturn, IDocument *iDoc, UIDRef &styleUIDRef, IPrintCmdData::PrintUIOptions &printPubUIOpt, IInkList *iInkList, ITrapStyleListMgr *iTrapListMgr)
 
virtual void StartPrintBook (bool16 &bReturn, IBook *iBook, UIDList *pubsUIDList, IBookOutputActionCmdData::OutputUIOptions &printBookUIOpt, IInkList *iInkList, ITrapStyleListMgr *iTrapListMgr)
 
virtual void BeforePrintUI (bool16 &bReturn, IPrintData *iPrintData)
 
virtual void BeforeInCopyPrintUI (bool16 &bReturn, int32 currentPanel, IInCopyGalleyPrintData *iGalleyPrintData, IInCopyLayoutPrintData *iLayoutPrintData, IPrintData *iPrintData)
 
virtual void AfterPrintUI (bool16 &bReturn, IPrintData *iPrintData)
 
virtual void AfterInCopyPrintUI (bool16 &bReturn, int32 currentPanel, IInCopyGalleyPrintData *iGalleyPrintData, IInCopyLayoutPrintData *iLayoutPrintData, IPrintData *iPrintData)
 
virtual void BeforePrintGatherCmd (bool16 &bReturn, IPrintData *iPrintData, IOutputPages *iOutputPages)
 
virtual void AfterPrintGatherCmd (bool16 &bReturn, IPrintData *iPrintData, IOutputPages *iOutputPages, IPrintJobData *iPrintJobData)
 
virtual void BeforePrintJobParamsInit (bool16 &bReturn, IPrintData *iPrintData, IOutputPages *iOutputPages, IPrintJobData *iPrintJobData)
 
virtual void AfterPrintJobParamsInit (bool16 &bReturn, IPrintData *iPrintData, IOutputPages *iOutputPages, IPrintJobData *iPrintJobData)
 
virtual void BeforePrintLoop (bool16 &bReturn, IPrintData *iPrintData, IOutputPages *iOutputPages, IPrintJobData *iPrintJobData)
 
virtual void EndPrint ()
 
virtual void BeginPageEvent (IPrintData *iPrintData, IOutputPages *iOutputPages, IPrintJobData *iPrintJobData, int32 *whichPage)
 
virtual void BeforeDrawPageEvent (bool16 &bReturn, IPrintData *iPrintData, IOutputPages *iOutputPages, IPrintJobData *iPrintJobData, int32 *whichPage)
 
virtual void BeforeDrawPage (bool16 &bReturn, IPrintData *iPrintData, IOutputPages *iOutputPages, int32 *whichPage, PMRect *outputRect, GraphicsData *gd)
 
virtual void AfterDrawPageEvent (IPrintData *iPrintData, IOutputPages *iOutputPages, IPrintJobData *iPrintJobData, int32 *whichPage)
 
virtual void BeforeDrawGalleyPageEvent (bool16 &bReturn, IPrintData *iPrintData, IOutputPages *iOutputPages, IPrintJobData *iPrintJobData, int32 *whichPage)
 
virtual void BeforeDrawGalleyPage (bool16 &bReturn, IPrintData *iPrintData, IOutputPages *iOutputPages, int32 *whichPage, PMRect *outputRect, GraphicsData *gd)
 
virtual void AfterDrawGalleyPageEvent (IPrintData *iPrintData, IOutputPages *iOutputPages, IPrintJobData *iPrintJobData, int32 *whichPage)
 
virtual void EndPageEvent (IPrintData *iPrintData, IOutputPages *iOutputPages, IPrintJobData *iPrintJobData, int32 *whichPage)
 
virtual void EndPrintingEvent ()
 
virtual void PrintErrorEvent (bool16 &bReturn, IPrintData *iPrintData, ErrorCode &errorNum, PMString &errComponent, PMString &errText, PMString &errOtherInfo)
 

Detailed Description

Stubbed out default implementation of the IPrintSetupProvider interface, which is used for setting up or changing the print parameters, prior to and during the printing process.

Users can subclass from this class, and only have to override methods that they are interested in.

See Also
IPrintSetupProvider

Member Function Documentation

virtual void CPrintSetupProvider::AfterDrawGalleyPageEvent (IPrintDataiPrintData,
IOutputPagesiOutputPages,
IPrintJobDataiPrintJobData,
int32 * whichPage 
)
inlinevirtual

Print Loop - After Draw Galley Page Event - same as AfterDrawPageEvent, only for InCopy

Parameters
iPrintDataIN the IPrintData containing all the print settings to be used
iOutputPagesIN the IOutputPages didn't containing the pages UID (GetNthUIDRef() will return non page UIDRef), rather, it contains the physcial galley page number.
iPrintJobDataIN the IPrintJobData containing the gathered information
whichPageIN which page is being printed - can be used as index into IOutputPages

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider.

virtual void CPrintSetupProvider::AfterDrawPageEvent (IPrintDataiPrintData,
IOutputPagesiOutputPages,
IPrintJobDataiPrintJobData,
int32 * whichPage 
)
inlinevirtual

Print Loop - After DrawPage Event

Parameters
iPrintDataIN the IPrintData containing all the print settings to be used
iOutputPagesIN the IOutputPages containing which pages to gather info
iPrintJobDataIN the IPrintJobData containing the gathered information
whichPageIN which page is being printed - can be used as index into IOutputPages

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider.

virtual void CPrintSetupProvider::AfterInCopyPrintUI (bool16 & bReturn,
int32 currentPanel,
IInCopyGalleyPrintDataiGalleyPrintData,
IInCopyLayoutPrintDataiLayoutPrintData,
IPrintDataiPrintData 
)
inlinevirtual

After the InCopy Print UI is shown.

Parameters
bReturnOUT Return value: true to continue, false to stop.
currentPanelIN which panel is currently active, IInCopyPrintDialogData::kGalleyPanel or IInCopyPrintDialogData::kLayoutPanel.
iGalleyPrintDataIN IInCopyGalleyPrintData containing galley print settings to be used, if the currentPanel is IInCopyPrintDialogData::kGalleyPanel.
iLayoutPrintDataIN IInCopyLayoutPrintData containing layout print settings to be used, if the currentPanel is IInCopyPrintDialogData::kLayoutPanel.
iPrintDataIN IPrintData containing the print settings to be used. This interface will be intialized by the relevant settings from iGalleyPrintData or iLayoutPrintData.

Implements IPrintSetupProvider.

virtual void CPrintSetupProvider::AfterPrintGatherCmd (bool16 & bReturn,
IPrintDataiPrintData,
IOutputPagesiOutputPages,
IPrintJobDataiPrintJobData 
)
inlinevirtual

After the print gather command

Parameters
bReturnOUT return value - true means continue on, false means STOP
iPrintDataIN the IPrintData containing all the print settings to be used
iOutputPagesIN the IOutputPages containing which pages to gather info
iPrintJobDataIN the IPrintJobData containing the gathered information

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider.

virtual void CPrintSetupProvider::AfterPrintJobParamsInit (bool16 & bReturn,
IPrintDataiPrintData,
IOutputPagesiOutputPages,
IPrintJobDataiPrintJobData 
)
inlinevirtual

After initialization of the Print Job Params

Parameters
bReturnOUT return value - true means continue on, false means STOP
iPrintDataIN the IPrintData containing all the print settings to be used
iOutputPagesIN the IOutputPages containing which pages to gather info
iPrintJobDataIN the IPrintJobData containing the gathered information

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider.

virtual void CPrintSetupProvider::AfterPrintUI (bool16 & bReturn,
IPrintDataiPrintData 
)
inlinevirtual

After the InDesign Print UI is shown

Parameters
bReturnOUT return value - true means continue on, false means STOP
iPrintDataIN the IPrintData containing all the print settings to be used

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider, and PrnSelPrintSetupProvider.

virtual void CPrintSetupProvider::BeforeDrawGalleyPage (bool16 & bReturn,
IPrintDataiPrintData,
IOutputPagesiOutputPages,
int32 * whichPage,
PMRectoutputRect,
GraphicsDatagd 
)
inlinevirtual

Print Loop - Before Draw Galley Page - same as BeforeDrawPage, only for InCopy

Parameters
bReturnOUT return value - true means continue on, false means don't draw page/spread
iPrintDataIN the IPrintData containing all the print settings to be used
iOutputPagesIN the IOutputPages didn't containing the pages UID (GetNthUIDRef() will return non page UIDRef), rather, it contains the physcial galley page number.
iPrintJobDataIN the IPrintJobData containing the gathered information
whichPageIN which page is being printed - can be used as index into IOutputPages
outputRectIN the rect which is used for setting up the draw mgr filter
gdIN from which you can get IGraphicsPort, IViewPortAttributes etc.

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider.

virtual void CPrintSetupProvider::BeforeDrawGalleyPageEvent (bool16 & bReturn,
IPrintDataiPrintData,
IOutputPagesiOutputPages,
IPrintJobDataiPrintJobData,
int32 * whichPage 
)
inlinevirtual

Print Loop - Before Draw Galley Page Event - same as BeforeDrawPageEvent, only for InCopy

Parameters
bReturnOUT return value - true means continue on, false means continue to next event
iPrintDataIN the IPrintData containing all the print settings to be used
iOutputPagesIN the IOutputPages didn't containing the pages UID (GetNthUIDRef() will return non page UIDRef), rather, it contains the physcial galley page number.
iPrintJobDataIN the IPrintJobData containing the gathered information
whichPageIN which page is being printed - can be used as index into IOutputPages

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider.

virtual void CPrintSetupProvider::BeforeDrawPage (bool16 & bReturn,
IPrintDataiPrintData,
IOutputPagesiOutputPages,
int32 * whichPage,
PMRectoutputRect,
GraphicsDatagd 
)
inlinevirtual

Print Loop - Before DrawPage performed

Parameters
bReturnOUT return value - true means continue on, false means don't draw page/spread
iPrintDataIN the IPrintData containing all the print settings to be used
iOutputPagesIN the IOutputPages containing which pages to gather info
iPrintJobDataIN the IPrintJobData containing the gathered information
whichPageIN which page is being printed - can be used as index into IOutputPages
outputRectIN the rect which is used for setting up the draw mgr filter
gdIN from which you can get IGraphicsPort, IViewPortAttributes etc.

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider.

virtual void CPrintSetupProvider::BeforeDrawPageEvent (bool16 & bReturn,
IPrintDataiPrintData,
IOutputPagesiOutputPages,
IPrintJobDataiPrintJobData,
int32 * whichPage 
)
inlinevirtual

Print Loop - Before DrawPage Event

Parameters
bReturnOUT return value - true means continue on, false means continue to next event
iPrintDataIN the IPrintData containing all the print settings to be used
iOutputPagesIN the IOutputPages containing which pages to gather info
iPrintJobDataIN the IPrintJobData containing the gathered information
whichPageIN which page is being printed - can be used as index into IOutputPages

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider.

virtual void CPrintSetupProvider::BeforeInCopyPrintUI (bool16 & bReturn,
int32 currentPanel,
IInCopyGalleyPrintDataiGalleyPrintData,
IInCopyLayoutPrintDataiLayoutPrintData,
IPrintDataiPrintData 
)
inlinevirtual

Before the InCopy Print UI is shown.

Parameters
bReturnOUT Return value: true to continue, false to don't show the Print UI.
currentPanelIN which panel is currently active, IInCopyPrintDialogData::kGalleyPanel or IInCopyPrintDialogData::kLayoutPanel.
iGalleyPrintDataIN IInCopyGalleyPrintData containing galley print settings to be used, if the currentPanel is IInCopyPrintDialogData::kGalleyPanel.
iLayoutPrintDataIN IInCopyLayoutPrintData containing layout print settings to be used, if the currentPanel is IInCopyPrintDialogData::kLayoutPanel.
iPrintDataIN IPrintData containing the print settings to be used. This interface will be intialized by the relevant settings from iGalleyPrintData or iLayoutPrintData.

Implements IPrintSetupProvider.

virtual void CPrintSetupProvider::BeforePrintGatherCmd (bool16 & bReturn,
IPrintDataiPrintData,
IOutputPagesiOutputPages 
)
inlinevirtual

Before the print gather command

Parameters
bReturnOUT return value - true means continue on, false means STOP
iPrintDataIN the IPrintData containing all the print settings to be used
iOutputPagesIN the IOutputPages containing which pages to gather info

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider, PrnSelPrintSetupProvider, and CusCondTxtPrintSetupProvider.

virtual void CPrintSetupProvider::BeforePrintJobParamsInit (bool16 & bReturn,
IPrintDataiPrintData,
IOutputPagesiOutputPages,
IPrintJobDataiPrintJobData 
)
inlinevirtual

Before initialization of the Print Job Params

Parameters
bReturnOUT return value - true means continue on, false means STOP
iPrintDataIN the IPrintData containing all the print settings to be used
iOutputPagesIN the IOutputPages containing which pages to gather info
iPrintJobDataIN the IPrintJobData containing the gathered information

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider.

virtual void CPrintSetupProvider::BeforePrintLoop (bool16 & bReturn,
IPrintDataiPrintData,
IOutputPagesiOutputPages,
IPrintJobDataiPrintJobData 
)
inlinevirtual

Before the beginning of the execution of the print loop. After information is put into the print record (print driver settings) if printing to a printer

Parameters
bReturnOUT return value - true means continue on, false means STOP
iPrintDataIN the IPrintData containing all the print settings to be used
iOutputPagesIN the IOutputPages containing which pages to gather info
iPrintJobDataIN the IPrintJobData containing the gathered information

Implements IPrintSetupProvider.

virtual void CPrintSetupProvider::BeforePrintUI (bool16 & bReturn,
IPrintDataiPrintData 
)
inlinevirtual

Before the InDesign Print UI is shown

Parameters
bReturnOUT return value - true means continue on, false means don't show print UI
iPrintDataIN the IPrintData containing all the print settings to be used

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider.

virtual void CPrintSetupProvider::BeginPageEvent (IPrintDataiPrintData,
IOutputPagesiOutputPages,
IPrintJobDataiPrintJobData,
int32 * whichPage 
)
inlinevirtual

Print Loop - BeginPageEvent

Parameters
bReturnOUT return value - true means continue on, false means STOP
iPrintDataIN the IPrintData containing all the print settings to be used
iOutputPagesIN the IOutputPages containing which pages to gather info
iPrintJobDataIN the IPrintJobData containing the gathered information
whichPageIN which page is being printed - can be used as index into IOutputPages

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider.

virtual void CPrintSetupProvider::EndPageEvent (IPrintDataiPrintData,
IOutputPagesiOutputPages,
IPrintJobDataiPrintJobData,
int32 * whichPage 
)
inlinevirtual

Print Loop - EndPage Event

Parameters
iPrintDataIN the IPrintData containing all the print settings to be used
iOutputPagesIN the IOutputPages containing which pages to gather info
iPrintJobDataIN the IPrintJobData containing the gathered information
whichPageIN which page is being printed - can be used as index into IOutputPages

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider.

virtual void CPrintSetupProvider::EndPrint (void )
inlinevirtual
End of Printing. Doing so ensures that the ref counts for

all interfaces are properly decremented and any other cleanup tasks are completed.

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider, PrnSelPrintSetupProvider, and CusCondTxtPrintSetupProvider.

virtual void CPrintSetupProvider::EndPrintingEvent (void )
inlinevirtual

Print Loop - EndPrinting Event

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider.

virtual void CPrintSetupProvider::PrintErrorEvent (bool16 & bReturn,
IPrintDataiPrintData,
ErrorCode & errorNum,
PMStringerrComponent,
PMStringerrText,
PMStringerrOtherInfo 
)
inlinevirtual

Print Loop - Error Event

Parameters
bReturnOUT return value - true means continue on, false means don't set the global error code NOTE: this is an error event from AGM. InD maps the error number to set strings, which are localized. We do not use the errText that this event provides.
iPrintDataIN the IPrintData containing all the print settings to be used
errorNumIN the error number
errComponentIN the error component from Bravo
errTextIN the error text
errOtherInfoIN other error information, i.e. name of a problem font

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider.

virtual void CPrintSetupProvider::StartPrintBook (bool16 & bReturn,
IBookiBook,
UIDListpubsUIDList,
IBookOutputActionCmdData::OutputUIOptionsprintBookUIOpt,
IInkListiInkList,
ITrapStyleListMgriTrapListMgr 
)
inlinevirtual

Start of Printing of a book. For properly ref counting of interfaces, this must be paired with an EndPrint() call when you are done with printing.

Parameters
bReturnOUT return value - true means continue on, false means STOP
iBookIN the IBook interface of the book being printed
pubsUIDListIN the UIDList of the pubs in the book that are being printed
printBookUIOptIN UI options invoked - see IBookOutputActionCmdData.h for definitions
iInkListIN the ink list to be used throughout the print job
iTrapListMgrIN the trap list manager to be used throughout the print job

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider.

virtual void CPrintSetupProvider::StartPrintPub (bool16 & bReturn,
IDocumentiDoc,
UIDRefstyleUIDRef,
IPrintCmdData::PrintUIOptionsprintPubUIOpt,
IInkListiInkList,
ITrapStyleListMgriTrapListMgr 
)
inlinevirtual

Start of Printing of a single pub. For properly ref counting of interfaces, this must be paired with an EndPrint() call when you are done with printing.

Parameters
bReturnOUT return value - true means continue on, false means STOP
iDocIN the IDocument of the pub being printed
styleUIDRefIN if valid, is the printer style UIDRef to be used
printPubUIOptIN UI options invoked - see IPrintCmdData.h for definitions
iInkListIN the ink list to be used throughout the print job
iTrapListMgrIN the trap list manager to be used throughout the print job

Implements IPrintSetupProvider.

Reimplemented in PrtMemPrintSetupProvider.