#include "libwpd_internal.h"
#include <libwpd-stream/libwpd-stream.h>
#include <ctype.h>
#include <locale.h>
#include <string>
#include "WP6TibetanMap.h"
#include "WP6FileStructure.h"
#include "WP5FileStructure.h"
#include "WPXFileStructure.h"
#include "libwpd_math.h"
Classes | |
struct | _WPXComplexMap |
Typedefs | |
typedef struct _WPXComplexMap | WPXComplexMap |
Functions | |
uint8_t | readU8 (WPXInputStream *input, WPXEncryption *encryption) |
uint16_t | readU16 (WPXInputStream *input, WPXEncryption *encryption, bool bigendian) |
int16_t | readS16 (WPXInputStream *input, WPXEncryption *encryption, bool bigendian) |
uint32_t | readU32 (WPXInputStream *input, WPXEncryption *encryption, bool bigendian) |
WPXString | readPascalString (WPXInputStream *input, WPXEncryption *encryption) |
WPXString | readCString (WPXInputStream *input, WPXEncryption *encryption) |
static int | findSimpleMap (uint16_t character, const uint32_t **chars, const uint32_t *simpleMap, const size_t simpleMapSize) |
static int | findComplexMap (uint16_t character, const uint32_t **chars, const WPXComplexMap *complexMap) |
int | extendedCharacterWP6ToUCS4 (uint8_t character, uint8_t characterSet, const uint32_t **chars) |
int | extendedCharacterWP5ToUCS4 (uint8_t character, uint8_t characterSet, const uint32_t **chars) |
int | extendedCharacterWP42ToUCS4 (uint8_t character, const uint32_t **chars) |
uint16_t | fixedPointToWPUs (const uint32_t fixedPointNumber) |
double | fixedPointToDouble (const uint32_t fixedPointNumber) |
double | wpuToFontPointSize (const uint16_t wpuNumber) |
int | _extractNumericValueFromRoman (const char romanChar) |
int | _extractDisplayReferenceNumberFromBuf (const WPXString &buf, const WPXNumberingType listType) |
WPXNumberingType | _extractWPXNumberingTypeFromBuf (const WPXString &buf, const WPXNumberingType putativeWPXNumberingType) |
WPXString | _numberingTypeToString (WPXNumberingType t) |
WPXString | doubleToString (const double value) |
int | appleWorldScriptToUCS4 (uint16_t character, const uint32_t **chars) |
Variables | |
static const uint32_t | asciiMap [] |
static const uint32_t | multinationalWP6 [] |
static const WPXComplexMap | multinationalWP6Complex [] |
static const uint32_t | phoneticWP6 [] |
static const uint32_t | boxdrawingWP6 [] |
static const uint32_t | typographicWP6 [] |
static const uint32_t | iconicWP6 [] |
static const uint32_t | mathWP6 [] |
static const uint32_t | mathextWP6 [] |
static const uint32_t | greekWP6 [] |
static const uint32_t | hebrewWP6 [] |
static const uint32_t | cyrillicWP6 [] |
static const uint32_t | japaneseWP6 [] |
static const uint32_t | arabicWP6 [] |
static const uint32_t | arabicScriptWP6 [] |
static const uint32_t | international2WP5 [] |
static const uint32_t | iconicWP5 [] |
static const uint32_t | greekWP5 [] |
static const uint32_t | hebrewWP5 [] |
static const uint32_t | cyrillicWP5 [] |
static const WPXComplexMap | cyrillicWP5Complex [] |
static const uint32_t | japaneseWP5 [] |
static const uint32_t | arabicWP5 [] |
static const WPXComplexMap | arabicWP5Complex [] |
static const uint32_t | arabicScriptWP5 [] |
static const uint32_t | extendedCharactersWP42 [] |
const uint32_t | macRomanCharacterMap [] |
typedef struct _WPXComplexMap WPXComplexMap |
int _extractDisplayReferenceNumberFromBuf | ( | const WPXString & | buf, |
const WPXNumberingType | listType | ||
) |
int _extractNumericValueFromRoman | ( | const char | romanChar) |
Referenced by _extractDisplayReferenceNumberFromBuf().
WPXNumberingType _extractWPXNumberingTypeFromBuf | ( | const WPXString & | buf, |
const WPXNumberingType | putativeWPXNumberingType | ||
) |
WPXString _numberingTypeToString | ( | WPXNumberingType | t) |
int appleWorldScriptToUCS4 | ( | uint16_t | character, |
const uint32_t ** | chars | ||
) |
Referenced by WP3DoubleByteScriptCharacterGroup::parse(), and readPascalString().
WPXString doubleToString | ( | const double | value) |
int extendedCharacterWP42ToUCS4 | ( | uint8_t | character, |
const uint32_t ** | chars | ||
) |
Referenced by WP42ExtendedCharacterGroup::parse().
int extendedCharacterWP5ToUCS4 | ( | uint8_t | character, |
uint8_t | characterSet, | ||
const uint32_t ** | chars | ||
) |
Referenced by WP3ExtendedCharacterGroup::parse(), and WP5ExtendedCharacterGroup::parse().
int extendedCharacterWP6ToUCS4 | ( | uint8_t | character, |
uint8_t | characterSet, | ||
const uint32_t ** | chars | ||
) |
|
static |
Referenced by appleWorldScriptToUCS4(), extendedCharacterWP5ToUCS4(), and extendedCharacterWP6ToUCS4().
|
static |
double fixedPointToDouble | ( | const uint32_t | fixedPointNumber) |
uint16_t fixedPointToWPUs | ( | const uint32_t | fixedPointNumber) |
WPXString readCString | ( | WPXInputStream * | input, |
WPXEncryption * | encryption | ||
) |
Referenced by WP5FontNameStringPoolPacket::_readContents().
WPXString readPascalString | ( | WPXInputStream * | input, |
WPXEncryption * | encryption | ||
) |
int16_t readS16 | ( | WPXInputStream * | input, |
WPXEncryption * | encryption, | ||
bool | bigendian | ||
) |
Referenced by WP6FillStylePacket::_readContents().
uint16_t readU16 | ( | WPXInputStream * | input, |
WPXEncryption * | encryption, | ||
bool | bigendian | ||
) |
Referenced by WP3VariableLengthGroup::_read(), WP5VariableLengthGroup::_read(), WP6VariableLengthGroup::_read(), WP5SpecialHeaderIndex::_read(), WP5GeneralPacketIndex::_read(), WP6PrefixIndice::_read(), WP6SetNumberGroup::_readContents(), WP6DefaultInitialFontPacket::_readContents(), WP1MarginReleaseGroup::_readContents(), WP1LeftRightIndentGroup::_readContents(), WP1BottomMarginGroup::_readContents(), WP1SetTabsGroup::_readContents(), WP1FontIdGroup::_readContents(), WP1TopMarginGroup::_readContents(), WP1LeftIndentGroup::_readContents(), WP3FontGroup::_readContents(), WP6PageGroup::_readContents(), WP5ListFontsUsedPacket::_readContents(), WP6TabGroup::_readContents(), WP3HeaderFooterGroup::_readContents(), WP5TableEOLGroup::_readContents(), WP6CommentAnnotationPacket::_readContents(), WP6EOLGroup::_readContents(), WP6OutlineStylePacket::_readContents(), WP3FootnoteEndnoteGroup::_readContents(), WP5GraphicsInformationPacket::_readContents(), WP3TablesGroup::_readContents(), WP6FontDescriptorPacket::_readContents(), WP5FontGroup::_readContents(), WP1FootnoteEndnoteGroup::_readContents(), WP5PageFormatGroup::_readContents(), WP5FootnoteEndnoteGroup::_readContents(), WP5IndentGroup::_readContents(), WP6UndoGroup::_readContents(), WP3MiscellaneousGroup::_readContents(), WP5TabGroup::_readContents(), WP6GraphicsFilenamePacket::_readContents(), WP6BoxGroup::_readContents(), WP1MarginResetGroup::_readContents(), WP1PictureGroup::_readContents(), WP5BoxGroup::_readContents(), WP6GraphicsBoxStylePacket::_readContents(), WP3PageFormatGroup::_readContents(), WP3UndoGroup::_readContents(), WP6GeneralTextPacket::_readContents(), WP3DefinitionGroup::_readContents(), WP6ColumnGroup::_readContents(), WP6FillStylePacket::_readContents(), WP3DoubleByteScriptCharacterGroup::_readContents(), WP3WindowGroup::_readContents(), WP6FontDescriptorPacket::_readFontName(), WP6Header::_readIndexInformation(), WPXHeader::constructHeader(), WP3VariableLengthGroup::isGroupConsistent(), WP6VariableLengthGroup::isGroupConsistent(), WP5VariableLengthGroup::isGroupConsistent(), WP1Heuristics::isWP1FileFormat(), WP42Heuristics::isWP42FileFormat(), WP6ExtendedDocumentSummaryPacket::parse(), readS16(), WP42Heuristics::verifyPassword(), WP1Heuristics::verifyPassword(), WP3ResourceFork::WP3ResourceFork(), WP5DefinitionGroup_DefineTablesSubGroup::WP5DefinitionGroup_DefineTablesSubGroup(), WP6CharacterGroup_FontFaceChangeSubGroup::WP6CharacterGroup_FontFaceChangeSubGroup(), WP6CharacterGroup_FontSizeChangeSubGroup::WP6CharacterGroup_FontSizeChangeSubGroup(), WP6CharacterGroup_ParagraphNumberOnSubGroup::WP6CharacterGroup_ParagraphNumberOnSubGroup(), WP6CharacterGroup_SetAlignmentCharacterSubGroup::WP6CharacterGroup_SetAlignmentCharacterSubGroup(), WP6CharacterGroup_SetDotLeaderCharactersSubGroup::WP6CharacterGroup_SetDotLeaderCharactersSubGroup(), WP6CharacterGroup_TableColumnSubGroup::WP6CharacterGroup_TableColumnSubGroup(), WP6CharacterGroup_TableDefinitionOnSubGroup::WP6CharacterGroup_TableDefinitionOnSubGroup(), WP6Header::WP6Header(), WP6ParagraphGroup_IndentFirstLineSubGroup::WP6ParagraphGroup_IndentFirstLineSubGroup(), WP6ParagraphGroup_LeftMarginAdjustmentSubGroup::WP6ParagraphGroup_LeftMarginAdjustmentSubGroup(), WP6ParagraphGroup_OutlineDefineSubGroup::WP6ParagraphGroup_OutlineDefineSubGroup(), WP6ParagraphGroup_RightMarginAdjustmentSubGroup::WP6ParagraphGroup_RightMarginAdjustmentSubGroup(), WP6ParagraphGroup_SpacingAfterParagraphSubGroup::WP6ParagraphGroup_SpacingAfterParagraphSubGroup(), WP6ParagraphGroup_TabSetSubGroup::WP6ParagraphGroup_TabSetSubGroup(), and WP6StyleGroup_GlobalOnSubGroup::WP6StyleGroup_GlobalOnSubGroup().
uint32_t readU32 | ( | WPXInputStream * | input, |
WPXEncryption * | encryption, | ||
bool | bigendian | ||
) |
Referenced by WP1VariableLengthGroup::_read(), WP5SpecialHeaderIndex::_read(), WP5GeneralPacketIndex::_read(), WP6PrefixIndice::_read(), WP3TablesGroup::_readContents(), WP5GraphicsInformationPacket::_readContents(), WP3TabGroup::_readContents(), WP3IndentGroup::_readContents(), WP3MiscellaneousGroup::_readContents(), WP6GeneralTextPacket::_readContents(), WP3PageFormatGroup::_readContents(), WP6ColumnGroup::_readContents(), WP3DefinitionGroup::_readContents(), WP3WindowGroup::_readContents(), WPXHeader::constructHeader(), WP1VariableLengthGroup::isGroupConsistent(), WP1Heuristics::isWP1FileFormat(), WP3ResourceFork::WP3ResourceFork(), WP61Header::WP61Header(), WP6CharacterGroup_TableColumnSubGroup::WP6CharacterGroup_TableColumnSubGroup(), WP6ParagraphGroup_LineSpacingSubGroup::WP6ParagraphGroup_LineSpacingSubGroup(), and WP6ParagraphGroup_SpacingAfterParagraphSubGroup::WP6ParagraphGroup_SpacingAfterParagraphSubGroup().
uint8_t readU8 | ( | WPXInputStream * | input, |
WPXEncryption * | encryption | ||
) |
Referenced by WP1FixedLengthGroup::_read(), WP42MultiByteFunctionGroup::_read(), WP1VariableLengthGroup::_read(), WP3VariableLengthGroup::_read(), WP6FixedLengthGroup::_read(), WP5FixedLengthGroup::_read(), WP3FixedLengthGroup::_read(), WP6VariableLengthGroup::_read(), WP5VariableLengthGroup::_read(), WP6PrefixIndice::_read(), WP6NumberingMethodGroup::_readContents(), WP6SetNumberGroup::_readContents(), WP1ExtendedCharacterGroup::_readContents(), WP1JustificationGroup::_readContents(), WP42ExtendedCharacterGroup::_readContents(), WP6DisplayNumberReferenceGroup::_readContents(), WP6HeaderFooterGroup::_readContents(), WP42SuppressPageCharacteristicsGroup::_readContents(), WP1PointSizeGroup::_readContents(), WP1SetTabsGroup::_readContents(), WP1SpacingResetGroup::_readContents(), WP1SuppressPageCharacteristicsGroup::_readContents(), WP6CommentAnnotationPacket::_readContents(), WP42DefineColumnsGroup::_readContents(), WP6EOLGroup::_readContents(), WP42HeaderFooterGroup::_readContents(), WP42MarginResetGroup::_readContents(), WP6PageGroup::_readContents(), WP3HeaderFooterGroup::_readContents(), WP5HeaderFooterGroup::_readContents(), WP5TableEOLGroup::_readContents(), WP6GraphicsCachedFileDataPacket::_readContents(), WP6OutlineStylePacket::_readContents(), WP6FontDescriptorPacket::_readContents(), WP5FontGroup::_readContents(), WP1HeaderFooterGroup::_readContents(), WP5GraphicsInformationPacket::_readContents(), WP3TablesGroup::_readContents(), WP3AttributeGroup::_readContents(), WP6ExtendedDocumentSummaryPacket::_readContents(), WP6GraphicsBoxStylePacket::_readContents(), WP1PictureGroup::_readContents(), WP5BoxGroup::_readContents(), WP1FootnoteEndnoteGroup::_readContents(), WP6UndoGroup::_readContents(), WP3IndentGroup::_readContents(), WP5FootnoteEndnoteGroup::_readContents(), WP5IndentGroup::_readContents(), WP5PageFormatGroup::_readContents(), WP5TabGroup::_readContents(), WP3TabGroup::_readContents(), WP6BoxGroup::_readContents(), WP6ExtendedCharacterGroup::_readContents(), WP6GeneralTextPacket::_readContents(), WP3PageFormatGroup::_readContents(), WP3UndoGroup::_readContents(), WP6ColumnGroup::_readContents(), WP6FillStylePacket::_readContents(), WP3DefinitionGroup::_readContents(), WP5ExtendedCharacterGroup::_readContents(), WP3ExtendedCharacterGroup::_readContents(), WP3WindowGroup::_readContents(), WP6AttributeGroup::_readContents(), WP6HighlightGroup::_readContents(), WP5AttributeGroup::_readContents(), WPXHeader::constructHeader(), WP6FixedLengthGroup::isGroupConsistent(), WP5FixedLengthGroup::isGroupConsistent(), WP3FixedLengthGroup::isGroupConsistent(), WP1VariableLengthGroup::isGroupConsistent(), WP3VariableLengthGroup::isGroupConsistent(), WP6VariableLengthGroup::isGroupConsistent(), WP5VariableLengthGroup::isGroupConsistent(), WP1Heuristics::isWP1FileFormat(), WP42Heuristics::isWP42FileFormat(), WP42SubDocument::parse(), WP6ExtendedDocumentSummaryPacket::parse(), WP3Parser::parseDocument(), WP42Parser::parseDocument(), WP1Parser::parseDocument(), WP5Parser::parseDocument(), WP6Parser::parseDocument(), readCString(), readPascalString(), WP42Heuristics::verifyPassword(), WP1Heuristics::verifyPassword(), WP3ResourceFork::WP3ResourceFork(), WP5DefinitionGroup_DefineTablesSubGroup::WP5DefinitionGroup_DefineTablesSubGroup(), WP6CharacterGroup_CharacterShadingChangeSubGroup::WP6CharacterGroup_CharacterShadingChangeSubGroup(), WP6CharacterGroup_ColorSubGroup::WP6CharacterGroup_ColorSubGroup(), WP6CharacterGroup_ParagraphNumberOnSubGroup::WP6CharacterGroup_ParagraphNumberOnSubGroup(), WP6CharacterGroup_SetDotLeaderCharactersSubGroup::WP6CharacterGroup_SetDotLeaderCharactersSubGroup(), WP6CharacterGroup_TableColumnSubGroup::WP6CharacterGroup_TableColumnSubGroup(), WP6CharacterGroup_TableDefinitionOnSubGroup::WP6CharacterGroup_TableDefinitionOnSubGroup(), WP6ParagraphGroup_JustificationModeSubGroup::WP6ParagraphGroup_JustificationModeSubGroup(), WP6ParagraphGroup_OutlineDefineSubGroup::WP6ParagraphGroup_OutlineDefineSubGroup(), WP6ParagraphGroup_TabSetSubGroup::WP6ParagraphGroup_TabSetSubGroup(), WP6StyleGroup_GlobalOnSubGroup::WP6StyleGroup_GlobalOnSubGroup(), and WPXSubDocument::WPXSubDocument().
double wpuToFontPointSize | ( | const uint16_t | wpuNumber) |
Referenced by WP6ContentListener::fontChange(), and WP6StylesListener::pageNumberingChange().
|
static |
Referenced by extendedCharacterWP5ToUCS4().
|
static |
Referenced by extendedCharacterWP6ToUCS4().
|
static |
Referenced by extendedCharacterWP5ToUCS4().
|
static |
|
static |
Referenced by extendedCharacterWP6ToUCS4().
|
static |
Referenced by appleWorldScriptToUCS4(), extendedCharacterWP42ToUCS4(), extendedCharacterWP5ToUCS4(), and extendedCharacterWP6ToUCS4().
|
static |
Referenced by extendedCharacterWP5ToUCS4(), and extendedCharacterWP6ToUCS4().
|
static |
Referenced by extendedCharacterWP5ToUCS4().
|
static |
|
static |
Referenced by extendedCharacterWP6ToUCS4().
|
static |
Referenced by extendedCharacterWP42ToUCS4().
|
static |
Referenced by extendedCharacterWP5ToUCS4().
|
static |
Referenced by extendedCharacterWP6ToUCS4().
|
static |
Referenced by extendedCharacterWP5ToUCS4().
|
static |
Referenced by extendedCharacterWP6ToUCS4().
|
static |
Referenced by extendedCharacterWP5ToUCS4().
|
static |
Referenced by extendedCharacterWP6ToUCS4().
|
static |
Referenced by extendedCharacterWP5ToUCS4().
|
static |
Referenced by extendedCharacterWP5ToUCS4().
|
static |
Referenced by extendedCharacterWP6ToUCS4().
const uint32_t macRomanCharacterMap[] |
Referenced by WP1ContentListener::insertExtendedCharacter(), and WP3ExtendedCharacterGroup::parse().
|
static |
Referenced by extendedCharacterWP5ToUCS4(), and extendedCharacterWP6ToUCS4().
|
static |
Referenced by extendedCharacterWP5ToUCS4(), and extendedCharacterWP6ToUCS4().
|
static |
Referenced by extendedCharacterWP5ToUCS4(), and extendedCharacterWP6ToUCS4().
|
static |
|
static |
Referenced by extendedCharacterWP6ToUCS4().
|
static |
Referenced by extendedCharacterWP5ToUCS4(), and extendedCharacterWP6ToUCS4().