A structure element in the structure tree. More...
#include <structure.h>
Public Member Functions | |
virtual IStructureElementPtr | clone () const =0 |
Obtain a clone of the element. | |
virtual U8String | getStructureType () const =0 |
Get the structure type. | |
virtual void | setStructureType (const U8String &structureType)=0 |
Set the structure type. Must be non-zero length. | |
virtual void | setTitle (const U8String &title)=0 |
Set the "Title" of the structure element, or an empty string to remove. | |
virtual U8String | getLanguage () const =0 |
Get the language specifier for this element, or an empty string if none is specified. | |
virtual void | setLanguage (const U8String &language)=0 |
Set the language specifier for this element, or an empty string to remove. | |
virtual U8String | getAlternate () const =0 |
Get the alternate description of the structure element, in human-readable form. Returns an empty string if none is provided. | |
virtual void | setAlternate (const U8String &alternateDescription)=0 |
Set the alternate description of the structure element, or an empty string to remove. | |
virtual U8String | getActualText () const =0 |
Get the actual text of the structure element. Returns an empty string if none is provided. | |
virtual void | setActualText (const U8String &actualText)=0 |
Set the alternate description of the structure element, or an empty string to remove. | |
virtual void | setAttributes (const IPDFObjectPtr &attributes)=0 |
Set the PDF object representing the attributes of this element. Please see the PDF specification for the format of these objects. Any far references should be retrievable using the object store (see getObjectStore() above) | |
virtual IPDFObjectPtr | getAttributes () const =0 |
Obtain the PDF object representing the attributes of this element. Please see the PDF specification for the format of these objects. Any far references should be retrievable from the IDocument associated with the structure (see IDocument::getObjectStore() for details) | |
virtual void | appendElement (const IStructurePtr &structure, const IStructureElementPtr &element)=0 |
Add an element to the end of the children. An exception will be thrown if the element already exists in the structure tree. The structure containing the target element must be provided. | |
virtual void | insertElement (const IStructurePtr &structure, const IStructureElementPtr &element, uint32 index)=0 |
Insert an element at the given index, where 0 is the head. An exception will be thrown if an element is added that already exists in the structure tree. | |
virtual void | appendMarkedContentReferenceChild (const IStructureMarkedContentReferenceChildPtr &child)=0 |
Add a marked content reference to the end of the children. | |
virtual void | insertMarkedContentReferenceChild (const IStructureMarkedContentReferenceChildPtr &child, uint32 index)=0 |
Insert a marked content reference into the children at the given index. | |
virtual void | appendObjectReferenceChild (const IPagePtr &page, const IDOMFormPtr &targetForm)=0 |
Add an object reference targeting the given form to the end of the children. In some situations the form may have its properties edited. Pass in the page (required) that the form will appear on. | |
virtual void | insertObjectReferenceChild (const IPagePtr &page, const IDOMFormPtr &targetForm, uint32 index)=0 |
Insert an object reference targeting the given form into the children at the given index, where 0 is the head. In some situations the form may have its properties edited. Pass in the page (required) that the form will appear on. | |
virtual void | removeChild (const IStructurePtr &structure, uint32 index)=0 |
Remove the child at the given index from the list of children. Note: This will also cause all child elements of that element to be removed. | |
virtual void | createMarkedContentReferencePair (const IStructurePtr &structure, const IPagePtr &page, const IDOMNodePtr &node, IStructureMarkedContentReferenceChildPtr &resultReference, IMarkedContentStructureDetailsPtr &resultDetails)=0 |
Create a IStructureMarkedContentReferenceChild and an IMarkedContentStructureDetails pair for a node present on a given page. Cannot be used with form nodes. Neither the node nor the target element are edited, but in some situations the parents of the node may have their properties edited. | |
virtual const CStructureElementChildVect & | getChildren () const =0 |
Get the child structure information. | |
virtual IStructureElementReferencePtr | getStructureElementReference () const =0 |
Obtain a reference for the structure element. | |
virtual IStructureElementPtr | findStructureElementWithReference (const IStructureElementReferencePtr &reference) const =0 |
Find the structure element matching the given reference, in the children. Returns NULL if it does not exist. | |
virtual IPDFObjectStorePtr | getObjectStore ()=0 |
Obtain access to the store of objects associated with the structure element. Objects which are controlled by formal Mako APIs may not be reachable, and may be overridden at output. | |
![]() | |
virtual void | addRef () const =0 |
Increases the reference count of the actual object pointed to. This would take place during an assignment or copying. | |
virtual bool | decRef () const =0 |
Decreases the reference count of the actual object pointed to. When the reference count falls to Zero, it deletes the actual object pointed to. | |
virtual int32 | getRefCount () const =0 |
Retrieve the current reference count of the actual object pointed to. | |
Static Public Member Functions | |
static JAWSMAKO_API IStructureElementPtr | create (const IJawsMakoPtr &jawsMako, const U8String &structureType) |
Create a structure element. | |
Additional Inherited Members | |
![]() | |
virtual | ~IRCObject () |
Virtual destructor. | |
A structure element in the structure tree.
|
pure virtual |
Add an element to the end of the children. An exception will be thrown if the element already exists in the structure tree. The structure containing the target element must be provided.
structure | The structure to which the element belongs. |
element | The structure element to add. |
|
pure virtual |
Add a marked content reference to the end of the children.
child | The marked content reference child to add. |
|
pure virtual |
Add an object reference targeting the given form to the end of the children. In some situations the form may have its properties edited. Pass in the page (required) that the form will appear on.
page | The page on which the form will appear. |
targetForm | The form to target with the object reference. |
|
pure virtual |
Obtain a clone of the element.
|
static |
Create a structure element.
jawsMako | The IJawsMako object. |
structureType | The type of the structure element, such as "Document", "Part", etc. |
|
pure virtual |
Create a IStructureMarkedContentReferenceChild and an IMarkedContentStructureDetails pair for a node present on a given page. Cannot be used with form nodes. Neither the node nor the target element are edited, but in some situations the parents of the node may have their properties edited.
See also IStructure::tagNode() for a simplified method for applying structure to an individual node.
[in] | structure | The structure to which the element belongs. |
[in] | page | The page on which the node resides. |
[in] | node | The node to create the marked content reference for. |
[out] | resultReference | The resulting IStructureMarkedContentReferenceChildPtr to be filled in. |
[out] | resultDetails | The resulting IMarkedContentStructureDetailsPtr to be filled in. |
|
pure virtual |
Find the structure element matching the given reference, in the children. Returns NULL if it does not exist.
reference | The structure element reference to find. |
|
pure virtual |
Get the actual text of the structure element. Returns an empty string if none is provided.
|
pure virtual |
Get the alternate description of the structure element, in human-readable form. Returns an empty string if none is provided.
|
pure virtual |
Obtain the PDF object representing the attributes of this element. Please see the PDF specification for the format of these objects. Any far references should be retrievable from the IDocument associated with the structure (see IDocument::getObjectStore() for details)
|
pure virtual |
Get the child structure information.
|
pure virtual |
Get the language specifier for this element, or an empty string if none is specified.
|
pure virtual |
Obtain access to the store of objects associated with the structure element. Objects which are controlled by formal Mako APIs may not be reachable, and may be overridden at output.
|
pure virtual |
Obtain a reference for the structure element.
|
pure virtual |
Get the structure type.
|
pure virtual |
Insert an element at the given index, where 0 is the head. An exception will be thrown if an element is added that already exists in the structure tree.
structure | The structure to which the element belongs. |
element | The structure element to insert. |
index | The index at which to insert the element, where 0 is the head. |
|
pure virtual |
Insert a marked content reference into the children at the given index.
child | The marked content reference child to insert. |
index | The index at which to insert the child, where 0 is the head. |
|
pure virtual |
Insert an object reference targeting the given form into the children at the given index, where 0 is the head. In some situations the form may have its properties edited. Pass in the page (required) that the form will appear on.
page | The page on which the form will appear. |
targetForm | The form to target with the object reference. |
index | The index at which to insert the object reference, where 0 is the head. |
|
pure virtual |
Remove the child at the given index from the list of children. Note: This will also cause all child elements of that element to be removed.
structure | The structure to which the element belongs. |
index | The index of the child to remove, where 0 is the head. |
|
pure virtual |
Set the alternate description of the structure element, or an empty string to remove.
actualText | The actual text of the structure element. |
|
pure virtual |
Set the alternate description of the structure element, or an empty string to remove.
alternateDescription | The alternate description of the structure element. |
|
pure virtual |
Set the PDF object representing the attributes of this element. Please see the PDF specification for the format of these objects. Any far references should be retrievable using the object store (see getObjectStore() above)
attributes | Either a Dictionary, Array or NULL to clear the attributes. |
|
pure virtual |
Set the language specifier for this element, or an empty string to remove.
language | A "Natural Language Specification" string representing the language and possibly a locale, such as "en-US". |
|
pure virtual |
Set the structure type. Must be non-zero length.
structureType | The structure type to set, such as "Document", "Part", etc. |
|
pure virtual |
Set the "Title" of the structure element, or an empty string to remove.
title | The title of the structure element. |