|
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.12 2007-01-19 15:22:50 dockes Exp $ (C) 2004 J.F.Dockes */
|
19 |
/* @(#$Id: plaintorich.h,v 1.13 2007-05-23 09:19:48 dockes Exp $ (C) 2004 J.F.Dockes */
|
20 |
|
20 |
|
21 |
#include <string>
|
21 |
#include <string>
|
22 |
|
22 |
|
23 |
// A data struct to hold words and groups of words to be highlighted
|
23 |
// A data struct to hold words and groups of words to be highlighted
|
24 |
struct HiliteData {
|
24 |
struct HiliteData {
|
|
... |
|
... |
44 |
extern bool plaintorich(const string &in, string &out,
|
44 |
extern bool plaintorich(const string &in, string &out,
|
45 |
const HiliteData& hdata,
|
45 |
const HiliteData& hdata,
|
46 |
bool noHeader = false,
|
46 |
bool noHeader = false,
|
47 |
bool fft = false);
|
47 |
bool fft = false);
|
48 |
|
48 |
|
49 |
extern const char *firstTermAnchorName;
|
49 |
extern string termAnchorName(int i);
|
50 |
|
50 |
|
51 |
#define QT_SCROLL_TO_ANCHOR_BUG
|
51 |
#define QT_SCROLL_TO_ANCHOR_BUG
|
52 |
#ifdef QT_SCROLL_TO_ANCHOR_BUG
|
52 |
#ifdef QT_SCROLL_TO_ANCHOR_BUG
|
53 |
// For some reason, can't get scrollToAnchor() to work. We use a string made
|
53 |
// For some reason, can't get scrollToAnchor() to work. We use a string made
|
54 |
// of a few rare utf8 chars as a beacon for the match area.
|
54 |
// of a few rare utf8 chars as a beacon for the match area.
|