Bibletime – a bible study tool
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

chtmlexportrendering.h 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // C++ Interface: chtmlexportrendering
  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 RENDERINGCHTMLEXPORTRENDERING_H
  13. #define RENDERINGCHTMLEXPORTRENDERING_H
  14. #include "cswordbackend.h"
  15. #include "ctextrendering.h"
  16. #include "frontend/cbtconfig.h"
  17. namespace Rendering {
  18. /**
  19. * This CTextRenerding implementation
  20. * creates HTML specially made for export as HTML files.
  21. * @short HTML rendering for export.
  22. * @author The BibleTime team
  23. */
  24. class CHTMLExportRendering : public CTextRendering {
  25. public:
  26. struct Settings {
  27. Settings(const bool text = true) {
  28. addText = text;
  29. };
  30. bool addText;
  31. };
  32. CHTMLExportRendering(
  33. const Settings& settings,
  34. CSwordBackend::DisplayOptions displayOptions = CBTConfig::getDisplayOptionDefaults(),
  35. CSwordBackend::FilterOptions filterOptions = CBTConfig::getFilterOptionDefaults()
  36. );
  37. virtual ~CHTMLExportRendering();
  38. protected:
  39. virtual const TQString renderEntry( const KeyTreeItem&, CSwordKey* = 0 );
  40. virtual const TQString finishText( const TQString&, KeyTree& tree );
  41. virtual const TQString entryLink( const KeyTreeItem& item, CSwordModuleInfo* module );
  42. virtual void initRendering();
  43. CSwordBackend::DisplayOptions m_displayOptions;
  44. CSwordBackend::FilterOptions m_filterOptions;
  45. Settings m_settings;
  46. };
  47. }
  48. #endif