![]() | InDesign SDK 20.5 |
Classes | |
| struct | PrintDataStruct |
| struct | PrintDeviceInfoStruct |
Public Member Functions | |
| ErrorCode | InspectPrintStyle (const UIDRef &printStyle) |
| ErrorCode | AddPrintStyle (IPrStStyleListMgr *printStyleListMgr, const PMString &newPrintStyleName, UIDRef &newPrintStyle) |
| ErrorCode | ModifyPrintStyleName (IPrStStyleListMgr *printStyleListMgr, const int32 printStyleIndex, const PMString &newPrintStyleName) |
| ErrorCode | ModifyPrintStyle (IPrStStyleListMgr *printStyleListMgr, const int32 printStyleIndex, UIDRef &modifiedPrintStyle) |
| ErrorCode | DeletePrintStyle (IPrStStyleListMgr *printStyleListMgr, const int32 printStyleIndex) |
| PrintDataStruct | GetPrintData (IPrintData *printData) |
| PrintDeviceInfoStruct | GetPrintDeviceInfo (const IPrintDeviceInfo *printDeviceInfo) |
,
| ErrorCode SnpManipulatePrintStyles::AddPrintStyle | ( | IPrStStyleListMgr * | printStyleListMgr, |
| const PMString & | newPrintStyleName, | ||
| UIDRef & | newPrintStyle | ||
| ) |
Add a new print preset style with the given name.
| printStyleListMgr | IN The IPrStStyleListMgr to which you want to add. |
| newPrintStyleName | IN The name of the print preset style to add. |
| newPrintStyle | OUT The UIDRef of the new print preset style. |
| ErrorCode SnpManipulatePrintStyles::DeletePrintStyle | ( | IPrStStyleListMgr * | printStyleListMgr, |
| const int32 | printStyleIndex | ||
| ) |
Delete an existing print preset style.
| printStyleListMgr | IN The IPrStStyleListMgr from which you want to delete the print style. |
| printStyleIndex | IN The index of the print preset style to delete. |
| SnpManipulatePrintStyles::PrintDataStruct SnpManipulatePrintStyles::GetPrintData | ( | IPrintData * | printData | ) |
Utility method: Turn IPrintData into a PrintDataStruct.
| printData | IN The IPrintData to examine. |
| SnpManipulatePrintStyles::PrintDeviceInfoStruct SnpManipulatePrintStyles::GetPrintDeviceInfo | ( | const IPrintDeviceInfo * | printDeviceInfo | ) |
Utility method: Turn IPrintDeviceInfo into a PrintDeviceInfoStruct.
| printDeviceInfo | IN The IPrintDeviceInfo to examine. |
| ErrorCode SnpManipulatePrintStyles::InspectPrintStyle | ( | const UIDRef & | printStyle | ) |
Inspects a print preset style, and displays some of the settings to SNIPLOG.
| printStyle | IN The print style (kPrStStyleBoss) to examine. |
| ErrorCode SnpManipulatePrintStyles::ModifyPrintStyle | ( | IPrStStyleListMgr * | printStyleListMgr, |
| const int32 | printStyleIndex, | ||
| UIDRef & | modifiedPrintStyle | ||
| ) |
Modify the settings of an existing print preset style.
NOTE: IPrStStyleListMgr inherits from IGenEdtStlListMgr, unlike ITrapStyleListMgr, so the EditNthStyle method behaves a bit differently between the two interfaces. For instance, the parameters and the return type are all different between IPrStStyleListMgr::EditNthStyle and ITrapStyleListMgr::EditNthStyle. And while the IPrStStyleListMgr::EditNthStyle implementation does open a dialog box, ITrapStyleListMgr::EditNthStyle does not.
| printStyleListMgr | IN The IPrStStyleListMgr that contains the print preset style to modify. |
| printStyleIndex | IN The index of the print preset style to modify. |
| modifiedPrintStyle | OUT The UIDRef of the modified print style. This will be the UIDRef of the modified style if a change was made. If no change was made, this will be UIDRef::gNull. |
| ErrorCode SnpManipulatePrintStyles::ModifyPrintStyleName | ( | IPrStStyleListMgr * | printStyleListMgr, |
| const int32 | printStyleIndex, | ||
| const PMString & | newPrintStyleName | ||
| ) |
Modify the name of an existing print preset style.
| printStyleListMgr | IN The IPrStStyleListMgr that contains the print preset style to modify. |
| printStyleIndex | IN The index of the print preset style to modify. |
| newPrintStyleName | IN The new name of the print preset style. |