a/src/query/plaintorich.h b/src/query/plaintorich.h
...
...
29
 * case, we may fail to highligt term groups if they are mixed with HTML 
29
 * case, we may fail to highligt term groups if they are mixed with HTML 
30
 * tags (ex: firstterm <b>2ndterm</b>).
30
 * tags (ex: firstterm <b>2ndterm</b>).
31
 */
31
 */
32
class PlainToRich {
32
class PlainToRich {
33
public:
33
public:
34
    PlainToRich() 
35
        : m_inputhtml(false), m_eolbr(false), m_hdata(0) {
36
    }
37
38
    virtual ~PlainToRich() {}
34
    virtual ~PlainToRich() {}
39
35
40
    void set_inputhtml(bool v) {
36
    void set_inputhtml(bool v) {
41
        m_inputhtml = v;
37
        m_inputhtml = v;
38
    }
39
    void set_activatelinks(bool v) {
40
        m_activatelinks = v;
42
    }
41
    }
43
42
44
    /**
43
    /**
45
     * Transform plain text for highlighting search terms, ie in the
44
     * Transform plain text for highlighting search terms, ie in the
46
     * preview window or result list entries.
45
     * preview window or result list entries.
...
...
87
    virtual std::string startChunk() {
86
    virtual std::string startChunk() {
88
        return cstr_null;
87
        return cstr_null;
89
    }
88
    }
90
89
91
protected:
90
protected:
92
    bool m_inputhtml;
91
    bool m_inputhtml{false};
93
    // Use <br> to break plain text lines (else caller has used a <pre> tag)
92
    // Use <br> to break plain text lines (else caller has used a <pre> tag)
94
    bool m_eolbr; 
93
    bool m_eolbr{false}; 
95
    const HighlightData *m_hdata;
94
    const HighlightData *m_hdata{0};
95
    bool m_activatelinks{false};
96
};
96
};
97
97
98
#endif /* _PLAINTORICH_H_INCLUDED_ */
98
#endif /* _PLAINTORICH_H_INCLUDED_ */