BibleTime
plaintohtml.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 "-Wzero-as-null-pointer-constant"
19#endif
20#include <swfilter.h>
21#ifdef __GNUC__
22#pragma GCC diagnostic pop
23#endif
24
25
26namespace sword {
27class SWBuf;
28class SWKey;
29class SWModule;
30} // namespace sword
31
32namespace Filters {
33
34/**
35 \brief Plain text to HTML conversion filter.
36*/
37class PlainToHtml: public sword::SWFilter {
38
39 protected: // methods:
40
41 /** Reimplemented from sword::SWFilter. */
42 char processText(sword::SWBuf &buf,
43 const sword::SWKey *key,
44 const sword::SWModule *module = nullptr) override;
45
46};
47
48} // namespace Filters
Plain text to HTML conversion filter.
Definition plaintohtml.h:37
char processText(sword::SWBuf &buf, const sword::SWKey *key, const sword::SWModule *module=nullptr) override