The Sword Project: thmlrtf.h Source File |
00001 /****************************************************************************** 00002 * 00003 * $Id: thmlrtf.h 1688 2005-01-01 04:42:26Z scribe $ 00004 * 00005 * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) 00006 * CrossWire Bible Society 00007 * P. O. Box 2528 00008 * Tempe, AZ 85280-2528 00009 * 00010 * This program is free software; you can redistribute it and/or modify it 00011 * under the terms of the GNU General Public License as published by the 00012 * Free Software Foundation version 2. 00013 * 00014 * This program is distributed in the hope that it will be useful, but 00015 * WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * General Public License for more details. 00018 * 00019 */ 00020 00021 #ifndef THMLRTF_H 00022 #define THMLRTF_H 00023 00024 #include <swbasicfilter.h> 00025 #include <utilxml.h> 00026 00027 SWORD_NAMESPACE_START 00028 00031 class SWDLLEXPORT ThMLRTF : public SWBasicFilter { 00032 protected: 00033 class MyUserData : public BasicFilterUserData { 00034 public: 00035 MyUserData(const SWModule *module, const SWKey *key); 00036 bool SecHead; 00037 SWBuf version; 00038 bool BiblicalText; 00039 XMLTag startTag; 00040 }; 00041 virtual BasicFilterUserData *createUserData(const SWModule *module, const SWKey *key) { 00042 return new MyUserData(module, key); 00043 } 00044 virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData); 00045 virtual char processText(SWBuf &text, const SWKey *key = 0, const SWModule *module = 0); 00046 public: 00047 ThMLRTF(); 00048 }; 00049 00050 SWORD_NAMESPACE_END 00051 #endif
The SWORD Project; P. O. Box 2528; Tempe, AZ 85280-2528 USA |