InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
XMLAttributeReference Class Reference

#include <XMLAttributeReference.h>

Public Types

typedef object_type data_type
 

Public Member Functions

 XMLAttributeReference (const XMLReference &ref, const PMString &attr)
 
 XMLAttributeReference (const XMLReference &ref)
 
 XMLAttributeReference (const XMLAttributeReference &node)
 
bool16 operator< (const XMLAttributeReference &other) const
 
const XMLReferenceGetXMLReference () const
 
const PMStringGetAttributeString () const
 
bool16 operator== (const XMLAttributeReference &other) const
 
bool16 operator!= (const XMLAttributeReference &other) const
 

Detailed Description

Wrapper class; for instance, used in IXMLNodeSelectionSuite methods.

Member Typedef Documentation

Specialised copy semantics for K2Vector, not plain old data type; we should define copy constructor and assignment operator for this class.

Constructor & Destructor Documentation

XMLAttributeReference::XMLAttributeReference (const XMLReferenceref,
const PMStringattr 
)
inline

Constructor

Parameters
refspecifies object this attribute is associated with
attrnames the attribute of interest
XMLAttributeReference::XMLAttributeReference (const XMLReferenceref)
inline

Constructor

Parameters
refspecifies object this attribute is associated with
XMLAttributeReference::XMLAttributeReference (const XMLAttributeReferencenode)
inline

Copy constructor

Parameters
nodespecifies node in logical structure whose XMLReference is to be encapsulated

Member Function Documentation

const PMString& XMLAttributeReference::GetAttributeString () const
inline

Accessor for attribute name

Returns
attribute name
const XMLReference& XMLAttributeReference::GetXMLReference () const
inline

Accessor for encapsulated XMLReference

Returns
encapsulated reference
bool16 XMLAttributeReference::operator!= (const XMLAttributeReferenceother) const
inline

Inequality operator

Parameters
othercomparand
Returns
kTrue if this and comparand are not equal by member-wise comparisons, kFalse otherwise
bool16 XMLAttributeReference::operator< (const XMLAttributeReferenceother) const
inline

Needed for use in sorted lists.

Parameters
other- Indicates the object to compare myself to.
bool16 XMLAttributeReference::operator== (const XMLAttributeReferenceother) const
inline

Equality operator

Parameters
othercomparand
Returns
kTrue if this and comparand are equal by member-wise comparisons, kFalse otherwise