Logo Search packages:      
Sourcecode: djvulibre version File versions

GP< ByteStream > DjVuFile::get_merged_anno ( const GList< GURL > &  ignore_list,
int *  max_level_ptr 
)

Goes down the hierarchy of DjVuFile::s and merges their annotations. (shouldn't this one be private?).

Parameters:
max_level_ptr If this pointer is not ZERO, the function will use it to store the maximum level at which annotations were found. Top-level page files have ZERO level#.
ignore_list The function will not process included DjVuFile::s with URLs matching those mentioned in this ignore_list#.

Definition at line 1661 of file DjVuFile.cpp.

References ByteStream::create(), get_merged_anno(), ByteStream::seek(), and ByteStream::tell().

{
  DEBUG_MSG("DjVuFile::get_merged_anno()\n");
  GP<ByteStream> gstr(ByteStream::create());
  GMap<GURL, void *> map;
  int max_level=0;
  get_merged_anno(this, gstr, ignore_list, 0, max_level, map);
  if (max_level_ptr)
    *max_level_ptr=max_level;
  ByteStream &str=*gstr;
  if (!str.tell()) 
  {
    gstr=0;
  }else
  {
    str.seek(0);
  }
  return gstr;
}


Generated by  Doxygen 1.6.0   Back to index