34 #ifndef MW_PRO_STRUCTURES
35 # define MW_PRO_STRUCTURES
56 namespace MWProParserInternal
61 namespace MWProStructuresInternal
87 bool send(
int blockId);
104 MWAW_DEBUG_MSG((
"MWProStructuresListenerState::numSection: not called in main zone\n"));
123 bool newPage(
bool softBreak=
false);
147 shared_ptr<MWProStructuresInternal::Font>
m_font;
235 shared_ptr<MWProStructuresInternal::Block>
readBlock();
238 shared_ptr<MWProStructuresInternal::Block>
readBlockV2(
int id);
253 bool readSections(std::vector<MWProStructuresInternal::Section> §ions);
274 bool send(
int blockId,
bool mainZone=
false);
304 shared_ptr<MWProStructuresInternal::State>
m_state;
Internal: the fonts.
Definition: MWProStructures.cxx:345
Internal: class to store the paragraph properties.
Definition: MWProStructures.cxx:379
an interface to transmit the info of MWProStructures to a listener
Definition: MWProStructures.hxx:76
Internal: the subdocument of a MWProParser.
Definition: MWProParser.cxx:233
void init()
inits all internal variables
Definition: MWProStructures.cxx:594
the main class to read the structures part of MacWrite Pro file
Definition: MWProStructures.hxx:157
MWProParser & m_mainParser
the main parser
Definition: MWProStructures.hxx:301
shared_ptr< MWAWParserState > MWAWParserStatePtr
Definition: ACText.hxx:49
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
Definition: ACText.hxx:44
bool send(int blockId, bool mainZone=false)
try to send a block which corresponds to blockid
Definition: MWProStructures.cxx:2499
bool isSent(int blockId)
returns true if the block is already sent ( or does not exists)
Definition: MWProStructures.cxx:2632
bool send(int blockId)
try to send a block which corresponds to blockid
Definition: MWProStructures.cxx:2638
int getEndBlockSize()
returns the size of the block end data
Definition: MWProStructures.cxx:1824
int m_numCols
Definition: MWProStructures.hxx:141
int numSection() const
returns the actual section
Definition: MWProStructures.hxx:102
shared_ptr< MWProStructuresInternal::State > m_state
the state
Definition: MWProStructures.hxx:304
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:67
bool readParagraph(MWProStructuresInternal::Paragraph ¶)
try to read a paragraph
Definition: MWProStructures.cxx:1373
std::vector< int > getPageBreaksPos() const
return a list of page break position ( as some page break are soft )
Definition: MWProStructures.cxx:2675
bool readBlocksList()
try to read the list of block entries
Definition: MWProStructures.cxx:1756
void insertSoftPageBreak()
insert a page break ( if we are not on a new page )
Definition: MWProStructures.cxx:2645
libmwaw::DebugFile & ascii()
returns the debug file
Definition: MWProStructures.hxx:280
int numPages() const
returns the number of pages
Definition: MWProStructures.cxx:612
bool sendFont(int id)
try to send a character style
Definition: MWProStructures.cxx:2771
int m_numTab
Definition: MWProStructures.hxx:137
libmwaw::DebugFile m_asciiFile
the debug file
Definition: MWProStructures.hxx:307
shared_ptr< MWProStructuresInternal::Block > readBlock()
try to read a block entry
Definition: MWProStructures.cxx:1963
int m_section
Definition: MWProStructures.hxx:139
~MWProStructuresListenerState()
the destructor
Definition: MWProStructures.cxx:2628
bool readStyle(int styleId)
try to read a style
Definition: MWProStructures.cxx:1661
bool createZones()
finds the different objects zones
Definition: MWProStructures.cxx:709
bool sendParagraph(int id)
try to send a paragraph
Definition: MWProStructures.cxx:2817
std::string getParagraphDebugString(int paraId)
debug function which returns a string corresponding to a paragrapId
Definition: MWProStructures.cxx:2840
the class to store a color
Definition: libmwaw_internal.hxx:161
bool readParagraphs()
try to read a list of paragraph
Definition: MWProStructures.cxx:1318
shared_ptr< MWAWContentListener > MWAWContentListenerPtr
Definition: MWAWContentListener.hxx:260
the main class to read a MacWrite II and MacWrite Pro file
Definition: MWProParser.hxx:70
bool readFontsName()
try to read the fonts zone
Definition: MWProStructures.cxx:1108
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:111
a class to define the parser state
Definition: MWAWParser.hxx:60
bool readFont(MWProStructuresInternal::Font &font)
try to read a font
Definition: MWProStructures.cxx:1231
bool readSelection()
try to read a 16 bytes the zone which follow the char styles zone ( the selection?)
Definition: MWProStructures.cxx:2361
shared_ptr< MWProStructuresInternal::Block > readBlockV2(int id)
try to read a block entry
Definition: MWProStructures.cxx:1836
bool readSections(std::vector< MWProStructuresInternal::Section > §ions)
try to read the section info ?
Definition: MWProStructures.cxx:2242
shared_ptr< MWProStructures > m_structures
Definition: MWProStructures.hxx:145
bool isSent(int blockId)
returns true if the block is already sent ( or does not exists)
Definition: MWProStructures.cxx:2480
bool getColor(int colId, MWAWColor &color) const
try to return the color corresponding to colId
Definition: MWProStructures.cxx:647
std::string m_asciiName
the debug file name
Definition: MWProStructures.hxx:310
bool newPage(bool softBreak=false)
create a new page
Definition: MWProStructures.cxx:2651
bool m_isMainZone
Definition: MWProStructures.hxx:131
bool readStyles()
try to read the paragraph styles zone which begins at address 0x200
Definition: MWProStructures.cxx:1620
std::string const & asciiName() const
return the ascii file name
Definition: MWProStructures.hxx:285
virtual ~MWProStructures()
destructor
Definition: MWProStructures.cxx:589
bool resendAll()
force resent data : font + paragraph
Definition: MWProStructures.cxx:2762
MWAWInputStreamPtr m_input
the main input
Definition: MWProStructures.hxx:298
void setAsciiName(char const *name)
Debugging: change the default ascii file (by default struct )
Definition: MWProStructures.hxx:175
bool createZonesV2()
finds the different objects zones in a MacWriteII file
Definition: MWProStructures.cxx:832
bool sendMainZone()
send the main zone
Definition: MWProStructures.cxx:946
void flushExtra()
flush not send zones
Definition: MWProStructures.cxx:2568
int getHeaderId(int page, int &numSimillar) const
return the header blockid ( or 0)
Definition: MWProStructures.cxx:619
int version() const
returns the file version.
Definition: MWProStructures.cxx:600
bool m_newPageDone
Definition: MWProStructures.hxx:143
MWAWParserStatePtr m_parserState
the parser state
Definition: MWProStructures.hxx:295
bool readFontsDef()
try to read the list of fonts
Definition: MWProStructures.cxx:1179
void buildPageStructures()
look for pages structures
Definition: MWProStructures.cxx:977
shared_ptr< MWProStructuresInternal::Font > m_font
Definition: MWProStructures.hxx:147
int m_actTab
Definition: MWProStructures.hxx:135
MWProStructuresListenerState(shared_ptr< MWProStructures > structures, bool mainZone)
the constructor
Definition: MWProStructures.cxx:2612
std::string getFontDebugString(int fontId)
debug function which returns a string corresponding to a fontId
Definition: MWProStructures.cxx:2794
int m_actPage
Definition: MWProStructures.hxx:133
MWAWContentListenerPtr & getListener()
returns the actual listener
Definition: MWProStructures.cxx:607
void buildTableStructures()
look for tables structures and if so, prepare data
Definition: MWProStructures.cxx:1046
void sendSection(int numSection)
try to send the i^th section
Definition: MWProStructures.cxx:2857
shared_ptr< MWProStructuresInternal::Paragraph > m_paragraph
Definition: MWProStructures.hxx:149
MWProStructures(MWProParser &mainParser)
constructor
Definition: MWProStructures.cxx:582
static bool readString(MWAWInputStreamPtr input, std::string &res)
try to read a string
Definition: MWProStructures.cxx:2401
Definition: MWAWContentListener.hxx:68
int getFooterId(int page, int &numSimillar) const
return the footer blockid ( or 0)
Definition: MWProStructures.cxx:632
bool readStructB()
try to read a zone which follow the fonts zone(checkme)
Definition: MWProStructures.cxx:2436
Internal: the cell of a WNProStructure.
Definition: MWProStructures.cxx:396
void sendChar(char c)
send a character
Definition: MWProStructures.cxx:2688
bool readCharStyles()
try to read the character styles zone
Definition: MWProStructures.cxx:1534