Public Member Functions | Private Attributes | List of all members
SymbolHandler Class Reference

Node representing an special symbol. More...

#include <dochandler.h>

Inheritance diagram for SymbolHandler:
BaseHandler< SymbolHandler > QXmlDefaultHandler ElementMapper< SymbolHandler > LocatorContainer IBaseHandler QXmlContentHandler QXmlErrorHandler QXmlDTDHandler QXmlEntityResolver QXmlLexicalHandler QXmlDeclHandler

Public Member Functions

 SymbolHandler (IBaseHandler *parent, Types type)
 
virtual ~SymbolHandler ()
 
void startSymbol (const QXmlAttributes &attrib)
 
void endSymbol ()
 
virtual Kind kind () const
 
virtual Types type () const
 
virtual const IStringtypeString () const
 
virtual char letter () const
 
- Public Member Functions inherited from BaseHandler< SymbolHandler >
 BaseHandler ()
 
virtual ~BaseHandler ()
 
virtual bool startDocument ()
 
virtual bool startElement (const QString &namespaceURI, const QString &localName, const QString &name, const QXmlAttributes &attrib)
 
virtual bool endElement (const QString &namespaceURI, const QString &localName, const QString &name)
 
bool skippedEntity (const QString &s)
 
virtual bool characters (const QString &ch)
 
void setDelegate (QXmlDefaultHandler *delegate)
 
QXmlDefaultHandlerdelegate () const
 
void setFallBackHandler (IFallBackHandler *h)
 
IFallBackHandlerfallBackHandler () const
 
void setDocumentLocator (QXmlLocator *locator)
 
- Public Member Functions inherited from QXmlDefaultHandler
 QXmlDefaultHandler ()
 
virtual ~QXmlDefaultHandler ()
 
bool endDocument ()
 
bool startPrefixMapping (const QString &prefix, const QString &uri)
 
bool endPrefixMapping (const QString &prefix)
 
bool ignorableWhitespace (const QString &ch)
 
bool processingInstruction (const QString &target, const QString &data)
 
bool warning (const QXmlParseException &exception)
 
bool error (const QXmlParseException &exception)
 
bool fatalError (const QXmlParseException &exception)
 
bool notationDecl (const QString &name, const QString &publicId, const QString &systemId)
 
bool unparsedEntityDecl (const QString &name, const QString &publicId, const QString &systemId, const QString &notationName)
 
bool resolveEntity (const QString &publicId, const QString &systemId, QXmlInputSource *&ret)
 
bool startDTD (const QString &name, const QString &publicId, const QString &systemId)
 
bool endDTD ()
 
bool startCDATA ()
 
bool endCDATA ()
 
bool comment (const QString &ch)
 
bool attributeDecl (const QString &eName, const QString &aName, const QString &type, const QString &valueDefault, const QString &value)
 
bool internalEntityDecl (const QString &name, const QString &value)
 
bool externalEntityDecl (const QString &name, const QString &publicId, const QString &systemId)
 
QString errorString ()
 
- Public Member Functions inherited from QXmlContentHandler
virtual ~QXmlContentHandler ()
 
- Public Member Functions inherited from QXmlErrorHandler
virtual ~QXmlErrorHandler ()
 
- Public Member Functions inherited from QXmlDTDHandler
virtual ~QXmlDTDHandler ()
 
- Public Member Functions inherited from QXmlEntityResolver
virtual ~QXmlEntityResolver ()
 
- Public Member Functions inherited from QXmlLexicalHandler
virtual ~QXmlLexicalHandler ()
 
- Public Member Functions inherited from QXmlDeclHandler
virtual ~QXmlDeclHandler ()
 
- Public Member Functions inherited from ElementMapper< SymbolHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, SymbolHandler *obj, void(SymbolHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, SymbolHandler *obj, void(SymbolHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
char m_letter
 
Types m_type
 
StringImpl m_typeString
 

Additional Inherited Members

- Public Types inherited from BaseHandler< SymbolHandler >
typedef ElementMapper< SymbolHandler >::StartElementHandlerT StartElementHandlerT
 
typedef ElementMapper< SymbolHandler >::EndElementHandlerT EndElementHandlerT
 
- Public Types inherited from ElementMapper< SymbolHandler >
typedef StartElementHandler StartElementHandlerT
 
typedef EndElementHandler EndElementHandlerT
 
- Static Public Attributes inherited from LocatorContainer
static QXmlLocators_theLocator =0
 
- Protected Attributes inherited from BaseHandler< SymbolHandler >
QString m_curString
 
QString m_skipUntil
 
int m_skipCount
 
QXmlDefaultHandlerm_delegateHandler
 
IFallBackHandlerm_fallBackHandler
 
- Protected Attributes inherited from ElementMapper< SymbolHandler >
QDict< StartElementHandlerTm_startHandlers
 
QDict< EndElementHandlerTm_endHandlers
 

Detailed Description

Node representing an special symbol.

Definition at line 1193 of file dochandler.h.

Constructor & Destructor Documentation

SymbolHandler::SymbolHandler ( IBaseHandler parent,
Types  type 
)

Definition at line 1641 of file dochandler.cpp.

1642  : m_parent(parent), m_letter('\0'), m_type(type)
1643 {
1644  addEndHandler("symbol");
1645  switch (type)
1646  {
1647  case IDocSymbol::Invalid: m_typeString="invalid"; break;
1648  case IDocSymbol::Umlaut: m_typeString="umlaut"; break;
1649  case IDocSymbol::Acute: m_typeString="acute"; break;
1650  case IDocSymbol::Grave: m_typeString="grave"; break;
1651  case IDocSymbol::Circ: m_typeString="circ"; break;
1652  case IDocSymbol::Tilde: m_typeString="tilde"; break;
1653  case IDocSymbol::Szlig: m_typeString="szlig"; break;
1654  case IDocSymbol::Cedil: m_typeString="cedil"; break;
1655  case IDocSymbol::Ring: m_typeString="ring"; break;
1656  case IDocSymbol::Nbsp: m_typeString="nbsp"; break;
1657  case IDocSymbol::Copy: m_typeString="copy"; break;
1658  }
1659 }
IBaseHandler * m_parent
Definition: dochandler.h:1208
StringImpl m_typeString
Definition: dochandler.h:1211
void addEndHandler(const char *key)
Definition: basehandler.h:101
SymbolHandler::~SymbolHandler ( )
virtual

Definition at line 1661 of file dochandler.cpp.

1662 {
1663 }

Member Function Documentation

void SymbolHandler::endSymbol ( )
virtual Kind SymbolHandler::kind ( ) const
inlinevirtual

Definition at line 1202 of file dochandler.h.

1202 { return DocImpl::Symbol; }
virtual char SymbolHandler::letter ( ) const
inlinevirtual

Definition at line 1205 of file dochandler.h.

1205 { return m_letter; }
void SymbolHandler::startSymbol ( const QXmlAttributes attrib)

Definition at line 1665 of file dochandler.cpp.

1666 {
1667  QString ls = attrib.value("char");
1668  if (!ls.isEmpty()) m_letter = ls.latin1()[0];
1669 }
bool isEmpty() const
Definition: qstring.h:682
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
Definition: qstring.h:350
QString value(int index) const
Definition: qxml.cpp:664
const char * latin1() const
Definition: qstring.cpp:14457
virtual Types SymbolHandler::type ( ) const
inlinevirtual

Definition at line 1203 of file dochandler.h.

1203 { return m_type; }
virtual const IString* SymbolHandler::typeString ( ) const
inlinevirtual

Definition at line 1204 of file dochandler.h.

1204 { return &m_typeString; }
StringImpl m_typeString
Definition: dochandler.h:1211

Member Data Documentation

char SymbolHandler::m_letter
private

Definition at line 1209 of file dochandler.h.

IBaseHandler* SymbolHandler::m_parent
private

Definition at line 1208 of file dochandler.h.

Types SymbolHandler::m_type
private

Definition at line 1210 of file dochandler.h.

StringImpl SymbolHandler::m_typeString
private

Definition at line 1211 of file dochandler.h.


The documentation for this class was generated from the following files: