Switch to unified view

a/src/query/docseqdb.h b/src/query/docseqdb.h
...
...
25
/** A DocSequence from a Db query */
25
/** A DocSequence from a Db query */
26
class DocSequenceDb : public DocSequence {
26
class DocSequenceDb : public DocSequence {
27
 public:
27
 public:
28
    DocSequenceDb(RefCntr<Rcl::Query> q, const string &t, 
28
    DocSequenceDb(RefCntr<Rcl::Query> q, const string &t, 
29
          RefCntr<Rcl::SearchData> sdata);
29
          RefCntr<Rcl::SearchData> sdata);
30
    virtual ~DocSequenceDb();
30
    virtual ~DocSequenceDb() {}
31
    virtual bool getDoc(int num, Rcl::Doc &doc, string * = 0);
31
    virtual bool getDoc(int num, Rcl::Doc &doc, string * = 0);
32
    virtual int getResCnt();
32
    virtual int getResCnt();
33
    virtual void getTerms(HighlightData& hld);
33
    virtual void getTerms(HighlightData& hld);
34
34
35
    // Called to fill-up the snippets window. Ignoers
35
    // Called to fill-up the snippets window. Ignoers
36
    // buildabstract/replaceabstract and syntabslen
36
    // buildabstract/replaceabstract and syntabslen
37
    virtual bool getAbstract(Rcl::Doc &doc, vector<Rcl::Snippet>&);
37
    virtual bool getAbstract(Rcl::Doc &doc, vector<Rcl::Snippet>&);
38
38
39
    virtual bool getAbstract(Rcl::Doc &doc, vector<string>&);
39
    virtual bool getAbstract(Rcl::Doc &doc, vector<string>&);
40
    virtual int getFirstMatchPage(Rcl::Doc&, std::string& term);
40
    virtual int getFirstMatchPage(Rcl::Doc&, std::string& term);
41
    virtual Rcl::Db *getDb();
42
    virtual bool docDups(const Rcl::Doc& doc, std::vector<Rcl::Doc>& dups);
41
    virtual bool docDups(const Rcl::Doc& doc, std::vector<Rcl::Doc>& dups);
43
    virtual string getDescription();
42
    virtual string getDescription();
44
    virtual list<string> expand(Rcl::Doc &doc);
43
    virtual list<string> expand(Rcl::Doc &doc);
45
    virtual bool canFilter() {return true;}
44
    virtual bool canFilter() {return true;}
46
    virtual bool setFiltSpec(const DocSeqFiltSpec &filtspec);
45
    virtual bool setFiltSpec(const DocSeqFiltSpec &filtspec);
...
...
56
    {
55
    {
57
    return true;
56
    return true;
58
    }
57
    }
59
    virtual string title();
58
    virtual string title();
60
59
60
protected:
61
    virtual Rcl::Db *getDb();
61
 private:
62
private:
62
    RefCntr<Rcl::Query>      m_q;
63
    RefCntr<Rcl::Query>      m_q;
63
    RefCntr<Rcl::SearchData> m_sdata;
64
    RefCntr<Rcl::SearchData> m_sdata;
64
    RefCntr<Rcl::SearchData> m_fsdata; // Filtered 
65
    RefCntr<Rcl::SearchData> m_fsdata; // Filtered 
65
    int                      m_rescnt;
66
    int                      m_rescnt;
66
    bool                     m_queryBuildAbstract;
67
    bool                     m_queryBuildAbstract;