Lines Matching refs:nCol
131 sal_Bool ScViewFunc::TestFormatArea( SCCOL nCol, SCROW nRow, SCTAB nTab, sal_Bool bAttrChanged ) in TestFormatArea() argument
154 if ( nCol >= aFormatArea.aStart.Col() && nCol <= aFormatArea.aEnd.Col() ) in TestFormatArea()
159 if ( nCol+1 == aFormatArea.aStart.Col() ) in TestFormatArea()
162 aNewRange.aStart.SetCol( nCol ); in TestFormatArea()
165 if ( nCol == aFormatArea.aEnd.Col()+1 ) in TestFormatArea()
168 aNewRange.aEnd.SetCol( nCol ); in TestFormatArea()
171 if ( nCol >= aFormatArea.aStart.Col() && nCol <= aFormatArea.aEnd.Col() ) in TestFormatArea()
200 void ScViewFunc::DoAutoAttributes( SCCOL nCol, SCROW nRow, SCTAB nTab, in DoAutoAttributes() argument
212 const ScPatternAttr* pDocOld = pDoc->GetPattern( nCol, nRow, nTab ); in DoAutoAttributes()
221 pDoc->ApplyStyle( nCol, nRow, nTab, *pSrcStyle ); in DoAutoAttributes()
222 pDoc->ApplyPattern( nCol, nRow, nTab, *pSource ); in DoAutoAttributes()
227 const ScPatternAttr* pNewPattern = pDoc->GetPattern( nCol, nRow, nTab ); in DoAutoAttributes()
230 new ScUndoCursorAttr( pDocSh, nCol, nRow, nTab, in DoAutoAttributes()
239 aFormatSource.Set( nCol, nRow, nTab ); // dann als neue Quelle in DoAutoAttributes()
246 sal_uInt16 ScViewFunc::GetOptimalColWidth( SCCOL nCol, SCTAB nTab, sal_Bool bFormula ) in GetOptimalColWidth() argument
265 sal_uInt16 nTwips = pDoc->GetOptimalColWidth( nCol, nTab, aProv.GetDevice(), in GetOptimalColWidth()
279 SCCOL nCol = GetViewData()->GetCurX(); in SelectionEditable() local
282 bRet = pDoc->IsBlockEditable( nTab, nCol, nRow, nCol, nRow, in SelectionEditable()
342 void ScViewFunc::EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab, const String& rString, in EnterData() argument
356 ScEditableTester aTester( pDoc, nCol,nRow, nCol,nRow, rMark ); in EnterData()
381 pDoc->GetCell( nCol, nRow, i, pDocCell ); in EnterData()
388 sal_uInt8 nDocScript = pDoc->GetScriptType( nCol, nRow, i, pDocCell ); in EnterData()
400 const ScPatternAttr* pPattern = pDoc->GetPattern(nCol, nRow, i); in EnterData()
445 pDoc->GetNumberFormat( nCol, nRow, nTab, nFormat ); in EnterData()
462 ScAddress aPos( nCol, nRow, i ); in EnterData()
578 nCol, nRow, i, ATTR_VALUE_FORMAT ))->GetValue(); in EnterData()
620 if (pDoc->SetString( nCol, nRow, i, rString )) in EnterData()
627 if ( pDoc->GetScriptType( nCol, nRow, i ) != nOldScript ) in EnterData()
632 if (bEditDeleted || pDoc->HasAttrib( nCol, nRow, nTab, nCol, nRow, nTab, HASATTR_NEEDHEIGHT )) in EnterData()
635 sal_Bool bAutoFormat = TestFormatArea(nCol, nRow, nTab, bNumFmtChanged); in EnterData()
637 DoAutoAttributes(nCol, nRow, nTab, bNumFmtChanged, bRecord); in EnterData()
642 new ScUndoEnterData( pDocSh, nCol, nRow, nTab, nUndoPos, pTabs, in EnterData()
649 pDocSh->PostPaintCell( nCol, nRow, i ); in EnterData()
664 aChangeRanges.Append( ScRange( nCol, nRow, i ) ); in EnterData()
675 PaintArea( nCol, nRow, nCol, nRow ); // da steht evtl. noch die Edit-Engine in EnterData()
681 void ScViewFunc::EnterValue( SCCOL nCol, SCROW nRow, SCTAB nTab, const double& rValue ) in EnterValue() argument
691 ScEditableTester aTester( pDoc, nTab, nCol,nRow, nCol,nRow ); in EnterValue()
694 ScAddress aPos( nCol, nRow, nTab ); in EnterValue()
698 nCol,nRow,nTab, nCol,nRow,nTab, HASATTR_NEEDHEIGHT ); in EnterValue()
703 pDoc->SetValue( nCol, nRow, nTab, rValue ); in EnterValue()
726 void ScViewFunc::EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab, const EditTextObject* pData, in EnterData() argument
737 ScEditableTester aTester( pDoc, nTab, nCol,nRow, nCol,nRow ); in EnterData()
749 const ScPatternAttr* pOldPattern = pDoc->GetPattern( nCol, nRow, nTab ); in EnterData()
802 pDoc->GetCell( nCol, nRow, i, pDocCell ); in EnterData()
817 pDoc->ApplyPattern(nCol,nRow,nTab,*pCellAttrs); //! Undo in EnterData()
824 EnterData(nCol,nRow,nTab,aString,bRecord); in EnterData()
830 pDoc->PutCell( nCol, nRow, i, new ScEditCell( pData, pDoc, NULL ) ); in EnterData()
835 new ScUndoEnterData( pDocSh, nCol, nRow, nTab, nPos, pTabs, in EnterData()
846 pDocSh->PostPaintCell( nCol, nRow, i ); in EnterData()
861 aChangeRanges.Append( ScRange( nCol, nRow, i ) ); in EnterData()
876 PaintArea( nCol, nRow, nCol, nRow ); // da steht evtl. noch die Edit-Engine in EnterData()
899 SCCOL nCol = pData->GetCurX(); in EnterMatrix() local
902 …ScFormulaCell aFormCell( pDoc, ScAddress(nCol,nRow,nTab), rString,formula::FormulaGrammar::GRAM_DE… in EnterMatrix()
908 nCol+nSizeX-1 <= sal::static_int_cast<SCSIZE>(MAXCOL) && in EnterMatrix()
911 ScRange aResult( nCol, nRow, nTab, in EnterMatrix()
912 sal::static_int_cast<SCCOL>(nCol+nSizeX-1), in EnterMatrix()
982 SCCOL nCol = GetViewData()->GetCurX(); in GetSelectionPattern() local
987 aTempMark.SetMarkArea( ScRange( nCol, nRow, nTab ) ); in GetSelectionPattern()
1280 SCCOL nCol = pViewData->GetCurX(); in ApplySelectionPattern() local
1283 aFuncMark.SetMarkArea(ScRange(nCol,nRow,nTab)); in ApplySelectionPattern()
1346 SCCOL nCol = pViewData->GetCurX(); in ApplySelectionPattern() local
1349 aChangeRanges.Append( ScRange( nCol, nRow, nTab ) ); in ApplySelectionPattern()
1350 ScPatternAttr* pOldPat = new ScPatternAttr(*pDoc->GetPattern( nCol, nRow, nTab )); in ApplySelectionPattern()
1352 pDoc->ApplyPattern( nCol, nRow, nTab, rAttr ); in ApplySelectionPattern()
1354 const ScPatternAttr* pNewPat = pDoc->GetPattern( nCol, nRow, nTab ); in ApplySelectionPattern()
1360 nCol, nRow, nTab, in ApplySelectionPattern()
1366 pDocSh->PostPaint( nCol,nRow,nTab, nCol,nRow,nTab, PAINT_GRID, nExtFlags | SC_PF_TESTMERGE ); in ApplySelectionPattern()
1505 SCCOL nCol = pViewData->GetCurX(); in SetStyleSheetToMarked() local
1517 ScRange aCopyRange( nCol, nRow, 0, nCol, nRow, nTabCount-1 ); in SetStyleSheetToMarked()
1520 ScRange aMarkRange ( nCol, nRow, nTab ); in SetStyleSheetToMarked()
1531 pDoc->ApplyStyle( nCol, nRow, i, (ScStyleSheet&)*pStyleSheet ); in SetStyleSheetToMarked()
1534 pViewData->GetDocShell()->PostPaintCell( nCol, nRow, nTab ); in SetStyleSheetToMarked()
2246 for (SCCOL nCol=static_cast<SCCOL>(nStartNo); nCol<=static_cast<SCCOL>(nEndNo); nCol++) in SetWidthOrHeight() local
2248 if ( eMode != SC_SIZE_VISOPT || !pDoc->ColHidden(nCol, nTab) ) in SetWidthOrHeight()
2253 nThisSize = nSizeTwips + GetOptimalColWidth( nCol, nTab, bFormula ); in SetWidthOrHeight()
2255 pDoc->SetColWidth( nCol, nTab, nThisSize ); in SetWidthOrHeight()
2257 pDoc->ShowCol( nCol, nTab, bShow ); in SetWidthOrHeight()
2348 for ( SCCOL nCol = nStartCol; nCol <= nEndCol; ++nCol ) in SetWidthOrHeight() local
2350 aChangeRanges.Append( ScRange( nCol, 0, nTab ) ); in SetWidthOrHeight()
2370 SCCOL nCol = GetViewData()->GetCurX(); in SetMarkedWidthOrHeight() local
2375 rMark.SetMultiMarkArea( ScRange( nCol,nRow,nTab ), sal_True ); in SetMarkedWidthOrHeight()
2402 SCCOL nCol = GetViewData()->GetCurX(); in ModifyCellSize() local
2410 bAllowed = pDoc->IsBlockEditable( nTab, nCol,0, nCol,MAXROW, &bOnlyMatrix ); in ModifyCellSize()
2421 sal_uInt16 nWidth = pDoc->GetColWidth( nCol, nTab ); in ModifyCellSize()
2436 const ScPatternAttr* pPattern = pDoc->GetPattern( nCol, nRow, nTab ); in ModifyCellSize()
2464 long nPixel = pDoc->GetNeededSize( nCol, nRow, nTab, aProv.GetDevice(), in ModifyCellSize()
2482 nRange[0] = nRange[1] = nCol; in ModifyCellSize()
2489 const ScPatternAttr* pPattern = pDoc->GetPattern( nCol, nRow, nTab ); in ModifyCellSize()
2524 if ( pDoc->HasAttrib( nCol, nRow, nTab, nCol, nRow, nTab, HASATTR_NEEDHEIGHT ) ) in ModifyCellSize()
2741 SCCOL nCol = GetViewData()->GetCurX(); in ChangeNumFmtDecimals() local
2746 pDoc->GetNumberFormat( nCol, nRow, nTab, nOldFormat ); in ChangeNumFmtDecimals()
2779 double nVal = pDoc->GetValue( ScAddress( nCol, nRow, nTab ) ); in ChangeNumFmtDecimals()
2860 SCCOL nCol = pViewData->GetCurX(); in ChangeIndent() local
2863 aWorkMark.SetMultiMarkArea( ScRange(nCol,nRow,nTab) ); in ChangeIndent()