summaryrefslogtreecommitdiffstats
path: root/src/docbookvisitor.h
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-11-24 18:57:34 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2018-11-24 18:57:34 (GMT)
commit3820f6a841115bd66ed409221c73824ec41ae6ab (patch)
tree5bb069463344355e0d3c951415c5748fa05ed73b /src/docbookvisitor.h
parentf9f777dc14affdfc9608de01d83ba67b613c4e4e (diff)
downloadDoxygen-3820f6a841115bd66ed409221c73824ec41ae6ab.zip
Doxygen-3820f6a841115bd66ed409221c73824ec41ae6ab.tar.gz
Doxygen-3820f6a841115bd66ed409221c73824ec41ae6ab.tar.bz2
Refactored code a bit (use const references and made global functions members)
Diffstat (limited to 'src/docbookvisitor.h')
-rw-r--r--src/docbookvisitor.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/docbookvisitor.h b/src/docbookvisitor.h
index 87035f8..24b1fbb 100644
--- a/src/docbookvisitor.h
+++ b/src/docbookvisitor.h
@@ -28,6 +28,7 @@ class FTextStream;
class CodeOutputInterface;
class QCString;
+/*! @brief Concrete visitor implementation for Docbook output. */
class DocbookDocVisitor : public DocVisitor
{
public:
@@ -148,18 +149,27 @@ class DocbookDocVisitor : public DocVisitor
void pushEnabled();
void popEnabled();
void startMscFile(const QCString &fileName,const QCString &width,
- const QCString &height, bool hasCaption,QList<DocNode> childs);
+ const QCString &height, bool hasCaption,const QList<DocNode> &children);
void endMscFile(bool hasCaption);
void writeMscFile(const QCString &fileName, DocVerbatim *s);
void startDiaFile(const QCString &fileName,const QCString &width,
- const QCString &height, bool hasCaption,QList<DocNode> childs);
+ const QCString &height, bool hasCaption,const QList<DocNode> &children);
void endDiaFile(bool hasCaption);
void writeDiaFile(const QCString &fileName, DocVerbatim *s);
void startDotFile(const QCString &fileName,const QCString &width,
- const QCString &height, bool hasCaption,QList<DocNode> childs);
+ const QCString &height, bool hasCaption,const QList<DocNode> &children);
void endDotFile(bool hasCaption);
void writeDotFile(const QCString &fileName, DocVerbatim *s);
void writePlantUMLFile(const QCString &fileName, DocVerbatim *s);
+ void visitPreStart(FTextStream &t,
+ const QList<DocNode> &children,
+ bool hasCaption,
+ const QCString &name,
+ const QCString &width,
+ const QCString &height,
+ bool inlineImage = FALSE);
+ void visitPostEnd(FTextStream &t, bool hasCaption, bool inlineImage = FALSE);
+ void visitCaption(const QList<DocNode> &children);
//--------------------------------------
// state variables
//--------------------------------------
@@ -171,9 +181,4 @@ class DocbookDocVisitor : public DocVisitor
QCString m_langExt;
};
-void visitPreStart(FTextStream &t, bool hasCaption, DocbookDocVisitor *parent, QList<DocNode> children, QCString name, QCString width, QCString height, bool inlineImage=FALSE);
-void visitPostEnd(FTextStream &t, bool hasCaption, bool inlineImage = FALSE);
-
-/*! @brief Concrete visitor implementation for Docbook output. */
-
#endif