the type of each field More...
Public Member Functions | |
| FieldType () | |
| constructor More... | |
| bool | empty () const |
| returns true if the field has no content More... | |
| void | updateWithContent (Vec2i const &pos, MWAWCellContent const &content) |
| update a field with the record data More... | |
Public Member Functions inherited from MWAWCell | |
| MWAWCell () | |
| constructor More... | |
| virtual | ~MWAWCell () |
| destructor More... | |
| void | addTo (librevenge::RVNGPropertyList &propList, shared_ptr< MWAWFontConverter > fontConverter) const |
| adds to the propList More... | |
| virtual bool | send (MWAWListenerPtr listener, MWAWTable &table) |
| function called when a cell is send by MWAWTable to send a cell to a listener. More... | |
| virtual bool | sendContent (MWAWListenerPtr listener, MWAWTable &table) |
| function called when the content of a cell must be send to the listener, ie. More... | |
| Vec2i const & | position () const |
| position accessor More... | |
| void | setPosition (Vec2i posi) |
| set the cell positions : 0,0 -> A1, 0,1 -> A2 More... | |
| Vec2i const & | numSpannedCells () const |
| returns the number of spanned cells More... | |
| void | setNumSpannedCells (Vec2i numSpanned) |
| sets the number of spanned cells : Vec2i(1,1) means 1 cellule More... | |
| Box2f const & | bdBox () const |
| bdbox accessor More... | |
| void | setBdBox (Box2f box) |
| set the bdbox (unit point) More... | |
| Vec2f const & | bdSize () const |
| bdbox size accessor More... | |
| void | setBdSize (Vec2f sz) |
| set the bdbox size(unit point) More... | |
| Format const & | getFormat () const |
| returns the cell format More... | |
| void | setFormat (Format const &format) |
| set the cell format More... | |
| bool | isFontSet () const |
| returns true if the font has been set More... | |
| MWAWFont | getFont () const |
| returns the font More... | |
| void | setFont (MWAWFont const &font, bool isDefault=false) |
| sets the fonts More... | |
| bool | isProtected () const |
| returns true if the cell is protected More... | |
| void | setProtected (bool fl) |
| sets the cell's protected flag More... | |
| HorizontalAlignment | hAlignment () const |
| returns the horizontal alignment More... | |
| void | setHAlignment (HorizontalAlignment align) |
| sets the horizontal alignment More... | |
| VerticalAlignment | vAlignment () const |
| returns the vertical alignment More... | |
| void | setVAlignment (VerticalAlignment align) |
| sets the vertical alignment More... | |
| bool | hasBorders () const |
| return true if the cell has some border More... | |
| std::vector< MWAWBorder > const & | borders () const |
| return the cell border: libmwaw::Left | ... More... | |
| void | resetBorders () |
| reset the border More... | |
| void | setBorders (int wh, MWAWBorder const &border) |
| sets the cell border: wh=libmwaw::LeftBit|... More... | |
| MWAWColor | backgroundColor () const |
| returns the background color More... | |
| void | setBackgroundColor (MWAWColor color) |
| sets the background color More... | |
| bool | hasExtraLine () const |
| returns true if we have some extra lines More... | |
| ExtraLine | extraLine () const |
| returns the extra lines More... | |
| MWAWBorder const & | extraLineType () const |
| returns the extra line border More... | |
| void | setExtraLine (ExtraLine extrLine, MWAWBorder const &type=MWAWBorder()) |
| sets the extraline More... | |
Public Attributes | |
| MWAWCellContent | m_content |
| the cell content More... | |
| std::string | m_name |
| the field name More... | |
| bool | m_used |
| a flag to know if the field is used or not More... | |
| bool | m_isSerial |
| a flag to deferentiate a serial formula to a formula More... | |
| int | m_serialId |
| serialized field identificator More... | |
| SerialFormula | m_serialFormula |
| the serial formula ( if the field is serialized ) More... | |
| int | m_height |
| the height More... | |
| std::string | m_extra |
| extra data More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, FieldType const &fType) |
| operator<< More... | |
Additional Inherited Members | |
Public Types inherited from MWAWCell | |
| enum | FormatType { F_TEXT, F_BOOLEAN, F_NUMBER, F_DATE, F_TIME, F_UNKNOWN } |
| the different format of a cell's content More... | |
| enum | NumberType { F_NUMBER_CURRENCY, F_NUMBER_DECIMAL, F_NUMBER_FRACTION, F_NUMBER_GENERIC, F_NUMBER_SCIENTIFIC, F_NUMBER_PERCENT, F_NUMBER_UNKNOWN } |
| the different number format of a cell's content More... | |
| enum | HorizontalAlignment { HALIGN_LEFT, HALIGN_RIGHT, HALIGN_CENTER, HALIGN_FULL, HALIGN_DEFAULT } |
| the default horizontal alignment. More... | |
| enum | VerticalAlignment { VALIGN_TOP, VALIGN_CENTER, VALIGN_BOTTOM, VALIGN_DEFAULT } |
| the default vertical alignment. More... | |
| enum | ExtraLine { E_None, E_Line1, E_Line2, E_Cross } |
| an enum to defined potential internal line: E_Line1=TL to RB, E_Line2=BL to RT More... | |
Static Public Member Functions inherited from MWAWCell | |
| static std::string | getCellName (Vec2i const &pos, Vec2b const &absolute) |
| return the name of a cell (given row and column) : 0,0 -> A1, 0,1 -> A2 More... | |
| static std::string | getColumnName (int col) |
| return the column name More... | |
Protected Attributes inherited from MWAWCell | |
| Vec2i | m_position |
| the cell row and column : 0,0 -> A1, 0,1 -> A2 More... | |
| Vec2i | m_numberCellSpanned |
| the cell spanned : by default (1,1) More... | |
| Box2f | m_bdBox |
| the cell bounding box (unit in point) More... | |
| Vec2f | m_bdSize |
| the cell bounding size : unit point More... | |
| Format | m_format |
| the cell format More... | |
| MWAWFont | m_font |
| the cell font More... | |
| bool | m_fontSet |
| a flag to know if the font has been set More... | |
| HorizontalAlignment | m_hAlign |
| the cell alignment : by default nothing More... | |
| VerticalAlignment | m_vAlign |
| the vertical cell alignment : by default nothing More... | |
| MWAWColor | m_backgroundColor |
| the backgroung color More... | |
| bool | m_protected |
| cell protected More... | |
| std::vector< MWAWBorder > | m_bordersList |
| the cell border MWAWBorder::Pos More... | |
| ExtraLine | m_extraLine |
| extra line More... | |
| MWAWBorder | m_extraLineType |
| extra line type More... | |
the type of each field
|
inline |
constructor
|
inline |
returns true if the field has no content
Referenced by MsWksDBParser::sendDatabase().
| void MsWksDBParserInternal::FieldType::updateWithContent | ( | Vec2i const & | pos, |
| MWAWCellContent const & | content | ||
| ) |
update a field with the record data
Referenced by MsWksDBParser::sendDatabase().
|
friend |
operator<<
| MWAWCellContent MsWksDBParserInternal::FieldType::m_content |
| std::string MsWksDBParserInternal::FieldType::m_extra |
extra data
Referenced by MsWksDBParserInternal::operator<<(), MsWksDBParser::readFieldTypes(), and MsWksDBParser::readFieldTypesV2().
| int MsWksDBParserInternal::FieldType::m_height |
the height
Referenced by MsWksDBParserInternal::operator<<(), and MsWksDBParser::readFieldTypes().
| bool MsWksDBParserInternal::FieldType::m_isSerial |
a flag to deferentiate a serial formula to a formula
Referenced by empty(), MsWksDBParserInternal::operator<<(), MsWksDBParser::readFieldTypes(), MsWksDBParser::readFormula(), MsWksDBParser::readSerialFormula(), and updateWithContent().
| std::string MsWksDBParserInternal::FieldType::m_name |
the field name
Referenced by MsWksDBParserInternal::operator<<().
| SerialFormula MsWksDBParserInternal::FieldType::m_serialFormula |
the serial formula ( if the field is serialized )
Referenced by MsWksDBParser::readSerialFormula(), and updateWithContent().
| int MsWksDBParserInternal::FieldType::m_serialId |
serialized field identificator
Referenced by MsWksDBParserInternal::operator<<(), MsWksDBParser::readFieldTypes(), and MsWksDBParser::readSerialFormula().
| bool MsWksDBParserInternal::FieldType::m_used |
a flag to know if the field is used or not
Referenced by MsWksDBParserInternal::operator<<(), and MsWksDBParser::readFieldTypes().