LibEngsas
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ESpreadsheetCell Class Reference

Represents one cell of a ESpreadsheetIt contains the value (see value()) of a cell and also the formatting (font(), alignment(), foreground(), background()). An ESpreadsheetCell is isValid(), if row() and column() is greater or equal to 0 (default -1). More...

#include <espreadsheetcell.h>

Public Member Functions

 ESpreadsheetCell ()
 
 ESpreadsheetCell (int row, int column, QVariant value=QVariant())
 
bool isValid () const
 Returns true, if the row() and column() is set to a value greator or equal 0. More...
 
int row () const
 
void setRow (int row)
 
int column () const
 
void setColumn (int column)
 
QVariant value () const
 
void setValue (QVariant value)
 
QFont font () const
 
void setFont (QFont font)
 
void setFont (QVariant font)
 
Qt::Alignment alignment () const
 
void setAlignment (int alignment)
 
void setAlignment (QVariant alignment)
 
QBrush foreground () const
 
void setForeground (QBrush foreground)
 
void setForeground (QVariant foreground)
 
QBrush background () const
 
void setBackground (QBrush background)
 
void setBackground (QVariant background)
 

Private Member Functions

void init ()
 

Private Attributes

int myRow
 
int myColumn
 
QVariant myValue
 
QFont myFont
 
QBrush myForeground
 
QBrush myBackground
 
Qt::Alignment myAlignment
 

Detailed Description

Represents one cell of a ESpreadsheet

It contains the value (see value()) of a cell and also the formatting (font(), alignment(), foreground(), background()). An ESpreadsheetCell is isValid(), if row() and column() is greater or equal to 0 (default -1).

See Also
ESpreadsheet
ESpreadsheetHandler
ESpreadsheetProvider

Constructor & Destructor Documentation

ESpreadsheetCell::ESpreadsheetCell ( )

+ Here is the call graph for this function:

ESpreadsheetCell::ESpreadsheetCell ( int  row,
int  column,
QVariant  value = QVariant() 
)

+ Here is the call graph for this function:

Member Function Documentation

Qt::Alignment ESpreadsheetCell::alignment ( ) const

+ Here is the caller graph for this function:

QBrush ESpreadsheetCell::background ( ) const

+ Here is the caller graph for this function:

int ESpreadsheetCell::column ( ) const

+ Here is the caller graph for this function:

QFont ESpreadsheetCell::font ( ) const

+ Here is the caller graph for this function:

QBrush ESpreadsheetCell::foreground ( ) const

+ Here is the caller graph for this function:

void ESpreadsheetCell::init ( )
private

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ESpreadsheetCell::isValid ( ) const

Returns true, if the row() and column() is set to a value greator or equal 0.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ESpreadsheetCell::row ( ) const

+ Here is the caller graph for this function:

void ESpreadsheetCell::setAlignment ( int  alignment)

+ Here is the caller graph for this function:

void ESpreadsheetCell::setAlignment ( QVariant  alignment)

+ Here is the call graph for this function:

void ESpreadsheetCell::setBackground ( QBrush  background)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ESpreadsheetCell::setBackground ( QVariant  background)

+ Here is the call graph for this function:

void ESpreadsheetCell::setColumn ( int  column)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ESpreadsheetCell::setFont ( QFont  font)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ESpreadsheetCell::setFont ( QVariant  font)

+ Here is the call graph for this function:

void ESpreadsheetCell::setForeground ( QBrush  foreground)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ESpreadsheetCell::setForeground ( QVariant  foreground)

+ Here is the call graph for this function:

void ESpreadsheetCell::setRow ( int  row)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ESpreadsheetCell::setValue ( QVariant  value)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QVariant ESpreadsheetCell::value ( ) const

+ Here is the caller graph for this function:

Member Data Documentation

Qt::Alignment ESpreadsheetCell::myAlignment
private
QBrush ESpreadsheetCell::myBackground
private
int ESpreadsheetCell::myColumn
private
QFont ESpreadsheetCell::myFont
private
QBrush ESpreadsheetCell::myForeground
private
int ESpreadsheetCell::myRow
private
QVariant ESpreadsheetCell::myValue
private

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