Blame src/markdown.h

Packit Service 50c9f2
/******************************************************************************
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * Copyright (C) 1997-2015 by Dimitri van Heesch.
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * Permission to use, copy, modify, and distribute this software and its
Packit Service 50c9f2
 * documentation under the terms of the GNU General Public License is hereby 
Packit Service 50c9f2
 * granted. No representations are made about the suitability of this software 
Packit Service 50c9f2
 * for any purpose. It is provided "as is" without express or implied warranty.
Packit Service 50c9f2
 * See the GNU General Public License for more details.
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * Documents produced by Doxygen are derivative works derived from the
Packit Service 50c9f2
 * input used in their production; they are not affected by this license.
Packit Service 50c9f2
 *
Packit Service 50c9f2
 */
Packit Service 50c9f2
Packit Service 50c9f2
#ifndef MARKDOWN_H
Packit Service 50c9f2
#define MARKDOWN_H
Packit Service 50c9f2
Packit Service 50c9f2
#include <qcstring.h>
Packit Service 50c9f2
#include "parserintf.h"
Packit Service 50c9f2
Packit Service 50c9f2
class Entry;
Packit Service 50c9f2
Packit Service 50c9f2
/** processes string \a s and converts markdown into doxygen/html commands. */
Packit Service 50c9f2
QCString processMarkdown(const QCString &fileName,const int lineNr,Entry *e,const QCString &s);
Packit Service 50c9f2
QCString markdownFileNameToId(const QCString &fileName);
Packit Service 50c9f2
Packit Service 50c9f2
class MarkdownFileParser : public ParserInterface
Packit Service 50c9f2
{
Packit Service 50c9f2
  public:
Packit Service 50c9f2
    virtual ~MarkdownFileParser() {}
Packit Service 50c9f2
    void startTranslationUnit(const char *) {}
Packit Service 50c9f2
    void finishTranslationUnit() {}
Packit Service 50c9f2
    void parseInput(const char *fileName, 
Packit Service 50c9f2
                    const char *fileBuf, 
Packit Service 50c9f2
                    Entry *root,
Packit Service 50c9f2
                    bool sameTranslationUnit,
Packit Service 50c9f2
                    QStrList &filesInSameTranslationUnit);
Packit Service 50c9f2
    bool needsPreprocessing(const QCString &) { return FALSE; }
Packit Service 50c9f2
    void parseCode(CodeOutputInterface &codeOutIntf,
Packit Service 50c9f2
                   const char *scopeName,
Packit Service 50c9f2
                   const QCString &input,
Packit Service 50c9f2
                   SrcLangExt lang,
Packit Service 50c9f2
                   bool isExampleBlock,
Packit Service 50c9f2
                   const char *exampleName=0,
Packit Service 50c9f2
                   FileDef *fileDef=0,
Packit Service 50c9f2
                   int startLine=-1,
Packit Service 50c9f2
                   int endLine=-1,
Packit Service 50c9f2
                   bool inlineFragment=FALSE,
Packit Service 50c9f2
                   MemberDef *memberDef=0,
Packit Service 50c9f2
                   bool showLineNumbers=TRUE,
Packit Service 50c9f2
                   Definition *searchCtx=0,
Packit Service 50c9f2
                   bool collectXRefs=TRUE
Packit Service 50c9f2
                  );
Packit Service 50c9f2
    void resetCodeParserState();
Packit Service 50c9f2
    void parsePrototype(const char *text);
Packit Service 50c9f2
};
Packit Service 50c9f2
Packit Service 50c9f2
Packit Service 50c9f2
Packit Service 50c9f2
Packit Service 50c9f2
#endif