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

Node representing an preformatted section. More...

#include <dochandler.h>

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

Public Member Functions

 VerbatimHandler (IBaseHandler *parent)
 
virtual ~VerbatimHandler ()
 
void startVerbatim (const QXmlAttributes &attrib, Types type)
 
void endVerbatim ()
 
virtual Kind kind () const
 
virtual const IStringtext () const
 
virtual Types type () const
 
- Public Member Functions inherited from BaseHandler< VerbatimHandler >
 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< VerbatimHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, VerbatimHandler *obj, void(VerbatimHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, VerbatimHandler *obj, void(VerbatimHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
StringImpl m_text
 
Types m_type
 

Additional Inherited Members

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

Detailed Description

Node representing an preformatted section.

Definition at line 1166 of file dochandler.h.

Constructor & Destructor Documentation

VerbatimHandler::VerbatimHandler ( IBaseHandler parent)

Definition at line 1611 of file dochandler.cpp.

1613 {
1614  addEndHandler("verbatim",this,&VerbatimHandler::endVerbatim);
1615  addEndHandler("latexonly",this,&VerbatimHandler::endVerbatim);
1616  addEndHandler("htmlonly",this,&VerbatimHandler::endVerbatim);
1617 }
IBaseHandler * m_parent
Definition: dochandler.h:1181
void addEndHandler(const char *key)
Definition: basehandler.h:101
VerbatimHandler::~VerbatimHandler ( )
virtual

Definition at line 1619 of file dochandler.cpp.

1620 {
1621 }

Member Function Documentation

void VerbatimHandler::endVerbatim ( )

Definition at line 1630 of file dochandler.cpp.

1631 {
1632  m_text = m_curString;
1633  m_parent->setDelegate(0);
1634 }
StringImpl m_text
Definition: dochandler.h:1182
IBaseHandler * m_parent
Definition: dochandler.h:1181
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
virtual Kind VerbatimHandler::kind ( ) const
inlinevirtual

Definition at line 1176 of file dochandler.h.

1176 { return DocImpl::Verbatim; }
void VerbatimHandler::startVerbatim ( const QXmlAttributes attrib,
Types  type 
)

Definition at line 1623 of file dochandler.cpp.

1624 {
1625  m_type = type;
1626  m_parent->setDelegate(this);
1627  m_curString="";
1628 }
IBaseHandler * m_parent
Definition: dochandler.h:1181
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
virtual Types type() const
Definition: dochandler.h:1178
virtual const IString* VerbatimHandler::text ( ) const
inlinevirtual

Definition at line 1177 of file dochandler.h.

1177 { return &m_text; }
StringImpl m_text
Definition: dochandler.h:1182
virtual Types VerbatimHandler::type ( ) const
inlinevirtual

Definition at line 1178 of file dochandler.h.

1178 { return m_type; }

Member Data Documentation

IBaseHandler* VerbatimHandler::m_parent
private

Definition at line 1181 of file dochandler.h.

StringImpl VerbatimHandler::m_text
private

Definition at line 1182 of file dochandler.h.

Types VerbatimHandler::m_type
private

Definition at line 1183 of file dochandler.h.


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