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