The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
diathekemgr.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * diathekemgr.h - DiathekeMgr
4  *
5  * $Id: diathekemgr.h 3754 2020-07-10 17:45:48Z scribe $
6  *
7  * Copyright 2001-2013 CrossWire Bible Society (http://www.crosswire.org)
8  * CrossWire Bible Society
9  * P. O. Box 2528
10  * Tempe, AZ 85280-2528
11  *
12  * This program is free software; you can redistribute it and/or modify it
13  * under the terms of the GNU General Public License as published by the
14  * Free Software Foundation version 2.
15  *
16  * This program is distributed in the hope that it will be useful, but
17  * WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * General Public License for more details.
20  *
21  */
22 
23 #ifndef DIATHEKEMGR_H
24 #define DIATHEKEMGR_H
25 
26 #include <swmgr.h>
27 #include "diafiltmgr.h"
28 
29 //enum PlatformIDs { WIN32S = 0, WIN9X, WINNT, WINCE };
30 
31 class DiathekeMgr : public SWMgr {
35 
36 #ifdef WIN32
37  char platformID;
38 #endif
39 
40 protected:
41  virtual void addRenderFilters(SWModule *module, ConfigEntMap &section);
42  virtual signed char load();
43  virtual void addGlobalOptionFilters(SWModule * module, ConfigEntMap & section);
44 
45 public:
46  bool shape;
47  bool bidi;
48 
49  unsigned char Markup(unsigned char m = FMT_UNKNOWN) { return ((DiathekeFilterMgr*)filterMgr)->Markup(m); }
50  void setEncoding(unsigned char e = ENC_UNKNOWN) { ((EncodingFilterMgr*)filterMgr)->setEncoding(e); }
51  unsigned char getEncoding() { return ((EncodingFilterMgr*)filterMgr)->getEncoding(); }
52 
53  DiathekeMgr(SWConfig * iconf = NULL, SWConfig * isysconfig = NULL, bool autoload = false, char enc = ENC_UTF8, char mark = FMT_PLAIN, bool bidi = false, bool shape = false);
54  virtual ~DiathekeMgr();
55 };
56 
57 #endif
58 
void setEncoding(unsigned char e=ENC_UNKNOWN)
Definition: diathekemgr.h:50
SWText * module
Definition: osis2mod.cpp:105
SWFilter * bidireorder
Definition: diathekemgr.h:33
return NULL
Definition: regex.c:7953
virtual signed char load()
Definition: diathekemgr.cpp:97
unsigned char getEncoding()
Definition: diathekemgr.h:51
virtual ~DiathekeMgr()
Definition: diathekemgr.cpp:63
SWFilter * arshaping
Definition: diathekemgr.h:32
DiathekeMgr(SWConfig *iconf=NULL, SWConfig *isysconfig=NULL, bool autoload=false, char enc=ENC_UTF8, char mark=FMT_PLAIN, bool bidi=false, bool shape=false)
Definition: diathekemgr.cpp:39
unsigned char Markup(unsigned char m=FMT_UNKNOWN)
Definition: diathekemgr.h:49
SWOptionFilter * transliterator
Definition: diathekemgr.h:34
SWORD_NAMESPACE_START typedef multimapwithdefault< SWBuf, SWBuf, std::less< SWBuf > > ConfigEntMap
Definition: swconfig.h:35
virtual void addRenderFilters(SWModule *module, ConfigEntMap &section)
Definition: diathekemgr.cpp:76
virtual void addGlobalOptionFilters(SWModule *module, ConfigEntMap &section)