Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

KJSEmbed::XMLActionHandler Class Reference

SAX handler for loading actions from XML. More...

#include <xmlactionclient.h>

Inheritance diagram for KJSEmbed::XMLActionHandler::

List of all members.

Public Methods

 XMLActionHandler (XMLActionClient *ac)
virtual bool startElement (const QString &ns, const QString &ln, const QString &qn, const QXmlAttributes &attrs)
virtual bool endElement (const QString &ns, const QString &ln, const QString &qn)
virtual bool characters (const QString &chars)
void defineAction ()
XMLActionClientclient () const
virtual KAction * createAction (KActionCollection *parent)

Protected Methods

XMLActionDataactionData ()

Detailed Description

SAX handler for loading actions from XML.

The following tags are supported:

actionset ( header? action* ) header ( name | label | icons | script ) action ( (header | name | label | icons | shortcut | group | whatsthis | statustext | type | script | data)+ ) type ( CDATA ) label ( CDATA | text ) icons ( CDATA ) shortcut ( CDATA | text ) whatsthis ( CDATA | text ) group ( CDATA ) exclusive defaults to false name ( CDATA ) text ( CDATA ) data ( item+ ) item ( CDATA | text ) script ( CDATA ) type type of script src url of script file (optional)

Unknown tags are ignored, so subclasses can define new ones if they want to store additional data.


Member Function Documentation

void defineAction
 

Called when an action tag is closed.

virtual KAction* createAction KActionCollection * parent [virtual]
 

Creates a KAction based on the values read from the XML.


The documentation for this class was generated from the following file:
Generated at Sat Feb 1 03:23:36 2003 for KJSEmbed by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001