Switch to unified view

a/src/query/docseq.h b/src/query/docseq.h
...
...
23
23
24
#include "rcldoc.h"
24
#include "rcldoc.h"
25
#include "refcntr.h"
25
#include "refcntr.h"
26
#include "hldata.h"
26
#include "hldata.h"
27
27
28
// Need this for the "Snippet" class def.
29
#include "rclquery.h"
30
28
// A result list entry. 
31
// A result list entry. 
29
struct ResListEntry {
32
struct ResListEntry {
30
    Rcl::Doc doc;
33
    Rcl::Doc doc;
31
    std::string subHeader;
34
    std::string subHeader;
32
};
35
};
...
...
94
    virtual bool getAbstract(Rcl::Doc& doc, std::vector<std::string>& abs) {
97
    virtual bool getAbstract(Rcl::Doc& doc, std::vector<std::string>& abs) {
95
    abs.push_back(doc.meta[Rcl::Doc::keyabs]);
98
    abs.push_back(doc.meta[Rcl::Doc::keyabs]);
96
    return true;
99
    return true;
97
    }
100
    }
98
    virtual bool getAbstract(Rcl::Doc& doc, 
101
    virtual bool getAbstract(Rcl::Doc& doc, 
99
               std::vector<std::pair<int, std::string> >& abs) 
102
               std::vector<Rcl::Snippet>& abs) 
100
    {
103
    {
101
  abs.push_back(std::pair<int, std::string>(0,
104
  abs.push_back(Rcl::Snippet(0, doc.meta[Rcl::Doc::keyabs]));
102
                        doc.meta[Rcl::Doc::keyabs]));
103
    return true;
105
    return true;
104
    }
106
    }
105
    virtual int getFirstMatchPage(Rcl::Doc&) 
107
    virtual int getFirstMatchPage(Rcl::Doc&, std::string&) 
106
    {
108
    {
107
    return -1;
109
    return -1;
108
    }
110
    }
109
111
110
    virtual bool getEnclosing(Rcl::Doc&, Rcl::Doc&) = 0;
112
    virtual bool getEnclosing(Rcl::Doc&, Rcl::Doc&) = 0;
...
...
171
    if (m_seq.isNull())
173
    if (m_seq.isNull())
172
        return false;
174
        return false;
173
    return m_seq->getAbstract(doc, abs);
175
    return m_seq->getAbstract(doc, abs);
174
    }
176
    }
175
    virtual bool getAbstract(Rcl::Doc& doc, 
177
    virtual bool getAbstract(Rcl::Doc& doc, 
176
               std::vector<std::pair<int, std::string> >& abs) 
178
               std::vector<Rcl::Snippet>& abs) 
177
    {
179
    {
178
    if (m_seq.isNull())
180
    if (m_seq.isNull())
179
        return false;
181
        return false;
180
    return m_seq->getAbstract(doc, abs);
182
    return m_seq->getAbstract(doc, abs);
181
    }
183
    }