|
rllib
1
|
#include <rlspreadsheet.h>

Public Member Functions | |
| rlSpreadsheetCell (const char *text=0) | |
| virtual | ~rlSpreadsheetCell () |
| const char * | text () |
| void | setText (const char *text) |
| int | printf (const char *format,...) |
| void | clear () |
| void | setNextCell (rlSpreadsheetCell *next) |
| rlSpreadsheetCell * | getNextCell () |
| int | exists () |
Private Attributes | |
| char * | txt |
| rlSpreadsheetCell * | nextCell |
A cell of a spreadsheet.
Definition at line 24 of file rlspreadsheet.h.
| rlSpreadsheetCell::rlSpreadsheetCell | ( | const char * | text = 0 | ) |
| rlSpreadsheetCell::~rlSpreadsheetCell | ( | ) | [virtual] |
Definition at line 39 of file rlspreadsheet.cpp.
| void rlSpreadsheetCell::clear | ( | ) |
Definition at line 75 of file rlspreadsheet.cpp.
| int rlSpreadsheetCell::exists | ( | ) |
Definition at line 91 of file rlspreadsheet.cpp.
{
return 1;
}
| rlSpreadsheetCell * rlSpreadsheetCell::getNextCell | ( | ) |
Definition at line 86 of file rlspreadsheet.cpp.
{
return nextCell;
}
| int rlSpreadsheetCell::printf | ( | const char * | format, |
| ... | |||
| ) |
Definition at line 62 of file rlspreadsheet.cpp.
{
int ret;
char buf[rl_PRINTF_LENGTH_SPREADSHEET]; // should be big enough
va_list ap;
va_start(ap,format);
ret = rlvsnprintf(buf, rl_PRINTF_LENGTH_SPREADSHEET - 1, format, ap);
va_end(ap);
setText(buf);
return ret;
}
| void rlSpreadsheetCell::setNextCell | ( | rlSpreadsheetCell * | next | ) |
Definition at line 81 of file rlspreadsheet.cpp.
{
nextCell = next;
}
| void rlSpreadsheetCell::setText | ( | const char * | text | ) |
| const char * rlSpreadsheetCell::text | ( | ) |
Definition at line 44 of file rlspreadsheet.cpp.
{
if(txt == NULL) return null_string;
return txt;
}
rlSpreadsheetCell* rlSpreadsheetCell::nextCell [private] |
Definition at line 38 of file rlspreadsheet.h.
char* rlSpreadsheetCell::txt [private] |
Definition at line 37 of file rlspreadsheet.h.
1.7.5.1