Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / unoxml / source / dom / cdatasection.hxx
blob569d7c7a8359bb9ebef01d63cc678b473b84d8e4
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_UNOXML_SOURCE_DOM_CDATASECTION_HXX
21 #define INCLUDED_UNOXML_SOURCE_DOM_CDATASECTION_HXX
23 #include <com/sun/star/uno/Reference.h>
24 #include <com/sun/star/xml/dom/XCDATASection.hpp>
26 #include <cppuhelper/implbase.hxx>
27 #include "text.hxx"
29 namespace DOM
31 typedef ::cppu::ImplInheritanceHelper< CText, css::xml::dom::XCDATASection >
32 CCDATASection_Base;
34 class CCDATASection
35 : public CCDATASection_Base
37 friend class CDocument;
39 CCDATASection(CDocument const& rDocument, ::osl::Mutex const& rMutex,
40 xmlNodePtr const pNode);
42 public:
44 virtual void saxify(const css::uno::Reference< css::xml::sax::XDocumentHandler >& i_xHandler) override;
46 virtual css::uno::Reference< css::xml::dom::XText > SAL_CALL splitText(sal_Int32 offset) override
48 return CText::splitText(offset);
51 // --- delegations for XCharacterData
52 virtual void SAL_CALL appendData(const OUString& arg) override
54 CCharacterData::appendData(arg);
56 virtual void SAL_CALL deleteData(sal_Int32 offset, sal_Int32 count) override
58 CCharacterData::deleteData(offset, count);
60 virtual OUString SAL_CALL getData() override
62 return CCharacterData::getData();
64 virtual sal_Int32 SAL_CALL getLength() override
66 return CCharacterData::getLength();
68 virtual void SAL_CALL insertData(sal_Int32 offset, const OUString& arg) override
70 CCharacterData::insertData(offset, arg);
72 virtual void SAL_CALL replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg) override
74 CCharacterData::replaceData(offset, count, arg);
76 virtual void SAL_CALL setData(const OUString& data) override
78 CCharacterData::setData(data);
80 virtual OUString SAL_CALL subStringData(sal_Int32 offset, sal_Int32 count) override
82 return CCharacterData::subStringData(offset, count);
86 // --- overrides for XNode base
87 virtual OUString SAL_CALL getNodeName() override;
88 virtual OUString SAL_CALL getNodeValue() override;
90 // --- delegation for XNode base.
91 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
93 return CNode::appendChild(newChild);
95 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
97 return CNode::cloneNode(deep);
99 virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
101 return CNode::getAttributes();
103 virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
105 return CNode::getChildNodes();
107 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
109 return CNode::getFirstChild();
111 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
113 return CNode::getLastChild();
115 virtual OUString SAL_CALL getLocalName() override
117 return CNode::getLocalName();
119 virtual OUString SAL_CALL getNamespaceURI() override
121 return CNode::getNamespaceURI();
123 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
125 return CNode::getNextSibling();
127 virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
129 return CNode::getNodeType();
131 virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
133 return CNode::getOwnerDocument();
135 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
137 return CNode::getParentNode();
139 virtual OUString SAL_CALL getPrefix() override
141 return CNode::getPrefix();
143 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
145 return CNode::getPreviousSibling();
147 virtual sal_Bool SAL_CALL hasAttributes() override
149 return CNode::hasAttributes();
151 virtual sal_Bool SAL_CALL hasChildNodes() override
153 return CNode::hasChildNodes();
155 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL insertBefore(
156 const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
158 return CNode::insertBefore(newChild, refChild);
160 virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
162 return CNode::isSupported(feature, ver);
164 virtual void SAL_CALL normalize() override
166 CNode::normalize();
168 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
170 return CNode::removeChild(oldChild);
172 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL replaceChild(
173 const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
175 return CNode::replaceChild(newChild, oldChild);
177 virtual void SAL_CALL setNodeValue(const OUString& nodeValue) override
179 return CText::setNodeValue(nodeValue);
181 virtual void SAL_CALL setPrefix(const OUString& prefix) override
183 return CNode::setPrefix(prefix);
190 #endif
192 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */