#include <IAssignmentUtils.h>
|
| enum | { kDefaultIID = IID_IASSIGNMENTUTILS } |
| |
Utilities relating to assignments.
- See Also
- IAssignmentMgr
Get the assignment for a particular IScript object.
- Parameters
| script | - The IScript object provided by the scripting subsystem. |
- Returns
- - The assignment, or nil if things are not going according to plan
Given a database, determines the default assignment folder. This is a folder in the same location as the InDesign document name after the InDesign document with " Assignments" appended. Example: c:.indd, default assignement folder would be c: Assignments.
- Parameters
| db | - Database of the InDesign document. |
- Returns
- - The default folder name.
Get the assigned story for a particular IScript object.
- Parameters
| script | - The IScript object provided by the scripting subsystem. |
- Returns
- - The assigned story, or nil if things are not going according to plan
| virtual UID IAssignmentUtils::GraphicFrameToTextFrame | ( | IHierarchy * | frame, | | | bool16 | bFirstFrame | | ) | | |
| pure virtual |
Finds the UID of the text frame contained by a graphic frame, optionally finding the first frame of the text thread instead of the supplied frame.
- Parameters
| frame | - The graphic frame's IHierarchy interface. |
| bFirstFrame | - A boolean indicating whether the first text frame is desired. |
- Returns
- - The UID of the text frame.
| virtual UID IAssignmentUtils::GraphicFrameToTextFrame | ( | const UIDRef & | frame, | | | bool16 | bFirstFrame | | ) | | |
| pure virtual |
Finds the UID of the text frame contained by a graphic frame, optionally finding the first frame of the text thread instead of the supplied frame.
- Parameters
| frame | - The graphic frame's UIDRef. |
| bFirstFrame | - A boolean indicating whether the first text frame is desired. |
- Returns
- - The UID of the text frame.
| virtual bool16 IAssignmentUtils::IsAssignmentFileExtension | ( | const PMString & | fileExt | ) | const |
| pure virtual |
Tests if a specified file extension is for an Assignment document filetype (*.inca *.icma).
- Parameters
| fileExt | is a file extension. |
- Returns
- kTrue if the file extension is for an Assignment document file; kFalse otherwise.
| virtual bool16 IAssignmentUtils::IsAssignmentFileTypeID | ( | const FileTypeInfoID & | fileTypeID | ) | const |
| pure virtual |
Tests if a specified FileTypeInfoID is for an Assignment document filetype (*.inca *.icma).
- Parameters
| fileTypeID | is a FileTypeInfoID. |
- Returns
- kTrue if the fileTypeID is for an Assignment document file; kFalse otherwise.
| virtual bool16 IAssignmentUtils::IsDataBaseOpen | ( | IDataBase * | db | ) | |
| pure virtual |
Walks the open document list to see if the given database is still open.
- Parameters
| db | - A database pointer which may or may not still be open |
- Returns
- - whether or not this database is still open
| virtual bool16 IAssignmentUtils::IsInCopyAssignmentPackageFileTypeID | ( | const FileTypeInfoID & | fileTypeID | ) | const |
| pure virtual |
Tests if a specified FileTypeInfoID is for an InCopy Assignment package filetype (*.incp *.icap).
- Parameters
| fileTypeID | is a FileTypeInfoID. |
- Returns
- kTrue if the fileTypeID is for an InCopy Assignment package file; kFalse otherwise.
| virtual bool16 IAssignmentUtils::IsInDesignAssignmentPackageFileTypeID | ( | const FileTypeInfoID & | fileTypeID | ) | const |
| pure virtual |
Tests if a specified FileTypeInfoID is for an InDesign Assignment package filetype (*.indp *.idap).
- Parameters
| fileTypeID | is a FileTypeInfoID. |
- Returns
- kTrue if the fileTypeID is for an InDesign Assignment package file; kFalse otherwise.
| virtual void IAssignmentUtils::NormalizeTextModelRef | ( | UIDRef & | ref | ) | |
| pure virtual |
Given a frame, this will figure out if it contains a text model and change the reference to point at that instead.
- Parameters
| ref | - IN/OUT the spline which may become a text model |
| virtual bool16 IAssignmentUtils::StoryFormatCompatible | ( | IAssignment * | toAssignment, | | | UIDRef | storyRef | | ) | | const |
| pure virtual |
Returns the UID of the graphic frame of the text frame.
- Parameters
- Returns
- - The UID of the IGraphicFrameData
| virtual UID IAssignmentUtils::TextFrameToGraphicFrame | ( | IHierarchy * | frame | ) | |
| pure virtual |
| virtual UID IAssignmentUtils::TextFrameToGraphicFrame | ( | const UIDRef & | frame | ) | |
| pure virtual |
Returns the UID of the graphic frame of the frame.
- Parameters
| frame | - The frame UIDRef to find the graphic frame from. |
- Returns
- - The UID of the IGraphicFrameData