Go to the documentation of this file.
39 # define FULL_WRT_TEXT
105 void send(shared_ptr<FullWrtTextInternal::Zone> zone,
int numChar,
110 bool sendTable(shared_ptr<FullWrtTextInternal::Zone> zone,
165 shared_ptr<FullWrtTextInternal::State>
m_state;
std::vector< int > m_childList
the list of childlist
Definition: FullWrtText.cxx:188
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:161
bool sendMainText()
send a main zone
Definition: FullWrtText.cxx:2393
void sendReference(int docId)
try to send a reference, in pratice do nothing
Definition: FullWrtParser.cxx:1920
bool m_collapsed
true if the item is hidden
Definition: FullWrtText.cxx:184
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
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:519
bool readParagraphTabs(FullWrtStruct::EntryPtr zone, int id=-1)
check if the input of the zone points to a paragraph zone in DataStruct Zone
Definition: FullWrtText.cxx:2068
std::string m_extra
the extra data ( for debugging )
Definition: FullWrtText.cxx:440
Internal: class to store a text zone.
Definition: FullWrtText.cxx:359
@ smallCapsBit
Definition: MWAWFont.hxx:184
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:75
bool readTextData(FullWrtStruct::EntryPtr zone)
check if a zone is a text zone, if so read it...
Definition: FullWrtText.cxx:1594
Item()
constructor
Definition: FullWrtText.cxx:151
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
FullWrtStruct::Border m_border
the actual border
Definition: FullWrtText.cxx:607
FullWrtText & operator=(FullWrtText const &orig)
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
float m_afterSpacing
the after spacing ( negative in point, positive in percent )
Definition: FullWrtText.cxx:84
@ ColumnBreak
Definition: MWAWListener.hxx:58
void update()
update the font using the modifier
Definition: FullWrtText.cxx:218
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
long m_end
the end of the text data
Definition: FullWrtText.cxx:430
bool readParaModDocInfo(FullWrtStruct::EntryPtr zone)
try to read the paragraph modifier (at the end of doc info)
Definition: FullWrtText.cxx:2277
void setInterlineSpacing(double spacing, librevenge::RVNGUnit unit)
set the interline spacing
Definition: FullWrtText.cxx:477
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:156
Internal: class to store a para modifier with appear in docInfo.
Definition: FullWrtText.cxx:62
MWAWColor m_backColor
the back color (used for layout )
Definition: FullWrtStruct.hxx:91
FullWrtParser * m_mainParser
the main parser;
Definition: FullWrtText.hxx:168
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:163
Internal: the state of a FullWrtText.
Definition: FullWrtText.cxx:626
@ DOC_COMMENT_ANNOTATION
Definition: libmwaw_internal.hxx:178
void setSpacings(double spacing, bool before)
set the before/after spacing ( negative in point, positive in percent )
Definition: FullWrtText.cxx:484
static Script sub100()
return a yposition which correspond to a basic subscript100
Definition: MWAWFont.hxx:117
int id() const
returns the font id
Definition: MWAWFont.hxx:238
@ boldBit
Definition: MWAWFont.hxx:182
@ Normal
Definition: FullWrtText.cxx:361
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:320
ZoneType
the zone type
Definition: FullWrtText.cxx:361
@ CENTER
Definition: MWAWParagraph.hxx:48
int m_flags[2]
the zone flags, header|footer, normal|extra
Definition: FullWrtText.cxx:434
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:123
Internal: class to store a ColumnInfo.
Definition: FullWrtText.cxx:290
MWAWBox2i m_box
the bdbox
Definition: FullWrtText.cxx:306
bool readLineHeader(shared_ptr< FullWrtTextInternal::Zone > zone, FullWrtTextInternal::LineHeader &lHeader)
try to read the header of a line
Definition: FullWrtText.cxx:1266
MWAWFont m_font
the font
Definition: FullWrtText.cxx:207
Internal: class to store a font/para modifier with appear in text data.
Definition: FullWrtText.cxx:90
the class to store a color
Definition: libmwaw_internal.hxx:182
ParaModifier()
constructor
Definition: FullWrtText.cxx:64
MWAWSection getSection() const
return a section
Definition: FullWrtText.cxx:332
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:150
Internal: class to store a border which appear in docInfo.
Definition: FullWrtStruct.hxx:60
friend std::ostream & operator<<(std::ostream &o, Item const &it)
operator<<
Definition: FullWrtText.cxx:164
int getDocParaId() const
returns the document extra id
Definition: FullWrtText.cxx:112
@ JustificationFullAllLines
Definition: MWAWParagraph.hxx:88
std::string label() const
return a value which can be used to represent the label(changme)
Definition: FullWrtText.cxx:156
DataModifier()
constructor
Definition: FullWrtText.cxx:92
@ outlineBit
Definition: MWAWFont.hxx:183
MWAWColor m_color[2]
the colors line + ?
Definition: FullWrtStruct.hxx:97
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
bool m_state[128]
the rendering state
Definition: FullWrtText.cxx:209
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
Internal: class to store an item state.
Definition: FullWrtText.cxx:147
@ Simple
Definition: MWAWFont.hxx:49
bool m_defModifier
a flag to know if the data modifier is default
Definition: FullWrtText.cxx:213
int m_type[3]
the type (border, horizontal and vertical separators)
Definition: FullWrtStruct.hxx:85
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:357
bool m_isSent
a flag to know if the parser is send or not
Definition: FullWrtText.cxx:617
std::vector< MWAWVariable< MWAWBorder > > getParagraphBorders() const
returns the list of border order MWAWBorder::Pos
Definition: FullWrtStruct.cxx:224
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
@ Main
Definition: FullWrtText.cxx:361
MWAWColor m_color
the color
Definition: FullWrtText.cxx:137
float getSub() const
returns the sub value ( negative in pt, position in li)
Definition: FullWrtText.cxx:102
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
int m_numPages
Definition: FullWrtText.cxx:650
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:142
@ DECIMAL
Definition: MWAWParagraph.hxx:48
void createItemStructures()
create the item structures
Definition: FullWrtText.cxx:2511
int getNumDocZoneStruct() const
returns the number of zone struct
Definition: FullWrtParser.cxx:343
friend std::ostream & operator<<(std::ostream &o, Zone const &z)
operator<<
Definition: FullWrtText.cxx:369
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:127
int m_page
the pages
Definition: FullWrtText.cxx:353
int numColumns() const
returns the number of columns
Definition: MWAWSection.hxx:63
@ uppercaseBit
Definition: MWAWFont.hxx:184
@ TableDimBit
Definition: MWAWTable.hxx:56
int m_actualPage
Definition: FullWrtText.cxx:650
void prepareData()
prepare the different data (called sortZones and createItemStructures)
Definition: FullWrtText.hxx:118
ColumnInfo()
Definition: FullWrtText.cxx:291
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
Internal: class to store a font and it state.
Definition: FullWrtText.cxx:198
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:586
librevenge::RVNGUnit m_interSpacingUnit
the spacing unit
Definition: FullWrtText.cxx:601
friend std::ostream & operator<<(std::ostream &o, ParaModifier const &p)
operator<<
Definition: FullWrtText.cxx:68
bool isSimilar(PageInfo const &p) const
returns true if the page has same color position
Definition: FullWrtText.cxx:317
std::vector< MWAWVariable< MWAWBorder > > m_borders
list of border ( order MWAWBorder::Pos)
Definition: MWAWParagraph.hxx:180
SubDocumentType
Definition: libmwaw_internal.hxx:178
int m_version
the file version
Definition: FullWrtText.cxx:634
Definition: FullWrtText.cxx:311
void newPage(int number)
adds a new page
Definition: FullWrtParser.cxx:319
int getBorderId() const
returns the border id
Definition: FullWrtText.cxx:107
int m_actCol
the index of the actual column to send
Definition: FullWrtText.cxx:615
bool readColumns(FullWrtStruct::EntryPtr zone)
check if the input of the zone points to the columns definition, ...
Definition: FullWrtText.cxx:2346
the main class to read the text part of writenow file
Definition: FullWrtText.hxx:67
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
void sendGraphic(int docId)
try to send a graphic
Definition: FullWrtParser.cxx:355
@ Child
Definition: FullWrtText.cxx:149
the main class to read a FullWrite file
Definition: FullWrtParser.hxx:67
@ None
Definition: MWAWFont.hxx:49
@ shadowBit
Definition: MWAWFont.hxx:183
Paragraph()
Constructor.
Definition: FullWrtText.cxx:446
MWAWVariable< MWAWColor > m_backgroundColor
the background color
Definition: MWAWParagraph.hxx:177
int m_level
the level
Definition: FullWrtText.cxx:180
std::vector< PageInfo > m_pagesInfo
the pages info
Definition: FullWrtText.cxx:438
bool getColor(int color, MWAWColor &col)
try to convert a file data to a color
Definition: FullWrtStruct.cxx:45
double m_befAftSpacings[2]
the before/after spacing ( negative in point, positive in percent)
Definition: FullWrtText.cxx:603
double m_interSpacing
the spacing
Definition: FullWrtText.cxx:599
a border
Definition: libmwaw_internal.hxx:314
ZoneType m_zoneType
the zone type
Definition: FullWrtText.cxx:432
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:265
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:100
int m_align
the align value
Definition: FullWrtText.cxx:597
@ Main
Definition: FullWrtText.cxx:149
Internal: the structures of a FullWrtText.
Definition: FullWrtText.cxx:60
double m_width
the columns width
Definition: MWAWSection.hxx:141
struct to store the columns properties
Definition: MWAWSection.hxx:112
MWAWBox2f m_box
the bdbox
Definition: FullWrtText.cxx:425
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:52
FullWrtText(FullWrtParser &parser)
constructor
Definition: FullWrtText.cxx:657
@ RightBit
Definition: libmwaw_internal.hxx:168
float size() const
returns the font size
Definition: MWAWFont.hxx:249
int m_tableBorderId
the table border id
Definition: FullWrtText.cxx:611
std::vector< int > getBreaksPosition() const
return the col/page break
Definition: FullWrtText.cxx:402
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:73
a class which stores section properties
Definition: MWAWSection.hxx:46
int m_pages[2]
the pages
Definition: FullWrtText.cxx:436
FullWrtStruct::EntryPtr m_zone
the main zone
Definition: FullWrtText.cxx:423
bool getTableDimensions(std::vector< float > &dim) const
returns the table dimension in points
Definition: FullWrtText.cxx:507
void setColsSize(std::vector< float > const &cSize)
define the columns size (in point)
Definition: MWAWTable.hxx:121
bool m_hidden
true if the item is hidden
Definition: FullWrtText.cxx:186
std::string m_extra
extra data
Definition: FullWrtText.cxx:141
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:226
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1134
~Paragraph()
destructor
Definition: FullWrtText.cxx:620
bool readStyle(FullWrtStruct::EntryPtr zone)
try to read a style
Definition: FullWrtText.cxx:2016
double m_position
the tab position
Definition: MWAWParagraph.hxx:71
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:243
float m_beforeSpacing
the before spacing ( negative in point, positive in percent )
Definition: FullWrtText.cxx:82
@ CollapsedItem
Definition: FullWrtText.cxx:361
shared_ptr< Zone > m_hiddenZone
the hidden item zone
Definition: FullWrtText.cxx:190
uint16_t m_decimalCharacter
the decimal char
Definition: MWAWParagraph.hxx:77
@ JustificationLeft
Definition: MWAWParagraph.hxx:87
bool sendHiddenItem(int id, FullWrtTextInternal::Font &font, FullWrtTextInternal::Paragraph &ruler)
send a hidden item
Definition: FullWrtText.cxx:1507
void sortZones()
sort the different zones, finding the main zone, ...
Definition: FullWrtText.cxx:2468
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
@ DOC_TEXT_BOX
Definition: libmwaw_internal.hxx:178
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:254
int m_index
the actual index
Definition: FullWrtText.cxx:182
void sendText(int docId, libmwaw::SubDocumentType type, MWAWNote::Type which=MWAWNote::FootNote)
try to send a footnote/endnote entry
Definition: FullWrtParser.cxx:1994
@ DOC_NOTE
Definition: libmwaw_internal.hxx:178
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1132
@ LeftBit
Definition: libmwaw_internal.hxx:168
bool readItem(FullWrtStruct::EntryPtr zone, int id=-1, bool hidden=false)
check if the input of the zone points to a item zone in DataStruct Zone
Definition: FullWrtText.cxx:1889
float getSuper() const
returns the superscript value ( negative in pt, position in li)
Definition: FullWrtText.cxx:97
@ italicBit
Definition: MWAWFont.hxx:182
librevenge::RVNGUnit m_widthUnit
the width unit (default inches)
Definition: MWAWSection.hxx:143
@ Dot
Definition: MWAWFont.hxx:49
std::map< int, Item > m_itemMap
itemId -> item
Definition: FullWrtText.cxx:641
void setBorder(FullWrtStruct::Border const &border)
set the border type
Definition: FullWrtText.cxx:490
Type
the different type of id
Definition: FullWrtText.cxx:149
int getHeaderFooterId(bool header, int page, int &numSimillar) const
return the header/footer blockid ( or -1)
Definition: FullWrtText.cxx:2414
std::string m_extra
extra data
Definition: FullWrtText.cxx:194
int version() const
returns the file version
Definition: FullWrtText.cxx:666
shared_ptr< FullWrtTextInternal::State > m_state
the state
Definition: FullWrtText.hxx:165
MWAWParagraph updateToSent() const
update the paragraph data to be sent to a listener
Definition: FullWrtText.cxx:534
std::string m_extra
some extra data
Definition: FullWrtText.cxx:86
@ Right
Definition: libmwaw_internal.hxx:166
@ JustificationFull
Definition: MWAWParagraph.hxx:87
@ JustificationRight
Definition: MWAWParagraph.hxx:88
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: FullWrtText.cxx:2457
FullWrtText(FullWrtText const &orig)
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWCell.cxx:379
DataModifier m_modifier
the modifier data
Definition: FullWrtText.cxx:211
void updateFromRuler(Paragraph const &ruler)
update the paragraph data from a ruler
Definition: FullWrtText.cxx:497
Font()
constructor
Definition: FullWrtText.cxx:200
Internal: class to store the paragraph properties.
Definition: FullWrtText.cxx:444
friend std::ostream & operator<<(std::ostream &o, Paragraph const &ind)
operator<<
Definition: FullWrtText.cxx:454
PageInfo()
Definition: FullWrtText.cxx:312
long m_begin
the beginning of the text data
Definition: FullWrtText.cxx:428
@ Next
Definition: FullWrtText.cxx:149
static MWAWBorder getBorder(int type)
return a border corresponding to a type
Definition: FullWrtStruct.cxx:118
void setUnderlineWordFlag(bool wordFlag=false)
sets the underline word flag
Definition: MWAWFont.hxx:458
bool getBorder(int bId, FullWrtStruct::Border &border) const
try to return a border corresponding to an id
Definition: FullWrtParser.cxx:338
@ Left
Definition: libmwaw_internal.hxx:166
int m_column
the column number
Definition: FullWrtText.cxx:304
std::map< int, Paragraph > m_paragraphMap
rulerId -> ruler
Definition: FullWrtText.cxx:639
std::vector< int > m_tableFlags
the list of table limit
Definition: FullWrtText.cxx:613
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: FullWrtText.cxx:673
@ FootNote
Definition: libmwaw_internal.hxx:408
int m_structId[5]
the item id in text struct zone ( father, child, next, prev, main )
Definition: FullWrtText.cxx:192
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:100
@ Double
Definition: MWAWFont.hxx:51
std::vector< ParaModifier > m_paragraphModList
a list of paragraph modifier
Definition: FullWrtText.cxx:645
bool m_isTable
a flag to know if this is a table
Definition: FullWrtText.cxx:609
bool readDataMod(FullWrtStruct::EntryPtr zone, int id)
try to read the font/paragraph modifier zone (Zone1f)
Definition: FullWrtText.cxx:2241
bool sendTable(shared_ptr< FullWrtTextInternal::Zone > zone, FullWrtTextInternal::LineHeader const &lHeader, FullWrtTextInternal::Font &font, FullWrtTextInternal::Paragraph &ruler, std::string &str)
try send a table row
Definition: FullWrtText.cxx:1163
virtual ~FullWrtText()
destructor
Definition: FullWrtText.cxx:663
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:270
friend std::ostream & operator<<(std::ostream &o, DataModifier const &m)
operator<<
Definition: FullWrtText.cxx:117
void setAlign(int align)
set the align type
Definition: FullWrtText.cxx:471
int m_beginPos
the first data
Definition: FullWrtText.cxx:308
Definition: MWAWDocument.hxx:57
uint32_t flags() const
returns the font flags
Definition: MWAWFont.hxx:299
std::multimap< int, shared_ptr< Zone > > m_entryMap
zoneId -> entry
Definition: FullWrtText.cxx:637
Item m_item
the index
Definition: FullWrtText.cxx:215
State()
constructor
Definition: FullWrtText.cxx:628
std::vector< int > m_mainZones
the main zone index
Definition: FullWrtText.cxx:648
std::vector< ColumnInfo > m_columns
the columns
Definition: FullWrtText.cxx:355
@ RIGHT
Definition: MWAWParagraph.hxx:48
std::map< int, DataModifier > m_dataModMap
modId -> font/paragraph modifier
Definition: FullWrtText.cxx:643
Class to store font.
Definition: MWAWFont.hxx:44
@ EndNote
Definition: libmwaw_internal.hxx:408
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
friend std::ostream & operator<<(std::ostream &o, ColumnInfo const &c)
operator<<
Definition: FullWrtText.cxx:296
bool send(int zId, MWAWColor fontColor=MWAWColor::black())
send a id zone
Definition: FullWrtText.cxx:2445
Zone()
constructor
Definition: FullWrtText.cxx:363
MWAWParserStatePtr m_parserState
the parser state
Definition: FullWrtText.hxx:162
@ Prev
Definition: FullWrtText.cxx:149
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:363
@ Father
Definition: FullWrtText.cxx:149
MWAWVec2f m_dim
the zone dimension
Definition: FullWrtText.cxx:605
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
int m_data[4]
the data
Definition: FullWrtText.cxx:139
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
shared_ptr< Entry > EntryPtr
Definition: FullWrtStruct.hxx:147
void sendVariable(int docId)
try to send a variable, in pratice do nothing
Definition: FullWrtParser.cxx:1950
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
bool isTable() const
returns true if this is a table
Definition: FullWrtText.cxx:465
double m_margins[4]
the margins in inches using libmwaw::Position orders
Definition: MWAWSection.hxx:145
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
@ lowercaseBit
Definition: MWAWFont.hxx:185
Generated on Wed Jun 17 2020 06:30:09 for libmwaw by
doxygen 1.8.18