#include <CellRange.h>
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 |
Definition at line 60 of file CellRange.h.
CCellRange::CCellRange | ( | int | nMinRow = -1 , |
|
int | nMinCol = -1 , |
|||
int | nMaxRow = -1 , |
|||
int | nMaxCol = -1 | |||
) | [inline] |
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] |
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] |
CCellID CCellRange::GetTopLeft | ( | ) | const [inline] |
int CCellRange::InRange | ( | const CCellID & | cellID | ) | const [inline] |
int CCellRange::InRange | ( | int | row, | |
int | col | |||
) | const [inline] |
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] |
int CCellRange::operator!= | ( | const CCellRange & | rhs | ) | [inline] |
void CCellRange::operator= | ( | const CCellRange & | rhs | ) | [inline] |
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().
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().