Lines Matching refs:nCol
295 for (SCCOL nCol = MAXCOL; nCol > nStartCol; nCol--) in InsertCol() local
296 aCol[nCol].SwapCol(aCol[nCol-1]); in InsertCol()
354 SCCOL nCol = *it; in DeleteCol() local
356 maColManualBreaks.insert( static_cast<SCCOL>( nCol - nSize)); in DeleteCol()
371 for (SCCOL nCol = nStartCol; nCol < MAXCOL; nCol++) in DeleteCol() local
372 aCol[nCol].SwapCol(aCol[nCol+1]); in DeleteCol()
562 for (SCCOL nCol=nCol1; nCol<=nCol2; nCol++) in TransposeClip() local
575 …ScAddress aDestPos( static_cast<SCCOL>(nRow-nRow1), static_cast<SCROW>(nCol-nCol1), pTransClip->nT… in TransposeClip()
577 aRef.nCol = nCol; in TransposeClip()
587 … pTransClip->PutCell( static_cast<SCCOL>(nRow-nRow1), static_cast<SCROW>(nCol-nCol1), pNew ); in TransposeClip()
592 ScColumnIterator aIter( &aCol[nCol], nRow1, nRow2 ); in TransposeClip()
595 …ScAddress aDestPos( static_cast<SCCOL>(nRow-nRow1), static_cast<SCROW>(nCol-nCol1), pTransClip->nT… in TransposeClip()
599 pNew = aCol[nCol].CreateRefCell( pDestDoc, aDestPos, aIter.GetIndex(), nFlags ); 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()
628 ScAttrIterator* pAttrIter = aCol[nCol].CreateAttrIterator( nRow1, nRow2 ); in TransposeClip()
640 …TransClip->SetPattern( static_cast<SCCOL>(nRow-nRow1), static_cast<SCROW>(nCol-nCol1), *pPattern, … in TransposeClip()
670 static_cast<SCsROW>(MAXROW+1 - (nCol-nCol1))))); in TransposeClip()
683 static_cast<SCROW>(nCol-nCol1), aNewPattern, sal_True); 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()
1047 return aCol[nCol].SetString( 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()
1071 for ( sal_uInt16 nCol = nStartCol; nCol <= nEndCol; nCol++ ) in FillDPCache() local
1072 if( ValidCol( nCol ) ) in FillDPCache()
1073 aCol[nCol].FillDPCache( pCache, nCol - nStartCol, nStartRow, nEndRow ); in FillDPCache()
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() argument
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() argument
1161 if (ValidColRow( nCol, nRow )) in GetCell()
1162 return aCol[nCol].GetCell( nRow ); in GetCell()
1174 SCCOL nCol = rCol; in GetFirstDataPos() local
1175 while (nCol <= MAXCOL && rRow > 0) in GetFirstDataPos()
1177 if (!aCol[nCol].IsEmptyData()) in GetFirstDataPos()
1178 rRow = ::std::min( rRow, aCol[nCol].GetFirstDataPos()); in GetFirstDataPos()
1179 ++nCol; in GetFirstDataPos()
1189 SCCOL nCol = rCol; in GetLastDataPos() local
1190 while (nCol >= 0 && rRow < MAXROW) in GetLastDataPos()
1191 rRow = ::std::max( rRow, aCol[nCol--].GetLastDataPos()); in GetLastDataPos()
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()
1226 for ( SCCOL nCol=nStartCol; nCol<=nEndCol; nCol++ ) in HasStringCells() local
1227 if (aCol[nCol].HasStringCells(nStartRow, nEndRow)) in HasStringCells()
1345 for (SCCOL nCol=nStartCol; nCol<=nEndCol; nCol++) in ResetChanged() local
1346 aCol[nCol].ResetChanged(nStartRow, nEndRow); in ResetChanged()
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() argument
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() argument
1371 if (ValidColRow(nCol,nRow)) in GetPattern()
1372 return aCol[nCol].GetPattern( nRow ); in GetPattern()
1381 const ScPatternAttr* ScTable::GetMostUsedPattern( SCCOL nCol, SCROW nStartRow, SCROW nEndRow ) const in GetMostUsedPattern() argument
1383 if ( ValidColRow( nCol, nStartRow ) && ValidRow( nEndRow ) && (nStartRow <= nEndRow) ) in GetMostUsedPattern()
1384 return aCol[nCol].GetMostUsedPattern( nStartRow, nEndRow ); in GetMostUsedPattern()
1458 SCCOL nCol, SCROW nAttrRow1, SCROW nAttrRow2, SCSIZE nArrY, in FillMaxRot() argument
1467 if ( nCol+1 < nX1 ) // column to the left in FillMaxRot()
1469 else if ( nCol > nX2+1 ) // column to the right in FillMaxRot()
1475 if ( nCol > nX2+1 ) in FillMaxRot()
1495 if ( nCol > nX2+1 ) in FillMaxRot()
1499 SCCOL nTouchedCol = nCol; in FillMaxRot()
1516 pRowInfo[nArrY].nRotMaxCol = nCol; in FillMaxRot()
1539 for (SCCOL nCol=0; nCol<=MAXCOL; nCol++) in FindMaxRotCol() local
1541 if (!ColHidden(nCol)) in FindMaxRotCol()
1544 ScDocAttrIterator aIter( pDocument, nTab, nCol, nY1, nCol, nY2 ); in FindMaxRotCol()
1576 nCol, nAttrRow1, nAttrRow2, in FindMaxRotCol()
1587 nCol, nAttrRow1, nAttrRow2, in FindMaxRotCol()
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()
1948 for ( SCCOL nCol = rRange.aStart.Col(); nCol <= nEndCol; nCol++ ) in ApplyPatternIfNumberformatIncompatible() local
1950 aCol[nCol].ApplyPatternIfNumberformatIncompatible( rRange, rPattern, nNewType ); in ApplyPatternIfNumberformatIncompatible()
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() argument
1995 if (ValidColRow(nCol, nRow)) in GetStyle()
1996 return aCol[nCol].GetStyle(nRow); in GetStyle()
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()
2159 void ScTable::SetColWidth( SCCOL nCol, sal_uInt16 nNewWidth ) in SetColWidth() argument
2161 if (VALIDCOL(nCol) && pColWidth) in SetColWidth()
2169 if ( nNewWidth != pColWidth[nCol] ) in SetColWidth()
2175 pDrawLayer->WidthChanged( nTab, nCol, ((long) nNewWidth) - (long) pColWidth[nCol] ); in SetColWidth()
2176 pColWidth[nCol] = nNewWidth; in SetColWidth()
2355 void ScTable::SetColWidthOnly( SCCOL nCol, sal_uInt16 nNewWidth ) in SetColWidthOnly() argument
2357 if (!VALIDCOL(nCol) || !pColWidth) in SetColWidthOnly()
2363 pColWidth[nCol] = nNewWidth; in SetColWidthOnly()
2381 sal_uInt16 ScTable::GetColWidth( SCCOL nCol ) const in GetColWidth()
2383 DBG_ASSERT(VALIDCOL(nCol),"Falsche Spaltennummer"); in GetColWidth()
2385 if (VALIDCOL(nCol) && pColFlags && pColWidth) in GetColWidth()
2387 if (ColHidden(nCol)) in GetColWidth()
2390 return pColWidth[nCol]; in GetColWidth()
2397 sal_uInt16 ScTable::GetOriginalWidth( SCCOL nCol ) const // immer die eingestellte in GetOriginalWidth()
2399 DBG_ASSERT(VALIDCOL(nCol),"Falsche Spaltennummer"); in GetOriginalWidth()
2401 if (VALIDCOL(nCol) && pColWidth) in GetOriginalWidth()
2402 return pColWidth[nCol]; in GetOriginalWidth()
2594 void ScTable::ShowCol(SCCOL nCol, bool bShow) in ShowCol() argument
2596 if (VALIDCOL(nCol)) in ShowCol()
2598 bool bWasVis = !ColHidden(nCol); in ShowCol()
2607 pDrawLayer->WidthChanged( nTab, nCol, (long) pColWidth[nCol] ); in ShowCol()
2609 pDrawLayer->WidthChanged( nTab, nCol, -(long) pColWidth[nCol] ); in ShowCol()
2612 SetColHidden(nCol, nCol, !bShow); in ShowCol()
2617 pCharts->SetRangeDirty(ScRange( nCol, 0, nTab, nCol, MAXROW, nTab )); in ShowCol()
2852 void ScTable::SetColFlags( SCCOL nCol, sal_uInt8 nNewFlags ) in SetColFlags() argument
2854 if (VALIDCOL(nCol) && pColFlags) in SetColFlags()
2855 pColFlags[nCol] = nNewFlags; in SetColFlags()
2885 sal_uInt8 ScTable::GetColFlags( SCCOL nCol ) const in GetColFlags()
2887 if (VALIDCOL(nCol) && pColFlags) in GetColFlags()
2888 return pColFlags[nCol]; in GetColFlags()
2940 for (SCCOL nCol = 1; nCol <= MAXCOL; nCol++) in GetLastChangedCol() local
2941 if ((pColFlags[nCol] & CR_ALL) || (pColWidth[nCol] != STD_COL_WIDTH)) in GetLastChangedCol()
2942 nLastFound = nCol; in GetLastChangedCol()
3060 SCCOL nCol; in DoAutoOutline() local
3079 for (nCol=nStartCol; nCol<=nEndCol; nCol++) in DoAutoOutline()
3080 if (!aCol[nCol].IsEmptyData()) in DoAutoOutline()
3081 aCol[nCol].FindUsed( nStartRow, nEndRow, pUsed ); in DoAutoOutline()
3088 for (nCol=nStartCol; nCol<=nEndCol && !bFound; nCol++) in DoAutoOutline()
3089 if (!aCol[nCol].IsEmptyData()) in DoAutoOutline()
3091 pCell = aCol[nCol].GetCell( nRow ); in DoAutoOutline()
3095 if ( aRef.aStart.Col() == nCol && aRef.aEnd.Col() == nCol && in DoAutoOutline()
3116 for (nCol=nStartCol; nCol<=nEndCol; nCol++) in DoAutoOutline()
3118 if (!aCol[nCol].IsEmptyData()) in DoAutoOutline()
3121 ScColumnIterator aIter( &aCol[nCol], nStartRow, nEndRow ); in DoAutoOutline()
3128 DiffSign( aRef.aStart.Col(), nCol ) == in DoAutoOutline()
3129 DiffSign( aRef.aEnd.Col(), nCol ) ) in DoAutoOutline()
3161 for (SCCOL nCol=nStartCol; nCol<=nEndCol; nCol++) in CopyData() local
3163 aSrc.SetCol( nCol ); 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()
3306 sal_uLong ScTable::GetColOffset( SCCOL nCol ) const in GetColOffset()
3312 for( i = 0; i < nCol; i++ ) in GetColOffset()