Go to the documentation of this file.
126 std::shared_ptr<RagTimeTextInternal::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::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
std::vector< long > m_fontPosList
the beginning of character properties in the text zone
Definition: RagTimeText.cxx:177
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
bool getDateTimeFormat(int dtId, std::string &dtFormat) const
returns the ith date format or ""
Definition: RagTimeParser.cxx:462
std::map< int, int > m_localFIdMap
a map local fontId->fontId
Definition: RagTimeText.cxx:213
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWParserStatePtr m_parserState
the parser state
Definition: RagTimeText.hxx:123
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
std::map< int, std::shared_ptr< TextZone > > m_idTextMap
a map entry id to text zone
Definition: RagTimeText.cxx:217
std::vector< long > m_paragraphPosList
the beginning of paragraph properties in the text zone
Definition: RagTimeText.cxx:181
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
std::string m_DTFormat
the date time format
Definition: RagTimeText.cxx:156
int getFontId(int localId) const
return a mac font id corresponding to a local id
Definition: RagTimeText.cxx:203
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_paragraphList
the list of paragraph's properties
Definition: RagTimeText.cxx:183
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
@ CENTER
Definition: MWAWParagraph.hxx:48
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
int id() const
returns the id
Definition: MWAWEntry.hxx:164
Type m_type
the token type
Definition: RagTimeText.cxx:150
the class to store a color
Definition: libmwaw_internal.hxx:192
bool readTokens(RagTimeTextInternal::TextZone &zone, long endPos)
try to read the token zones
Definition: RagTimeText.cxx:840
RagTimeParser * m_mainParser
the main parser;
Definition: RagTimeText.hxx:129
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:156
bool m_isSent
true if the zone is sent to the listener
Definition: RagTimeText.cxx:187
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
@ Simple
Definition: MWAWFont.hxx:49
RagTimeText(RagTimeText const &orig)=delete
int m_listIndices[4]
the four list indices
Definition: RagTimeText.cxx:154
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
int version() const
returns the file version
Definition: RagTimeText.cxx:235
Internal: a token of a RagTimeText.
Definition: RagTimeText.cxx:58
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
@ PageCount
Definition: RagTimeText.cxx:60
int getZoneDataFieldSize(int zId) const
returns the size of a zone data field
Definition: RagTimeParser.cxx:443
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
@ DECIMAL
Definition: MWAWParagraph.hxx:48
@ List
Definition: RagTimeText.cxx:60
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:135
@ embossBit
Definition: MWAWFont.hxx:190
@ PageCount
Definition: libmwaw_internal.hxx:401
the main class to read a RagTime v2-3 file
Definition: RagTimeParser.hxx:61
bool readTextZone(MWAWEntry &entry, int width, MWAWColor const &fontColor=MWAWColor::black())
try to read a text zone (knowing the zone width in point and the font color)
Definition: RagTimeText.cxx:436
@ Date
Definition: libmwaw_internal.hxx:401
bool readParagraphs(RagTimeTextInternal::TextZone &zone, int width, long endPos)
try to read the paragraph properties (knowing the zone width in point used to determine the right mar...
Definition: RagTimeText.cxx:687
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
@ Time
Definition: RagTimeText.cxx:60
friend std::ostream & operator<<(std::ostream &o, Token const &tkn)
operator<<
Definition: RagTimeText.cxx:71
bool readFontNames(MWAWEntry &entry)
try to read the font name: the FHFo structure: FileH?Font zone
Definition: RagTimeText.cxx:260
std::vector< MWAWFont > m_fontList
the list of character's properties
Definition: RagTimeText.cxx:179
@ AtLeast
Definition: MWAWParagraph.hxx:94
RagTimeText & operator=(RagTimeText const &orig)=delete
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
TextZone()
constructor
Definition: RagTimeText.cxx:164
@ shadowBit
Definition: MWAWFont.hxx:191
std::shared_ptr< RagTimeTextInternal::State > m_state
the state
Definition: RagTimeText.hxx:126
bool getCharStyle(int charId, MWAWFont &font) const
returns font style corresponding to a char style id
Definition: RagTimeText.cxx:247
int m_version
the file version
Definition: RagTimeText.cxx:211
Type
the token's types
Definition: RagTimeText.cxx:60
bool getIndicesString(std::string &str) const
returns a string corresponding to the list indices
Definition: RagTimeText.cxx:134
MWAWEntry m_textPos
the text zone
Definition: RagTimeText.cxx:175
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
the main class to read the text part of ragTime file
Definition: RagTimeText.hxx:71
@ PageAfter
Definition: RagTimeText.cxx:60
@ None
Definition: libmwaw_internal.hxx:401
RagTimeText(RagTimeParser &parser)
constructor
Definition: RagTimeText.cxx:225
std::vector< MWAWFont > m_charPropList
the character properties
Definition: RagTimeText.cxx:215
int m_listLevel
the list level(for a list)
Definition: RagTimeText.cxx:152
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
@ Date
Definition: RagTimeText.cxx:60
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
Token()
constructor
Definition: RagTimeText.cxx:62
Internal: a text's zone of a RagTimeText.
Definition: RagTimeText.cxx:162
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
a field
Definition: libmwaw_internal.hxx:399
@ PageNumber
Definition: libmwaw_internal.hxx:401
void flushExtra()
flush extra zone
Definition: RagTimeText.cxx:1141
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 getColor(int colId, MWAWColor &color, int listId=-1) const
returns the ith color ( if possible)
Definition: RagTimeParser.cxx:427
@ italicBit
Definition: MWAWFont.hxx:190
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
bool readFonts(RagTimeTextInternal::TextZone &zone, MWAWColor const &color, long endPos)
try to read the character properties (knowing the font color)
Definition: RagTimeText.cxx:537
int getFontId(int localId) const
returns a mac font id corresponding to a local id
Definition: RagTimeText.cxx:242
Defines MWAWTextListener: the libmwaw word processor listener.
std::string m_extra
extra data
Definition: RagTimeText.cxx:158
@ JustificationRight
Definition: MWAWParagraph.hxx:91
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
Internal: the state of a RagTimeText.
Definition: RagTimeText.cxx:192
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
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
State()
constructor
Definition: RagTimeText.cxx:194
@ Unknown
Definition: RagTimeText.cxx:60
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:106
bool readCharProperties(MWAWEntry &entry)
try to read the character properties zone: FHsl zone
Definition: RagTimeText.cxx:344
bool send(int id, MWAWListenerPtr listener)
try to send a text zone
Definition: RagTimeText.cxx:959
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Internal: the structures of a RagTimeText.
Definition: RagTimeText.cxx:56
@ RIGHT
Definition: MWAWParagraph.hxx:48
Class to store font.
Definition: MWAWFont.hxx:44
void setLanguage(std::string const &lang)
set the language ( in the for en_US, en_GB, en, ...)
Definition: MWAWFont.hxx:500
bool getField(MWAWField &field) const
returns a field corresponding to the token if possible
Definition: RagTimeText.cxx:106
std::vector< Token > m_tokenList
the list of tokens
Definition: RagTimeText.cxx:185
@ Page
Definition: RagTimeText.cxx:60
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
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
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
virtual ~RagTimeText()
destructor
Definition: RagTimeText.cxx:232
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20