![]() | InDesign SDK 20.5 |
Classes | |
| struct | TrapStyleData |
Public Member Functions | |
| ErrorCode | InspectTrapStyle (const UIDRef &trapStyle, IDocument *document=nil) |
| ErrorCode | AddTrapStyle (ITrapStyleListMgr *trapStyleListMgr, const PMString &newTrapStyleName, UIDRef &newTrapStyle, const bool16 nameLocked=kFalse, const bool16 editLocked=kFalse, const bool16 deleteLocked=kFalse) |
| ErrorCode | ModifyTrapStyle (ITrapStyleListMgr *trapStyleListMgr, const int32 trapStyleIndex, ITrapStyle *newTrapData, const bool16 updateLockInfo=kFalse, const bool16 nameLocked=kFalse, const bool16 editLocked=kFalse, const bool16 deleteLocked=kFalse) |
| ErrorCode | DeleteTrapStyle (ITrapStyleListMgr *trapStyleListMgr, const int32 trapStyleIndex) |
| ErrorCode | AssignTrapStyleToPages (const UIDRef &trapStyle, const UIDList &pageUIDList) |
| K2Vector< PMString > | GetTrapStyleNames (ITrapStyleListMgr *trapStyleListMgr) |
| TrapStyleData | GetTrapStyleData (const UIDRef &trapStyle) |
| ITrapStyle * | CreateNewTrapStyleBasedOn (const UIDRef &trapStyle) |
| void | CopyTrapStyleData (const TrapStyleData &trapStyleData, ITrapStyle *trapStyle) |
| UIDList | GetAllPagesInDocument (IDocument *document) |
,
| ErrorCode SnpManipulateTrapStyles::AddTrapStyle | ( | ITrapStyleListMgr * | trapStyleListMgr, |
| const PMString & | newTrapStyleName, | ||
| UIDRef & | newTrapStyle, | ||
| const bool16 | nameLocked = kFalse, | ||
| const bool16 | editLocked = kFalse, | ||
| const bool16 | deleteLocked = kFalse | ||
| ) |
Add a new trap style with the given name.
| trapStyleListMgr | IN The ITrapStyleListMgr to which you want to add the trap style. |
| newTrapStyleName | IN The name of the trap style to add. |
| newTrapStyle | OUT The UIDRef of the new trap style. |
| nameLocked | IN If kTrue, the name of the new trap style cannot be modified. |
| editLocked | IN If kTrue, the new trap style cannot be modified. |
| deleteLocked | IN If kTrue, the new trap style cannot be deleted. |
| ErrorCode SnpManipulateTrapStyles::AssignTrapStyleToPages | ( | const UIDRef & | trapStyle, |
| const UIDList & | pageUIDList | ||
| ) |
Assigns the trap style to a list of pages.
| trapStyle | IN The trap style to apply. |
| pageUIDList | IN The list of pages to which the trap styles are applied. |
| void SnpManipulateTrapStyles::CopyTrapStyleData | ( | const TrapStyleData & | trapStyleData, |
| ITrapStyle * | trapStyle | ||
| ) |
Utility method: Copies trap style data from a TrapStyleData struct and puts it into a non-persistent trap style boss.
| trapStyleData | IN The trap style data to set. |
| trapStyle | IN/OUT The trap style to set. This should be non-persistent, as this method will call its Set methods. The data in the boss will also be modified by this routine. |
| ITrapStyle * SnpManipulateTrapStyles::CreateNewTrapStyleBasedOn | ( | const UIDRef & | trapStyle | ) |
Utility method: Creates a temporary, non-persistent trap style boss based on an existing trap style, and sets some data so it can be used by ModifyTrapStyle.
| trapStyle | IN The trap style to base the temporary trap style on. |
| ErrorCode SnpManipulateTrapStyles::DeleteTrapStyle | ( | ITrapStyleListMgr * | trapStyleListMgr, |
| const int32 | trapStyleIndex | ||
| ) |
Delete an existing trap style.
| trapStyleListMgr | IN The ITrapStyleListMgr from which you want to delete the trap style. |
| trapStyleIndex | IN The index of the trap style to delete. |
Utility method: Gets a list of all pages in a document.
| document | IN The document to get pages from. |
| SnpManipulateTrapStyles::TrapStyleData SnpManipulateTrapStyles::GetTrapStyleData | ( | const UIDRef & | trapStyle | ) |
Utility method: Gets trap style data and puts it into a TrapStyleData struct.
| trapStyle | IN The trap style to read. |
| K2Vector< PMString > SnpManipulateTrapStyles::GetTrapStyleNames | ( | ITrapStyleListMgr * | trapStyleListMgr | ) |
Utility method: Gets trap style names.
| trapStyleListMgr | IN The trap style list manager to get trap style names from |
| ErrorCode SnpManipulateTrapStyles::InspectTrapStyle | ( | const UIDRef & | trapStyle, |
| IDocument * | document = nil | ||
| ) |
Inspects a trap style, and displays some of the settings to SNIPLOG.
| trapStyle | IN The trap style (kTrapStyleBoss) to examine. |
| document | IN The document to examine pages for assigned trap styles. If nil, trapstyles on pages will not be reported. |
| ErrorCode SnpManipulateTrapStyles::ModifyTrapStyle | ( | ITrapStyleListMgr * | trapStyleListMgr, |
| const int32 | trapStyleIndex, | ||
| ITrapStyle * | newTrapData, | ||
| const bool16 | updateLockInfo = kFalse, | ||
| const bool16 | nameLocked = kFalse, | ||
| const bool16 | editLocked = kFalse, | ||
| const bool16 | deleteLocked = kFalse | ||
| ) |
Modify an existing trap style.
NOTE: ITrapStyleListMgr doesn't inherit from IGenEdtStlListMgr like IPrStStyleListMgr does, so the EditNthStyle method behaves a bit differently between the two interfaces. For instance, the parameters and the return type are all different between ITrapStyleListMgr::EditNthStyle and IPrStStyleListMgr::EditNthStyle. And while the IPrStStyleListMgr::EditNthStyle implementation does open a dialog box, ITrapStyleListMgr::EditNthStyle does not.
| trapStyleListMgr | IN The ITrapStyleListMgr that contains the trap style to modify. |
| trapStyleIndex | IN The index of the trap style to modify. |
| newTrapData | IN The trap data to modify with. |
| updateLockInfo | IN If kTrue, the nameLocked, editLocked, and deleteLocked parameters will be updated in the trap style. Otherwise, the nameLocked, editLocked, and deleteLocked parameters will be ignored. |
| nameLocked | IN If kTrue, the name of the new trap style cannot be modified. |
| editLocked | IN If kTrue, the new trap style cannot be modified. |
| deleteLocked | IN If kTrue, the new trap style cannot be deleted. |