|
LibreOffice
LibreOffice 5.3 SDK API Reference
|
import"XDocument.idl";
Public Member Functions | |
| XAttr | createAttribute ([in] string name) raises (DOMException) |
| Creates an Attr of the given name. More... | |
| XAttr | createAttributeNS ([in] string namespaceURI, [in] string qualifiedName) raises (DOMException) |
| Creates an attribute of the given qualified name and namespace URI. More... | |
| XCDATASection | createCDATASection ([in] string data) raises (DOMException) |
| Creates a CDATASection node whose value is the specified string. More... | |
| XComment | createComment ([in] string data) |
| Creates a Comment node given the specified string. More... | |
| XDocumentFragment | createDocumentFragment () |
| Creates an empty DocumentFragment object. More... | |
| XElement | createElement ([in] string tagName) raises (DOMException) |
| Creates an element of the type specified. More... | |
| XElement | createElementNS ([in] string namespaceURI, [in] string qualifiedName) raises (DOMException) |
| Creates an element of the given qualified name and namespace URI. More... | |
| XEntityReference | createEntityReference ([in] string name) raises (DOMException) |
| Throws: DOMException - NOT_SUPPORTED_ERR: Raised if the type of node being imported is not supported. More... | |
| XProcessingInstruction | createProcessingInstruction ([in] string target, [in] string data) raises (DOMException) |
| Creates a ProcessingInstruction node given the specified name and data strings. More... | |
| XText | createTextNode ([in] string data) |
| Creates a Text node given the specified string. More... | |
| XDocumentType | getDoctype () |
| The Document Type Declaration (see DocumentType) associated with this document. More... | |
| XElement | getDocumentElement () |
| This is a convenience attribute that allows direct access to the child node that is the root element of the document. More... | |
| XElement | getElementById ([in] string elementId) |
| Returns the Element whose ID is given by elementId. More... | |
| XNodeList | getElementsByTagName ([in] string tagname) |
| Returns a NodeList of all the Elements with a given tag name in the order in which they are encountered in a preorder traversal of the Document tree. More... | |
| XNodeList | getElementsByTagNameNS ([in] string namespaceURI, [in] string localName) |
| Returns a NodeList of all the Elements with a given local name and namespace URI in the order in which they are encountered in a preorder traversal of the Document tree. More... | |
| XDOMImplementation | getImplementation () |
| The DOMImplementation object that handles this document. More... | |
| XNode | importNode ([in] XNode importedNode, [in] boolean deep) raises (DOMException) |
| Imports a node from another document to this document. More... | |
Public Member Functions inherited from XNode | |
| XNode | appendChild ([in] XNode newChild) raises (DOMException) |
| Adds the node newChild to the end of the list of children of this node. More... | |
| XNode | cloneNode ([in] boolean deep) |
| Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. More... | |
| XNamedNodeMap | getAttributes () |
| A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise. More... | |
| XNodeList | getChildNodes () |
| A NodeList that contains all children of this node. More... | |
| XNode | getFirstChild () |
| The first child of this node. More... | |
| XNode | getLastChild () |
| The last child of this node. More... | |
| string | getLocalName () |
| Returns the local part of the qualified name of this node. More... | |
| string | getNamespaceURI () |
| The namespace URI of this node, or null if it is unspecified. More... | |
| XNode | getNextSibling () |
| The node immediately following this node. More... | |
| string | getNodeName () |
| The name of this node, depending on its type; see the table above. More... | |
| NodeType | getNodeType () |
| A code representing the type of the underlying object, as defined above. More... | |
| string | getNodeValue () raises (DOMException) |
| The value of this node, depending on its type; see the table above. More... | |
| XDocument | getOwnerDocument () |
| The Document object associated with this node. More... | |
| XNode | getParentNode () |
| The parent of this node. More... | |
| string | getPrefix () |
| The namespace prefix of this node, or null if it is unspecified. More... | |
| XNode | getPreviousSibling () |
| The node immediately preceding this node. More... | |
| boolean | hasAttributes () |
| Returns whether this node (if it is an element) has any attributes. More... | |
| boolean | hasChildNodes () |
| Returns whether this node has any children. More... | |
| XNode | insertBefore ([in] XNode newChild, [in] XNode refChild) raises (DOMException) |
| Inserts the node newChild before the existing child node refChild. More... | |
| boolean | isSupported ([in] string feature, [in] string ver) |
| Tests whether the DOM implementation implements a specific feature and that feature is supported by this node. More... | |
| void | normalize () |
| Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes, into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes. More... | |
| XNode | removeChild ([in] XNode oldChild) raises (DOMException) |
| Removes the child node indicated by oldChild from the list of children, and returns it. More... | |
| XNode | replaceChild ([in] XNode newChild, [in] XNode oldChild) raises (DOMException) |
| Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node. More... | |
| void | setNodeValue ([in] string nodeValue) raises (DOMException) |
| The value of this node, depending on its type; see the table above. More... | |
| void | setPrefix ([in] string prefix) raises (DOMException) |
| The namespace prefix of this node, or null if it is unspecified. More... | |
Public Member Functions inherited from XInterface | |
| any | queryInterface ([in] type aType) |
| queries for a new interface to an existing UNO object. More... | |
| void | acquire () |
| increases the reference counter by one. More... | |
| void | release () |
| decreases the reference counter by one. More... | |
| XAttr createAttribute | ( | [in] string | name | ) | |
| raises | ( | DOMException | |||
| ) | |||||
Creates an Attr of the given name.
Throws: DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character.
| XAttr createAttributeNS | ( | [in] string | namespaceURI, |
| [in] string | qualifiedName | ||
| ) | |||
| raises | ( | DOMException | |
| ) | |||
Creates an attribute of the given qualified name and namespace URI.
Throws: DOMException - INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character, per the XML 1.0 specification . NAMESPACE_ERR: Raised if the qualifiedName is malformed per the Namespaces in XML specification, if the qualifiedName has a prefix and the namespaceURI is null, if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from " http://www.w3.org/XML/1998/namespace", or if the qualifiedName, or its prefix, is "xmlns" and the namespaceURI is different from " http://www.w3.org/2000/xmlns/". NOT_SUPPORTED_ERR: Always thrown if the current document does not support the "XML" feature, since namespaces were defined by XML.
| XCDATASection createCDATASection | ( | [in] string | data | ) | |
| raises | ( | DOMException | |||
| ) | |||||
Creates a CDATASection node whose value is the specified string.
Throws: DOMException - NOT_SUPPORTED_ERR: Raised if this document is an HTML document.
| XComment createComment | ( | [in] string | data | ) |
Creates a Comment node given the specified string.
| XDocumentFragment createDocumentFragment | ( | ) |
Creates an empty DocumentFragment object.
| XElement createElement | ( | [in] string | tagName | ) | |
| raises | ( | DOMException | |||
| ) | |||||
Creates an element of the type specified.
Throws: DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character.
| XElement createElementNS | ( | [in] string | namespaceURI, |
| [in] string | qualifiedName | ||
| ) | |||
| raises | ( | DOMException | |
| ) | |||
Creates an element of the given qualified name and namespace URI.
Throws: DOMException - INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character, per the XML 1.0 specification . NAMESPACE_ERR: Raised if the qualifiedName is malformed per the Namespaces in XML specification, if the qualifiedName has a prefix and the namespaceURI is null, or if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from " http://www.w3.org/XML/1998/namespace" . NOT_SUPPORTED_ERR: Always thrown if the current document does not support the "XML" feature, since namespaces were defined by XML.
| XEntityReference createEntityReference | ( | [in] string | name | ) | |
| raises | ( | DOMException | |||
| ) | |||||
Throws: DOMException - NOT_SUPPORTED_ERR: Raised if the type of node being imported is not supported.
Creates an EntityReference object. Throws: DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character. NOT_SUPPORTED_ERR: Raised if this document is an HTML document.
| XProcessingInstruction createProcessingInstruction | ( | [in] string | target, |
| [in] string | data | ||
| ) | |||
| raises | ( | DOMException | |
| ) | |||
Creates a ProcessingInstruction node given the specified name and data strings.
Throws: DOMException - INVALID_CHARACTER_ERR: Raised if the specified target contains an illegal character. NOT_SUPPORTED_ERR: Raised if this document is an HTML document.
| XText createTextNode | ( | [in] string | data | ) |
Creates a Text node given the specified string.
| XDocumentType getDoctype | ( | ) |
The Document Type Declaration (see DocumentType) associated with this document.
| XElement getDocumentElement | ( | ) |
This is a convenience attribute that allows direct access to the child node that is the root element of the document.
| XElement getElementById | ( | [in] string | elementId | ) |
Returns the Element whose ID is given by elementId.
| XNodeList getElementsByTagName | ( | [in] string | tagname | ) |
Returns a NodeList of all the Elements with a given tag name in the order in which they are encountered in a preorder traversal of the Document tree.
| XNodeList getElementsByTagNameNS | ( | [in] string | namespaceURI, |
| [in] string | localName | ||
| ) |
Returns a NodeList of all the Elements with a given local name and namespace URI in the order in which they are encountered in a preorder traversal of the Document tree.
| XDOMImplementation getImplementation | ( | ) |
The DOMImplementation object that handles this document.
| XNode importNode | ( | [in] XNode | importedNode, |
| [in] boolean | deep | ||
| ) | |||
| raises | ( | DOMException | |
| ) | |||
Imports a node from another document to this document.
Throws: DOMException - NOT_SUPPORTED_ERR: Raised if the type of node being imported is not supported.
1.8.13