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