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-2025 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#pragma GCC diagnostic push
17#pragma GCC diagnostic ignored "-Wextra-semi"
18#pragma GCC diagnostic ignored "-Wsuggest-override"
19#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
20#ifdef __clang__
21#pragma clang diagnostic push
22#pragma clang diagnostic ignored "-Wsuggest-destructor-override"
23#endif
24#include <teihtmlhref.h>
25#include <swbuf.h>
26#ifdef __clang__
27#pragma clang diagnostic pop
28#endif
29#pragma GCC diagnostic pop
30
31
32namespace Filters {
33
34/**
35 \brief TEI to HTML conversion filter.
36*/
37class TeiToHtml: public sword::TEIHTMLHREF {
38 public: // methods:
39 TeiToHtml();
40
41 bool handleToken(sword::SWBuf &buf,
42 const char *token,
43 sword::BasicFilterUserData *userData) override;
44
45 private: // methods:
46 void renderReference(const char *osisRef, sword::SWBuf &buf,
47 sword::BasicFilterUserData *myUserData);
48 void renderTargetReference(const char *osisRef, sword::SWBuf &buf,
49 sword::BasicFilterUserData *myUserData);
50};
51
52} // namespace Filters
TEI to HTML conversion filter.
Definition teitohtml.h:37
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:39