WKS4Format Class Reference

This class parses Lotus format file. More...

#include <WKS4Format.h>

Public Member Functions

 WKS4Format (WKS4Parser &parser, RVNGInputStreamPtr const &input)
 constructor
 
 ~WKS4Format ()
 destructor
 
bool parse ()
 try to parse an input
 

Protected Member Functions

bool checkFilePosition (long pos)
 return true if the pos is in the file, update the file size if need
 
bool checkHeader (bool strict=false)
 format zone ////////////////////////////// checks if the document header is correct (or not)
 
bool readZones ()
 finds the different zones
 
bool readZone ()
 reads a zone
 
bool readFontName ()
 reads a format font name: zones 0xae
 
bool readFontSize ()
 reads a format font sizes zones 0xaf and 0xb1
 
bool readFontId ()
 reads a format font id zone: 0xb0
 

Private Member Functions

 WKS4Format (WKS4Format const &orig)=delete
 
WKS4Formatoperator= (WKS4Format const &orig)=delete
 
libwps::DebugFileascii ()
 returns the debug file
 

Private Attributes

RVNGInputStreamPtr m_input
 the input
 
WKS4Parserm_mainParser
 the main parser
 
std::shared_ptr< WKS4FormatInternal::Statem_state
 the internal state
 
libwps::DebugFile m_asciiFile
 the ascii file
 

Friends

class WKS4Parser
 

Detailed Description

This class parses Lotus format file.

Constructor & Destructor Documentation

◆ WKS4Format() [1/2]

WKS4Format::WKS4Format ( WKS4Parser & parser,
RVNGInputStreamPtr const & input )
explicit

constructor

◆ ~WKS4Format()

WKS4Format::~WKS4Format ( )

destructor

◆ WKS4Format() [2/2]

WKS4Format::WKS4Format ( WKS4Format const & orig)
privatedelete

Member Function Documentation

◆ ascii()

libwps::DebugFile & WKS4Format::ascii ( )
inlineprivate

returns the debug file

Referenced by checkHeader(), parse(), readFontId(), readFontName(), readFontSize(), readZone(), and readZones().

◆ checkFilePosition()

bool WKS4Format::checkFilePosition ( long pos)
protected

return true if the pos is in the file, update the file size if need

Referenced by checkHeader(), readZone(), and readZones().

◆ checkHeader()

bool WKS4Format::checkHeader ( bool strict = false)
protected

format zone ////////////////////////////// checks if the document header is correct (or not)

Referenced by parse().

◆ operator=()

WKS4Format & WKS4Format::operator= ( WKS4Format const & orig)
privatedelete

◆ parse()

bool WKS4Format::parse ( )

try to parse an input

Referenced by WKS4Parser::parseFormatStream().

◆ readFontId()

bool WKS4Format::readFontId ( )
protected

reads a format font id zone: 0xb0

Referenced by readZone().

◆ readFontName()

bool WKS4Format::readFontName ( )
protected

reads a format font name: zones 0xae

Referenced by readZone().

◆ readFontSize()

bool WKS4Format::readFontSize ( )
protected

reads a format font sizes zones 0xaf and 0xb1

Referenced by readZone().

◆ readZone()

bool WKS4Format::readZone ( )
protected

reads a zone

Referenced by checkHeader(), and readZones().

◆ readZones()

bool WKS4Format::readZones ( )
protected

finds the different zones

Referenced by parse().

Friends And Related Symbol Documentation

◆ WKS4Parser

friend class WKS4Parser
friend

Member Data Documentation

◆ m_asciiFile

libwps::DebugFile WKS4Format::m_asciiFile
private

the ascii file

Referenced by ascii().

◆ m_input

◆ m_mainParser

WKS4Parser& WKS4Format::m_mainParser
private

the main parser

◆ m_state

std::shared_ptr<WKS4FormatInternal::State> WKS4Format::m_state
private

the internal state

Referenced by checkFilePosition(), checkHeader(), readFontId(), readFontName(), and readFontSize().


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

Generated on Thu Jul 18 2024 00:00:00 for libwps by doxygen 1.12.0