34 #ifndef MAC_WRT_PRO_STRUCTURES 35 # define MAC_WRT_PRO_STRUCTURES 81 bool send(
int blockId);
99 MWAW_DEBUG_MSG((
"MacWrtProStructuresListenerState::numSection: not called in main zone\n"));
118 bool newPage(
bool softBreak=
false);
142 std::shared_ptr<MacWrtProStructuresInternal::Font>
m_font;
144 std::shared_ptr<MacWrtProStructuresInternal::Paragraph>
m_paragraph;
231 std::shared_ptr<MacWrtProStructuresInternal::Block>
readBlock();
234 std::shared_ptr<MacWrtProStructuresInternal::Block>
readBlockV2(
int id);
249 bool readSections(std::vector<MacWrtProStructuresInternal::Section> §ions);
264 bool getPattern(
int patId,
float &patternPercent)
const;
276 bool send(
int blockId,
bool mainZone=
false);
308 std::shared_ptr<MacWrtProStructuresInternal::State>
m_state;
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:563
bool send(int blockId, bool mainZone=false)
try to send a block which corresponds to blockid
Definition: MacWrtProStructures.cxx:2566
bool sendParagraph(int id)
try to send a paragraph
Definition: MacWrtProStructures.cxx:2907
std::string getParagraphDebugString(int paraId)
debug function which returns a string corresponding to a paragrapId
Definition: MacWrtProStructures.cxx:2930
bool readCharStyles()
try to read the character styles zone
Definition: MacWrtProStructures.cxx:1603
MacWrtProParser & m_mainParser
the main parser
Definition: MacWrtProStructures.hxx:305
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:553
the main class to read the structures part of MacWrite Pro file
Definition: MacWrtProStructures.hxx:152
void sendChar(char c)
send a character
Definition: MacWrtProStructures.cxx:2777
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:65
bool newPage(bool softBreak=false)
create a new page
Definition: MacWrtProStructures.cxx:2742
int m_numCols
Definition: MacWrtProStructures.hxx:136
void buildTableStructures()
look for tables structures and if so, prepare data
Definition: MacWrtProStructures.cxx:1123
bool createZonesV2()
finds the different objects zones in a MacWriteII file
Definition: MacWrtProStructures.cxx:917
void sendSection(int numSection)
try to send the i^th section
Definition: MacWrtProStructures.cxx:2947
int getHeaderId(int page, int &numSimillar) const
return the header blockid ( or 0)
Definition: MacWrtProStructures.cxx:658
int getFooterId(int page, int &numSimillar) const
return the footer blockid ( or 0)
Definition: MacWrtProStructures.cxx:678
int numSection() const
returns the actual section
Definition: MacWrtProStructures.hxx:96
~MacWrtProStructuresListenerState()
the destructor
Definition: MacWrtProStructures.cxx:2719
bool readStyle(int styleId)
try to read a style
Definition: MacWrtProStructures.cxx:1732
void insertSoftPageBreak()
insert a page break ( if we are not on a new page )
Definition: MacWrtProStructures.cxx:2736
int numPages() const
returns the number of pages
Definition: MacWrtProStructures.cxx:651
int m_actPage
Definition: MacWrtProStructures.hxx:128
int version() const
returns the file version.
Definition: MacWrtProStructures.cxx:639
std::string getFontDebugString(int fontId)
debug function which returns a string corresponding to a fontId
Definition: MacWrtProStructures.cxx:2884
Internal: the subdocument of a MacWrtProParser.
Definition: MacWrtProParser.cxx:261
int m_actTab
Definition: MacWrtProStructures.hxx:130
bool m_newPageDone
Definition: MacWrtProStructures.hxx:138
void init()
inits all internal variables
Definition: MacWrtProStructures.cxx:633
the class to store a color
Definition: libmwaw_internal.hxx:192
bool readBlocksList()
try to read the list of block entries
Definition: MacWrtProStructures.cxx:1828
std::shared_ptr< MacWrtProStructuresInternal::Paragraph > m_paragraph
Definition: MacWrtProStructures.hxx:144
void flushExtra()
flush not send zones
Definition: MacWrtProStructures.cxx:2651
std::shared_ptr< MacWrtProStructuresInternal::Block > readBlock()
try to read a block entry
Definition: MacWrtProStructures.cxx:2039
std::shared_ptr< MacWrtProStructuresInternal::Font > m_font
Definition: MacWrtProStructures.hxx:142
static bool readString(MWAWInputStreamPtr input, std::string &res)
try to read a string
Definition: MacWrtProStructures.cxx:2472
void setAsciiName(char const *name)
Debugging: change the default ascii file (by default struct )
Definition: MacWrtProStructures.hxx:170
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
int getEndBlockSize()
returns the size of the block end data
Definition: MacWrtProStructures.cxx:1897
libmwaw::DebugFile & ascii()
returns the debug file
Definition: MacWrtProStructures.hxx:282
bool sendFont(int id)
try to send a character style
Definition: MacWrtProStructures.cxx:2861
bool readFontsName()
try to read the fonts zone
Definition: MacWrtProStructures.cxx:1180
bool getPattern(int patId, float &patternPercent) const
try to return the pattern corresponding to patId
Definition: MacWrtProStructures.cxx:758
std::shared_ptr< MacWrtProStructures > m_structures
Definition: MacWrtProStructures.hxx:140
bool readParagraphs()
try to read a list of paragraph
Definition: MacWrtProStructures.cxx:1385
std::string const & asciiName() const
return the ascii file name
Definition: MacWrtProStructures.hxx:288
bool send(int blockId)
try to send a block which corresponds to blockid
Definition: MacWrtProStructures.cxx:2729
bool createZones()
finds the different objects zones
Definition: MacWrtProStructures.cxx:799
MWAWInputStreamPtr m_input
the main input
Definition: MacWrtProStructures.hxx:302
void buildPageStructures()
look for pages structures
Definition: MacWrtProStructures.cxx:1058
MacWrtProStructuresListenerState(std::shared_ptr< MacWrtProStructures > const &structures, bool mainZone)
the constructor
Definition: MacWrtProStructures.cxx:2697
Internal: the fonts.
Definition: MacWrtProStructures.cxx:315
Internal: the cell of a MacWrtProStructure.
Definition: MacWrtProStructures.cxx:379
bool readSelection()
try to read a 16 bytes the zone which follow the char styles zone ( the selection?)
Definition: MacWrtProStructures.cxx:2432
virtual ~MacWrtProStructures()
destructor
Definition: MacWrtProStructures.cxx:628
bool isSent(int blockId)
returns true if the block is already sent ( or does not exists)
Definition: MacWrtProStructures.cxx:2723
bool isSent(int blockId)
returns true if the block is already sent ( or does not exists)
Definition: MacWrtProStructures.cxx:2547
std::vector< int > getPageBreaksPos() const
return a list of page break position ( as some page break are soft )
Definition: MacWrtProStructures.cxx:2765
an interface to transmit the info of MacWrtProStructures to a listener
Definition: MacWrtProStructures.hxx:70
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:547
bool resendAll()
force resent data : font + paragraph
Definition: MacWrtProStructures.cxx:2852
std::string m_asciiName
the debug file name
Definition: MacWrtProStructures.hxx:314
Internal: class to store the paragraph properties.
Definition: MacWrtProStructures.cxx:354
MWAWParserStatePtr m_parserState
the parser state
Definition: MacWrtProStructures.hxx:299
std::shared_ptr< MacWrtProStructuresInternal::State > m_state
the state
Definition: MacWrtProStructures.hxx:308
MacWrtProStructures(MacWrtProParser &mainParser)
constructor
Definition: MacWrtProStructures.cxx:617
int m_section
Definition: MacWrtProStructures.hxx:134
MWAWTextListenerPtr & getTextListener()
returns the actual listener
Definition: MacWrtProStructures.cxx:646
the main class to read a MacWrite II and MacWrite Pro file
Definition: MacWrtProParser.hxx:67
bool readStyles()
try to read the paragraph styles zone which begins at address 0x200
Definition: MacWrtProStructures.cxx:1691
bool sendMainZone()
send the main zone
Definition: MacWrtProStructures.cxx:1028
bool readSections(std::vector< MacWrtProStructuresInternal::Section > §ions)
try to read the section info ?
Definition: MacWrtProStructures.cxx:2310
Internal: the structures of a MacWrtProParser.
Definition: MacWrtProParser.cxx:59
libmwaw::DebugFile m_asciiFile
the debug file
Definition: MacWrtProStructures.hxx:311
bool m_isMainZone
Definition: MacWrtProStructures.hxx:126
bool readFontsDef()
try to read the list of fonts
Definition: MacWrtProStructures.cxx:1246
bool readParagraph(MacWrtProStructuresInternal::Paragraph ¶)
try to read a paragraph
Definition: MacWrtProStructures.cxx:1440
Internal: the structures of a MacWrtProStructures.
Definition: MacWrtProStructures.cxx:58
int m_numTab
Definition: MacWrtProStructures.hxx:132
bool readFont(MacWrtProStructuresInternal::Font &font)
try to read a font
Definition: MacWrtProStructures.cxx:1298
bool readStructB()
try to read a zone which follow the fonts zone(checkme)
Definition: MacWrtProStructures.cxx:2505
bool getColor(int colId, MWAWColor &color) const
try to return the color corresponding to colId
Definition: MacWrtProStructures.cxx:700
std::shared_ptr< MacWrtProStructuresInternal::Block > readBlockV2(int id)
try to read a block entry
Definition: MacWrtProStructures.cxx:1909