~ubuntu-branches/ubuntu/trusty/bibletime/trusty

« back to all changes in this revision

Viewing changes to src/backend/rendering/chtmlexportrendering.h

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs, Jonathan Marsden, Dmitrijs Ledkovs
  • Date: 2012-04-14 18:11:50 UTC
  • mfrom: (1.3.7)
  • Revision ID: package-import@ubuntu.com-20120414181150-17l2liq7bl7oaxjz
Tags: 2.9.1-1
[ Jonathan Marsden ]
* New upstream version 2.9.1
* debian/patches/*: Remove all patches (incorporated upstream)
* debian/control: bibletime now depends on a matching version of
  bibletime-data.

[ Dmitrijs Ledkovs ]
* Add more strict alternative build-dependency on the libqt4-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 * @short HTML rendering for export.
26
26
 * @author The BibleTime team
27
27
 */
28
 
 
29
 
class CHTMLExportRendering : public CTextRendering {
30
 
 
31
 
    public:
32
 
        struct Settings {
33
 
            Settings(const bool text = true) {
34
 
                addText = text;
35
 
            };
36
 
 
37
 
            bool addText;
38
 
        };
 
28
class CHTMLExportRendering: public CTextRendering {
 
29
 
 
30
    public: /* Methods: */
39
31
 
40
32
        CHTMLExportRendering(
41
 
            const Settings &settings,
 
33
            bool addText,
42
34
            const DisplayOptions &displayOptions = CBTConfig::getDisplayOptionDefaults(),
43
 
            const FilterOptions &filterOptions = CBTConfig::getFilterOptionDefaults()
44
 
        );
45
 
        virtual inline ~CHTMLExportRendering() {};
46
 
 
47
 
    protected:
48
 
        virtual const QString renderEntry( const KeyTreeItem&, CSwordKey* = 0 );
49
 
        virtual const QString finishText( const QString&, KeyTree& tree );
50
 
        virtual const QString entryLink(const KeyTreeItem &item,
51
 
                                        const CSwordModuleInfo *module);
 
35
            const FilterOptions &filterOptions = CBTConfig::getFilterOptionDefaults());
 
36
 
 
37
    protected: /* Methods: */
 
38
 
 
39
        virtual QString renderEntry(const KeyTreeItem &item, CSwordKey * key = 0);
 
40
        virtual QString finishText(const QString &text, const KeyTree &tree);
 
41
        virtual QString entryLink(const KeyTreeItem &item,
 
42
                                  const CSwordModuleInfo *module);
52
43
        virtual void initRendering();
53
44
 
 
45
    protected: /* Fields: */
 
46
 
54
47
        DisplayOptions m_displayOptions;
55
48
        FilterOptions m_filterOptions;
56
 
        Settings m_settings;
57
 
};
58
 
 
59
 
}
 
49
        bool m_addText;
 
50
 
 
51
}; /* class CHTMLExportRendering */
 
52
 
 
53
} /* namespace Rendering */
60
54
 
61
55
#endif