Logo Search packages:      
Sourcecode: djvulibre version File versions

void DjVuDocEditor::write ( const GP< ByteStream > &  str,
bool  force_djvm = false 
) [virtual]

Saves the document in the {new bundled} format. All the data is "bundled" into one file and this file is written into the passed stream.

If force_djvm# is TRUE# then even one page documents will be saved in the DJVM BUNDLED# format (inside a FORM:DJVM#);

{ Plugin Warning}. This function will read contents of the whole document. Thus, if you call it from the main thread (the thread, which transfers data from Netscape), the plugin will block.

Reimplemented from DjVuDocument.

Definition at line 1867 of file DjVuDocEditor.cpp.

References DjVuDocument::get_pages_num(), get_thumbnails_num(), remove_thumbnails(), and DjVuDocument::write().

{
  DEBUG_MSG("DjVuDocEditor::write()\n");
  DEBUG_MAKE_INDENT(3);
  if (get_thumbnails_num()==get_pages_num())
  {
    file_thumbnails();
  }else
  { 
    remove_thumbnails();
  }
  clean_files_map();
  DjVuDocument::write(gbs,force_djvm);
}


Generated by  Doxygen 1.6.0   Back to index