Logo Search packages:      
Sourcecode: djvulibre version File versions

DjVuTXT::Zone Class Reference

#include <DjVuText.h>

List of all members.


Detailed Description

Data structure representing document textual components. The text structure is represented by a hierarchy of rectangular zones.

Definition at line 126 of file DjVuText.h.


Public Member Functions

Zoneappend_child ()
void find_zones (GList< Zone * > &list, const int string_start, const int string_end) const
void get_smallest (GList< GRect > &list, const int padding) const
void get_smallest (GList< GRect > &list) const
void get_text_with_rect (const GRect &box, int &string_start, int &string_end) const
DjVuText.h
Files #"DjVuText.h"# and #"DjVuText.cpp"# implement the mechanism for text in DjVuImages.

This file implements annotations understood by the DjVu plugins and encoders.

using: contents of TXT*# chunks.

Contents of the FORM:TEXT# should be passed to {DjVuText::decode}() for parsing, which initializes {DjVuText::TXT} and fills them with decoded data. Implements support for DjVuImage hidden text.

Author:
Andrei Erofeev <eaf@geocities.com>
Version:
#
Id
DjVuText.h,v 1.12 2008/01/27 11:36:27 leonb Exp
#

const Zoneget_parent (void) const
 Find out this Zone's parent.

Public Attributes

GList< Zonechildren
GRect rect
int text_length
int text_start
enum ZoneType ztype

Private Member Functions

void cleartext ()
void decode (const GP< ByteStream > &bs, int maxtext, const Zone *parent=0, const Zone *prev=0)
void encode (const GP< ByteStream > &bs, const Zone *parent=0, const Zone *prev=0) const
unsigned int memuse () const
void normtext (const char *instr, GUTF8String &outstr)

Private Attributes

const Zonezone_parent

Static Private Attributes

static const int version = 1

Friends

class DjVuTXT

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index