Lines Matching refs:nRow
214 SCROW nRow = *it; in DeleteRow() local
216 maRowManualBreaks.insert( static_cast<SCROW>( nRow - nSize)); in DeleteRow()
564 SCROW nRow; in TransposeClip() local
571 for ( nRow=nRow1; nRow<=nRow2; nRow++ ) in TransposeClip()
575 …ScAddress aDestPos( static_cast<SCCOL>(nRow-nRow1), static_cast<SCROW>(nCol-nCol1), pTransClip->nT… in TransposeClip()
578 aRef.nRow = nRow; in TransposeClip()
587 … pTransClip->PutCell( static_cast<SCCOL>(nRow-nRow1), static_cast<SCROW>(nCol-nCol1), pNew ); in TransposeClip()
593 while (aIter.Next( nRow, pCell )) in TransposeClip()
595 …ScAddress aDestPos( static_cast<SCCOL>(nRow-nRow1), static_cast<SCROW>(nCol-nCol1), pTransClip->nT… in TransposeClip()
603 ScAddress aOwnPos( nCol, nRow, nTab ); in TransposeClip()
619 … pTransClip->PutCell( static_cast<SCCOL>(nRow-nRow1), static_cast<SCROW>(nCol-nCol1), pNew ); in TransposeClip()
639 for (nRow = nAttrRow1; nRow<=nAttrRow2; nRow++) in TransposeClip()
640 …pTransClip->SetPattern( static_cast<SCCOL>(nRow-nRow1), static_cast<SCROW>(nCol-nCol1), *pPattern,… in TransposeClip()
681 for (nRow = nAttrRow1; nRow<=nAttrRow2; nRow++) in TransposeClip()
682 pTransClip->SetPattern( static_cast<SCCOL>(nRow-nRow1), in TransposeClip()
1001 void ScTable::PutCell( SCCOL nCol, SCROW nRow, ScBaseCell* pCell ) in PutCell() argument
1003 if (ValidColRow(nCol,nRow)) in PutCell()
1006 aCol[nCol].Insert( nRow, pCell ); in PutCell()
1008 aCol[nCol].Delete( nRow ); in PutCell()
1013 void ScTable::PutCell( SCCOL nCol, SCROW nRow, sal_uLong nFormatIndex, ScBaseCell* pCell ) in PutCell() argument
1015 if (ValidColRow(nCol,nRow)) in PutCell()
1018 aCol[nCol].Insert( nRow, nFormatIndex, pCell ); in PutCell()
1020 aCol[nCol].Delete( nRow ); in PutCell()
1043 sal_Bool ScTable::SetString( SCCOL nCol, SCROW nRow, SCTAB nTabP, const String& rString, in SetString() argument
1046 if (ValidColRow(nCol,nRow)) in SetString()
1048 … nRow, nTabP, rString, pDocument->GetAddressConvention(), pFormatter, bDetectNumberFormat ); in SetString()
1054 void ScTable::SetValue( SCCOL nCol, SCROW nRow, const double& rVal ) in SetValue() argument
1056 if (ValidColRow(nCol, nRow)) in SetValue()
1057 aCol[nCol].SetValue( nRow, rVal ); in SetValue()
1061 void ScTable::GetString( SCCOL nCol, SCROW nRow, String& rString ) in GetString() argument
1063 if (ValidColRow(nCol,nRow)) in GetString()
1064 aCol[nCol].GetString( nRow, rString ); in GetString()
1077 void ScTable::GetInputString( SCCOL nCol, SCROW nRow, String& rString ) in GetInputString() argument
1079 if (ValidColRow(nCol,nRow)) in GetInputString()
1080 aCol[nCol].GetInputString( nRow, rString ); in GetInputString()
1086 double ScTable::GetValue( SCCOL nCol, SCROW nRow ) in GetValue() argument
1088 if (ValidColRow( nCol, nRow )) in GetValue()
1089 return aCol[nCol].GetValue( nRow ); in GetValue()
1094 void ScTable::GetFormula( SCCOL nCol, SCROW nRow, String& rFormula, in GetFormula() argument
1097 if (ValidColRow(nCol,nRow)) in GetFormula()
1098 aCol[nCol].GetFormula( nRow, rFormula, bAsciiExport ); in GetFormula()
1104 ScPostIt* ScTable::GetNote( SCCOL nCol, SCROW nRow ) in GetNote() argument
1106 return ValidColRow( nCol, nRow ) ? aCol[ nCol ].GetNote( nRow ) : 0; in GetNote()
1110 void ScTable::TakeNote( SCCOL nCol, SCROW nRow, ScPostIt*& rpNote ) in TakeNote() argument
1112 if( ValidColRow( nCol, nRow ) ) in TakeNote()
1114 aCol[ nCol ].TakeNote( nRow, rpNote ); in TakeNote()
1119 mxUninitNotes->push_back( ScAddress2D( nCol, nRow ) ); in TakeNote()
1127 ScPostIt* ScTable::ReleaseNote( SCCOL nCol, SCROW nRow ) in ReleaseNote() argument
1129 return ValidColRow( nCol, nRow ) ? aCol[ nCol ].ReleaseNote( nRow ) : 0; in ReleaseNote()
1133 void ScTable::DeleteNote( SCCOL nCol, SCROW nRow ) in DeleteNote() argument
1135 if( ValidColRow( nCol, nRow ) ) in DeleteNote()
1136 aCol[ nCol ].DeleteNote( nRow ); in DeleteNote()
1151 CellType ScTable::GetCellType( SCCOL nCol, SCROW nRow ) const in GetCellType()
1153 if (ValidColRow( nCol, nRow )) in GetCellType()
1154 return aCol[nCol].GetCellType( nRow ); in GetCellType()
1159 ScBaseCell* ScTable::GetCell( SCCOL nCol, SCROW nRow ) const in GetCell()
1161 if (ValidColRow( nCol, nRow )) in GetCell()
1162 return aCol[nCol].GetCell( nRow ); in GetCell()
1195 sal_Bool ScTable::HasData( SCCOL nCol, SCROW nRow ) in HasData() argument
1197 if (ValidColRow(nCol,nRow)) in HasData()
1198 return aCol[nCol].HasDataAt( nRow ); in HasData()
1204 sal_Bool ScTable::HasStringData( SCCOL nCol, SCROW nRow ) in HasStringData() argument
1206 if (ValidColRow(nCol,nRow)) in HasStringData()
1207 return aCol[nCol].HasStringData( nRow ); in HasStringData()
1213 sal_Bool ScTable::HasValueData( SCCOL nCol, SCROW nRow ) in HasValueData() argument
1215 if (ValidColRow(nCol,nRow)) in HasValueData()
1216 return aCol[nCol].HasValueData( nRow ); in HasValueData()
1351 const SfxPoolItem* ScTable::GetAttr( SCCOL nCol, SCROW nRow, sal_uInt16 nWhich ) const in GetAttr() argument
1353 if (ValidColRow(nCol,nRow)) in GetAttr()
1354 return aCol[nCol].GetAttr( nRow, nWhich ); in GetAttr()
1360 sal_uLong ScTable::GetNumberFormat( SCCOL nCol, SCROW nRow ) const in GetNumberFormat()
1362 if (ValidColRow(nCol,nRow)) in GetNumberFormat()
1363 return aCol[nCol].GetNumberFormat( nRow ); in GetNumberFormat()
1369 const ScPatternAttr* ScTable::GetPattern( SCCOL nCol, SCROW nRow ) const in GetPattern()
1371 if (ValidColRow(nCol,nRow)) in GetPattern()
1372 return aCol[nCol].GetPattern( nRow ); in GetPattern()
1490 for ( SCROW nRow = nAttrRow1; nRow <= nAttrRow2; nRow++ ) in FillMaxRot() local
1492 if (!RowHidden(nRow)) in FillMaxRot()
1500 long nWidth = static_cast<long>(mpRowHeights->getValue(nRow) * nFactor); in FillMaxRot()
1513 while ( nArrY<nArrCount && pRowInfo[nArrY].nRowNo < nRow ) in FillMaxRot()
1515 if ( nArrY<nArrCount && pRowInfo[nArrY].nRowNo == nRow ) in FillMaxRot()
1902 void ScTable::ApplyPattern( SCCOL nCol, SCROW nRow, const ScPatternAttr& rAttr ) in ApplyPattern() argument
1904 if (ValidColRow(nCol,nRow)) in ApplyPattern()
1905 aCol[nCol].ApplyPattern( nRow, rAttr ); in ApplyPattern()
1956 void ScTable::ApplyStyle( SCCOL nCol, SCROW nRow, const ScStyleSheet& rStyle ) in ApplyStyle() argument
1958 if (ValidColRow(nCol,nRow)) in ApplyStyle()
1959 aCol[nCol].ApplyStyle( nRow, rStyle ); in ApplyStyle()
1993 const ScStyleSheet* ScTable::GetStyle( SCCOL nCol, SCROW nRow ) const in GetStyle()
1995 if (ValidColRow(nCol, nRow)) in GetStyle()
1996 return aCol[nCol].GetStyle(nRow); in GetStyle()
2083 SCROW nRow = 0; in StyleSheetChanged() local
2084 while (nRow <= MAXROW) in StyleSheetChanged()
2087 if (!aUsedRows.getRangeData(nRow, aData)) in StyleSheetChanged()
2093 SetOptimalHeight(nRow, nEndRow, 0, pDev, nPPTX, nPPTY, rZoomX, rZoomY, sal_False); in StyleSheetChanged()
2095 nRow = nEndRow + 1; in StyleSheetChanged()
2122 void ScTable::SetPattern( SCCOL nCol, SCROW nRow, const ScPatternAttr& rAttr, sal_Bool bPutToPool ) in SetPattern() argument
2124 if (ValidColRow(nCol,nRow)) in SetPattern()
2125 aCol[nCol].SetPattern( nRow, rAttr, bPutToPool ); in SetPattern()
2129 void ScTable::ApplyAttr( SCCOL nCol, SCROW nRow, const SfxPoolItem& rAttr ) in ApplyAttr() argument
2131 if (ValidColRow(nCol,nRow)) in ApplyAttr()
2132 aCol[nCol].ApplyAttr( nRow, rAttr ); in ApplyAttr()
2189 void ScTable::SetRowHeight( SCROW nRow, sal_uInt16 nNewHeight ) in SetRowHeight() argument
2191 if (VALIDROW(nRow) && mpRowHeights) in SetRowHeight()
2199 sal_uInt16 nOldHeight = mpRowHeights->getValue(nRow); in SetRowHeight()
2206 pDrawLayer->HeightChanged( nTab, nRow, ((long) nNewHeight) - (long) nOldHeight ); in SetRowHeight()
2207 mpRowHeights->setValue(nRow, nRow, nNewHeight); in SetRowHeight()
2232 for (SCROW nRow = nStartRow; nRow <= nEndRow; ++nRow) in lcl_pixelSizeChanged() local
2235 if (!aFwdIter.getValue(nRow, nHeight)) in lcl_pixelSizeChanged()
2246 nRow = aFwdIter.getLastPos(); in lcl_pixelSizeChanged()
2294 for( SCROW nRow = nStartRow; nRow <= nEndRow ; ++nRow ) in SetRowHeightRange() local
2296 pDrawLayer->HeightChanged( nTab, nRow, in SetRowHeightRange()
2297 … static_cast<long>(nNewHeight) - static_cast<long>(mpRowHeights->getValue(nRow))); in SetRowHeightRange()
2298 mpRowHeights->setValue(nRow, nRow, nNewHeight); in SetRowHeightRange()
2455 sal_uInt16 ScTable::GetRowHeight( SCROW nRow, SCROW* pStartRow, SCROW* pEndRow, bool bHiddenAsZero … in GetRowHeight() argument
2457 DBG_ASSERT(VALIDROW(nRow),"Invalid row number"); in GetRowHeight()
2459 if (VALIDROW(nRow) && mpRowHeights) in GetRowHeight()
2461 if (bHiddenAsZero && RowHidden( nRow, pStartRow, pEndRow)) in GetRowHeight()
2466 if (!mpRowHeights->getRangeData(nRow, aData)) in GetRowHeight()
2469 *pStartRow = nRow; in GetRowHeight()
2471 *pEndRow = nRow; in GetRowHeight()
2490 *pStartRow = nRow; in GetRowHeight()
2492 *pEndRow = nRow; in GetRowHeight()
2505 SCROW nRow = nStartRow; in GetRowHeight() local
2506 while (nRow <= nEndRow) in GetRowHeight()
2509 if (!RowHidden(nRow, nLastRow)) in GetRowHeight()
2513 nHeight += mpRowHeights->getSumValue(nRow, nLastRow); in GetRowHeight()
2515 nRow = nLastRow + 1; in GetRowHeight()
2531 SCROW nRow = nStartRow; in GetScaledRowHeight() local
2532 while (nRow <= nEndRow) in GetScaledRowHeight()
2535 if (!RowHidden(nRow, nLastRow)) in GetScaledRowHeight()
2541 while (nRow <= nLastRow) in GetScaledRowHeight()
2544 if (!mpRowHeights->getRangeData(nRow, aData)) in GetScaledRowHeight()
2551 nHeight += nOneHeight * ( nSegmentEnd + 1 - nRow ); in GetScaledRowHeight()
2553 nRow = nSegmentEnd + 1; in GetScaledRowHeight()
2556 nRow = nLastRow + 1; in GetScaledRowHeight()
2565 sal_uInt16 ScTable::GetOriginalHeight( SCROW nRow ) const // non-0 even if hidden in GetOriginalHeight()
2567 DBG_ASSERT(VALIDROW(nRow),"wrong row number"); in GetOriginalHeight()
2569 if (VALIDROW(nRow) && mpRowHeights) in GetOriginalHeight()
2570 return mpRowHeights->getValue(nRow); in GetOriginalHeight()
2579 SCROW ScTable::GetHiddenRowCount( SCROW nRow ) in GetHiddenRowCount() argument
2581 if (!ValidRow(nRow)) in GetHiddenRowCount()
2585 if (!RowHidden(nRow, nLastRow) || !ValidRow(nLastRow)) in GetHiddenRowCount()
2588 return nLastRow - nRow + 1; in GetHiddenRowCount()
2627 void ScTable::ShowRow(SCROW nRow, bool bShow) in ShowRow() argument
2629 if (VALIDROW(nRow) && pRowFlags) in ShowRow()
2631 bool bWasVis = !RowHidden(nRow); in ShowRow()
2641 nTab, nRow, static_cast<long>(mpRowHeights->getValue(nRow))); in ShowRow()
2644 nTab, nRow, -static_cast<long>(mpRowHeights->getValue(nRow))); in ShowRow()
2647 SetRowHidden(nRow, nRow, !bShow); in ShowRow()
2649 SetRowFiltered(nRow, nRow, false); in ShowRow()
2654 pCharts->SetRangeDirty(ScRange( 0, nRow, nTab, MAXCOL, nRow, nTab )); in ShowRow()
2666 void ScTable::DBShowRow(SCROW nRow, bool bShow) in DBShowRow() argument
2668 if (VALIDROW(nRow) && pRowFlags) in DBShowRow()
2670 bool bWasVis = !RowHidden(nRow); in DBShowRow()
2680 nTab, nRow, static_cast<long>(mpRowHeights->getValue(nRow))); in DBShowRow()
2683 nTab, nRow, -static_cast<long>(mpRowHeights->getValue(nRow))); in DBShowRow()
2688 SetRowHidden(nRow, nRow, !bShow); in DBShowRow()
2689 SetRowFiltered(nRow, nRow, !bShow); in DBShowRow()
2696 pCharts->SetRangeDirty(ScRange( 0, nRow, nTab, MAXCOL, nRow, nTab )); in DBShowRow()
2699 UpdateOutlineRow( nRow, nRow, bShow ); in DBShowRow()
2863 void ScTable::SetRowFlags( SCROW nRow, sal_uInt8 nNewFlags ) in SetRowFlags() argument
2865 if (VALIDROW(nRow) && pRowFlags) in SetRowFlags()
2866 pRowFlags->SetValue( nRow, nNewFlags); in SetRowFlags()
2894 sal_uInt8 ScTable::GetRowFlags( SCROW nRow ) const in GetRowFlags()
2896 if (VALIDROW(nRow) && pRowFlags) in GetRowFlags()
2897 return pRowFlags->GetValue(nRow); in GetRowFlags()
2908 SCROW nRow = pRowFlags->GetLastAnyBitAccess( 0, sal::static_int_cast<sal_uInt8>(CR_ALL) ); in GetLastFlaggedRow() local
2909 if (ValidRow(nRow)) in GetLastFlaggedRow()
2910 nLastFound = nRow; in GetLastFlaggedRow()
2918 SCROW nRow = mpHiddenRows->findLastNotOf(false); in GetLastFlaggedRow() local
2919 if (ValidRow(nRow)) in GetLastFlaggedRow()
2920 nLastFound = ::std::max(nLastFound, nRow); in GetLastFlaggedRow()
2925 SCROW nRow = mpFilteredRows->findLastNotOf(false); in GetLastFlaggedRow() local
2926 if (ValidRow(nRow)) in GetLastFlaggedRow()
2927 nLastFound = ::std::max(nLastFound, nRow); in GetLastFlaggedRow()
3061 SCROW nRow; in DoAutoOutline() local
3084 for (nRow=nStartRow; nRow<=nEndRow; nRow++) in DoAutoOutline()
3085 if (pUsed[nRow-nStartRow]) in DoAutoOutline()
3091 pCell = aCol[nCol].GetCell( nRow ); in DoAutoOutline()
3097 DiffSign( aRef.aStart.Row(), nRow ) == in DoAutoOutline()
3098 DiffSign( aRef.aEnd.Row(), nRow ) ) in DoAutoOutline()
3122 while ( aIter.Next( nRow, pCell ) && !bFound ) in DoAutoOutline()
3126 if ( aRef.aStart.Row() == nRow && aRef.aEnd.Row() == nRow && in DoAutoOutline()
3156 for (SCROW nRow=nStartRow; nRow<=nEndRow; nRow++) in CopyData() local
3158 aSrc.SetRow( nRow ); in CopyData()
3165 ScBaseCell* pCell = GetCell( nCol, nRow ); in CopyData()
3181 SetPattern( nDestX, nDestY, *GetPattern( nCol, nRow ), sal_True ); in CopyData()
3186 pDocument->SetPattern( aDest, *GetPattern( nCol, nRow ), sal_True ); in CopyData()
3219 void ScTable::GetUpperCellString(SCCOL nCol, SCROW nRow, String& rStr) in GetUpperCellString() argument
3221 GetInputString(nCol, nRow, rStr); in GetUpperCellString()
3256 sal_uLong ScTable::GetRowOffset( SCROW nRow ) const in GetRowOffset()
3261 if (nRow == 0) in GetRowOffset()
3263 else if (nRow == 1) in GetRowOffset()
3266 n = GetTotalRowHeight(0, nRow-1); in GetRowOffset()
3284 for (SCROW nRow = 0; nRow <= MAXROW; ++nRow) in GetRowForHeight() local
3286 if (!mpHiddenRows->getRangeData(nRow, aData)) in GetRowForHeight()
3291 nRow = aData.mnRow2; in GetRowForHeight()
3295 sal_uInt32 nNew = mpRowHeights->getValue(nRow); in GetRowForHeight()
3299 return nRow < MAXROW ? nRow + 1 : MAXROW; in GetRowForHeight()