summaryrefslogtreecommitdiffstats
path: root/src/xmldocvisitor.h
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-05-02 09:20:20 (GMT)
committerGitHub <noreply@github.com>2021-05-02 09:20:20 (GMT)
commit4f4688844b3c6ff67782c2be95b2ceb195702067 (patch)
tree90cf8871d4cffc81ff99d392bc2b00191456de85 /src/xmldocvisitor.h
parent4fd8254c903b251be91ab669f4d83cb86ebaf499 (diff)
parent4784ecea4d15c34af41c1adaa188159b124a1ed0 (diff)
downloadDoxygen-4f4688844b3c6ff67782c2be95b2ceb195702067.zip
Doxygen-4f4688844b3c6ff67782c2be95b2ceb195702067.tar.gz
Doxygen-4f4688844b3c6ff67782c2be95b2ceb195702067.tar.bz2
Merge branch 'master' into feature/bug_code_lang
Diffstat (limited to 'src/xmldocvisitor.h')
-rw-r--r--src/xmldocvisitor.h33
1 files changed, 15 insertions, 18 deletions
diff --git a/src/xmldocvisitor.h b/src/xmldocvisitor.h
index 6fa1392..f4b2a71 100644
--- a/src/xmldocvisitor.h
+++ b/src/xmldocvisitor.h
@@ -1,13 +1,13 @@
/******************************************************************************
*
- *
+ *
*
*
* Copyright (C) 1997-2015 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
- * documentation under the terms of the GNU General Public License is hereby
- * granted. No representations are made about the suitability of this software
+ * documentation under the terms of the GNU General Public License is hereby
+ * granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
@@ -19,11 +19,12 @@
#ifndef _XMLDOCVISITOR_H
#define _XMLDOCVISITOR_H
+#include <iostream>
+
+#include "qcstring.h"
#include "docvisitor.h"
-#include <qstack.h>
-#include <qcstring.h>
+#include "textstream.h"
-class FTextStream;
class CodeOutputInterface;
class QCString;
@@ -31,12 +32,12 @@ class QCString;
class XmlDocVisitor : public DocVisitor
{
public:
- XmlDocVisitor(FTextStream &t,CodeOutputInterface &ci);
-
+ XmlDocVisitor(TextStream &t,CodeOutputInterface &ci,const QCString &langExt);
+
//--------------------------------------
// visitor functions for leaf nodes
//--------------------------------------
-
+
void visit(DocWord *);
void visit(DocLinkedWord *);
void visit(DocWhiteSpace *);
@@ -58,7 +59,7 @@ class XmlDocVisitor : public DocVisitor
//--------------------------------------
// visitor functions for compound nodes
//--------------------------------------
-
+
void visitPre(DocAutoList *);
void visitPost(DocAutoList *);
void visitPre(DocAutoListItem *);
@@ -142,26 +143,22 @@ class XmlDocVisitor : public DocVisitor
private:
//--------------------------------------
- // helper functions
+ // helper functions
//--------------------------------------
-
- void filter(const char *str);
+
+ void filter(const QCString &str);
void startLink(const QCString &ref,const QCString &file,
const QCString &anchor);
void endLink();
- void pushEnabled();
- void popEnabled();
-
//--------------------------------------
// state variables
//--------------------------------------
- FTextStream &m_t;
+ TextStream &m_t;
CodeOutputInterface &m_ci;
bool m_insidePre;
bool m_hide;
- QStack<bool> m_enabled;
QCString m_langExt;
};