KCharsets Class Reference

[kdecore Index] [kdecore Hierarchy] [Headers]


KDE charset support class More...

#include <kcharsets.h>

Public Members

Private Members


Detailed Description

KDE Multiple charset support

This class gives information about available charsets and converts charsets' names to Qt identifiers


KCharsets() [public]

Construct a KCharsets class

~KCharsets() [public]

Destructor

KCharset defaultCh() const [public]

Returns default charset

This charset is one in witch keyboard input is made

Returns:
default charset
See Also:
setDefault

bool setDefault(KCharset ch) [public]

Sets default charset

Parameters:
ch charset to be set as default

QStrList available() const [public]

Returns available charsets list

Available charsets are these, between which we can make conversions

Returns:
list of available charsets
See Also:
isAvailable

QStrList displayable(const char *face) [public]

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:
face Font family we want display text in
Returns:
list of displayable charsets
See Also:
isDisplayable

QStrList displayable() [public]

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:
face Font family we want display text in
Returns:
list of displayable charsets
See Also:
isDisplayable

QStrList registered() const [public]

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
See Also:
isRegistered

bool isAvailable(KCharset charset) [public]

Is the charset available

Parameters:
charset charset name
Returns:
TRUE if the charset is available
See Also:
available

bool isDisplayable(KCharset charset,const char *face) [public]

Is the charset displayable in given font family

Parameters:
charset charset name
face font family name
Returns:
TRUE if the charset is displayable
See Also:
displayable

bool isDisplayable(KCharset charset) [public]

Is the charset displayable in given font family

Parameters:
charset charset name
Returns:
TRUE if the charset is displayable
See Also:
displayable

bool isRegistered(KCharset charset) [public]

Is the charset registered

Parameters:
charset charset name
Returns:
TRUE if the charset is registered
See Also:
registered

int bits(KCharset charset) [public]

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:
charset charset name
Returns:
bits count

QFont::CharSet qtCharset(KCharset charset) [public]

Returns Qt charset identifier

Parameters:
charset charset name
Returns:
Qt charset identifier

QFont::CharSet qtCharset() [public]

Returns Qt charset identifier for default font

Returns:
Qt charset identifier

QFont& setQFont(QFont &fnt,KCharset charset) [public]

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:
fnt font object
charset charset name
Returns:
the same font object

QFont& setQFont(QFont &fnt) [public]

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:
fnt font object
Returns:
the same font object

const char * name(QFont::CharSet qtcharset) [public]

Returns charset name of given charset identifier

Parameters:
qtcharset Qt charset identifier
Returns:
charset name

KCharset charset(QFont::CharSet qtcharset) [public]

Returns charset of given charset identifier

Parameters:
qtcharset Qt charset identifier
Returns:
charset object

const char * name(const QFont& font) [public]

Returns charset name of given QFont object

Parameters:
font QFont object
Returns:
charset name

KCharset charset(const QFont& font) [public]

Returns charset of given QFont object

Parameters:
font QFont object
Returns:
charset object

KCharset charsetFromX(const QString& xName) [public]

Returns charset of given X name object

Parameters:
xName X charset name
Returns:
charset object

const KCharsetConversionResult & convert(unsigned code) [public]

Unicode to displayable character conversion

Currently works only for characters in output charset

Parameters:
code Unicode represantation of character

const KCharsetConversionResult & convertTag(const char *tag) [public]

Character tag to displayable character conversion

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

Parameters:
tag character tag or whole amp-sequence

  • Author: Jacek Konieczny <jacus@zeus.polsl.gliwice.pl>
  • Version: $Id: kcharsets.h,v 1.19.4.1 1999/03/22 17:16:16 porten Exp $
  • Documentation generated by root@darkstar.lst.de on Wed Sep 8 17:38:18 CEST 1999
Kdoc