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

Public Types | |
| enum | { kDefaultIID = IID_IATTRIBUTE_PREPOST_ACTION } |
| enum | ActionType { kAction_Nothing = 0, kAction_NothingLocalMetaData, kAction_AddOverride, kAction_RemoveOverride, kAction_ChangeOverride } |
Public Member Functions | |
| virtual void | PreGraphicApply (K2Vector< IPMUnknown * > *newAttributeList, K2Vector< ActionType > *actionList, UIDList *pageItemList, IClassIDListData *modifiedAttrClassList, K2Vector< IPMUnknown * > *origAttributeList)=0 |
| virtual UIDList * | PostGraphicApply (K2Vector< IPMUnknown * > *newAttributeList, K2Vector< ActionType > *actionList, UIDList *pageItemList, IClassIDListData *modifiedAttrClassList, K2Vector< IPMUnknown * > *origAttributeList)=0 |
| virtual void | PreTextApply (ITextModel *model, TextIndex start, int32 len, IFocusCache *listOfAll) const =0 |
| virtual void | PostTextApply (ITextModel *model, TextIndex start, int32 len, IFocusCache *listOfAll) const =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 interface is optional on the graphic and text attributes. If it is present, the apply attribute commands will call PreXxxxApply() before the attribute is applied and PostXxxxApply() afterwards.
| pure virtual |
Apply an action to a list page items after the attributes are applied.
| newAttributeList | specifies a list of new attributes applied. |
| actionList | specifies a list actions corresponding to the attributes being applied. |
| pageItemList | specifies the list of pageitems the attributes are applied. |
| modifiedAttrClassList | specifies the list of attribute classes that have been modified. |
| origAttributeList | specifies the list of original attributes corresponding to the pageitems. |
| pure virtual |
Apply an action to text after the attribute are applied.
| model | specifies the text model the attributes are applied. |
| start | specifies the start of text index. |
| len | specifies the length of text. |
| listOfAll | specifies the affected text focus cahce |
| pure virtual |
Apply an action to a list of page items before the attributes are applied.
| newAttributeList | specifies a list of attributes to be applied. |
| actionList | specifies a list actions corresponding to the attributes being applied. |
| pageItemList | specifies the list of pageitems the attributes wiill be applied. |
| modifiedAttrClassList | specifies the list of attribute classes that have been modified. |
| origAttributeList | specifies the list of original attributes corresponding to the pageitems. |
| pure virtual |
Apply an action to text before the attribute are applied.
| model | specifies the text model the attributes are applied. |
| start | specifies the start of text index. |
| len | specifies the length of text. |
| listOfAll | specifies the affected text focus cahce |