|
Grantlee 0.1.9
|
Creates MediaWiki markup from a QTextDocument.
#include <mediawikimarkupbuilder.h>

Public Member Functions | |
| MediaWikiMarkupBuilder () | |
| void | addNewline () |
| void | appendLiteralText (const QString &text) |
| void | beginAnchor (const QString &href=QString(), const QString &name=QString()) |
| void | beginEmph () |
| void | beginHeader (int level) |
| void | beginList (QTextListFormat::Style type) |
| void | beginListItem () |
| void | beginStrikeout () |
| void | beginStrong () |
| void | beginUnderline () |
| void | endAnchor () |
| void | endEmph () |
| void | endHeader (int level) |
| void | endList () |
| void | endListItem () |
| void | endParagraph () |
| void | endStrikeout () |
| void | endStrong () |
| void | endUnderline () |
| const QString | escape (const QString &s) |
| QString | getResult () |
Definition at line 32 of file mediawikimarkupbuilder.h.
| Grantlee::MediaWikiMarkupBuilder::MediaWikiMarkupBuilder | ( | ) |
Creates a new MediaWikiMarkupBuilder
| void Grantlee::MediaWikiMarkupBuilder::addNewline | ( | ) | [virtual] |
Add a newline to the markup.
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::appendLiteralText | ( | const QString & | text | ) | [virtual] |
Append the plain text text to the markup.
| text | The text to append. |
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::beginAnchor | ( | const QString & | href = QString(), |
| const QString & | name = QString() |
||
| ) | [virtual] |
Begin a url anchor element in the markup
| href | The href of the anchor. |
| name | The name of the anchor. |
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::beginEmph | ( | ) | [virtual] |
Begin an emphasised element in the markup
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::beginHeader | ( | int | level | ) | [virtual] |
Begin a level level header.
| level | An integer between 1 and 6 |
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::beginList | ( | QTextListFormat::Style | style | ) | [virtual] |
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.
| void Grantlee::MediaWikiMarkupBuilder::beginListItem | ( | ) | [virtual] |
Begin a new list item in the markup
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::beginStrikeout | ( | ) | [virtual] |
Begin a struck out element in the markup
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::beginStrong | ( | ) | [virtual] |
Begin a bold element in the markup
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::beginUnderline | ( | ) | [virtual] |
Begin an underlined element in the markup
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::endAnchor | ( | ) | [virtual] |
Close the anchor element
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::endEmph | ( | ) | [virtual] |
Close the emphasised element in the markup
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::endHeader | ( | int | level | ) | [virtual] |
End a level level header.
| level | An integer between 1 and 6 |
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::endList | ( | ) | [virtual] |
Close the list.
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::endListItem | ( | ) | [virtual] |
End the list item
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::endParagraph | ( | ) | [virtual] |
Close the paragraph in the markup.
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::endStrikeout | ( | ) | [virtual] |
Close the struck out element in the markup
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::endStrong | ( | ) | [virtual] |
Close the bold element in the markup
Implements Grantlee::AbstractMarkupBuilder.
| void Grantlee::MediaWikiMarkupBuilder::endUnderline | ( | ) | [virtual] |
Close the underlined element in the markup
Implements Grantlee::AbstractMarkupBuilder.
| const QString Grantlee::MediaWikiMarkupBuilder::escape | ( | const QString & | s | ) |
Escapes text appropriately for MediaWiki.
| QString Grantlee::MediaWikiMarkupBuilder::getResult | ( | ) | [virtual] |
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.
1.7.4