kspread
KSpread::Selection Class Reference
Inheritance diagram for KSpread::Selection:

Detailed Description
Definition at line 32 of file kspread_types.h.
Signals | |
| void | changed (const Region &) |
Public Member Functions | |
| Selection (Coordinate, Coordinate) | |
| Coordinate | begin () const |
| Coordinate | end () const |
| Selection (View *) | |
| Selection (const Selection &) | |
| ~Selection () | |
| void | initialize (const QPoint &, Sheet *sheet=0) |
| void | initialize (const QRect &, Sheet *sheet=0) |
| void | initialize (const Region &, Sheet *sheet=0) |
| void | update () |
| void | update (const QPoint &) |
| void | extend (const QPoint &, Sheet *sheet=0) |
| void | extend (const QRect &, Sheet *sheet=0) |
| void | extend (const Region &) |
| virtual Element * | eor (const QPoint &point, Sheet *sheet=0) |
| const QPoint & | anchor () const |
| const QPoint & | cursor () const |
| const QPoint & | marker () const |
| bool | isSingular () const |
| QRect | selectionHandleArea () const |
| QString | name (Sheet *originSheet=0) const |
| void | setSheet (Sheet *sheet) |
| Sheet * | sheet () const |
| void | setActiveElement (const QPoint &point) |
| void | setActiveElement (uint number) |
| Element * | activeElement () const |
| void | setActiveSubRegion (uint start, uint length) |
| QString | activeSubRegionName () const |
| void | clearSubRegion () |
| void | fixSubRegionDimension () |
| virtual void | clear () |
| void | setMultipleSelection (bool state) |
| QRect | lastRange (bool extend=true) const |
| QRect | extendToMergedAreas (QRect area) const |
| const QValueList< QColor > & | colors () const |
| QRect | selection (bool extend=true) const |
Protected Member Functions | |
| virtual Region::Point * | createPoint (const QPoint &) const |
| virtual Region::Point * | createPoint (const QString &) const |
| virtual Region::Point * | createPoint (const Point &) const |
| virtual Region::Range * | createRange (const QRect &) const |
| virtual Region::Range * | createRange (const QString &) const |
| virtual Region::Range * | createRange (const Range &) const |
Classes | |
| class | Point |
| class | Range |
Member Function Documentation
| void KSpread::Selection::initialize | ( | const QPoint & | , | |
| Sheet * | sheet = 0 | |||
| ) |
| void KSpread::Selection::initialize | ( | const QRect & | , | |
| Sheet * | sheet = 0 | |||
| ) |
| void KSpread::Selection::update | ( | ) |
| void KSpread::Selection::update | ( | const QPoint & | ) |
| void KSpread::Selection::extend | ( | const QPoint & | , | |
| Sheet * | sheet = 0 | |||
| ) |
Extends the current selection with an additional point.
Definition at line 455 of file selection.cc.
| void KSpread::Selection::extend | ( | const QRect & | , | |
| Sheet * | sheet = 0 | |||
| ) |
Extends the current selection with an additional range.
Definition at line 515 of file selection.cc.
| void KSpread::Selection::extend | ( | const Region & | ) |
Extends the current selection with an additional region.
Definition at line 592 of file selection.cc.
| Selection::Element * KSpread::Selection::eor | ( | const QPoint & | point, | |
| Sheet * | sheet = 0 | |||
| ) | [virtual] |
- Parameters:
-
point the point's location
- Parameters:
-
sheet the sheet the point belongs to
Reimplemented from KSpread::Region.
Definition at line 619 of file selection.cc.
| const QPoint & KSpread::Selection::anchor | ( | ) | const |
The anchor is the starting point of a range.
For points marker and anchor are the same
Definition at line 628 of file selection.cc.
| const QPoint & KSpread::Selection::cursor | ( | ) | const |
The cursor represents the cursor position.
This needed for obscured cells
Definition at line 633 of file selection.cc.
| const QPoint & KSpread::Selection::marker | ( | ) | const |
The marker is the end point of a range.
For points marker and anchor are the same
Definition at line 638 of file selection.cc.
| bool KSpread::Selection::isSingular | ( | ) | const |
Checks wether the region consists only of one point.
Reimplemented from KSpread::Region.
Definition at line 643 of file selection.cc.
| QRect KSpread::Selection::selectionHandleArea | ( | ) | const |
- Returns:
- the area that the 'handle' of the selection is located in painting coordinates
Definition at line 648 of file selection.cc.
| QString KSpread::Selection::name | ( | Sheet * | originSheet = 0 |
) | const |
- Returns:
- the name of the region (e.g.
"A1:A2")
Reimplemented from KSpread::Region.
Definition at line 680 of file selection.cc.
| void KSpread::Selection::setSheet | ( | Sheet * | sheet | ) |
Sets the selection's origin sheet.
- Parameters:
-
sheet the sheet from which the selection starts
Definition at line 685 of file selection.cc.
| Sheet * KSpread::Selection::sheet | ( | ) | const |
| void KSpread::Selection::setActiveElement | ( | const QPoint & | point | ) |
Sets the element, which has point as anchor, as active.
Definition at line 695 of file selection.cc.
| void KSpread::Selection::setActiveElement | ( | uint | number | ) |
| Region::Element * KSpread::Selection::activeElement | ( | ) | const |
| void KSpread::Selection::setActiveSubRegion | ( | uint | start, | |
| uint | length | |||
| ) |
Sets the starting position and the length of a subregion in a multiple selection.
Definition at line 790 of file selection.cc.
| void KSpread::Selection::clearSubRegion | ( | ) |
| void KSpread::Selection::fixSubRegionDimension | ( | ) |
| void KSpread::Selection::clear | ( | ) | [virtual] |
Deletes all elements of the region.
The result is an empty region.
Reimplemented from KSpread::Region.
Definition at line 741 of file selection.cc.
| void KSpread::Selection::setMultipleSelection | ( | bool | state | ) |
The documentation for this class was generated from the following files:

