Implements DjVu multipage document directory.
Implements DjVu multipage document directory. There are currently two multipage DjVu formats supported: bundled and indirect. In the first format all component files composing a given document are packaged (or bundled) into one file, in the second one every page and component is stored in a separate file and there is one more file, which contains the list of all others.The multipage document directory lists all component files composing the given document, helps to access every file, identify pages and maintain user-specified shortcuts. Every directory record describes a file composing the document. Each file is identified by a small string named the identifier (ID). Each file may also contain a file name and a title.
The DjVmDir class represents a multipage document directory. Its main purpose is to encode and decode the document directory when writing or reading the DIRM chunk. Normally you don't have to create this class yourself. It's done automatically when DjVmDoc class initializes itself. It may be useful though to be able to access records in the directory because some classes (like DjVuDocument and DjVmDoc) return a pointer to DjVmDir in some cases.
void decode(ByteStream & stream)
void encode(ByteStream & stream) const
bool is_indirect(void) const
bool is_bundled(void) const
GP<File> page_to_file(int page_num) const
GP<File> name_to_file(const GString & name) const
GP<File> id_to_file(const char * id) const
GP<File> title_to_file(const char * title) const
int get_file_pos(const File * f) const
int get_page_pos(int page_num) const
GPList<File> get_files_list(void) const
int get_files_num(void) const
int get_pages_num(void) const
GP<File> get_shared_anno_file(void) const
Changes the title of the file with ID void set_file_title(const char * id, const char * title);
Alphabetic index HTML hierarchy of classes or Java