Go to the documentation of this file.
38 #ifndef HAN_MAC_WRD_J_TEXT
39 # define HAN_MAC_WRD_J_TEXT
144 shared_ptr<HanMacWrdJTextInternal::State>
m_state;
PLCType m_type
PLC type.
Definition: HanMacWrdJText.cxx:92
bool readTextZone(MWAWEntry const &entry, int actZone)
try to read a text zone ( type 5 )
Definition: HanMacWrdJText.cxx:1037
bool sendZone(long zId)
send a zone
Definition: HanMacWrdJParser.cxx:195
int version() const
returns the file version
Definition: HanMacWrdJText.cxx:406
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
bool sendMainText()
send the main text zone
Definition: HanMacWrdJText.cxx:498
std::vector< Section > m_sectionList
the list of section
Definition: HanMacWrdJText.cxx:299
@ reverseVideoBit
Definition: MWAWFont.hxx:184
std::vector< Paragraph > m_paragraphList
the list of paragraph
Definition: HanMacWrdJText.cxx:297
std::multimap< long, PLC > m_PLCMap
the plc map
Definition: HanMacWrdJText.cxx:234
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:293
HanMacWrdJText & operator=(HanMacWrdJText const &orig)
void setUnderlineType(Line::Type type=Line::Single)
sets the underline type
Definition: MWAWFont.hxx:453
void setName(std::string const &nam)
sets the name of the entry
Definition: MWAWEntry.hxx:137
a note
Definition: libmwaw_internal.hxx:406
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:75
@ T_Unknown
Definition: HanMacWrdJText.cxx:220
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
bool readFonts(MWAWEntry const &entry)
try to read the fonts zone (type 0)
Definition: HanMacWrdJText.cxx:1536
int m_type
the token type
Definition: HanMacWrdJText.cxx:139
int m_id
the indentificator
Definition: HanMacWrdJText.cxx:94
void resizeBorders(size_t newSize)
a function used to resize the borders list ( adding empty borders if needed )
Definition: MWAWParagraph.hxx:116
@ ColumnBreak
Definition: MWAWListener.hxx:58
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:355
@ T_Header
Definition: HanMacWrdJText.cxx:219
bool canSendTextAsGraphic(long id, long cPos)
check if we can send a textzone as graphic
Definition: HanMacWrdJText.cxx:447
MWAWParserStatePtr m_parserState
the parser state
Definition: HanMacWrdJText.hxx:141
Paragraph()
Constructor.
Definition: HanMacWrdJText.cxx:246
HanMacWrdJText * m_textParser
the text parser
Definition: HanMacWrdJText.cxx:347
Position
basic position enum
Definition: libmwaw_internal.hxx:166
MWAWEntry m_entry
the main entry
Definition: HanMacWrdJText.cxx:230
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
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:320
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
virtual ~HanMacWrdJText()
destructor
Definition: HanMacWrdJText.cxx:402
std::string m_bookmark
the bookmark string
Definition: HanMacWrdJText.cxx:353
@ CENTER
Definition: MWAWParagraph.hxx:48
void setWidthStreching(float scale=1.0)
sets the text width streching
Definition: MWAWFont.hxx:282
friend std::ostream & operator<<(std::ostream &o, Token const &tk)
operator<<
Definition: HanMacWrdJText.cxx:106
the class to store a color
Definition: libmwaw_internal.hxx:182
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:150
void setColumns(int num, double width, librevenge::RVNGUnit widthUnit, double colSep=0)
a function which sets n uniform columns
Definition: MWAWSection.cxx:108
int computeNumPages(HanMacWrdJTextInternal::TextZone const &zone)
compute the number of pages present in a zone
Definition: HanMacWrdJText.cxx:812
SubDocument & operator=(SubDocument const &orig)
@ outlineBit
Definition: MWAWFont.hxx:183
void newPage(int number)
adds a new page
Definition: HanMacWrdJParser.cxx:219
void setOverlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the overline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:367
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
@ RULER
Definition: HanMacWrdJText.cxx:61
Section()
constructor
Definition: HanMacWrdJText.cxx:155
@ Simple
Definition: MWAWFont.hxx:49
bool readClassicHeader(HanMacWrdJZoneHeader &header, long endPos=-1)
try to read a header of classic zone
Definition: HanMacWrdJParser.cxx:232
@ S_String
Definition: HanMacWrdJText.cxx:317
@ T_Comment
Definition: HanMacWrdJText.cxx:220
@ LINE
Definition: HanMacWrdJText.cxx:61
HanMacWrdJText(HanMacWrdJText const &orig)
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:115
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
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
Internal: class to store a token of a HanMacWrdJText.
Definition: HanMacWrdJText.cxx:100
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:142
@ DECIMAL
Definition: MWAWParagraph.hxx:48
std::string m_bookmark
the bookmark string
Definition: HanMacWrdJText.cxx:145
State()
constructor
Definition: HanMacWrdJText.cxx:288
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:127
Type
enum used to define the zone type
Definition: HanMacWrdJText.cxx:219
Internal: class to store a section of a HanMacWrdJText.
Definition: HanMacWrdJText.cxx:153
@ PageCount
Definition: libmwaw_internal.hxx:371
@ Date
Definition: libmwaw_internal.hxx:371
std::map< long, int > m_idTextZoneMap
a map textId -> id in m_textZoneList
Definition: HanMacWrdJText.cxx:307
void setStrikeOutType(Line::Type type=Line::Single)
sets the strikeoutline type
Definition: MWAWFont.hxx:414
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
int m_actualPage
Definition: HanMacWrdJText.cxx:308
std::vector< long > getTokenIdList() const
returns the list of zoneId which corresponds to the token
Definition: HanMacWrdJText.cxx:426
@ T_Main
Definition: HanMacWrdJText.cxx:219
void setUnderlineWidth(float w)
sets the underline width
Definition: MWAWFont.hxx:463
std::vector< MWAWVariable< MWAWBorder > > m_borders
list of border ( order MWAWBorder::Pos)
Definition: MWAWParagraph.hxx:180
the main class to read the text part of HanMac Word-J file
Definition: HanMacWrdJText.hxx:63
SubDocumentType
Definition: libmwaw_internal.hxx:178
@ T_Textbox
Definition: HanMacWrdJText.cxx:219
std::string m_extra
extra data
Definition: MWAWFont.hxx:552
PLC(PLCType w=Unknown, int id=0)
constructor
Definition: HanMacWrdJText.cxx:65
@ boxedRoundedBit
Definition: MWAWFont.hxx:188
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
MWAWVariable< int > m_breakStatus
a list of bits: 0x1 (unbreakable), 0x2 (do not break after)
Definition: MWAWParagraph.hxx:163
SubDocument(SubDocument const &orig)
void updateFootnoteInformations(long const &textZId, std::vector< long > const &fPosList)
update the footnote text zone id and the list of first char position
Definition: HanMacWrdJText.cxx:882
Type m_type
the zone type
Definition: HanMacWrdJText.cxx:228
@ shadowBit
Definition: MWAWFont.hxx:183
@ T_Footer
Definition: HanMacWrdJText.cxx:219
bool m_addPageBreak
flag to store a force page break
Definition: HanMacWrdJText.cxx:277
std::string getDebugString(shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
SubDocument(HanMacWrdJText &pars, MWAWInputStreamPtr input, long id, long cPos=0)
constructor to call a textzone
Definition: HanMacWrdJText.cxx:320
@ CHAR
Definition: HanMacWrdJText.cxx:61
the main class to read a HanMac Word-J file
Definition: HanMacWrdJParser.hxx:105
@ Bottom
Definition: libmwaw_internal.hxx:166
friend std::ostream & operator<<(std::ostream &o, Paragraph const &ind)
operator<<
Definition: HanMacWrdJText.cxx:252
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:66
bool readFtnPos(MWAWEntry const &entry)
try to read the footnote position
Definition: HanMacWrdJText.cxx:2258
MWAWSection getSection() const
returns a MWAWSection
Definition: HanMacWrdJText.cxx:159
PLCType
different PLC types
Definition: HanMacWrdJText.cxx:61
bool readStyles(MWAWEntry const &entry)
try to read the style zone (type 2)
Definition: HanMacWrdJText.cxx:1699
std::string const & name() const
name of the entry
Definition: MWAWEntry.hxx:142
a border
Definition: libmwaw_internal.hxx:314
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:100
@ S_TextZone
Definition: HanMacWrdJText.cxx:317
Internal: class to store the paragraph properties of a HanMacWrdJText.
Definition: HanMacWrdJText.cxx:244
friend std::ostream & operator<<(std::ostream &o, Section const &sec)
operator<<
Definition: HanMacWrdJText.cxx:189
@ VMiddle
Definition: libmwaw_internal.hxx:166
std::string m_extra
extra string string
Definition: HanMacWrdJText.cxx:213
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
Internal: the state of a HanMacWrdJText.
Definition: HanMacWrdJText.cxx:286
float size() const
returns the font size
Definition: MWAWFont.hxx:249
long m_id
the id ( to be send)
Definition: HanMacWrdJText.cxx:141
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:73
@ boxedBit
Definition: MWAWFont.hxx:187
bool readFontNames(MWAWEntry const &entry)
try to read the fonts name zone (type 15)
Definition: HanMacWrdJText.cxx:1619
a class which stores section properties
Definition: MWAWSection.hxx:46
std::vector< MWAWFont > m_fontList
the font list
Definition: HanMacWrdJText.cxx:295
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
long m_cPos
the first charecter position
Definition: HanMacWrdJText.cxx:351
int numPages() const
returns the number of pages
Definition: HanMacWrdJText.cxx:413
bool readParagraph(HanMacWrdJTextInternal::Paragraph ¶, long endPos=-1)
try to read a paragraph ( reading up to endPos if endPos is defined )
Definition: HanMacWrdJText.cxx:1844
int m_version
the file version
Definition: HanMacWrdJText.cxx:293
@ T_Footnote
Definition: HanMacWrdJText.cxx:219
void setOverlineWidth(float w)
sets the overline width
Definition: MWAWFont.hxx:385
Type m_type
the subdocument type
Definition: HanMacWrdJText.cxx:345
double m_position
the tab position
Definition: MWAWParagraph.hxx:71
Internal: a struct used to store a text zone.
Definition: HanMacWrdJText.cxx:217
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:243
long m_ftnTextId
the footnote zone id;
Definition: HanMacWrdJText.cxx:301
SubDocument(HanMacWrdJText &pars, MWAWInputStreamPtr input, std::string const &text)
constructor to send a string
Definition: HanMacWrdJText.cxx:324
a field
Definition: libmwaw_internal.hxx:369
@ PageNumber
Definition: libmwaw_internal.hxx:371
uint16_t m_decimalCharacter
the decimal char
Definition: MWAWParagraph.hxx:77
@ JustificationLeft
Definition: MWAWParagraph.hxx:87
bool readParagraphs(MWAWEntry const &entry)
try to read the paragraphs zone (type 1)
Definition: HanMacWrdJText.cxx:2066
int m_length
the token length in caller text
Definition: HanMacWrdJText.cxx:147
HanMacWrdJText(HanMacWrdJParser &parser)
constructor
Definition: HanMacWrdJText.cxx:397
Internal: the subdocument of a HanMacWrdJText.
Definition: HanMacWrdJText.cxx:314
Internal and low level: the PLC different types and their structures of a HanMacWrdJText.
Definition: HanMacWrdJText.cxx:63
@ Top
Definition: libmwaw_internal.hxx:166
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
~Paragraph()
destructor
Definition: HanMacWrdJText.cxx:280
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:254
@ Double
Definition: libmwaw_internal.hxx:318
bool readTextZonesList(MWAWEntry const &entry)
try to read the list of textzones ( type 4)
Definition: HanMacWrdJText.cxx:888
long m_id
the id
Definition: HanMacWrdJText.cxx:211
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: HanMacWrdJText.cxx:380
TextZone()
constructor
Definition: HanMacWrdJText.cxx:223
Internal: the structures of a HanMacWrdJText.
Definition: HanMacWrdJText.cxx:59
bool m_parsed
true if the zone is sended
Definition: HanMacWrdJText.cxx:239
@ italicBit
Definition: MWAWFont.hxx:182
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:144
@ Dot
Definition: MWAWFont.hxx:49
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: HanMacWrdJText.cxx:335
@ NoBreakWithNextBit
Definition: MWAWParagraph.hxx:85
bool decodeZone(MWAWEntry const &entry, librevenge::RVNGBinaryData &data)
try to decode a zone
Definition: HanMacWrdJParser.cxx:1166
bool getColor(int colId, int patternId, MWAWColor &color) const
returns the color associated with a pattern
Definition: HanMacWrdJParser.cxx:202
shared_ptr< HanMacWrdJTextInternal::State > m_state
the state
Definition: HanMacWrdJText.hxx:144
@ Right
Definition: libmwaw_internal.hxx:166
std::vector< long > m_ftnFirstPosList
the footnote begin positions
Definition: HanMacWrdJText.cxx:303
MWAWVariable< librevenge::RVNGUnit > m_spacingsInterlineUnit
the interline unit PERCENT or INCH, ...
Definition: MWAWParagraph.hxx:152
@ JustificationFull
Definition: MWAWParagraph.hxx:87
@ JustificationRight
Definition: MWAWParagraph.hxx:88
@ T_Table
Definition: HanMacWrdJText.cxx:220
long m_id
the file zone id
Definition: HanMacWrdJText.cxx:232
int m_numPages
Definition: HanMacWrdJText.cxx:308
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
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: HanMacWrdJText.cxx:2351
static Script super()
return a yposition which correspond to a basic superscript
Definition: MWAWFont.hxx:122
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:581
Token()
constructor
Definition: HanMacWrdJText.cxx:102
std::vector< TextZone > m_textZoneList
the list of text zone
Definition: HanMacWrdJText.cxx:305
bool readTextToken(long endPos, HanMacWrdJTextInternal::TextZone &zone)
try to read the token in the text zone
Definition: HanMacWrdJText.cxx:1298
@ Left
Definition: libmwaw_internal.hxx:166
@ BAR
Definition: MWAWParagraph.hxx:48
void setBackgroundColor(MWAWColor color)
sets the font background color
Definition: MWAWFont.hxx:331
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:408
int m_numCols
the number of column
Definition: HanMacWrdJText.cxx:205
std::string m_extra
extra string string
Definition: HanMacWrdJText.cxx:149
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:100
@ Double
Definition: MWAWFont.hxx:51
std::vector< double > m_colWidth
the columns width
Definition: HanMacWrdJText.cxx:207
std::vector< double > m_colSep
the columns separator width
Definition: HanMacWrdJText.cxx:209
@ Unknown
Definition: HanMacWrdJText.cxx:61
int m_localId
the local id
Definition: HanMacWrdJText.cxx:143
HanMacWrdJParser * m_mainParser
the main parser;
Definition: HanMacWrdJText.hxx:147
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:517
@ Dash
Definition: MWAWFont.hxx:49
@ RIGHT
Definition: MWAWParagraph.hxx:48
bool readSections(MWAWEntry const &entry)
try to read the different sections
Definition: HanMacWrdJText.cxx:2147
Class to store font.
Definition: MWAWFont.hxx:44
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:184
@ Title
Definition: libmwaw_internal.hxx:371
long m_id
the subdocument id
Definition: HanMacWrdJText.cxx:349
std::string m_extra
extra data
Definition: HanMacWrdJText.cxx:96
void updateTextZoneTypes(std::map< long, int > const &idTypeMap)
update the text zone type with map id->type
Definition: HanMacWrdJText.cxx:865
@ TOKEN
Definition: HanMacWrdJText.cxx:61
friend std::ostream & operator<<(std::ostream &o, PLC const &plc)
operator<<
Definition: HanMacWrdJText.cxx:67
bool sendText(long id, long cPos, MWAWListenerPtr listener=MWAWListenerPtr())
send a text zone
Definition: HanMacWrdJText.cxx:486
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
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
std::vector< Token > m_tokenList
the tokens list
Definition: HanMacWrdJText.cxx:236
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: HanMacWrdJText.cxx:359
bool readFont(MWAWFont &font, long endPos=-1)
try to read the font ( reading up to endPos if endPos is defined )
Definition: HanMacWrdJText.cxx:1407
Type
the subdocument type
Definition: HanMacWrdJText.cxx:317
virtual ~SubDocument()
destructor
Definition: HanMacWrdJText.cxx:330
@ NoBreakBit
Definition: MWAWParagraph.hxx:85
int m_type
the type
Definition: HanMacWrdJText.cxx:275
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
Generated on Wed Jun 17 2020 06:30:10 for libmwaw by
doxygen 1.8.18