kspread

KSpread::Selection Class Reference

Inheritance diagram for KSpread::Selection:

KSpread::Region List of all members.

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)
Sheetsheet () 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::PointcreatePoint (const QPoint &) const
virtual Region::PointcreatePoint (const QString &) const
virtual Region::PointcreatePoint (const Point &) const
virtual Region::RangecreateRange (const QRect &) const
virtual Region::RangecreateRange (const QString &) const
virtual Region::RangecreateRange (const Range &) const

Classes

class  Point
class  Range

Member Function Documentation

void KSpread::Selection::initialize ( const QPoint &  ,
Sheet sheet = 0 
)

Sets the selection to the given point.

Definition at line 113 of file selection.cc.

void KSpread::Selection::initialize ( const QRect &  ,
Sheet sheet = 0 
)

Sets the selection to the given range.

Definition at line 181 of file selection.cc.

void KSpread::Selection::initialize ( const Region ,
Sheet sheet = 0 
)

Sets the selection to the given region.

Definition at line 254 of file selection.cc.

void KSpread::Selection::update (  ) 

Emits signal changed(const Region&).

Definition at line 322 of file selection.cc.

void KSpread::Selection::update ( const QPoint &   ) 

Uses the anchor as starting point.

Definition at line 327 of file selection.cc.

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

Returns:
the selection's origin sheet

Definition at line 690 of file selection.cc.

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  ) 

Sets the number 'th element as active.

Definition at line 719 of file selection.cc.

Region::Element * KSpread::Selection::activeElement (  )  const

Returns:
the active element

Definition at line 736 of file selection.cc.

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 (  ) 

Clears the elements of the subregion.

Definition at line 749 of file selection.cc.

void KSpread::Selection::fixSubRegionDimension (  ) 

fix subregion dimensions

Definition at line 773 of file selection.cc.

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  ) 

Sets, wether multiple selections are allowed.

Definition at line 818 of file selection.cc.


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