#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "WPS4.h"
#include "WPSDocument.h"
#include <libwpd-stream/WPXStream.h>
#include "WPSHeader.h"
#include "libwps_internal.h"
Classes | |
struct | _fmap |
Defines | |
#define | WPS4_FCMAC_OFFSET 0x26 |
#define | WPS4_TEXT_OFFSET 0x100 |
#define | WPS4_ATTRIBUTE_BOLD 0 |
#define | WPS4_ATTRIBUTE_ITALICS 1 |
#define | WPS4_ATTRIBUTE_UNDERLINE 2 |
#define | WPS4_ATTRIBUTE_STRIKEOUT 3 |
#define | WPS4_ATTRIBUTE_SUBSCRIPT 4 |
#define | WPS4_ATTRIBUTE_SUPERSCRIPT 5 |
Functions | |
int | getCodepage (std::string &str) |
Maps some of legacy fonts to modern ones and set encoding accordingly. | |
const char * | WPS2FontNameFromIndex (uint8_t font_n) |
Works version 2 for DOS supports only a specific set of fonts. | |
uint32_t | s_CP1250 (const uint8_t readVal) |
uint32_t | s_CP1251 (const uint8_t readVal) |
Variables | |
static struct _fmap | font_map_s [] |
const uint32_t | WPS4_Color [] |
#define WPS4_ATTRIBUTE_BOLD 0 |
Referenced by WPS4ContentListener::attributeChange(), and WPS4Parser::propertyChangeDelta().
#define WPS4_ATTRIBUTE_ITALICS 1 |
Referenced by WPS4ContentListener::attributeChange(), and WPS4Parser::propertyChangeDelta().
#define WPS4_ATTRIBUTE_STRIKEOUT 3 |
Referenced by WPS4ContentListener::attributeChange(), and WPS4Parser::propertyChangeDelta().
#define WPS4_ATTRIBUTE_SUBSCRIPT 4 |
Referenced by WPS4ContentListener::attributeChange(), and WPS4Parser::propertyChangeDelta().
#define WPS4_ATTRIBUTE_SUPERSCRIPT 5 |
Referenced by WPS4ContentListener::attributeChange(), and WPS4Parser::propertyChangeDelta().
#define WPS4_ATTRIBUTE_UNDERLINE 2 |
Referenced by WPS4ContentListener::attributeChange(), and WPS4Parser::propertyChangeDelta().
#define WPS4_FCMAC_OFFSET 0x26 |
Referenced by WPS4Parser::parse().
#define WPS4_TEXT_OFFSET 0x100 |
int getCodepage | ( | std::string & | str | ) |
Maps some of legacy fonts to modern ones and set encoding accordingly.
[in,out] | str | May contain mapped font name |
Referenced by WPS4Parser::readFontsTable().
uint32_t s_CP1250 | ( | const uint8_t | readVal | ) |
Referenced by WPS4Parser::appendCP().
uint32_t s_CP1251 | ( | const uint8_t | readVal | ) |
Referenced by WPS4Parser::appendCP().
const char* WPS2FontNameFromIndex | ( | uint8_t | font_n | ) |
Works version 2 for DOS supports only a specific set of fonts.
Referenced by WPS4Parser::propertyChange().
struct _fmap font_map_s[] [static] |
Referenced by getCodepage().
const uint32_t WPS4_Color[] |
{ 0, 0, 0x0000FF, 0x00FFFF, 0x00FF00, 0xFF00FF, 0xFF0000, 0xFFFF00, 0x808080, 0xFFFFFF, 0x000080, 0x008080, 0x008000, 0x800080, 0x808000, 0xC0C0C0 }
Referenced by WPS4Parser::propertyChange().