summaryrefslogtreecommitdiff
path: root/bibletime/backend/cbookdisplay.h
diff options
context:
space:
mode:
authorRoberto C. Sanchez <roberto@connexer.com>2014-10-21 22:48:17 -0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-10-21 22:48:17 -0400
commit5b5fd0dce407556f98ed8edee89dc830bf1437b1 (patch)
treecbed58941c0924381dc3e35b66aae684a9410dc2 /bibletime/backend/cbookdisplay.h
parent6533b28dee401c99e5dc6e708939f947a27de726 (diff)
Imported Upstream version 1.6.5.1
Diffstat (limited to 'bibletime/backend/cbookdisplay.h')
-rw-r--r--bibletime/backend/cbookdisplay.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/bibletime/backend/cbookdisplay.h b/bibletime/backend/cbookdisplay.h
new file mode 100644
index 0000000..56fc2f2
--- /dev/null
+++ b/bibletime/backend/cbookdisplay.h
@@ -0,0 +1,45 @@
+//
+// C++ Interface: cbookdisplay
+//
+// Description:
+//
+//
+// Author: The BibleTime team <info@bibletime.info>, (C) 2004
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+//
+#ifndef RENDERINGCBOOKDISPLAY_H
+#define RENDERINGCBOOKDISPLAY_H
+
+#include "centrydisplay.h"
+
+class CSwordTreeKey;
+
+namespace Rendering {
+
+ class CTextRendering::KeyTree;
+
+ /**
+ * A CEntryDisplay implementation which works on tree-based GenBook modules
+ * of Sword.
+ * @short CEntryDisplay implementation for GenBook modules,
+ * @author The BibleTime team
+ */
+
+class CBookDisplay : public CEntryDisplay {
+public: // Public methods
+ virtual ~CBookDisplay() {}
+
+ /**
+ * Returns the rendered text using the modules in the list and using the key parameter.
+ * The displayoptions and filter options are used, too.
+ */
+ virtual const QString text( const ListCSwordModuleInfo& modules, const QString& key, const CSwordBackend::DisplayOptions displayOptions, const CSwordBackend::FilterOptions filterOptions);
+
+protected:
+ void setupRenderTree(CSwordTreeKey* swordTree, CTextRendering::KeyTree* renderTree, const QString& highlightKey);
+ };
+};
+
+#endif