kviewshell
DjVuText.cpp File Reference
#include "DjVuText.h"
#include "IFFByteStream.h"
#include "BSByteStream.h"
#include "debug.h"
#include <ctype.h>
Include dependency graph for DjVuText.cpp:
Go to the source code of this file.
Functions | |
static GUTF8String | end_tag (const int layer) |
static GUTF8String | end_tag (const DjVuTXT::ZoneType zone) |
static GUTF8String | indent (int spaces) |
static bool | intersects_zone (GRect box, const GRect &zone) |
template<class TYPE > | |
static TYPE | min (TYPE a, TYPE b) |
static GUTF8String | start_tag (const int layer) |
static GUTF8String | start_tag (const DjVuTXT::ZoneType zone, const GUTF8String &attributes) |
static GUTF8String | start_tag (const DjVuTXT::ZoneType zone) |
static GUTF8String | tolayer (int &layer, const DjVuTXT::ZoneType next_layer) |
static void | writeText (ByteStream &str_out, const GUTF8String &textUTF8, const DjVuTXT::ZoneType zlayer, const GList< DjVuTXT::Zone > &children, const int WindowHeight) |
static void | writeText (ByteStream &str_out, const GUTF8String &textUTF8, const DjVuTXT::Zone &zone, const int WindowHeight) |
Variables | |
static const char * | tags [8] |
static const int | tags_size = sizeof(tags)/sizeof(const char *) |
Function Documentation
static GUTF8String end_tag | ( | const int | layer | ) | [inline, static] |
Definition at line 837 of file DjVuText.cpp.
static GUTF8String end_tag | ( | const DjVuTXT::ZoneType | zone | ) | [static] |
Definition at line 815 of file DjVuText.cpp.
static GUTF8String indent | ( | int | spaces | ) | [static] |
Definition at line 744 of file DjVuText.cpp.
Definition at line 370 of file DjVuText.cpp.
template<class TYPE >
static TYPE min | ( | TYPE | a, | |
TYPE | b | |||
) | [inline, static] |
Definition at line 85 of file DjVuText.cpp.
static GUTF8String start_tag | ( | const int | layer | ) | [inline, static] |
Definition at line 808 of file DjVuText.cpp.
static GUTF8String start_tag | ( | const DjVuTXT::ZoneType | zone, | |
const GUTF8String & | attributes | |||
) | [static] |
Definition at line 786 of file DjVuText.cpp.
static GUTF8String start_tag | ( | const DjVuTXT::ZoneType | zone | ) | [static] |
Definition at line 764 of file DjVuText.cpp.
static GUTF8String tolayer | ( | int & | layer, | |
const DjVuTXT::ZoneType | next_layer | |||
) | [static] |
Definition at line 843 of file DjVuText.cpp.
static void writeText | ( | ByteStream & | str_out, | |
const GUTF8String & | textUTF8, | |||
const DjVuTXT::ZoneType | zlayer, | |||
const GList< DjVuTXT::Zone > & | children, | |||
const int | WindowHeight | |||
) | [static] |
Definition at line 864 of file DjVuText.cpp.
static void writeText | ( | ByteStream & | str_out, | |
const GUTF8String & | textUTF8, | |||
const DjVuTXT::Zone & | zone, | |||
const int | WindowHeight | |||
) | [static] |
Definition at line 888 of file DjVuText.cpp.
Variable Documentation
const char* tags[8] [static] |
Initial value:
{ 0, "HIDDENTEXT", "PAGECOLUMN", "REGION", "PARAGRAPH", "LINE", "WORD", "CHARACTER" }
Definition at line 752 of file DjVuText.cpp.
Definition at line 761 of file DjVuText.cpp.