Go to the documentation of this file.
39 # define FULL_WRT_TEXT
105 void send(std::shared_ptr<FullWrtTextInternal::Zone> zone,
int numChar,
110 bool sendTable(std::shared_ptr<FullWrtTextInternal::Zone> zone,
165 std::shared_ptr<FullWrtTextInternal::State>
m_state;
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
std::vector< int > m_childList
the list of childlist
Definition: FullWrtText.cxx:200
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
bool sendMainText()
send a main zone
Definition: FullWrtText.cxx:2441
void sendReference(int docId)
try to send a reference, in pratice do nothing
Definition: FullWrtParser.cxx:1929
bool m_collapsed
true if the item is hidden
Definition: FullWrtText.cxx:196
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
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:2117
std::string m_extra
the extra data ( for debugging )
Definition: FullWrtText.cxx:472
Internal: class to store a text zone.
Definition: FullWrtText.cxx:387
@ smallCapsBit
Definition: MWAWFont.hxx:192
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
bool readTextData(FullWrtStruct::EntryPtr zone)
check if a zone is a text zone, if so read it...
Definition: FullWrtText.cxx:1645
Item()
constructor
Definition: FullWrtText.cxx:156
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
FullWrtStruct::Border m_border
the actual border
Definition: FullWrtText.cxx:650
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
float m_afterSpacing
the after spacing ( negative in point, positive in percent )
Definition: FullWrtText.cxx:87
@ ColumnBreak
Definition: MWAWListener.hxx:58
bool sendTable(std::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:1214
void update()
update the font using the modifier
Definition: FullWrtText.cxx:234
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:462
bool readParaModDocInfo(FullWrtStruct::EntryPtr zone)
try to read the paragraph modifier (at the end of doc info)
Definition: FullWrtText.cxx:2325
void setInterlineSpacing(double spacing, librevenge::RVNGUnit unit)
set the interline spacing
Definition: FullWrtText.cxx:520
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
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:97
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:189
Internal: the state of a FullWrtText.
Definition: FullWrtText.cxx:669
@ DOC_COMMENT_ANNOTATION
Definition: libmwaw_internal.hxx:188
void setSpacings(double spacing, bool before)
set the before/after spacing ( negative in point, positive in percent )
Definition: FullWrtText.cxx:527
static Script sub100()
return a yposition which correspond to a basic subscript100
Definition: MWAWFont.hxx:125
int id() const
returns the font id
Definition: MWAWFont.hxx:259
@ boldBit
Definition: MWAWFont.hxx:190
@ Normal
Definition: FullWrtText.cxx:389
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
ZoneType
the zone type
Definition: FullWrtText.cxx:389
@ CENTER
Definition: MWAWParagraph.hxx:48
int m_flags[2]
the zone flags, header|footer, normal|extra
Definition: FullWrtText.cxx:466
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
Internal: class to store a ColumnInfo.
Definition: FullWrtText.cxx:313
MWAWBox2i m_box
the bdbox
Definition: FullWrtText.cxx:332
MWAWFont m_font
the font
Definition: FullWrtText.cxx:223
Internal: class to store a font/para modifier with appear in text data.
Definition: FullWrtText.cxx:93
the class to store a color
Definition: libmwaw_internal.hxx:192
ParaModifier()
constructor
Definition: FullWrtText.cxx:64
MWAWSection getSection() const
return a section
Definition: FullWrtText.cxx:360
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:156
Internal: class to store a border which appear in docInfo.
Definition: FullWrtStruct.hxx:60
std::multimap< int, std::shared_ptr< Zone > > m_entryMap
zoneId -> entry
Definition: FullWrtText.cxx:688
friend std::ostream & operator<<(std::ostream &o, Item const &it)
operator<<
Definition: FullWrtText.cxx:176
int getDocParaId() const
returns the document extra id
Definition: FullWrtText.cxx:117
@ JustificationFullAllLines
Definition: MWAWParagraph.hxx:91
std::string label() const
return a value which can be used to represent the label(changme)
Definition: FullWrtText.cxx:168
DataModifier()
constructor
Definition: FullWrtText.cxx:95
@ outlineBit
Definition: MWAWFont.hxx:191
MWAWColor m_color[2]
the colors line + ?
Definition: FullWrtStruct.hxx:103
void setOverlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the overline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:388
bool m_state[128]
the rendering state
Definition: FullWrtText.cxx:225
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
Internal: class to store an item state.
Definition: FullWrtText.cxx:152
std::shared_ptr< Zone > m_hiddenZone
the hidden item zone
Definition: FullWrtText.cxx:202
@ Simple
Definition: MWAWFont.hxx:49
bool m_defModifier
a flag to know if the data modifier is default
Definition: FullWrtText.cxx:229
int m_type[3]
the type (border, horizontal and vertical separators)
Definition: FullWrtStruct.hxx:91
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
bool m_isSent
a flag to know if the parser is send or not
Definition: FullWrtText.cxx:660
std::vector< MWAWVariable< MWAWBorder > > getParagraphBorders() const
returns the list of border order MWAWBorder::Pos
Definition: FullWrtStruct.cxx:224
@ Main
Definition: FullWrtText.cxx:389
MWAWColor m_color
the color
Definition: FullWrtText.cxx:142
float getSub() const
returns the sub value ( negative in pt, position in li)
Definition: FullWrtText.cxx:107
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
int m_numPages
Definition: FullWrtText.cxx:701
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
@ DECIMAL
Definition: MWAWParagraph.hxx:48
FullWrtText & operator=(FullWrtText const &orig)=delete
void createItemStructures()
create the item structures
Definition: FullWrtText.cxx:2551
int getNumDocZoneStruct() const
returns the number of zone struct
Definition: FullWrtParser.cxx:361
friend std::ostream & operator<<(std::ostream &o, Zone const &z)
operator<<
Definition: FullWrtText.cxx:404
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:135
int m_page
the pages
Definition: FullWrtText.cxx:381
@ uppercaseBit
Definition: MWAWFont.hxx:192
Defines MWAWCell (cell content and format)
@ TableDimBit
Definition: MWAWTable.hxx:56
int m_actualPage
Definition: FullWrtText.cxx:701
void prepareData()
prepare the different data (called sortZones and createItemStructures)
Definition: FullWrtText.hxx:118
ColumnInfo()
Definition: FullWrtText.cxx:314
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
Internal: class to store a font and it state.
Definition: FullWrtText.cxx:210
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:635
librevenge::RVNGUnit m_interSpacingUnit
the spacing unit
Definition: FullWrtText.cxx:644
friend std::ostream & operator<<(std::ostream &o, ParaModifier const &p)
operator<<
Definition: FullWrtText.cxx:71
bool isSimilar(PageInfo const &p) const
returns true if the page has same color position
Definition: FullWrtText.cxx:345
std::vector< MWAWVariable< MWAWBorder > > m_borders
list of border ( order MWAWBorder::Pos)
Definition: MWAWParagraph.hxx:186
SubDocumentType
Definition: libmwaw_internal.hxx:188
int m_version
the file version
Definition: FullWrtText.cxx:685
Definition: FullWrtText.cxx:337
void newPage(int number)
adds a new page
Definition: FullWrtParser.cxx:337
int getBorderId() const
returns the border id
Definition: FullWrtText.cxx:112
int m_actCol
the index of the actual column to send
Definition: FullWrtText.cxx:658
bool readColumns(FullWrtStruct::EntryPtr zone)
check if the input of the zone points to the columns definition, ...
Definition: FullWrtText.cxx:2394
the main class to read the text part of writenow file
Definition: FullWrtText.hxx:67
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
void sendGraphic(int docId)
try to send a graphic
Definition: FullWrtParser.cxx:373
@ Child
Definition: FullWrtText.cxx:154
the main class to read a FullWrite file
Definition: FullWrtParser.hxx:67
@ None
Definition: MWAWFont.hxx:49
@ shadowBit
Definition: MWAWFont.hxx:191
Paragraph()
Constructor.
Definition: FullWrtText.cxx:478
std::shared_ptr< FullWrtTextInternal::State > m_state
the state
Definition: FullWrtText.hxx:165
~Paragraph() final
destructor
Definition: FullWrtText.cxx:663
MWAWVariable< MWAWColor > m_backgroundColor
the background color
Definition: MWAWParagraph.hxx:183
bool readLineHeader(std::shared_ptr< FullWrtTextInternal::Zone > zone, FullWrtTextInternal::LineHeader &lHeader)
try to read the header of a line
Definition: FullWrtText.cxx:1317
int m_level
the level
Definition: FullWrtText.cxx:192
std::vector< PageInfo > m_pagesInfo
the pages info
Definition: FullWrtText.cxx:470
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:646
double m_interSpacing
the spacing
Definition: FullWrtText.cxx:642
a border
Definition: libmwaw_internal.hxx:333
ZoneType m_zoneType
the zone type
Definition: FullWrtText.cxx:464
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:284
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:108
int m_align
the align value
Definition: FullWrtText.cxx:640
@ Main
Definition: FullWrtText.cxx:154
Internal: the structures of a FullWrtText.
Definition: FullWrtText.cxx:60
double m_width
the columns width
Definition: MWAWSection.hxx:150
struct to store the columns properties
Definition: MWAWSection.hxx:120
MWAWBox2f m_box
the bdbox
Definition: FullWrtText.cxx:457
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:52
FullWrtText(FullWrtParser &parser)
constructor
Definition: FullWrtText.cxx:708
@ RightBit
Definition: libmwaw_internal.hxx:178
float size() const
returns the font size
Definition: MWAWFont.hxx:270
int m_tableBorderId
the table border id
Definition: FullWrtText.cxx:654
std::vector< int > getBreaksPosition() const
return the col/page break
Definition: FullWrtText.cxx:437
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
a class which stores section properties
Definition: MWAWSection.hxx:46
int m_pages[2]
the pages
Definition: FullWrtText.cxx:468
FullWrtStruct::EntryPtr m_zone
the main zone
Definition: FullWrtText.cxx:455
bool getTableDimensions(std::vector< float > &dim) const
returns the table dimension in points
Definition: FullWrtText.cxx:550
void setColsSize(std::vector< float > const &cSize)
define the columns size (in point)
Definition: MWAWTable.hxx:133
bool m_hidden
true if the item is hidden
Definition: FullWrtText.cxx:198
std::string m_extra
extra data
Definition: FullWrtText.cxx:146
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
bool readStyle(FullWrtStruct::EntryPtr zone)
try to read a style
Definition: FullWrtText.cxx:2065
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
float m_beforeSpacing
the before spacing ( negative in point, positive in percent )
Definition: FullWrtText.cxx:85
@ CollapsedItem
Definition: FullWrtText.cxx:389
uint16_t m_decimalCharacter
the decimal char
Definition: MWAWParagraph.hxx:80
@ JustificationLeft
Definition: MWAWParagraph.hxx:90
bool sendHiddenItem(int id, FullWrtTextInternal::Font &font, FullWrtTextInternal::Paragraph &ruler)
send a hidden item
Definition: FullWrtText.cxx:1558
void sortZones()
sort the different zones, finding the main zone, ...
Definition: FullWrtText.cxx:2509
@ DOC_TEXT_BOX
Definition: libmwaw_internal.hxx:188
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
int m_index
the actual index
Definition: FullWrtText.cxx:194
void sendText(int docId, libmwaw::SubDocumentType type, MWAWNote::Type which=MWAWNote::FootNote)
try to send a footnote/endnote entry
Definition: FullWrtParser.cxx:2002
@ DOC_NOTE
Definition: libmwaw_internal.hxx:188
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
@ LeftBit
Definition: libmwaw_internal.hxx:178
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:1938
float getSuper() const
returns the superscript value ( negative in pt, position in li)
Definition: FullWrtText.cxx:102
@ italicBit
Definition: MWAWFont.hxx:190
librevenge::RVNGUnit m_widthUnit
the width unit (default inches)
Definition: MWAWSection.hxx:152
@ Dot
Definition: MWAWFont.hxx:49
std::map< int, Item > m_itemMap
itemId -> item
Definition: FullWrtText.cxx:692
void setBorder(FullWrtStruct::Border const &border)
set the border type
Definition: FullWrtText.cxx:533
Type
the different type of id
Definition: FullWrtText.cxx:154
int getHeaderFooterId(bool header, int page, int &numSimillar) const
return the header/footer blockid ( or -1)
Definition: FullWrtText.cxx:2460
std::string m_extra
extra data
Definition: FullWrtText.cxx:206
Defines MWAWTextListener: the libmwaw word processor listener.
int version() const
returns the file version
Definition: FullWrtText.cxx:719
MWAWParagraph updateToSent() const
update the paragraph data to be sent to a listener
Definition: FullWrtText.cxx:577
std::string m_extra
some extra data
Definition: FullWrtText.cxx:89
@ Right
Definition: libmwaw_internal.hxx:176
@ 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
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: FullWrtText.cxx:2499
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:382
DataModifier m_modifier
the modifier data
Definition: FullWrtText.cxx:227
void updateFromRuler(Paragraph const &ruler)
update the paragraph data from a ruler
Definition: FullWrtText.cxx:540
Font()
constructor
Definition: FullWrtText.cxx:212
Internal: class to store the paragraph properties.
Definition: FullWrtText.cxx:476
PageInfo()
Definition: FullWrtText.cxx:338
long m_begin
the beginning of the text data
Definition: FullWrtText.cxx:460
@ Next
Definition: FullWrtText.cxx:154
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:479
bool getBorder(int bId, FullWrtStruct::Border &border) const
try to return a border corresponding to an id
Definition: FullWrtParser.cxx:356
@ Left
Definition: libmwaw_internal.hxx:176
int m_column
the column number
Definition: FullWrtText.cxx:330
MWAWParagraph & operator=(MWAWParagraph const &)=default
std::map< int, Paragraph > m_paragraphMap
rulerId -> ruler
Definition: FullWrtText.cxx:690
std::vector< int > m_tableFlags
the list of table limit
Definition: FullWrtText.cxx:656
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:726
@ FootNote
Definition: libmwaw_internal.hxx:447
int m_structId[5]
the item id in text struct zone ( father, child, next, prev, main )
Definition: FullWrtText.cxx:204
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:106
@ Double
Definition: MWAWFont.hxx:51
std::vector< ParaModifier > m_paragraphModList
a list of paragraph modifier
Definition: FullWrtText.cxx:696
bool m_isTable
a flag to know if this is a table
Definition: FullWrtText.cxx:652
bool readDataMod(FullWrtStruct::EntryPtr zone, int id)
try to read the font/paragraph modifier zone (Zone1f)
Definition: FullWrtText.cxx:2290
virtual ~FullWrtText()
destructor
Definition: FullWrtText.cxx:715
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:289
friend std::ostream & operator<<(std::ostream &o, DataModifier const &m)
operator<<
Definition: FullWrtText.cxx:122
void setAlign(int align)
set the align type
Definition: FullWrtText.cxx:514
int m_beginPos
the first data
Definition: FullWrtText.cxx:334
Definition: MWAWDocument.hxx:57
uint32_t flags() const
returns the font flags
Definition: MWAWFont.hxx:320
Item m_item
the index
Definition: FullWrtText.cxx:231
State()
constructor
Definition: FullWrtText.cxx:671
std::vector< int > m_mainZones
the main zone index
Definition: FullWrtText.cxx:699
std::vector< ColumnInfo > m_columns
the columns
Definition: FullWrtText.cxx:383
@ RIGHT
Definition: MWAWParagraph.hxx:48
std::map< int, DataModifier > m_dataModMap
modId -> font/paragraph modifier
Definition: FullWrtText.cxx:694
Class to store font.
Definition: MWAWFont.hxx:44
@ EndNote
Definition: libmwaw_internal.hxx:447
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:322
bool send(int zId, MWAWColor fontColor=MWAWColor::black())
send a id zone
Definition: FullWrtText.cxx:2488
Zone()
constructor
Definition: FullWrtText.cxx:391
MWAWParserStatePtr m_parserState
the parser state
Definition: FullWrtText.hxx:162
@ Prev
Definition: FullWrtText.cxx:154
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:393
@ Father
Definition: FullWrtText.cxx:154
MWAWVec2f m_dim
the zone dimension
Definition: FullWrtText.cxx:648
FullWrtText(FullWrtText const &orig)=delete
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
int m_data[4]
the data
Definition: FullWrtText.cxx:144
Paragraph(Paragraph const &)=default
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
void sendVariable(int docId)
try to send a variable, in pratice do nothing
Definition: FullWrtParser.cxx:1959
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
bool isTable() const
returns true if this is a table
Definition: FullWrtText.cxx:508
double m_margins[4]
the margins in inches using libmwaw::Position orders
Definition: MWAWSection.hxx:154
std::shared_ptr< Entry > EntryPtr
Definition: FullWrtStruct.hxx:153
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
@ lowercaseBit
Definition: MWAWFont.hxx:193
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20