KCharsets Class Reference

[Kangaroo Index] [Kangaroo Hierarchy] [Headers]


KDE charset support class More...

#include <kdeobjc/KCharsets.h>

Inherits: NSObject (GNUstepBase)

Public Members


Detailed Description

KDE Multiple charset support

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

Derived from the C++ header kcharsets.h by Jacek Konieczny


-init

Initialize a KCharsets class

-defaultCh

Returns default charset

This charset is one in whitch keyboard input is made

Returns:
default charset
See Also:
-setDefault:

-setDefault:

Sets default charset

Parameters:
ch charset to be set as default

-available

Returns available charsets list

Available charsets are these, between which we can make conversions

Returns:
list of available charsets
See Also:
-isAvailable:

-displayable:

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:

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

-registered

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:

-isAvailable:

Is the charset available

Parameters:
charset charset name
Returns:
YES if the charset is available
See Also:
-available

-isDisplayable:face:

Is the charset displayable in given font family

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

-isDisplayable:

Is the charset displayable in given font family

Parameters:
charset charset name
Returns:
YES if the charset is displayable
See Also:
-displayable

-isRegistered:

Is the charset registered

Parameters:
charset charset name
Returns:
YES if the charset is registered
See Also:
-registered

-bits:

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

-qtCharset:

Returns Qt charset identifier

Parameters:
charset charset name
Returns:
Qt charset identifier

-qtCharset

Returns Qt charset identifier for default font

Returns:
Qt charset identifier

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

-setQFont:

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

-nameFromQtCharset:

Returns charset name of given charset identifier

Parameters:
qtcharset Qt charset identifier
Returns:
charset name

-charsetFromQtCharset:

Returns charset of given charset identifier

Parameters:
qtcharset Qt charset identifier
Returns:
charset object

-nameFromFont:

Returns charset name of given QFont object

Parameters:
font QFont object
Returns:
charset name

-charsetFromFont:

Returns charset of given QFont object

Parameters:
font QFont object
Returns:
charset object

-charsetFromX:

Returns charset of given X name object

Parameters:
xName X charset name
Returns:
charset object

-convert:

Unicode to displayable character conversion

Currently works only for characters in output charset

Parameters:
code Unicode represantation of character

-convertTag:

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

Documentation generated by duke@tipitina on Sat May 6 11:42:52 EDT 2000
Kdoc