diff options
Diffstat (limited to 'include/thmlhtml.h')
-rw-r--r-- | include/thmlhtml.h | 49 |
1 files changed, 30 insertions, 19 deletions
diff --git a/include/thmlhtml.h b/include/thmlhtml.h index f6c29ad..88b11a1 100644 --- a/include/thmlhtml.h +++ b/include/thmlhtml.h @@ -1,35 +1,46 @@ -/*************************************************************************** - thmlhtml.h - description - ------------------- - begin : 1999-10-28 - - copyright : 1999 by Chris Little - email : chrislit@chiasma.org - ***************************************************************************/ - -/*************************************************************************** - * * - * 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: thmlhtml.h,v 1.12 2003/08/12 05:36:30 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 THMLHTML_H #define THMLHTML_H #include <swbasicfilter.h> -#include <defs.h> +SWORD_NAMESPACE_START /** this filter converts ThML text to HTML text */ class SWDLLEXPORT ThMLHTML : 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) {} + bool SecHead; + }; + 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: ThMLHTML(); }; +SWORD_NAMESPACE_END #endif |