![]() | InDesign SDK 20.5 |
#include <DOMObjectReference.h>
Public Types | |
| typedef object_type | data_type |
Public Member Functions | |
| DOMObjectReference () | |
| DOMObjectReference (const WideString &key, uint32 position) | |
| DOMObjectReference (const WideString &key, IDOMElement *element) | |
| DOMObjectReference (const DOMObjectReference &other) | |
| ~DOMObjectReference () | |
| const WideString & | GetKey () const |
| uint32 | GetPosition () const |
| IDOMElement * | QueryElement () const |
| bool16 | IsResolved () const |
| void | SetElement (IDOMElement *element) |
| bool16 | operator== (const DOMObjectReference &other) const |
| DOMObjectReference & | operator= (const DOMObjectReference &other) |
This is a helper class for DOMAttributeValue. It encapsulates information about an inter-object reference in INX. A reference consists of:
| DOMObjectReference::DOMObjectReference | ( | ) |
Constructs an empty reference
| DOMObjectReference::DOMObjectReference | ( | const WideString & | key, |
| uint32 | position | ||
| ) |
Constructs an unresolved reference.
| key | IN the key that identifies the object being referenced. |
| position | IN the reference's position in its list. |
| DOMObjectReference::DOMObjectReference | ( | const WideString & | key, |
| IDOMElement * | element | ||
| ) |
Constructs a resolved reference.
| key | IN the key that identifies the object being referenced. |
| element | IN the referenced element. |
| DOMObjectReference::DOMObjectReference | ( | const DOMObjectReference & | other | ) |
Constructs a reference that is a copy of another
| other | IN the reference to copy. |
| DOMObjectReference::~DOMObjectReference | ( | ) |
Destructor
| const WideString& DOMObjectReference::GetKey | ( | ) | const |
Get the reference's key
| uint32 DOMObjectReference::GetPosition | ( | ) | const |
Get the reference's position
| bool16 DOMObjectReference::IsResolved | ( | ) | const |
Determine whether the reference is resolved.
| DOMObjectReference& DOMObjectReference::operator= | ( | const DOMObjectReference & | other | ) |
Assign the value of another reference to this one.
| other | IN Another reference. |
| bool16 DOMObjectReference::operator== | ( | const DOMObjectReference & | other | ) | const |
Tests the reference for equality with another.
| other | IN Another reference. |
| IDOMElement* DOMObjectReference::QueryElement | ( | ) | const |
Get the reference's element
| void DOMObjectReference::SetElement | ( | IDOMElement * | element | ) |
Sets the reference's element.
| element | IN The element. |