Lines Matching refs:pDoc
204 ScDocument* pDoc = pDocSh->GetDocument(); in DoAutoAttributes() local
205 if (bAddUndo && !pDoc->IsUndoEnabled()) in DoAutoAttributes()
208 const ScPatternAttr* pSource = pDoc->GetPattern( 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()
249 ScDocument* pDoc = pDocSh->GetDocument(); in GetOptimalColWidth() local
265 sal_uInt16 nTwips = pDoc->GetOptimalColWidth( nCol, nTab, aProv.GetDevice(), in GetOptimalColWidth()
273 ScDocument* pDoc = GetViewData()->GetDocument(); in SelectionEditable() local
276 bRet = pDoc->IsSelectionEditable( rMark, pOnlyNotBecauseOfMatrix ); in SelectionEditable()
282 bRet = pDoc->IsBlockEditable( nTab, nCol, nRow, nCol, nRow, in SelectionEditable()
345 ScDocument* pDoc = GetViewData()->GetDocument(); in EnterData() local
347 SCTAB nTabCount = pDoc->GetTableCount(); in EnterData()
350 if (bRecord && !pDoc->IsUndoEnabled()) in EnterData()
356 ScEditableTester aTester( pDoc, nCol,nRow, nCol,nRow, rMark ); in EnterData()
381 pDoc->GetCell( nCol, nRow, i, pDocCell ); in EnterData()
384 ppOldCells[nUndoPos] = pDocCell->CloneWithoutNote( *pDoc ); 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()
446 SvNumberFormatter* pFormatter = pDoc->GetFormatTable(); in EnterData()
463 ScCompiler aComp( pDoc, aPos); in EnterData()
464 aComp.SetGrammar(pDoc->GetGrammar()); in EnterData()
568 ScFormulaCell aCell( pDoc, aPos, pArr,formula::FormulaGrammar::GRAM_DEFAULT, MM_NONE ); in EnterData()
570 sal_Bool bAutoCalc = pDoc->GetAutoCalc(); in EnterData()
571 SvNumberFormatter* pFormatter = pDoc->GetFormatTable(); in EnterData()
577 sal_uLong nIndex = (sal_uLong) ((SfxUInt32Item*) pDoc->GetAttr( in EnterData()
584 ScEditCell* pCell = new ScEditCell( pData, pDoc, NULL ); in EnterData()
585 pDoc->PutCell( aPos, pCell ); in EnterData()
590 pDoc->PutCell( aPos, pCell ); in EnterData()
596 ScFormulaCell* pCell = new ScFormulaCell( aCell, *pDoc, aPos ); in EnterData()
604 pDoc->PutCell( aPos, pCell ); in EnterData()
609 pDoc->PutInFormulaTree( pCell ); 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()
683 ScDocument* pDoc = GetViewData()->GetDocument(); in EnterValue() local
685 sal_Bool bUndo (pDoc->IsUndoEnabled()); in EnterValue()
687 if ( pDoc && pDocSh ) in EnterValue()
691 ScEditableTester aTester( pDoc, nTab, nCol,nRow, nCol,nRow ); in EnterValue()
695 ScBaseCell* pOldCell = pDoc->GetCell( aPos ); in EnterValue()
697 || pDoc->HasAttrib( in EnterValue()
701 ScBaseCell* pUndoCell = (bUndo && pOldCell) ? pOldCell->CloneWithoutNote( *pDoc ) : 0; in EnterValue()
703 pDoc->SetValue( nCol, nRow, nTab, rValue ); in EnterValue()
731 ScDocument* pDoc = pDocSh->GetDocument(); in EnterData() local
732 if (bRecord && !pDoc->IsUndoEnabled()) in EnterData()
737 ScEditableTester aTester( pDoc, nTab, nCol,nRow, nCol,nRow ); in EnterData()
749 const ScPatternAttr* pOldPattern = pDoc->GetPattern( nCol, nRow, nTab ); in EnterData()
750 ScTabEditEngine aEngine( *pOldPattern, pDoc->GetEnginePool() ); in EnterData()
784 SCTAB nTabCount = pDoc->GetTableCount(); in EnterData()
802 pDoc->GetCell( nCol, nRow, i, pDocCell ); in EnterData()
803 ppOldCells[nPos] = pDocCell ? pDocCell->CloneWithoutNote( *pDoc ) : 0; in EnterData()
817 pDoc->ApplyPattern(nCol,nRow,nTab,*pCellAttrs); //! Undo in EnterData()
830 pDoc->PutCell( nCol, nRow, i, new ScEditCell( pData, pDoc, NULL ) ); in EnterData()
898 ScDocument* pDoc = pData->GetDocument(); in EnterMatrix() local
902 …ScFormulaCell aFormCell( pDoc, ScAddress(nCol,nRow,nTab), rString,formula::FormulaGrammar::GRAM_DE… in EnterMatrix()
934 ScDocument* pDoc = GetViewData()->GetDocument(); in GetSelectionScriptType() local
940 nScript = pDoc->GetScriptType( GetViewData()->GetCurX(), in GetSelectionScriptType()
951 ScCellIterator aIter( pDoc, aRange ); in GetSelectionScriptType()
955 nScript |= pDoc->GetScriptType( aIter.GetCol(), aIter.GetRow(), aIter.GetTab(), pCell ); in GetSelectionScriptType()
973 ScDocument* pDoc = GetViewData()->GetDocument(); in GetSelectionPattern() local
977 const ScPatternAttr* pAttr = pDoc->GetSelectionPattern( rMark ); in GetSelectionPattern()
988 const ScPatternAttr* pAttr = pDoc->GetSelectionPattern( aTempMark ); in GetSelectionPattern()
996 ScDocument* pDoc = GetViewData()->GetDocument(); in GetSelectionFrame() local
1005 pDoc->GetSelectionFrame( aNewMark, rLineOuter, rLineInner ); in GetSelectionFrame()
1008 pDoc->GetSelectionFrame( rMark, rLineOuter, rLineInner ); in GetSelectionFrame()
1013 pDoc->GetPattern( GetViewData()->GetCurX(), in GetSelectionFrame()
1176 ScDocument* pDoc = GetViewData()->GetDocument(); in ApplyPatternLines() local
1178 ScViewUtil::UnmarkFiltered( aFuncMark, pDoc ); in ApplyPatternLines()
1179 if (bRecord && !pDoc->IsUndoEnabled()) in ApplyPatternLines()
1207 SCTAB nTabCount = pDoc->GetTableCount(); in ApplyPatternLines()
1208 pUndoDoc->InitUndo( pDoc, nStartTab, nStartTab ); in ApplyPatternLines()
1216 pDoc->CopyToDocument( aCopyRange, IDF_ATTRIB, bMulti, pUndoDoc, &aFuncMark ); in ApplyPatternLines()
1229 pDoc->ApplySelectionFrame( aFuncMark, pNewOuter, pNewInner ); in ApplyPatternLines()
1234 pDoc->ApplySelectionPattern( rAttr, aFuncMark ); in ApplyPatternLines()
1251 ScDocument* pDoc = pDocSh->GetDocument(); in ApplySelectionPattern() local
1253 ScViewUtil::UnmarkFiltered( aFuncMark, pDoc ); in ApplySelectionPattern()
1255 if (bRecord && !pDoc->IsUndoEnabled()) in ApplySelectionPattern()
1293 SCTAB nTabCount = pDoc->GetTableCount(); in ApplySelectionPattern()
1319 pUndoDoc->InitUndo( pDoc, nStartTab, nStartTab ); in ApplySelectionPattern()
1323 pDoc->CopyToDocument( aCopyRange, IDF_ATTRIB, bMulti, pUndoDoc, &aFuncMark ); in ApplySelectionPattern()
1335 pDoc->ApplySelectionPattern( rAttr, aFuncMark ); 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()
1433 ScDocument* pDoc = pViewData->GetDocument(); in GetStyleSheetFromMarked() local
1437 pSheet = pDoc->GetSelectionStyle( rMark ); // MarkToMulti isn't necessary in GetStyleSheetFromMarked()
1439 pSheet = pDoc->GetStyle( pViewData->GetCurX(), in GetStyleSheetFromMarked()
1461 ScDocument* pDoc = pDocSh->GetDocument(); in SetStyleSheetToMarked() local
1463 ScViewUtil::UnmarkFiltered( aFuncMark, pDoc ); in SetStyleSheetToMarked()
1464 SCTAB nTabCount = pDoc->GetTableCount(); in SetStyleSheetToMarked()
1465 if (bRecord && !pDoc->IsUndoEnabled()) in SetStyleSheetToMarked()
1480 pUndoDoc->InitUndo( pDoc, nTab, nTab ); in SetStyleSheetToMarked()
1488 pDoc->CopyToDocument( aCopyRange, IDF_ATTRIB, sal_True, pUndoDoc, &aFuncMark ); in SetStyleSheetToMarked()
1496 pDoc->ApplySelectionStyle( (ScStyleSheet&)*pStyleSheet, aFuncMark ); in SetStyleSheetToMarked()
1512 pUndoDoc->InitUndo( pDoc, nTab, nTab ); in SetStyleSheetToMarked()
1518 pDoc->CopyToDocument( aCopyRange, IDF_ATTRIB, sal_False, pUndoDoc ); in SetStyleSheetToMarked()
1531 pDoc->ApplyStyle( nCol, nRow, i, (ScStyleSheet&)*pStyleSheet ); in SetStyleSheetToMarked()
1550 ScDocument* pDoc = pViewData->GetDocument(); in RemoveStyleSheetInUse() local
1557 pDoc->StyleSheetChanged( pStyleSheet, sal_True, &aVirtDev, in RemoveStyleSheetInUse()
1577 ScDocument* pDoc = pViewData->GetDocument(); in UpdateStyleSheetInUse() local
1584 pDoc->StyleSheetChanged( pStyleSheet, sal_False, &aVirtDev, in UpdateStyleSheetInUse()
1716 ScDocument* pDoc = pDocSh->GetDocument(); in DeleteMulti() local
1718 ScViewUtil::UnmarkFiltered( aFuncMark, pDoc ); in DeleteMulti()
1720 if (bRecord && !pDoc->IsUndoEnabled()) in DeleteMulti()
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()
1823 SCTAB nTabCount = pDoc->GetTableCount(); in DeleteMulti()
1825 pDoc->CopyToDocument( 0,0,0, MAXCOL,MAXROW,MAXTAB, IDF_FORMULA,sal_False,pUndoDoc ); in DeleteMulti()
1827 pUndoData = new ScRefUndoData( pDoc ); in DeleteMulti()
1829 pDoc->BeginDrawUndo(); 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()
1909 ScDocument* pDoc = GetViewData()->GetDocument(); in DeleteContents() local
1912 ScViewUtil::UnmarkFiltered( aFuncMark, pDoc ); in DeleteContents()
1914 if (bRecord && !pDoc->IsUndoEnabled()) in DeleteContents()
1925 if ( pDoc->HasAttrib( aMarkRange, HASATTR_MERGED ) ) in DeleteContents()
1949 if ( pDoc->ExtendMerge( aExtendedRange, sal_True ) ) in DeleteContents()
1958 SCTAB nTabCount = pDoc->GetTableCount(); in DeleteContents()
1960 if (aFuncMark.GetTableSelect(nTab) && pDoc->IsTabProtected(nTab)) in DeleteContents()
1977 pDoc->BeginDrawUndo(); in DeleteContents()
1982 pDoc->DeleteObjectsInSelection( aFuncMark ); in DeleteContents()
1984 pDoc->DeleteObjectsInArea( aMarkRange.aStart.Col(), aMarkRange.aStart.Row(), in DeleteContents()
1993 pUndoDoc->InitUndo( pDoc, nTab, nTab ); in DeleteContents()
1994 SCTAB nTabCount = pDoc->GetTableCount(); in DeleteContents()
2013 pDoc->CopyToDocument( aCopyRange, nUndoDocFlags, bMulti, pUndoDoc, &aFuncMark ); in DeleteContents()
2018 pDoc->DeleteArea( aMarkRange.aStart.Col(), aMarkRange.aStart.Row(), in DeleteContents()
2023 pDoc->DeleteSelection( nFlags, aFuncMark ); in DeleteContents()
2082 ScDocument* pDoc = pDocSh->GetDocument(); in SetWidthOrHeight() local
2083 SCTAB nTabCount = pDoc->GetTableCount(); in SetWidthOrHeight()
2087 if (bRecord && !pDoc->IsUndoEnabled()) in SetWidthOrHeight()
2100 bAllowed = pDoc->IsBlockEditable( nTab, in SetWidthOrHeight()
2105 bAllowed = pDoc->IsBlockEditable( nTab, 0,pRanges[2*i], in SetWidthOrHeight()
2132 pDoc->BeginDrawUndo(); // Drawing Updates in SetWidthOrHeight()
2141 pUndoDoc->InitUndo( pDoc, nTab, nTab, sal_True, sal_False ); in SetWidthOrHeight()
2144 pDoc->CopyToDocument( static_cast<SCCOL>(nStart), 0, nTab, in SetWidthOrHeight()
2151 pUndoDoc->InitUndo( pDoc, nTab, nTab, sal_False, sal_True ); in SetWidthOrHeight()
2154 pDoc->CopyToDocument( 0, nStart, nTab, MAXCOL, nEnd, nTab, IDF_NONE, sal_False, pUndoDoc ); in SetWidthOrHeight()
2162 ScOutlineTable* pTable = pDoc->GetOutlineTable( nCurTab ); 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()
2255 pDoc->SetColWidth( nCol, nTab, nThisSize ); in SetWidthOrHeight()
2257 pDoc->ShowCol( nCol, nTab, bShow ); in SetWidthOrHeight()
2266 if ( pDoc->UpdateOutlineCol( static_cast<SCCOL>(nStartNo), in SetWidthOrHeight()
2272 if ( pDoc->UpdateOutlineRow( nStartNo, nEndNo, nTab, bShow ) ) in SetWidthOrHeight()
2276 pDoc->DecSizeRecalcLevel( nTab ); // nicht fuer jede Spalte einzeln in SetWidthOrHeight()
2294 pDoc->UpdatePageBreaks( nTab ); in SetWidthOrHeight()
2307 if (pDoc->HasAttrib( static_cast<SCCOL>(nStart),0,nTab, in SetWidthOrHeight()
2318 if (pDoc->HasAttrib( 0,nStart,nTab, MAXCOL,nEnd,nTab, HASATTR_MERGED | HASATTR_OVERLAPPED )) in SetWidthOrHeight()
2406 ScDocument* pDoc = pDocSh->GetDocument(); 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()
2542 ScDocument* pDoc = pDocSh->GetDocument(); in ProtectSheet() local
2544 bool bUndo(pDoc->IsUndoEnabled()); in ProtectSheet()
2569 ScDocument* pDoc = pDocSh->GetDocument(); in Protect() local
2571 sal_Bool bUndo(pDoc->IsUndoEnabled()); in Protect()
2601 ScDocument* pDoc = pDocSh->GetDocument(); in Unprotect() local
2604 sal_Bool bUndo (pDoc->IsUndoEnabled()); in Unprotect()
2656 ScDocument* pDoc = pViewData->GetDocument(); in SetNumberFormat() local
2657 SvNumberFormatter* pNumberFormatter = pDoc->GetFormatTable(); in SetNumberFormat()
2659 ScPatternAttr aNewAttrs( pDoc->GetPool() ); in SetNumberFormat()
2664 pDoc->GetNumberFormat( pViewData->GetCurX(), in SetNumberFormat()
2691 ScDocument* pDoc = pViewData->GetDocument(); in SetNumFmtByStr() local
2692 SvNumberFormatter* pFormatter = pDoc->GetFormatTable(); in SetNumFmtByStr()
2697 pDoc->GetNumberFormat( pViewData->GetCurX(), pViewData->GetCurY(), in SetNumFmtByStr()
2718 ScPatternAttr aNewAttrs( pDoc->GetPool() ); in SetNumFmtByStr()
2738 ScDocument* pDoc = GetViewData()->GetDocument(); in ChangeNumFmtDecimals() local
2739 SvNumberFormatter* pFormatter = pDoc->GetFormatTable(); in ChangeNumFmtDecimals()
2746 pDoc->GetNumberFormat( nCol, nRow, nTab, nOldFormat ); in ChangeNumFmtDecimals()
2779 double nVal = pDoc->GetValue( ScAddress( nCol, nRow, nTab ) ); in ChangeNumFmtDecimals()
2839 ScPatternAttr aNewAttrs( pDoc->GetPool() ); in ChangeNumFmtDecimals()
2887 ScDocument* pDoc = pDocSh->GetDocument(); in InsertName() local
2889 ScRangeName* pList = pDoc->GetRangeName(); in InsertName()
2892 ScRangeData* pNewEntry = new ScRangeData( pDoc, rName, rSymbol, in InsertName()
2911 pDoc->CompileNameFormula( sal_True ); // CreateFormulaString in InsertName()
2927 pDoc->CompileNameFormula( sal_False ); // CompileFormulaString in InsertName()
2956 ScDocument* pDoc = GetViewData()->GetDocument(); 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()