BeagleWksText Class Reference

the main class to read the text part of BeagleWorks Text file More...

#include <BeagleWksText.hxx>

Public Member Functions

 BeagleWksText (BeagleWksParser &parser)
 constructor
virtual ~BeagleWksText ()
 destructor
int version () const
 returns the file version
int numPages () const
 returns the number of pages

Protected Member Functions

bool createZones (MWAWEntry const &entry)
 try to create the text zones
bool sendMainText ()
 send a main zone
void flushExtra ()
 sends the data which have not yet been sent to the listener
void countPages ()
 update the number of pages and the number of page by section
std::shared_ptr< MWAWSubDocumentgetHeader (int page, int &numSimillar)
 return an header subdocument
std::shared_ptr< MWAWSubDocumentgetFooter (int page, int &numSimillar)
 return a footer subdocument
void updatePageSpanList (std::vector< MWAWPageSpan > &spanList)
 update the page span list
bool sendText (MWAWEntry const &entry)
 try to send a text zone
bool sendHF (int hfId, int sectId)
 try to send a header/footer id
MWAWFont getFont (BeagleWksTextInternal::Font const &ft) const
 returns the font
bool readFont (BeagleWksTextInternal::Font &font, long endPos)
 try to read a font properties
bool readParagraph (MWAWParagraph &para, long endPos, bool inSection=false)
 try to read a paragraph knowing end pos
bool readSection (MWAWEntry const &entry, BeagleWksTextInternal::Section &section)
 try to read a section

Protected Attributes

MWAWParserStatePtr m_parserState
 the parser state
std::shared_ptr< BeagleWksTextInternal::Statem_state
 the state
std::shared_ptr< BeagleWksStructManagerm_structureManager
 the structure manager
BeagleWksParserm_mainParser
 the main parser;

Private Member Functions

 BeagleWksText (BeagleWksText const &orig)=delete
BeagleWksTextoperator= (BeagleWksText const &orig)=delete

Friends

class BeagleWksParser
class BeagleWksTextInternal::SubDocument

Detailed Description

the main class to read the text part of BeagleWorks Text file

Constructor & Destructor Documentation

◆ BeagleWksText() [1/2]

BeagleWksText::BeagleWksText ( BeagleWksParser & parser)
explicit

◆ ~BeagleWksText()

BeagleWksText::~BeagleWksText ( )
virtual

destructor

◆ BeagleWksText() [2/2]

BeagleWksText::BeagleWksText ( BeagleWksText const & orig)
privatedelete

Member Function Documentation

◆ countPages()

void BeagleWksText::countPages ( )
protected

update the number of pages and the number of page by section

Referenced by BeagleWksTextInternal::SubDocument, and numPages().

◆ createZones()

bool BeagleWksText::createZones ( MWAWEntry const & entry)
protected

try to create the text zones

Referenced by BeagleWksTextInternal::SubDocument.

◆ flushExtra()

void BeagleWksText::flushExtra ( )
protected

sends the data which have not yet been sent to the listener

Referenced by BeagleWksTextInternal::SubDocument.

◆ getFont()

MWAWFont BeagleWksText::getFont ( BeagleWksTextInternal::Font const & ft) const
protected

returns the font

Referenced by sendText(), and updatePageSpanList().

◆ getFooter()

std::shared_ptr< MWAWSubDocument > BeagleWksText::getFooter ( int page,
int & numSimillar )
protected

return a footer subdocument

Referenced by BeagleWksTextInternal::SubDocument.

◆ getHeader()

std::shared_ptr< MWAWSubDocument > BeagleWksText::getHeader ( int page,
int & numSimillar )
protected

return an header subdocument

Referenced by BeagleWksTextInternal::SubDocument.

◆ numPages()

int BeagleWksText::numPages ( ) const

returns the number of pages

Referenced by BeagleWksTextInternal::SubDocument.

◆ operator=()

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

◆ readFont()

bool BeagleWksText::readFont ( BeagleWksTextInternal::Font & font,
long endPos )
protected

try to read a font properties

Referenced by countPages(), sendText(), and updatePageSpanList().

◆ readParagraph()

bool BeagleWksText::readParagraph ( MWAWParagraph & para,
long endPos,
bool inSection = false )
protected

try to read a paragraph knowing end pos

Referenced by countPages(), readSection(), sendText(), and updatePageSpanList().

◆ readSection()

bool BeagleWksText::readSection ( MWAWEntry const & entry,
BeagleWksTextInternal::Section & section )
protected

try to read a section

Referenced by createZones(), and updatePageSpanList().

◆ sendHF()

bool BeagleWksText::sendHF ( int hfId,
int sectId )
protected

try to send a header/footer id

Referenced by BeagleWksTextInternal::SubDocument::parse(), and updatePageSpanList().

◆ sendMainText()

bool BeagleWksText::sendMainText ( )
protected

send a main zone

Referenced by BeagleWksTextInternal::SubDocument.

◆ sendText()

bool BeagleWksText::sendText ( MWAWEntry const & entry)
protected

try to send a text zone

Referenced by flushExtra(), sendHF(), sendMainText(), and updatePageSpanList().

◆ updatePageSpanList()

void BeagleWksText::updatePageSpanList ( std::vector< MWAWPageSpan > & spanList)
protected

update the page span list

◆ version()

int BeagleWksText::version ( ) const

returns the file version

Referenced by BeagleWksTextInternal::SubDocument.

◆ BeagleWksParser

◆ BeagleWksTextInternal::SubDocument

Member Data Documentation

◆ m_mainParser

BeagleWksParser* BeagleWksText::m_mainParser
protected

the main parser;

Referenced by BeagleWksText(), readSection(), and sendText().

◆ m_parserState

◆ m_state

std::shared_ptr<BeagleWksTextInternal::State> BeagleWksText::m_state
protected

◆ m_structureManager

std::shared_ptr<BeagleWksStructManager> BeagleWksText::m_structureManager
protected

the structure manager

Referenced by BeagleWksText(), and getFont().


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

Generated on for libmwaw by doxygen 1.18.0