Go to the documentation of this file.
38 #ifndef GREAT_WKS_TEXT
39 # define GREAT_WKS_TEXT
137 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:371
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:161
std::string m_extra
extra data
Definition: GreatWksText.cxx:397
bool sendTo(MWAWListener &listener) const
try to send the token to the listener
Definition: GreatWksText.cxx:136
bool ok() const
check if the data read are or not ok
Definition: GreatWksText.cxx:308
std::vector< Token > m_tokenList
the list of token
Definition: GreatWksText.cxx:387
bool findNextZone()
heuristic function used to find the next zone
Definition: GreatWksText.cxx:567
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:293
void setUnderlineType(Line::Type type=Line::Single)
sets the underline type
Definition: MWAWFont.hxx:453
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:75
MWAWParser * m_mainParser
the main parser;
Definition: GreatWksText.hxx:139
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
@ 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:221
@ P_Font
Definition: GreatWksText.cxx:62
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:156
uint32_t m_date
the token date (0xFFFFFFFF means actual date)
Definition: GreatWksText.cxx:131
std::multimap< long, PLC > m_posPLCMap
a map text pos -> PLC
Definition: GreatWksText.cxx:393
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:386
static Script sub100()
return a yposition which correspond to a basic subscript100
Definition: MWAWFont.hxx:117
@ boldBit
Definition: MWAWFont.hxx:182
std::vector< MWAWParagraph > m_rulerList
the list of ruler
Definition: GreatWksText.cxx:385
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:320
virtual ~GreatWksText()
destructor
Definition: GreatWksText.cxx:433
@ CENTER
Definition: MWAWParagraph.hxx:48
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:123
the class to store a color
Definition: libmwaw_internal.hxx:182
GreatWksDocument & m_document
the document
Definition: GreatWksText.hxx:133
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:150
the main class to read a GreatWorks text file
Definition: GreatWksParser.hxx:57
MWAWEntry m_textEntry
the text entry list
Definition: GreatWksText.cxx:391
MWAWSection getMainSection() const
return the main section
Definition: GreatWksDocument.cxx:107
@ P_Ruler
Definition: GreatWksText.cxx:62
@ P_Page
Definition: GreatWksText.cxx:62
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
the main class to read a GreatWorks database file
Definition: GreatWksDBParser.hxx:62
@ Simple
Definition: MWAWFont.hxx:49
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
@ P_Unknown
Definition: GreatWksText.cxx:62
bool sendZone(GreatWksTextInternal::Zone const &zone, MWAWListenerPtr listener=MWAWListenerPtr())
try to send a zone
Definition: GreatWksText.cxx:1333
int m_numFrames
the number of frames (ie. one by column and one by pages )
Definition: GreatWksText.cxx:381
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:271
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:142
bool sendSimpleTextbox(MWAWEntry const &entry, MWAWListenerPtr listener=MWAWListenerPtr())
try to send simplified textbox zone
Definition: GreatWksText.cxx:1179
@ DECIMAL
Definition: MWAWParagraph.hxx:48
long size() const
returns the data size
Definition: GreatWksText.cxx:318
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:127
@ embossBit
Definition: MWAWFont.hxx:182
int numColumns() const
returns the number of columns
Definition: MWAWSection.hxx:63
@ PageCount
Definition: libmwaw_internal.hxx:371
@ Date
Definition: libmwaw_internal.hxx:371
int numHFZones() const
return the number of header/footer zones
Definition: GreatWksText.cxx:466
bool createZones(int expectedHF)
finds the different objects zones
Definition: GreatWksText.cxx:513
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:406
Frame()
constructor
Definition: GreatWksText.cxx:273
virtual void insertField(MWAWField const &field)=0
adds a field type
MWAWEntry m_pictEntry
the picture entry
Definition: GreatWksText.cxx:125
int m_id
the id
Definition: GreatWksText.cxx:75
@ P_Token
Definition: GreatWksText.cxx:62
std::string m_extra
extra data
Definition: MWAWFont.hxx:552
int m_format
the token format
Definition: GreatWksText.cxx:123
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
@ shadowBit
Definition: MWAWFont.hxx:183
Zone()
constructor
Definition: GreatWksText.cxx:296
GreatWksText(GreatWksDocument &document)
constructor
Definition: GreatWksText.cxx:427
std::string getDebugString(shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
std::string getDTFormat() const
returns a field format
Definition: GreatWksText.cxx:169
int m_page
the page
Definition: GreatWksText.cxx:288
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:50
int m_numFonts
the number of fonts
Definition: GreatWksText.cxx:369
void newPage(int page)
send a page break
Definition: GreatWksDocument.cxx:116
int m_type
the main type: 1=auxi, 3=main
Definition: GreatWksText.cxx:367
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:79
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: GreatWksText.cxx:1164
std::map< int, int > m_fileIdFontIdMap
a global map file font id-> fontconverter id
Definition: GreatWksText.cxx:415
PLCType m_type
the PLC types
Definition: GreatWksText.cxx:73
int m_version
the file version
Definition: GreatWksText.cxx:419
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:82
std::vector< Frame > m_frameList
the list of frame token
Definition: GreatWksText.cxx:389
bool sendPicture(MWAWEntry const &entry, MWAWPosition pos)
send a picture
Definition: GreatWksDocument.cxx:150
int getFId(int fileId) const
returns the font id corresponding to a fId
Definition: GreatWksText.cxx:408
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:73
bool isMain() const
returns true if this is the main zone
Definition: GreatWksText.cxx:303
a class which stores section properties
Definition: MWAWSection.hxx:46
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
Internal and low level: structure which stores a text zone header for GreatWksText.
Definition: GreatWksText.cxx:294
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:61
int version() const
returns the file version
Definition: GreatWksText.cxx:436
Token()
constructor
Definition: GreatWksText.cxx:111
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1134
double m_position
the tab position
Definition: MWAWParagraph.hxx:71
friend std::ostream & operator<<(std::ostream &o, Zone const &fr)
operator<<
Definition: GreatWksText.cxx:333
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:243
PLCType
the different plc type
Definition: GreatWksText.cxx:62
std::string m_extra
extra data
Definition: GreatWksText.cxx:77
Internal and low level: structure which stores a token for GreatWksText.
Definition: GreatWksText.cxx:109
a field
Definition: libmwaw_internal.hxx:369
GreatWksText(GreatWksText const &orig)
@ PageNumber
Definition: libmwaw_internal.hxx:371
bool sendMainText()
send a main zone
Definition: GreatWksText.cxx:1140
uint16_t m_decimalCharacter
the decimal char
Definition: MWAWParagraph.hxx:77
bool readToken(GreatWksTextInternal::Token &token, long &nChar)
try to read a token
Definition: GreatWksText.cxx:1104
bool readZonePositions(GreatWksTextInternal::Zone &zone)
try to read the end of a zone ( line + frame position )
Definition: GreatWksText.cxx:788
int m_numTokens
the number of token
Definition: GreatWksText.cxx:375
std::string m_extra
extra data
Definition: GreatWksText.cxx:290
bool hasGraphics() const
returns true if the data has graphic
Definition: GreatWksText.cxx:324
int m_numLines
the number of lines
Definition: GreatWksText.cxx:373
@ Char
Definition: MWAWPosition.hxx:51
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
Internal and low level: structure which stores a text position for GreatWksText.
Definition: GreatWksText.cxx:271
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:254
std::string m_extra
extra data
Definition: GreatWksText.cxx:133
Internal: the state of a GreatWksText.
Definition: GreatWksText.cxx:402
std::vector< MWAWFont > m_fontList
the list of font
Definition: GreatWksText.cxx:383
int m_numRulers
the number of rulers
Definition: GreatWksText.cxx:371
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:182
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:144
long m_dataSize
the picture data size
Definition: GreatWksText.cxx:127
bool m_parsed
a bool to know if the data are send to the listener
Definition: GreatWksText.cxx:395
MWAWBox2f m_pos
the frame position
Definition: GreatWksText.cxx:286
std::vector< Zone > m_zonesList
a list of text zone
Definition: GreatWksText.cxx:417
@ JustificationFull
Definition: MWAWParagraph.hxx:87
@ JustificationRight
Definition: MWAWParagraph.hxx:88
friend std::ostream & operator<<(std::ostream &o, Frame const &frm)
operator<<
Definition: GreatWksText.cxx:277
long m_numChar
the number of character
Definition: GreatWksText.cxx:377
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:478
MWAWVec2f m_dim
the picture dimension
Definition: GreatWksText.cxx:129
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:88
friend std::ostream & operator<<(std::ostream &o, Token const &tkn)
operator<<
Definition: GreatWksText.cxx:220
shared_ptr< GreatWksTextInternal::State > m_state
the state
Definition: GreatWksText.hxx:137
State()
constructor
Definition: GreatWksText.cxx:404
std::ostream & operator<<(std::ostream &o, PLC const &plc)
Definition: GreatWksText.cxx:79
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
GreatWksText & operator=(GreatWksText const &orig)
int numPages() const
returns the number of pages
Definition: GreatWksText.cxx:443
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
int m_numCharPLC
the number of char plc
Definition: GreatWksText.cxx:379
bool readRuler(MWAWParagraph ¶)
try to read a ruler
Definition: GreatWksText.cxx:984
@ 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:860
int m_numPages
Definition: GreatWksText.cxx:420
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:184
int getFontId(int fileId) const
read the final font id corresponding to a file id
Definition: GreatWksText.cxx:461
bool readZone(GreatWksTextInternal::Zone &zone)
try to read a zone ( textheader+fonts+rulers)
Definition: GreatWksText.cxx:636
bool readFont(MWAWFont &font)
try to read a font
Definition: GreatWksText.cxx:927
int m_type
the token type
Definition: GreatWksText.cxx:121
bool sendTextbox(MWAWEntry const &entry, MWAWListenerPtr listener=MWAWListenerPtr())
try to send the textbox text
Definition: GreatWksText.cxx:491
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
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:445
PLC()
the constructor
Definition: GreatWksText.cxx:67
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
bool sendHF(int id)
try to send the i^th header/footer
Definition: GreatWksText.cxx:1151
the main class to read a GreatWorks spreadsheet file
Definition: GreatWksSSParser.hxx:59
Generated on Wed Jun 17 2020 06:30:10 for libmwaw by
doxygen 1.8.18