Go to the documentation of this file.
38 #ifndef GREAT_WKS_TEXT
39 # define GREAT_WKS_TEXT
137 std::shared_ptr<GreatWksTextInternal::State>
m_state;
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::string m_extra
extra data
Definition: GreatWksText.cxx:423
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
bool sendTo(MWAWListener &listener) const
try to send the token to the listener
Definition: GreatWksText.cxx:146
bool ok() const
check if the data read are or not ok
Definition: GreatWksText.cxx:334
std::vector< Token > m_tokenList
the list of token
Definition: GreatWksText.cxx:413
bool findNextZone()
heuristic function used to find the next zone
Definition: GreatWksText.cxx:597
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
void setUnderlineType(Line::Type type=Line::Single)
sets the underline type
Definition: MWAWFont.hxx:474
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
MWAWParser * m_mainParser
the main parser;
Definition: GreatWksText.hxx:139
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
@ ColumnBreak
Definition: MWAWListener.hxx:58
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
@ P_Font
Definition: GreatWksText.cxx:62
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
uint32_t m_date
the token date (0xFFFFFFFF means actual date)
Definition: GreatWksText.cxx:141
std::multimap< long, PLC > m_posPLCMap
a map text pos -> PLC
Definition: GreatWksText.cxx:419
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:424
static Script sub100()
return a yposition which correspond to a basic subscript100
Definition: MWAWFont.hxx:125
@ boldBit
Definition: MWAWFont.hxx:190
std::vector< MWAWParagraph > m_rulerList
the list of ruler
Definition: GreatWksText.cxx:411
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
virtual ~GreatWksText()
destructor
Definition: GreatWksText.cxx:465
@ CENTER
Definition: MWAWParagraph.hxx:48
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
the class to store a color
Definition: libmwaw_internal.hxx:192
GreatWksDocument & m_document
the document
Definition: GreatWksText.hxx:133
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:156
the main class to read a GreatWorks text file
Definition: GreatWksParser.hxx:57
MWAWEntry m_textEntry
the text entry list
Definition: GreatWksText.cxx:417
MWAWSection getMainSection() const
return the main section
Definition: GreatWksDocument.cxx:115
@ P_Ruler
Definition: GreatWksText.cxx:62
@ P_Page
Definition: GreatWksText.cxx:62
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
the main class to read a GreatWorks database file
Definition: GreatWksDBParser.hxx:62
@ Simple
Definition: MWAWFont.hxx:49
@ P_Unknown
Definition: GreatWksText.cxx:62
bool sendZone(GreatWksTextInternal::Zone const &zone, MWAWListenerPtr listener=MWAWListenerPtr())
try to send a zone
Definition: GreatWksText.cxx:1352
int m_numFrames
the number of frames (ie. one by column and one by pages )
Definition: GreatWksText.cxx:407
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
void setDeltaLetterSpacing(float d, librevenge::RVNGUnit unit=librevenge::RVNG_POINT)
sets the letter spacing ( delta value in point )
Definition: MWAWFont.hxx:292
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
bool sendSimpleTextbox(MWAWEntry const &entry, MWAWListenerPtr listener=MWAWListenerPtr())
try to send simplified textbox zone
Definition: GreatWksText.cxx:1200
@ DECIMAL
Definition: MWAWParagraph.hxx:48
GreatWksText(GreatWksText const &orig)=delete
long size() const
returns the data size
Definition: GreatWksText.cxx:344
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:135
@ embossBit
Definition: MWAWFont.hxx:190
int numColumns() const
returns the number of columns
Definition: MWAWSection.hxx:71
@ PageCount
Definition: libmwaw_internal.hxx:401
@ Date
Definition: libmwaw_internal.hxx:401
int numHFZones() const
return the number of header/footer zones
Definition: GreatWksText.cxx:497
bool createZones(int expectedHF)
finds the different objects zones
Definition: GreatWksText.cxx:543
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
void setStrikeOutStyle(Line::Style style=Line::None, bool doReset=true)
sets the strikeoutline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:427
Frame()
constructor
Definition: GreatWksText.cxx:283
virtual void insertField(MWAWField const &field)=0
adds a field type
MWAWEntry m_pictEntry
the picture entry
Definition: GreatWksText.cxx:135
int m_id
the id
Definition: GreatWksText.cxx:78
@ P_Token
Definition: GreatWksText.cxx:62
std::string m_extra
extra data
Definition: MWAWFont.hxx:573
int m_format
the token format
Definition: GreatWksText.cxx:133
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
@ shadowBit
Definition: MWAWFont.hxx:191
Zone()
constructor
Definition: GreatWksText.cxx:309
GreatWksText(GreatWksDocument &document)
constructor
Definition: GreatWksText.cxx:457
std::string getDTFormat() const
returns a field format
Definition: GreatWksText.cxx:179
int m_page
the page
Definition: GreatWksText.cxx:301
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:50
int m_numFonts
the number of fonts
Definition: GreatWksText.cxx:395
void newPage(int page)
send a page break
Definition: GreatWksDocument.cxx:124
int m_type
the main type: 1=auxi, 3=main
Definition: GreatWksText.cxx:393
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
friend std::ostream & operator<<(std::ostream &o, PLC const &plc)
operator<<
Definition: GreatWksText.cxx:82
GreatWksText & operator=(GreatWksText const &orig)=delete
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: GreatWksText.cxx:1186
std::map< int, int > m_fileIdFontIdMap
a global map file font id-> fontconverter id
Definition: GreatWksText.cxx:445
PLCType m_type
the PLC types
Definition: GreatWksText.cxx:76
int m_version
the file version
Definition: GreatWksText.cxx:449
the main class to read the text part of GreatWorks Text file
Definition: GreatWksText.hxx:63
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
std::vector< Frame > m_frameList
the list of frame token
Definition: GreatWksText.cxx:415
bool sendPicture(MWAWEntry const &entry, MWAWPosition pos)
send a picture
Definition: GreatWksDocument.cxx:158
int getFId(int fileId) const
returns the font id corresponding to a fId
Definition: GreatWksText.cxx:438
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
bool isMain() const
returns true if this is the main zone
Definition: GreatWksText.cxx:329
a class which stores section properties
Definition: MWAWSection.hxx:46
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
Internal and low level: structure which stores a text zone header for GreatWksText.
Definition: GreatWksText.cxx:307
int version() const
returns the file version
Definition: GreatWksText.cxx:468
Token()
constructor
Definition: GreatWksText.cxx:114
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
friend std::ostream & operator<<(std::ostream &o, Zone const &fr)
operator<<
Definition: GreatWksText.cxx:359
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
PLCType
the different plc type
Definition: GreatWksText.cxx:62
std::string m_extra
extra data
Definition: GreatWksText.cxx:80
Internal and low level: structure which stores a token for GreatWksText.
Definition: GreatWksText.cxx:112
a field
Definition: libmwaw_internal.hxx:399
@ PageNumber
Definition: libmwaw_internal.hxx:401
bool sendMainText()
send a main zone
Definition: GreatWksText.cxx:1164
uint16_t m_decimalCharacter
the decimal char
Definition: MWAWParagraph.hxx:80
bool readToken(GreatWksTextInternal::Token &token, long &nChar)
try to read a token
Definition: GreatWksText.cxx:1129
bool readZonePositions(GreatWksTextInternal::Zone &zone)
try to read the end of a zone ( line + frame position )
Definition: GreatWksText.cxx:817
int m_numTokens
the number of token
Definition: GreatWksText.cxx:401
std::string m_extra
extra data
Definition: GreatWksText.cxx:303
bool hasGraphics() const
returns true if the data has graphic
Definition: GreatWksText.cxx:350
int m_numLines
the number of lines
Definition: GreatWksText.cxx:399
@ Char
Definition: MWAWPosition.hxx:51
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
Internal and low level: structure which stores a text position for GreatWksText.
Definition: GreatWksText.cxx:281
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
std::string m_extra
extra data
Definition: GreatWksText.cxx:143
Internal: the state of a GreatWksText.
Definition: GreatWksText.cxx:428
std::vector< MWAWFont > m_fontList
the list of font
Definition: GreatWksText.cxx:409
int m_numRulers
the number of rulers
Definition: GreatWksText.cxx:397
the main class to read/store generic data of a GreatWorks document
Definition: GreatWksDocument.hxx:61
MWAWParserStatePtr m_parserState
the parser state
Definition: GreatWksText.hxx:135
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
the main class to read a GreatWorks graphic file
Definition: GreatWksDRParser.hxx:56
@ italicBit
Definition: MWAWFont.hxx:190
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
long m_dataSize
the picture data size
Definition: GreatWksText.cxx:137
bool m_parsed
a bool to know if the data are send to the listener
Definition: GreatWksText.cxx:421
MWAWBox2f m_pos
the frame position
Definition: GreatWksText.cxx:299
std::vector< Zone > m_zonesList
a list of text zone
Definition: GreatWksText.cxx:447
@ 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
friend std::ostream & operator<<(std::ostream &o, Frame const &frm)
operator<<
Definition: GreatWksText.cxx:290
long m_numChar
the number of character
Definition: GreatWksText.cxx:403
bool canSendTextBoxAsGraphic(MWAWEntry const &entry)
check if a textbox can be send in a graphic zone, ie. does not contains any graphic
Definition: GreatWksText.cxx:508
MWAWVec2f m_dim
the picture dimension
Definition: GreatWksText.cxx:139
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
friend std::ostream & operator<<(std::ostream &o, Token const &tkn)
operator<<
Definition: GreatWksText.cxx:230
State()
constructor
Definition: GreatWksText.cxx:430
std::ostream & operator<<(std::ostream &o, PLC const &plc)
Definition: GreatWksText.cxx:82
virtual void insertUnicodeString(librevenge::RVNGString const &str)=0
adds a unicode string
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
int numPages() const
returns the number of pages
Definition: GreatWksText.cxx:475
Internal : a PLC: used to store change of properties in GreatWksTextInternal::Zone.
Definition: GreatWksText.cxx:65
@ Double
Definition: MWAWFont.hxx:51
@ XLeft
Definition: MWAWPosition.hxx:55
@ YBottom
Definition: MWAWPosition.hxx:57
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
std::shared_ptr< GreatWksTextInternal::State > m_state
the state
Definition: GreatWksText.hxx:137
int m_numCharPLC
the number of char plc
Definition: GreatWksText.cxx:405
bool readRuler(MWAWParagraph ¶)
try to read a ruler
Definition: GreatWksText.cxx:1010
@ RIGHT
Definition: MWAWParagraph.hxx:48
Class to store font.
Definition: MWAWFont.hxx:44
bool readFontNames()
try to read the font names zone
Definition: GreatWksText.cxx:888
int m_numPages
Definition: GreatWksText.cxx:450
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:190
int getFontId(int fileId) const
read the final font id corresponding to a file id
Definition: GreatWksText.cxx:492
bool readZone(GreatWksTextInternal::Zone &zone)
try to read a zone ( textheader+fonts+rulers)
Definition: GreatWksText.cxx:666
bool readFont(MWAWFont &font)
try to read a font
Definition: GreatWksText.cxx:955
int m_type
the token type
Definition: GreatWksText.cxx:131
bool sendTextbox(MWAWEntry const &entry, MWAWListenerPtr listener=MWAWListenerPtr())
try to send the textbox text
Definition: GreatWksText.cxx:521
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
Internal: the structures of a GreatWksText.
Definition: GreatWksText.cxx:60
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
PLC()
the constructor
Definition: GreatWksText.cxx:67
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
bool sendHF(int id)
try to send the i^th header/footer
Definition: GreatWksText.cxx:1174
the main class to read a GreatWorks spreadsheet file
Definition: GreatWksSSParser.hxx:59
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20