the main class to read the structures part of MacWrite Pro file More...
#include <MacWrtProStructures.hxx>
| Public Member Functions | |
| MacWrtProStructures (MacWrtProParser &mainParser) | |
| constructor  More... | |
| virtual | ~MacWrtProStructures () | 
| destructor  More... | |
| int | version () const | 
| returns the file version.  More... | |
| void | setAsciiName (char const *name) | 
| Debugging: change the default ascii file (by default struct )  More... | |
| Protected Member Functions | |
| void | init () | 
| inits all internal variables  More... | |
| bool | createZones () | 
| finds the different objects zones  More... | |
| bool | createZonesV2 () | 
| finds the different objects zones in a MacWriteII file  More... | |
| int | numPages () const | 
| returns the number of pages  More... | |
| bool | sendMainZone () | 
| send the main zone  More... | |
| void | updatePageSpan (int page, bool hasTitlePage, MWAWPageSpan &pageSpan) | 
| update the page span  More... | |
| void | flushExtra () | 
| flush not send zones  More... | |
| void | buildPageStructures () | 
| look for pages structures  More... | |
| void | buildTableStructures () | 
| look for tables structures and if so, prepare data  More... | |
| bool | readStyles () | 
| try to read the paragraph styles zone which begins at address 0x200  More... | |
| bool | readStyle (int styleId) | 
| try to read a style  More... | |
| bool | readCharStyles () | 
| try to read the character styles zone  More... | |
| bool | readParagraphs () | 
| try to read a list of paragraph  More... | |
| bool | readParagraph (MacWrtProStructuresInternal::Paragraph ¶) | 
| try to read a paragraph  More... | |
| std::shared_ptr< MacWrtProStructuresInternal::Block > | readBlock () | 
| try to read a block entry  More... | |
| std::shared_ptr< MacWrtProStructuresInternal::Block > | readBlockV2 (int id) | 
| try to read a block entry  More... | |
| bool | readBlocksList () | 
| try to read the list of block entries  More... | |
| bool | readFontsName () | 
| try to read the fonts zone  More... | |
| bool | readFontsDef () | 
| try to read the list of fonts  More... | |
| bool | readFont (MacWrtProStructuresInternal::Font &font) | 
| try to read a font  More... | |
| bool | readSections (std::vector< MacWrtProStructuresInternal::Section > §ions) | 
| try to read the section info ?  More... | |
| bool | readSelection () | 
| try to read a 16 bytes the zone which follow the char styles zone ( the selection?)  More... | |
| bool | readStructB () | 
| try to read a zone which follow the fonts zone(checkme)  More... | |
| bool | getColor (int colId, MWAWColor &color) const | 
| try to return the color corresponding to colId  More... | |
| bool | getPattern (int patId, float &patternPercent) const | 
| try to return the pattern corresponding to patId  More... | |
| bool | getColor (int colId, int patId, MWAWColor &color) const | 
| try to return the color corresponding to colId and patId  More... | |
| bool | isSent (int blockId) | 
| returns true if the block is already sent ( or does not exists)  More... | |
| bool | send (int blockId, bool mainZone=false) | 
| try to send a block which corresponds to blockid  More... | |
| MWAWTextListenerPtr & | getTextListener () | 
| returns the actual listener  More... | |
| libmwaw::DebugFile & | ascii () | 
| returns the debug file  More... | |
| std::string const & | asciiName () const | 
| return the ascii file name  More... | |
| Static Protected Member Functions | |
| static bool | readString (MWAWInputStreamPtr input, std::string &res) | 
| try to read a string  More... | |
| Protected Attributes | |
| MWAWParserStatePtr | m_parserState | 
| the parser state  More... | |
| MWAWInputStreamPtr | m_input | 
| the main input  More... | |
| MacWrtProParser & | m_mainParser | 
| the main parser  More... | |
| std::shared_ptr< MacWrtProStructuresInternal::State > | m_state | 
| the state  More... | |
| libmwaw::DebugFile | m_asciiFile | 
| the debug file  More... | |
| std::string | m_asciiName | 
| the debug file name  More... | |
| Friends | |
| class | MacWrtProParser | 
| class | MacWrtProParserInternal::SubDocument | 
| struct | MacWrtProStructuresInternal::Cell | 
| class | MacWrtProStructuresListenerState | 
the main class to read the structures part of MacWrite Pro file
| 
 | explicit | 
constructor
| 
 | virtual | 
destructor
| 
 | inlineprotected | 
returns the debug file
Referenced by createZones(), createZonesV2(), readBlock(), readBlocksList(), readBlockV2(), readCharStyles(), readFontsDef(), readFontsName(), readParagraph(), readParagraphs(), readSections(), readSelection(), readStructB(), readStyle(), readStyles(), and ~MacWrtProStructures().
| 
 | inlineprotected | 
return the ascii file name
Referenced by createZones(), and createZonesV2().
| 
 | protected | 
look for pages structures
Referenced by createZones().
| 
 | protected | 
look for tables structures and if so, prepare data
Referenced by createZones().
| 
 | protected | 
finds the different objects zones
| 
 | protected | 
finds the different objects zones in a MacWriteII file
Referenced by createZones().
| 
 | protected | 
flush not send zones
| 
 | protected | 
try to return the color corresponding to colId
Referenced by getColor(), readBlock(), and readFont().
| 
 | protected | 
try to return the color corresponding to colId and patId
| 
 | protected | 
try to return the pattern corresponding to patId
Referenced by getColor().
| 
 | protected | 
returns the actual listener
| 
 | protected | 
inits all internal variables
Referenced by MacWrtProStructures().
| 
 | protected | 
returns true if the block is already sent ( or does not exists)
| 
 | protected | 
returns the number of pages
| 
 | protected | 
try to read a block entry
Referenced by readBlocksList().
| 
 | protected | 
try to read the list of block entries
Referenced by createZones().
| 
 | protected | 
try to read a block entry
Referenced by createZonesV2().
| 
 | protected | 
try to read the character styles zone
Referenced by createZones(), and createZonesV2().
| 
 | protected | 
try to read a font
Referenced by readCharStyles(), readFontsDef(), and readStyle().
| 
 | protected | 
try to read the list of fonts
Referenced by createZones(), and createZonesV2().
| 
 | protected | 
try to read the fonts zone
Referenced by createZones(), and createZonesV2().
| 
 | protected | 
try to read a paragraph
seems difficult to set bottom a percentage of the line unit, so do the strict minimum...
Referenced by readParagraphs(), and readStyle().
| 
 | protected | 
try to read a list of paragraph
Referenced by createZones(), and createZonesV2().
| 
 | protected | 
try to read the section info ?
Referenced by createZones().
| 
 | protected | 
try to read a 16 bytes the zone which follow the char styles zone ( the selection?)
Referenced by createZones().
| 
 | staticprotected | 
try to read a string
Referenced by createZones(), and readBlocksList().
| 
 | protected | 
try to read a zone which follow the fonts zone(checkme)
Referenced by createZones().
| 
 | protected | 
try to read a style
Referenced by readStyles().
| 
 | protected | 
try to read the paragraph styles zone which begins at address 0x200
Referenced by createZones().
| 
 | protected | 
try to send a block which corresponds to blockid
note: blockId=-noteId to send footnote in MW2
Referenced by flushExtra(), MacWrtProStructuresInternal::Cell::sendContent(), and sendMainZone().
| 
 | protected | 
send the main zone
| 
 | inline | 
Debugging: change the default ascii file (by default struct )
| 
 | protected | 
update the page span
| int MacWrtProStructures::version | ( | ) | const | 
returns the file version.
this version is only correct after the header is parsed
Referenced by createZones(), createZonesV2(), flushExtra(), getColor(), getPattern(), isSent(), readCharStyles(), readFont(), readFontsDef(), readFontsName(), readParagraph(), readParagraphs(), send(), sendMainZone(), and updatePageSpan().
| 
 | friend | 
| 
 | friend | 
| 
 | friend | 
| 
 | friend | 
| 
 | protected | 
the debug file
Referenced by ascii().
| 
 | protected | 
the debug file name
Referenced by asciiName(), init(), and setAsciiName().
| 
 | protected | 
the main input
Referenced by createZones(), createZonesV2(), readBlock(), readBlocksList(), readBlockV2(), readCharStyles(), readFont(), readFontsDef(), readFontsName(), readParagraph(), readParagraphs(), readSections(), readSelection(), readStructB(), readStyle(), and readStyles().
| 
 | protected | 
the main parser
Referenced by buildPageStructures(), createZones(), createZonesV2(), readBlocksList(), send(), and updatePageSpan().
| 
 | protected | 
the parser state
Referenced by flushExtra(), getTextListener(), readCharStyles(), readFontsDef(), readFontsName(), readStyle(), send(), and version().
| 
 | protected | 
the state
Referenced by buildPageStructures(), buildTableStructures(), createZones(), createZonesV2(), flushExtra(), init(), isSent(), numPages(), readBlock(), readBlocksList(), readFontsDef(), readParagraphs(), send(), sendMainZone(), updatePageSpan(), and version().