BibleTime
btprinter.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#include <QObject>
16#include "../backend/rendering/cdisplayrendering.h"
17
18
19/** \brief Manages the print item queue and printing. */
20class BtPrinter final: public QObject, public Rendering::CDisplayRendering {
21
22 Q_OBJECT
23
24public: // methods:
25
28 QObject * const parent = nullptr);
29
30 void printKeyTree(KeyTree const &);
31
32private: // methods:
33
34 QString entryLink(KeyTreeItem const & item,
35 CSwordModuleInfo const & module) const override;
36
37 QString renderEntry(KeyTreeItem const & item,
38 CSwordKey * const key = nullptr) const override;
39 QString finishText(QString const & text, KeyTree const & tree)
40 const override;
41
42};
Manages the print item queue and printing.
Definition btprinter.h:20
QString renderEntry(KeyTreeItem const &item, CSwordKey *const key=nullptr) const override
Definition btprinter.cpp:77
void printKeyTree(KeyTree const &)
Definition btprinter.cpp:43
QString entryLink(KeyTreeItem const &item, CSwordModuleInfo const &module) const override
Definition btprinter.cpp:53
QString finishText(QString const &text, KeyTree const &tree) const override
Definition btprinter.cpp:96
Rendering for the html display widget.
std::list< KeyTreeItem > KeyTree
FilterOptions const & filterOptions() const noexcept
DisplayOptions const & displayOptions() const noexcept