Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

void DjVmDoc::insert_file ( const GP< DataPool > &  pool,
DjVmDir::File::FILE_TYPE  file_type,
const GUTF8String name,
const GUTF8String id,
const GUTF8String title = GUTF8String(),
int  pos = -1 

Inserts a file into the document.

pool Data pool containing file data.
file_type Describes the type of the file to be inserted. See {DjVmDir::File} for details.
name Name of the file in the document (e.g. an URL).
id Identifier of the file (as used in INCL chunks).
title Optional title of the file (shown in browsers).
pos Position of the file in the document (default is append).

Definition at line 210 of file DjVmDoc.cpp.

References insert_file().

   const GP<DjVmDir::File> file(
     DjVmDir::File::create(name, id, title, file_type));
      // Call low level insert
   insert_file(file, pool, pos);

Generated by  Doxygen 1.6.0   Back to index