• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kviewshell

DjVuTXT::Zone

DjVuTXT::Zone Class Reference

Data structure representing document textual components. More...

#include <DjVuText.h>

List of all members.


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.

Author:
Andrei Erofeev <eaf@geocities.com>
Version:
$Id: DjVuText.h,v 1.10 2003/11/07 22:08:21 leonb Exp $#


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]

Find out this Zone's parent.

Definition at line 219 of file DjVuText.h.

void DjVuTXT::Zone::get_smallest ( GList< GRect > &  list,
const int  padding 
) const

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.

void DjVuTXT::Zone::get_smallest ( GList< GRect > &  list  )  const

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

GList<Zone> DjVuTXT::Zone::children

List of children zone.

Definition at line 137 of file DjVuText.h.

GRect DjVuTXT::Zone::rect

Rectangle spanned by the zone.

Definition at line 131 of file DjVuText.h.

int DjVuTXT::Zone::text_length

Length of the zone text in string textUTF8#.

Definition at line 135 of file DjVuText.h.

int DjVuTXT::Zone::text_start

Position of the zone text in string textUTF8#.

Definition at line 133 of file DjVuText.h.

enum ZoneType DjVuTXT::Zone::ztype

Type of the zone.

Definition at line 129 of file DjVuText.h.


The documentation for this class was generated from the following files:
  • DjVuText.h
  • DjVuText.cpp

kviewshell

Skip menu "kviewshell"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kviewshell
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal