InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITrapStyleUtils Class Referenceabstract

#include <ITrapStyleUtils.h>

Inheritance diagram for ITrapStyleUtils:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_ITRAPSTYLEUTILS }
 

Public Member Functions

virtual ITrapStyleListMgrQueryTrapStyleListMgr (IDocument *doc)=0
 
virtual ITrapStyleListMgrQueryTrapStyleListMgr (const UIDRef &listRef)=0
 
virtual ErrorCode AssignStyleToPageList (const UIDList &pageUIDList, UIDRef trapStyleRef)=0
 
virtual ErrorCode ReplaceAndDeleteTrapStyles (ITrapStyleListMgr *iListMgr, K2Vector< int32 > &styleIndexList, bool16 doReplacement=kFalse, const UIDList *pPageUIDList=nil, const UIDRef *pReplacmentStyleRef=nil)=0
 
virtual UIDList GetDocumentTrapStylePageList (IDocument *, const K2Vector< PMString > &)=0
 
virtual void BuildDocumentPageTrapStyleUsageInfo (IDocument *iDoc, const K2Vector< PMString > &trapStyleList, PMString &trapStyleUseSummaryText)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

An utility interface for trap styles.

Member Function Documentation

virtual ErrorCode ITrapStyleUtils::AssignStyleToPageList (const UIDListpageUIDList,
UIDRef trapStyleRef 
)
pure virtual

Assign the specified trap style to the list of pages.

Parameters
pageUIDListlist of page UIDs.
trapStyleRefis the trap style to assign.
Returns
kSuccess if successful otherwise returns an error code.
virtual void ITrapStyleUtils::BuildDocumentPageTrapStyleUsageInfo (IDocumentiDoc,
const K2Vector< PMString > & trapStyleList,
PMStringtrapStyleUseSummaryText 
)
pure virtual

Build a summary text containing the document's trap style usages.

Parameters
trapStyleListspecifies the list of trap styles
trapstyleUseSummaryTextis the string containing the usage information for the specified trap styles.
virtual UIDList ITrapStyleUtils::GetDocumentTrapStylePageList (IDocument,
const K2Vector< PMString > &  
)
pure virtual

Get a page list (UIDList) in the specified document whose assigned trap style matches the specified trap stye list.

Parameters
iDocis the document
styleIndexListis the list of trap styles
Returns
a list of pages assigned the specified trap styles.
virtual ITrapStyleListMgr* ITrapStyleUtils::QueryTrapStyleListMgr (IDocumentdoc)
pure virtual

Returns the trap style list manager for the specified document.

Parameters
docis the document.
Returns
the document's trap style list manager.
virtual ITrapStyleListMgr* ITrapStyleUtils::QueryTrapStyleListMgr (const UIDReflistRef)
pure virtual

Returns the trap style list manager for the specified list UIDRef.

Parameters
listRefspecifies the UIDRef of the trap style list. If UIDRef is UIDRef::gNull then the session workspace's trap style list manager is returned.
Returns
the specified trap style list manager.
virtual ErrorCode ITrapStyleUtils::ReplaceAndDeleteTrapStyles (ITrapStyleListMgriListMgr,
K2Vector< int32 > & styleIndexList,
bool16 doReplacement = kFalse,
const UIDListpPageUIDList = nil,
const UIDRefpReplacmentStyleRef = nil 
)
pure virtual

Delete the specified trap styles specified by styleIndexList.

Parameters
iListMgris the trap style list manager to use
styleIndexListis the list of styles to delete
doReplacementif set to true, the replacement trap style is assigned to the specified page list before deleting the trap styles.
pPageUIDListis the list of page UIDs
pRelacementStyleRefist he replacement trap style