lib Library API Documentation

SymbolTable Class Reference

The symbol table. More...

#include <symboltable.h>

Collaboration diagram for SymbolTable:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QMap< QChar, CharTableEntryUnicodeTable
typedef QMap< QChar, QStringNameTable
typedef QMap< QString, QCharEntryTable
typedef QValueVector< QFontFontTable

Public Member Functions

void init (ContextStyle *context)
bool contains (QString name) const
QChar unicode (QString name) const
QString name (QChar symbol) const
const CharTableEntryentry (QChar symbol, CharStyle style=normalChar) const
QFont font (QChar symbol, CharStyle style=normalChar) const
uchar character (QChar symbol, CharStyle style=normalChar) const
CharClass charClass (QChar symbol, CharStyle style=normalChar) const
QChar unicodeFromSymbolFont (QChar pos) const
QString greekLetters () const
QStringList allNames () const
bool inTable (QChar ch, CharStyle style=anyChar) const
void initFont (const InternFontTable *table, const char *fontname, const NameTable &tempNames)

Detailed Description

The symbol table.

It contains all names that are know to the system.

Definition at line 101 of file symboltable.h.


Member Function Documentation

void SymbolTable::init ContextStyle context  ) 
 

Reads the unicode / font tables.

Definition at line 63 of file symboltable.cc.

QChar SymbolTable::unicode QString  name  )  const
 

Returns:
the char in the symbol font that belongs to the given name.

Definition at line 100 of file symboltable.cc.

Referenced by NameSequence::replaceElement().

QChar SymbolTable::unicodeFromSymbolFont QChar  pos  )  const
 

Returns:
the unicode value of the symbol font char.

Definition at line 161 of file symboltable.cc.

References SymbolFontHelper::unicodeFromSymbolFont().

Referenced by SequenceElement::buildCommand(), and TextElement::readAttributesFromDom().

QString SymbolTable::greekLetters  )  const
 

Returns:
a string with all greek letters.

Definition at line 167 of file symboltable.cc.

References SymbolFontHelper::greekLetters().

Referenced by SequenceElement::buildCommand().

QStringList SymbolTable::allNames  )  const
 

Returns:
all known names as strings.

Definition at line 173 of file symboltable.cc.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Mar 20 14:27:17 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003