The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
markupfiltmgr.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * markupfiltmgr.h - class SWMarkupMgr: a FilterManager which applied
4  * the appropriate Markup and Encoding filters to obtain
5  * a requested Render markup and encoding
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 MARKUPFILTMGR_H
24 #define MARKUPFILTMGR_H
25 
26 #include <encfiltmgr.h>
27 
29 
35 
36 protected:
42 
46  char markup;
47 
48  void createFilters(char markup);
49 public:
50 
56  MarkupFilterMgr(char markup = FMT_THML, char encoding = ENC_UTF8);
57 
61  ~MarkupFilterMgr();
62 
70  SWDEPRECATED char Markup(char m = FMT_UNKNOWN) { if (m != FMT_UNKNOWN) setMarkup(m); return getMarkup(); }
71 
76  char getMarkup() const { return markup; }
77 
82  void setMarkup(char m);
83 
89  virtual void addRenderFilters(SWModule *module, ConfigEntMap &section);
90 };
91 
93 #endif
#define SWORD_NAMESPACE_START
Definition: defs.h:39
SWFilter * fromosis
Definition: markupfiltmgr.h:40
SWFilter * fromthml
Definition: markupfiltmgr.h:37
#define SWDLLEXPORT
Definition: defs.h:171
SWText * module
Definition: osis2mod.cpp:105
#define SWDEPRECATED
Definition: defs.h:174
char getMarkup() const
Definition: markupfiltmgr.h:76
SWDEPRECATED char Markup(char m=FMT_UNKNOWN)
Definition: markupfiltmgr.h:70
SWFilter * fromgbf
Definition: markupfiltmgr.h:38
SWFilter * fromplain
Definition: markupfiltmgr.h:39
SWFilter * fromtei
Definition: markupfiltmgr.h:41
virtual void addRenderFilters(SWModule *module, ConfigEntMap &section)
Definition: swfiltermgr.cpp:72
SWORD_NAMESPACE_START typedef multimapwithdefault< SWBuf, SWBuf, std::less< SWBuf > > ConfigEntMap
Definition: swconfig.h:35
#define SWORD_NAMESPACE_END
Definition: defs.h:40