Grantlee 5.3.0
|
Builder to create BBCode from a QTextDocument. More...
#include <bbcodebuilder.h>
Definition at line 32 of file bbcodebuilder.h.
Grantlee::BBCodeBuilder::BBCodeBuilder | ( | ) |
Creates a new BBCodeBuilder.
|
overridevirtual |
Add a newline to the markup.
Implements Grantlee::AbstractMarkupBuilder.
Append the plain text text
to the markup
text | The text to append. |
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Begin a url anchor element in the markup
href | The href of the anchor. |
name | The name of the anchor. |
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Begin an emphasised element in the markup
Implements Grantlee::AbstractMarkupBuilder.
Begin an element of font size size
. Note that this size is in pixels, and must be converted before it is suitable for use in BBCode.
size | The size of font to begin. |
Implements Grantlee::AbstractMarkupBuilder.
Begin a decorarated foreground element in the markup (A text color) using brush
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Begin a new list element in the markup. A list element contains list items, and may contain other lists.
style | The style of list to create. |
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Begin a new list item in the markup
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Begin a new paragraph in the markup
a | The alignment of the new paragraph. |
top | The top margin of the new paragraph. |
bottom | The bottom margin of the new paragraph. |
left | The left margin of the new paragraph. |
right | The right margin of the new paragraph. |
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Begin a struck out element in the markup
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Begin a bold element in the markup
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Begin a subscript element
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Begin a superscript element
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Begin a table element.
cellpadding | The padding attribute for the table. |
cellspacing | The spacing attribute for the table. |
width | The width of the table. May be either an integer, or a percentage value. |
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Begin a new table row
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Begin an underlined element in the markup
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Close the anchor element
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Close the emphasised element in the markup
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
End font point size element
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Close the decorarated foreground element in the markup
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Close the list.
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Close the paragraph in the markup.
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Close the struck out element in the markup
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Close the bold element in the markup
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
End subscript element
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
End superscript element
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Close the underlined element in the markup
Implements Grantlee::AbstractMarkupBuilder.
Escapes text
appropriately for BBCode.
|
overridevirtual |
Return the fully marked up result of the building process.
This may contain metadata etc, such as a head element in html.
Implements Grantlee::AbstractMarkupBuilder.
|
overridevirtual |
Insert a new image element into the markup.
url | The url of the image |
width | The width of the image |
height | The height of the image. |
Implements Grantlee::AbstractMarkupBuilder.