From 5b5fd0dce407556f98ed8edee89dc830bf1437b1 Mon Sep 17 00:00:00 2001 From: "Roberto C. Sanchez" Date: Tue, 21 Oct 2014 22:48:17 -0400 Subject: Imported Upstream version 1.6.5.1 --- bibletime/backend/cbookdisplay.h | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 bibletime/backend/cbookdisplay.h (limited to 'bibletime/backend/cbookdisplay.h') 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 , (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 -- cgit v1.2.3