Switch to unified view

a/src/query/docseq.h b/src/query/docseq.h
...
...
111
111
112
    /** Get estimated total count in results */
112
    /** Get estimated total count in results */
113
    virtual int getResCnt() = 0;
113
    virtual int getResCnt() = 0;
114
114
115
    /** Get title for result list */
115
    /** Get title for result list */
116
    virtual std::string title() {return m_title;}
116
    virtual std::string title() 
117
    {
118
  return m_title;
119
    }
117
120
121
    /** Can do snippets ? */
122
    virtual bool snippetsCapable()
123
    {
124
  return false;
125
    }
118
    /** Get description for underlying query */
126
    /** Get description for underlying query */
119
    virtual std::string getDescription() = 0;
127
    virtual std::string getDescription() = 0;
120
128
121
    /** Get search terms (for highlighting abstracts). Some sequences
129
    /** Get search terms (for highlighting abstracts). Some sequences
122
     * may have no associated search terms. Implement this for them. */
130
     * may have no associated search terms. Implement this for them. */
...
...
168
                 std::vector<std::pair<int, std::string> >& abs) 
176
                 std::vector<std::pair<int, std::string> >& abs) 
169
    {
177
    {
170
    if (m_seq.isNull())
178
    if (m_seq.isNull())
171
        return false;
179
        return false;
172
    return m_seq->getAbstract(doc, abs);
180
    return m_seq->getAbstract(doc, abs);
181
    }
182
183
    virtual bool snippetsCapable()
184
    {
185
  if (m_seq.isNull())
186
      return false;
187
  return m_seq->snippetsCapable();
173
    }
188
    }
174
    virtual std::string getDescription() 
189
    virtual std::string getDescription() 
175
    {
190
    {
176
    if (m_seq.isNull())
191
    if (m_seq.isNull())
177
        return "";
192
        return "";