diff options
author | Travis A. Everett <travis.a.everett@gmail.com> | 2018-08-29 05:14:51 (GMT) |
---|---|---|
committer | Travis A. Everett <travis.a.everett@gmail.com> | 2018-08-29 05:14:51 (GMT) |
commit | 172016e3d3b5cfe6f51470d43669f794b993da65 (patch) | |
tree | 3df7d2716411e9c2e3ecbd05dde2ba8f103d48c3 /src/xmlgen.h | |
parent | fe904c77b07bfeae9c5b3c2472ecac3b450ecbd2 (diff) | |
download | Doxygen-172016e3d3b5cfe6f51470d43669f794b993da65.zip Doxygen-172016e3d3b5cfe6f51470d43669f794b993da65.tar.gz Doxygen-172016e3d3b5cfe6f51470d43669f794b993da65.tar.bz2 |
declares XMLCodeGenerator in xmlgen.h
In order for sqlite3gen to re-use parts of the XML generator, XMLCodeGenerator
needs to be declared in a header file. I parroted how other generators handle
this and have it working in both the XML and sqlite3 outputs, but I don't have
any sense of whether this is otherwise "right".
Diffstat (limited to 'src/xmlgen.h')
-rw-r--r-- | src/xmlgen.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/xmlgen.h b/src/xmlgen.h index 0447591..0555546 100644 --- a/src/xmlgen.h +++ b/src/xmlgen.h @@ -15,6 +15,48 @@ #ifndef XMLGEN_H #define XMLGEN_H +#include "outputgen.h" + +class XMLCodeGenerator : public CodeOutputInterface +{ + public: + + XMLCodeGenerator(FTextStream &t) : m_t(t), m_lineNumber(-1), m_isMemberRef(FALSE), m_col(0), + m_insideCodeLine(FALSE), m_normalHLNeedStartTag(TRUE), m_insideSpecialHL(FALSE) {} + virtual ~XMLCodeGenerator() { } + + void codify(const char *text); + void writeCodeLink(const char *ref,const char *file, + const char *anchor,const char *name, + const char *tooltip); + void writeTooltip(const char *, const DocLinkInfo &, const char *, + const char *, const SourceLinkInfo &, const SourceLinkInfo & + ); + void startCodeLine(bool); + void endCodeLine(); + void startFontClass(const char *colorClass); + void endFontClass(); + void writeCodeAnchor(const char *); + void writeLineNumber(const char *extRef,const char *compId, + const char *anchorId,int l); + void setCurrentDoc(Definition *,const char *,bool){} + void addWord(const char *,bool){} + + void finish(); + + private: + FTextStream &m_t; + QCString m_refId; + QCString m_external; + int m_lineNumber; + bool m_isMemberRef; + int m_col; + + bool m_insideCodeLine; + bool m_normalHLNeedStartTag; + bool m_insideSpecialHL; +}; + void generateXML(); #endif |