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;
200 size_t cNumBorders = cell.
m_borders.size();
203 for (
size_t i=0; i < cNumBorders; i++)
211 for (
size_t i = 0; i <
m_borders.size(); i++)
217 friend std::ostream &
operator<<(std::ostream &o,
Cell const &cell);
242 if (!
m_dim.isSet())
return true;
243 if ((*
m_dim)[0] > 0 || (*m_dim)[1] > 0)
return false;
252 if (*pInfo.
m_type&0xd0) o <<
"type?=" << ((*pInfo.
m_type&0xd0)>>4) <<
",";
253 if (*pInfo.
m_type&0x0f) o <<
"#unkn=" << (*pInfo.
m_type&0xf) <<
",";
254 if (pInfo.
m_dim.isSet()) {
255 if ((*pInfo.
m_dim)[0] > 0)
256 o <<
"width=" << (*pInfo.
m_dim)[0] <<
",";
257 if ((*pInfo.
m_dim)[1] > 0) {
258 o <<
"height=" << (*pInfo.
m_dim)[1];
312 return m_info.get().m_numLines.get();
MWAWVariable< int > m_flags[NumFlags]
a list of flags
Definition: MsWrdStruct.hxx:101
void insert(ParagraphInfo const &pInfo)
insert the new values
Definition: MsWrdStruct.cxx:722
bool hasBorders() const
returns true if the cell has borders
Definition: MsWrdStruct.hxx:209
the font structure of a Microsoft Word file
Definition: MsWrdStruct.hxx:57
std::string m_extra
extra data
Definition: MsWrdStruct.hxx:223
the number of flags needed to store all datas
Definition: MsWrdStruct.hxx:58
MWAWVariable< float > m_size
a second size
Definition: MsWrdStruct.hxx:97
MWAWVariable< int > m_type
the type
Definition: MsWrdStruct.hxx:272
MWAWVariable< float > m_backColor
the background gray color
Definition: MsWrdStruct.hxx:221
Cell()
constructor
Definition: MsWrdStruct.hxx:194
ParagraphInfo()
constructor
Definition: MsWrdStruct.hxx:230
MWAWVariable< Table > m_table
the table
Definition: MsWrdStruct.hxx:335
int m_version
the file version
Definition: MsWrdStruct.hxx:315
std::vector< MWAWVariable< MWAWBorder > > m_borders
the borders TLBR
Definition: MsWrdStruct.hxx:219
void insert(Cell const &cell)
update the cell data by merging
Definition: MsWrdStruct.hxx:198
bool inTable() const
returns true if we are in table
Definition: MsWrdStruct.hxx:299
void print(std::ostream &o, MWAWFontConverterPtr converter) const
operator<<
Definition: MsWrdStruct.cxx:1199
MWAWVariable< bool > m_inCell
a cell/textbox
Definition: MsWrdStruct.hxx:331
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:517
MWAWVariable< MWAWParagraph::Justification > m_justify
the justification
Definition: MsWrdStruct.hxx:179
friend std::ostream & operator<<(std::ostream &o, Table const &table)
operator<<
Definition: MsWrdStruct.cxx:647
void insert(MWAWVariable const &orig)
update the current value if orig is set
Definition: libmwaw_internal.hxx:487
Section()
constructor
Definition: MsWrdStruct.hxx:113
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:167
namespace to store the main structure which appears in a Microsoft Word 3.0-5.0 file ...
Definition: MsWrdStruct.cxx:41
the paragraph structure of a Microsoft Word file
Definition: MsWrdStruct.hxx:282
MWAWVariable< int > m_paragraphId
the paragraph id
Definition: MsWrdStruct.hxx:145
Table()
constructor
Definition: MsWrdStruct.hxx:162
Paragraph(int version)
Constructor.
Definition: MsWrdStruct.hxx:284
bool readV3(MWAWInputStreamPtr &input, long endPos)
try to read a data ( v3 code )
Definition: MsWrdStruct.cxx:233
bool getFont(Font &font, Font const *styleFont=0) const
returns the font which correspond to the paragraph if possible
Definition: MsWrdStruct.cxx:1117
MWAWVariable< float > m_indent
the indent
Definition: MsWrdStruct.hxx:181
MWAWVariable< Font > m_modFont
font (modifier)
Definition: MsWrdStruct.hxx:325
MWAWVariable< MWAWFont > m_font
the font
Definition: MsWrdStruct.hxx:95
MWAWVariable< double > m_interline
the interline if set
Definition: MsWrdStruct.hxx:319
std::vector< float > m_deletedTabs
the delete tabulation
Definition: MsWrdStruct.hxx:321
void insert(Section const &sec)
insert the new values
Definition: MsWrdStruct.hxx:121
Class to store font.
Definition: MWAWFont.hxx:44
a border
Definition: libmwaw_internal.hxx:309
std::string m_error
the errors
Definition: MsWrdStruct.hxx:278
int getNumLines() const
returns the number of line stored in m_info or -1
Definition: MsWrdStruct.hxx:310
std::string m_extra
the errors
Definition: MsWrdStruct.hxx:189
bool read(MWAWInputStreamPtr &input, long endPos)
try to read a data
Definition: MsWrdStruct.cxx:435
std::string m_extra
the errors
Definition: MsWrdStruct.hxx:155
std::string m_extra
extra data
Definition: MsWrdStruct.hxx:107
MWAWVariable< int > m_value
a unknown value
Definition: MsWrdStruct.hxx:99
MWAWVariable< float > m_colSep
the spacing between column
Definition: MsWrdStruct.hxx:149
MWAWVariable< bool > m_tableDef
a table flag
Definition: MsWrdStruct.hxx:333
bool isEmpty() const
returns true if no data are been set
Definition: MsWrdStruct.hxx:239
MWAWVariable< std::vector< float > > m_columns
the table columns
Definition: MsWrdStruct.hxx:183
MWAWVariable< Cell > & getCell(int id)
returns the ith Cell
Definition: MsWrdStruct.cxx:424
MWAWSection getSection(double pageWidth) const
returns a section
Definition: MsWrdStruct.cxx:150
MWAWVariable< Font > m_font
the font
Definition: MsWrdStruct.hxx:325
the cells definitions in a Microsoft Word Table
Definition: MsWrdStruct.hxx:192
MWAWVariable< int > m_id
the identificator
Definition: MsWrdStruct.hxx:141
Definition: libmwaw_internal.hxx:311
friend std::ostream & operator<<(std::ostream &o, Paragraph const &ind)
operator<<
Definition: MsWrdStruct.cxx:1093
MWAWVariable< bool > m_colBreak
only a column break
Definition: MsWrdStruct.hxx:151
void insert(Table const &table)
insert the new values
Definition: MsWrdStruct.cxx:597
the paragraph information of a Microsoft Word file (PHE)
Definition: MsWrdStruct.hxx:228
MWAWVariable< ParagraphInfo > m_info
the dimension
Definition: MsWrdStruct.hxx:323
void updateParagraphToFinalState(Paragraph const *style=0)
update the paragraph to obtain the final paragraph
Definition: MsWrdStruct.cxx:1131
friend std::ostream & operator<<(std::ostream &o, Section const §ion)
operator<<
Definition: MsWrdStruct.cxx:406
a class which stores section properties
Definition: MWAWSection.hxx:45
MWAWVariable< int > m_type
the type
Definition: MsWrdStruct.hxx:143
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:439
friend std::ostream & operator<<(std::ostream &o, Cell const &cell)
operator<<
Definition: MsWrdStruct.cxx:629
MWAWBorder getBorder(int val, std::string &extra)
generic function use to fill a border using the read data
Definition: MsWrdStruct.cxx:1209
MWAWVariable< MWAWBorder > m_bordersStyle
the border style ( old v3)
Definition: MsWrdStruct.hxx:329
MWAWVariable< std::vector< float > > m_columnsWidthMod
the columns width modifier
Definition: MsWrdStruct.hxx:185
bool read(MWAWInputStreamPtr &input, long endPos, int vers)
try to read a data
Definition: MsWrdStruct.cxx:707
MWAWVariable< int > m_unknown
some unknown flag
Definition: MsWrdStruct.hxx:105
friend std::ostream & operator<<(std::ostream &o, Font const &font)
operator<<
Definition: MsWrdStruct.cxx:44
the section structure of a Microsoft Word file
Definition: MsWrdStruct.hxx:111
shared_ptr< MWAWFontConverter > MWAWFontConverterPtr
a smart pointer of MWAWFontConverter
Definition: libmwaw_internal.hxx:433
void insert(Paragraph const ¶, bool insertModif=true)
insert the new values
Definition: MsWrdStruct.cxx:1158
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
MWAWVariable< int > m_numLines
the number of lines
Definition: MsWrdStruct.hxx:276
bool read(MWAWInputStreamPtr &input, long endPos)
try to read a data
Definition: MsWrdStruct.cxx:731
MWAWVariable< int > m_col
the num of columns
Definition: MsWrdStruct.hxx:147
MWAWVariable< long > m_picturePos
a picture file position (if this corresponds to a picture)
Definition: MsWrdStruct.hxx:103
bool isLineSet() const
returns true if num lines is set
Definition: MsWrdStruct.hxx:234
MWAWVariable< Section > m_section
the section
Definition: MsWrdStruct.hxx:327
Font()
the constructor
Definition: MsWrdStruct.hxx:61
int cmp(Font const &oth) const
a comparison function
Definition: MsWrdStruct.hxx:76
the table in a Microsoft Word file
Definition: MsWrdStruct.hxx:159
friend std::ostream & operator<<(std::ostream &o, ParagraphInfo const &pInfo)
operator<<
Definition: MsWrdStruct.hxx:249
MWAWVariable< int > m_styleId
the style id (if known)
Definition: MsWrdStruct.hxx:317
MWAWVariable< int > m_flag
some flag ( in the main position)
Definition: MsWrdStruct.hxx:153
MWAWVariable< MWAWVec2f > m_dim
the zone dimension
Definition: MsWrdStruct.hxx:274
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:522
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:159
void updateFontToFinalState(Font const *styleFont=0)
update the font to obtain the final font
Definition: MsWrdStruct.cxx:98
MWAWVariable< float > m_height
the row height in inches
Definition: MsWrdStruct.hxx:177
std::vector< MWAWVariable< Cell > > m_cells
the table cells
Definition: MsWrdStruct.hxx:187