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