The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
osiswebif.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * osiswebif.h - class OSISWEBIF: a RenderFilter to render WEBIF markup
4  * from modules marked up in OSIS
5  *
6  * $Id: osiswebif.h 3786 2020-08-30 11:35:14Z scribe $
7  *
8  * Copyright 2003-2013 CrossWire Bible Society (http://www.crosswire.org)
9  * CrossWire Bible Society
10  * P. O. Box 2528
11  * Tempe, AZ 85280-2528
12  *
13  * This program is free software; you can redistribute it and/or modify it
14  * under the terms of the GNU General Public License as published by the
15  * Free Software Foundation version 2.
16  *
17  * This program is distributed in the hope that it will be useful, but
18  * WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  * General Public License for more details.
21  *
22  */
23 
24 #ifndef OSISWEBIF_H
25 #define OSISWEBIF_H
26 
27 #include <osisxhtml.h>
28 
30 
34  const SWBuf baseURL;
36  bool javascript;
37 
38 protected:
39  virtual BasicFilterUserData *createUserData(const SWModule *module, const SWKey *key);
40  virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData);
41 public:
42  OSISWEBIF();
43  void setJavascript(bool mode) { javascript = mode; }
44 };
45 
47 #endif
#define SWORD_NAMESPACE_START
Definition: defs.h:39
const SWBuf passageStudyURL
Definition: osiswebif.h:35
Definition: swbuf.h:47
#define SWDLLEXPORT
Definition: defs.h:171
const SWBuf baseURL
Definition: osiswebif.h:34
SWText * module
Definition: osis2mod.cpp:105
bool javascript
Definition: osiswebif.h:36
virtual BasicFilterUserData * createUserData(const SWModule *module, const SWKey *key)
Definition: osisxhtml.cpp:147
#define SWORD_NAMESPACE_END
Definition: defs.h:40
Definition: swkey.h:77
void setJavascript(bool mode)
Definition: osiswebif.h:43
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData)
Definition: osisxhtml.cpp:218