#include <kspread_util.h>
Public Member Functions | |
| Point (const TQString &) | |
| Point (const TQString &, Map *, Sheet *default_sheet=0) | |
| Point (const Point &c) | |
| bool | isValid () const |
| bool | isSheetKnown () const |
| Cell * | cell () const |
| bool | operator== (const Point &cell) const |
| bool | operator< (const Point &cell) const |
| int | row () const |
| int | column () const |
| void | setRow (int r) |
| void | setColumn (int c) |
| void | setSheet (Sheet *sheet) |
| Sheet * | sheet () const |
| void | setSheetName (TQString name) |
| TQString | sheetName () const |
| void | setPos (TQPoint pos) |
| TQPoint | pos () const |
| void | setColumnFixed (bool colFixed) |
| bool | columnFixed () const |
| void | setRowFixed (bool rowFixed) |
| bool | rowFixed () const |
Detailed Description
Represents the position of a single cell in a workbook.
Each position has a row, column and optionally an associated Sheet. Columns and rows can be marked as fixed. This is for handling absolute coordinates in formulae (eg. in the formula "=$C$1" both the column (C) and row (1) are fixed.
Definition at line 54 of file kspread_util.h.
Constructor & Destructor Documentation
◆ Point() [1/4]
|
inline |
Definition at line 57 of file kspread_util.h.
◆ Point() [2/4]
| Point::Point | ( | const TQString & | _str | ) |
Definition at line 187 of file kspread_util.cpp.
◆ Point() [3/4]
| Point::Point | ( | const TQString & | str, |
| Map * | map, | ||
| Sheet * | default_sheet = 0 ) |
Definition at line 379 of file kspread_util.cpp.
◆ Point() [4/4]
|
inline |
Definition at line 60 of file kspread_util.h.
Member Function Documentation
◆ cell()
| Cell * Point::cell | ( | ) | const |
Definition at line 421 of file kspread_util.cpp.
◆ column()
|
inline |
Definition at line 77 of file kspread_util.h.
◆ columnFixed()
| bool Point::columnFixed | ( | ) | const |
Definition at line 221 of file kspread_util.cpp.
◆ isSheetKnown()
|
inline |
Definition at line 69 of file kspread_util.h.
◆ isValid()
|
inline |
Definition at line 68 of file kspread_util.h.
◆ operator<()
| bool Point::operator< | ( | const Point & | cell | ) | const |
Definition at line 432 of file kspread_util.cpp.
◆ operator==()
| bool Point::operator== | ( | const Point & | cell | ) | const |
Definition at line 426 of file kspread_util.cpp.
◆ pos()
| TQPoint Point::pos | ( | ) | const |
Definition at line 197 of file kspread_util.cpp.
◆ row()
|
inline |
Definition at line 76 of file kspread_util.h.
◆ rowFixed()
| bool Point::rowFixed | ( | ) | const |
Definition at line 229 of file kspread_util.cpp.
◆ setColumn()
|
inline |
Definition at line 79 of file kspread_util.h.
◆ setColumnFixed()
| void Point::setColumnFixed | ( | bool | colFixed | ) |
Sets whether or not the column (x coordinate) of this point is fixed (ie.
it represents an absolute coordinate - eg. the column letter B in the formula "=$B30" is fixed)
Definition at line 217 of file kspread_util.cpp.
◆ setPos()
| void Point::setPos | ( | TQPoint | pos | ) |
Sets the position of this point (in rows and columns).
Definition at line 193 of file kspread_util.cpp.
◆ setRow()
|
inline |
Definition at line 78 of file kspread_util.h.
◆ setRowFixed()
| void Point::setRowFixed | ( | bool | rowFixed | ) |
Sets whether or not the row (y coordinate) of this point is fixed (ie.
it represents an absolute coordinate - eg. the row number 30 in the formula "=A$30" is fixed)
Definition at line 225 of file kspread_util.cpp.
◆ setSheet()
| void Point::setSheet | ( | Sheet * | sheet | ) |
Sets the sheet which this point lies on.
Definition at line 201 of file kspread_util.cpp.
◆ setSheetName()
| void Point::setSheetName | ( | TQString | name | ) |
Sets the name of the sheet which this point lies on.
Definition at line 209 of file kspread_util.cpp.
◆ sheet()
| KSpread::Sheet * Point::sheet | ( | ) | const |
Definition at line 205 of file kspread_util.cpp.
◆ sheetName()
| TQString Point::sheetName | ( | ) | const |
Definition at line 213 of file kspread_util.cpp.
The documentation for this class was generated from the following files:
