Bibletime – a bible study tool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cbookdisplay.h 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // C++ Interface: cbookdisplay
  3. //
  4. // Description:
  5. //
  6. //
  7. // Author: The BibleTime team <info@bibletime.info>, (C) 2004
  8. //
  9. // Copyright: See COPYING file that comes with this distribution
  10. //
  11. //
  12. #ifndef RENDERINGCBOOKDISPLAY_H
  13. #define RENDERINGCBOOKDISPLAY_H
  14. #include "centrydisplay.h"
  15. class CSwordTreeKey;
  16. namespace Rendering {
  17. class CTextRendering::KeyTree;
  18. /**
  19. * A CEntryDisplay implementation which works on tree-based GenBook modules
  20. * of Sword.
  21. * @short CEntryDisplay implementation for GenBook modules,
  22. * @author The BibleTime team
  23. */
  24. class CBookDisplay : public CEntryDisplay {
  25. public: // Public methods
  26. virtual ~CBookDisplay() {}
  27. /**
  28. * Returns the rendered text using the modules in the list and using the key parameter.
  29. * The displayoptions and filter options are used, too.
  30. */
  31. virtual const TQString text( const ListCSwordModuleInfo& modules, const TQString& key, const CSwordBackend::DisplayOptions displayOptions, const CSwordBackend::FilterOptions filterOptions);
  32. protected:
  33. void setupRenderTree(CSwordTreeKey* swordTree, CTextRendering::KeyTree* renderTree, const TQString& highlightKey);
  34. };
  35. };
  36. #endif