Switch to unified view

a/src/qtgui/plaintorich.h b/src/qtgui/plaintorich.h
...
...
14
 *   Free Software Foundation, Inc.,
14
 *   Free Software Foundation, Inc.,
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 */
16
 */
17
#ifndef _PLAINTORICH_H_INCLUDED_
17
#ifndef _PLAINTORICH_H_INCLUDED_
18
#define _PLAINTORICH_H_INCLUDED_
18
#define _PLAINTORICH_H_INCLUDED_
19
/* @(#$Id: plaintorich.h,v 1.6 2006-02-07 09:44:33 dockes Exp $  (C) 2004 J.F.Dockes */
19
/* @(#$Id: plaintorich.h,v 1.7 2006-09-13 14:57:56 dockes Exp $  (C) 2004 J.F.Dockes */
20
20
21
#include <string>
21
#include <string>
22
22
23
/**
23
/**
24
 * Transform plain text into qt rich text for the preview window.
24
 * Transform plain text into qt rich text for the preview window.
25
 *
25
 *
26
 * We mainly escape characters like < or &, and add qt rich text tags to 
26
 * We mainly escape characters like < or &, and add qt rich text tags to 
27
 * colorize the query terms.
27
 * colorize the query terms.
28
 * 
28
 * 
29
 * @param in          raw text out of internfile.
29
 * @param in          raw text out of internfile.
30
 * @param terms       list of query terms
30
 * @param out         rich text output
31
 * @param termoffsets output: character offsets where we find terms.
31
 * @param terms       list of query terms. These are out of Rcl::Db and dumb
32
 * @param firstTerm   out: value of the first search term in text.
33
 * @param noHeader    if true don't output header (<qt><title>...)
32
 */
34
 */
33
extern bool plaintorich(const string &in, string &out,
35
extern bool plaintorich(const string &in, string &out,
34
            const list<string>& terms,
36
            const list<string>& terms,
35
          string* firstTerm);
37
          string* firstTerm, bool noHeader = false);
36
38
37
#endif /* _PLAINTORICH_H_INCLUDED_ */
39
#endif /* _PLAINTORICH_H_INCLUDED_ */