Line data Source code
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 : #ifndef INCLUDED_UNOXML_SOURCE_DOM_CDATASECTION_HXX
21 : #define INCLUDED_UNOXML_SOURCE_DOM_CDATASECTION_HXX
22 :
23 : #include <com/sun/star/uno/Reference.h>
24 : #include <com/sun/star/xml/dom/XCDATASection.hpp>
25 :
26 : #include <text.hxx>
27 :
28 :
29 : using namespace com::sun::star::uno;
30 : using namespace com::sun::star::xml::dom;
31 :
32 : namespace DOM
33 : {
34 : typedef ::cppu::ImplInheritanceHelper1< CText, XCDATASection >
35 : CCDATASection_Base;
36 :
37 0 : class CCDATASection
38 : : public CCDATASection_Base
39 : {
40 : friend class CDocument;
41 :
42 : protected:
43 : CCDATASection(CDocument const& rDocument, ::osl::Mutex const& rMutex,
44 : xmlNodePtr const pNode);
45 :
46 : public:
47 :
48 : virtual void saxify(const Reference< XDocumentHandler >& i_xHandler) SAL_OVERRIDE;
49 :
50 0 : virtual Reference< XText > SAL_CALL splitText(sal_Int32 offset)
51 : throw (RuntimeException, std::exception) SAL_OVERRIDE
52 : {
53 0 : return CText::splitText(offset);
54 : }
55 :
56 : // --- delegations for XCharacterData
57 0 : virtual void SAL_CALL appendData(const OUString& arg)
58 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
59 : {
60 0 : CCharacterData::appendData(arg);
61 0 : }
62 0 : virtual void SAL_CALL deleteData(sal_Int32 offset, sal_Int32 count)
63 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
64 : {
65 0 : CCharacterData::deleteData(offset, count);
66 0 : }
67 0 : virtual OUString SAL_CALL getData() throw (RuntimeException, std::exception) SAL_OVERRIDE
68 : {
69 0 : return CCharacterData::getData();
70 : }
71 0 : virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException, std::exception) SAL_OVERRIDE
72 : {
73 0 : return CCharacterData::getLength();
74 : }
75 0 : virtual void SAL_CALL insertData(sal_Int32 offset, const OUString& arg)
76 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
77 : {
78 0 : CCharacterData::insertData(offset, arg);
79 0 : }
80 0 : virtual void SAL_CALL replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg)
81 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
82 : {
83 0 : CCharacterData::replaceData(offset, count, arg);
84 0 : }
85 0 : virtual void SAL_CALL setData(const OUString& data)
86 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
87 : {
88 0 : CCharacterData::setData(data);
89 0 : }
90 0 : virtual OUString SAL_CALL subStringData(sal_Int32 offset, sal_Int32 count)
91 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
92 : {
93 0 : return CCharacterData::subStringData(offset, count);
94 : }
95 :
96 :
97 : // --- overrides for XNode base
98 : virtual OUString SAL_CALL getNodeName()
99 : throw (RuntimeException, std::exception) SAL_OVERRIDE;
100 : virtual OUString SAL_CALL getNodeValue()
101 : throw (RuntimeException, std::exception) SAL_OVERRIDE;
102 :
103 : // --- delegation for XNde base.
104 0 : virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild)
105 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
106 : {
107 0 : return CNode::appendChild(newChild);
108 : }
109 0 : virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep)
110 : throw (RuntimeException, std::exception) SAL_OVERRIDE
111 : {
112 0 : return CNode::cloneNode(deep);
113 : }
114 0 : virtual Reference< XNamedNodeMap > SAL_CALL getAttributes()
115 : throw (RuntimeException, std::exception) SAL_OVERRIDE
116 : {
117 0 : return CNode::getAttributes();
118 : }
119 0 : virtual Reference< XNodeList > SAL_CALL getChildNodes()
120 : throw (RuntimeException, std::exception) SAL_OVERRIDE
121 : {
122 0 : return CNode::getChildNodes();
123 : }
124 0 : virtual Reference< XNode > SAL_CALL getFirstChild()
125 : throw (RuntimeException, std::exception) SAL_OVERRIDE
126 : {
127 0 : return CNode::getFirstChild();
128 : }
129 0 : virtual Reference< XNode > SAL_CALL getLastChild()
130 : throw (RuntimeException, std::exception) SAL_OVERRIDE
131 : {
132 0 : return CNode::getLastChild();
133 : }
134 0 : virtual OUString SAL_CALL getLocalName()
135 : throw (RuntimeException, std::exception) SAL_OVERRIDE
136 : {
137 0 : return CNode::getLocalName();
138 : }
139 0 : virtual OUString SAL_CALL getNamespaceURI()
140 : throw (RuntimeException, std::exception) SAL_OVERRIDE
141 : {
142 0 : return CNode::getNamespaceURI();
143 : }
144 0 : virtual Reference< XNode > SAL_CALL getNextSibling()
145 : throw (RuntimeException, std::exception) SAL_OVERRIDE
146 : {
147 0 : return CNode::getNextSibling();
148 : }
149 0 : virtual NodeType SAL_CALL getNodeType()
150 : throw (RuntimeException, std::exception) SAL_OVERRIDE
151 : {
152 0 : return CNode::getNodeType();
153 : }
154 0 : virtual Reference< XDocument > SAL_CALL getOwnerDocument()
155 : throw (RuntimeException, std::exception) SAL_OVERRIDE
156 : {
157 0 : return CNode::getOwnerDocument();
158 : }
159 0 : virtual Reference< XNode > SAL_CALL getParentNode()
160 : throw (RuntimeException, std::exception) SAL_OVERRIDE
161 : {
162 0 : return CNode::getParentNode();
163 : }
164 0 : virtual OUString SAL_CALL getPrefix()
165 : throw (RuntimeException, std::exception) SAL_OVERRIDE
166 : {
167 0 : return CNode::getPrefix();
168 : }
169 0 : virtual Reference< XNode > SAL_CALL getPreviousSibling()
170 : throw (RuntimeException, std::exception) SAL_OVERRIDE
171 : {
172 0 : return CNode::getPreviousSibling();
173 : }
174 0 : virtual sal_Bool SAL_CALL hasAttributes()
175 : throw (RuntimeException, std::exception) SAL_OVERRIDE
176 : {
177 0 : return CNode::hasAttributes();
178 : }
179 0 : virtual sal_Bool SAL_CALL hasChildNodes()
180 : throw (RuntimeException, std::exception) SAL_OVERRIDE
181 : {
182 0 : return CNode::hasChildNodes();
183 : }
184 0 : virtual Reference< XNode > SAL_CALL insertBefore(
185 : const Reference< XNode >& newChild, const Reference< XNode >& refChild)
186 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
187 : {
188 0 : return CNode::insertBefore(newChild, refChild);
189 : }
190 0 : virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
191 : throw (RuntimeException, std::exception) SAL_OVERRIDE
192 : {
193 0 : return CNode::isSupported(feature, ver);
194 : }
195 0 : virtual void SAL_CALL normalize()
196 : throw (RuntimeException, std::exception) SAL_OVERRIDE
197 : {
198 0 : CNode::normalize();
199 0 : }
200 0 : virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild)
201 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
202 : {
203 0 : return CNode::removeChild(oldChild);
204 : }
205 0 : virtual Reference< XNode > SAL_CALL replaceChild(
206 : const Reference< XNode >& newChild, const Reference< XNode >& oldChild)
207 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
208 : {
209 0 : return CNode::replaceChild(newChild, oldChild);
210 : }
211 0 : virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
212 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
213 : {
214 0 : return CText::setNodeValue(nodeValue);
215 : }
216 0 : virtual void SAL_CALL setPrefix(const OUString& prefix)
217 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
218 : {
219 0 : return CNode::setPrefix(prefix);
220 : }
221 :
222 : };
223 :
224 : }
225 :
226 : #endif
227 :
228 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|