The Sword Project: thmlhtmlhref.h Source File |
00001 /****************************************************************************** 00002 * 00003 * $Id: thmlhtmlhref.h 1988 2006-11-06 19:07:21Z 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 _THMLHTMLHREF_H 00022 #define _THMLHTMLHREF_H 00023 00024 #include <swbasicfilter.h> 00025 #include <utilxml.h> 00026 00027 SWORD_NAMESPACE_START 00028 00031 class SWDLLEXPORT ThMLHTMLHREF : public SWBasicFilter { 00032 SWBuf imgPrefix; 00033 protected: 00034 class MyUserData : public BasicFilterUserData { 00035 public: 00036 MyUserData(const SWModule *module, const SWKey *key);//: BasicFilterUserData(module, key) {} 00037 SWBuf inscriptRef; 00038 bool SecHead; 00039 bool BiblicalText; 00040 SWBuf version; 00041 XMLTag startTag; 00042 }; 00043 virtual BasicFilterUserData *createUserData(const SWModule *module, const SWKey *key) { 00044 return new MyUserData(module, key); 00045 } 00046 virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData); 00047 public: 00048 ThMLHTMLHREF(); 00049 virtual const char *getImagePrefix() { return imgPrefix.c_str(); } 00050 virtual void setImagePrefix(const char *newImgPrefix) { imgPrefix = newImgPrefix; } 00051 }; 00052 SWORD_NAMESPACE_END 00053 #endif /* _THMLHTMLHREF_H */
The SWORD Project; P. O. Box 2528; Tempe, AZ 85280-2528 USA |