1
/******************************************************************************
3
* $Id: osisrtf.h,v 1.11 2003/12/24 20:51:36 scribe Exp $
5
* Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
6
* CrossWire Bible Society
10
* This program is free software; you can redistribute it and/or modify it
11
* under the terms of the GNU General Public License as published by the
12
* Free Software Foundation version 2.
14
* This program is distributed in the hope that it will be useful, but
15
* WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
* General Public License for more details.
24
#include <swbasicfilter.h>
28
/** this filter converts OSIS text to RTF text
30
class SWDLLEXPORT OSISRTF : public SWBasicFilter {
34
class MyUserData : public BasicFilterUserData {
41
MyUserData(const SWModule *module, const SWKey *key);
43
virtual BasicFilterUserData *createUserData(const SWModule *module, const SWKey *key) {
44
return new MyUserData(module, key);
46
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData);