CCellRange Class Reference

#include <CellRange.h>

List of all members.

Public Member Functions

 CCellRange (int nMinRow=-1, int nMinCol=-1, int nMaxRow=-1, int nMaxCol=-1)
void Set (int nMinRow=-1, int nMinCol=-1, int nMaxRow=-1, int nMaxCol=-1)
int IsValid () const
int InRange (int row, int col) const
int InRange (const CCellID &cellID) const
int Count ()
CCellID GetTopLeft () const
CCellRange Intersect (const CCellRange &rhs) const
int GetMinRow () const
void SetMinRow (int minRow)
int GetMinCol () const
void SetMinCol (int minCol)
int GetMaxRow () const
void SetMaxRow (int maxRow)
int GetMaxCol () const
void SetMaxCol (int maxCol)
int GetRowSpan () const
int GetColSpan () const
void operator= (const CCellRange &rhs)
int operator== (const CCellRange &rhs)
int operator!= (const CCellRange &rhs)

Protected Attributes

int m_nMinRow
int m_nMinCol
int m_nMaxRow
int m_nMaxCol


Detailed Description

Definition at line 60 of file CellRange.h.


Constructor & Destructor Documentation

CCellRange::CCellRange ( int  nMinRow = -1,
int  nMinCol = -1,
int  nMaxRow = -1,
int  nMaxCol = -1 
) [inline]

Definition at line 64 of file CellRange.h.

References Set().

Referenced by Intersect().


Member Function Documentation

int CCellRange::Count (  )  [inline]

Definition at line 74 of file CellRange.h.

References m_nMaxCol, m_nMaxRow, m_nMinCol, and m_nMinRow.

Referenced by CGridCtrl::OnUpdateEditCopy(), and CGridCtrl::OnUpdateEditCut().

int CCellRange::GetColSpan (  )  const [inline]

Definition at line 92 of file CellRange.h.

References m_nMaxCol, and m_nMinCol.

int CCellRange::GetMaxCol (  )  const [inline]

Definition at line 88 of file CellRange.h.

References m_nMaxCol.

Referenced by CGridCtrl::CopyTextFromGrid(), CGridCtrl::EnsureVisible(), CGridCtrl::GetCellRangeRect(), CGridCtrl::GetSelectedCellRange(), CGridCtrl::IsValid(), CGridCtrl::OnDraw(), and CGridCtrl::SetSelectedRange().

int CCellRange::GetMaxRow (  )  const [inline]

Definition at line 85 of file CellRange.h.

References m_nMaxRow.

Referenced by CGridCtrl::CopyTextFromGrid(), CGridCtrl::EnsureVisible(), CGridCtrl::GetCellRangeRect(), CGridCtrl::GetSelectedCellRange(), CGridCtrl::IsValid(), CGridCtrl::OnDraw(), and CGridCtrl::SetSelectedRange().

int CCellRange::GetMinCol (  )  const [inline]

Definition at line 82 of file CellRange.h.

References m_nMinCol.

Referenced by CGridCtrl::CopyTextFromGrid(), CGridCtrl::EnsureVisible(), CGridCtrl::GetCellRangeRect(), CGridCtrl::GetSelectedCellRange(), CGridCtrl::IsValid(), and CGridCtrl::SetSelectedRange().

int CCellRange::GetMinRow (  )  const [inline]

Definition at line 79 of file CellRange.h.

References m_nMinRow.

Referenced by CGridCtrl::CopyTextFromGrid(), CGridCtrl::EnsureVisible(), CGridCtrl::GetCellRangeRect(), CGridCtrl::GetSelectedCellRange(), CGridCtrl::IsValid(), and CGridCtrl::SetSelectedRange().

int CCellRange::GetRowSpan (  )  const [inline]

Definition at line 91 of file CellRange.h.

References m_nMaxRow, and m_nMinRow.

CCellID CCellRange::GetTopLeft (  )  const [inline]

Definition at line 145 of file CellRange.h.

References m_nMinCol, and m_nMinRow.

int CCellRange::InRange ( const CCellID cellID  )  const [inline]

Definition at line 140 of file CellRange.h.

References CCellID::col, InRange(), and CCellID::row.

int CCellRange::InRange ( int  row,
int  col 
) const [inline]

Definition at line 135 of file CellRange.h.

References m_nMaxCol, m_nMinCol, and m_nMinRow.

Referenced by InRange().

CCellRange CCellRange::Intersect ( const CCellRange rhs  )  const [inline]

Definition at line 150 of file CellRange.h.

References CCellRange(), m_nMaxCol, m_nMaxRow, m_nMinCol, m_nMinRow, max, and min.

Referenced by CGridCtrl::InvalidateCellRect().

int CCellRange::IsValid (  )  const [inline]

Definition at line 129 of file CellRange.h.

References m_nMaxCol, m_nMaxRow, m_nMinCol, and m_nMinRow.

int CCellRange::operator!= ( const CCellRange rhs  )  [inline]

Definition at line 124 of file CellRange.h.

References operator==().

void CCellRange::operator= ( const CCellRange rhs  )  [inline]

Definition at line 113 of file CellRange.h.

References m_nMaxCol, m_nMaxRow, m_nMinCol, m_nMinRow, and Set().

int CCellRange::operator== ( const CCellRange rhs  )  [inline]

Definition at line 118 of file CellRange.h.

References m_nMaxCol, m_nMaxRow, m_nMinCol, and m_nMinRow.

Referenced by operator!=().

void CCellRange::Set ( int  nMinRow = -1,
int  nMinCol = -1,
int  nMaxRow = -1,
int  nMaxCol = -1 
) [inline]

Definition at line 105 of file CellRange.h.

References m_nMaxCol, m_nMaxRow, m_nMinCol, and m_nMinRow.

Referenced by CCellRange(), and operator=().

void CCellRange::SetMaxCol ( int  maxCol  )  [inline]

Definition at line 89 of file CellRange.h.

References m_nMaxCol.

Referenced by CGridCtrl::GetSelectedCellRange().

void CCellRange::SetMaxRow ( int  maxRow  )  [inline]

Definition at line 86 of file CellRange.h.

References m_nMaxRow.

Referenced by CGridCtrl::GetSelectedCellRange().

void CCellRange::SetMinCol ( int  minCol  )  [inline]

Definition at line 83 of file CellRange.h.

References m_nMinCol.

Referenced by CGridCtrl::GetSelectedCellRange().

void CCellRange::SetMinRow ( int  minRow  )  [inline]

Definition at line 80 of file CellRange.h.

References m_nMinRow.

Referenced by CGridCtrl::GetSelectedCellRange().


Member Data Documentation

int CCellRange::m_nMaxCol [protected]

Definition at line 102 of file CellRange.h.

Referenced by Count(), GetColSpan(), GetMaxCol(), InRange(), Intersect(), IsValid(), operator=(), operator==(), Set(), and SetMaxCol().

int CCellRange::m_nMaxRow [protected]

Definition at line 101 of file CellRange.h.

Referenced by Count(), GetMaxRow(), GetRowSpan(), Intersect(), IsValid(), operator=(), operator==(), Set(), and SetMaxRow().

int CCellRange::m_nMinCol [protected]

Definition at line 100 of file CellRange.h.

Referenced by Count(), GetColSpan(), GetMinCol(), GetTopLeft(), InRange(), Intersect(), IsValid(), operator=(), operator==(), Set(), and SetMinCol().

int CCellRange::m_nMinRow [protected]

Definition at line 99 of file CellRange.h.

Referenced by Count(), GetMinRow(), GetRowSpan(), GetTopLeft(), InRange(), Intersect(), IsValid(), operator=(), operator==(), Set(), and SetMinRow().


The documentation for this class was generated from the following file:
Generated on Thu Dec 7 01:19:45 2006 for DT2005.panorama by  doxygen 1.4.7