8#include "abstractmarkupbuilder.h"
9#include "kpimtextedit_export.h"
13class TextHTMLBuilderPrivate;
95 void beginStrong()
override;
96 void endStrong()
override;
97 void beginEmph()
override;
98 void endEmph()
override;
99 void beginUnderline()
override;
100 void endUnderline()
override;
101 void beginStrikeout()
override;
102 void endStrikeout()
override;
103 void beginForeground(
const QBrush &brush)
override;
104 void endForeground()
override;
105 void beginBackground(
const QBrush &brush)
override;
106 void endBackground()
override;
107 void beginAnchor(
const QString &href = {},
const QString &name = {})
override;
108 void endAnchor()
override;
113 void beginFontFamily(
const QString &family)
override;
114 void endFontFamily()
override;
120 void beginFontPointSize(
int size)
override;
121 void endFontPointSize()
override;
132 qreal topMargin = 0.0,
133 qreal bottomMargin = 0.0,
134 qreal leftMargin = 0.0,
135 qreal rightMargin = 0.0,
136 bool leftToRightText =
false)
override;
142 void beginHeader(
int level)
override;
148 void endHeader(
int level)
override;
150 void endParagraph()
override;
151 void addNewline()
override;
153 void insertHorizontalRule(
int width = -1)
override;
155 void insertImage(
const QString &src, qreal width, qreal height)
override;
159 void endList()
override;
161 void beginListItem()
override;
162 void endListItem()
override;
164 void beginSuperscript()
override;
166 void endSuperscript()
override;
168 void beginSubscript()
override;
170 void endSubscript()
override;
172 void beginTable(qreal cellpadding, qreal cellspacing,
const QString &width)
override;
174 void beginTableRow()
override;
175 void beginTableHeaderCell(
const QString &width,
int colspan,
int rowspan)
override;
177 void beginTableCell(
const QString &width,
int colspan,
int rowspan)
override;
179 void endTable()
override;
180 void endTableRow()
override;
181 void endTableHeaderCell()
override;
182 void endTableCell()
override;
199 void appendLiteralText(
const QString &text)
override;
206 void appendRawText(
const QString &text)
override;
208 [[nodiscard]]
QString getResult()
override;
210 void addSingleBreakLine()
override;
213 TextHTMLBuilderPrivate *d_ptr;
Interface for creating marked-up text output.
The TextHTMLBuilder creates a clean html markup output.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:55:51 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.