LibreOffice Module unoxml (master) 1
processinginstruction.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/XProcessingInstruction.hpp>
26
28#include <node.hxx>
29
30namespace DOM
31{
32 typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XProcessingInstruction >
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
47 virtual void saxify(const css::uno::Reference< css::xml::sax::XDocumentHandler >& i_xHandler) override;
48
52 virtual OUString SAL_CALL getData() override;
53
57 virtual OUString SAL_CALL getTarget() override;
58
62 virtual void SAL_CALL setData(const OUString& data) override;
63
64 // ---- resolve uno inheritance problems...
65 // overrides for XNode base
66 virtual OUString SAL_CALL getNodeName() override;
67 virtual OUString SAL_CALL getNodeValue() override;
68 virtual void SAL_CALL setNodeValue(OUString const& rNodeValue) override;
69
70 // --- delegation for XNode base.
71 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
72 {
73 return CNode::appendChild(newChild);
74 }
75 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
76 {
77 return CNode::cloneNode(deep);
78 }
79 virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
80 {
81 return CNode::getAttributes();
82 }
83 virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
84 {
85 return CNode::getChildNodes();
86 }
87 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
88 {
89 return CNode::getFirstChild();
90 }
91 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
92 {
93 return CNode::getLastChild();
94 }
95 virtual OUString SAL_CALL getLocalName() override
96 {
97 return CNode::getLocalName();
98 }
99 virtual OUString SAL_CALL getNamespaceURI() override
100 {
101 return CNode::getNamespaceURI();
102 }
103 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
104 {
105 return CNode::getNextSibling();
106 }
107 virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
108 {
109 return CNode::getNodeType();
110 }
111 virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
112 {
113 return CNode::getOwnerDocument();
114 }
115 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
116 {
117 return CNode::getParentNode();
118 }
119 virtual OUString SAL_CALL getPrefix() override
120 {
121 return CNode::getPrefix();
122 }
123 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
124 {
125 return CNode::getPreviousSibling();
126 }
127 virtual sal_Bool SAL_CALL hasAttributes() override
128 {
129 return CNode::hasAttributes();
130 }
131 virtual sal_Bool SAL_CALL hasChildNodes() override
132 {
133 return CNode::hasChildNodes();
134 }
135 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL insertBefore(
136 const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
137 {
138 return CNode::insertBefore(newChild, refChild);
139 }
140 virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
141 {
142 return CNode::isSupported(feature, ver);
143 }
144 virtual void SAL_CALL normalize() override
145 {
146 CNode::normalize();
147 }
148 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
149 {
150 return CNode::removeChild(oldChild);
151 }
152 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL replaceChild(
153 const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
154 {
155 return CNode::replaceChild(newChild, oldChild);
156 }
157 virtual void SAL_CALL setPrefix(const OUString& prefix) override
158 {
159 return CNode::setPrefix(prefix);
160 }
161
162 };
163}
164
165/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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
virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
virtual OUString SAL_CALL getNodeName() 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 sal_Bool SAL_CALL isSupported(const OUString &feature, const OUString &ver) override
virtual void SAL_CALL setData(const OUString &data) override
The content of this processing instruction.
virtual OUString SAL_CALL getData() override
The content of this processing instruction.
virtual void saxify(const css::uno::Reference< css::xml::sax::XDocumentHandler > &i_xHandler) override
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
virtual void SAL_CALL setPrefix(const OUString &prefix) override
virtual OUString SAL_CALL getPrefix() override
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode > &oldChild) override
virtual void SAL_CALL normalize() override
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
virtual sal_Bool SAL_CALL hasChildNodes() override
virtual OUString SAL_CALL getTarget() override
The target of this processing instruction.
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
virtual void SAL_CALL setNodeValue(OUString const &rNodeValue) 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 OUString SAL_CALL getNodeValue() override
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
virtual OUString SAL_CALL getLocalName() override
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() 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 cloneNode(sal_Bool deep) override
virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
CProcessingInstruction(CDocument const &rDocument, ::osl::Mutex const &rMutex, xmlNodePtr const pNode)
Definition: attr.cxx:38
::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XProcessingInstruction > CProcessingInstruction_Base
unsigned char sal_Bool