Lines Matching refs:rWindowPos
254 size_t ScPivotFieldWindow::GetFieldIndex( const Point& rWindowPos ) const in GetFieldIndex()
256 if( (rWindowPos.X() >= 0) && (rWindowPos.Y() >= 0) ) in GetFieldIndex()
260 size_t nCol = static_cast< size_t >( rWindowPos.X() / nGridWidth ); in GetFieldIndex()
261 size_t nRow = static_cast< size_t >( rWindowPos.Y() / nGridHeight ); in GetFieldIndex()
264 long nColOffset = rWindowPos.X() % nGridWidth; in GetFieldIndex()
265 long nRowOffset = rWindowPos.Y() % nGridHeight; in GetFieldIndex()
277 size_t ScPivotFieldWindow::GetDropIndex( const Point& rWindowPos ) const in GetDropIndex()
279 if( (rWindowPos.X() >= 0) && (rWindowPos.Y() >= 0) ) in GetDropIndex()
283 size_t nCol = static_cast< size_t >( rWindowPos.X() / nGridWidth ); in GetDropIndex()
284 size_t nRow = static_cast< size_t >( rWindowPos.Y() / nGridHeight ); in GetDropIndex()
288 long nColOffset = rWindowPos.X() % nGridWidth; in GetDropIndex()
289 long nRowOffset = rWindowPos.Y() % nGridHeight; in GetDropIndex()
405 void ScPivotFieldWindow::NotifyTracking( const Point& rWindowPos ) in NotifyTracking() argument
407 size_t nFieldIndex = GetDropIndex( rWindowPos ); in NotifyTracking()