thmlwordjs.h

00001 /***************************************************************************
00002  *
00003  * $Id: thmlstrongs.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 THMLWORDSJS_H
00022 #define THMLWORDSJS_H
00023 
00024 #include <swoptfilter.h>
00025 
00026 SWORD_NAMESPACE_START
00027 
00028 class SWMgr;
00031 class SWDLLEXPORT ThMLWordJS : public SWOptionFilter {
00032      SWModule *defaultGreekLex;
00033      SWModule *defaultHebLex;
00034      SWModule *defaultGreekParse;
00035      SWModule *defaultHebParse;
00036      SWMgr *mgr;
00037 
00038 public:
00039         ThMLWordJS();
00040         virtual ~ThMLWordJS();
00041         virtual char processText(SWBuf &text, const SWKey *key = 0, const SWModule *module = 0);
00042         void setDefaultModules(SWModule *defaultGreekLex = 0, SWModule *defaultHebLex = 0, SWModule *defaultGreekParse = 0, SWModule *defaultHebParse = 0) {
00043                 this->defaultGreekLex   = defaultGreekLex;
00044                 this->defaultHebLex     = defaultHebLex;
00045                 this->defaultGreekParse = defaultGreekParse;
00046                 this->defaultHebParse   = defaultHebParse;
00047         }
00048         void setMgr(SWMgr *mgr) { this->mgr = mgr; }
00049 };
00050 
00051 SWORD_NAMESPACE_END
00052 #endif