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

Public Types | |
| enum | { kDefaultIID = IID_IXMLATTRIBUTECOMMANDS } |
Public Member Functions | |
| virtual ErrorCode | CreateAttribute (const XMLReference &element, const WideString &name, const WideString &value, bool16 removable=kTrue)=0 |
| virtual ErrorCode | DeleteAttribute (const XMLReference &element, const WideString &name)=0 |
| virtual ErrorCode | SetAttributeName (const XMLReference &element, const WideString &name, const WideString &newName)=0 |
| virtual ErrorCode | SetAttributeValue (const XMLReference &element, const WideString &name, const WideString &value)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Exposes methods to change the attributes present in the document logical structure.
| pure virtual |
Method for creating an XML element attribute. Some attributes are generated automatically and should not be removed. If your attribute is one that should not be deleted then set the removable paramter to kFalse. This and related methods may process a command of type kXMLCreateAttributeCmdBoss behind the facade
| element | reference to the element the attribute will be added to |
| name | the name of the attribute |
| value | specifies the value of the attribute which should be added |
| removable | set to kTrue if attribute should be able to be deleted |
| pure virtual |
Method to delete an attribute. This and related methods may process a command of type kXMLDeleteAttributeCmdBoss behind the facade
| element | reference to the element that the attribute is to be deleted from |
| name | the name of the attribute to delete |
| pure virtual |
Change the name of an attribute. This and related methods may process a command of type kXMLSetAttributeNameCmdBoss behind the facade
| element | reference to the element that the attribute is to be renamed |
| name | the name of the attribute to be changed |
| newName | the new name of the attribute |
| pure virtual |
Method to change the value of an attribute. This and related methods may process a command of type kXMLSetAttributeValueCmdBoss behind the facade
| element | reference to the element that the attribute value is to be changed |
| name | specifies the attribute whose value is to be changed |
| value | new value of the attribute |