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()
409 ScDBCollection* pColl = aDocument.GetDBCollection(); in CancelAutoDBRange()
428 … aDocument.ApplyFlagsTab( nRangeX1, nRangeY1, nRangeX2, nRangeY1, nRangeTab, SC_MF_AUTO ); in CancelAutoDBRange()
446 sal_Bool bChange = aDocument.SetOptimalHeight( nStartRow,nEndRow, nTab, 0, aProv.GetDevice(), in AdjustRowHeight()
460 …aDocument.UpdateAllRowHeights( aProv.GetDevice(), aProv.GetPPTX(), aProv.GetPPTY(), aZoom, aZoom, … in UpdateAllRowHeights()
465 sal_Bool bIsUndoEnabled = aDocument.IsUndoEnabled(); in UpdatePendingRowHeights()
466 aDocument.EnableUndo( sal_False ); in UpdatePendingRowHeights()
467 aDocument.LockStreamValid( true ); // ignore draw page size (but not formula results) in UpdatePendingRowHeights()
470 SCTAB nTabCount = aDocument.GetTableCount(); in UpdatePendingRowHeights()
477 if ( aDocument.IsPendingRowHeights( nTab ) ) in UpdatePendingRowHeights()
486 aDocument.UpdatePageBreaks( nTab ); in UpdatePendingRowHeights()
487 aDocument.SetPendingRowHeights( nTab, sal_False ); in UpdatePendingRowHeights()
492 if ( aDocument.IsPendingRowHeights( nUpdateTab ) ) in UpdatePendingRowHeights()
495 aDocument.UpdatePageBreaks( nUpdateTab ); in UpdatePendingRowHeights()
496 aDocument.SetPendingRowHeights( nUpdateTab, sal_False ); in UpdatePendingRowHeights()
499 aDocument.LockStreamValid( false ); in UpdatePendingRowHeights()
500 aDocument.EnableUndo( bIsUndoEnabled ); in UpdatePendingRowHeights()
507 ScDPCollection* pColl = aDocument.GetDPCollection(); in RefreshPivotTables()
586 ScDBData* pDestData = aDocument.GetDBAtCursor( rParam.nCol, rParam.nRow, rParam.nTab, sal_True ); in DoConsolidate()
596 aData.AddFields( &aDocument, pArea->nTab, pArea->nColStart, pArea->nRowStart, in DoConsolidate()
603 aData.AddData( &aDocument, pArea->nTab, pArea->nColStart, pArea->nRowStart, in DoConsolidate()
605 aData.AddName( lcl_GetAreaName(&aDocument,pArea) ); in DoConsolidate()
621 SCTAB nTabCount = aDocument.GetTableCount(); in DoConsolidate()
625 ScOutlineTable* pTable = aDocument.GetOutlineTable( nDestTab ); in DoConsolidate()
629 pUndoDoc->InitUndo( &aDocument, 0, nTabCount-1, sal_False, sal_True ); in DoConsolidate()
632 aDocument.CopyToDocument( 0,0,nDestTab, MAXCOL,MAXROW,nDestTab, in DoConsolidate()
636 aDocument.CopyToDocument( 0,0,0, MAXCOL,MAXROW,nTabCount-1, in DoConsolidate()
640 aDocument.CopyToDocument( 0,aDestArea.nRowStart,nDestTab, in DoConsolidate()
646 aDocument.CopyToDocument( aOldDest, IDF_ALL, sal_False, pUndoDoc ); in DoConsolidate()
655 pUndoDoc->InitUndo( &aDocument, aDestArea.nTab, aDestArea.nTab ); in DoConsolidate()
657 aDocument.CopyToDocument( aDestArea.nColStart, aDestArea.nRowStart, aDestArea.nTab, in DoConsolidate()
663 aDocument.CopyToDocument( aOldDest, IDF_ALL, sal_False, pUndoDoc ); in DoConsolidate()
673 aDocument.DeleteAreaTab(aOldDest, IDF_CONTENTS); in DoConsolidate()
679 aData.OutputToDocument( &aDocument, rParam.nCol, rParam.nRow, rParam.nTab ); in DoConsolidate()
711 if (!aDocument.IsScenario(nTab)) in UseScenario()
713 SCTAB nTabCount = aDocument.GetTableCount(); in UseScenario()
717 while ( nEndTab+1 < nTabCount && aDocument.IsScenario(nEndTab+1) ) in UseScenario()
722 aDocument.GetName( nEndTab, aCompare ); in UseScenario()
729 if ( aDocument.TestCopyScenario( nSrcTab, nTab ) ) // Zellschutz testen in UseScenario()
733 aDocument.MarkScenario( nSrcTab, nTab, aScenMark ); in UseScenario()
744 pUndoDoc->InitUndo( &aDocument, nTab,nEndTab ); // auch alle Szenarien in UseScenario()
746 aDocument.CopyToDocument( nStartCol,nStartRow,nTab, in UseScenario()
755 aDocument.GetScenarioData( i, aComment, aColor, nScenFlags ); in UseScenario()
757 sal_Bool bActive = aDocument.IsActiveScenario( i ); in UseScenario()
761 aDocument.CopyToDocument( 0,0,i, MAXCOL,MAXROW,i, in UseScenario()
771 aDocument.CopyScenario( nSrcTab, nTab ); in UseScenario()
772 aDocument.SetDirty(); in UseScenario()
805 aDocument.GetName( nTab, aOldName ); in ModifyScenario()
809 aDocument.GetScenarioData( nTab, aOldComment, aOldColor, nOldFlags ); in ModifyScenario()
817 aDocument.RenameTab( nTab, rName ); in ModifyScenario()
818 aDocument.SetScenarioData( nTab, rComment, rColor, nFlags ); in ModifyScenario()
838 while (aDocument.IsScenario(nNewTab)) in MakeScenario()
849 aDocument.BeginDrawUndo(); // drawing layer must do its own undo actions in MakeScenario()
851 if (aDocument.CopyTab( nTab, nNewTab, pCopyMark )) in MakeScenario()
860 aDocument.RenameTab( nNewTab, rName, sal_False ); // ohne Formel-Update in MakeScenario()
861 aDocument.SetScenario( nNewTab, sal_True ); in MakeScenario()
862 aDocument.SetScenarioData( nNewTab, rComment, rColor, nFlags ); in MakeScenario()
869 ScPatternAttr aProtPattern( aDocument.GetPool() ); in MakeScenario()
871 aDocument.ApplyPatternAreaTab( 0,0, MAXCOL,MAXROW, nNewTab, aProtPattern ); in MakeScenario()
873 ScPatternAttr aPattern( aDocument.GetPool() ); in MakeScenario()
876 aDocument.ApplySelectionPattern( aPattern, aDestMark ); in MakeScenario()
879 aDocument.SetVisible( nNewTab, sal_False ); in MakeScenario()
882 aDocument.CopyScenario( nNewTab, nTab, sal_True ); // sal_True - nicht aus Szenario kopieren in MakeScenario()
903 if ( nDestTab >= aDocument.GetTableCount() ) in MoveTable()
904 nDestTab = aDocument.GetTableCount(); in MoveTable()
909 aDocument.BeginDrawUndo(); // drawing layer must do its own undo actions in MoveTable()
912 aDocument.GetCodeName( nSrcTab, sSrcCodeName ); in MoveTable()
913 if (!aDocument.CopyTab( nSrcTab, nDestTab )) in MoveTable()
924 if ( aDocument.IsTabProtected( nAdjSource ) ) in MoveTable()
925 aDocument.CopyTabProtection(nAdjSource, nDestTab); in MoveTable()
937 sal_Bool bVbaEnabled = aDocument.IsInVBAMode(); in MoveTable()
949 nTabToUse = aDocument.GetMaxTableNumber() - 1; in MoveTable()
965 VBA_InsertModule( aDocument, nTabToUse, sCodeName, sSource ); in MoveTable()
972 if ( aDocument.GetChangeTrack() ) in MoveTable()
984 if (!aDocument.MoveTab( nSrcTab, nDestTab )) in MoveTable()