DjVu Navigation Directory.
DjVu Navigation Directory.This class implements the navigation directory of a multipage DjVu document - basically a list of pages that this document is composed of. We would like to emphasize, that this is the list of namely pages, not files. Any page may include any number of additional files. When you've got an all-in-one-file multipage DjVu document (DjVm archive) you may get the files list from DjVmDir0 class.
The DjVuNavDir class can decode and encode the navigation directory from NDIR IFF chunk. It's normally created by the library during decoding procedure and can be accessed like any other component of the DjVuImage being decoded.
In a typical multipage DjVu document the navigation directory is stored in a separate IFF file containing only one chunk: NDIR chunk. This file should be included (by means of the INCL chunk) into every page of the document to enable the navigation.
DjVuNavDir(ByteStream & str, const char * dir_url)
void decode(ByteStream & str)
void encode(ByteStream & str)
void insert_page(int where, const char * name)
name - The name of the file corresponding to this page.
The name may not contain slashes. The file may include
other files. void delete_page(int page_num)
int get_pages_num(void) const
int url_to_page(const GURL & url) const
int name_to_page(const char * name) const
GURL page_to_url(int page) const
GString page_to_name(int page) const
Alphabetic index HTML hierarchy of classes or Java