summaryrefslogtreecommitdiffstats
path: root/bibletime/frontend/cprinter.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-10 05:14:00 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-10 05:14:00 +0000
commitfa949b6b7fa553547f26305d4227e8baa0091c1f (patch)
tree9199255f7d3e0f276f6f53000f13fb0081f3c4c5 /bibletime/frontend/cprinter.h
downloadbibletime-fa949b6b7fa553547f26305d4227e8baa0091c1f.tar.gz
bibletime-fa949b6b7fa553547f26305d4227e8baa0091c1f.zip
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
Diffstat (limited to 'bibletime/frontend/cprinter.h')
-rw-r--r--bibletime/frontend/cprinter.h56
1 files changed, 56 insertions, 0 deletions
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 <qobject.h>
+
+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