From fa949b6b7fa553547f26305d4227e8baa0091c1f Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 10 Sep 2010 05:14:00 +0000 Subject: Added initial Trinity version of BibleTime git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/bibletime@1173688 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- bibletime/frontend/cprinter.h | 56 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 bibletime/frontend/cprinter.h (limited to 'bibletime/frontend/cprinter.h') diff --git a/bibletime/frontend/cprinter.h b/bibletime/frontend/cprinter.h new file mode 100644 index 0000000..fd28280 --- /dev/null +++ b/bibletime/frontend/cprinter.h @@ -0,0 +1,56 @@ +/********* +* +* This file is part of BibleTime's source code, http://www.bibletime.info/. +* +* Copyright 1999-2006 by the BibleTime developers. +* The BibleTime source code is licensed under the GNU General Public License version 2.0. +* +**********/ + + + +#ifndef CPRINTER_H +#define CPRINTER_H + +//BibleTime backend +#include "backend/cswordbackend.h" +#include "backend/cdisplayrendering.h" + +//BibleTime frontend +#include "frontend/cbtconfig.h" + +//Qt includes +#include + +class KHTMLPart; + +namespace Printing { + + /** + * The CPrinter class manages the print item queue and the printing of them to the printer. + * + * @author The BibleTime team + */ +class CPrinter : public QObject, public Rendering::CDisplayRendering { + Q_OBJECT +public: + CPrinter( + QObject *parent, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions + ); + + virtual ~CPrinter(); + + void printKeyTree( KeyTree& ); + +protected: + virtual const QString entryLink(const KeyTreeItem& item, CSwordModuleInfo* const module); + virtual const QString renderEntry( const KeyTreeItem&, CSwordKey* = 0 ); + virtual const QString finishText(const QString& arg1, KeyTree& tree); + +private: + KHTMLPart* m_htmlPart; + }; + +} + +#endif -- cgit v1.2.1