Lines Matching refs:nTab
131 sal_Bool ScViewFunc::TestFormatArea( SCCOL nCol, SCROW nRow, SCTAB nTab, sal_Bool bAttrChanged ) in TestFormatArea() argument
149 if ( bFormatValid && nTab == aFormatSource.Tab() ) in TestFormatArea()
200 void ScViewFunc::DoAutoAttributes( SCCOL nCol, SCROW nRow, SCTAB nTab, in DoAutoAttributes() argument
209 aFormatSource.Col(), aFormatSource.Row(), nTab ); in DoAutoAttributes()
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()
281 SCTAB nTab = GetViewData()->GetTabNo(); 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
445 pDoc->GetNumberFormat( nCol, nRow, nTab, nFormat ); 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()
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()
817 pDoc->ApplyPattern(nCol,nRow,nTab,*pCellAttrs); //! Undo in EnterData()
824 EnterData(nCol,nRow,nTab,aString,bRecord); in EnterData()
835 new ScUndoEnterData( pDocSh, nCol, nRow, nTab, nPos, pTabs, in EnterData()
884 SCTAB nTab = GetViewData()->GetTabNo(); in EnterDataAtCursor() local
886 EnterData( nPosX, nPosY, nTab, rString ); in EnterDataAtCursor()
901 SCTAB nTab = pData->GetTabNo(); in EnterMatrix() local
902 …ScFormulaCell aFormCell( pDoc, ScAddress(nCol,nRow,nTab), rString,formula::FormulaGrammar::GRAM_DE… in EnterMatrix()
911 ScRange aResult( nCol, nRow, nTab, in EnterMatrix()
913 sal::static_int_cast<SCROW>(nRow+nSizeY-1), nTab ); in EnterMatrix()
984 SCTAB nTab = GetViewData()->GetTabNo(); in GetSelectionPattern() local
987 aTempMark.SetMarkArea( ScRange( nCol, nRow, nTab ) ); in GetSelectionPattern()
1282 SCTAB nTab = pViewData->GetTabNo(); in ApplySelectionPattern() local
1283 aFuncMark.SetMarkArea(ScRange(nCol,nRow,nTab)); in ApplySelectionPattern()
1348 SCTAB nTab = pViewData->GetTabNo(); 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()
1478 SCTAB nTab = pViewData->GetTabNo(); in SetStyleSheetToMarked() local
1480 pUndoDoc->InitUndo( pDoc, nTab, nTab ); in SetStyleSheetToMarked()
1482 if (i != nTab && aFuncMark.GetTableSelect(i)) in SetStyleSheetToMarked()
1507 SCTAB nTab = pViewData->GetTabNo(); in SetStyleSheetToMarked() local
1512 pUndoDoc->InitUndo( pDoc, nTab, nTab ); in SetStyleSheetToMarked()
1514 if (i != nTab && aFuncMark.GetTableSelect(i)) in SetStyleSheetToMarked()
1520 ScRange aMarkRange ( nCol, nRow, nTab ); in SetStyleSheetToMarked()
1534 pViewData->GetDocShell()->PostPaintCell( nCol, nRow, nTab ); in SetStyleSheetToMarked()
1715 SCTAB nTab = GetViewData()->GetTabNo(); in DeleteMulti() local
1763 ScEditableTester aTester( pDoc, nTab, nStartCol, nStartRow, MAXCOL, MAXROW ); in DeleteMulti()
1773 pDoc->ExtendMerge( nMergeStartX, nMergeStartY, nMergeEndX, nMergeEndY, nTab ); in DeleteMulti()
1774 pDoc->ExtendOverlapped( nMergeStartX, nMergeStartY, nMergeEndX, nMergeEndY, nTab ); in DeleteMulti()
1807 pUndoDoc->InitUndo( pDoc, nTab, nTab, !bRows, bRows ); // Zeilenhoehen in DeleteMulti()
1815 pDoc->CopyToDocument( 0,nStart,nTab, MAXCOL,nEnd,nTab, IDF_ALL,sal_False,pUndoDoc ); in DeleteMulti()
1817 pDoc->CopyToDocument( static_cast<SCCOL>(nStart),0,nTab, in DeleteMulti()
1818 static_cast<SCCOL>(nEnd),MAXROW,nTab, in DeleteMulti()
1839 pDoc->DeleteRow( 0,nTab, MAXCOL,nTab, nStart, static_cast<SCSIZE>(nEnd-nStart+1) ); in DeleteMulti()
1841 …pDoc->DeleteCol( 0,nTab, MAXROW,nTab, static_cast<SCCOL>(nStart), static_cast<SCSIZE>(nEnd-nStart+… in DeleteMulti()
1852 pDoc->RemoveFlagsTab( nStartCol, nStartRow, nEndCol, nEndRow, nTab, SC_MF_HOR | SC_MF_VER ); in DeleteMulti()
1853 pDoc->ExtendMerge( nStartCol, nStartRow, nEndCol, nEndRow, nTab, sal_True ); in DeleteMulti()
1859 new ScUndoDeleteMulti( pDocSh, bRows, bNeedRefresh, nTab, pRanges, nRangeCnt, in DeleteMulti()
1866 pDocSh->PostPaint( 0,pRanges[0],nTab, MAXCOL,MAXROW,nTab, PAINT_GRID | PAINT_LEFT ); in DeleteMulti()
1868 pDocSh->PostPaint( static_cast<SCCOL>(pRanges[0]),0,nTab, in DeleteMulti()
1869 MAXCOL,MAXROW,nTab, PAINT_GRID | PAINT_TOP ); in DeleteMulti()
1959 for (SCTAB nTab=0; nTab<nTabCount; nTab++) in DeleteContents() local
1960 if (aFuncMark.GetTableSelect(nTab) && pDoc->IsTabProtected(nTab)) in DeleteContents()
1992 SCTAB nTab = aMarkRange.aStart.Tab(); in DeleteContents() local
1993 pUndoDoc->InitUndo( pDoc, nTab, nTab ); in DeleteContents()
1996 if (i != nTab && aFuncMark.GetTableSelect(i)) in DeleteContents()
2086 SCTAB nTab; in SetWidthOrHeight() local
2093 for (nTab=0; nTab<nTabCount && bAllowed; nTab++) in SetWidthOrHeight()
2094 if (pMarkData->GetTableSelect(nTab)) in SetWidthOrHeight()
2100 bAllowed = pDoc->IsBlockEditable( nTab, in SetWidthOrHeight()
2105 bAllowed = pDoc->IsBlockEditable( nTab, 0,pRanges[2*i], in SetWidthOrHeight()
2135 for (nTab=0; nTab<nTabCount; nTab++) in SetWidthOrHeight()
2136 if (pMarkData->GetTableSelect(nTab)) in SetWidthOrHeight()
2140 if ( nTab == nFirstTab ) in SetWidthOrHeight()
2141 pUndoDoc->InitUndo( pDoc, nTab, nTab, sal_True, sal_False ); in SetWidthOrHeight()
2143 pUndoDoc->AddUndoTab( nTab, nTab, sal_True, sal_False ); in SetWidthOrHeight()
2144 pDoc->CopyToDocument( static_cast<SCCOL>(nStart), 0, nTab, in SetWidthOrHeight()
2145 static_cast<SCCOL>(nEnd), MAXROW, nTab, IDF_NONE, in SetWidthOrHeight()
2150 if ( nTab == nFirstTab ) in SetWidthOrHeight()
2151 pUndoDoc->InitUndo( pDoc, nTab, nTab, sal_False, sal_True ); in SetWidthOrHeight()
2153 pUndoDoc->AddUndoTab( nTab, nTab, sal_False, sal_True ); in SetWidthOrHeight()
2154 pDoc->CopyToDocument( 0, nStart, nTab, MAXCOL, nEnd, nTab, IDF_NONE, sal_False, pUndoDoc ); in SetWidthOrHeight()
2173 for (nTab=0; nTab<nTabCount; nTab++) in SetWidthOrHeight()
2174 if (pMarkData->GetTableSelect(nTab)) in SetWidthOrHeight()
2178 pDoc->IncSizeRecalcLevel( nTab ); // nicht fuer jede Spalte einzeln in SetWidthOrHeight()
2179 pDoc->InitializeNoteCaptions( nTab ); in SetWidthOrHeight()
2197 if (pDoc->RowHidden(nRow, nTab, NULL, &nLastRow)) in SetWidthOrHeight()
2203 sal_uInt8 nOld = pDoc->GetRowFlags(nRow, nTab); in SetWidthOrHeight()
2205 pDoc->SetRowFlags(nRow, nTab, nOld & ~CR_MANUALSIZE); in SetWidthOrHeight()
2222 pDoc->SetOptimalHeight( nStartNo, nEndNo, nTab, nSizeTwips, aProv.GetDevice(), in SetWidthOrHeight()
2225 pDoc->ShowRows( nStartNo, nEndNo, nTab, sal_True ); in SetWidthOrHeight()
2234 pDoc->SetRowHeightRange( nStartNo, nEndNo, nTab, nSizeTwips ); in SetWidthOrHeight()
2235 pDoc->SetManualHeight( nStartNo, nEndNo, nTab, sal_True ); // height was set manually in SetWidthOrHeight()
2237 pDoc->ShowRows( nStartNo, nEndNo, nTab, nSizeTwips != 0 ); in SetWidthOrHeight()
2241 pDoc->ShowRows( nStartNo, nEndNo, nTab, sal_True ); in SetWidthOrHeight()
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()
2267 static_cast<SCCOL>(nEndNo), nTab, bShow ) ) in SetWidthOrHeight()
2272 if ( pDoc->UpdateOutlineRow( nStartNo, nEndNo, nTab, bShow ) ) in SetWidthOrHeight()
2276 pDoc->DecSizeRecalcLevel( nTab ); // nicht fuer jede Spalte einzeln in SetWidthOrHeight()
2292 for (nTab=0; nTab<nTabCount; nTab++) in SetWidthOrHeight()
2293 if (pMarkData->GetTableSelect(nTab)) in SetWidthOrHeight()
2294 pDoc->UpdatePageBreaks( nTab ); in SetWidthOrHeight()
2302 for (nTab=0; nTab<nTabCount; nTab++) in SetWidthOrHeight()
2303 if (pMarkData->GetTableSelect(nTab)) in SetWidthOrHeight()
2307 if (pDoc->HasAttrib( static_cast<SCCOL>(nStart),0,nTab, in SetWidthOrHeight()
2308 static_cast<SCCOL>(nEnd),MAXROW,nTab, in SetWidthOrHeight()
2313 pDocSh->PostPaint( static_cast<SCCOL>(nStart), 0, nTab, in SetWidthOrHeight()
2314 MAXCOL, MAXROW, nTab, PAINT_GRID | PAINT_TOP ); in SetWidthOrHeight()
2318 if (pDoc->HasAttrib( 0,nStart,nTab, MAXCOL,nEnd,nTab, HASATTR_MERGED | HASATTR_OVERLAPPED )) in SetWidthOrHeight()
2322 pDocSh->PostPaint( 0, nStart, nTab, MAXCOL, MAXROW, nTab, PAINT_GRID | PAINT_LEFT ); in SetWidthOrHeight()
2339 for ( nTab = 0; nTab < nTabCount; ++nTab ) in SetWidthOrHeight()
2341 if ( pMarkData->GetTableSelect( nTab ) ) in SetWidthOrHeight()
2350 aChangeRanges.Append( ScRange( nCol, 0, nTab ) ); in SetWidthOrHeight()
2372 SCTAB nTab = GetViewData()->GetTabNo(); in SetMarkedWidthOrHeight() local
2375 rMark.SetMultiMarkArea( ScRange( nCol,nRow,nTab ), sal_True ); in SetMarkedWidthOrHeight()
2404 SCTAB nTab = GetViewData()->GetTabNo(); in ModifyCellSize() local
2410 bAllowed = pDoc->IsBlockEditable( nTab, nCol,0, nCol,MAXROW, &bOnlyMatrix ); in ModifyCellSize()
2412 bAllowed = pDoc->IsBlockEditable( nTab, 0,nRow, MAXCOL,nRow, &bOnlyMatrix ); in ModifyCellSize()
2421 sal_uInt16 nWidth = pDoc->GetColWidth( nCol, nTab ); in ModifyCellSize()
2422 sal_uInt16 nHeight = pDoc->GetRowHeight( nRow, 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()
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()
2535 void ScViewFunc::ProtectSheet( SCTAB nTab, const ScTableProtection& rProtect ) in ProtectSheet() argument
2537 if (nTab == TABLEID_DOC) in ProtectSheet()
2565 void ScViewFunc::Protect( SCTAB nTab, const String& rPassword ) in Protect() argument
2573 if ( nTab == TABLEID_DOC || rMark.GetSelectCount() <= 1 ) in Protect()
2574 aFunc.Protect( nTab, rPassword, sal_False ); in Protect()
2597 sal_Bool ScViewFunc::Unprotect( SCTAB nTab, const String& rPassword ) in Unprotect() argument
2606 if ( nTab == TABLEID_DOC || rMark.GetSelectCount() <= 1 ) in Unprotect()
2607 bChanged = aFunc.Unprotect( nTab, rPassword, sal_False ); in Unprotect()
2743 SCTAB nTab = GetViewData()->GetTabNo(); in ChangeNumFmtDecimals() local
2746 pDoc->GetNumberFormat( nCol, nRow, nTab, nOldFormat ); in ChangeNumFmtDecimals()
2779 double nVal = pDoc->GetValue( ScAddress( nCol, nRow, nTab ) ); in ChangeNumFmtDecimals()
2862 SCTAB nTab = pViewData->GetTabNo(); in ChangeIndent() local
2863 aWorkMark.SetMultiMarkArea( ScRange(nCol,nRow,nTab) ); in ChangeIndent()
2888 SCTAB nTab = GetViewData()->GetTabNo(); in InsertName() local
2894 nTab), nType ); in InsertName()
2957 SCTAB nTab = GetViewData()->GetTabNo(); in GetCreateNameFlags() local
2967 if (!pDoc->HasStringData( i,nStartRow,nTab )) in GetCreateNameFlags()
2975 if (!pDoc->HasStringData( i,nEndRow,nTab )) in GetCreateNameFlags()
2986 if (!pDoc->HasStringData( nStartCol,j,nTab )) in GetCreateNameFlags()
2994 if (!pDoc->HasStringData( nEndCol,j,nTab )) in GetCreateNameFlags()