![]() | InDesign SDK 20.5 |

Public Types | |
| enum | { kDefaultIID = IID_IDOMELEMENT } |
| enum | ContentType { kTextContent, kBreakContent, kNonContent } |
| typedef object_type | data_type |
| typedef ScriptID | DOMElementID |
| typedef WideString | DOMElementName |
| typedef ScriptID | DOMAttributeID |
| typedef WideString | DOMAttributeName |
| typedef KeyValuePair < DOMAttributeID, DOMAttributeValue > | AttributeIDValuePair |
| typedef K2Vector< InterfacePtr < IDOMElement > > | ElementList |
| typedef K2Vector< DOMElementID > | ElementIDList |
| typedef adobe::vector < AttributeIDValuePair > | AttributeList |
| typedef K2Vector< DOMAttributeID > | AttributeIDList |
Public Member Functions | |
| virtual void | Reset ()=0 |
| virtual DOMElementID | GetElementID () const =0 |
| virtual DOMElementName | GetElementName () const =0 |
| virtual bool16 | IsSameElement (IDOMElement *other) const =0 |
| virtual IDOMElement * | QueryParent () const =0 |
| virtual bool16 | HasAttribute (const DOMAttributeID id)=0 |
| virtual bool16 | IsAttributeReadOnly (const DOMAttributeID id)=0 |
| virtual int32 | GetAttributeIDs (AttributeIDList &ids)=0 |
| virtual bool16 | GetAttribute (const DOMAttributeID id, DOMAttributeValue &value)=0 |
| virtual int32 | GetMultipleAttributes (const AttributeIDList &idList, AttributeList &attributes)=0 |
| virtual int32 | GetAttributes (AttributeList &attributes)=0 |
| virtual bool16 | SetAttribute (const DOMAttributeID id, const DOMAttributeValue &value)=0 |
| virtual bool16 | SetAttributes (const AttributeList &attributes)=0 |
| virtual int32 | GetChildElements (ElementList &children)=0 |
| virtual int32 | GetSpecificChildElements (DOMElementID childType, ElementList &children, bool includeSubtypes=kFalse)=0 |
| virtual IDOMElement * | CreateChildElement (DOMElementID type, const AttributeList &attributes)=0 |
| virtual bool16 | DeleteChildElement (IDOMElement *child)=0 |
| virtual bool16 | DeleteChildElements (const ElementList &children)=0 |
| virtual void | SetDontDiscoverResource (bool16 flag)=0 |
| virtual bool16 | GetDontDiscoverResource () const =0 |
| virtual bool16 | AddChildElement (IDOMElement *child)=0 |
| virtual bool16 | RemoveChildElement (IDOMElement *child)=0 |
| virtual bool16 | AddAttribute (const DOMAttributeID id, const DOMAttributeValue &value)=0 |
| virtual bool16 | RemoveAttribute (const DOMAttributeID id)=0 |
| virtual bool16 | InitializeAttributes (const IDOMElement::AttributeList &attributes, bool16 checkForSpecialObjects=kTrue)=0 |
| virtual bool16 | HasContentChildren ()=0 |
| virtual void | AddContent (ContentType type, WideString &content)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
| pure virtual |
Add an attribute to its cached attribute list.
| id | IN The attribute ID. |
| value | IN A reference to DOMAttributeValue that will hold the attribute value. |
| pure virtual |
Add an element to its cached child list.
| child | IN A pointer to the child element that should be added. |
| pure virtual |
Used in IDML (INX-Alt) to add text content and break children to a text object for output
| type,IN | Type of content child to add |
| content,IN | Text content or string indicating type of break |
| pure virtual |
Creates a new child element.
| type | IN The type of child to create ("Color", "XMLElement", etc.). |
| attributes | IN A const reference to a list that contains the attribute IDs and values. |
| pure virtual |
Delete a child element.
| child | IN A pointer to the child element. |
| pure virtual |
Delete one or more child elements.
| children | IN A const reference to the list of children to delete. |
| pure virtual |
Returns the current value of the specified attribute.
| id | IN The attribute ID. |
| value | OUT A reference to an object that will hold the value. |
| pure virtual |
Returns a list of the IDs of all of the node's attributes.
| ids | IN A reference to the list to be filled with the attribute IDs. |
| pure virtual |
Returns the IDs and current values of all of the node's attributes.
| attributes | OUT A reference to a list that will contain the attributes. |
| pure virtual |
Returns a list of all of the node's children.
| children | OUT A reference to the list that will contain the children. Note that current contents of the caller's list are REPLACED. |
| pure virtual |
Retrieve do not discover resource flag.
| pure virtual |
Returns the ID of the node.
| pure virtual |
Returns the name of the node.
| pure virtual |
Returns the IDs and current values of node's attributes specified in ID list.
| idList | IN The list which contains the IDs of attribute we want to collect. |
| attributes | OUT A reference to a list that will contain the attributes. |
| pure virtual |
Returns a list of all of the node's children of childType.
| children | IN The type of child element to get. |
| children | OUT A reference to the list that will contain the children. |
| children | IN flag to indicate whether or not also collect subtypes. Note that current contents of the caller's list are REPLACED. |
| pure virtual |
Tests to see whether the node has an attribute of the specified ID.
| id | IN The attribute ID. |
| pure virtual |
Ask the element if it has content children
| pure virtual |
A special form of SetAttributes used during object creation. Should only be used during object creation. Other clients should use SetAttributes instead.
| attributes | IN A const reference to a list that contains the attribute IDs and values. |
| checkForSpecialObjects | IN kTrue to handle properties in an object-type-specific way. kFalse to just set them with no extra checking. |
| pure virtual |
Tests to see whether the attribute is read-only.
| id | IN The attribute ID. |
| pure virtual |
Determines if two IDOMElement pointers reference the same Element.
| pure virtual |
Returns a pointer to the node's parent. The parent's reference count is incremented.
| pure virtual |
Remove an attribute from its cached attribute list.
| id | IN The attribute ID. |
| pure virtual |
Remove a child element from its cached child list. Note: The child is NOT destroyed.
| child | IN A pointer to the child element that should be removed. |
| pure virtual |
Releases all cached resources held by the node and all nodes beneath it.
| pure virtual |
Sets the value of the specified attribute.
| id | IN The attribute ID. |
| value | IN A const reference to an object that holds the new value. |
| pure virtual |
Sets the values of one or more of the node's attributes.
| attributes | IN A const reference to a list that contains the attribute IDs and values. |
| pure virtual |
Set this flag put element in special state. When flag is set to kTrue, element won't retrieve child and attribute information from underline system. Element will only return children and attributes in its cache. Flag is initialized to kFalse. Calling Reset also set this flag to kFalse.
| flag | IN Do not discover resource flag |