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

Public Types | |
| enum | { kDefaultIID = IID_IIMPORTDOCOPTIONS } |
| enum | CropOptions { kCropToPage = 0, kCropToBleed = 1, kCropToSlug = 2 } |
Public Member Functions | |
| virtual void | Set (const UIDRef &pageItemUIDRef, CropOptions crop=IImportDocOptions::kCropToPage, int32 pageIndex=0, IDocument *doc=nil)=0 |
| virtual void | Copy (const IImportDocOptions *fromOptions)=0 |
| virtual void | SetCrop (CropOptions crop)=0 |
| virtual void | SetPage (int32 pageIndex)=0 |
| virtual void | SetPageItem (const UIDRef &pageItemUIDRef)=0 |
| virtual void | SetDocument (IDocument *doc)=0 |
| virtual const UIDRef & | GetPageItem () const =0 |
| virtual IDocument * | GetDocument () const =0 |
| virtual int32 | GetPageIndex () const =0 |
| virtual CropOptions | GetCrop () const =0 |
| virtual void | SetPageRange (const K2Vector< uint32 > &list)=0 |
| virtual void | GetPageRange (K2Vector< uint32 > &list) const =0 |
| virtual void | SetAllPages (uint32 totalPages, bool16 allPages)=0 |
| virtual bool16 | GetAllPages (uint32 *totalPages=nil) const =0 |
| virtual bool16 | GetShowPreview () const =0 |
| virtual void | SetShowPreview (bool16 b)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Interface used to set various import/draw options for Placed InDesign document page items.
enum of cropping options
| pure virtual |
Copy the settings from one IImportDocOptions instance to this instance.
| fromOptions | [IN]: The options to copy |
| pure virtual |
Method to get the total pages of the INDD and whether all pages are being placed.
| totalPages | is returned. totalPages is optional, pass nil if you don't want it. |
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
Get the UIDRef of the page item.
| pure virtual |
Method to get the stored page range.
| list | is filled with the page numbers to place. |
| pure virtual |
Determine wether we show a preview in the import options dialog.
| pure virtual |
Initialize this object manually.
| pageItemUIDRef | [IN]: UIDRef of the page item. That is, the client is responsible for creating the page item before calling the kImportDocCmdBoss. |
| crop | [IN]: How should the page be cropped. |
| pageIndex | [IN]: zero-based page index |
| doc | [IN]: a pointer to the opened document. Passing a non-nil pointer will cause an AddRef, which will be released in the destructor. |
| pure virtual |
Method to store the total pages when all pages are placed.
| totalPages | is the total number of pages in the INDD file. A value of 0xffffffff for totalPages, means the internal total page value is not changed. You can use this when you only want to set the allPages value. |
| allPages | is true to place all the pages. When it is false the page range is used. We place the current page (GetPage value). The subsequent pages placed are sequential until the total is reached. To place all pages, set the current page to 1 using SetPage(1). |
| pure virtual |
Set the crop option
| crop | [IN]: How should the page be cropped. |
| pure virtual |
AddRef and store a pointer to the document to avoid having to re-open multiple times.
| doc | [IN]: a pointer to the opened document. Passing a non-nil pointer will cause an AddRef, which will be released in the destructor. |
| pure virtual |
Set the index of the page to import/draw
| pageIndex | [IN]: zero-based page index |
| pure virtual |
Set the UIDRef of the page item that represents the imported page of the INDD document.
| pageItemUIDRef | [IN]: UIDRef of the page item. That is, the client is responsible for creating the page item before calling the kImportDocCmdBoss. |
| pure virtual |
Method to store the page range to place.
| list | contains the page numbers to place (page numbers start at 0). We place the current page (GetPage value). The subsequent pages placed come from this list. We linear search the list for the first instance of the current page then place all the remaining items in the list. If the list does not contain the current page, no items from the list are placed. |