#include <xmlactionclient.h>
Inheritance diagram for KJSEmbed::XMLActionHandler::
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 () |
XMLActionClient * | client () const |
virtual KAction * | createAction (KActionCollection *parent) |
Protected Methods | |
XMLActionData * | actionData () |
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.
|
Called when an action tag is closed.
|
|
Creates a KAction based on the values read from the XML.
|