Debian Codegraph @

Source/Parser/CQtXMLContentHandlerConverter.cpp

raw
1 /*
2 * Copyright (C) 2013-2015, 2019 by the Konclude Developer Team.
3 *
4 * This file is part of the reasoning system Konclude.
5 * For details and support, see <http://konclude.com/>.
6 *
7 * Konclude is free software: you can redistribute it and/or modify
8 * it under the terms of version 3 of the GNU Lesser General Public
9 * License (LGPLv3) as published by the Free Software Foundation.
10 *
11 * Konclude is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU (Lesser) General Public License for more details.
15 *
16 * You should have received a copy of the GNU (Lesser) General Public
17 * License along with Konclude. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
21 #include "CQtXMLContentHandlerConverter.h"
22
23
24 namespace Konclude {
25
26 namespace Parser {
27
28
29
30 CQtXMLContentHandlerConverter::CQtXMLContentHandlerConverter(CXMLHandlerStackBase* handlerStack, CXMLParsingHandlingContext* parsingHandlingContext) {
31 mHandlerStack = handlerStack;
32 mParsingHandlingContext = parsingHandlingContext;
33 }
34
35
36 bool CQtXMLContentHandlerConverter::endElement(const QString& namespaceURI, const QString& localName, const QString& qName) {
37 return mHandlerStack->endElement(namespaceURI,localName,qName,mParsingHandlingContext);
38 return true;
39 }
40
41 bool CQtXMLContentHandlerConverter::startElement(const QString& namespaceURI, const QString& localName, const QString& qName, const QXmlAttributes& atts) {
42 return mHandlerStack->startElement(namespaceURI,localName,qName,atts,mParsingHandlingContext);
43 return true;
44 }
45
46 bool CQtXMLContentHandlerConverter::startDocument() {
47 return mHandlerStack->startDocument(mParsingHandlingContext);
48 }
49
50 bool CQtXMLContentHandlerConverter::endDocument() {
51 return mHandlerStack->endDocument(mParsingHandlingContext);
52 }
53
54
55
56 }; // end namespace Parser
57
58 }; // end namespace Konclude