BibleTime
cdisplayrendering.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 #include "ctextrendering.h"
16 
17 #include <utility>
18 
19 
20 namespace Rendering {
21 
22 /** HTML rendering for the text display widgets.
23  * @short Rendering for the html display widget.
24  * @author The BibleTime team
25  */
26 
28 
29 public: // methods:
30 
31  static QString keyToHTMLAnchor(QString const& key);
32 
36 
37  QString const & displayTemplateName() const noexcept
38  { return m_displayTemplateName; }
39 
42 
43  QString renderDisplayEntry(
44  BtConstModuleList const & modules,
45  QString const & key,
47  keyRendering =
49  const;
50 
51 protected: // methods:
52 
53  QString entryLink(KeyTreeItem const & item,
54  CSwordModuleInfo const & module) const override;
55 
56  QString finishText(QString const & text, KeyTree const & tree)
57  const override;
58 
59 private: // Fields:
60 
62 
63 }; /* class CDisplayRendering */
64 
65 } /* namespace Rendering */
QList< CSwordModuleInfo const * > BtConstModuleList
Definition: btmodulelist.h:21
Rendering for the html display widget.
QString entryLink(KeyTreeItem const &item, CSwordModuleInfo const &module) const override
static QString keyToHTMLAnchor(QString const &key)
QString const & displayTemplateName() const noexcept
QString finishText(QString const &text, KeyTree const &tree) const override
QString renderDisplayEntry(BtConstModuleList const &modules, QString const &key, CTextRendering::KeyTreeItem::Settings::KeyRenderingFace keyRendering=CTextRendering::KeyTreeItem::Settings::CompleteShort) const
void setDisplayTemplateName(QString displayTemplateName) noexcept
Text rendering based on trees.
std::list< KeyTreeItem > KeyTree
DisplayOptions const & displayOptions() const noexcept
FilterOptions const & filterOptions() const noexcept