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

#include <IAttributePrePost.h>

Inheritance diagram for IAttributePrePost:
IPMUnknown

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 UIDListPostGraphicApply (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 IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

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.

Member Enumeration Documentation

Enumerator
kAction_Nothing 

kAction_Nothing indicate no action has been taken.

kAction_NothingLocalMetaData 

kAction_NothingLocalMetaData indicates attribute applied is local rendering object.

kAction_AddOverride 

kAction_AddOverride indicate an attribute override has been added.

kAction_RemoveOverride 

kAction_RemoveOverride indicate an attribute has been removed.

kAction_ChangeOverride 

kAction_ChangeOverride indicate an attribute override has been changed.

Member Function Documentation

virtual UIDList* IAttributePrePost::PostGraphicApply (K2Vector< IPMUnknown * > * newAttributeList,
K2Vector< ActionType > * actionList,
UIDListpageItemList,
IClassIDListDatamodifiedAttrClassList,
K2Vector< IPMUnknown * > * origAttributeList 
)
pure virtual

Apply an action to a list page items after the attributes are applied.

Parameters
newAttributeListspecifies a list of new attributes applied.
actionListspecifies a list actions corresponding to the attributes being applied.
pageItemListspecifies the list of pageitems the attributes are applied.
modifiedAttrClassListspecifies the list of attribute classes that have been modified.
origAttributeListspecifies the list of original attributes corresponding to the pageitems.
virtual void IAttributePrePost::PostTextApply (ITextModelmodel,
TextIndex start,
int32 len,
IFocusCachelistOfAll 
) const
pure virtual

Apply an action to text after the attribute are applied.

Parameters
modelspecifies the text model the attributes are applied.
startspecifies the start of text index.
lenspecifies the length of text.
listOfAllspecifies the affected text focus cahce
virtual void IAttributePrePost::PreGraphicApply (K2Vector< IPMUnknown * > * newAttributeList,
K2Vector< ActionType > * actionList,
UIDListpageItemList,
IClassIDListDatamodifiedAttrClassList,
K2Vector< IPMUnknown * > * origAttributeList 
)
pure virtual

Apply an action to a list of page items before the attributes are applied.

Parameters
newAttributeListspecifies a list of attributes to be applied.
actionListspecifies a list actions corresponding to the attributes being applied.
pageItemListspecifies the list of pageitems the attributes wiill be applied.
modifiedAttrClassListspecifies the list of attribute classes that have been modified.
origAttributeListspecifies the list of original attributes corresponding to the pageitems.
virtual void IAttributePrePost::PreTextApply (ITextModelmodel,
TextIndex start,
int32 len,
IFocusCachelistOfAll 
) const
pure virtual

Apply an action to text before the attribute are applied.

Parameters
modelspecifies the text model the attributes are applied.
startspecifies the start of text index.
lenspecifies the length of text.
listOfAllspecifies the affected text focus cahce