kspread

KSpread::Point Class Reference

#include <kspread_util.h>

List of all members.


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.


Public Member Functions

 Point ()
 Point (const QString &)
 Point (const QString &, Map *, Sheet *default_sheet=0)
 Point (const Point &c)
bool isValid () const
bool isSheetKnown () const
Cellcell () 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)
Sheetsheet () const
void setSheetName (QString name)
QString sheetName () const
void setPos (QPoint pos)
QPoint pos () const
void setColumnFixed (bool colFixed)
bool columnFixed () const
void setRowFixed (bool rowFixed)
bool rowFixed () const

Member Function Documentation

void Point::setSheet ( Sheet sheet  ) 

Sets the sheet which this point lies on.

Definition at line 201 of file kspread_util.cc.

void Point::setSheetName ( QString  name  ) 

Sets the name of the sheet which this point lies on.

Definition at line 209 of file kspread_util.cc.

void Point::setPos ( QPoint  pos  ) 

Sets the position of this point (in rows and columns).

Definition at line 193 of file kspread_util.cc.

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.cc.

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.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys