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);
142 std::shared_ptr<MacWrtProStructuresInternal::Font>
m_font;
144 std::shared_ptr<MacWrtProStructuresInternal::Paragraph>
m_paragraph;
186 bool createZonesV2();
189 int numPages()
const;
195 int getHeaderId(
int page,
int &numSimillar)
const;
197 int getFooterId(
int page,
int &numSimillar)
const;
203 void buildPageStructures();
206 void buildTableStructures();
216 bool readStyle(
int styleId);
219 bool readCharStyles();
222 bool readParagraphs();
228 int getEndBlockSize();
231 std::shared_ptr<MacWrtProStructuresInternal::Block> readBlock();
234 std::shared_ptr<MacWrtProStructuresInternal::Block> readBlockV2(
int id);
237 bool readBlocksList();
240 bool readFontsName();
249 bool readSections(std::vector<MacWrtProStructuresInternal::Section> §ions);
252 bool readSelection();
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
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
int numSection() const
returns the actual section
Definition: MacWrtProStructures.hxx:96
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:136
int m_actPage
Definition: MacWrtProStructures.hxx:128
Internal: the subdocument of a MacWrtProParser.
Definition: MacWrtProParser.cxx:261
int m_actTab
Definition: MacWrtProStructures.hxx:130
bool m_newPageDone
Definition: MacWrtProStructures.hxx:138
the class to store a color
Definition: libmwaw_internal.hxx:192
std::shared_ptr< MacWrtProStructuresInternal::Paragraph > m_paragraph
Definition: MacWrtProStructures.hxx:144
std::shared_ptr< MacWrtProStructuresInternal::Font > m_font
Definition: MacWrtProStructures.hxx:142
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
libmwaw::DebugFile & ascii()
returns the debug file
Definition: MacWrtProStructures.hxx:282
std::string const & asciiName() const
return the ascii file name
Definition: MacWrtProStructures.hxx:288
std::shared_ptr< MacWrtProStructures > m_structures
Definition: MacWrtProStructures.hxx:140
bool send(int blockId)
try to send a block which corresponds to blockid
Definition: MacWrtProStructures.cxx:2729
MWAWInputStreamPtr m_input
the main input
Definition: MacWrtProStructures.hxx:302
Internal: the fonts.
Definition: MacWrtProStructures.cxx:315
Internal: the cell of a MacWrtProStructure.
Definition: MacWrtProStructures.cxx:379
bool isSent(int blockId)
returns true if the block is already sent ( or does not exists)
Definition: MacWrtProStructures.cxx:2723
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
std::string m_asciiName
the debug file name
Definition: MacWrtProStructures.hxx:314
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:354
MWAWParserStatePtr m_parserState
the parser state
Definition: MacWrtProStructures.hxx:299
std::shared_ptr< MacWrtProStructuresInternal::State > m_state
the state
Definition: MacWrtProStructures.hxx:308
int m_section
Definition: MacWrtProStructures.hxx:134
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:59
libmwaw::DebugFile m_asciiFile
the debug file
Definition: MacWrtProStructures.hxx:311
bool m_isMainZone
Definition: MacWrtProStructures.hxx:126
Internal: the structures of a MacWrtProStructures.
Definition: MacWrtProStructures.cxx:58
int m_numTab
Definition: MacWrtProStructures.hxx:132