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

Public Types | |
| enum | { kDefaultIID = IID_IIINCOPYWORKFLOWUTILS } |
Public Member Functions | |
| virtual void | SetFileTypeCreator (const IDFile &file, FileTypeInfoID type)=0 |
| virtual UID | FindSwatchByName (IDataBase *db, const PMString swatchName)=0 |
| virtual UID | ColorFromAttr (const UIDRef &storyRef, const WideString &elemName, IInCopyXMLElementAttr *iAttrs)=0 |
| virtual UID | CreateTintSwatch (IDataBase *db, const PMString tintName, const PMReal tintPercent)=0 |
| virtual UID | CreateGradient (IDataBase *db, const PMString &gradientName, const GradientType gradientType, K2Vector< UID > stopColor, K2Vector< PMReal > stopPos, K2Vector< PMReal > midPoint)=0 |
| virtual void | MakeQName (const WideString &localName, WideString &qName)=0 |
| virtual ConstWString | GrabQName (const WideString &localName)=0 |
| ConstWString | GrabQName (const UTF16TextChar *localName) |
| virtual IPMUnknown * | QueryTextMetaDataBoss (ITextModel *textModel, bool16 bForceCreate=kTrue)=0 |
| virtual IPMUnknown * | QueryNthStoryMetaDataBoss (IDocument *document, int32 index)=0 |
| virtual int32 | CopyInlines (const UIDRef &oldStory, const UIDRef &newStory)=0 |
| virtual TextIndex | FindInlineInStory (TextIndex startPos, const UIDRef &tgtStory, const int32 inLineUIDVal)=0 |
| virtual void | SearchStoriesForInline (IDataBase *db, const int32 inLineUIDVal, UIDRef &tgtStory, TextIndex &startPos, UIDList *omitStories)=0 |
| virtual void | MapInlineToOriginal (TextIndex index, const UIDRef &newStory, const UIDRef &originalInline)=0 |
| virtual void | GetInlineInCopyStories (IDocument *doc, UIDList &stories)=0 |
| virtual UIDList | GetNonInCopyTextAndGraphicStories (const IDocument *fromDoc, bool16 doIncludeMasterItems=kTrue) const =0 |
| virtual UIDList | GetNonInCopyTextStories (const IDocument *fromDoc, bool16 doIncludeMasterItems=kTrue) const =0 |
| virtual UIDList | GetNonInCopyGraphicStories (const IDocument *fromDoc, bool16 doIncludeMasterItems=kTrue) const =0 |
| virtual UIDList | GetAllGraphics (const IDocument *fromDoc, bool16 all=kTrue, UID thisLayer=kInvalidUID, bool16 doIncludeMasterItems=kTrue) const =0 |
| virtual UIDRef | GetFirstGraphicStory (const UIDRef &fromDoc) const =0 |
| virtual UIDRef | GetStandaloneStory (const UIDRef &fromDoc) const =0 |
| virtual bool16 | IsImporting ()=0 |
| virtual void | SetImporting (bool16 importing)=0 |
| virtual bool16 | GetElementName (ClassID cls, WideString *elementName)=0 |
| virtual UIDRef | GetContainingInCopyStory (const UIDRef &linkedItemRef) const =0 |
| virtual UIDRef | GetOutermostParentStory (const UIDRef &target, const RangeData &range) const =0 |
| virtual bool16 | IsAFormObject (const UIDRef &itemRef) 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 |
IInCopyWorkFlowUtils is a utility class which provides common services to read and write InCopy files. Some routines are general file handling routines while others are specific to the incd file format. Most developers shouldn't need to call these routines unless they are attempting to replace parts of InCopy's normal file handling operations.
| pure virtual |
ColorFromAttr converts InCopy XML into a color UID, making it if necessary.
| storyRef | - The story this color is associated with. |
| elemName | - The XML element name from the file. |
| iAttrs | - The XML attributes from the file. |
| pure virtual |
CreateGradient reconstructs a gradient from it's various elements.
| db | - The database to make the gradient in. |
| gradientName | - The name of the gradient. |
| gradientType | - The type of the gradient (radial or linear). |
| stopColor | - An array of stop colors. |
| stopPos | - An array of stop positions. |
| midPoint | - An array of midpoint positions. |
| pure virtual |
CreateTintSwatch, unsurprisingly, creates a tint swatch.
| db | - The document database to create or find the swatch in. |
| tintName | - The tint name. |
| tintPercent | - The tint percentage. |
| pure virtual |
FindInlineInStory locates an inline story in a target story.
| startPos | - The text index to start looking from. |
| tgtStory | - The target story |
| inLineUIDVal | - The UID of the inline story to locate |
| pure virtual |
FindSwatchByName looks for a swatch in the specified database.
| db | - The database to look in. |
| swatchName | - The name of the swatch to find. |
| pure virtual |
Collects list of non-lined graphics from a document; these are graphic frames collected by interating the spreads' layers including those that appear in groups. The all param lets callers indicate if they want all graphics or only those that do not have InCopy format datalink (same as if calling GetNonInCopyGraphicStories).
| fromDoc | IN document with or without InCopy stories. |
| all | IN indicates is all graphics or just those without InCopy format datalink |
| thisLayer | IN UID of the layer to collect from, kInvalidUID means all layers |
| doIncludeMasterItems | IN indicates if get graphics on master spreads of not |
| pure virtual |
Get the containing InCopy story for the specified linked item.
| linkedObjRef | IN uidref of the linked item to get containing incopy story |
| pure virtual |
Retrieves the name of the element specified by the ClassID and returns kTrue if the class was found.
| ClassID | for the class interested in. |
| WideString | IN name of the element. |
| pure virtual |
Finds the first incopy graphic story in the document, useful when graphic story opened in standalone mode
| fromDoc | IN document to search |
| pure virtual |
GetInlineInCopyStories returns a list of inline story UIDs for a document.
| doc | - The document. |
| stories | - The inline stories in that document. |
| pure virtual |
Collects non-InCopy non-inlined graphic stories from a document; these are graphic frames collected by interating the spreads' layers including those that appear in groups that do not have an InCopy format datalink.
| fromDoc | IN document with or without InCopy stories. |
| doIncludeMasterItems | IN indicates if get graphics on master spreads of not |
| pure virtual |
Collects non-InCopy stories from a document.
| fromDoc | IN document with or without InCopy stories. |
| doIncludeMasterItems | IN indicates if get graphics on master spreads of not |
| pure virtual |
Collects non-InCopy graphic stories from a document; these are text stories collected by interating the storylist that do not have an InCopy format datalink.
| fromDoc | IN document with or without InCopy stories. |
| doIncludeMasterItems | IN indicates if get graphics on master spreads of not |
Finds the first incopy text story or incopy graphic story (there should only be one in standalone mode) in the document; verifies document is standalone.
| fromDoc | IN document to search |
| pure virtual |
GrabQName makes a qname and returns it. Simply a wrapper for MakeQName.
| localName | - A tag name. |
| inline |
GrabQName makes qname and returns it. Simply a wrapper for GrabQName.
| localName | - A UTF16 string pointer to a tag name. |
| pure virtual |
Examines both ancestors and decendents for an IID_IFORMFIELD.
| itemRef | IN UIDRef of item to examine, if a text model will examine the 0th text frame. |
| pure virtual |
Flag that tells whether InCopy is currently importing a story, in either InDesign or InCopy.
| pure virtual |
MakeQName constructs a fully qualified name from a local name. The difference is the aic: namespace (Adobe InCopy) prefix.
| localName | - A tag name. |
| qName | - The qualified tag name. |
| pure virtual |
MapInlineToOriginal maintains a list of inline UIDs while importing
| index | - The text index of the original inline |
| newStory | - The new inline UID |
| originalInline | - The original inline UID |
| pure virtual |
QueryNthStoryMetaDataBoss returns the metadata for the nth story in a document. This will create the metadata interface if it does not exist.
| document | - The document containing the stories. |
| index | - The index in the story list of the story desired. |
| pure virtual |
QueryTextMetaDataBoss returns the metadata interface for a story.
| textModel | - The story text model pointer. |
| bForceCreate | - Whether to create the metadata interface, default is true. |
| pure virtual |
SearchStoriesForInline searches all stories of a document for a specified inline story.
| db | - The document database to search. |
| inLineUIDVal | - The inline story UID. |
| tgtStory | - The story the inline was found in. |
| startPos | - The position of the inline in tgtStory |
| omitStories | - A list of story UIDs to skip. |
| pure virtual |
SetFileTypeCreator sets the Macintosh type and creator codes on a file.
| file | - The file to set the type and creator on. |
| type | - A FileTypeInfoID of the kind of file to set. |
| pure virtual |
Set the flag that tells whether InCopy is currently importing a story. This shouldn't be called except by the import provider.
| Boolean | for importing flag. |