summaryrefslogtreecommitdiff
path: root/include/gbfhtml.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gbfhtml.h')
-rw-r--r--include/gbfhtml.h62
1 files changed, 35 insertions, 27 deletions
diff --git a/include/gbfhtml.h b/include/gbfhtml.h
index 40805aa..da2d07d 100644
--- a/include/gbfhtml.h
+++ b/include/gbfhtml.h
@@ -1,38 +1,46 @@
-/***************************************************************************
- gbfhtml.h - description
- -------------------
- begin : Tue Jun 15 15:34:26 CEST 1999
-
- copyright : (C) 1999 by Torsten Uhlmann
- email : TUhlmann@gmx.de
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * 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. *
- * *
- ***************************************************************************/
-
-/* $Header: /usr/local/cvsroot/sword/include/gbfhtml.h,v 1.8 2001/12/11 22:35:10 scribe Exp $ */
-/* $Revision: 1.8 $ */
+/******************************************************************************
+ *
+ * $Id: gbfhtml.h,v 1.14 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 GBFHTML_H
#define GBFHTML_H
-#include <swfilter.h>
+#include <swbasicfilter.h>
-#include <defs.h>
+SWORD_NAMESPACE_START
-/** This filter converts GBF Text into HTML
+/** this filter converts GBF text to HTML text
*/
-class SWDLLEXPORT GBFHTML:public SWFilter
-{
+class SWDLLEXPORT GBFHTML : public SWBasicFilter {
+protected:
+ class MyUserData : public BasicFilterUserData {
+ public:
+ MyUserData(const SWModule *module, const SWKey *key) : BasicFilterUserData(module, key) {}
+ bool hasFootnotePreTag;
+ };
+ 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:
- GBFHTML ();
- virtual char ProcessText (char *text, int maxlen, const SWKey * key, const SWModule * = 0);
+ GBFHTML();
};
+SWORD_NAMESPACE_END
#endif