BibleTime
teitohtml.h
Go to the documentation of this file.
1/*********
2*
3* In the name of the Father, and of the Son, and of the Holy Spirit.
4*
5* This file is part of BibleTime's source code, https://bibletime.info/
6*
7* Copyright 1999-2026 by the BibleTime developers.
8* The BibleTime source code is licensed under the GNU General Public License
9* version 2.0.
10*
11**********/
12
13#pragma once
14
15// Sword includes:
16#ifdef __GNUC__
17#pragma GCC diagnostic push
18#pragma GCC diagnostic ignored "-Wextra-semi"
19#pragma GCC diagnostic ignored "-Wsuggest-override"
20#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
21#endif
22#ifdef __clang__
23#pragma clang diagnostic push
24#pragma clang diagnostic ignored "-Wsuggest-destructor-override"
25#endif
26#include <teihtmlhref.h>
27#include <swbuf.h>
28#ifdef __clang__
29#pragma clang diagnostic pop
30#endif
31#ifdef __GNUC__
32#pragma GCC diagnostic pop
33#endif
34
35
36namespace Filters {
37
38/**
39 \brief TEI to HTML conversion filter.
40*/
41class TeiToHtml: public sword::TEIHTMLHREF {
42 public: // methods:
43 TeiToHtml();
44
45 bool handleToken(sword::SWBuf &buf,
46 const char *token,
47 sword::BasicFilterUserData *userData) override;
48
49 private: // methods:
50 void renderReference(const char *osisRef, sword::SWBuf &buf,
51 sword::BasicFilterUserData *myUserData);
52 void renderTargetReference(const char *osisRef, sword::SWBuf &buf,
53 sword::BasicFilterUserData *myUserData);
54};
55
56} // namespace Filters
TEI to HTML conversion filter.
Definition teitohtml.h:41
void renderTargetReference(const char *osisRef, sword::SWBuf &buf, sword::BasicFilterUserData *myUserData)
void renderReference(const char *osisRef, sword::SWBuf &buf, sword::BasicFilterUserData *myUserData)
bool handleToken(sword::SWBuf &buf, const char *token, sword::BasicFilterUserData *userData) override
Definition teitohtml.cpp:43