an interface to transmit the info of MacWrtProStructures to a listener More...
#include <MacWrtProStructures.hxx>
Public Member Functions | |
MacWrtProStructuresListenerState (std::shared_ptr< MacWrtProStructures > const &structures, bool mainZone, int version) | |
the constructor More... | |
~MacWrtProStructuresListenerState () | |
the destructor More... | |
bool | isSent (int graphicId) |
returns true if the graphic is already sent ( or does not exists) More... | |
bool | send (int graphicId) |
try to send a graphic which corresponds to graphicid More... | |
void | sendSection (int numSection) |
try to send the i^th section More... | |
bool | sendFont (int id) |
try to send a character style More... | |
bool | sendParagraph (int id) |
try to send a paragraph More... | |
void | sendChar (char c) |
send a character More... | |
int | numSection () const |
returns the actual section More... | |
std::vector< int > | getPageBreaksPos () const |
return a list of page break position ( as some page break are soft ) More... | |
void | insertSoftPageBreak () |
insert a page break ( if we are not on a new page ) More... | |
Protected Member Functions | |
bool | newPage (bool softBreak=false) |
create a new page More... | |
Protected Attributes | |
bool | m_isMainZone |
int | m_version |
int | m_actPage |
int | m_actTab |
int | m_numTab |
int | m_section |
int | m_numCols |
bool | m_newPageDone |
std::shared_ptr< MacWrtProStructures > | m_structures |
an interface to transmit the info of MacWrtProStructures to a listener
MacWrtProStructuresListenerState::MacWrtProStructuresListenerState | ( | std::shared_ptr< MacWrtProStructures > const & | structures, |
bool | mainZone, | ||
int | version | ||
) |
the constructor
MacWrtProStructuresListenerState::~MacWrtProStructuresListenerState | ( | ) |
the destructor
std::vector< int > MacWrtProStructuresListenerState::getPageBreaksPos | ( | ) | const |
return a list of page break position ( as some page break are soft )
Referenced by MacWrtProParser::sendText().
void MacWrtProStructuresListenerState::insertSoftPageBreak | ( | ) |
insert a page break ( if we are not on a new page )
Referenced by MacWrtProParser::sendText().
bool MacWrtProStructuresListenerState::isSent | ( | int | graphicId | ) |
returns true if the graphic is already sent ( or does not exists)
Referenced by MacWrtProParser::sendText().
|
protected |
create a new page
Referenced by insertSoftPageBreak(), MacWrtProStructuresListenerState(), sendChar(), and sendSection().
|
inline |
returns the actual section
Referenced by MacWrtProParser::sendText().
bool MacWrtProStructuresListenerState::send | ( | int | graphicId | ) |
try to send a graphic which corresponds to graphicid
Referenced by MacWrtProParser::sendText().
void MacWrtProStructuresListenerState::sendChar | ( | char | c | ) |
send a character
Referenced by MacWrtProParser::sendText().
bool MacWrtProStructuresListenerState::sendFont | ( | int | id | ) |
try to send a character style
Referenced by MacWrtProParser::sendText().
bool MacWrtProStructuresListenerState::sendParagraph | ( | int | id | ) |
try to send a paragraph
Referenced by MacWrtProParser::sendText().
void MacWrtProStructuresListenerState::sendSection | ( | int | numSection | ) |
try to send the i^th section
Referenced by MacWrtProStructuresListenerState(), newPage(), and sendChar().
|
protected |
Referenced by newPage().
|
protected |
Referenced by newPage(), and sendChar().
|
protected |
Referenced by getPageBreaksPos(), newPage(), numSection(), and sendChar().
|
protected |
Referenced by insertSoftPageBreak(), newPage(), send(), and sendChar().
|
protected |
Referenced by sendChar(), and sendSection().
|
protected |
Referenced by send(), sendChar(), and sendParagraph().
|
protected |
Referenced by newPage(), numSection(), and sendChar().
|
protected |
Referenced by getPageBreaksPos(), isSent(), MacWrtProStructuresListenerState(), newPage(), send(), sendChar(), sendFont(), sendParagraph(), and sendSection().
|
protected |
Referenced by getPageBreaksPos(), newPage(), sendChar(), and sendSection().