#include <IAssignmentUIUtils.h>
|
| enum | { kDefaultIID = IID_IASSIGNMENTUIUTILS } |
| |
IAssignmentUIUtils is an utility functions to help ICBridge to enable and process the menu items on assignment panel
| virtual ErrorCode IAssignmentUIUtils::AddListToAssignment | ( | UIDRef | assignRef, | | | UIDList | itemList | | ) | | |
| pure virtual |
Add the objects to assignment
- Parameters
| assignRef | assignment UIDRef |
| itemList | UIDList of objects to be added to assignment |
- Returns
- An error code indicating whether the add to assignment succeeded or not.
Add the objects selected in window to the assignment
- Parameters
| ac | The active context |
| assignRef | The UIDRef of the assignment the objects added to |
- Returns
- An error code indicating whether the add to assignment succeeded or not.
| virtual bool16 IAssignmentUIUtils::CanAddSelToAssignment | ( | IActiveContext * | ac | ) | |
| pure virtual |
- Parameters
- Returns
- kTrue if unassigned exported/unexported objects are selected on active doc window
| virtual bool16 IAssignmentUIUtils::CanEditOnSelection | ( | IActiveContext * | ac | ) | |
| pure virtual |
Can check out the selection on the panel
- Parameters
- Returns
- kTrue if the panel has same type selection and can be check out
| virtual bool16 IAssignmentUIUtils::CanGoTo | ( | | ) | |
| pure virtual |
Can show the object in the document based on the selected item in assignment panel
- Parameters
- Returns
- bool16 kTrue if one InCopy Content node is selected
| virtual bool16 IAssignmentUIUtils::CanInvokeAssignmentOptions | ( | IActiveContext * | ac | ) | |
| pure virtual |
Can invoke Assignment options
- Parameters
- Returns
- kTrue if one assignment is selected on the story list panel
| virtual bool16 IAssignmentUIUtils::CanNewAssignment | ( | IActiveContext * | ac | ) | |
| pure virtual |
Can new an Assignment in the active document
- Parameters
- Returns
- kTrue if document is saved
| virtual bool16 IAssignmentUIUtils::CanPanelAddSelToAssignment | ( | IActiveContext * | ac | ) | |
| pure virtual |
Can add the selection on the panel to Assignment
- Parameters
- Returns
- kTrue if unassigned exported/unexported objects are selected on the panel or on active doc window
| virtual bool16 IAssignmentUIUtils::CanRelinkAssignment | ( | | ) | |
| pure virtual |
Can change the Assignment location
- Returns
- kTrue if one orphaned assignment is selected on the story list panel
| virtual bool16 IAssignmentUIUtils::CanRemove | ( | bool16 & | removeStory | ) | |
| pure virtual |
Can remove the selected items on the panel
- Returns
- kTrue if assigned InCopy content or assignments are selected on Assignment Panel
- Parameters
| removeStory | return kTrue if assign InCopy content selected |
| virtual bool16 IAssignmentUIUtils::CanRevealInBridge | ( | | ) | |
| pure virtual |
Can reveal the selected item in the Adobe Bridge.
- Parameters
- Returns
- kTrue if one node is selected.
| virtual bool16 IAssignmentUIUtils::CanRevealInFinderExplorer | ( | | ) | |
| pure virtual |
Can reveal the selected item in the finder/explorer.
- Parameters
- Returns
- kTrue if one node is selected.
| virtual bool16 IAssignmentUIUtils::CanRevertOnSelection | ( | IActiveContext * | ac | ) | |
| pure virtual |
Can cancel checkout the selection on Assignment panel
- Parameters
- Returns
- kTrue if the panel has same type selection and can be reverted
Can check in all stories on the active document
- Parameters
- Returns
- kTrue if the panel items can be check in
| virtual bool16 IAssignmentUIUtils::CanSubmitOnSelection | ( | IActiveContext * | ac | ) | |
| pure virtual |
Can check in selection on Assignment panel
- Parameters
- Returns
- kTrue if the panel has same type selection and can be check in
| virtual bool16 IAssignmentUIUtils::CanToggleAssignmentColor | ( | | ) | |
| pure virtual |
Can show/hide the objects assigned color
- Returns
- kTrue if can toggle to show/hide the assigned frame color
| virtual bool16 IAssignmentUIUtils::CanUpdateAllAssignments | ( | IActiveContext * | ac | ) | |
| pure virtual |
Check if there is any Assignment in the active document
- Parameters
- Returns
- kTrue if the active document has any assignment
| virtual bool16 IAssignmentUIUtils::CanUpdateContentOnSelection | ( | IActiveContext * | ac | ) | |
| pure virtual |
Can update story selected on Assignment panel
- Parameters
- Returns
- kTrue if the panel has same type selection and can be relinked
| virtual bool16 IAssignmentUIUtils::CanUpdateOutOfDateAssignments | ( | IActiveContext * | ac | ) | |
| pure virtual |
Check if there is any Assignment in the active document that is out of date (or missing).
- Parameters
- Returns
- kTrue if the active document has any assignment that is out of date.
| virtual bool16 IAssignmentUIUtils::CanUpdateSelectedAssignments | ( | | ) | |
| pure virtual |
Check the selected Assignments need to be saved
- Returns
- kTrue if assignments selected in panel are dirty
| virtual void IAssignmentUIUtils::CheckForMissingAssignments | ( | UIDRef | doc | ) | |
| pure virtual |
Display warning message if any assignment file is missing.
- Parameters
| doc | The document to be checked for missing assignments |
| virtual void IAssignmentUIUtils::DoubleClickNode | ( | | ) | |
| pure virtual |
Double click on Document node will bring the document forward Double click on Assignment node will open Assignment Options dialog Double click on InCopy content node will select the item on document view, or set the text insertion point on the document.
- Parameters
| virtual bool16 IAssignmentUIUtils::EditInPlace | ( | void | | ) | |
| pure virtual |
Checkout the selection items on Assignment Panel
- Returns
- the success of checkout
| virtual void IAssignmentUIUtils::GoTo | ( | | ) | |
| pure virtual |
If text story is selected in the panel, go to the text story in the document If gaphic story is selected in the panel, bring the graphic story in center view of the document
- Parameters
| virtual void IAssignmentUIUtils::InvokeAssignmentOptions | ( | | ) | |
| pure virtual |
Display the Assignment Options dialog, widgets are read-only in InCopy.
- Parameters
| virtual UIDRef IAssignmentUIUtils::NewAssignment | ( | IActiveContext * | ac, | | | UIFlags | uiFlag, | | | bool16 | saveAssignment = kTrue | | ) | | |
| pure virtual |
Choose the location for the Assignment, display New Assignment dialog, and new a assignment
- Parameters
| ac | The active context |
| uiFlag | kFullUI means to display the Assignment options dialog, otherwise the new Assignment will have the default options |
| saveAssignment | kTrue means to save the physical Assignment file |
- Returns
- UIDRef The UIDRef of the new Assignment
Add the objects selected in panel or active window to the assignment
- Parameters
| ac | The active context |
| assignRef | The Assignment that the selected stories are added to. If a null UIDRef passed in, then a new Assignment will be created first. |
| virtual void IAssignmentUIUtils::RelinkAssignment | ( | | ) | |
| pure virtual |
Choose the new location for Assignment, and change it
- Parameters
| virtual void IAssignmentUIUtils::Remove | ( | bool16 | byPassDialog = kFalse | ) | |
| pure virtual |
When stories are selected, remove the the selected assigned story from the Assignment and move them to unassigned, when Assignments are selected, remove all story belong to this Assignment and move them into unassigned, then remove this Assignment from document, display message to ask if it is ok the delete the physical Assignment file, then delete it
- Parameters
| byPassDialog | kTrue means don't display the message about deleting the physical Assignment file |
| virtual void IAssignmentUIUtils::RevealInBridge | ( | | ) | |
| pure virtual |
Reveals the selected item (document, assignment, story) in the Adobe Bridge.
- Parameters
| virtual void IAssignmentUIUtils::RevealInFinderExplorer | ( | | ) | |
| pure virtual |
Reveals the selected item (document, assignment, story) in the finder/explorer.
- Parameters
| virtual bool16 IAssignmentUIUtils::RevertChanges | ( | void | | ) | |
| pure virtual |
Cancel Checkedout items selected on Assignment Panel
- Returns
- the success of the Cancel Checkedout
| virtual int32 IAssignmentUIUtils::ShouldSaveAssignments | ( | IAssignedDocument * | doc, | | | bool8 | allowCancel = kTrue | | ) | | |
| pure virtual |
Ask the user if they want to save all modified assignments.
- Parameters
| doc | The assignment document to examine for assignments. |
| allowCancel | Flag indicating whether or not there should be a cancel button, true by default. |
- Returns
- 0 = doc == nil, 1 = to save, 2 = not save, and 3 = cancel
| virtual bool16 IAssignmentUIUtils::Submit | ( | void | | ) | |
| pure virtual |
Check in the selection items on Assignment Panel
- Returns
- the success of the submit(checkin)
| virtual bool16 IAssignmentUIUtils::SubmitAll | ( | void | | ) | |
| pure virtual |
Checkin All items on active document
- Returns
- the success of check in all
| virtual void IAssignmentUIUtils::ToggleAssignmentColor | ( | | ) | |
| pure virtual |
To toggle show/hide the assigned frame color
- Parameters
| virtual void IAssignmentUIUtils::UpdateAllAssignments | ( | IActiveContext * | ac | ) | |
| pure virtual |
Save all asssignments in the active doc
- Parameters
| virtual bool16 IAssignmentUIUtils::UpdateContent | ( | void | | ) | |
| pure virtual |
Relink (update story) on selection on Assignment panel
- Returns
- the success of update story
| virtual void IAssignmentUIUtils::UpdateOutOfDateAssignments | ( | IActiveContext * | ac | ) | |
| pure virtual |
Save all out of date (or missing) asssignments in the active doc
- Parameters
| virtual void IAssignmentUIUtils::UpdateSelectedAssignments | ( | | ) | |
| pure virtual |
Save the current asssignment selected in the panel
- Parameters