MSWStruct::Font Struct Reference

the font structure of a Microsoft Word file More...

#include <MSWStruct.hxx>

Public Types

enum  { NumFlags = 9 }

Public Member Functions

 Font ()
 the constructor
void insert (Font const &font, Font const *styleFont=0)
 insert new font data ( beginning by updating font flags )
void updateFontToFinalState (Font const *styleFont=0)
 update the font to obtain the final font
int cmp (Font const &oth) const
 operator==

Public Attributes

Variable< MWAWFontm_font
 the font
Variable< float > m_size
 a second size
Variable< int > m_value
 a unknown value
Variable< int > m_flags [NumFlags]
 a list of flags
Variable< long > m_picturePos
 a picture file position (if this corresponds to a picture)
Variable< int > m_unknown
 some unknown flag
std::string m_extra
 extra data

Friends

std::ostream & operator<< (std::ostream &o, Font const &font)
 operator<<

Detailed Description

the font structure of a Microsoft Word file

Member Enumeration Documentation

anonymous enum
Enumerator:
NumFlags 

the number of flags needed to store all datas

Constructor & Destructor Documentation

MSWStruct::Font::Font ( )
inline

the constructor

Member Function Documentation

int MSWStruct::Font::cmp ( Font const &  oth) const
inline

operator==

void MSWStruct::Font::insert ( Font const &  font,
Font const *  styleFont = 0 
)

insert new font data ( beginning by updating font flags )

Referenced by MSWStruct::Paragraph::getFont(), and MSWText::prepareData().

void MSWStruct::Font::updateFontToFinalState ( Font const *  styleFont = 0)

update the font to obtain the final font

Referenced by insert(), and MSWTextStyles::setProperty().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
Font const &  font 
)
friend

operator<<

Member Data Documentation

std::string MSWStruct::Font::m_extra
Variable<int> MSWStruct::Font::m_flags[NumFlags]

a list of flags

Referenced by cmp(), insert(), MSWStruct::operator<<(), and updateFontToFinalState().

Variable<long> MSWStruct::Font::m_picturePos

a picture file position (if this corresponds to a picture)

Referenced by cmp(), insert(), MSWStruct::operator<<(), MSWTextStyles::readFont(), and MSWText::sendText().

Variable<float> MSWStruct::Font::m_size

a second size

Referenced by cmp(), insert(), MSWStruct::operator<<(), and MSWTextStyles::readFont().

Variable<int> MSWStruct::Font::m_unknown

some unknown flag

Referenced by cmp(), insert(), MSWStruct::operator<<(), and MSWTextStyles::readFont().

Variable<int> MSWStruct::Font::m_value

a unknown value

Referenced by cmp(), insert(), and MSWStruct::operator<<().


The documentation for this struct was generated from the following files:

Generated on Wed May 22 2013 18:12:48 for libmwaw by doxygen 1.8.1.2