typedef CosObj PDSAttrObj;
void PDSAttrObjCreate(IN PDDoc pdDoc, IN ASAtom owner, IN ASBool indirect, OUT PDSAttrObj *attrObj);
pdDoc | The document in which the attribute object is created. This may raise various exceptions. |
owner | The owner of the new attribute object.
|
indirect | If
true, it creates the attribute object as an indirect Cos object and sets the pdDoc parameter's PDDocNeedsSave flag (see PDDocFlags). If false, it creates the attribute object as a direct object. |
attrObj | (Filled by the method) The newly created attribute object.
|
void PDSAttrObjCreateFromStream(IN ASAtom owner, IN OUT CosObj cosStreamObj, OUT PDSAttrObj *attrObj);
owner | The owner of the new attribute object.
|
cosStreamObj | The Cos stream containing the data with which to create the attribute. The dictionary of this stream is modified.
|
attrObj | (Filled by the method) A pointer to the newly created attribute object. This actually points to
cosStreamObj. May be NULL. |
is raised if
cosStreamObj is not a Cos stream. It may raise other exceptions as well. |
CosObj PDSAttrObjGetCosObj(PDSAttrObj attrObj);
attrObj | The attribute object whose Cos object is obtained.
|
Gets the value of the key (Owner) in the specified attribute object.
This may throw various exceptions.
ASAtom PDSAttrObjGetOwner(IN PDSAttrObj element);
element | The attribute object whose owner is obtained.
|