The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
thmlwordjs.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * thmlwordjs.h - class ThMLWordJS: an OptionFilter to inject
4  * JavaScript for mostly onclick events for modules
5  * marked up in ThML
6  *
7  * $Id: thmlwordjs.h 3786 2020-08-30 11:35:14Z scribe $
8  *
9  * Copyright 2005-2013 CrossWire Bible Society (http://www.crosswire.org)
10  * CrossWire Bible Society
11  * P. O. Box 2528
12  * Tempe, AZ 85280-2528
13  *
14  * This program is free software; you can redistribute it and/or modify it
15  * under the terms of the GNU General Public License as published by the
16  * Free Software Foundation version 2.
17  *
18  * This program is distributed in the hope that it will be useful, but
19  * WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  * General Public License for more details.
22  *
23  */
24 
25 #ifndef THMLWORDSJS_H
26 #define THMLWORDSJS_H
27 
28 #include <swoptfilter.h>
29 
31 
32 class SWMgr;
33 
37 
38 private:
44 
45 public:
46  ThMLWordJS();
47  virtual ~ThMLWordJS();
48  virtual char processText(SWBuf &text, const SWKey *key = 0, const SWModule *module = 0);
49  void setDefaultModules(SWModule *defaultGreekLex = 0, SWModule *defaultHebLex = 0, SWModule *defaultGreekParse = 0, SWModule *defaultHebParse = 0) {
50  this->defaultGreekLex = defaultGreekLex;
51  this->defaultHebLex = defaultHebLex;
52  this->defaultGreekParse = defaultGreekParse;
53  this->defaultHebParse = defaultHebParse;
54  }
55  void setMgr(SWMgr *mgr) { this->mgr = mgr; }
56 };
57 
59 #endif
#define SWORD_NAMESPACE_START
Definition: defs.h:39
Definition: swmgr.h:93
void setDefaultModules(SWModule *defaultGreekLex=0, SWModule *defaultHebLex=0, SWModule *defaultGreekParse=0, SWModule *defaultHebParse=0)
Definition: thmlwordjs.h:49
Definition: swbuf.h:47
#define SWDLLEXPORT
Definition: defs.h:171
SWModule * defaultHebParse
Definition: thmlwordjs.h:42
SWText * module
Definition: osis2mod.cpp:105
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)=0
SWModule * defaultGreekLex
Definition: thmlwordjs.h:39
SWModule * defaultHebLex
Definition: thmlwordjs.h:40
#define SWORD_NAMESPACE_END
Definition: defs.h:40
void setMgr(SWMgr *mgr)
Definition: thmlwordjs.h:55
SWModule * defaultGreekParse
Definition: thmlwordjs.h:41
Definition: swkey.h:77
SWMgr * mgr
Definition: installmgr.cpp:46
SWMgr * mgr
Definition: thmlwordjs.h:43