/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
// constrains child relationship between nodes based on type virtualbool IsChildTypeAllowed(css::xml::dom::NodeType nodeType,
css::xml::dom::NodeType const* pReplacedNodeType);
// ---- DOM interfaces
/** Adds the node newChild to the end of the list of children of this node.
*/ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL
appendChild(css::uno::Reference< css::xml::dom::XNode > const& xNewChild) override;
/** Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes.
*/ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override;
/** A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.
*/ virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override;
/** A NodeList that contains all children of this node.
*/ virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override;
/** The first child of this node.
*/ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override;
/** The last child of this node.
*/ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override;
/** Returns the local part of the qualified name of this node.
*/ virtual OUString SAL_CALL getLocalName() override;
/** The namespace URI of this node, or null if it is unspecified.
*/ virtual OUString SAL_CALL getNamespaceURI() override;
/** The node immediately following this node.
*/ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override;
/** The name of this node, depending on its type; see the table above. -- virtual implemented by actual node types
*/ virtual OUString SAL_CALL getNodeName() override;
/** A code representing the type of the underlying object, as defined above.
*/ virtual css::xml::dom::NodeType SAL_CALL getNodeType() override;
/** The value of this node, depending on its type; see the table above. -- virtual implemented by actual node types
*/ virtual OUString SAL_CALL getNodeValue() override;
/** The Document object associated with this node.
*/ virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override;
/** The parent of this node.
*/ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override;
/** The namespace prefix of this node, or null if it is unspecified.
*/ virtual OUString SAL_CALL getPrefix() override;
/** The node immediately preceding this node.
*/ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override;
/** Returns whether this node (if it is an element) has any attributes.
*/ virtual sal_Bool SAL_CALL hasAttributes() override;
/** Returns whether this node has any children.
*/ virtual sal_Bool SAL_CALL hasChildNodes() override;
/** Inserts the node newChild before the existing child node refChild.
*/ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL insertBefore( const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override;
/** Tests whether the DOM implementation implements a specific feature and that feature is supported by this node.
*/ virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override;
/** 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.
*/ virtualvoid SAL_CALL normalize() override;
/** Removes the child node indicated by oldChild from the list of children, and returns it.
*/ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override;
/** Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.
*/ virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL replaceChild( const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override;
/** The value of this node, depending on its type; see the table above.
*/ virtualvoid SAL_CALL setNodeValue(const OUString& nodeValue) override;
/** The namespace prefix of this node, or null if it is unspecified.
*/ virtualvoid SAL_CALL setPrefix(const OUString& prefix) override;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.