LibreOffice Module unoxml (master) 1
entityreference.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <libxml/tree.h>
23
24#include <com/sun/star/uno/Reference.h>
25#include <com/sun/star/xml/dom/XEntityReference.hpp>
26
28#include <node.hxx>
29
30namespace DOM
31{
32 typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XEntityReference >
34
37 {
38 private:
39 friend class CDocument;
40
42 CDocument const& rDocument, ::osl::Mutex const& rMutex,
43 xmlNodePtr const pNode);
44
45 public:
46 virtual bool IsChildTypeAllowed(css::xml::dom::NodeType const nodeType,
47 css::xml::dom::NodeType const*) override;
48
49 // ---- resolve uno inheritance problems...
50 // overrides for XNode base
51 virtual OUString SAL_CALL getNodeName() override;
52 virtual OUString SAL_CALL getNodeValue() override;
53 // --- delegation for XNode base.
54 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
55 {
56 return CNode::appendChild(newChild);
57 }
58 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
59 {
60 return CNode::cloneNode(deep);
61 }
62 virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
63 {
64 return CNode::getAttributes();
65 }
66 virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
67 {
68 return CNode::getChildNodes();
69 }
70 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
71 {
72 return CNode::getFirstChild();
73 }
74 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
75 {
76 return CNode::getLastChild();
77 }
78 virtual OUString SAL_CALL getLocalName() override
79 {
80 return CNode::getLocalName();
81 }
82 virtual OUString SAL_CALL getNamespaceURI() override
83 {
84 return CNode::getNamespaceURI();
85 }
86 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
87 {
88 return CNode::getNextSibling();
89 }
90 virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
91 {
92 return CNode::getNodeType();
93 }
94 virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
95 {
96 return CNode::getOwnerDocument();
97 }
98 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
99 {
100 return CNode::getParentNode();
101 }
102 virtual OUString SAL_CALL getPrefix() override
103 {
104 return CNode::getPrefix();
105 }
106 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
107 {
108 return CNode::getPreviousSibling();
109 }
110 virtual sal_Bool SAL_CALL hasAttributes() override
111 {
112 return CNode::hasAttributes();
113 }
114 virtual sal_Bool SAL_CALL hasChildNodes() override
115 {
116 return CNode::hasChildNodes();
117 }
118 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL insertBefore(
119 const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
120 {
121 return CNode::insertBefore(newChild, refChild);
122 }
123 virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
124 {
125 return CNode::isSupported(feature, ver);
126 }
127 virtual void SAL_CALL normalize() override
128 {
129 CNode::normalize();
130 }
131 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
132 {
133 return CNode::removeChild(oldChild);
134 }
135 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL replaceChild(
136 const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
137 {
138 return CNode::replaceChild(newChild, oldChild);
139 }
140 virtual void SAL_CALL setNodeValue(const OUString& nodeValue) override
141 {
142 return CNode::setNodeValue(nodeValue);
143 }
144 virtual void SAL_CALL setPrefix(const OUString& prefix) override
145 {
146 return CNode::setPrefix(prefix);
147 }
148
149 };
150}
151
152/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode > &oldChild) override
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
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
virtual sal_Bool SAL_CALL hasChildNodes() override
virtual OUString SAL_CALL getPrefix() override
virtual sal_Bool SAL_CALL hasAttributes() override
virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
virtual OUString SAL_CALL getNodeName() override
virtual void SAL_CALL setNodeValue(const OUString &nodeValue) override
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
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
virtual bool IsChildTypeAllowed(css::xml::dom::NodeType const nodeType, css::xml::dom::NodeType const *) override
virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
virtual void SAL_CALL normalize() override
virtual OUString SAL_CALL getNodeValue() override
virtual OUString SAL_CALL getLocalName() override
virtual void SAL_CALL setPrefix(const OUString &prefix) override
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode > &newChild) override
virtual OUString SAL_CALL getNamespaceURI() override
CEntityReference(CDocument const &rDocument, ::osl::Mutex const &rMutex, xmlNodePtr const pNode)
virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
virtual sal_Bool SAL_CALL isSupported(const OUString &feature, const OUString &ver) override
virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
Definition: attr.cxx:38
::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XEntityReference > CEntityReference_Base
unsigned char sal_Bool