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();
    }
}
示例#2
0
RangePrivate::RangePrivate(CellReference topLeft, CellReference bottomRight, Range *parent) :
    q_ptr(parent),
    mTop(topLeft.row()),
    mBottom(bottomRight.row()),
    mLeft(topLeft.column()),
    mRight(bottomRight.column()) {

    normalise();

}
示例#3
0
void WorksheetModel::lockCell(CellReference &ref) {
    d_ptr->lockCell(ref.row(), ref.column());
}
示例#4
0
bool WorksheetModel::isLocked(CellReference &ref) {
    return d_ptr->isLocked(ref.row(), ref.column());
}
示例#5
0
CellRange::CellRange(const CellReference &topLeft, const CellReference &bottomRight)
    : top(topLeft.row()), left(topLeft.column())
    , bottom(bottomRight.row()), right(bottomRight.column())
{
}