KSpread::Region::Element Class Reference

#include <region.h>

Inheritance diagram for KSpread::Region::Element:
KSpread::Region::Point KSpread::Region::Range

Public Types

enum  Type { Undefined , Point , Range }
 

Public Member Functions

virtual Type type () const
 
virtual bool isValid () const
 
virtual bool isColumn () const
 
virtual bool isRow () const
 
virtual bool contains (const TQPoint &) const
 
virtual bool contains (const TQRect &) const
 
virtual TQString name (Sheet *=0) const
 
virtual TQRect rect () const
 
virtual const TQColor & color () const
 
Sheet * sheet () const
 
void setSheet (Sheet *sheet)
 

Protected Attributes

Sheet * m_sheet
 

Detailed Description

Base class for region elements, which can be points or ranges.

This class is used by KSpread::Region and could not be used outside of it.

Size: m_sheet: 4 bytes vtable: 4 bytes sum: 8 bytes

Definition at line 324 of file region.h.

Member Enumeration Documentation

◆ Type

enum KSpread::Region::Element::Type

Definition at line 327 of file region.h.

Constructor & Destructor Documentation

◆ Element()

KSpread::Region::Element::Element ( )

Definition at line 744 of file region.cpp.

◆ ~Element()

KSpread::Region::Element::~Element ( )
virtual

Definition at line 749 of file region.cpp.

Member Function Documentation

◆ color()

virtual const TQColor & KSpread::Region::Element::color ( ) const
inlinevirtual

Definition at line 342 of file region.h.

◆ contains() [1/2]

virtual bool KSpread::Region::Element::contains ( const TQPoint &  ) const
inlinevirtual

Definition at line 337 of file region.h.

◆ contains() [2/2]

virtual bool KSpread::Region::Element::contains ( const TQRect &  ) const
inlinevirtual

Definition at line 338 of file region.h.

◆ isColumn()

virtual bool KSpread::Region::Element::isColumn ( ) const
inlinevirtual

Definition at line 334 of file region.h.

◆ isRow()

virtual bool KSpread::Region::Element::isRow ( ) const
inlinevirtual

Definition at line 335 of file region.h.

◆ isValid()

virtual bool KSpread::Region::Element::isValid ( ) const
inlinevirtual

Definition at line 333 of file region.h.

◆ name()

virtual TQString KSpread::Region::Element::name ( Sheet *  = 0) const
inlinevirtual

Definition at line 340 of file region.h.

◆ rect()

virtual TQRect KSpread::Region::Element::rect ( ) const
inlinevirtual

Definition at line 341 of file region.h.

◆ setSheet()

void KSpread::Region::Element::setSheet ( Sheet *  sheet)
inline

Definition at line 345 of file region.h.

◆ sheet()

Sheet * KSpread::Region::Element::sheet ( ) const
inline

Definition at line 344 of file region.h.

◆ type()

virtual Type KSpread::Region::Element::type ( ) const
inlinevirtual

Definition at line 332 of file region.h.

Member Data Documentation

◆ m_sheet

Sheet* KSpread::Region::Element::m_sheet
protected

Definition at line 352 of file region.h.


The documentation for this class was generated from the following files: