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

Public Types | |
| enum | { kDefaultIID = IID_IASSIGNMENTMGR } |
| enum | FrameStatus { kNotExported, kAssigned, kUnassigned, kUnknown } |
Public Member Functions | |
| virtual bool16 | IsAssigned (const UIDRef &object) const =0 |
| virtual ErrorCode | SaveAssignments (IDocument *document, UIFlags uiFlags=kFullUI, bool16 forceSave=kFalse)=0 |
| virtual ErrorCode | SaveAssignment (IAssignment *assignment, UIFlags uiFlags=kFullUI)=0 |
| virtual ErrorCode | OpenAssignmentWithProxy (const PMString &assignFile, InterfacePtr< IAssignment > &assignment, UIFlags uiFlags=kFullUI)=0 |
| virtual ErrorCode | ImportAssignment (IPMStream *stream, IINXImportPolicy *policy=nil, UIFlags uiFlags=kFullUI)=0 |
| virtual ErrorCode | ExportAssignment (const IAssignment *assignment, IPMStream *stream, UIFlags uiFlags=kFullUI)=0 |
| virtual IAssignment * | CreateAssignmentCmd (IAssignedDocument *doc, const PMString &assignFile, bool16 saveAssignment=kFalse, UIDList *objects=nil)=0 |
| virtual IAssignedStory * | CreateAssignedStory (const UIDRef &story)=0 |
| virtual IAssignment * | QueryAssignment (IAssignedDocument *doc, const PMString &assignFile) const =0 |
| virtual bool16 | IsTextStory (IAssignedDocument *docInfo, const PMString &assignPath, const PMString &storyPath) const =0 |
| virtual bool16 | IsTextStory (const UIDRef &itemRef) const =0 |
| virtual IAssignedDocument * | GetAssignedDocument (IDataBase *db) const =0 |
| virtual IAssignedDocument * | GetAssignedDocument (const PMString &docPath) const =0 |
| virtual void | QueryAssignmentAndAssignedStory (const UIDRef &storyref, InterfacePtr< IAssignment > &iAssignmentRef, InterfacePtr< IAssignedStory > &iAssignedStoryRef) const =0 |
| virtual void | GetStoryListOnDoc (IAssignedDocument *docInfo, UIDList &storyList) const =0 |
| virtual void | GetStoryListOnAssignment (IAssignment *assignment, UIDList &storyList) const =0 |
| virtual ErrorCode | AddToAssignmentCmd (IAssignment *assignment, UIDList &objects, IAssignedStory *beforeStory=nil, bool16 notifyPanel=kTrue)=0 |
| virtual ErrorCode | DirtySpreadCmd (UIDRef spreadRef)=0 |
| virtual ErrorCode | AddToAssignmentCmd (IAssignedDocument *docInfo, const PMString &assignPath, UIDList &objects, bool16 notifyPanel=kTrue)=0 |
| virtual IAssignmentMgr::FrameStatus | GetFrameStatus (const UIDRef &object) const =0 |
| virtual bool16 | UpdateAssignmentOptions (IAssignment *assignment, const PMString &assignName, const PMString &file, const PMString &assignWriter, const IAssignment::AssignmentExportOptions exportOption, const UID uiColor, const bool16 includeLinkFilesPackaging, UIFlags uiFlags=kFullUI)=0 |
| virtual void | NotifyPanel (ClassID theChange=kAssignmentMgrChangedNotifyMsg)=0 |
| virtual ErrorCode | PackageAssignment (IAssignment *assignment, const IDFile &packageFile, UIFlags uiFlags=kFullUI)=0 |
| virtual bool16 | IsAssignmentPackaged (IAssignment *assignment)=0 |
| virtual bool16 | IsAssignmentPackageUpToDate (IAssignment *assignment)=0 |
| virtual ErrorCode | ReturnPackageAssignment (IAssignment *assignment, const IDFile &packageFile, UIFlags uiFlags=kFullUI, bool16 includeAdded=kTrue)=0 |
| virtual ErrorCode | ExplodeInCopyPackageForOpen (const IDFile &packageFile, UIFlags uiFlags, IDFile &assignmentFileToOpen)=0 |
| virtual IDFile | GetAssignmentFileToOpenFromPackage (const IDFile &packageFile)=0 |
| virtual ErrorCode | ForwardPackageAssignment (IAssignment *assignment, const IDFile &packageFile, UIFlags uiFlags=kFullUI, bool16 includeAdded=kTrue)=0 |
| virtual ErrorCode | ExplodeInDesignPackageForOpen (const IDFile &packageFile, const UIDRef &assignmentRef, UIFlags uiFlags)=0 |
| virtual ErrorCode | ExplodeInDesignPackageToFolder (const IDFile &packageFile, const IDFile &targetFolder, UIFlags uiFlags)=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 class is used to manage the modeling of assignments, containing one or more stories per document.
The status of a frame, according to the Assignment Manager.
| pure virtual |
Add some page items to an assignment, removing them from their current assignment if necessary. This calls ProcessCommand to perform the operation.
| assignment | - The assignment to add to. Use nil for the unassignment. |
| objects | - A UIDList of page items |
| beforeStory | - An assigned story to place this story in front of, defaults to nil, the end of the list |
| notifyPanel | - kTrue to notify the assignment panel to update the assignment node |
| pure virtual |
Add some page items to an assignment, removing them from their current assignment if necessary. This calls ProcessCommand to perform the operation.
| docInfo | - The IAssignedDocument reference |
| assignPath | - The file path of assignment to add to (empty for unassignments) |
| objects | - A UIDList of page items |
| notifyPanel | - kTrue to notify the assignment panel to update the assignment node |
| pure virtual |
Create an assigned story (must be called from a command)
| story | - The uid of the story to assign |
| pure virtual |
Create an assignment (by processing a command)
| doc | - The assigned document to add this assignment to |
| assignFile | - The file for the assignment, which is empty for the unassignment |
| saveAssignment | - kTrue means to save the assignment, this value is ignored when creating unassigned assignment(not saved) |
| objects | - A UIDList of page items to add to the created assignment, if nil then all unassigned InCopy stories are added |
| pure virtual |
This marks all assignments which display this spread as dirty (i.e. need update/export). This can call ProcessCommand.
| spreadRef | - A UIDRef to the spread which has changed. |
| pure virtual |
Extracts the contents of the package file. The assignment file to open are returned.
| packageFile | IN the assignment package file to open |
| uiFlags | - a flag indicating whether or not ui is permitted |
| assignmentFileToOpen | OUT the assignment file to be opened |
| pure virtual |
Extracts the contents of the package file.
| packageFile | IN the assignment package file to open |
| assignmentRef | IN the current assignment in the original indesign pub |
| uiFlags | - a flag indicating whether or not ui is permitted |
| pure virtual |
Extracts the contents of the package file to the specified folder.
| packageFile | IN the assignment package file to open |
| targetFolder | IN the folder to extract the package to |
| uiFlags | - a flag indicating whether or not ui is permitted |
| pure virtual |
Export an assignment.
| assignment | - The assignment to export |
| stream | - The stream to export into |
| uiFlags | - A flag indicating whether or not ui is permitted |
| pure virtual |
Forward an assignment package to another InCopy user. Creates a package for the assignment at the specified file location which includes the assigned stories and the original manifest file and package info file. Optionally, forwards linked files added by InCopy user.
| assignment | - The assignment to forward |
| packageFile | - The file to hold the forward package, an InCopy assignment package |
| uiFlags | - a flag indicating whether or not ui is permitted |
| includeAdded | - a flag indicating whether or not added links should be forwarded |
| pure virtual |
Find the IAssignedDocument record based on a document's file path
| db | - The document's database |
| pure virtual |
Find the IAssignedDocument record based on a document's file path
| docPath | - The document's file |
| pure virtual |
Returns the assignment file to be opened from the specified package file.
| packageFile | the package file to examine |
| pure virtual |
Return the current state of a particular page item
| object | - A page item's UIDRef |
| pure virtual |
Return a list of assigned stories in an assignment
| docInfo | - The IAssignedDocument reference |
| storyPath | - The path of the assignment's file |
| storyList | - The returned list of stories |
| pure virtual |
Return a list of assigned stories in the document
| docInfo | - The IAssignedDocument reference |
| storyList | - The returned list of stories |
| pure virtual |
Import an assignment.
| stream | - The stream to import from |
| policy | - The policy to use to import, if nil then will use kICAssignmentImportPolicyBoss |
| uiFlags | - A flag indicating whether or not ui is permitted |
| pure virtual |
Get the assignment status of a UID.
| object | - The UIDRef of the document, layer, story or article to assign. |
| pure virtual |
Tests whether the specified assignment is packaged or not.
| assignment | IN the assignment to test |
| pure virtual |
Tests whether the specified assignment's package is up to date or not; that is, did it contain the current assignment file.
| assignment | IN the assignment to test |
| pure virtual |
Whether a linked file is a text story (as opposed to an image)
| docInfo | - The IAssignedDocument reference |
| assignPath | - The assignment's file |
| storyPath | - The linked story's path |
| pure virtual |
Whether a page item is a text story (as opposed to an image)
| itemRef | - The page item's UIDRef |
| pure virtual |
Notify the StoryListPanel that it needs to update.
| theChange | = kAssignmentMgrChangedNotifyMsg will ask the assignment panel to rebuild, this was used when you change the structure of assignment nodes theChange = kAssignmentPanelInvalidateNotifyMsg will cause the assignment panel redraw, this was used when you only want to redraw the panel |
| pure virtual |
Open an assignment from its file and create the document proxy. This should only be called from InCopy when opening an assignment file. document - The empty document which will become the proxy.
| assignFile | - The assignment file path |
| assignment | - An out parameter returning a pointer to the IAssignment (can be nil) |
| uiFlags | - A flag indicating whether or not ui is permitted |
| pure virtual |
Package an assignment into a job bag zip file.
| assignment | - The assignment to package |
| packageFile | - The file to hold the package, an InCopy assignment package |
| uiFlags | - a flag indicating whether or not ui is permitted |
| pure virtual |
Get an existing assignment
| doc | - The assigned document which contains the assignment |
| assignFile | - The file for the assignment, which is empty for the unassignment |
| pure virtual |
This is used by the panel to get labels for display
| storyref | - a UIDRef to the story |
| IAssignment | - an out parameter that returns a pointer to the story's IAssignment |
| IAssignedStory | - an out parameter that returns a pointer to the story's IAssignedStory |
| pure virtual |
Return an assignment package to InDesign user. Creates a package for the assignment at the specified file location which includes the assigned stories and the original manifest file and package info file. Optionally, forwards linked files added by InCopy user.
| assignment | - The assignment to return |
| packageFile | - The file to hold the return package, an InDesign assignment package |
| uiFlags | - a flag indicating whether or not ui is permitted |
| includeAdded | - a flag indicating whether or not added links should be forwarded |
| pure virtual |
Save an assignment to its file.
| assignment | - The assignment to export |
| uiFlags | - A flag indicating whether or not ui is permitted |
| pure virtual |
Save all assignments associated with a specific document
| document | - The document containing the assignments to be saved |
| uiFlags | - A flag indicating whether or not ui is permitted |
| forceSave | - A flag indicating whether or not up to date assignments should be saved. If false, only out of date assignments are saved. |
| pure virtual |
Update the Assignment options. Calls ProcessCommand.
| uiFlags | - A flag indicating whether or not ui is permitted |