sword::ThMLRTF Class Reference

this filter converts ThML text to RTF text More...

#include <thmlrtf.h>

Inheritance diagram for sword::ThMLRTF:

Inheritance graph
[legend]
Collaboration diagram for sword::ThMLRTF:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

virtual BasicFilterUserDatacreateUserData (const SWModule *module, const SWKey *key)
virtual bool handleToken (SWBuf &buf, const char *token, BasicFilterUserData *userData)
 This function is called for every token encountered in the input text.
virtual char processText (SWBuf &text, const SWKey *key=0, const SWModule *module=0)
 This is the main filter function.

Classes

class  MyUserData

Detailed Description

this filter converts ThML text to RTF text

Definition at line 31 of file thmlrtf.h.


Member Function Documentation

virtual bool sword::ThMLRTF::handleToken ( SWBuf buf,
const char *  token,
BasicFilterUserData userData 
) [protected, virtual]

This function is called for every token encountered in the input text.

Parameters:
buf the output buffer
token the token (e.g. "p align='left'"
userData user storage space for data transient to 1 full buffer parse
Returns:
subclasses should return true if they handled the token, or false if they did not.

Reimplemented from sword::SWBasicFilter.

virtual char sword::ThMLRTF::processText ( SWBuf text,
const SWKey key = 0,
const SWModule module = 0 
) [protected, virtual]

This is the main filter function.

Parameters:
text The text to be filtered/converted
key Current key That was used.
module Current module.
Returns:
0

Reimplemented from sword::SWBasicFilter.


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