diff options
author | Roberto C. Sanchez <roberto@connexer.com> | 2014-03-29 10:53:49 -0400 |
---|---|---|
committer | Roberto C. Sanchez <roberto@connexer.com> | 2014-03-29 10:53:49 -0400 |
commit | 8c8aa6b07e595cfac56838b5964ab3e96051f1b2 (patch) | |
tree | da38e2c1979148dbd3b0c7b87f930746f5ba7f44 /include/thmlhtmlhref.h | |
parent | 8d3fc864d094eeadc721f8e93436b37a5fab173e (diff) |
Imported Upstream version 1.5.7
Diffstat (limited to 'include/thmlhtmlhref.h')
-rw-r--r-- | include/thmlhtmlhref.h | 53 |
1 files changed, 35 insertions, 18 deletions
diff --git a/include/thmlhtmlhref.h b/include/thmlhtmlhref.h index dc1d192..e504ae8 100644 --- a/include/thmlhtmlhref.h +++ b/include/thmlhtmlhref.h @@ -1,33 +1,50 @@ -/*************************************************************************** - thmlhtmlhref.h - description - ------------------- - begin : 2001-09-03 - copyright : 2001 by CrossWire Bible Society - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ +/****************************************************************************** + * + * $Id: thmlhtmlhref.h,v 1.10 2003/12/22 04:28:09 scribe Exp $ + * + * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) + * CrossWire Bible Society + * P. O. Box 2528 + * Tempe, AZ 85280-2528 + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation version 2. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + */ #ifndef _THMLHTMLHREF_H #define _THMLHTMLHREF_H #include <swbasicfilter.h> +#include <utilxml.h> -#include <defs.h> +SWORD_NAMESPACE_START /** this filter converts ThML text to HTML text with hrefs */ class SWDLLEXPORT ThMLHTMLHREF : public SWBasicFilter { protected: - virtual bool handleToken(char **buf, const char *token, DualStringMap &userData); + class MyUserData : public BasicFilterUserData { + public: + MyUserData(const SWModule *module, const SWKey *key);//: BasicFilterUserData(module, key) {} + SWBuf inscriptRef; + bool SecHead; + bool BiblicalText; + SWBuf version; + XMLTag startTag; + }; + virtual BasicFilterUserData *createUserData(const SWModule *module, const SWKey *key) { + return new MyUserData(module, key); + } + virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData); public: ThMLHTMLHREF(); }; - +SWORD_NAMESPACE_END #endif /* _THMLHTMLHREF_H */ |