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