34 #ifndef MAC_WRT_PRO_STRUCTURES 35 # define MAC_WRT_PRO_STRUCTURES 78 bool isSent(
int graphicId);
80 bool send(
int graphicId);
83 void sendSection(
int numSection);
85 bool sendFont(
int id);
87 bool sendParagraph(
int id);
89 void sendChar(
char c);
95 MWAW_DEBUG_MSG((
"MacWrtProStructuresListenerState::numSection: not called in main zone\n"));
102 std::vector<int> getPageBreaksPos()
const;
104 void insertSoftPageBreak();
108 bool newPage(
bool softBreak=
false);
157 bool createZones(std::shared_ptr<MWAWStream> &stream,
int numPages);
163 bool createZonesII(std::shared_ptr<MWAWStream> &stream,
int numPages);
166 int numPages()
const;
172 void updatePageSpan(
int page,
bool hasTitlePage,
MWAWPageSpan &pageSpan);
178 void buildPageStructures();
181 void buildTableStructures();
188 bool readStyles(std::shared_ptr<MWAWStream> &stream);
191 bool readStyle(std::shared_ptr<MWAWStream> &stream,
int styleId);
194 bool readCharStyles(std::shared_ptr<MWAWStream> &stream);
197 bool readParagraphs(std::shared_ptr<MWAWStream> &stream);
203 bool readGraphicsList(std::shared_ptr<MWAWStream> &stream,
int nuumPages);
205 std::shared_ptr<MacWrtProStructuresInternal::Graphic> readGraphic(std::shared_ptr<MWAWStream> &stream);
208 bool readPagesListII(std::shared_ptr<MWAWStream>
const &stream,
int numPages);
215 bool readFontsName(std::shared_ptr<MWAWStream> &stream);
218 bool readFontsDef(std::shared_ptr<MWAWStream> &stream);
224 bool readSections(std::shared_ptr<MWAWStream> &stream, std::vector<MacWrtProStructuresInternal::Section> §ions);
227 bool readSelection(std::shared_ptr<MWAWStream> &stream);
230 bool readStructB(std::shared_ptr<MWAWStream> &stream);
239 bool getPattern(
int patId,
float &patternPercent)
const;
245 bool isSent(
int graphicId);
251 bool send(
int graphicId,
bool mainZone=
false);
268 std::shared_ptr<MacWrtProStructuresInternal::State>
m_state;
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
MacWrtProParser & m_mainParser
the main parser
Definition: MacWrtProStructures.hxx:265
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
the main class to read the structures part of MacWrite Pro file
Definition: MacWrtProStructures.hxx:135
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:98
int m_numCols
Definition: MacWrtProStructures.hxx:123
int numSection() const
returns the actual section
Definition: MacWrtProStructures.hxx:92
int m_actPage
Definition: MacWrtProStructures.hxx:115
Internal: the subdocument of a MacWrtProParser.
Definition: MacWrtProParser.cxx:254
int m_actTab
Definition: MacWrtProStructures.hxx:117
bool m_newPageDone
Definition: MacWrtProStructures.hxx:125
Internal: a page.
Definition: MacWrtProStructures.cxx:398
the class to store a color
Definition: libmwaw_internal.hxx:192
Internal: the graphic structure.
Definition: MacWrtProStructures.cxx:61
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
std::shared_ptr< MacWrtProStructures > m_structures
Definition: MacWrtProStructures.hxx:127
Internal: the fonts.
Definition: MacWrtProStructures.cxx:428
Internal: the cell of a MacWrtProStructure.
Definition: MacWrtProStructures.cxx:495
bool isSent(int graphicId)
returns true if the graphic is already sent ( or does not exists)
Definition: MacWrtProStructures.cxx:2863
an interface to transmit the info of MacWrtProStructures to a listener
Definition: MacWrtProStructures.hxx:69
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
int m_version
Definition: MacWrtProStructures.hxx:113
std::string m_asciiName
the debug file name
Definition: MacWrtProStructures.hxx:271
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:467
MWAWParserStatePtr m_parserState
the parser state
Definition: MacWrtProStructures.hxx:262
std::shared_ptr< MacWrtProStructuresInternal::State > m_state
the state
Definition: MacWrtProStructures.hxx:268
int m_section
Definition: MacWrtProStructures.hxx:121
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
bool m_isMainZone
Definition: MacWrtProStructures.hxx:111
Internal: the structures of a MacWrtProStructures.
Definition: MacWrtProStructures.cxx:58
int m_numTab
Definition: MacWrtProStructures.hxx:119
bool send(int graphicId)
try to send a graphic which corresponds to graphicid
Definition: MacWrtProStructures.cxx:2869