Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qtextmarkdownimporter.cpp File Reference

(e10c9b5c0f8f194a79ce12dcf9b6b5cb19976942)

#include "qtextmarkdownimporter_p.h"
#include "qtextdocumentfragment_p.h"
#include <QLoggingCategory>
#include <QTextCursor>
#include <QTextDocument>
#include <QTextDocumentFragment>
#include <QTextList>
#include <QTextTable>
#include "../../3rdparty/md4c/md4c.h"
+ Include dependency graph for qtextmarkdownimporter.cpp:

Go to the source code of this file.

Functions

static constexpr auto markerString () noexcept
 
static int CbEnterBlock (MD_BLOCKTYPE type, void *detail, void *userdata)
 
static int CbLeaveBlock (MD_BLOCKTYPE type, void *detail, void *userdata)
 
static int CbEnterSpan (MD_SPANTYPE type, void *detail, void *userdata)
 
static int CbLeaveSpan (MD_SPANTYPE type, void *detail, void *userdata)
 
static int CbText (MD_TEXTTYPE type, const MD_CHAR *text, MD_SIZE size, void *userdata)
 
static void CbDebugLog (const char *msg, void *userdata)
 
static Qt::Alignment MdAlignment (MD_ALIGN a, Qt::Alignment defaultAlignment=Qt::AlignLeft|Qt::AlignVCenter)
 

Variables

static const QChar qtmi_Newline = u'\n'
 
static const QChar qtmi_Space = u' '
 
static const int qtmi_BlockQuoteIndent
 

Function Documentation

◆ CbDebugLog()

static void CbDebugLog ( const char * msg,
void * userdata )
static

Definition at line 87 of file qtextmarkdownimporter.cpp.

References Q_UNUSED, and qCDebug.

Referenced by QTextMarkdownImporter::import().

+ Here is the caller graph for this function:

◆ CbEnterBlock()

static int CbEnterBlock ( MD_BLOCKTYPE type,
void * detail,
void * userdata )
static

Definition at line 57 of file qtextmarkdownimporter.cpp.

References QTextMarkdownImporter::cbEnterBlock().

Referenced by QTextMarkdownImporter::import().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CbEnterSpan()

static int CbEnterSpan ( MD_SPANTYPE type,
void * detail,
void * userdata )
static

Definition at line 69 of file qtextmarkdownimporter.cpp.

References QTextMarkdownImporter::cbEnterSpan().

Referenced by QTextMarkdownImporter::import().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CbLeaveBlock()

static int CbLeaveBlock ( MD_BLOCKTYPE type,
void * detail,
void * userdata )
static

Definition at line 63 of file qtextmarkdownimporter.cpp.

References QTextMarkdownImporter::cbLeaveBlock().

Referenced by QTextMarkdownImporter::import().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CbLeaveSpan()

static int CbLeaveSpan ( MD_SPANTYPE type,
void * detail,
void * userdata )
static

Definition at line 75 of file qtextmarkdownimporter.cpp.

References QTextMarkdownImporter::cbLeaveSpan().

Referenced by QTextMarkdownImporter::import().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CbText()

static int CbText ( MD_TEXTTYPE type,
const MD_CHAR * text,
MD_SIZE size,
void * userdata )
static

Definition at line 81 of file qtextmarkdownimporter.cpp.

References QTextMarkdownImporter::cbText(), and text.

Referenced by QTextMarkdownImporter::import().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ markerString()

static constexpr auto markerString ( )
staticconstexprnoexcept

Definition at line 30 of file qtextmarkdownimporter.cpp.

Referenced by QTextMarkdownImporter::import().

+ Here is the caller graph for this function:

◆ MdAlignment()

static Qt::Alignment MdAlignment ( MD_ALIGN a,
Qt::Alignment defaultAlignment = Qt::AlignLeft | Qt::AlignVCenter )
static

Definition at line 96 of file qtextmarkdownimporter.cpp.

References Qt::AlignHCenter, Qt::AlignLeft, Qt::AlignRight, and Qt::AlignVCenter.

Referenced by QTextMarkdownImporter::cbEnterBlock().

+ Here is the caller graph for this function:

Variable Documentation

◆ qtmi_BlockQuoteIndent

const int qtmi_BlockQuoteIndent
static
Initial value:
=
40

Definition at line 33 of file qtextmarkdownimporter.cpp.

◆ qtmi_Newline

const QChar qtmi_Newline = u'\n'
static

Definition at line 27 of file qtextmarkdownimporter.cpp.

Referenced by QTextMarkdownImporter::cbText().

◆ qtmi_Space

const QChar qtmi_Space = u' '
static

Definition at line 28 of file qtextmarkdownimporter.cpp.

Referenced by QTextMarkdownImporter::cbText().