10#include "abstractmarkupbuilder.h"
11#include "kpimtextedit_export.h"
13#define LETTERSINALPHABET 26
14#define DIGITSOFFSET 10
18class PlainTextMarkupBuilderPrivate;
23 PlainTextMarkupBuilder();
25 ~PlainTextMarkupBuilder()
override;
27 void setQuotePrefix(
const QString &prefix);
29 void beginStrong()
override;
30 void endStrong()
override;
31 void beginEmph()
override;
32 void endEmph()
override;
33 void beginUnderline()
override;
34 void endUnderline()
override;
35 void beginStrikeout()
override;
36 void endStrikeout()
override;
40 void endAnchor()
override;
42 void beginParagraph(
Qt::Alignment a =
Qt::AlignLeft, qreal top = 0.0, qreal bottom = 0.0, qreal left = 0.0, qreal right = 0.0,
bool leftToRightText =
false)
45 void endParagraph()
override;
46 void addNewline()
override;
48 void insertHorizontalRule(
int width = -1)
override;
50 void insertImage(
const QString &src, qreal width, qreal height)
override;
54 void endList()
override;
56 void beginListItem()
override;
58 void endListItem()
override;
60 void beginSuperscript()
override;
62 void endSuperscript()
override;
64 void beginSubscript()
override;
66 void endSubscript()
override;
68 void beginTable(qreal cellpadding, qreal cellspacing,
const QString &width)
override;
70 void beginTableRow()
override;
72 void beginTableHeaderCell(
const QString &width,
int colSpan,
int rowSpan)
override;
74 void beginTableCell(
const QString &width,
int colSpan,
int rowSpan)
override;
76 void appendLiteralText(
const QString &text)
override;
78 void appendRawText(
const QString &text)
override;
84 [[nodiscard]]
int addReference(
const QString &reference);
89 [[nodiscard]]
QString getResult()
override;
91 [[nodiscard]]
bool isQuoteBlock(qreal top, qreal bottom, qreal left, qreal right)
const;
93 void beginForeground(
const QBrush &brush)
override;
94 void endForeground()
override;
95 void beginBackground(
const QBrush &brush)
override;
96 void endBackground()
override;
97 void beginFontFamily(
const QString &family)
override;
98 void endFontFamily()
override;
99 void beginFontPointSize(
int size)
override;
100 void endFontPointSize()
override;
101 void endTable()
override;
102 void endTableRow()
override;
103 void endTableHeaderCell()
override;
104 void endTableCell()
override;
105 void beginHeader(
int level)
override;
106 void endHeader(
int level)
override;
107 void addSingleBreakLine()
override;
110 PlainTextMarkupBuilderPrivate *
const d_ptr;
111 Q_DECLARE_PRIVATE(PlainTextMarkupBuilder)
Interface for creating marked-up text output.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:35:46 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.