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
teirtf.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* teirtf.h - class TEIRTF: a RenderFilter to render RTF from modules marked
4
* up in TEI
5
*
6
* $Id: teirtf.h 3786 2020-08-30 11:35:14Z scribe $
7
*
8
* Copyright 2006-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 TEIRTF_H
25
#define TEIRTF_H
26
27
#include <
swbasicfilter.h
>
28
29
SWORD_NAMESPACE_START
30
33
class
SWDLLEXPORT
TEIRTF
:
public
SWBasicFilter
{
34
35
private
:
36
37
protected
:
38
class
MyUserData
:
public
BasicFilterUserData
{
39
public
:
40
bool
isBiblicalText
;
41
bool
inOsisRef
;
42
SWBuf
w
;
43
SWBuf
version
;
44
MyUserData
(
const
SWModule
*
module
,
const
SWKey
*key);
45
};
46
virtual
BasicFilterUserData
*
createUserData
(
const
SWModule
*
module
,
const
SWKey
*key) {
47
return
new
MyUserData
(module, key);
48
}
49
virtual
bool
handleToken
(
SWBuf
&buf,
const
char
*token,
BasicFilterUserData
*userData);
50
51
public
:
52
TEIRTF
();
53
};
54
55
SWORD_NAMESPACE_END
56
#endif
SWORD_NAMESPACE_START
#define SWORD_NAMESPACE_START
Definition:
defs.h:39
SWBuf
Definition:
swbuf.h:47
BasicFilterUserData
Definition:
swbasicfilter.h:38
SWDLLEXPORT
#define SWDLLEXPORT
Definition:
defs.h:171
SWBasicFilter
Definition:
swbasicfilter.h:62
TEIRTF::MyUserData
Definition:
teirtf.h:38
SWBasicFilter::handleToken
virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData)
Definition:
swbasicfilter.cpp:281
module
SWText * module
Definition:
osis2mod.cpp:105
TEIRTF::createUserData
virtual BasicFilterUserData * createUserData(const SWModule *module, const SWKey *key)
Definition:
teirtf.h:46
TEIRTF::MyUserData::w
SWBuf w
Definition:
teirtf.h:42
TEIRTF
Definition:
teirtf.h:33
TEIRTF::MyUserData::version
SWBuf version
Definition:
teirtf.h:43
TEIRTF::MyUserData::isBiblicalText
bool isBiblicalText
Definition:
teirtf.h:40
SWModule
Definition:
swmodule.h:101
TEIRTF::MyUserData::inOsisRef
bool inOsisRef
Definition:
teirtf.h:41
SWORD_NAMESPACE_END
#define SWORD_NAMESPACE_END
Definition:
defs.h:40
SWKey
Definition:
swkey.h:77
swbasicfilter.h
include
teirtf.h
Generated by
1.8.5