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