Lines Matching refs:nTab

128 	for (SCTAB nTab=0; nTab<nTabCount; nTab++)  in AdjustBlockHeight()  local
130 if (pMarkData->GetTableSelect(nTab)) in AdjustBlockHeight()
139 if (pDoc->SetOptimalHeight( nStartNo, nEndNo, nTab, 0, aProv.GetDevice(), in AdjustBlockHeight()
148 pDocSh->PostPaint( 0, nPaintY, nTab, MAXCOL, MAXROW, nTab, in AdjustBlockHeight()
167 SCTAB nTab = GetViewData()->GetTabNo(); in AdjustRowHeight() local
174 nOldPixel = (sal_uInt16) (pDoc->GetRowHeight(nStartRow,nTab) * nPPTY); in AdjustRowHeight()
183 sal_Bool bChanged = pDoc->SetOptimalHeight( nStartRow, nEndRow, nTab, 0, aProv.GetDevice(), in AdjustRowHeight()
188 sal_uInt16 nNewPixel = (sal_uInt16) (pDoc->GetRowHeight(nStartRow,nTab) * nPPTY); in AdjustRowHeight()
194 pDocSh->PostPaint( 0, nStartRow, nTab, MAXCOL, MAXROW, nTab, in AdjustRowHeight()
212 SCTAB nTab, ScDirection eDir, SCCOLROW& nExtend ) in lcl_IsAutoSumData() argument
215 pDoc->GetCell( nCol, nRow, nTab, pCell ); in lcl_IsAutoSumData()
224 ScAddress( nCol, nRow, nTab ), eDir ) ) in lcl_IsAutoSumData()
239 SCTAB nTab, ScDirection eDir, SCCOLROW& nExtend ) in lcl_SeekAutoSumData() argument
260 pDoc, nCol, nRow, nTab, eDir, nExtend )) != ScAutoSumNone ) in lcl_SeekAutoSumData()
272 SCTAB nTab, SCCOLROW& nExtend, SCROW nMinRow ) in lcl_FindNextSumEntryInColumn() argument
276 …while ( ( eSkip = lcl_IsAutoSumData( pDoc, nCol, nRow, nTab, DIR_TOP, nExtend ) ) == ScAutoSumData… in lcl_FindNextSumEntryInColumn()
291 SCTAB nTab, SCCOLROW& nExtend, SCROW nMinCol ) in lcl_FindNextSumEntryInRow() argument
295 …while ( ( eSkip = lcl_IsAutoSumData( pDoc, nCol, nRow, nTab, DIR_LEFT, nExtend ) ) == ScAutoSumDat… in lcl_FindNextSumEntryInRow()
318 const SCTAB nTab = aEnd.Tab(); in lcl_GetAutoSumForColumnRange() local
323 const ScAutoSum eSum = lcl_IsAutoSumData( pDoc, nCol, nEndRow, nTab, DIR_TOP, nExtend /*out*/ ); in lcl_GetAutoSumForColumnRange()
330 rRangeList.Append( ScRange( nCol, nStartRow, nTab, nCol, nEndRow, nTab ) ); in lcl_GetAutoSumForColumnRange()
332 …if ( ( bContinue = lcl_FindNextSumEntryInColumn( pDoc, nCol, nEndRow /*inout*/, nTab, nExtend /*ou… in lcl_GetAutoSumForColumnRange()
341 … lcl_IsAutoSumData( pDoc, nCol, nStartRow-1, nTab, DIR_TOP, nExtend /*out*/ ) != ScAutoSumSum ) in lcl_GetAutoSumForColumnRange()
345 rRangeList.Append( ScRange( nCol, nStartRow, nTab, nCol, nEndRow, nTab ) ); in lcl_GetAutoSumForColumnRange()
362 const SCTAB nTab = aEnd.Tab(); in lcl_GetAutoSumForRowRange() local
367 … const ScAutoSum eSum = lcl_IsAutoSumData( pDoc, nEndCol, nRow, nTab, DIR_LEFT, nExtend /*out*/ ); in lcl_GetAutoSumForRowRange()
374 rRangeList.Append( ScRange( nStartCol, nRow, nTab, nEndCol, nRow, nTab ) ); in lcl_GetAutoSumForRowRange()
376 …if ( ( bContinue = lcl_FindNextSumEntryInRow( pDoc, nEndCol /*inout*/, nRow, nTab, nExtend /*out*/… in lcl_GetAutoSumForRowRange()
385 … lcl_IsAutoSumData( pDoc, nStartCol-1, nRow, nTab, DIR_LEFT, nExtend /*out*/ ) != ScAutoSumSum ) in lcl_GetAutoSumForRowRange()
389 rRangeList.Append( ScRange( nStartCol, nRow, nTab, nEndCol, nRow, nTab ) ); in lcl_GetAutoSumForRowRange()
400 SCTAB nTab = GetViewData()->GetTabNo(); in GetAutoSumArea() local
418 && ((eSum = lcl_IsAutoSumData( pDoc, nCol, nRow-1, nTab, in GetAutoSumArea()
420 && ((eSum = lcl_IsAutoSumData( pDoc, nCol, nRow-1, nTab, in GetAutoSumArea()
427 else if ( nCol != 0 && (eSum = lcl_IsAutoSumData( pDoc, nCol-1, nRow, nTab, in GetAutoSumArea()
433 …else if ( (eSum = lcl_SeekAutoSumData( pDoc, nCol, nSeekRow, nTab, DIR_TOP, nExtend /*out*/ )) != … in GetAutoSumArea()
435 …else if (( eSum = lcl_SeekAutoSumData( pDoc, nSeekCol, nRow, nTab, DIR_LEFT, nExtend /*out*/ )) !=… in GetAutoSumArea()
464 nStartRow-1, nTab, DIR_TOP, nExtend /*out*/ ) == eSum ) in GetAutoSumArea()
470 nRow, nTab, DIR_LEFT, nExtend /*out*/ ) == eSum ) in GetAutoSumArea()
475 ScRange( nStartCol, nStartRow, nTab, nEndCol, nEndRow, nTab ) ); in GetAutoSumArea()
481 … bContinue = lcl_FindNextSumEntryInColumn( pDoc, nCol, nEndRow /*inout*/, nTab, nExtend /*out*/, 0… in GetAutoSumArea()
489 …( ( bContinue = lcl_FindNextSumEntryInRow( pDoc, nEndCol /*inout*/, nRow, nTab, nExtend /*out*/, 0… in GetAutoSumArea()
514 const SCTAB nTab = rRange.aStart.Tab(); in AutoSum() local
527 if ( lcl_IsAutoSumData( pDoc, nCol, nRow, nTab, DIR_TOP, nExtend ) != ScAutoSumNone ) in AutoSum()
550 if ( lcl_IsAutoSumData( pDoc, nCol, nRow, nTab, DIR_LEFT, nExtend ) != ScAutoSumNone ) in AutoSum()
567 const bool bEndRowEmpty = pDoc->IsBlockEmpty( nTab, nStartCol, nEndRow, nEndCol, nEndRow ); in AutoSum()
568 const bool bEndColEmpty = pDoc->IsBlockEmpty( nTab, nEndCol, nStartRow, nEndCol, nEndRow ); in AutoSum()
579 while ( !pDoc->IsBlockEmpty( nTab, nStartCol, nInsRow, nEndCol, nInsRow ) ) in AutoSum()
605 while ( !pDoc->IsBlockEmpty( nTab, nInsCol, nStartRow, nInsCol, nEndRow ) ) in AutoSum()
652 if ( !pDoc->IsBlockEmpty( nTab, nCol, nStartRow, nCol, nSumEndRow ) ) in AutoSum()
655 const ScRange aRange( nCol, nStartRow, nTab, nCol, nSumEndRow, nTab ); in AutoSum()
659 EnterData( nCol, nInsRow, nTab, aFormula ); in AutoSum()
685 if ( !pDoc->IsBlockEmpty( nTab, nStartCol, nRow, nSumEndCol, nRow ) ) in AutoSum()
688 const ScRange aRange( nStartCol, nRow, nTab, nSumEndCol, nRow, nTab ); in AutoSum()
692 EnterData( nInsCol, nRow, nTab, aFormula ); in AutoSum()
699 const ScRange aMarkRange( nStartCol, nStartRow, nTab, nMarkEndCol, nMarkEndRow, nTab ); in AutoSum()
752 SCTAB nTab = GetViewData()->GetTabNo(); in EnterBlock() local
763 EnterData( nCol, nRow, nTab, pData ); in EnterBlock()
765 EnterData( nCol, nRow, nTab, rString ); in EnterBlock()
774 const ScPatternAttr* pOldPattern = pDoc->GetPattern( nCol, nRow, nTab ); in EnterBlock()
790 ScAddress aPos( nCol, nRow, nTab ); in EnterBlock()
793 pInsDoc->ResetClip( pDoc, nTab ); in EnterBlock()
799 pInsDoc->PutCell( nCol, nRow, nTab, pFCell ); in EnterBlock()
802 pInsDoc->PutCell( nCol, nRow, nTab, new ScEditCell( pData, pDoc, NULL ) ); in EnterBlock()
804 pInsDoc->SetString( nCol, nRow, nTab, aNewStr ); in EnterBlock()
812 nCol, nRow, nTab, ATTR_VALUE_FORMAT ); in EnterBlock()
871 SCTAB nTab = GetViewData()->GetTabNo(); in InsertPageBreak() local
876 aCursor = ScAddress( GetViewData()->GetCurX(), GetViewData()->GetCurY(), nTab ); in InsertPageBreak()
891 SCTAB nTab = GetViewData()->GetTabNo(); in DeletePageBreak() local
896 aCursor = ScAddress( GetViewData()->GetCurX(), GetViewData()->GetCurY(), nTab ); in DeletePageBreak()
911 SCTAB nTab = GetViewData()->GetTabNo(); in RemoveManualBreaks() local
917 pUndoDoc->InitUndo( pDoc, nTab, nTab, sal_True, sal_True ); in RemoveManualBreaks()
918 pDoc->CopyToDocument( 0,0,nTab, MAXCOL,MAXROW,nTab, IDF_NONE, sal_False, pUndoDoc ); in RemoveManualBreaks()
920 new ScUndoRemoveBreaks( pDocSh, nTab, pUndoDoc ) ); in RemoveManualBreaks()
923 pDoc->RemoveManualBreaks(nTab); in RemoveManualBreaks()
924 pDoc->UpdatePageBreaks(nTab); in RemoveManualBreaks()
928 pDocSh->PostPaint( 0,0,nTab, MAXCOL,MAXROW,nTab, PAINT_GRID ); in RemoveManualBreaks()
936 SCTAB nTab = GetViewData()->GetTabNo(); in SetPrintZoom() local
937 pDocSh->SetPrintZoom( nTab, nScale, nPages ); in SetPrintZoom()
960 SCTAB nTab; in SetPrintRanges() local
967 for (nTab=0; nTab<nTabCount; nTab++) in SetPrintRanges()
968 if (rMark.GetTableSelect(nTab)) in SetPrintRanges()
970 ScRange aRange( 0,0,nTab ); in SetPrintRanges()
975 pDoc->ClearPrintRanges( nTab ); in SetPrintRanges()
979 pDoc->SetPrintEntireSheet( nTab ); in SetPrintRanges()
991 pDoc->AddPrintRange( nTab, aRange ); in SetPrintRanges()
999 pDoc->AddPrintRange( nTab, aRange ); in SetPrintRanges()
1014 pDoc->AddPrintRange( nTab, *pR ); in SetPrintRanges()
1025 pDoc->SetRepeatColRange( nTab, NULL ); in SetPrintRanges()
1028 pDoc->SetRepeatColRange( nTab, &aRange ); in SetPrintRanges()
1036 pDoc->SetRepeatRowRange( nTab, NULL ); in SetPrintRanges()
1039 pDoc->SetRepeatRowRange( nTab, &aRange ); in SetPrintRanges()
1054 for (nTab=0; nTab<nTabCount; nTab++) in SetPrintRanges()
1055 if (rMark.GetTableSelect(nTab)) in SetPrintRanges()
1056 ScPrintFunc( pDocSh, pDocSh->GetPrinter(), nTab ).UpdatePages(); in SetPrintRanges()
1269 SCTAB nTab = GetViewData()->GetTabNo(); in FillAuto() local
1270 ScRange aRange( nStartCol,nStartRow,nTab, nEndCol,nEndRow,nTab ); in FillAuto()
1337 SCTAB nTab = GetViewData()->GetTabNo(); in FillTab() local
1348 aMarkRange = ScRange( GetViewData()->GetCurX(), GetViewData()->GetCurY(), nTab ); in FillTab()
1355 pUndoDoc->InitUndo( pDoc, nTab, nTab ); in FillTab()
1360 if (i != nTab && rMark.GetTableSelect(i)) in FillTab()
1371 pDoc->FillTabMarked( nTab, rMark, nFlags, nFunction, bSkipEmpty, bAsLink ); in FillTab()
1374 aMarkRange.aStart.SetTab( nTab ); in FillTab()
1375 aMarkRange.aEnd.SetTab( nTab ); in FillTab()
1384 aMarkRange.aStart.Col(), aMarkRange.aStart.Row(), nTab, in FillTab()
1385 aMarkRange.aEnd.Col(), aMarkRange.aEnd.Row(), nTab, in FillTab()
1386 pUndoDoc, bMulti, nTab, nFlags, nFunction, bSkipEmpty, bAsLink ) ); in FillTab()
1414 SCTAB nTab = GetViewData()->GetCurPos().Tab(); in FillCrossDblClick() local
1423 if ( pDoc->IsBlockEmpty( nTab, nStartX, nStartY, nEndX, nEndY ) ) in FillCrossDblClick()
1433 if ( pDoc->HasData( nMovX, nStartY, nTab ) && in FillCrossDblClick()
1434 pDoc->HasData( nMovX, nStartY + 1, nTab ) ) in FillCrossDblClick()
1436 pDoc->FindAreaPos( nMovX, nMovY, nTab, 0, 1 ); in FillCrossDblClick()
1452 if ( pDoc->HasData( nMovX, nStartY, nTab ) && in FillCrossDblClick()
1453 pDoc->HasData( nMovX, nStartY + 1, nTab ) ) in FillCrossDblClick()
1455 pDoc->FindAreaPos( nMovX, nMovY, nTab, 0, 1 ); in FillCrossDblClick()
1630 SCTAB nTab = GetViewData()->GetTabNo(); in SearchAndReplace() local
1636 SCTAB nOldTab = nTab; in SearchAndReplace()
1709 if ( nCol == 0 && nRow == 0 && nTab == nStartTab && !pSearchItem->GetBackward() ) in SearchAndReplace()
1716 if (pDoc->SearchAndReplace( *pSearchItem, nCol, nRow, nTab, rMark, aUndoStr, pUndoDoc ) ) in SearchAndReplace()
1724 nCol, nRow, nTab, in SearchAndReplace()
1768 nTab = nEndTab; in SearchAndReplace()
1770 nTab = nStartTab; in SearchAndReplace()
1806 rMark.SelectTable( nTab, sal_True ); in SearchAndReplace()
1809 if ( nOldSelectedCount == 1 && nTab != nOldTab ) in SearchAndReplace()
1819 if ( nTab != GetViewData()->GetTabNo() ) in SearchAndReplace()
1820 SetTabNo( nTab ); in SearchAndReplace()
1834 pDocSh->PostPaint( nCol,nRow,nTab, nCol,nRow,nTab, PAINT_GRID ); in SearchAndReplace()
1952 SCTAB nTab = GetViewData()->GetTabNo(); in MakeScenario() local
1954 SCTAB nNewTab = pDocSh->MakeScenario( nTab, rName, rComment, rColor, nFlags, rMark ); in MakeScenario()
1994 SCTAB nTab = GetViewData()->GetTabNo(); in UseScenario() local
1998 pDocSh->UseScenario( nTab, rName ); in UseScenario()
2005 sal_Bool ScViewFunc::InsertTable( const String& rName, SCTAB nTab, sal_Bool bRecord ) in InsertTable() argument
2009 InsertTable( nTab, rName, bRecord, sal_False ); in InsertTable()
2011 SetTabNo( nTab, sal_True ); in InsertTable()
2019 sal_Bool ScViewFunc::InsertTables(SvStrings *pNames, SCTAB nTab, in InsertTables() argument
2055 if(pDoc->InsertTab( nTab+i,*pStr)) in InsertTables()
2058 pDocSh->Broadcast( ScTablesHint( SC_TAB_INSERTED, nTab+i ) ); in InsertTables()
2074 new ScUndoInsertTables( pDocSh, nTab, sal_False, pNameList)); in InsertTables()
2078 SetTabNo( nTab, sal_True ); in InsertTables()
2107 SCTAB nTab = pDoc->GetTableCount()-1; in AppendTable() local
2110 new ScUndoInsertTab( pDocSh, nTab, sal_True, rName)); in AppendTable()
2111 GetViewData()->InsertTab( nTab ); in AppendTable()
2112 SetTabNo( nTab, sal_True ); in AppendTable()
2127 sal_Bool ScViewFunc::DeleteTable( SCTAB nTab, sal_Bool bRecord ) in DeleteTable() argument
2132 sal_Bool bSuccess = pDocSh->GetDocFunc().DeleteTable( nTab, bRecord, sal_False ); in DeleteTable()
2135 SCTAB nNewTab = nTab; in DeleteTable()
2170 SCTAB nTab = TheTabs[i]; in DeleteTables() local
2172 pUndoDoc->InitUndo( pDoc, nTab,nTab, sal_True,sal_True ); // incl. Spalten/Zeilenflags in DeleteTables()
2174 pUndoDoc->AddUndoTab( nTab,nTab, sal_True,sal_True ); // incl. Spalten/Zeilenflags in DeleteTables()
2176 pDoc->CopyToDocument(0,0,nTab, MAXCOL,MAXROW,nTab, IDF_ALL,sal_False, pUndoDoc ); in DeleteTables()
2177 pDoc->GetName( nTab, aOldName ); in DeleteTables()
2178 pUndoDoc->RenameTab( nTab, aOldName, sal_False ); in DeleteTables()
2179 if (pDoc->IsLinked(nTab)) in DeleteTables()
2182 pUndoDoc->SetLink( nTab, pDoc->GetLinkMode(nTab), pDoc->GetLinkDoc(nTab), in DeleteTables()
2183 pDoc->GetLinkFlt(nTab), pDoc->GetLinkOpt(nTab), in DeleteTables()
2184 pDoc->GetLinkTab(nTab), in DeleteTables()
2185 pDoc->GetLinkRefreshDelay(nTab) ); in DeleteTables()
2187 if ( pDoc->IsScenario(nTab) ) in DeleteTables()
2189 pUndoDoc->SetScenario( nTab, sal_True ); in DeleteTables()
2193 pDoc->GetScenarioData( nTab, aComment, aColor, nScenFlags ); in DeleteTables()
2194 pUndoDoc->SetScenarioData( nTab, aComment, aColor, nScenFlags ); in DeleteTables()
2195 sal_Bool bActive = pDoc->IsActiveScenario( nTab ); in DeleteTables()
2196 pUndoDoc->SetActiveScenario( nTab, bActive ); in DeleteTables()
2198 pUndoDoc->SetVisible( nTab, pDoc->IsVisible( nTab ) ); in DeleteTables()
2199 pUndoDoc->SetTabBgColor( nTab, pDoc->GetTabBgColor(nTab) ); in DeleteTables()
2200 pUndoDoc->SetSheetEvents( nTab, pDoc->GetSheetEvents( nTab ) ); in DeleteTables()
2202 if ( pDoc->IsTabProtected( nTab ) ) in DeleteTables()
2203 pUndoDoc->SetTabProtection(nTab, pDoc->GetTabProtection(nTab)); in DeleteTables()
2275 sal_Bool ScViewFunc::RenameTable( const String& rName, SCTAB nTab ) in RenameTable() argument
2279 RenameTable( nTab, rName, sal_True, sal_False ); in RenameTable()
2291 bool ScViewFunc::SetTabBgColor( const Color& rColor, SCTAB nTab ) in SetTabBgColor() argument
2293 …bool bSuccess = GetViewData()->GetDocShell()->GetDocFunc().SetTabBgColor( nTab, rColor, sal_True, … in SetTabBgColor()
2320 SCTAB nTab = GetViewData()->GetTabNo(); in InsertAreaLink() local
2321 ScAddress aPos( nPosX, nPosY, nTab ); in InsertAreaLink()
2340 SCTAB nTab = MAXTAB+1; in InsertTableLink() local
2342 nTab = 0; in InsertTableLink()
2351 nTab = i; in InsertTableLink()
2355 if ( nTab <= MAXTAB ) in InsertTableLink()
2356 ImportTables( pSrcSh, 1, &nTab, sal_True, in InsertTableLink()
2366 SCTAB nCount, const SCTAB* pSrcTabs, sal_Bool bLink,SCTAB nTab ) in ImportTables() argument
2392 if ( !pDoc->InsertTab( nTab+i, aName ) ) in ImportTables()
2402 SCTAB nDestTab1=nTab+i; in ImportTables()
2434 pDoc->SetScenarioData( nTab+i,aComment,aColor,nFlags); in ImportTables()
2461 pDoc->SetLink( nTab+i, SC_LINK_NORMAL, in ImportTables()
2482 new ScUndoImportTab( pDocSh, nTab, nCount, bLink ) ); in ImportTables()
2486 GetViewData()->InsertTab(nTab); in ImportTables()
2487 SetTabNo(nTab,sal_True); in ImportTables()
2557 SCTAB nTab = GetViewData()->GetTabNo(); in MoveTable() local
2817 nTab = GetViewData()->GetTabNo(); in MoveTable()
2836 else if (!bCopy && nTab<nDestTab) in MoveTable()
2843 ScChartHelper::AdjustRangesOfChartsOnDestinationPage( pDoc, pDestDoc, nTab, nNewTab ); in MoveTable()
2888 void ScViewFunc::HideTable( SCTAB nTab ) in HideTable() argument
2903 pDoc->SetVisible( nTab, sal_False ); in HideTable()
2906 pDocSh->GetUndoManager()->AddUndoAction( new ScUndoShowHideTab( pDocSh, nTab, sal_False ) ); in HideTable()
2910 pDocSh->Broadcast( ScTablesHint( SC_TAB_HIDDEN, nTab ) ); in HideTable()
2912 SetTabNo( nTab, sal_True ); in HideTable()