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

Public Types | |
| enum | { kDefaultIID = IID_ISTORYUTILS } |
Public Member Functions | |
| virtual bool16 | HasStories (const IDocument *fromDoc) const =0 |
| virtual UIDList | GetStories (const IDocument *fromDoc) const =0 |
| virtual UIDList | GetStoryLinks (const IDocument *fromDoc) const =0 |
| virtual bool16 | IsAStory (const UIDRef &itemRef) const =0 |
| virtual bool16 | IsAStoryFormatName (const PMString &formatName) const =0 |
| virtual bool16 | IsAStoryInterchangeFileTypeID (const FileTypeInfoID &fileTypeID) const =0 |
| virtual bool16 | IsAStoryDocumentFileTypeID (const FileTypeInfoID &fileTypeID) const =0 |
| virtual bool16 | IsCurrentStoryDocumentFileType (const FileTypeInfoID &fileTypeID) const =0 |
| virtual bool16 | IsAnyCurrentStoryFileType (const FileTypeInfoID &fileTypeID) const =0 |
| virtual bool16 | IsAnyStoryFileTypeID (const FileTypeInfoID &fileTypeID) const =0 |
| virtual bool16 | IsLinkResourceOutOfDate (const UIDRef &itemRef) const =0 |
| virtual ErrorCode | CreateLink (const UIDRef &story, const IDFile &file, ClassID provider, FileTypeInfoID fileTypeInfo, UID &linkUID)=0 |
| virtual bool16 | IsLinkResourceAccessible (const UIDRef &storyRef) const =0 |
| virtual bool16 | IsAStoryLink (const ILink *iLink) const =0 |
| virtual PMString | GetStoryFormatType (const UIDRef &itemRef) const =0 |
| virtual bool16 | IsCloudStory (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 |
IStoryUtils is a utility class on the Utils boss which provides common services for InCopy stories. This interface should be accessed like so:
Utils<IStoryUtils>()->HasStories( ... );
| pure virtual |
CreateLink, unsurprisingly, creates a link for an InCopy story. This will remove and replace any existing link on the story.
| story | IN The InCopy story UIDRef. |
| file | IN The InCopy story file. |
| provider | IN The ClassID of the provider; for example kInCopyImportProviderBoss. |
| fileTypeID | IN The file type info ID for the InCopy file. |
| linkUID | OUT UID of the created link. |
Collects InCopy stories from a document.
| fromDoc | IN document with or without InCopy stories. |
Get the format type for the InCopy story. This is the format type of the story's link resource. See ILinkResource.
| itemRef | The UIDRef of the InCopy story to get the format type. |
Collects InCopy story links from a document.
| fromDoc | IN document with or without InCopy stories. |
| pure virtual |
Checks if there are any InCopy stories in a document. Faster than calling GetStories() if you just want to know if this document has at least one incopy story.
| fromDoc | IN document with or without InCopy stories. |
| pure virtual |
Tests if a specified FileTypeInfoID is for the current InCopy filetype.
| fileTypeID | is a FileTypeInfoID. |
| pure virtual |
Tests if a specified FileTypeInfoID is for an InCopy filetype.
| fileTypeID | is a FileTypeInfoID. |
| pure virtual |
Check to see if the text model or page item is an InCopy story (text or graphic) - that is, it has an InCopy format data link.
| itemRef | IN text model or page item to examine |
| pure virtual |
Tests if a specified FileTypeInfoID is for an InCopy document filetype (*.incx, *.icml).
| fileTypeID | is a FileTypeInfoID. |
| pure virtual |
Tests if a specified file format name is for an InCopy story.
| formatName | is a PMString containing the format name; typically, this PMString can be obtained from the ILinkResource::GetFormatType method. |
| pure virtual |
Tests if a specified FileTypeInfoID is for an InCopy interchange filetype.
| fileTypeID | is a FileTypeInfoID. |
| pure virtual |
| pure virtual |
Internal use only. Check if given story is assigned to any collaborator in InCopy on web workflow.
| itemRef | The UIDRef of the story. |
| pure virtual |
Tests if a specified FileTypeInfoID is for the current InCopy document filetype (*.incx, *.icml).
| fileTypeID | is a FileTypeInfoID. |
| pure virtual |
Check if the given InCopy story's link resource is accessible or not. Note: missing is considered accessible as long as it's parent directory exists.
| itemRef | IN text model or page item to examine. |
| pure virtual |
Check if the given InCopy story's link resource is modified or not.
| itemRef | IN text model or page item to examine. |