BibleTime
|
Rendering for the html display widget. More...
#include <cdisplayrendering.h>
Static Public Member Functions | |
static QString | keyToHTMLAnchor (QString const &key) |
Protected Member Functions | |
QString | entryLink (KeyTreeItem const &item, CSwordModuleInfo const &module) const override |
QString | finishText (QString const &text, KeyTree const &tree) const override |
Protected Member Functions inherited from Rendering::CTextRendering | |
virtual QString | renderEntry (KeyTreeItem const &item, CSwordKey *key=nullptr) const |
Private Attributes | |
QString | m_displayTemplateName |
Additional Inherited Members | |
Public Types inherited from Rendering::CTextRendering | |
using | KeyTree = std::list< KeyTreeItem > |
Static Protected Member Functions inherited from Rendering::CTextRendering | |
static BtConstModuleList | collectModules (KeyTree const &tree) |
Protected Attributes inherited from Rendering::CTextRendering | |
bool const | m_addText |
DisplayOptions | m_displayOptions |
FilterOptions | m_filterOptions |
Rendering for the html display widget.
HTML rendering for the text display widgets.
Definition at line 27 of file cdisplayrendering.h.
Rendering::CDisplayRendering::CDisplayRendering | ( | ) |
Definition at line 45 of file cdisplayrendering.cpp.
Rendering::CDisplayRendering::CDisplayRendering | ( | DisplayOptions const & | displayOptions, |
FilterOptions const & | filterOptions | ||
) |
Definition at line 50 of file cdisplayrendering.cpp.
|
inlinenoexcept |
Definition at line 37 of file cdisplayrendering.h.
References m_displayTemplateName.
Referenced by setDisplayTemplateName().
|
overrideprotectedvirtual |
Reimplemented from Rendering::CTextRendering.
Reimplemented in BtPrinter.
Definition at line 103 of file cdisplayrendering.cpp.
References CSwordModuleInfo::Bible, CSwordVerseKey::bookName(), CSwordVerseKey::chapter(), ReferenceManager::encodeHyperlink(), CSwordVerseKey::isBoundSet(), Rendering::CTextRendering::KeyTreeItem::key(), CSwordKey::key(), CSwordVerseKey::key(), Rendering::CTextRendering::KeyTreeItem::Settings::keyRenderingFace, keyToHTMLAnchor(), CSwordVerseKey::lowerBound(), Rendering::CTextRendering::KeyTreeItem::mappedKey(), Rendering::CTextRendering::KeyTreeItem::modules(), CSwordModuleInfo::name(), CSwordVerseKey::setIntros(), CSwordVerseKey::setKey(), Rendering::CTextRendering::KeyTreeItem::settings(), CSwordVerseKey::shortText(), CSwordModuleInfo::type(), CSwordVerseKey::upperBound(), and CSwordVerseKey::verse().
|
overrideprotectedvirtual |
Reimplemented from Rendering::CTextRendering.
Reimplemented in BtPrinter.
Definition at line 218 of file cdisplayrendering.cpp.
References CDisplayTemplateMgr::activeTemplateName(), Rendering::CTextRendering::collectModules(), CDisplayTemplateMgr::fillTemplate(), CDisplayTemplateMgr::instance(), CDisplayTemplateMgr::Settings::langAbbrev, m_displayTemplateName, CDisplayTemplateMgr::Settings::modules, and CDisplayTemplateMgr::Settings::textDirection.
|
static |
Definition at line 210 of file cdisplayrendering.cpp.
Referenced by entryLink().
QString Rendering::CDisplayRendering::renderDisplayEntry | ( | BtConstModuleList const & | modules, |
QString const & | key, | ||
CTextRendering::KeyTreeItem::Settings::KeyRenderingFace | keyRendering = CTextRendering::KeyTreeItem::Settings::CompleteShort |
||
) | const |
Definition at line 55 of file cdisplayrendering.cpp.
References CSwordModuleInfo::Bible, BT_ASSERT, CSwordVerseKey::chapter(), CSwordModuleInfo::Commentary, CSwordVerseKey::key(), Rendering::CTextRendering::KeyTreeItem::Settings::NoKey, CSwordKey::rawText(), Rendering::CTextRendering::renderKeyTree(), CSwordVerseKey::setChapter(), CSwordVerseKey::setIntros(), CSwordVerseKey::setKey(), CSwordVerseKey::setVerse(), CSwordModuleInfo::swordModule(), CSwordModuleInfo::type(), and CSwordVerseKey::verse().
Referenced by BtModuleTextModel::bookData(), BtModuleTextModel::lexiconData(), and BtModuleTextModel::verseData().
|
inlinenoexcept |
Definition at line 40 of file cdisplayrendering.h.
References displayTemplateName(), and m_displayTemplateName.
Referenced by CDisplaySettingsPage::updateStylePreview().
|
private |
Definition at line 61 of file cdisplayrendering.h.
Referenced by displayTemplateName(), finishText(), and setDisplayTemplateName().