Go to the documentation of this file.
39 # define MS_WRD_STRUCT
80 friend std::ostream &
operator<<(std::ostream &o,
Font const &font);
86 if (diff)
return diff;
90 if (diff)
return diff;
93 if (diff)
return diff;
98 if (diff)
return diff;
209 size_t cNumBorders = cell.
m_borders.size();
212 for (
size_t i=0; i < cNumBorders; i++)
226 friend std::ostream &
operator<<(std::ostream &o,
Cell const &cell);
272 if (!
m_dim.isSet())
return true;
273 if ((*
m_dim)[0] > 0 || (*
m_dim)[1] > 0)
return false;
282 if (*pInfo.
m_type&0xd0) o <<
"type?=" << ((*pInfo.
m_type&0xd0)>>4) <<
",";
283 if (*pInfo.
m_type&0x0f) o <<
"#unkn=" << (*pInfo.
m_type&0xf) <<
",";
284 if (pInfo.
m_dim.isSet()) {
285 if ((*pInfo.
m_dim)[0] > 0)
286 o <<
"width=" << (*pInfo.
m_dim)[0] <<
",";
287 if ((*pInfo.
m_dim)[1] > 0) {
288 o <<
"height=" << (*pInfo.
m_dim)[1];
358 return m_info.get().m_numLines.get();
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
Font & operator=(Font const &)=default
std::string m_extra
the errors
Definition: MsWrdStruct.hxx:250
MWAWVariable< int > m_type
the type
Definition: MsWrdStruct.hxx:302
MWAWVariable< bool > m_inCell
a cell/textbox
Definition: MsWrdStruct.hxx:377
void insert(MWAWFont const &ft)
inserts the set value in the current font
Definition: MWAWFont.hxx:229
the paragraph structure of a Microsoft Word file
Definition: MsWrdStruct.hxx:312
@ smallCapsBit
Definition: MWAWFont.hxx:192
void insert(ParagraphInfo const &pInfo)
insert the new values
Definition: MsWrdStruct.cxx:717
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
std::shared_ptr< MWAWFontConverter > MWAWFontConverterPtr
a smart pointer of MWAWFontConverter
Definition: libmwaw_internal.hxx:543
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
std::string m_extra
extra data
Definition: MsWrdStruct.hxx:232
std::string m_extra
extra data
Definition: MsWrdStruct.hxx:114
void resizeBorders(size_t newSize)
a function used to resize the borders list ( adding empty borders if needed )
Definition: MWAWParagraph.hxx:122
a generic variable template: value + flag to know if the variable is set
Definition: libmwaw_internal.hxx:577
Cell()
constructor
Definition: MsWrdStruct.hxx:200
MWAWVariable< float > m_backColor
the background gray color
Definition: MsWrdStruct.hxx:230
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:385
Paragraph & operator=(Paragraph &&)=default
bool isLineSet() const
returns true if num lines is set
Definition: MsWrdStruct.hxx:264
ParagraphInfo()
constructor
Definition: MsWrdStruct.hxx:256
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
friend std::ostream & operator<<(std::ostream &o, Font const &font)
operator<<
Definition: MsWrdStruct.cxx:44
@ boldBit
Definition: MWAWFont.hxx:190
Font(Font const &)=default
int getNumLines() const
returns the number of line stored in m_info or -1
Definition: MsWrdStruct.hxx:356
MWAWVariable< MWAWFont > m_font
the font
Definition: MsWrdStruct.hxx:102
MWAWBorder getBorder(int val, std::string &extra)
generic function use to fill a border using the read data
Definition: MsWrdStruct.cxx:1207
void insert(Cell const &cell)
update the cell data by merging
Definition: MsWrdStruct.hxx:207
@ CENTER
Definition: MWAWParagraph.hxx:48
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
void updateParagraphToFinalState(Paragraph const *style=nullptr)
update the paragraph to obtain the final paragraph
Definition: MsWrdStruct.cxx:1130
std::vector< MWAWVariable< MWAWBorder > > m_borders
the borders TLBR
Definition: MsWrdStruct.hxx:228
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:156
~Paragraph() final
destructor
Definition: MsWrdStruct.cxx:726
MWAWVariable< double > m_interline
the interline if set
Definition: MsWrdStruct.hxx:365
@ JustificationFullAllLines
Definition: MWAWParagraph.hxx:91
@ outlineBit
Definition: MWAWFont.hxx:191
MWAWVariable< Font > m_font
the font
Definition: MsWrdStruct.hxx:371
bool read(MWAWInputStreamPtr &input, long endPos)
try to read a data
Definition: MsWrdStruct.cxx:168
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
@ Simple
Definition: MWAWFont.hxx:49
@ None
Definition: libmwaw_internal.hxx:335
@ HMiddle
Definition: libmwaw_internal.hxx:176
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
Section()
constructor
Definition: MsWrdStruct.hxx:120
MWAWVariable< std::vector< float > > m_columns
the table columns
Definition: MsWrdStruct.hxx:242
Paragraph & operator=(Paragraph const &)=default
bool isSet() const
return true if the line is not empty
Definition: MWAWFont.hxx:62
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
@ Dot
Definition: libmwaw_internal.hxx:335
@ DECIMAL
Definition: MWAWParagraph.hxx:48
MWAWVariable< int > m_paragraphId
the paragraph id
Definition: MsWrdStruct.hxx:159
bool readV3(MWAWInputStreamPtr &input, long endPos)
try to read a data ( v3 code )
Definition: MsWrdStruct.cxx:234
@ uppercaseBit
Definition: MWAWFont.hxx:192
MWAWVariable< std::vector< float > > m_columnsWidthMod
the columns width modifier
Definition: MsWrdStruct.hxx:244
MWAWVariable< long > m_picturePos
a picture file position (if this corresponds to a picture)
Definition: MsWrdStruct.hxx:110
MWAWVariable< int > m_flags[NumFlags]
a list of flags
Definition: MsWrdStruct.hxx:108
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
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:635
@ NoBreakBit
Definition: MWAWParagraph.hxx:88
Line const & getStrikeOut() const
returns the strikeoutline
Definition: MWAWFont.hxx:417
std::vector< MWAWVariable< MWAWBorder > > m_borders
list of border ( order MWAWBorder::Pos)
Definition: MWAWParagraph.hxx:186
Paragraph(int version)
Constructor.
Definition: MsWrdStruct.hxx:314
@ AtLeast
Definition: MWAWParagraph.hxx:94
void insert(Section const &sec)
insert the new values
Definition: MsWrdStruct.hxx:135
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
MWAWVariable< int > m_breakStatus
a list of bits: 0x1 (unbreakable), 0x2 (do not break after)
Definition: MWAWParagraph.hxx:169
@ None
Definition: MWAWFont.hxx:49
@ shadowBit
Definition: MWAWFont.hxx:191
std::string m_error
the errors
Definition: MsWrdStruct.hxx:308
namespace to store the main structure which appears in a Microsoft Word 3.0-5.0 file
Definition: MsWrdStruct.cxx:42
MWAWVariable< bool > m_tabsRelativeToLeftMargin
true if the tabs are relative to left margin, false if there are relative to the page margin (default...
Definition: MWAWParagraph.hxx:164
@ Bottom
Definition: libmwaw_internal.hxx:176
friend std::ostream & operator<<(std::ostream &o, Paragraph const &ind)
operator<<
Definition: MsWrdStruct.cxx:1092
MWAWVariable< MWAWParagraph::Justification > m_justify
the justification
Definition: MsWrdStruct.hxx:238
void insert(Paragraph const ¶, bool insertModif=true)
insert the new values
Definition: MsWrdStruct.cxx:1157
std::string m_extra
the errors
Definition: MsWrdStruct.hxx:169
void insert(Table const &table)
insert the new values
Definition: MsWrdStruct.cxx:596
MWAWVariable< int > m_styleId
the style id (if known)
Definition: MsWrdStruct.hxx:363
a border
Definition: libmwaw_internal.hxx:333
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:108
bool read(MWAWInputStreamPtr &input, long endPos)
try to read a data
Definition: MsWrdStruct.cxx:730
void updateFontToFinalState(Font const *styleFont=nullptr)
update the font to obtain the final font
Definition: MsWrdStruct.cxx:99
the font structure of a Microsoft Word file
Definition: MsWrdStruct.hxx:57
@ VMiddle
Definition: libmwaw_internal.hxx:176
Paragraph(Paragraph const &)=default
MWAWSection getSection(double pageWidth) const
returns a section
Definition: MsWrdStruct.cxx:151
double m_width
the columns width
Definition: MWAWSection.hxx:150
struct to store the columns properties
Definition: MWAWSection.hxx:120
void insert(Font const &font, Font const *styleFont=nullptr)
insert new font data ( beginning by updating font flags )
Definition: MsWrdStruct.cxx:83
float size() const
returns the font size
Definition: MWAWFont.hxx:270
MWAWVariable< Section > m_section
the section
Definition: MsWrdStruct.hxx:373
MWAWVariable< float > m_colSep
the spacing between column
Definition: MsWrdStruct.hxx:163
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
MWAWVariable< int > m_id
the identificator
Definition: MsWrdStruct.hxx:155
a class which stores section properties
Definition: MWAWSection.hxx:46
MWAWVariable< MWAWBorder > m_bordersStyle
the border style ( old v3)
Definition: MsWrdStruct.hxx:375
void insert(MWAWVariable const &orig)
update the current value if orig is set
Definition: libmwaw_internal.hxx:600
MWAWVariable< Cell > m_badCell
empty cell used by getCell to return unknown cell
Definition: MsWrdStruct.hxx:248
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
std::vector< float > m_deletedTabs
the delete tabulation
Definition: MsWrdStruct.hxx:367
MWAWVariable< ParagraphInfo > m_info
the dimension
Definition: MsWrdStruct.hxx:369
friend std::ostream & operator<<(std::ostream &o, Section const §ion)
operator<<
Definition: MsWrdStruct.cxx:407
MWAWVariable< float > m_indent
the indent
Definition: MsWrdStruct.hxx:240
@ JustificationLeft
Definition: MWAWParagraph.hxx:90
bool hasBorders() const
returns true if the cell has borders
Definition: MsWrdStruct.hxx:218
virtual ~MWAWParagraph()
destructor
Definition: MWAWParagraph.cxx:175
MWAWVariable< int > m_type
the type
Definition: MsWrdStruct.hxx:157
friend std::ostream & operator<<(std::ostream &o, Cell const &cell)
operator<<
Definition: MsWrdStruct.cxx:628
std::vector< MWAWVariable< Cell > > m_cells
the table cells
Definition: MsWrdStruct.hxx:246
MWAWVariable< bool > m_colBreak
only a column break
Definition: MsWrdStruct.hxx:165
bool read(MWAWInputStreamPtr &input, long endPos, int vers)
try to read a data
Definition: MsWrdStruct.cxx:702
@ Top
Definition: libmwaw_internal.hxx:176
Style m_style
the border style
Definition: libmwaw_internal.hxx:380
void print(std::ostream &o, MWAWFontConverterPtr converter) const
operator<<
Definition: MsWrdStruct.cxx:1197
the paragraph information of a Microsoft Word file (PHE)
Definition: MsWrdStruct.hxx:254
@ Double
Definition: libmwaw_internal.hxx:337
MWAWVariable< Table > m_table
the table
Definition: MsWrdStruct.hxx:381
@ italicBit
Definition: MWAWFont.hxx:190
librevenge::RVNGUnit m_widthUnit
the width unit (default inches)
Definition: MWAWSection.hxx:152
bool isEmpty() const
returns true if no data are been set
Definition: MsWrdStruct.hxx:269
MWAWVariable< int > m_numLines
the number of lines
Definition: MsWrdStruct.hxx:306
int cmp(Font const &oth) const
a comparison function
Definition: MsWrdStruct.hxx:83
bool read(MWAWInputStreamPtr &input, long endPos)
try to read a data
Definition: MsWrdStruct.cxx:435
MWAWVariable< int > m_col
the num of columns
Definition: MsWrdStruct.hxx:161
MWAWVariable< float > m_height
the row height in inches
Definition: MsWrdStruct.hxx:236
Table()
constructor
Definition: MsWrdStruct.hxx:176
MWAWVariable< int > m_value
a unknown value
Definition: MsWrdStruct.hxx:106
@ Right
Definition: libmwaw_internal.hxx:176
@ JustificationFull
Definition: MWAWParagraph.hxx:90
@ JustificationRight
Definition: MWAWParagraph.hxx:91
MWAWVariable< Cell > & getCell(int id)
returns the ith Cell
Definition: MsWrdStruct.cxx:425
bool m_balanceText
true if the text is balanced between different columns
Definition: MWAWSection.hxx:114
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:630
Line const & getUnderline() const
returns the underline
Definition: MWAWFont.hxx:456
friend std::ostream & operator<<(std::ostream &o, Table const &table)
operator<<
Definition: MsWrdStruct.cxx:646
the table in a Microsoft Word file
Definition: MsWrdStruct.hxx:173
@ Left
Definition: libmwaw_internal.hxx:176
@ BAR
Definition: MWAWParagraph.hxx:48
the section structure of a Microsoft Word file
Definition: MsWrdStruct.hxx:118
friend std::ostream & operator<<(std::ostream &o, ParagraphInfo const &pInfo)
operator<<
Definition: MsWrdStruct.hxx:279
MWAWVariable< Font > m_modFont
font (modifier)
Definition: MsWrdStruct.hxx:371
bool inTable() const
returns true if we are in table
Definition: MsWrdStruct.hxx:345
uint32_t flags() const
returns the font flags
Definition: MWAWFont.hxx:320
std::ostream & operator<<(std::ostream &o, Font const &font)
Definition: MsWrdStruct.cxx:44
the cells definitions in a Microsoft Word Table
Definition: MsWrdStruct.hxx:198
@ RIGHT
Definition: MWAWParagraph.hxx:48
MWAWVariable< MWAWVec2f > m_dim
the zone dimension
Definition: MsWrdStruct.hxx:304
Class to store font.
Definition: MWAWFont.hxx:44
void insert(MWAWParagraph const ¶)
insert the set values of para in the actual paragraph
Definition: MWAWParagraph.cxx:233
int cmp(MWAWFont const &oth) const
a comparison function
Definition: MWAWFont.hxx:524
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:190
@ NumFlags
the number of flags needed to store all datas
Definition: MsWrdStruct.hxx:58
MWAWVariable< int > m_unknown
some unknown flag
Definition: MsWrdStruct.hxx:112
MWAWVariable< float > m_size
a second size
Definition: MsWrdStruct.hxx:104
int m_version
the file version
Definition: MsWrdStruct.hxx:361
Font()
the constructor
Definition: MsWrdStruct.hxx:61
MWAWVariable< int > m_flag
some flag ( in the main position)
Definition: MsWrdStruct.hxx:167
@ hiddenBit
Definition: MWAWFont.hxx:191
bool getFont(Font &font, Font const *styleFont=nullptr) const
returns the font which correspond to the paragraph if possible
Definition: MsWrdStruct.cxx:1116
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
@ NoBreakWithNextBit
Definition: MWAWParagraph.hxx:88
MWAWVariable< bool > m_tableDef
a table flag
Definition: MsWrdStruct.hxx:379
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
double m_margins[4]
the margins in inches using libmwaw::Position orders
Definition: MWAWSection.hxx:154
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20