Bump version to 6.4-15
[LibreOffice.git] / unoxml / source / dom / comment.hxx
blob66fc8cd2795f766cc45319a35c53088d953100d7
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_COMMENT_HXX
21 #define INCLUDED_UNOXML_SOURCE_DOM_COMMENT_HXX
23 #include <com/sun/star/uno/Reference.h>
24 #include <com/sun/star/xml/dom/XComment.hpp>
26 #include <cppuhelper/implbase.hxx>
27 #include "characterdata.hxx"
29 namespace DOM
31 typedef ::cppu::ImplInheritanceHelper< CCharacterData, css::xml::dom::XComment >
32 CComment_Base;
34 class CComment
35 : public CComment_Base
37 friend class CDocument;
39 CComment(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 // --- delegations for XCharacterData
47 virtual void SAL_CALL appendData(const OUString& arg) override
49 CCharacterData::appendData(arg);
51 virtual void SAL_CALL deleteData(sal_Int32 offset, sal_Int32 count) override
53 CCharacterData::deleteData(offset, count);
55 virtual OUString SAL_CALL getData() override
57 return CCharacterData::getData();
59 virtual sal_Int32 SAL_CALL getLength() override
61 return CCharacterData::getLength();
63 virtual void SAL_CALL insertData(sal_Int32 offset, const OUString& arg) override
65 CCharacterData::insertData(offset, arg);
67 virtual void SAL_CALL replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg) override
69 CCharacterData::replaceData(offset, count, arg);
71 virtual void SAL_CALL setData(const OUString& data) override
73 CCharacterData::setData(data);
75 virtual OUString SAL_CALL subStringData(sal_Int32 offset, sal_Int32 count) override
77 return CCharacterData::subStringData(offset, count);
81 // --- overrides for XNode base
82 virtual OUString SAL_CALL getNodeName() override;
83 virtual OUString SAL_CALL getNodeValue() override;
85 // --- delegation for XNode base.
86 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild(const css::uno::Reference< css::xml::dom::XNode >& newChild) override
88 return CCharacterData::appendChild(newChild);
90 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode(sal_Bool deep) override
92 return CCharacterData::cloneNode(deep);
94 virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes() override
96 return CCharacterData::getAttributes();
98 virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes() override
100 return CCharacterData::getChildNodes();
102 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild() override
104 return CCharacterData::getFirstChild();
106 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild() override
108 return CCharacterData::getLastChild();
110 virtual OUString SAL_CALL getLocalName() override
112 return CCharacterData::getLocalName();
114 virtual OUString SAL_CALL getNamespaceURI() override
116 return CCharacterData::getNamespaceURI();
118 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling() override
120 return CCharacterData::getNextSibling();
122 virtual css::xml::dom::NodeType SAL_CALL getNodeType() override
124 return CCharacterData::getNodeType();
126 virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument() override
128 return CCharacterData::getOwnerDocument();
130 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode() override
132 return CCharacterData::getParentNode();
134 virtual OUString SAL_CALL getPrefix() override
136 return CCharacterData::getPrefix();
138 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling() override
140 return CCharacterData::getPreviousSibling();
142 virtual sal_Bool SAL_CALL hasAttributes() override
144 return CCharacterData::hasAttributes();
146 virtual sal_Bool SAL_CALL hasChildNodes() override
148 return CCharacterData::hasChildNodes();
150 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL insertBefore(
151 const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& refChild) override
153 return CCharacterData::insertBefore(newChild, refChild);
155 virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) override
157 return CCharacterData::isSupported(feature, ver);
159 virtual void SAL_CALL normalize() override
161 CCharacterData::normalize();
163 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild(const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
165 return CCharacterData::removeChild(oldChild);
167 virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL replaceChild(
168 const css::uno::Reference< css::xml::dom::XNode >& newChild, const css::uno::Reference< css::xml::dom::XNode >& oldChild) override
170 return CCharacterData::replaceChild(newChild, oldChild);
172 virtual void SAL_CALL setNodeValue(const OUString& nodeValue) override
174 return CCharacterData::setNodeValue(nodeValue);
176 virtual void SAL_CALL setPrefix(const OUString& prefix) override
178 return CCharacterData::setPrefix(prefix);
184 #endif
186 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */