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

Node representing a copied piece of documentation. More...

#include <dochandler.h>

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

Public Member Functions

 CopyHandler (IBaseHandler *parent)
 
virtual ~CopyHandler ()
 
virtual void startCopy (const QXmlAttributes &attrib)
 
virtual void endCopy ()
 
virtual void startParagraph (const QXmlAttributes &attrib)
 
virtual Kind kind () const
 
virtual IDocIteratorcontents () const
 
- Public Member Functions inherited from BaseHandler< CopyHandler >
 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< CopyHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, CopyHandler *obj, void(CopyHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, CopyHandler *obj, void(CopyHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
QList< DocImplm_children
 

Friends

class CopyIterator
 

Additional Inherited Members

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

Detailed Description

Node representing a copied piece of documentation.

Definition at line 1136 of file dochandler.h.

Constructor & Destructor Documentation

CopyHandler::CopyHandler ( IBaseHandler parent)

Definition at line 1569 of file dochandler.cpp.

1570  : m_parent(parent)
1571 {
1573 
1574  addEndHandler("copydoc",this,&CopyHandler::endCopy);
1575 
1577 }
virtual void endCopy()
IBaseHandler * m_parent
Definition: dochandler.h:1151
QList< DocImpl > m_children
Definition: dochandler.h:1152
virtual void startParagraph(const QXmlAttributes &attrib)
void addStartHandler(const char *key)
Definition: basehandler.h:91
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371
void addEndHandler(const char *key)
Definition: basehandler.h:101
CopyHandler::~CopyHandler ( )
virtual

Definition at line 1579 of file dochandler.cpp.

1580 {
1581 }

Member Function Documentation

IDocIterator * CopyHandler::contents ( ) const
virtual

Definition at line 1602 of file dochandler.cpp.

1603 {
1604  return new CopyIterator(*this);
1605 }
friend class CopyIterator
Definition: dochandler.h:1138
void CopyHandler::endCopy ( )
virtual

Definition at line 1589 of file dochandler.cpp.

1590 {
1591  debug(2,"end copy handler\n");
1592  m_parent->setDelegate(0);
1593 }
IBaseHandler * m_parent
Definition: dochandler.h:1151
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
virtual Kind CopyHandler::kind ( ) const
inlinevirtual

Definition at line 1147 of file dochandler.h.

1147 { return DocImpl::Copy; }
void CopyHandler::startCopy ( const QXmlAttributes attrib)
virtual

Definition at line 1583 of file dochandler.cpp.

1584 {
1585  m_parent->setDelegate(this);
1586  debug(2,"start copy handler\n");
1587 }
IBaseHandler * m_parent
Definition: dochandler.h:1151
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
void CopyHandler::startParagraph ( const QXmlAttributes attrib)
virtual

Definition at line 1595 of file dochandler.cpp.

1596 {
1597  ParagraphHandler *parHandler = new ParagraphHandler(this);
1598  parHandler->startParagraph(attrib);
1599  m_children.append(parHandler);
1600 }
void append(const type *d)
Definition: qlist.h:73
Node representing a paragraph of text and commands.
Definition: dochandler.h:196
virtual void startParagraph(const QXmlAttributes &attrib)
QList< DocImpl > m_children
Definition: dochandler.h:1152

Friends And Related Function Documentation

friend class CopyIterator
friend

Definition at line 1138 of file dochandler.h.

Member Data Documentation

QList<DocImpl> CopyHandler::m_children
private

Definition at line 1152 of file dochandler.h.

IBaseHandler* CopyHandler::m_parent
private

Definition at line 1151 of file dochandler.h.


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