CellRange::CellRange(const CellReference &topLeft, const CellReference &bottomRight) : top(topLeft.row()), left(topLeft.column()), bottom(bottomRight.row()), right(bottomRight.column()), _sheet() { if (topLeft.sheet() == bottomRight.sheet()) { _sheet = topLeft.sheet(); } }
RangePrivate::RangePrivate(CellReference topLeft, CellReference bottomRight, Range *parent) : q_ptr(parent), mTop(topLeft.row()), mBottom(bottomRight.row()), mLeft(topLeft.column()), mRight(bottomRight.column()) { normalise(); }
void WorksheetModel::lockCell(CellReference &ref) { d_ptr->lockCell(ref.row(), ref.column()); }
bool WorksheetModel::isLocked(CellReference &ref) { return d_ptr->isLocked(ref.row(), ref.column()); }
CellRange::CellRange(const CellReference &topLeft, const CellReference &bottomRight) : top(topLeft.row()), left(topLeft.column()) , bottom(bottomRight.row()), right(bottomRight.column()) { }