Ki18n
Typedefs | Enumerations | Functions
KUIT Namespace Reference

Typedefs

typedef QString(* TagFormatter )(const QString &tagName, const QHash &attributes, const QString &text, const QStringList &tagPath, KUIT::VisualFormat format)

Enumerations

enum  VisualFormat { UndefinedFormat = 0, PlainText = 10, RichText = 20, TermText = 30 }
enum  TagClass { PhraseTag = 0, StructTag = 1 }

Functions

KUITSetupsetupForCatalog (const QString &domain)

Detailed Description

Global constants and functions related to KUIT markup.

Typedef Documentation

typedef QString(* KUIT::TagFormatter)(const QString &tagName, const QHash &attributes, const QString &text, const QStringList &tagPath, KUIT::VisualFormat format)

Functions accepted by tag formatting functions.

Parameters
tagNamethe wrapping tag name
attributesthe attribute name-value pairs in the tag
textthe wrapped text
tagPaththe ordered list of ancestor tag names, parent first
formatthe target visual format
Returns
formatted text

Enumeration Type Documentation

Visual formats into which KUIT markup can be resolved.

Enumerator:
UndefinedFormat 

Visual format not defined. This value can be explicitly set (e.g. through KLocalizedString::withFormat) to indicate that the format should be decided by another mechanism (e.g. context UI marker).

PlainText 

Plain text.

RichText 

Qt rich text (HTML subset).

TermText 

Terminal escape sequences.

Classification of KUIT tags.

Enumerator:
PhraseTag 

Tags wrapping text inserted into running text.

StructTag 

Tags spliting text into paragraph-level blocks.

Function Documentation

KUITSetup& KUIT::setupForCatalog ( const QString &  domain)

Get hold of the KUIT setup object for given catalog.

Parameters
domainthe canonical name of the catalog
Returns
pointer to KUIT setup object