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 | |
| ~MacWrtProStructuresListenerState () | |
| the destructor | |
| bool | isSent (int graphicId) |
| returns true if the graphic is already sent ( or does not exists) | |
| bool | send (int graphicId) |
| try to send a graphic which corresponds to graphicid | |
| void | sendSection (int numSection) |
| try to send the i^th section | |
| bool | sendFont (int id) |
| try to send a character style | |
| bool | sendParagraph (int id) |
| try to send a paragraph | |
| void | sendChar (char c) |
| send a character | |
| int | numSection () const |
| returns the actual section | |
| std::vector< int > | getPageBreaksPos () const |
| return a list of page break position ( as some page break are soft ) | |
| void | insertSoftPageBreak () |
| insert a page break ( if we are not on a new page ) | |
Protected Member Functions | |
| bool | newPage (bool softBreak=false) |
| create a new page | |
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 MacWrtProStructuresListenerState(), and newPage().
|
protected |
Referenced by MacWrtProStructuresListenerState(), newPage(), and sendChar().
|
protected |
Referenced by getPageBreaksPos(), MacWrtProStructuresListenerState(), newPage(), numSection(), and sendChar().
|
protected |
Referenced by insertSoftPageBreak(), MacWrtProStructuresListenerState(), newPage(), send(), and sendChar().
|
protected |
Referenced by MacWrtProStructuresListenerState(), sendChar(), and sendSection().
|
protected |
Referenced by MacWrtProStructuresListenerState(), send(), sendChar(), and sendParagraph().
|
protected |
Referenced by MacWrtProStructuresListenerState(), newPage(), numSection(), and sendChar().
|
protected |
Referenced by getPageBreaksPos(), isSent(), MacWrtProStructuresListenerState(), newPage(), send(), sendChar(), sendFont(), sendParagraph(), and sendSection().
|
protected |
Referenced by getPageBreaksPos(), MacWrtProStructuresListenerState(), newPage(), sendChar(), and sendSection().