Lines Matching refs:aDocument
101 return !IsReadOnly() || aDocument.IsImportingXML() || aDocument.IsChangeReadOnlyEnabled(); in IsEditable()
107 aDocument.RemoveFlagsTab( nX1, nY1, nX2, nY1, nTab, SC_MF_AUTO ); in DBAreaDeleted()
111 aDocument.BroadcastUno( SfxSimpleHint( SFX_HINT_DATACHANGED ) ); in DBAreaDeleted()
172 ScDBData* pFoundDBData = aDocument.GetDBAtArea( nTab, nStartCol, nStartRow, nEndCol, nEndRow ); in GetDBData()
175 pFoundDBData = lcl_GetDBNearCursor( aDocument.GetDBCollection(), nCol, nRow, nTab ); in GetDBData()
218 … aDocument.GetDataArea( nTab, nStartCol, nStartRow, nEndCol, nEndRow, sal_False, bOnlyDown ); in GetDBData()
251 pFoundDBData->SetName( aDocument.GetDBCollection()->GetNewDefaultDBName() ); in GetDBData()
289 … aDocument.GetDataArea( nTab, nStartCol, nStartRow, nEndCol, nEndRow, sal_False, bOnlyDown ); in GetDBData()
292 …const sal_Bool bHasHeader = aDocument.HasColHeader( nStartCol, nStartRow, nEndCol, nEndRow, nTab ); in GetDBData()
296 ScDBCollection* pColl = aDocument.GetDBCollection(); in GetDBData()
336 aDocument.CompileDBFormula( sal_True ); in GetDBData()
354 aDocument.CompileDBFormula( sal_True ); in GetDBData()
378 aDocument.CompileDBFormula( sal_False ); in GetDBData()
411 ScDBCollection* pColl = aDocument.GetDBCollection(); in CancelAutoDBRange()
430 … aDocument.ApplyFlagsTab( nRangeX1, nRangeY1, nRangeX2, nRangeY1, nRangeTab, SC_MF_AUTO ); in CancelAutoDBRange()
448 sal_Bool bChange = aDocument.SetOptimalHeight( nStartRow,nEndRow, nTab, 0, aProv.GetDevice(), in AdjustRowHeight()
462 …aDocument.UpdateAllRowHeights( aProv.GetDevice(), aProv.GetPPTX(), aProv.GetPPTY(), aZoom, aZoom, … in UpdateAllRowHeights()
467 sal_Bool bIsUndoEnabled = aDocument.IsUndoEnabled(); in UpdatePendingRowHeights()
468 aDocument.EnableUndo( sal_False ); in UpdatePendingRowHeights()
469 aDocument.LockStreamValid( true ); // ignore draw page size (but not formula results) in UpdatePendingRowHeights()
472 SCTAB nTabCount = aDocument.GetTableCount(); in UpdatePendingRowHeights()
479 if ( aDocument.IsPendingRowHeights( nTab ) ) in UpdatePendingRowHeights()
488 aDocument.UpdatePageBreaks( nTab ); in UpdatePendingRowHeights()
489 aDocument.SetPendingRowHeights( nTab, sal_False ); in UpdatePendingRowHeights()
494 if ( aDocument.IsPendingRowHeights( nUpdateTab ) ) in UpdatePendingRowHeights()
497 aDocument.UpdatePageBreaks( nUpdateTab ); in UpdatePendingRowHeights()
498 aDocument.SetPendingRowHeights( nUpdateTab, sal_False ); in UpdatePendingRowHeights()
501 aDocument.LockStreamValid( false ); in UpdatePendingRowHeights()
502 aDocument.EnableUndo( bIsUndoEnabled ); in UpdatePendingRowHeights()
509 ScDPCollection* pColl = aDocument.GetDPCollection(); in RefreshPivotTables()
588 ScDBData* pDestData = aDocument.GetDBAtCursor( rParam.nCol, rParam.nRow, rParam.nTab, sal_True ); in DoConsolidate()
598 aData.AddFields( &aDocument, pArea->nTab, pArea->nColStart, pArea->nRowStart, in DoConsolidate()
605 aData.AddData( &aDocument, pArea->nTab, pArea->nColStart, pArea->nRowStart, in DoConsolidate()
607 aData.AddName( lcl_GetAreaName(&aDocument,pArea) ); in DoConsolidate()
623 SCTAB nTabCount = aDocument.GetTableCount(); in DoConsolidate()
627 ScOutlineTable* pTable = aDocument.GetOutlineTable( nDestTab ); in DoConsolidate()
631 pUndoDoc->InitUndo( &aDocument, 0, nTabCount-1, sal_False, sal_True ); in DoConsolidate()
634 aDocument.CopyToDocument( 0,0,nDestTab, MAXCOL,MAXROW,nDestTab, in DoConsolidate()
638 aDocument.CopyToDocument( 0,0,0, MAXCOL,MAXROW,nTabCount-1, in DoConsolidate()
642 aDocument.CopyToDocument( 0,aDestArea.nRowStart,nDestTab, in DoConsolidate()
648 aDocument.CopyToDocument( aOldDest, IDF_ALL, sal_False, pUndoDoc ); in DoConsolidate()
657 pUndoDoc->InitUndo( &aDocument, aDestArea.nTab, aDestArea.nTab ); in DoConsolidate()
659 aDocument.CopyToDocument( aDestArea.nColStart, aDestArea.nRowStart, aDestArea.nTab, in DoConsolidate()
665 aDocument.CopyToDocument( aOldDest, IDF_ALL, sal_False, pUndoDoc ); in DoConsolidate()
675 aDocument.DeleteAreaTab(aOldDest, IDF_CONTENTS); in DoConsolidate()
681 aData.OutputToDocument( &aDocument, rParam.nCol, rParam.nRow, rParam.nTab ); in DoConsolidate()
713 if (!aDocument.IsScenario(nTab)) in UseScenario()
715 SCTAB nTabCount = aDocument.GetTableCount(); in UseScenario()
719 while ( nEndTab+1 < nTabCount && aDocument.IsScenario(nEndTab+1) ) in UseScenario()
724 aDocument.GetName( nEndTab, aCompare ); in UseScenario()
731 if ( aDocument.TestCopyScenario( nSrcTab, nTab ) ) // Zellschutz testen in UseScenario()
735 aDocument.MarkScenario( nSrcTab, nTab, aScenMark ); in UseScenario()
746 pUndoDoc->InitUndo( &aDocument, nTab,nEndTab ); // auch alle Szenarien in UseScenario()
748 aDocument.CopyToDocument( nStartCol,nStartRow,nTab, in UseScenario()
757 aDocument.GetScenarioData( i, aComment, aColor, nScenFlags ); in UseScenario()
759 sal_Bool bActive = aDocument.IsActiveScenario( i ); in UseScenario()
763 aDocument.CopyToDocument( 0,0,i, MAXCOL,MAXROW,i, in UseScenario()
773 aDocument.CopyScenario( nSrcTab, nTab ); in UseScenario()
774 aDocument.SetDirty(); in UseScenario()
807 aDocument.GetName( nTab, aOldName ); in ModifyScenario()
811 aDocument.GetScenarioData( nTab, aOldComment, aOldColor, nOldFlags ); in ModifyScenario()
819 aDocument.RenameTab( nTab, rName ); in ModifyScenario()
820 aDocument.SetScenarioData( nTab, rComment, rColor, nFlags ); in ModifyScenario()
840 while (aDocument.IsScenario(nNewTab)) in MakeScenario()
851 aDocument.BeginDrawUndo(); // drawing layer must do its own undo actions in MakeScenario()
853 if (aDocument.CopyTab( nTab, nNewTab, pCopyMark )) in MakeScenario()
862 aDocument.RenameTab( nNewTab, rName, sal_False ); // ohne Formel-Update in MakeScenario()
863 aDocument.SetScenario( nNewTab, sal_True ); in MakeScenario()
864 aDocument.SetScenarioData( nNewTab, rComment, rColor, nFlags ); in MakeScenario()
871 ScPatternAttr aProtPattern( aDocument.GetPool() ); in MakeScenario()
873 aDocument.ApplyPatternAreaTab( 0,0, MAXCOL,MAXROW, nNewTab, aProtPattern ); in MakeScenario()
875 ScPatternAttr aPattern( aDocument.GetPool() ); in MakeScenario()
878 aDocument.ApplySelectionPattern( aPattern, aDestMark ); in MakeScenario()
881 aDocument.SetVisible( nNewTab, sal_False ); in MakeScenario()
884 aDocument.CopyScenario( nNewTab, nTab, sal_True ); // sal_True - nicht aus Szenario kopieren in MakeScenario()
905 if ( nDestTab >= aDocument.GetTableCount() ) in MoveTable()
906 nDestTab = aDocument.GetTableCount(); in MoveTable()
911 aDocument.BeginDrawUndo(); // drawing layer must do its own undo actions in MoveTable()
914 aDocument.GetCodeName( nSrcTab, sSrcCodeName ); in MoveTable()
915 if (!aDocument.CopyTab( nSrcTab, nDestTab )) in MoveTable()
926 if ( aDocument.IsTabProtected( nAdjSource ) ) in MoveTable()
927 aDocument.CopyTabProtection(nAdjSource, nDestTab); in MoveTable()
939 sal_Bool bVbaEnabled = aDocument.IsInVBAMode(); in MoveTable()
951 nTabToUse = aDocument.GetMaxTableNumber() - 1; in MoveTable()
967 VBA_InsertModule( aDocument, nTabToUse, sCodeName, sSource ); in MoveTable()
974 if ( aDocument.GetChangeTrack() ) in MoveTable()
986 if (!aDocument.MoveTab( nSrcTab, nDestTab )) in MoveTable()