class KCharsets


Definition#include <kcharsets.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

 KCharsets ()

Construct a KCharsets class

KCharsets ()

Destructor

KCharset  defaultCh ()

[const]

Returns default charset

This charset is one in witch keyboard input is made

Returns: default charset

bool  setDefault (KCharset ch)

Sets default charset

Parameters:
chcharset to be set as default

QStrList  available ()

[const]

Returns available charsets list

Available charsets are these, between which we can make conversions

Returns: list of available charsets

QStrList  displayable (const char *face)

Returns displayable charsets list for given font family

display charsets are these, which can be set to QFont. There is workaround for 8-bit charsets not directly supported by Qt 1.31

Parameters:
faceFont family we want display text in

Returns: list of displayable charsets

QStrList  displayable ()

Returns displayable charsets list

display charsets are these, which can be set to QFont. There is workaround for 8-bit charsets not directly supported by Qt 1.31

Parameters:
faceFont family we want display text in

Returns: list of displayable charsets

QStrList  registered ()

[const]

Returns registered charsets list

Only registered charsets can be legally used in mail and news messages and on WWW pages.

Returns: list of registered charsets

bool  isAvailable (KCharset charset)

Is the charset available

Parameters:
charsetcharset name

Returns: TRUE if the charset is available

bool  isDisplayable (KCharset charset,const char *face)

Is the charset displayable in given font family

Parameters:
facefont family name
charsetcharset name

Returns: TRUE if the charset is displayable

bool  isDisplayable (KCharset charset)

Is the charset displayable in given font family

Parameters:
charsetcharset name

Returns: TRUE if the charset is displayable

bool  isRegistered (KCharset charset)

Is the charset registered

Parameters:
charsetcharset name

Returns: TRUE if the charset is registered

int  bits (KCharset charset)

Retruns data bits needed to represent character in charset

For UTF7 and UTF8 charsets it returns 8, but some charsets may need more bits.

Parameters:
charsetcharset name

Returns: bits count

QFont::CharSet  qtCharset (KCharset charset)

Returns Qt charset identifier

Parameters:
charsetcharset name

Returns: Qt charset identifier

QFont::CharSet  qtCharset ()

Returns Qt charset identifier for default font

Returns: Qt charset identifier

QFont & setQFont (QFont &fnt,KCharset charset)

Sets QFont object to given charsets

This function can change font face when necessary. It is a workaround for Qt not supporting some charsets

Parameters:
fntfont object
charsetcharset name

Returns: the same font object

QFont & setQFont (QFont &fnt)

Sets QFont object to default charsets

This function can change font face when necessary. It is a workaround for Qt not supporting some charsets

Parameters:
fntfont object

Returns: the same font object

const char *  name (QFont::CharSet qtcharset)

Returns charset name of given charset identifier

Parameters:
qtcharsetQt charset identifier

Returns: charset name

KCharset  charset (QFont::CharSet qtcharset)

Returns charset of given charset identifier

Parameters:
qtcharsetQt charset identifier

Returns: charset object

const char *  name (const QFont& font)

Returns charset name of given QFont object

Parameters:
fontQFont object

Returns: charset name

KCharset  charset (const QFont& font)

Returns charset of given QFont object

Parameters:
fontQFont object

Returns: charset object

KCharset  charsetFromX (const QString& xName)

Returns charset of given X name object

Parameters:
xNameX charset name

Returns: charset object

const KCharsetConversionResult &  convert (unsigned code)

Unicode to displayable character conversion

Currently works only for characters in output charset

Parameters:
codeUnicode represantation of character

const KCharsetConversionResult &  convertTag (const char *tag)

Character tag to displayable character conversion

Useful for converting HTML entities, but not only Currently it works only for characters in output charset

Parameters:
tagcharacter tag or whole amp-sequence

const KCharsetConversionResult &  convertTag (const char *tag,int &len)

KCharset  defaultCharset ()

[const]


Generated by: prospector@porky.devel.redhat.com on Mon Sep 11 01:50:52 2000, using kdoc 2.0a36.