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

Public Types | |
| enum | { kDefaultIID = IID_IINKMGRUTILS } |
| enum | PSProcessInkType { kPSProcess = 1, kPSHexachrome } |
Public Member Functions | |
| virtual IInkList * | _QueryActiveInkList (IActiveContext *=nil)=0 |
| virtual IInkList * | _QueryActiveDocInkList ()=0 |
| virtual IInkList * | QueryDocInkList (IDataBase *iDataBase)=0 |
| virtual UIDList | GetInkAliasListFromInkList (IInkList *iInkList, bool16 excludeSwatchAliases=kFalse)=0 |
| virtual UID | GetInksAliasInfo (IInkList *iInkList, UID inkUID, PMString &aliasInkName, bool16 &isProcessInk, int32 &plateOrder, ColorArray &colorValue)=0 |
| virtual UID | GetInksAliasUID (IInkList *iInkList, PMString &inkName)=0 |
| virtual UID | GetInksAliasUID (IInkList *iInkList, UID inkUID)=0 |
| virtual bool16 | InksSwatchIsAliased (IInkList *iInkList, const UIDRef &inkRef)=0 |
| virtual int32 | GetPrintInkPlateOrder (IInkList *iInkList, UID inkUID)=0 |
| virtual UIDRef | GetSpotInksColorSwatchUID (const UIDRef &inkRef, IPMUnknown *iSwatchOrInkList=nil)=0 |
| virtual bool16 | GetSpotInSwatchList (IDataBase *iDB, const PMString &spotName, PSProcessInkType type)=0 |
| virtual IInkData::InkType | GetInksColorUsageType (const UIDRef &swatchRef, ISwatchList *iSwatchList=nil)=0 |
| virtual void | _InvokeInkManagerDialog (IInkList *iInkList=nil, RsrcID dlgID=0)=0 |
| virtual PMString | GetInkUIName (IPMInkBossData *iInkBossData)=0 |
| virtual PMString | GetInkPSName (IPMInkBossData *)=0 |
| virtual UIDList | GetVisibleInkListFromInkList (IInkList *iInkList, bool16 allToProcess)=0 |
| virtual UID | FindInk (IInkList *, PMString inkName)=0 |
| virtual UID | FindPSInk (IInkList *, PMString inkName, PSProcessInkType psInkType)=0 |
| virtual UIDList | GetInkConvertToProcessListFromInkList (IInkList *iInkList)=0 |
| virtual bool16 | ColorsAreModified (IInkList *, UIDList swatchUIDList)=0 |
| virtual CAGMColorSpace | CreateAliasedColorSpace (IInkList *iInkList, UID &aliasee, bool16 doPrint=kFalse)=0 |
| virtual bool16 | InkListHasSpotInks (IInkList *iInkList=nil, bool16 ignoreConvert2Process=kFalse)=0 |
| virtual UIDList | GetInksUsedOnSpread (UIDRef &spreadRef, int32 flags, IInkList *iInkList=nil, PMRect *pBoundsRect=nil)=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 utility facilitate the mangement of InDesign inks.
| pure virtual |
Invoke the ink manager dialog.
| iInkList | is the ink list to use to populate the ink manager dialog. |
| dlgID | is the dialog's resource ID. |
| pure virtual |
Query for the front most document's ink list
| pure virtual |
Query for the current active ink list in the specified active context. If active context is not specified, the current active context is used.
| activeContext | the specified active context. |
Check whether any of the colors in the list are subject to ink mapping
| iInkList | is the ink list. |
| swatchUIDList | is the color UID list. |
| pure virtual |
Create the CAGMColorSpace of the aliasee.
| iInkList | is the ink list. |
| aliasee | is the ink UID that is aliased. |
| doPrint | is true if currently printing. |
Support needed for the AGMColorMapper portFind an ink by name
| iInkList | is the ink list. |
| inkName | is specified ink to find. |
| pure virtual |
Find an ink by PostScript name
| iInkList | is the ink list. |
| inkName | is specified ink to find. |
| psInkType | is specified process ink type. |
| pure virtual |
Get the list of all ink UID that are ink alias for anther ink from the specified ink list. If excludeSwatchAliases is set to kTure, ink aliases that are results of swatch aliases are excluded from the returned list. The default is to return all ink aliases.
| iInkList | is the database's ink list. |
| excludeSwatchAliases | exclude the ink aliases that resulted from swatch aliases. The default is set to kFalse. |
| pure virtual |
Get a list of the inks that are converted to process
| iInkList | is the ink list. |
| pure virtual |
Return the PostScript color name from the ink name.
| iInkBossData | is the ink's persistent data. |
| pure virtual |
Get the ink's alias UID if ink is aliased. It returns its alias ink's name, if ink is process, plate order, alternate color space/values if spot ink. If ink is not aliased, it returns kInvalidUID.
| iInkList | is the ink list the specified ink is in. |
| inkUID | is the ink whose alias ink information we want to get. |
| aliasInkName | is the alias ink's name. |
| isProcessInk | is kTrue if the alias ink is a process ink. |
| plateOrder | is the alias ink's plate order. |
| colorValue | is the alias ink's color value if alias ink is spot. |
Get the ink's alias UID by name if ink is aliased.
| iInkList | is the ink list the specified ink is in. |
| inkName | is the ink name. |
Get the ink's alias UID by ink UID if ink is aliased.
| iInkList | is the ink list the specified ink is in. |
| inkUID | is the ink UID. |
| pure virtual |
Get the specified ink's color usage
| swatchRef | is the spot color swatch UIDRef. |
| iSwatchList | is the swatch list. |
| pure virtual |
Get all the inks used on the spread by doing a ink resource draw order iteration.
| spreadRef | is UIDRef of the spread. |
| flags | are used for iterating the draw order. |
| iInkList | is optional parameter. It should be the ink list for the document or the book. If not set, ink list for the document is used. |
| pBoundsRect | is optional parameter. If set, the function finds the inks used on this rect in the spread, else it uses the pasteboard bounds. It is useful if you want to know, for example, whether a given page has any inks. |
| pure virtual |
Return the UI ink name (after translataion) from the ink name.
| iInkBossData | is the ink's persistent data. |
Get the specified printing ink's plate order in the given ink list.
| iInkList | is the ink list the specified ink is in. |
| inkUID | is the ink UID. |
| pure virtual |
Get the color swatch UID which defined the spot ink.
| inkRef | is the ink UID. |
| iSwatchOrInkList | is the IPMUnknown* to the ink list or the swatch list. |
| pure virtual |
Get the spot color in the swatch list with the given name
| iDB | is the swatch's database. |
| spotName | is the name of the spot color swatch. |
| type | is the process ink type. |
| pure virtual |
Get a list of the inks that are visible.
| iInkList | is the ink list. |
| allToProcess | is kTrue if all spot inks are ignored. |
| pure virtual |
Return kTrue if specified ink list has at least one spot ink. If ink list is nil, use the current active ink list.
| iInkList | is the ink list. |
| ignoreConvert2Process | is kTrue if ignoring any convert to process setting. |
| pure virtual |
Determined if the ink alias is caused by swatch alias.
| iInkList | is the ink list the specified ink is in. |
| inkRef | is the ink UIDRef. |