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

Public Types | |
| enum | { kDefaultIID = IID_IOUTPUTPAGES } |
Public Member Functions | |
| virtual void | Start ()=0 |
| virtual void | End ()=0 |
| virtual IDataBase * | GetMasterDataBase (void)=0 |
| virtual void | SetMasterDataBase (IDataBase *iDataBase)=0 |
| virtual bool16 | GetIsSpreads (void) const =0 |
| virtual void | SetIsSpreads (const bool16 bIsSpreads)=0 |
| virtual void | InitializeFrom (const UIDList &listPages, bool16 bSpreads)=0 |
| virtual void | InsertOutputPageUIDRef (const UIDRef &uidRef)=0 |
| virtual void | AppendOutputPageUIDRef (const UIDRef &uidRef)=0 |
| virtual void | AppendOutputPageUIDRef2 (const UIDRef &uidRef, const IDFile *sysFile, const PMRect &pageBounds)=0 |
| virtual void | RemoveUIDRef (const int32 index)=0 |
| virtual void | Clear (void)=0 |
| virtual int32 | Location (const UIDRef &uidRef) const =0 |
| virtual int32 | Number (void) const =0 |
| virtual UIDRef | GetNthUIDRef (const int32 index, bool16 bValidateDataBase=kTrue) const =0 |
| virtual IDFile * | GetNthSysFile (const int32 index)=0 |
| virtual void | SetNthOutputPageBounds (const int32 index, const PMRect &pageBounds)=0 |
| virtual PMRect | GetNthOutputPageBounds (const int32 index) const =0 |
| virtual bool16 | GetContiguousPages (void) const =0 |
| virtual void | SetContiguousPages (const bool16 bContiguousPages)=0 |
| virtual bool16 | GetUniformSizePages (void)=0 |
| virtual void | SetUniformSizePages (const bool16 bUniformSizePages)=0 |
| virtual void | GetName (PMString &name) const =0 |
| virtual void | SetName (const PMString &name)=0 |
| virtual IPMStream * | GetOutputStream (void) const =0 |
| virtual void | SetOutputStream (IPMStream *outputStream)=0 |
| virtual void | Copy (IOutputPages *other)=0 |
| virtual void | InitializeFrom (IOutputPages *pSrc, bool16 bConvertToSpreads)=0 |
| virtual void | SetOutputFile (IDFile &sysFile, bool16 validFile=kFalse)=0 |
| virtual IDFile | GetOutputFile (bool16 &isValidOutputFile)=0 |
| virtual void | ReverseOrder ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
IOutputPages is used to enable the export and print of multiple pages that come from potentially different publications. Such is the case when printing/exporting multiple pubs from a Book. This interface will handle the open/close of pubs that require it. If not printing/exporting a Book, things are simple. The database has to be open and valid, and the pages or spreads can be added via the insert or append methods that add a UIDRef. If printing/exporting a Book, the pubs may be open or closed. If the pub is closed, this requires a IDFile to the pub, a page or spread UID, and the page bounds of the page or spread. When the print or export code asks for a UIDRef for the page, this interface will open the pub headless, and return a valid database in the UIDRef. When finished, it will close the pub. IOutputPages is used in Printing, EPS, PDF and SVG export.
| pure virtual |
| pure virtual |
Append a UIDRef, containing the UID of the page to be output, or the spread to be output, onto the end of the list. For this method only, the DataBase portion of the UIDRef does not have to be valid (i.e. the pub does not have to be open) since the IDFile of the pub is provided, as well as the bounds of the page/spread.
| pure virtual |
Remove all of the UIDRefs from the list
| pure virtual |
Copy the given IOutputPages to this one
| other | IN the IOutputPages to copy from |
| pure virtual |
End - MUST be paired with Start()!
| pure virtual |
Determine if the output pages/spreads contiguous. Defaults to kFalse
| pure virtual |
Tell whether we are dealing with pages or spreads. Are the output UIDRefs used below page UIDRefs or spread UIDRefs? Defaults to kFalse (page UIDRefs) NOTE: this should be set up prior to calling AppendUIDRef!
| pure virtual |
If outputting a book, this is the database of the master pub, otherwise, if this has not been initialized, it is the database of the first pub in the list, zero if no pubs in the list. This is used for document settings that need to be used for all documents being output.
| pure virtual |
Get the name associated with the book or document. This is used in export information, such as DSC comments for EPSs.
| name | OUT PMString reference containing the name to use |
| pure virtual |
Get a PMRect of the page/spread bounds (in InD coordinates) for the given index. The rect is calculated in the AppendUIDRef methods, as the pages/spreads are added to the list. SetNthBounds can be used to overwrite the bounds.
| index | IN index of the bounds to retrieve |
| pure virtual |
| pure virtual |
Get the UIDRef of the selected index into the list
| index | IN index of the UIDRef to retrieve |
| bValidateDataBase | IN if kTrue, the IDataBase portion of the UIDRef is guaranteed to be good, at least until then next call to GetNthUIDRef. If kFalse, the IDataBase portion of the UIDRef may or may not be valid - so only count on the UID portion. |
| pure virtual |
Get the export destination file. If the file is not valid, the export manager will put up a save file dialog.
| isValidOutputFile | OUT kTrue if the file is valid, kFalse otherwise |
| pure virtual |
| pure virtual |
Determine if the output pages/spreads are the same size. NOTE: if the SetUniformSizePages method has not been used, it will figure this out from the bounds. If the SetUniformSizePages method has been used, it will return that value.
| pure virtual |
| pure virtual |
Convert from a IOutputPages without spreads to one with or without spreads. Will not convert from one that has spreads to one that does not however.
| pSrc | IN the IOutputPages to initialize |
| bConvertToSpreads | IN kTrue if converting to spreads, kFalse otherwise |
| pure virtual |
| pure virtual |
| pure virtual |
Get the number of pages/spreads in the list
| pure virtual |
Removes the selected index from the list
| index | IN index of the UIDRef to remove |
| pure virtual |
Reverse the output page UID list.
| none |
| pure virtual |
Set the boolean for contiguous pages/spreads.
| bContiguousPages | IN kTrue if the pages/spreads are contiguous, kFalse otherwise |
| pure virtual |
Set the boolean for outputting spreads.
| bIsSpreads | IN kTrue if outputting spreads, kFalse otherwise |
| pure virtual |
Set the master data base pointer.
| iDataBase | IN IDataBase pointer of the master database to use |
| pure virtual |
Set the document name. See GetName above for more info.
| name | IN PMString reference containing the name to use |
| pure virtual |
Overwrite the setting for the page/spread bounds (in InD coordinates)
| index | IN index of the bounds to change |
| pageBounds | IN PMRect containing the new page bounds |
| pure virtual |
Set the export destination file
| sysFile | IN IDFile reference that is the destination file |
| validFile | IN kTrue if the file is valid, kFalse otherwise |
| pure virtual |
Set a stream to output to
| outputStream | IN the stream to write the output to |
| pure virtual |
Set if the output pages/spreads are the same size. It is not necessary to use this method, because the GetUniformSizePages method will figure out if the pages are the same size. If this method is used, the GetUniformSizePages will return whatever this has been set to.
| bUniformSizePages | IN kTrue if all the pages are the same size, kFalse otherwise |
| pure virtual |
Start - MUST be paired with End()!