34#ifndef MAC_WRT_PRO_STRUCTURES
35# define MAC_WRT_PRO_STRUCTURES
78 bool isSent(
int graphicId);
80 bool send(
int graphicId);
95 MWAW_DEBUG_MSG((
"MacWrtProStructuresListenerState::numSection: not called in main zone\n"));
108 bool newPage(
bool softBreak=
false);
188 bool readStyles(std::shared_ptr<MWAWStream> &stream);
191 bool readStyle(std::shared_ptr<MWAWStream> &stream,
int styleId);
205 std::shared_ptr<MacWrtProStructuresInternal::Graphic>
readGraphic(std::shared_ptr<MWAWStream> &stream);
224 bool readSections(std::shared_ptr<MWAWStream> &stream, std::vector<MacWrtProStructuresInternal::Section> §ions);
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;
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
Internal: the subdocument of a MacWrtProParser.
Definition: MacWrtProParser.cxx:255
the main class to read a MacWrite II and MacWrite Pro file
Definition: MacWrtProParser.hxx:68
an interface to transmit the info of MacWrtProStructures to a listener
Definition: MacWrtProStructures.hxx:70
int m_numTab
Definition: MacWrtProStructures.hxx:119
void sendChar(char c)
send a character
Definition: MacWrtProStructures.cxx:2939
bool newPage(bool softBreak=false)
create a new page
Definition: MacWrtProStructures.cxx:2885
std::shared_ptr< MacWrtProStructures > m_structures
Definition: MacWrtProStructures.hxx:127
bool sendFont(int id)
try to send a character style
Definition: MacWrtProStructures.cxx:3014
void insertSoftPageBreak()
insert a page break ( if we are not on a new page )
Definition: MacWrtProStructures.cxx:2879
bool send(int graphicId)
try to send a graphic which corresponds to graphicid
Definition: MacWrtProStructures.cxx:2869
bool isSent(int graphicId)
returns true if the graphic is already sent ( or does not exists)
Definition: MacWrtProStructures.cxx:2863
bool sendParagraph(int id)
try to send a paragraph
Definition: MacWrtProStructures.cxx:3028
int m_actPage
Definition: MacWrtProStructures.hxx:115
int m_section
Definition: MacWrtProStructures.hxx:121
int m_version
Definition: MacWrtProStructures.hxx:113
int m_numCols
Definition: MacWrtProStructures.hxx:123
void sendSection(int numSection)
try to send the i^th section
Definition: MacWrtProStructures.cxx:3043
int numSection() const
returns the actual section
Definition: MacWrtProStructures.hxx:92
std::vector< int > getPageBreaksPos() const
return a list of page break position ( as some page break are soft )
Definition: MacWrtProStructures.cxx:2916
bool m_newPageDone
Definition: MacWrtProStructures.hxx:125
~MacWrtProStructuresListenerState()
the destructor
Definition: MacWrtProStructures.cxx:2859
bool m_isMainZone
Definition: MacWrtProStructures.hxx:111
int m_actTab
Definition: MacWrtProStructures.hxx:117
the main class to read the structures part of MacWrite Pro file
Definition: MacWrtProStructures.hxx:136
bool createZones(std::shared_ptr< MWAWStream > &stream, int numPages)
finds the different objects zones
Definition: MacWrtProStructures.cxx:921
bool readSelection(std::shared_ptr< MWAWStream > &stream)
try to read a 16 bytes the zone which follow the char styles zone ( the selection?...
Definition: MacWrtProStructures.cxx:2561
bool readGraphicII(std::shared_ptr< MWAWStream > const &stream, int id, bool mainGraphic, MacWrtProStructuresInternal::Graphic &graphic)
try to read a graphic structure: II
Definition: MacWrtProStructures.cxx:1949
bool getColor(int colId, MWAWColor &color) const
try to return the color corresponding to colId
Definition: MacWrtProStructures.cxx:822
bool readPagesListII(std::shared_ptr< MWAWStream > const &stream, int numPages)
try to parse the list of page: II
Definition: MacWrtProStructures.cxx:1874
bool readFont(std::shared_ptr< MWAWStream > &stream, MacWrtProStructuresInternal::Font &font)
try to read a font
Definition: MacWrtProStructures.cxx:1356
static bool readString(MWAWInputStreamPtr input, std::string &res)
try to read a string
Definition: MacWrtProStructures.cxx:2600
bool readStructB(std::shared_ptr< MWAWStream > &stream)
try to read a zone which follow the fonts zone(checkme)
Definition: MacWrtProStructures.cxx:2633
void init()
inits all internal variables
Definition: MacWrtProStructures.cxx:746
bool readStyles(std::shared_ptr< MWAWStream > &stream)
try to read the paragraph styles zone which begins at address 0x200
Definition: MacWrtProStructures.cxx:1738
std::shared_ptr< MacWrtProStructuresInternal::Graphic > readGraphic(std::shared_ptr< MWAWStream > &stream)
try to read a graphic entry: 1.0, 1.5
Definition: MacWrtProStructures.cxx:2162
int numPages() const
returns the number of pages
Definition: MacWrtProStructures.cxx:763
bool readStyle(std::shared_ptr< MWAWStream > &stream, int styleId)
try to read a style
Definition: MacWrtProStructures.cxx:1780
int version() const
returns the file version.
Definition: MacWrtProStructures.cxx:751
bool readFontsDef(std::shared_ptr< MWAWStream > &stream)
try to read the list of fonts
Definition: MacWrtProStructures.cxx:1309
std::shared_ptr< MacWrtProStructuresInternal::State > m_state
the state
Definition: MacWrtProStructures.hxx:268
void buildPageStructures()
look for pages structures
Definition: MacWrtProStructures.cxx:1121
MacWrtProParser & m_mainParser
the main parser
Definition: MacWrtProStructures.hxx:265
bool readFontsName(std::shared_ptr< MWAWStream > &stream)
try to read the fonts zone
Definition: MacWrtProStructures.cxx:1243
bool readParagraph(std::shared_ptr< MWAWStream > &stream, MacWrtProStructuresInternal::Paragraph ¶)
try to read a paragraph
Definition: MacWrtProStructures.cxx:1494
void flushExtra()
flush not send zones
Definition: MacWrtProStructures.cxx:2774
bool readPageII(std::shared_ptr< MWAWStream > const &stream, int wh, MacWrtProStructuresInternal::Page &page)
try to read a page entry: II
Definition: MacWrtProStructures.cxx:1894
bool isSent(int graphicId)
returns true if the graphic is already sent ( or does not exists)
Definition: MacWrtProStructures.cxx:2677
bool readSections(std::shared_ptr< MWAWStream > &stream, std::vector< MacWrtProStructuresInternal::Section > §ions)
try to read the section info ?
Definition: MacWrtProStructures.cxx:2437
bool readParagraphs(std::shared_ptr< MWAWStream > &stream)
try to read a list of paragraph
Definition: MacWrtProStructures.cxx:1444
bool send(int graphicId, bool mainZone=false)
try to send a graphic which corresponds to graphicid
Definition: MacWrtProStructures.cxx:2688
bool createZonesII(std::shared_ptr< MWAWStream > &stream, int numPages)
finds the different objects zones in a MacWriteII file
Definition: MacWrtProStructures.cxx:1024
void buildTableStructures()
look for tables structures and if so, prepare data
Definition: MacWrtProStructures.cxx:1186
bool getPattern(int patId, float &patternPercent) const
try to return the pattern corresponding to patId
Definition: MacWrtProStructures.cxx:880
virtual ~MacWrtProStructures()
destructor
Definition: MacWrtProStructures.cxx:742
MWAWTextListenerPtr & getTextListener()
returns the actual listener
Definition: MacWrtProStructures.cxx:758
void updatePageSpan(int page, bool hasTitlePage, MWAWPageSpan &pageSpan)
update the page span
Definition: MacWrtProStructures.cxx:770
bool readGraphicsList(std::shared_ptr< MWAWStream > &stream, int nuumPages)
try to read the list of graphic entries: 1.0 1.5
Definition: MacWrtProStructures.cxx:2076
MWAWParserStatePtr m_parserState
the parser state
Definition: MacWrtProStructures.hxx:262
bool readCharStyles(std::shared_ptr< MWAWStream > &stream)
try to read the character styles zone
Definition: MacWrtProStructures.cxx:1650
std::string m_asciiName
the debug file name
Definition: MacWrtProStructures.hxx:271
bool sendMainZone()
send the main zone
Definition: MacWrtProStructures.cxx:1091
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
Internal: the structures of a MacWrtProParser.
Definition: MacWrtProParser.cxx:62
Internal: the structures of a MacWrtProStructures.
Definition: MacWrtProStructures.cxx:59
the class to store a color
Definition: libmwaw_internal.hxx:192
Internal: the cell of a MacWrtProStructure.
Definition: MacWrtProStructures.cxx:495
Internal: the fonts.
Definition: MacWrtProStructures.cxx:428
Internal: the graphic structure.
Definition: MacWrtProStructures.cxx:61
Internal: a page.
Definition: MacWrtProStructures.cxx:398
Internal: class to store the paragraph properties.
Definition: MacWrtProStructures.cxx:467