The SWORD Project
1.9.0.svnversion
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
28
SWORD_NAMESPACE_START
29
34
class
SWDLLEXPORT
MarkupFilterMgr
:
public
EncodingFilterMgr
{
35
36
protected
:
37
SWFilter
*
fromthml
;
38
SWFilter
*
fromgbf
;
39
SWFilter
*
fromplain
;
40
SWFilter
*
fromosis
;
41
SWFilter
*
fromtei
;
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
§ion);
90
};
91
92
SWORD_NAMESPACE_END
93
#endif
SWORD_NAMESPACE_START
#define SWORD_NAMESPACE_START
Definition:
defs.h:39
ENC_UTF8
Definition:
swmodule.h:46
encfiltmgr.h
MarkupFilterMgr::fromosis
SWFilter * fromosis
Definition:
markupfiltmgr.h:40
MarkupFilterMgr::fromthml
SWFilter * fromthml
Definition:
markupfiltmgr.h:37
SWDLLEXPORT
#define SWDLLEXPORT
Definition:
defs.h:171
module
SWText * module
Definition:
osis2mod.cpp:105
SWDEPRECATED
#define SWDEPRECATED
Definition:
defs.h:174
MarkupFilterMgr::getMarkup
char getMarkup() const
Definition:
markupfiltmgr.h:76
MarkupFilterMgr::Markup
SWDEPRECATED char Markup(char m=FMT_UNKNOWN)
Definition:
markupfiltmgr.h:70
MarkupFilterMgr::fromgbf
SWFilter * fromgbf
Definition:
markupfiltmgr.h:38
MarkupFilterMgr::fromplain
SWFilter * fromplain
Definition:
markupfiltmgr.h:39
MarkupFilterMgr
Definition:
markupfiltmgr.h:34
EncodingFilterMgr
Definition:
encfiltmgr.h:40
FMT_UNKNOWN
Definition:
swmodule.h:45
MarkupFilterMgr::fromtei
SWFilter * fromtei
Definition:
markupfiltmgr.h:41
FMT_THML
Definition:
swmodule.h:45
SWFilter
Definition:
swfilter.h:45
SWFilterMgr::addRenderFilters
virtual void addRenderFilters(SWModule *module, ConfigEntMap §ion)
Definition:
swfiltermgr.cpp:72
SWModule
Definition:
swmodule.h:101
SWORD_NAMESPACE_START::m
DataMap m
Definition:
url.cpp:38
ConfigEntMap
SWORD_NAMESPACE_START typedef multimapwithdefault< SWBuf, SWBuf, std::less< SWBuf > > ConfigEntMap
Definition:
swconfig.h:35
MarkupFilterMgr::markup
char markup
Definition:
markupfiltmgr.h:46
SWORD_NAMESPACE_END
#define SWORD_NAMESPACE_END
Definition:
defs.h:40
include
markupfiltmgr.h
Generated by
1.8.5