LibreOffice Module unoxml (master) 1
notation.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/XNotation.hpp>
26
28#include <node.hxx>
29
30namespace DOM
31{
32 typedef cppu::ImplInheritanceHelper< CNode, css::xml::dom::XNotation > CNotation_Base;
33
35 : public CNotation_Base
36 {
37 private:
38 friend class CDocument;
39
40 CNotation(CDocument const& rDocument, ::osl::Mutex const& rMutex,
41 xmlNotationPtr const pNotation);
42
46 virtual OUString SAL_CALL getPublicId() override;
47
51 virtual OUString SAL_CALL getSystemId() override;
52
53 // ---- resolve uno inheritance problems...
54 // overrides for XNode base
55 virtual OUString SAL_CALL getNodeName() override;
56 virtual OUString SAL_CALL getNodeValue() override;
57 // --- delegation for XNode base.
58 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
59 {
60 return CNode::appendChild(newChild);
61 }
62 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
63 {
64 return CNode::cloneNode(deep);
65 }
66 virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
67 {
68 return CNode::getAttributes();
69 }
70 virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
71 {
72 return CNode::getChildNodes();
73 }
74 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
75 {
76 return CNode::getFirstChild();
77 }
78 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
79 {
80 return CNode::getLastChild();
81 }
82 virtual OUString SAL_CALL getLocalName() override
83 {
84 return CNode::getLocalName();
85 }
86 virtual OUString SAL_CALL getNamespaceURI() override
87 {
88 return CNode::getNamespaceURI();
89 }
90 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
91 {
92 return CNode::getNextSibling();
93 }
94 virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
95 {
96 return CNode::getNodeType();
97 }
98 virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
99 {
100 return CNode::getOwnerDocument();
101 }
102 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
103 {
104 return CNode::getParentNode();
105 }
106 virtual OUString SAL_CALL getPrefix() override
107 {
108 return CNode::getPrefix();
109 }
110 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
111 {
112 return CNode::getPreviousSibling();
113 }
114 virtual sal_Bool SAL_CALL hasAttributes() override
115 {
116 return CNode::hasAttributes();
117 }
118 virtual sal_Bool SAL_CALL hasChildNodes() override
119 {
120 return CNode::hasChildNodes();
121 }
122 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL insertBefore(
123 const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
124 {
125 return CNode::insertBefore(newChild, refChild);
126 }
127 virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
128 {
129 return CNode::isSupported(feature, ver);
130 }
131 virtual void SAL_CALL normalize() override
132 {
133 CNode::normalize();
134 }
135 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
136 {
137 return CNode::removeChild(oldChild);
138 }
139 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL replaceChild(
140 const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
141 {
142 return CNode::replaceChild(newChild, oldChild);
143 }
144 virtual void SAL_CALL setNodeValue(const OUString& nodeValue) override
145 {
146 return CNode::setNodeValue(nodeValue);
147 }
148 virtual void SAL_CALL setPrefix(const OUString& prefix) override
149 {
150 return CNode::setPrefix(prefix);
151 }
152
153
154 };
155}
156
157/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL setPrefix(const OUString &prefix) override
Definition: notation.hxx:148
virtual sal_Bool SAL_CALL hasAttributes() override
Definition: notation.hxx:114
CNotation(CDocument const &rDocument, ::osl::Mutex const &rMutex, xmlNotationPtr const pNotation)
Definition: notation.cxx:31
virtual OUString SAL_CALL getPublicId() override
The public identifier of this notation.
Definition: notation.cxx:38
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode > &newChild) override
Definition: notation.hxx:58
virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
Definition: notation.hxx:98
virtual sal_Bool SAL_CALL isSupported(const OUString &feature, const OUString &ver) override
Definition: notation.hxx:127
virtual sal_Bool SAL_CALL hasChildNodes() override
Definition: notation.hxx:118
virtual OUString SAL_CALL getNamespaceURI() override
Definition: notation.hxx:86
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
Definition: notation.hxx:139
virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
Definition: notation.hxx:66
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
Definition: notation.hxx:90
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
Definition: notation.hxx:110
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
Definition: notation.hxx:74
virtual OUString SAL_CALL getSystemId() override
The system identifier of this notation.
Definition: notation.cxx:48
virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
Definition: notation.hxx:70
virtual void SAL_CALL normalize() override
Definition: notation.hxx:131
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode > &oldChild) override
Definition: notation.hxx:135
virtual OUString SAL_CALL getNodeValue() override
Definition: notation.cxx:69
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
Definition: notation.hxx:62
virtual OUString SAL_CALL getPrefix() override
Definition: notation.hxx:106
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
Definition: notation.hxx:78
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
Definition: notation.hxx:102
virtual OUString SAL_CALL getLocalName() override
Definition: notation.hxx:82
virtual void SAL_CALL setNodeValue(const OUString &nodeValue) override
Definition: notation.hxx:144
virtual OUString SAL_CALL getNodeName() override
Definition: notation.cxx:56
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
Definition: notation.hxx:122
virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
Definition: notation.hxx:94
Definition: attr.cxx:38
cppu::ImplInheritanceHelper< CNode, css::xml::dom::XNotation > CNotation_Base
Definition: notation.hxx:32
unsigned char sal_Bool