kviewshell
DjVuText Class Reference
#include <DjVuText.h>
Inheritance diagram for DjVuText:
Public Member Functions | |
GP< DjVuText > | copy (void) const |
void | decode (const GP< ByteStream > &bs) |
void | encode (const GP< ByteStream > &bs) |
unsigned int | get_memory_usage () const |
GUTF8String | get_xmlText (const int height) const |
void | writeText (ByteStream &bs, const int height) const |
Static Public Member Functions | |
static GP< DjVuText > | create (void) |
Public Attributes | |
GP< DjVuTXT > | txt |
Protected Member Functions | |
DjVuText (void) |
Detailed Description
Definition at line 225 of file DjVuText.h.
Constructor & Destructor Documentation
DjVuText::DjVuText | ( | void | ) | [inline, protected] |
Definition at line 228 of file DjVuText.h.
Member Function Documentation
void DjVuText::decode | ( | const GP< ByteStream > & | bs | ) |
Decodes a sequence of annotation chunks and merges contents of every chunk with previously decoded information.
This function should be called right after applying {IFFByteStream::get_chunk}() to data from FORM:TEXT#.
Definition at line 686 of file DjVuText.cpp.
void DjVuText::encode | ( | const GP< ByteStream > & | bs | ) |
Encodes all annotations back into a sequence of chunks to be put inside a FORM:TEXT#.
Definition at line 714 of file DjVuText.cpp.
unsigned int DjVuText::get_memory_usage | ( | void | ) | const [inline] |
Returns the number of bytes needed by this data structure.
It's used by caching routines to estimate the size of a {DjVuImage}.
Definition at line 265 of file DjVuText.h.
GUTF8String DjVuText::get_xmlText | ( | const int | height | ) | const |
void DjVuText::writeText | ( | ByteStream & | bs, | |
const int | height | |||
) | const |
Member Data Documentation
Definition at line 256 of file DjVuText.h.
The documentation for this class was generated from the following files: