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

Public Types | |
| enum | { kDefaultIID = IID_INEWDOCCMDDATA } |
Public Member Functions | |
| virtual void | SetUIFlags (UIFlags uiflags)=0 |
| virtual UIFlags | GetUIFlags () const =0 |
| virtual void | SetCreateBasicDocument (uint16 typeFlags)=0 |
| virtual uint16 | GetCreateBasicDocument () const =0 |
| virtual void | SetMargins (const PMReal &insideLeft, const PMReal &top, const PMReal &outsideRight, const PMReal &bottom)=0 |
| virtual void | GetMargins (PMReal *insideLeft, PMReal *top, PMReal *outsideRight, PMReal *bottom)=0 |
| virtual void | SetUseUniformMargins (bool16 bUniform)=0 |
| virtual bool16 | GetUseUniformMargins () const =0 |
| virtual void | SetColumns_4 (int32 numColumns, PMReal gutter, IColumns::ColumnOrientation direction)=0 |
| virtual int32 | GetNumColumns () const =0 |
| virtual PMReal | GetGutter () const =0 |
| virtual IColumns::ColumnOrientation | GetColumnOrientation_4 () const =0 |
| virtual void | SetAutoTextFrame (bool16 shown)=0 |
| virtual bool16 | GetAutoTextFrame () const =0 |
| virtual void | SetOverrideAutoTextFrame (bool16 bOverride)=0 |
| virtual bool16 | GetOverrideAutoTextFrame () const =0 |
| virtual void | SetNewDocumentPageSize (const PMPageSize &pageSize)=0 |
| virtual const PMPageSize & | GetNewDocumentPageSize () const =0 |
| virtual void | SetSpreadScale (const K2Pair< PMReal, PMReal > &scale)=0 |
| virtual PMReal | GetSpreadWidthScale () const =0 |
| virtual PMReal | GetSpreadHeightScale () const =0 |
| virtual void | SetWideOrientation (bool16 bWide)=0 |
| virtual bool16 | GetWideOrientation () const =0 |
| virtual void | SetNumPages (int32 numPages)=0 |
| virtual int32 | GetNumPages () const =0 |
| virtual void | SetPagesPerSpread (int32 numPagesPerSpread)=0 |
| virtual int32 | GetPagesPerSpread () const =0 |
| virtual void | SetPageBinding (int32 bindingDirection)=0 |
| virtual int32 | GetPageBinding () const =0 |
| virtual void | SetRestartPageNum (bool16 bRestartPageNum)=0 |
| virtual bool16 | GetRestartPageNum () const =0 |
| virtual void | SetBleedBox (PMRect offsets)=0 |
| virtual PMRect | GetBleedBox ()=0 |
| virtual void | SetUseUniformBleed (bool16 bUniform)=0 |
| virtual bool16 | GetUseUniformBleed () const =0 |
| virtual void | SetSlugBox (PMRect offsets)=0 |
| virtual PMRect | GetSlugBox ()=0 |
| virtual void | SetUseUniformSlug (bool16 bUniform)=0 |
| virtual bool16 | GetUseUniformSlug () const =0 |
| virtual void | SetStartPageNumber (int32 startPageNumber)=0 |
| virtual int32 | GetStartPageNumber () const =0 |
| virtual DocumentIntent | GetIntent () const =0 |
| virtual void | SetIntent (DocumentIntent intent)=0 |
| virtual void | SetDocBossClassID (ClassID bossID=kDocBoss)=0 |
| virtual ClassID | GetDocBossClassID () const =0 |
| virtual void | SetUndoSupport (IDocument::UndoSupport undoSupport)=0 |
| virtual IDocument::UndoSupport | GetUndoSupport () const =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 cache data for creating document or document styles related commands including kNewDocCmdBoss, kInCopyNewDocCmdBoss, kDocEditStyleCmdBoss, kSaveDocumentStyleDataCmdBoss
| anonymous enum |
Define the default IID for INewDocCmdData.
| pure virtual |
Get the setting that determine if we need to create text frame on master page with the margin size when create a new document.
| pure virtual |
Get the bleed offsets.
| pure virtual |
Get the direction of columns of the new document.
| pure virtual |
Get the type of the document being created.
| pure virtual |
Return the value set in SetDocBossClassID.
| pure virtual |
Get the gutter value(the distance between two adjacent columns) of the new document.
| pure virtual |
Get the document intent preference
| void |
| pure virtual |
Get the margins for the new document through the passed out parameters.
| insideLeft | refers to inside margin for facing pages case or left margin. |
| top | refers to top margin. |
| outsideRight | refers to outside margin for facing pages case or right margin. |
| bottom | refers to bottom margin |
| pure virtual |
Get the dimensions of the new page size.
| pure virtual |
Get the number of columns of the new document.
| pure virtual |
Get the number of pages the document will have.
| pure virtual |
Return if auto text frame should be overridden.
| pure virtual |
Get the page binding setting.
| pure virtual |
Get the number of pages each spread will have.
| pure virtual |
Get the flag if page numbering needs to be restart or not.
| pure virtual |
Get the slug box offsets.
| pure virtual |
Return the height scale to apply to the spread.
| pure virtual |
Return the width scale to apply to the spread.
| pure virtual |
Get the starting page number for the document.
| pure virtual |
Get the UI settings when processing command.
| pure virtual |
| pure virtual |
Check whether a change to any bleed value changes them all to that value.
| pure virtual |
Get the flag that determining if all margin values are set from the top value.
| pure virtual |
Check whether a change to any slug value changes them all to that value.
| pure virtual |
Get the orientation of the document.
| pure virtual |
Set the flag determining if you want to create text frame on master page with the margin size when create a new document.
| shown | kTrue indicating creating text frame on master page, otherwise set as kFalse. |
| pure virtual |
Set the bleed offsets.
| offsets | the bleed offsets which is stored in a rect. Inside offset stored in left, outside offset stored in right. |
| pure virtual |
Set the column attributes for the new document.
| numColumns | refers to the number of columns for the new document. |
| gutter | refers to distance between two adjacent columns. |
| direction | refers to column direction which is either horizontal or vertical. If direction is kTrue indicating vertical columns, otherwise, it is horizontal columns. |
| pure virtual |
Set the type flag that what kind of document is being created.
| typeFlags | refers to different types of document. The type of document could be: 1) kFullNewDocument means standard document probably only meaningful by itself. 2) kMinimalNewDocument means minimal document formerly known as "Basic Document". 3) kXMLInterchangeNewDocument means XML interchange document which is a new document supported in InDesign 3.0. |
Allow the setting of a custom document boss type other than kDocBoss.
| bossID | id of boss to use. |
| pure virtual |
Set the document intent preference
| intent | IN - the new setting |
| pure virtual |
Set the margins for the new document.
| insideLeft | refers to inside margin for facing pages case or left margin. |
| top | refers to top margin. |
| outsideRight | refers to outside margin for facing pages case or right margin. |
| bottom | refers to bottom margin |
| pure virtual |
Set the dimensions of the new page size.
| pageSize | refers to the new page size. |
| pure virtual |
Set the number of pages the document will have.
| numPages | refers to number of pages. |
| pure virtual |
Set the flag determining if you want to create text frame on master page with the overrideable attribute. Only valid when GetAutoTextFrame is kTrue. Defaults to kTrue.
| bOverride | indicating auto text frame on master page should be overridden or not. |
| pure virtual |
Set the binding of the pages in the document. Currently page binding could be kDefaultBinding(-1), kLeftToRightBinding(0), kRightToLeftBinding(1).
| bindingDirection | refers to binding setting. |
| pure virtual |
Set the number of pages each spread will have.
| numPagesPerSpread | refers to the number of pages per spread. |
| pure virtual |
Set the flag determining if page numbering needs to be restart or not.
| bRestartPageNum | a flag determining if page numbering needs to be restart or not. |
| pure virtual |
Set the slug box offsets.
| offsets | refers to the slug offsets which is stored in a rect. Inside offset stored in left, outside offset stored in right. |
Set the default scale to apply to new spreads. We typically apply scaling to spreads based on the ppi of the pages that will be in the spread.
| scale | [IN] The x and y scale to apply to the spread. |
| pure virtual |
Set the starting page number for the document.
| startPageNumber | the number for the first page of the document. Defaults to 1. |
| pure virtual |
Set UI flags indicating if we need to bring up dialog when processing command.
| uiflags | refers to UI setting such as kSuppressUI, kMinimalUI and kFullUI. UIFlags is defined in BaseType.h. |
| pure virtual |
| pure virtual |
Tell whether a change to any bleed value change them all to that value.
| bUniform | is a flag determining a change to any bleed value change them all to that value. |
| pure virtual |
Set the flag determining if all margin values set from the top value.
| bUniform | kTrue indicating all margin values should use the top value, otherwise set as kFalse. |
| pure virtual |
Tell whether a change to any slug value changes them all to that value.
| bUniform | is a flag determining a change to any slug value changes them all to that value. |
| pure virtual |
Set the orientation of the document.
| bWide | refers to if the document is wide or tall(kTrue if it is wide, kFalse if it is tall). |