KI18n 5.109.0
|
Global constants and functions related to KUIT markup. More...
Typedefs | |
typedef QString(* | TagFormatter) (const QStringList &languages, const QString &tagName, const QHash< QString, QString > &attributes, const QString &text, const QStringList &tagPath, Kuit::VisualFormat format) |
Functions accepted by tag formatting functions. | |
Enumerations | |
enum | TagClass { PhraseTag = 0 , StructTag = 1 } |
Classification of KUIT tags. More... | |
enum | VisualFormat { UndefinedFormat = 0 , PlainText = 10 , RichText = 20 , TermText = 30 } |
Visual formats into which KUIT markup can be resolved. More... | |
Functions | |
KuitSetup & | setupForDomain (const char *domain) |
Get hold of the KUIT setup object for a given domain. | |
KuitSetup & | setupForDomain (const QByteArray &domain) |
Global constants and functions related to KUIT markup.
typedef QString(* Kuit::TagFormatter) (const QStringList &languages, const QString &tagName, const QHash< QString, QString > &attributes, const QString &text, const QStringList &tagPath, Kuit::VisualFormat format) |
Functions accepted by tag formatting functions.
languages | the target languages (by decreasing priority) |
tagName | the wrapping tag name |
attributes | the attribute name-value pairs in the tag |
text | the wrapped text |
tagPath | the ordered list of ancestor tag names, parent first |
format | the target visual format |
enum Kuit::TagClass |
enum Kuit::VisualFormat |
Visual formats into which KUIT markup can be resolved.
Enumerator | |
---|---|
UndefinedFormat | Visual format not defined. This value can be explicitly set (e.g. through |
PlainText | Plain text. |
RichText | Qt rich text (HTML subset). |
TermText | Terminal escape sequences. |
KuitSetup & Kuit::setupForDomain | ( | const char * | domain | ) |
Get hold of the KUIT setup object for a given domain.
domain | the translation domain |