kviewshell
DjVuTXT::Zone Class Reference
Data structure representing document textual components. More...
#include <DjVuText.h>
Public Member Functions | |
Zone * | append_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 |
Zone () | |
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.
| |
const Zone * | get_parent (void) const |
Public Attributes | |
GList< Zone > | children |
GRect | rect |
int | text_length |
int | text_start |
enum ZoneType | ztype |
Detailed Description
Data structure representing document textual components.The text structure is represented by a hierarchy of rectangular zones.
Definition at line 124 of file DjVuText.h.
Constructor & Destructor Documentation
DjVuTXT::Zone::Zone | ( | ) |
Definition at line 98 of file DjVuText.cpp.
Member Function Documentation
DjVuTXT::Zone * DjVuTXT::Zone::append_child | ( | ) |
Appends another subzone inside this zone.
The new zone is initialized with an empty rectangle, empty text, and has the same type as this zone.
Definition at line 104 of file DjVuText.cpp.
void DjVuTXT::Zone::find_zones | ( | GList< Zone * > & | list, | |
const int | string_start, | |||
const int | string_end | |||
) | const |
Find the zones used by the specified string and append them to the list.
Definition at line 410 of file DjVuText.cpp.
const DjVuTXT::Zone * DjVuTXT::Zone::get_parent | ( | void | ) | const [inline] |
Finds the smallest rectangles and appends them to the list after padding the smallest unit to fit width or height for the parent rectangle and adding the number of specified pixels.
Definition at line 456 of file DjVuText.cpp.
Finds the smallest rectangles and appends them to the list.
Definition at line 440 of file DjVuText.cpp.
void DjVuTXT::Zone::get_text_with_rect | ( | const GRect & | box, | |
int & | string_start, | |||
int & | string_end | |||
) | const |
Find the text_start and text_end indicated by the given box.
Definition at line 382 of file DjVuText.cpp.
Member Data Documentation
The documentation for this class was generated from the following files: