diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-05-17 20:19:03 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-05-17 20:19:03 (GMT) |
commit | 6e92a0d3db80c3d93a35efbe52d45c73b8303e45 (patch) | |
tree | 5c4df5008d6c8033ded1f60fbb87461e666c8f1c /src/docparser.h | |
parent | 53da67394cd52ea7301f306ad766107b38ffd2ae (diff) | |
download | Doxygen-6e92a0d3db80c3d93a35efbe52d45c73b8303e45.zip Doxygen-6e92a0d3db80c3d93a35efbe52d45c73b8303e45.tar.gz Doxygen-6e92a0d3db80c3d93a35efbe52d45c73b8303e45.tar.bz2 |
Release-1.3.7-20040517
Diffstat (limited to 'src/docparser.h')
-rw-r--r-- | src/docparser.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/docparser.h b/src/docparser.h index ff13c46..da57809 100644 --- a/src/docparser.h +++ b/src/docparser.h @@ -51,13 +51,16 @@ void initDocParser(); * search index. * @param isExample TRUE if the documentation belongs to an example. * @param exampleName Base name of the example file (0 if isExample is FALSE). + * @param singleLine Output should be presented on a single line, so without + * starting a new paragraph at the end. * @returns Root node of the abstract syntax tree. Ownership of the * pointer is handed over to the caller. */ DocNode *validatingParseDoc(const char *fileName,int startLine, Definition *context, MemberDef *md, const char *input,bool indexWords, - bool isExample,const char *exampleName=0); + bool isExample,const char *exampleName=0, + bool singleLine=FALSE); /*! Main entry point for parsing simple text fragments. These * fragments are limited to words, whitespace and symbols. @@ -1185,11 +1188,17 @@ class DocText : public CompAccept<DocText>, public DocNode class DocRoot : public CompAccept<DocRoot>, public DocNode { public: - DocRoot() {} + DocRoot(bool indent,bool sl) : m_indent(indent), m_singleLine(sl) {} Kind kind() const { return Kind_Root; } DocNode *parent() const { return 0; } void accept(DocVisitor *v) { CompAccept<DocRoot>::accept(this,v); } void parse(); + bool indent() const { return m_indent; } + bool singleLine() const { return m_singleLine; } + + private: + bool m_indent; + bool m_singleLine; }; |