summaryrefslogtreecommitdiffstats
path: root/src/docparser.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-05-17 20:19:03 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-05-17 20:19:03 (GMT)
commit820c90090848a96b959c562209bc3242fee58a53 (patch)
tree5c4df5008d6c8033ded1f60fbb87461e666c8f1c /src/docparser.h
parent64ab36082a9cb658fd54c2b76fdf1a9b40ed7b74 (diff)
downloadDoxygen-820c90090848a96b959c562209bc3242fee58a53.zip
Doxygen-820c90090848a96b959c562209bc3242fee58a53.tar.gz
Doxygen-820c90090848a96b959c562209bc3242fee58a53.tar.bz2
Release-1.3.7-20040517
Diffstat (limited to 'src/docparser.h')
-rw-r--r--src/docparser.h13
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;
};