Go to the documentation of this file.
39 # define MS_WRD_STRUCT
63 for (
int i = 0; i < NumFlags; i++) m_flags[i]=MWAWVariable<int>(0);
73 friend std::ostream &
operator<<(std::ostream &o,
Font const &font);
79 if (diff)
return diff;
83 if (diff)
return diff;
86 if (diff)
return diff;
91 if (diff)
return diff;
185 size_t cNumBorders = cell.
m_borders.size();
188 for (
size_t i=0; i < cNumBorders; i++)
196 for (
size_t i = 0; i <
m_borders.size(); i++)
202 friend std::ostream &
operator<<(std::ostream &o,
Cell const &cell);
244 if (!
m_dim.isSet())
return true;
245 if ((*
m_dim)[0] > 0 || (*
m_dim)[1] > 0)
return false;
254 if (*pInfo.
m_type&0xd0) o <<
"type?=" << ((*pInfo.
m_type&0xd0)>>4) <<
",";
255 if (*pInfo.
m_type&0x0f) o <<
"#unkn=" << (*pInfo.
m_type&0xf) <<
",";
256 if (pInfo.
m_dim.isSet()) {
257 if ((*pInfo.
m_dim)[0] > 0)
258 o <<
"width=" << (*pInfo.
m_dim)[0] <<
",";
259 if ((*pInfo.
m_dim)[1] > 0) {
260 o <<
"height=" << (*pInfo.
m_dim)[1];
316 return m_info.get().m_numLines.get();
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:161
std::string m_extra
the errors
Definition: MsWrdStruct.hxx:226
MWAWVariable< int > m_type
the type
Definition: MsWrdStruct.hxx:274
MWAWVariable< bool > m_inCell
a cell/textbox
Definition: MsWrdStruct.hxx:335
void insert(MWAWFont const &ft)
inserts the set value in the current font
Definition: MWAWFont.hxx:208
the paragraph structure of a Microsoft Word file
Definition: MsWrdStruct.hxx:284
@ smallCapsBit
Definition: MWAWFont.hxx:184
void insert(ParagraphInfo const &pInfo)
insert the new values
Definition: MsWrdStruct.cxx:723
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:75
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
std::string m_extra
extra data
Definition: MsWrdStruct.hxx:208
std::string m_extra
extra data
Definition: MsWrdStruct.hxx:107
@ NumFlags
the number of flags needed to store all datas
Definition: MsWrdStruct.hxx:58
void resizeBorders(size_t newSize)
a function used to resize the borders list ( adding empty borders if needed )
Definition: MWAWParagraph.hxx:116
a generic variable template: value + flag to know if the variable is set
Definition: libmwaw_internal.hxx:527
Cell()
constructor
Definition: MsWrdStruct.hxx:179
MWAWVariable< float > m_backColor
the background gray color
Definition: MsWrdStruct.hxx:206
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:355
bool isLineSet() const
returns true if num lines is set
Definition: MsWrdStruct.hxx:236
ParagraphInfo()
constructor
Definition: MsWrdStruct.hxx:232
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:156
friend std::ostream & operator<<(std::ostream &o, Font const &font)
operator<<
Definition: MsWrdStruct.cxx:44
virtual ~Paragraph()
destructor
Definition: MsWrdStruct.cxx:732
@ boldBit
Definition: MWAWFont.hxx:182
int getNumLines() const
returns the number of line stored in m_info or -1
Definition: MsWrdStruct.hxx:314
MWAWVariable< MWAWFont > m_font
the font
Definition: MsWrdStruct.hxx:95
MWAWBorder getBorder(int val, std::string &extra)
generic function use to fill a border using the read data
Definition: MsWrdStruct.cxx:1215
void insert(Cell const &cell)
update the cell data by merging
Definition: MsWrdStruct.hxx:183
@ CENTER
Definition: MWAWParagraph.hxx:48
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:123
std::vector< MWAWVariable< MWAWBorder > > m_borders
the borders TLBR
Definition: MsWrdStruct.hxx:204
shared_ptr< MWAWFontConverter > MWAWFontConverterPtr
a smart pointer of MWAWFontConverter
Definition: libmwaw_internal.hxx:495
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:150
MWAWVariable< double > m_interline
the interline if set
Definition: MsWrdStruct.hxx:323
@ JustificationFullAllLines
Definition: MWAWParagraph.hxx:88
void updateParagraphToFinalState(Paragraph const *style=0)
update the paragraph to obtain the final paragraph
Definition: MsWrdStruct.cxx:1136
@ outlineBit
Definition: MWAWFont.hxx:183
MWAWVariable< Font > m_font
the font
Definition: MsWrdStruct.hxx:329
bool read(MWAWInputStreamPtr &input, long endPos)
try to read a data
Definition: MsWrdStruct.cxx:167
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
bool getFont(Font &font, Font const *styleFont=0) const
returns the font which correspond to the paragraph if possible
Definition: MsWrdStruct.cxx:1122
@ Simple
Definition: MWAWFont.hxx:49
@ None
Definition: libmwaw_internal.hxx:316
@ HMiddle
Definition: libmwaw_internal.hxx:166
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:357
Section()
constructor
Definition: MsWrdStruct.hxx:113
MWAWVariable< std::vector< float > > m_columns
the table columns
Definition: MsWrdStruct.hxx:218
bool isSet() const
return true if the line is not empty
Definition: MWAWFont.hxx:56
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:142
@ Dot
Definition: libmwaw_internal.hxx:316
@ DECIMAL
Definition: MWAWParagraph.hxx:48
MWAWVariable< int > m_paragraphId
the paragraph id
Definition: MsWrdStruct.hxx:145
bool readV3(MWAWInputStreamPtr &input, long endPos)
try to read a data ( v3 code )
Definition: MsWrdStruct.cxx:233
@ uppercaseBit
Definition: MWAWFont.hxx:184
MWAWVariable< std::vector< float > > m_columnsWidthMod
the columns width modifier
Definition: MsWrdStruct.hxx:220
MWAWVariable< long > m_picturePos
a picture file position (if this corresponds to a picture)
Definition: MsWrdStruct.hxx:103
MWAWVariable< int > m_flags[NumFlags]
a list of flags
Definition: MsWrdStruct.hxx:101
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
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:586
Line const & getStrikeOut() const
returns the strikeoutline
Definition: MWAWFont.hxx:396
std::vector< MWAWVariable< MWAWBorder > > m_borders
list of border ( order MWAWBorder::Pos)
Definition: MWAWParagraph.hxx:180
Paragraph(int version)
Constructor.
Definition: MsWrdStruct.hxx:286
@ AtLeast
Definition: MWAWParagraph.hxx:91
void insert(Section const &sec)
insert the new values
Definition: MsWrdStruct.hxx:121
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
MWAWVariable< int > m_breakStatus
a list of bits: 0x1 (unbreakable), 0x2 (do not break after)
Definition: MWAWParagraph.hxx:163
@ None
Definition: MWAWFont.hxx:49
@ shadowBit
Definition: MWAWFont.hxx:183
std::string m_error
the errors
Definition: MsWrdStruct.hxx:280
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:158
@ Bottom
Definition: libmwaw_internal.hxx:166
friend std::ostream & operator<<(std::ostream &o, Paragraph const &ind)
operator<<
Definition: MsWrdStruct.cxx:1098
MWAWVariable< MWAWParagraph::Justification > m_justify
the justification
Definition: MsWrdStruct.hxx:214
void insert(Paragraph const ¶, bool insertModif=true)
insert the new values
Definition: MsWrdStruct.cxx:1163
std::string m_extra
the errors
Definition: MsWrdStruct.hxx:155
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:321
a border
Definition: libmwaw_internal.hxx:314
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:100
void insert(Font const &font, Font const *styleFont=0)
insert new font data ( beginning by updating font flags )
Definition: MsWrdStruct.cxx:82
bool read(MWAWInputStreamPtr &input, long endPos)
try to read a data
Definition: MsWrdStruct.cxx:736
the font structure of a Microsoft Word file
Definition: MsWrdStruct.hxx:57
@ VMiddle
Definition: libmwaw_internal.hxx:166
MWAWSection getSection(double pageWidth) const
returns a section
Definition: MsWrdStruct.cxx:150
double m_width
the columns width
Definition: MWAWSection.hxx:141
struct to store the columns properties
Definition: MWAWSection.hxx:112
float size() const
returns the font size
Definition: MWAWFont.hxx:249
MWAWVariable< Section > m_section
the section
Definition: MsWrdStruct.hxx:331
MWAWVariable< float > m_colSep
the spacing between column
Definition: MsWrdStruct.hxx:149
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:73
MWAWVariable< int > m_id
the identificator
Definition: MsWrdStruct.hxx:141
a class which stores section properties
Definition: MWAWSection.hxx:46
MWAWVariable< MWAWBorder > m_bordersStyle
the border style ( old v3)
Definition: MsWrdStruct.hxx:333
void insert(MWAWVariable const &orig)
update the current value if orig is set
Definition: libmwaw_internal.hxx:551
MWAWVariable< Cell > m_badCell
empty cell used by getCell to return unknown cell
Definition: MsWrdStruct.hxx:224
double m_position
the tab position
Definition: MWAWParagraph.hxx:71
std::vector< float > m_deletedTabs
the delete tabulation
Definition: MsWrdStruct.hxx:325
MWAWVariable< ParagraphInfo > m_info
the dimension
Definition: MsWrdStruct.hxx:327
friend std::ostream & operator<<(std::ostream &o, Section const §ion)
operator<<
Definition: MsWrdStruct.cxx:406
MWAWVariable< float > m_indent
the indent
Definition: MsWrdStruct.hxx:216
@ JustificationLeft
Definition: MWAWParagraph.hxx:87
bool hasBorders() const
returns true if the cell has borders
Definition: MsWrdStruct.hxx:194
void updateFontToFinalState(Font const *styleFont=0)
update the font to obtain the final font
Definition: MsWrdStruct.cxx:98
virtual ~MWAWParagraph()
destructor
Definition: MWAWParagraph.cxx:158
MWAWVariable< int > m_type
the type
Definition: MsWrdStruct.hxx:143
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:222
MWAWVariable< bool > m_colBreak
only a column break
Definition: MsWrdStruct.hxx:151
bool read(MWAWInputStreamPtr &input, long endPos, int vers)
try to read a data
Definition: MsWrdStruct.cxx:708
@ Top
Definition: libmwaw_internal.hxx:166
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
Style m_style
the border style
Definition: libmwaw_internal.hxx:350
void print(std::ostream &o, MWAWFontConverterPtr converter) const
operator<<
Definition: MsWrdStruct.cxx:1205
the paragraph information of a Microsoft Word file (PHE)
Definition: MsWrdStruct.hxx:230
@ Double
Definition: libmwaw_internal.hxx:318
MWAWVariable< Table > m_table
the table
Definition: MsWrdStruct.hxx:339
@ italicBit
Definition: MWAWFont.hxx:182
librevenge::RVNGUnit m_widthUnit
the width unit (default inches)
Definition: MWAWSection.hxx:143
bool isEmpty() const
returns true if no data are been set
Definition: MsWrdStruct.hxx:241
MWAWVariable< int > m_numLines
the number of lines
Definition: MsWrdStruct.hxx:278
int cmp(Font const &oth) const
a comparison function
Definition: MsWrdStruct.hxx:76
bool read(MWAWInputStreamPtr &input, long endPos)
try to read a data
Definition: MsWrdStruct.cxx:434
@ NoBreakWithNextBit
Definition: MWAWParagraph.hxx:85
MWAWVariable< int > m_col
the num of columns
Definition: MsWrdStruct.hxx:147
MWAWVariable< float > m_height
the row height in inches
Definition: MsWrdStruct.hxx:212
Table()
constructor
Definition: MsWrdStruct.hxx:162
MWAWVariable< int > m_value
a unknown value
Definition: MsWrdStruct.hxx:99
@ Right
Definition: libmwaw_internal.hxx:166
@ JustificationFull
Definition: MWAWParagraph.hxx:87
@ JustificationRight
Definition: MWAWParagraph.hxx:88
MWAWVariable< Cell > & getCell(int id)
returns the ith Cell
Definition: MsWrdStruct.cxx:424
bool m_balanceText
true if the text is balanced between different columns
Definition: MWAWSection.hxx:106
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:581
Line const & getUnderline() const
returns the underline
Definition: MWAWFont.hxx:435
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:159
@ Left
Definition: libmwaw_internal.hxx:166
@ BAR
Definition: MWAWParagraph.hxx:48
the section structure of a Microsoft Word file
Definition: MsWrdStruct.hxx:111
friend std::ostream & operator<<(std::ostream &o, ParagraphInfo const &pInfo)
operator<<
Definition: MsWrdStruct.hxx:251
MWAWVariable< Font > m_modFont
font (modifier)
Definition: MsWrdStruct.hxx:329
bool inTable() const
returns true if we are in table
Definition: MsWrdStruct.hxx:303
uint32_t flags() const
returns the font flags
Definition: MWAWFont.hxx:299
std::ostream & operator<<(std::ostream &o, Font const &font)
Definition: MsWrdStruct.cxx:44
the cells definitions in a Microsoft Word Table
Definition: MsWrdStruct.hxx:177
@ RIGHT
Definition: MWAWParagraph.hxx:48
MWAWVariable< MWAWVec2f > m_dim
the zone dimension
Definition: MsWrdStruct.hxx:276
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:216
int cmp(MWAWFont const &oth) const
a comparison function
Definition: MWAWFont.hxx:503
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:184
MWAWVariable< int > m_unknown
some unknown flag
Definition: MsWrdStruct.hxx:105
MWAWVariable< float > m_size
a second size
Definition: MsWrdStruct.hxx:97
int m_version
the file version
Definition: MsWrdStruct.hxx:319
Font()
the constructor
Definition: MsWrdStruct.hxx:61
MWAWVariable< int > m_flag
some flag ( in the main position)
Definition: MsWrdStruct.hxx:153
@ hiddenBit
Definition: MWAWFont.hxx:183
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWVariable< bool > m_tableDef
a table flag
Definition: MsWrdStruct.hxx:337
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
double m_margins[4]
the margins in inches using libmwaw::Position orders
Definition: MWAWSection.hxx:145
@ NoBreakBit
Definition: MWAWParagraph.hxx:85
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
Generated on Wed Jun 17 2020 06:30:11 for libmwaw by
doxygen 1.8.18