Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Public Member Functions | Private Attributes
AddAttributes Class Reference

Adds more attributes to the next opening tag. More...

#include <saxfilter.h>

Inheritance diagram for AddAttributes:
Inheritance graph
[legend]
Collaboration diagram for AddAttributes:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AddAttributes (SaxHandler *delegate, Xml_attr add)
virtual void begin (const Xml_string &tag, Xml_attr attr)
void setDelegate (SaxHandler *delegate)
SaxHandlerdelegate ()
virtual void beginDoc ()
virtual void endDoc ()
virtual void end (const Xml_string &tag)
virtual void chars (const Xml_string &text)
void beginEnd (const Xml_string &tag, Xml_attr attr)

Private Attributes

bool m_oneshot
Xml_attr m_attributes

Detailed Description

Adds more attributes to the next opening tag.

Definition at line 76 of file saxfilter.h.


Constructor & Destructor Documentation

Definition at line 78 of file saxfilter.cpp.

: SaxFilter(delegate), m_oneshot(false), m_attributes(add) {}

Member Function Documentation

void AddAttributes::begin ( const Xml_string tag,
Xml_attr  attr 
) [virtual]

Reimplemented from SaxFilter.

Definition at line 82 of file saxfilter.cpp.

{
       if ( !m_oneshot )
       {
              m_oneshot = true;
              Xml_attr::iterator it;
              for (it = attr.begin(); it != attr.end(); ++it)
                     m_attributes[Xml_key(it)] = Xml_data(it);
              SaxFilter::begin(tag, m_attributes);
       }
       else
              SaxFilter::begin(tag, attr);
}

Here is the call graph for this function:

void SaxFilter::beginDoc ( ) [virtual, inherited]

Implements SaxHandler.

Definition at line 5 of file saxfilter.cpp.

Here is the call graph for this function:

void SaxHandler::beginEnd ( const Xml_string tag,
Xml_attr  attr 
) [inline, inherited]

Definition at line 32 of file saxhandler.h.

{
       begin(tag, attr);
       end(tag);
}

Here is the call graph for this function:

void SaxFilter::chars ( const Xml_string text) [virtual, inherited]

Implements SaxHandler.

Reimplemented in UniqueID.

Definition at line 25 of file saxfilter.cpp.

{
       m_delegate->chars(text);
}

Here is the call graph for this function:

SaxHandler* SaxFilter::delegate ( ) [inline, inherited]

Definition at line 24 of file saxfilter.h.

{ return m_delegate; }

Here is the caller graph for this function:

void SaxFilter::end ( const Xml_string tag) [virtual, inherited]

Implements SaxHandler.

Reimplemented in RenameElem, KeepOpen, and UniqueID.

Definition at line 20 of file saxfilter.cpp.

{
       m_delegate->end(tag);
}

Here is the call graph for this function:

void SaxFilter::endDoc ( ) [virtual, inherited]

Implements SaxHandler.

Definition at line 10 of file saxfilter.cpp.

Here is the call graph for this function:

void SaxFilter::setDelegate ( SaxHandler delegate) [inline, inherited]

Definition at line 23 of file saxfilter.h.

Here is the call graph for this function:


Member Data Documentation

Definition at line 82 of file saxfilter.h.

Definition at line 81 of file saxfilter.h.


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