Switch to side-by-side view

--- a/src/query/docseqhist.cpp
+++ b/src/query/docseqhist.cpp
@@ -24,6 +24,7 @@
 #include "docseqhist.h"
 #include "rcldb.h"
 #include "fileudi.h"
+#include "internfile.h"
 
 bool DocSequenceHistory::getDoc(int num, Rcl::Doc &doc, string *sh) 
 {
@@ -66,6 +67,15 @@
     return ret;
 }
 
+bool DocSequenceHistory::getEnclosing(Rcl::Doc& doc, Rcl::Doc& pdoc) 
+{
+    string udi;
+    if (!FileInterner::getEnclosing(doc.url, doc.ipath, pdoc.url, pdoc.ipath,
+                                    udi))
+        return false;
+    return m_db->getDoc(udi, pdoc);
+}
+
 int DocSequenceHistory::getResCnt()
 {	
     if (m_hlist.empty())