The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gbfwordjs.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * gbfwordjs.h - class GBFWordJS: an OptionFilter to inject
4  * JavaScript (mostly onclick events) for modules
5  * marked up in GBF
6  *
7  * $Id: gbfwordjs.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 GBFWORDSJS_H
26 #define GBFWORDSJS_H
27 
28 #include <swoptfilter.h>
29 
31 
32 class SWMgr;
41 
42 public:
43  GBFWordJS();
44  virtual ~GBFWordJS();
45  virtual char processText(SWBuf &text, const SWKey *key = 0, const SWModule *module = 0);
46  void setDefaultModules(SWModule *defaultGreekLex = 0, SWModule *defaultHebLex = 0, SWModule *defaultGreekParse = 0, SWModule *defaultHebParse = 0) {
47  this->defaultGreekLex = defaultGreekLex;
48  this->defaultHebLex = defaultHebLex;
49  this->defaultGreekParse = defaultGreekParse;
50  this->defaultHebParse = defaultHebParse;
51  }
52  void setMgr(SWMgr *mgr) { this->mgr = mgr; }
53 };
54 
56 #endif
void setMgr(SWMgr *mgr)
Definition: gbfwordjs.h:52
#define SWORD_NAMESPACE_START
Definition: defs.h:39
SWModule * defaultGreekLex
Definition: gbfwordjs.h:36
Definition: swmgr.h:93
Definition: swbuf.h:47
#define SWDLLEXPORT
Definition: defs.h:171
SWText * module
Definition: osis2mod.cpp:105
SWMgr * mgr
Definition: gbfwordjs.h:40
SWModule * defaultHebLex
Definition: gbfwordjs.h:37
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)=0
#define SWORD_NAMESPACE_END
Definition: defs.h:40
Definition: swkey.h:77
SWModule * defaultGreekParse
Definition: gbfwordjs.h:38
SWMgr * mgr
Definition: installmgr.cpp:46
void setDefaultModules(SWModule *defaultGreekLex=0, SWModule *defaultHebLex=0, SWModule *defaultGreekParse=0, SWModule *defaultHebParse=0)
Definition: gbfwordjs.h:46
SWModule * defaultHebParse
Definition: gbfwordjs.h:39