DosWordParser Class Reference

This class parses Microsoft Word for DOS. More...

#include <DosWord.h>

Inheritance diagram for DosWordParser:
MSWriteParser WPSParser

Public Member Functions

 DosWordParser (RVNGInputStreamPtr &input, WPSHeaderPtr &header, libwps_tools_win::Font::Type encoding=libwps_tools_win::Font::UNKNOWN)
 ~DosWordParser ()
bool checkHeader (WPSHeader *header, bool strict=false)
 checks if the document header is correct (or not)
Public Member Functions inherited from MSWriteParser
 MSWriteParser (RVNGInputStreamPtr &input, WPSHeaderPtr &header, libwps_tools_win::Font::Type encoding=libwps_tools_win::Font::WIN3_WEUROPE)
 ~MSWriteParser ()
void parse (librevenge::RVNGTextInterface *documentInterface)
Public Member Functions inherited from WPSParser
 WPSParser (RVNGInputStreamPtr &input, WPSHeaderPtr &header)
virtual ~WPSParser ()

Private Member Functions

 DosWordParser (const DosWordParser &)
DosWordParseroperator= (const DosWordParser &)
virtual libwps_tools_win::Font::Type getFileEncoding (libwps_tools_win::Font::Type hint)
void readSECT (uint32_t fcSep, uint32_t fcLim)
virtual void readSED ()
virtual void readFFNTB ()
virtual void readCHP (uint32_t fcFirst, uint32_t fcLim, unsigned cch)
virtual void readPAP (uint32_t fcFirst, uint32_t fcLim, unsigned cch)
virtual void insertSpecial (uint8_t val, uint32_t fc, MSWriteParserInternal::Paragraph::Location location)
virtual void insertControl (uint8_t val, uint32_t fc)
virtual void readSUMD ()
virtual void readFNTB ()

Static Private Member Functions

static WPSColor color (int clr)

Additional Inherited Members

Public Types inherited from WPSParser
typedef std::multimap< std::string, WPSEntryNameMultiMap
 a map to retrieve a file entry by name
Protected Member Functions inherited from MSWriteParser
void readStructures ()
void readFIB ()
void readFOD (unsigned page, void(MSWriteParser::*parseFOD)(uint32_t fcFirst, uint32_t fcLim, unsigned size))
void readText (WPSEntry e, MSWriteParserInternal::Paragraph::Location location)
int numPages ()
void processObject (WPSPosition &pos, unsigned long lastPos)
bool processDDB (librevenge::RVNGBinaryData &bmpdata, WPSPosition &pos, unsigned width, unsigned height, unsigned byte_width, unsigned planes, unsigned bits_pixel, unsigned size)
bool processDIB (librevenge::RVNGBinaryData &bmpdata, unsigned size)
bool processWMF (librevenge::RVNGBinaryData &wmfdata, unsigned size)
void processEmbeddedOLE (WPSPosition &pos, unsigned long lastPos)
bool processStaticOLE (librevenge::RVNGBinaryData &, std::string &mimetype, WPSPosition &pos, unsigned long lastPos)
bool readString (std::string &res, unsigned long lastPos)
void insertNote (bool annotation, uint32_t fcPos, librevenge::RVNGString &label)
unsigned insertString (const unsigned char *str, unsigned size, libwps_tools_win::Font::Type type)
void getHeaderFooters (uint32_t first, MSWriteParserInternal::Section &sep, WPSPageSpan &pageSpan)
void startSection (MSWriteParserInternal::Section &section)
bool checkFilePosition (uint32_t pos) const
 check if the file position is correct or not
Protected Member Functions inherited from WPSParser
RVNGInputStreamPtrgetInput ()
RVNGInputStreamPtr getFileInput ()
WPSHeaderPtrgetHeader ()
int version () const
void setVersion (int vers)
libwps::DebugFileascii ()
 a DebugFile used to write what we recognize when we parse the document
NameMultiMapgetNameEntryMap ()
NameMultiMap const & getNameEntryMap () const
Static Protected Member Functions inherited from MSWriteParser
static void getPageStyle (MSWriteParserInternal::Section &sep, WPSPageSpan &pageSpan)
Protected Attributes inherited from MSWriteParser
uint32_t m_fileLength
 the last file position
uint32_t m_fcMac
std::vector< MSWriteParserInternal::Paragraphm_paragraphList
std::vector< MSWriteParserInternal::Fontm_fontList
std::vector< MSWriteParserInternal::Footnotem_footnotes
std::vector< MSWriteParserInternal::Sectionm_sections
std::vector< librevenge::RVNGString > m_fonts
libwps_tools_win::Font::Type m_fontType
shared_ptr< WPSContentListenerm_listener
librevenge::RVNGPropertyList m_metaData

Detailed Description

This class parses Microsoft Word for DOS.

Constructor & Destructor Documentation

◆ DosWordParser() [1/2]

DosWordParser::DosWordParser ( RVNGInputStreamPtr & input,
WPSHeaderPtr & header,
libwps_tools_win::Font::Type encoding = libwps_tools_win::Font::UNKNOWN )

Referenced by DosWordParser(), and operator=().

◆ ~DosWordParser()

DosWordParser::~DosWordParser ( )

◆ DosWordParser() [2/2]

DosWordParser::DosWordParser ( const DosWordParser & )
private

Member Function Documentation

◆ checkHeader()

bool DosWordParser::checkHeader ( WPSHeader * header,
bool strict = false )

checks if the document header is correct (or not)

Referenced by libwps::WPSDocument::isFileFormatSupported().

◆ color()

WPSColor DosWordParser::color ( int clr)
staticprivate

Referenced by readCHP(), and readPAP().

◆ getFileEncoding()

libwps_tools_win::Font::Type DosWordParser::getFileEncoding ( libwps_tools_win::Font::Type hint)
privatevirtual

Reimplemented from MSWriteParser.

◆ insertControl()

void DosWordParser::insertControl ( uint8_t val,
uint32_t fc )
privatevirtual

Reimplemented from MSWriteParser.

◆ insertSpecial()

void DosWordParser::insertSpecial ( uint8_t val,
uint32_t fc,
MSWriteParserInternal::Paragraph::Location location )
privatevirtual

Reimplemented from MSWriteParser.

◆ operator=()

DosWordParser & DosWordParser::operator= ( const DosWordParser & )
private

◆ readCHP()

void DosWordParser::readCHP ( uint32_t fcFirst,
uint32_t fcLim,
unsigned cch )
privatevirtual

Reimplemented from MSWriteParser.

◆ readFFNTB()

void DosWordParser::readFFNTB ( )
privatevirtual

Reimplemented from MSWriteParser.

◆ readFNTB()

void DosWordParser::readFNTB ( )
privatevirtual

Reimplemented from MSWriteParser.

◆ readPAP()

void DosWordParser::readPAP ( uint32_t fcFirst,
uint32_t fcLim,
unsigned cch )
privatevirtual

Reimplemented from MSWriteParser.

◆ readSECT()

void DosWordParser::readSECT ( uint32_t fcSep,
uint32_t fcLim )
private

Referenced by readSED().

◆ readSED()

void DosWordParser::readSED ( )
privatevirtual

Reimplemented from MSWriteParser.

◆ readSUMD()

void DosWordParser::readSUMD ( )
privatevirtual

Reimplemented from MSWriteParser.


The documentation for this class was generated from the following files:

Generated on Mon Aug 11 2025 01:14:10 for libwps by doxygen 1.14.0