![]() | InDesign SDK 20.5 |
#include <IDocIterationProvider.h>

Public Types | |
| enum | { kDefaultIID = IID_IDOCITERATIONPROVIDER } |
| enum | IterationContext { kGatherAndValidateBeforePrint = 1, kValidateBeforePDFExport = 2, kValidateBeforeEPSExport = 3, kValidateBeforeSVGExport = 4, kValidateBeforeHTMLExport = 5, kGatherAndValidateBeforePlace = 6, kValidateBeforeXFLExport = 8 } |
Public Member Functions | |
| virtual void | SetIterationData (IPMUnknown *pIterationData, IterationContext nContext)=0 |
| virtual bool16 | InterestedIn (IterationContext nContext)=0 |
| virtual bool16 | StopIterating () const =0 |
| virtual void | BeginIteration ()=0 |
| virtual void | EndIteration ()=0 |
| virtual void | BeginPageOrSpread (IDocument *pDoc, const int32 nOutputPage, const UIDRef refPageOrSpread, const PMRect &rectBounds, const PMMatrix &boundsToSpreadMatrix)=0 |
| virtual void | EndPageOrSpread ()=0 |
| virtual void | VisitPageItem (const PMMatrix *masterSpread2LayoutSpreadMatrix, IPMUnknown *pPageItem, int32 nFlags)=0 |
| virtual bool16 | OnIterationCompleted ()=0 |
| virtual void | Cleanup ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This interface is used to provide a callback mechanism when the document is iterated through prior to print and export events. A class can be sub-classed from this interface, and if properly paired with the kDocIterationServiceImpl, the provider will be called back at various times throughout the iteration process. Note that only the pages or spreads being printed or exported are iterated.
| anonymous enum |
Default enum.
Identifies the context of the iteration.
| pure virtual |
Called at the beginning of the iteration.
Implemented in CDocIterationProvider.
| pure virtual |
Beginning of a page or spread in the iteration.
| pDoc | IN pointer to the IDocument |
| nOutputPage | IN index of the current page or spread |
| refPageOrSpread | IN the UIDRef of the page or spread |
| rectBounds | IN bounds of the page or spread in that objects coordinate system |
| boundsToSpreadMatrix | IN the transformation matrix that maps the rectBounds of a page to spread coordinates. This matrix will be an identity matrix when printing or exporting spreads. |
Implemented in CDocIterationProvider.
| pure virtual |
Allows the provider to do cleanup tasks.
Implemented in CDocIterationProvider.
| pure virtual |
Called at the end of the iteration.
Implemented in CDocIterationProvider.
| pure virtual |
End of a page or spread.
Implemented in CDocIterationProvider.
| pure virtual |
Determines if the iteration provider is interested in participating in the specified iteration context.
| nContext | IN the iteration context |
Implemented in CDocIterationProvider.
| pure virtual |
Allows the provider to do whatever it wants when the iteration completes. Can be used to display error or warning messages.
Implemented in CDocIterationProvider.
| pure virtual |
Used by the iteration code to set the context and a data interface specific to the context.
| pIterationData | IN data interface specific to the given iteration context |
| nContext | IN the iteration context defined above |
Implemented in CDocIterationProvider.
| pure virtual |
Whether to stop the iteration.
Implemented in CDocIterationProvider.
| pure virtual |
Process an item on the page. Called for each page item.
| masterSpread2LayoutSpreadMatrix | IN the page item's transformation matrix |
| pPageItem | IN the page item itself |
| nFlags | IN the current drawing flags |
Implemented in CDocIterationProvider.