InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPrintPageInitializer Class Referenceabstract

#include <IPrintPageInitializer.h>

Inheritance diagram for IPrintPageInitializer:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IPRINTPAGEINITIALIZER }
 

Public Member Functions

virtual bool16 Initialize (IDocument *pDoc, IPrintData *pData, IOutputPages *pResult)=0
 
virtual ErrorCode GatherBookInfo (IBook *iBook, UIDList *sourceList, bool16 bOpenAll, IInkList *iDstInkList, ISwatchList *iDstSwatchList, ITrapStyleListMgr *iDstTrapStyleListMgr, MasterDocumentInfo &masterInfo)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

The crux of the situation is that the code that initializes the IOutputPages for books is very difficult to reuse, and needs to be re-used from the preview dialog. So, this interface allows the preview code to call back to that code.

Member Function Documentation

virtual ErrorCode IPrintPageInitializer::GatherBookInfo (IBookiBook,
UIDListsourceList,
bool16 bOpenAll,
IInkListiDstInkList,
ISwatchListiDstSwatchList,
ITrapStyleListMgriDstTrapStyleListMgr,
MasterDocumentInfomasterInfo 
)
pure virtual

Essentially, we need a way to pre-populate this object with book information in the book case because of the way the book stuff was designed. So, this method only makes sense for the book implementation. The document implementation asserts unimplemented if this method is called on it.

virtual bool16 IPrintPageInitializer::Initialize (IDocumentpDoc,
IPrintDatapData,
IOutputPagespResult 
)
pure virtual

A method which initializes an IOutputPages from the data.