![]() | InDesign SDK 20.5 |
#include <CHMLFiltHelper.h>
Public Member Functions | |
| CHMLFiltHelper () | |
| virtual | ~CHMLFiltHelper () |
| ErrorCode | ExportLayout (IPMStream *stream, IDocument *doc, IPMUnknown *targetBoss=nil) |
| void | ExportLayout (const IDFile &sysFile, IDocument *doc, IPMUnknown *targetBoss=nil) |
| int32 | GlobalFromLocalPageIndex (ISpreadList *spreadList, int32 inSpreadIndex, int32 relativePageIndex) |
| UIDRef | GetDefaultSpreadLayerRef (const UIDRef &docUIDRef, int32 spreadIndex) |
Helper class that is used in exporting a layout.
| CHMLFiltHelper::CHMLFiltHelper | ( | ) |
Default constructor
| virtual |
Destructor
| ErrorCode CHMLFiltHelper::ExportLayout | ( | IPMStream * | stream, |
| IDocument * | doc, | ||
| IPMUnknown * | targetBoss = nil | ||
| ) |
Export the layout contained in the document to a stream
| stream | IN where to write the export into |
| doc | IN where to get the content from |
| targetBoss | IN provides encapsulation of the selection and a way to get at the selection target |
| void CHMLFiltHelper::ExportLayout | ( | const IDFile & | sysFile, |
| IDocument * | doc, | ||
| IPMUnknown * | targetBoss = nil | ||
| ) |
Export the layout contained in the document to a file.
| sysFile | IN where to write the export into |
| doc | IN where to get the content from |
| targetBoss | IN provides encapsulation of the selection and a way to get at the selection target |
Method to determine the default spread layer into which to put content. Document layer 0 is the pages layer, and document layer n-1 is used for some nefarious purpose too. Document layer 1 is the first layer that can contain content + guides. If we have no preference for assigning content, then we can put it on the first content spread layer in Document layer 1. This method hides making that choice and avoids the client code having to care about document layers, which complicate the process if we have to consider them.
| docUIDRef | IN document of interest |
| spreadIndex | IN which spread we're interested in |
| int32 CHMLFiltHelper::GlobalFromLocalPageIndex | ( | ISpreadList * | spreadList, |
| int32 | inSpreadIndex, | ||
| int32 | relativePageIndex | ||
| ) |
Given an index in the list of pages in a spread, turn into a global page number in the entire publication.
| spreadList | IN spread list from the document |
| inSpreadIndex | IN which spread the page is in |
| relativePageIndex | IN what the page position is in this spread |