Go to the documentation of this file.
91 int createZones(
int numLines=-1,
bool mainZone=
false);
103 void sendNote(
int zoneId,
int noteId);
113 std::vector<int> &lines,
114 std::vector<int> &pages);
157 std::shared_ptr<MsWks3TextInternal::State>
m_state;
Font()
the constructor
Definition: MsWks3Text.cxx:124
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
@ Time
Definition: libmwaw_internal.hxx:401
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
@ LEFT
Definition: MWAWParagraph.hxx:48
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MsWksDocument.hxx:113
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
int m_numPages
Definition: MsWks3Text.cxx:210
std::vector< int > m_linesHeight
the line height
Definition: MsWks3Text.cxx:181
the main class to read/store generic data of a MsWorks document v1-v3
Definition: MsWksDocument.hxx:69
@ Main
Definition: MsWks3Text.cxx:154
a note
Definition: libmwaw_internal.hxx:445
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
int numPages(int zoneId) const
returns the number of pages
Definition: MsWks3Text.cxx:300
Type
Definition: MsWks3Text.cxx:218
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
the main class to read a Microsoft Works graphic file
Definition: MsWksDRParser.hxx:60
Alignment
the tab alignment
Definition: MWAWParagraph.hxx:48
MWAWEntry m_pos
the file position
Definition: MsWks3Text.cxx:111
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
int getHeader() const
returns a header zone id ( or -1 )
Definition: MsWks3Text.cxx:335
static Script sub100()
return a yposition which correspond to a basic subscript100
Definition: MWAWFont.hxx:125
@ boldBit
Definition: MWAWFont.hxx:190
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
int m_type
the type
Definition: MsWks3Text.cxx:109
@ CENTER
Definition: MWAWParagraph.hxx:48
Internal: the subdocument of a MsWks3Text.
Definition: MsWks3Text.cxx:216
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
bool getLinesPagesHeight(int zoneId, std::vector< int > &lines, std::vector< int > &pages)
return the lines and pages height ( for v1, ...)
Definition: MsWks3Text.cxx:319
the class to store a color
Definition: libmwaw_internal.hxx:192
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
int createZones(int numLines=-1, bool mainZone=false)
finds the different text zones. Returns the zoneId or -1.
Definition: MsWks3Text.cxx:354
bool getColor(int id, MWAWColor &col, int vers)
returns the color which correspond to an index
Definition: MsWksDocument.cxx:583
the main class to read a Microsoft Works file: v1-v4
Definition: MsWksParser.hxx:60
int version() const
returns the file version
Definition: MsWks3Text.cxx:293
MsWksDocument & m_document
the input zone
Definition: MsWks3Text.hxx:162
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
MsWks3Text * m_textParser
the text parser
Definition: MsWks3Text.cxx:238
@ Simple
Definition: MWAWFont.hxx:49
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
int m_type
the zone type;
Definition: MsWks3Text.cxx:175
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
@ Text
Definition: MsWks3Text.cxx:218
@ DECIMAL
Definition: MWAWParagraph.hxx:48
int m_id
the subdocument id
Definition: MsWks3Text.cxx:240
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:135
@ embossBit
Definition: MWAWFont.hxx:190
SubDocument operator=(SubDocument const &orig)=delete
@ Date
Definition: libmwaw_internal.hxx:401
std::map< int, MWAWVec2i > m_footnoteMap
the note id -> zone limit
Definition: MsWks3Text.cxx:187
int m_id
the id
Definition: MsWks3Text.cxx:113
void sendNote(int zoneId, int noteId)
send a note
Definition: MsWks3Text.cxx:931
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
std::string m_extra
extra data
Definition: MsWks3Text.cxx:148
SubDocumentType
Definition: libmwaw_internal.hxx:188
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
void sendZone(int zoneId)
send a zone
Definition: MsWks3Text.cxx:949
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
@ Unknown
Definition: MsWks3Text.cxx:154
@ shadowBit
Definition: MWAWFont.hxx:191
int m_height
the height
Definition: MsWks3Text.cxx:117
int m_version
the file version
Definition: MsWks3Text.cxx:206
Internal: header zone.
Definition: MsWks3Text.cxx:59
std::shared_ptr< MsWks3TextInternal::State > m_state
the state
Definition: MsWks3Text.hxx:157
std::string m_text
a string used to store v1-2 files header/footer
Definition: MsWks3Text.cxx:189
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MsWksDocument.hxx:132
the main class to read the text part of Microsoft Works file
Definition: MsWks3Text.hxx:70
void send(MsWks3TextInternal::TextZone &zone, MWAWVec2i limit=MWAWVec2i(-1,-1))
sends the zone data to the listener.
Definition: MsWks3Text.cxx:881
int m_flags[3]
some unknown flag
Definition: MsWks3Text.cxx:146
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
std::string readHeaderFooterString(bool header)
reads the header/footer string : version v1-2
Definition: MsWks3Text.cxx:829
double getPageLength() const
returns the page length (form width without margin )
Definition: MWAWPageSpan.hxx:152
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
std::vector< int > m_pagesHeight
the pages height
Definition: MsWks3Text.cxx:183
TextZone()
constructor
Definition: MsWks3Text.cxx:156
Internal: the structures of a MsWks3Text.
Definition: MsWks3Text.cxx:56
Internal: the state of a MsWks3Text.
Definition: MsWks3Text.cxx:196
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
int m_actualPage
Definition: MsWks3Text.cxx:210
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
Internal: the text zone.
Definition: MsWks3Text.cxx:153
SubDocument(MsWks3Text &pars, MWAWInputStreamPtr const &input, int zoneId, int noteId)
Definition: MsWks3Text.cxx:219
bool isRuler() const
return true if this is a tabs
Definition: MsWks3Text.cxx:104
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
int m_flags
the zone flags
Definition: MsWks3Text.cxx:115
~SubDocument() final
destructor
Definition: MsWks3Text.cxx:228
a field
Definition: libmwaw_internal.hxx:399
@ PageNumber
Definition: libmwaw_internal.hxx:401
the main class to read a Microsoft Works spreadsheet file
Definition: MsWksSSParser.hxx:66
bool readZoneHeader(MsWks3TextInternal::LineZone &zone) const
try to read a zone header
Definition: MsWks3Text.cxx:480
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
int getFooter() const
returns a footer zone id ( or -1 )
Definition: MsWks3Text.cxx:343
int m_id
the zone id
Definition: MsWks3Text.cxx:177
int m_noteId
the note id
Definition: MsWks3Text.cxx:242
void update(MsWks3TextInternal::TextZone &zone)
prepare a zone
Definition: MsWks3Text.cxx:393
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
bool readFont(MsWks3TextInternal::Font &font, long endPos)
tries to read a font
Definition: MsWks3Text.cxx:637
MsWks3Text & operator=(MsWks3Text const &orig)=delete
bool sendText(MsWks3TextInternal::LineZone &zone, int zoneId)
tries to send a text zone
Definition: MsWks3Text.cxx:500
void updateNotes(MsWks3TextInternal::TextZone &zone, int firstNote)
prepare the note zones given a zone and the position of the first note
Definition: MsWks3Text.cxx:417
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
bool isMain() const
return true if this is the main zone
Definition: MsWks3Text.cxx:170
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: MsWks3Text.cxx:264
@ italicBit
Definition: MWAWFont.hxx:190
MsWks3Text(MsWksDocument &zone)
constructor
Definition: MsWks3Text.cxx:280
State()
constructor
Definition: MsWks3Text.cxx:198
friend std::ostream & operator<<(std::ostream &o, LineZone const &z)
operator<<
Definition: MsWks3Text.cxx:70
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: MsWks3Text.cxx:248
@ JustificationFull
Definition: MWAWParagraph.hxx:90
@ JustificationRight
Definition: MWAWParagraph.hxx:91
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
std::map< int, bool > m_pagesPosition
the zone id -> hard break
Definition: MsWks3Text.cxx:185
bool readParagraph(MsWks3TextInternal::LineZone &zone, MWAWParagraph ¶g)
tries to read a paragraph
Definition: MsWks3Text.cxx:700
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MWAWParserStatePtr m_parserState
the parser state
Definition: MsWks3Text.hxx:154
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:630
@ Header
Definition: MsWks3Text.cxx:154
bool sendString(std::string &str)
tries to send a string (for v1-2, header/footer zone)
Definition: MsWks3Text.cxx:591
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
@ FootNote
Definition: libmwaw_internal.hxx:447
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:106
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
@ RIGHT
Definition: MWAWParagraph.hxx:48
Class to store font.
Definition: MWAWFont.hxx:44
void newPage(int page, bool softBreak=false)
tries to create a new page
Definition: MsWksDocument.cxx:492
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:190
Type
Definition: MsWks3Text.cxx:154
@ Title
Definition: libmwaw_internal.hxx:401
SubDocument(SubDocument const &orig)=delete
friend std::ostream & operator<<(std::ostream &o, Font const &font)
operator<<
Definition: MsWks3Text.cxx:130
std::vector< TextZone > m_zones
the main zone
Definition: MsWks3Text.cxx:208
bool isNote() const
return true if this is a note
Definition: MsWks3Text.cxx:99
virtual ~MsWks3Text()
destructor
Definition: MsWks3Text.cxx:289
MWAWParser * m_mainParser
the main parser;
Definition: MsWks3Text.hxx:160
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
@ Zone
Definition: MsWks3Text.cxx:218
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWFont m_font
the font
Definition: MsWks3Text.cxx:144
@ Footer
Definition: MsWks3Text.cxx:154
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: MsWks3Text.cxx:959
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:466
LineZone()
the constructor
Definition: MsWks3Text.cxx:61
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
MsWks3Text(MsWks3Text const &orig)=delete
bool m_isSent
flag to know if the zone is send or not
Definition: MsWks3Text.cxx:191
Internal: the fonts.
Definition: MsWks3Text.cxx:122
std::vector< LineZone > m_zonesList
the list of zones
Definition: MsWks3Text.cxx:179
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20