markdown.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Copyright (C) 1997-2015 by Dimitri van Heesch.
4  *
5  * Permission to use, copy, modify, and distribute this software and its
6  * documentation under the terms of the GNU General Public License is hereby
7  * granted. No representations are made about the suitability of this software
8  * for any purpose. It is provided "as is" without express or implied warranty.
9  * See the GNU General Public License for more details.
10  *
11  * Documents produced by Doxygen are derivative works derived from the
12  * input used in their production; they are not affected by this license.
13  *
14  */
15 
16 #ifndef MARKDOWN_H
17 #define MARKDOWN_H
18 
19 #include <qcstring.h>
20 #include "parserintf.h"
21 
22 class Entry;
23 
24 /** processes string \a s and converts markdown into doxygen/html commands. */
25 QCString processMarkdown(const QCString &fileName,const int lineNr,Entry *e,const QCString &s);
27 
29 {
30  public:
31  virtual ~MarkdownFileParser() {}
32  void startTranslationUnit(const char *) {}
34  void parseInput(const char *fileName,
35  const char *fileBuf,
36  Entry *root,
37  bool sameTranslationUnit,
38  QStrList &filesInSameTranslationUnit);
39  bool needsPreprocessing(const QCString &) { return FALSE; }
40  void parseCode(CodeOutputInterface &codeOutIntf,
41  const char *scopeName,
42  const QCString &input,
43  SrcLangExt lang,
44  bool isExampleBlock,
45  const char *exampleName=0,
46  FileDef *fileDef=0,
47  int startLine=-1,
48  int endLine=-1,
49  bool inlineFragment=FALSE,
50  MemberDef *memberDef=0,
51  bool showLineNumbers=TRUE,
52  Definition *searchCtx=0,
53  bool collectXRefs=TRUE
54  );
55  void resetCodeParserState();
56  void parsePrototype(const char *text);
57 };
58 
59 
60 
61 
62 #endif
QCString processMarkdown(const QCString &fileName, const int lineNr, Entry *e, const QCString &s)
Definition: markdown.cpp:2298
void parseCode(CodeOutputInterface &codeOutIntf, const char *scopeName, const QCString &input, SrcLangExt lang, bool isExampleBlock, const char *exampleName=0, FileDef *fileDef=0, int startLine=-1, int endLine=-1, bool inlineFragment=FALSE, MemberDef *memberDef=0, bool showLineNumbers=TRUE, Definition *searchCtx=0, bool collectXRefs=TRUE)
Definition: markdown.cpp:2432
bool needsPreprocessing(const QCString &)
Definition: markdown.h:39
Definition: entry.h:63
Abstract interface for programming language parsers.
Definition: parserintf.h:38
const bool FALSE
Definition: qglobal.h:370
void startTranslationUnit(const char *)
Definition: markdown.h:32
SrcLangExt
Definition: types.h:41
const double e
static int input(void)
Definition: code.cpp:15695
fileName
Definition: dumpTree.py:9
void finishTranslationUnit()
Definition: markdown.h:33
virtual ~MarkdownFileParser()
Definition: markdown.h:31
void parsePrototype(const char *text)
Definition: markdown.cpp:2467
QCString markdownFileNameToId(const QCString &fileName)
Definition: markdown.cpp:2344
void resetCodeParserState()
Definition: markdown.cpp:2458
void parseInput(const char *fileName, const char *fileBuf, Entry *root, bool sameTranslationUnit, QStrList &filesInSameTranslationUnit)
Definition: markdown.cpp:2353
static QCString * s
Definition: config.cpp:1042
const bool TRUE
Definition: qglobal.h:371
bool collectXRefs