34 #ifndef MAC_WRT_PRO_STRUCTURES 35 # define MAC_WRT_PRO_STRUCTURES 79 bool isSent(
int blockId);
81 bool send(
int blockId);
84 void sendSection(
int numSection);
86 bool sendFont(
int id);
88 bool sendParagraph(
int id);
90 void sendChar(
char c);
99 MWAW_DEBUG_MSG((
"MacWrtProStructuresListenerState::numSection: not called in main zone\n"));
106 std::vector<int> getPageBreaksPos()
const;
108 void insertSoftPageBreak();
111 std::string getFontDebugString(
int fontId);
114 std::string getParagraphDebugString(
int paraId);
118 bool newPage(
bool softBreak=
false);
144 std::shared_ptr<MacWrtProStructuresInternal::Font>
m_font;
146 std::shared_ptr<MacWrtProStructuresInternal::Paragraph>
m_paragraph;
188 bool createZonesV2();
191 int numPages()
const;
197 void updatePageSpan(
int page,
bool hasTitlePage,
MWAWPageSpan &pageSpan);
203 void buildPageStructures();
206 void buildTableStructures();
216 bool readStyle(
int styleId);
219 bool readCharStyles();
222 bool readParagraphs();
228 std::shared_ptr<MacWrtProStructuresInternal::Block> readBlock();
231 std::shared_ptr<MacWrtProStructuresInternal::Block> readBlockV2(
int id);
234 bool readBlocksList();
237 bool readFontsName();
246 bool readSections(std::vector<MacWrtProStructuresInternal::Section> §ions);
249 bool readSelection();
261 bool getPattern(
int patId,
float &patternPercent)
const;
273 bool send(
int blockId,
bool mainZone=
false);
305 std::shared_ptr<MacWrtProStructuresInternal::State>
m_state;
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:565
MacWrtProParser & m_mainParser
the main parser
Definition: MacWrtProStructures.hxx:302
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:555
the main class to read the structures part of MacWrite Pro file
Definition: MacWrtProStructures.hxx:154
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:97
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:65
int m_numCols
Definition: MacWrtProStructures.hxx:138
int numSection() const
returns the actual section
Definition: MacWrtProStructures.hxx:96
int m_actPage
Definition: MacWrtProStructures.hxx:130
Internal: the subdocument of a MacWrtProParser.
Definition: MacWrtProParser.cxx:267
int m_actTab
Definition: MacWrtProStructures.hxx:132
bool m_newPageDone
Definition: MacWrtProStructures.hxx:140
the class to store a color
Definition: libmwaw_internal.hxx:192
std::shared_ptr< MacWrtProStructuresInternal::Paragraph > m_paragraph
Definition: MacWrtProStructures.hxx:146
std::shared_ptr< MacWrtProStructuresInternal::Font > m_font
Definition: MacWrtProStructures.hxx:144
void setAsciiName(char const *name)
Debugging: change the default ascii file (by default struct )
Definition: MacWrtProStructures.hxx:172
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
libmwaw::DebugFile & ascii()
returns the debug file
Definition: MacWrtProStructures.hxx:279
std::shared_ptr< MacWrtProStructures > m_structures
Definition: MacWrtProStructures.hxx:142
std::string const & asciiName() const
return the ascii file name
Definition: MacWrtProStructures.hxx:285
bool send(int blockId)
try to send a block which corresponds to blockid
Definition: MacWrtProStructures.cxx:2814
MWAWInputStreamPtr m_input
the main input
Definition: MacWrtProStructures.hxx:299
Internal: the fonts.
Definition: MacWrtProStructures.cxx:322
Internal: the cell of a MacWrtProStructure.
Definition: MacWrtProStructures.cxx:388
bool isSent(int blockId)
returns true if the block is already sent ( or does not exists)
Definition: MacWrtProStructures.cxx:2808
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:549
int m_version
Definition: MacWrtProStructures.hxx:128
std::string m_asciiName
the debug file name
Definition: MacWrtProStructures.hxx:311
bool getColor(int color, MWAWColor &col)
try to convert a file data to a color
Definition: FullWrtStruct.cxx:45
Internal: class to store the paragraph properties.
Definition: MacWrtProStructures.cxx:361
MWAWParserStatePtr m_parserState
the parser state
Definition: MacWrtProStructures.hxx:296
std::shared_ptr< MacWrtProStructuresInternal::State > m_state
the state
Definition: MacWrtProStructures.hxx:305
int m_section
Definition: MacWrtProStructures.hxx:136
the main class to read a MacWrite II and MacWrite Pro file
Definition: MacWrtProParser.hxx:67
Internal: the structures of a MacWrtProParser.
Definition: MacWrtProParser.cxx:61
libmwaw::DebugFile m_asciiFile
the debug file
Definition: MacWrtProStructures.hxx:308
bool m_isMainZone
Definition: MacWrtProStructures.hxx:126
Internal: the structures of a MacWrtProStructures.
Definition: MacWrtProStructures.cxx:58
int m_numTab
Definition: MacWrtProStructures.hxx:134