class DjVuAnno: public GPEnabled

Display annotation component.

Inheritance:


Public Fields

[more]GString raw
Raw annotation data.

Public Methods

[more] DjVuAnno()
Constructs an empty annotation object.
[more]void decode(ByteStream &bs)
Decode an annotation chunk.
[more]void encode(ByteStream &bs)
Encodes the annotation chunk.
[more]unsigned int get_memory_usage() const
Returns the number of bytes needed by this data structure.


Inherited from GPEnabled:

Public Methods

oGPEnabled& operator=(const GPEnabled & obj)

Protected Fields

ovolatile int count

Protected Methods

ovirtual void destroy()


Documentation

Display annotation component. The annotation chunk contains directives for displaying DjVu image, such as hyperlinks, border color, centering, preferred zoom factor, etc. Directives are encoded in plain text using a lisp like syntax.

Todo --- The decoding/encoding functions should actually convert the annotation chunk into/from an abstract representation of the hyperlinks and display modes.

o DjVuAnno()
Constructs an empty annotation object.

ovoid decode(ByteStream &bs)
Decode an annotation chunk. The annotation data is simply read from ByteStream bs until reaching an end-of-stream marker. This function is normally called after a call to get_chunk.

ovoid encode(ByteStream &bs)
Encodes the annotation chunk. The annotation data is simply written into ByteStream bs with no IFF header. This function is normally called after a call to put_chunk.

ounsigned int get_memory_usage() const
Returns the number of bytes needed by this data structure.

oGString raw
Raw annotation data. The current version of the DjVu Reference Library does not yet use that data.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java