49 namespace MSK3TextInternal
81 int createZones(
int numLines=-1,
bool mainZone=
false);
93 void sendNote(
int zoneId,
int noteId);
103 std::vector<int> &lines,
104 std::vector<int> &pages);
int numPages(int zoneId) const
returns the number of pages
Definition: MSK3Text.cxx:203
bool sendText(MSK3TextInternal::LineZone &zone, int zoneId)
tries to send a text zone
Definition: MSK3Text.cxx:402
MSK3Text & operator=(MSK3Text const &orig)
bool getLinesPagesHeight(int zoneId, std::vector< int > &lines, std::vector< int > &pages)
return the lines and pages height ( for v1, ...)
Definition: MSK3Text.cxx:221
MSK3Text(MSK3Parser &parser)
constructor
Definition: MSK3Text.cxx:187
bool readZoneHeader(MSK3TextInternal::LineZone &zone) const
try to read a zone header
Definition: MSK3Text.cxx:382
bool readFont(MSK3TextInternal::Font &font, long endPos)
tries to read a font
Definition: MSK3Text.cxx:537
void updateNotes(MSK3TextInternal::TextZone &zone, int firstNote)
prepare the note zones given a zone and the position of the first note
Definition: MSK3Text.cxx:319
std::string readHeaderFooterString(bool header)
Definition: MSK3Text.cxx:728
the main class to read the text part of Microsoft Works file
Definition: MSK3Text.hxx:64
Vec2< int > Vec2i
Vec2 of int.
Definition: libmwaw_internal.hxx:592
Internal: the fonts.
Definition: MSK3Text.cxx:109
int createZones(int numLines=-1, bool mainZone=false)
finds the different text zones. Returns the zoneId or -1.
Definition: MSK3Text.cxx:256
Internal: the text zone.
Definition: MSK3Text.cxx:138
the main class to read a Microsoft Works file
Definition: MSK3Parser.hxx:62
int version() const
returns the file version
Definition: MSK3Text.cxx:196
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: MSK3Text.cxx:855
shared_ptr< MSK3TextInternal::State > m_state
the state
Definition: MSK3Text.hxx:147
MSK3Parser * m_mainParser
the main parser;
Definition: MSK3Text.hxx:150
MWAWParserStatePtr m_parserState
the parser state
Definition: MSK3Text.hxx:144
void sendZone(int zoneId)
send a zone
Definition: MSK3Text.cxx:845
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
int getFooter() const
returns a footer zone id ( or -1 )
Definition: MSK3Text.cxx:245
int getHeader() const
returns a header zone id ( or -1 )
Definition: MSK3Text.cxx:237
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:356
virtual ~MSK3Text()
destructor
Definition: MSK3Text.cxx:193
bool readParagraph(MSK3TextInternal::LineZone &zone, MWAWParagraph ¶g)
tries to read a paragraph
Definition: MSK3Text.cxx:599
Internal: header zone.
Definition: MSK3Text.cxx:56
void update(MSK3TextInternal::TextZone &zone)
prepare a zone
Definition: MSK3Text.cxx:295
void send(MSK3TextInternal::TextZone &zone, Vec2i limit=Vec2i(-1,-1))
sends the zone data to the listener.
Definition: MSK3Text.cxx:780
void sendNote(int zoneId, int noteId)
send a note
Definition: MSK3Text.cxx:828
bool sendString(std::string &str)
tries to send a string (for v1-2, header/footer zone)
Definition: MSK3Text.cxx:490