Lines Matching refs:rDocShell

113     ScDrawLayer* pDrawLayer = rDocShell.GetDocument()->GetDrawLayer();  in IMPL_LINK()
117 rDocShell.GetUndoManager()->AddUndoAction( new ScUndoDraw( pUndoAction, &rDocShell ) ); in IMPL_LINK()
118 rDocShell.SetDrawModified(); in IMPL_LINK()
121 ScDocument* pDoc = rDocShell.GetDocument(); in IMPL_LINK()
134 void lcl_PaintAbove( ScDocShell& rDocShell, const ScRange& rRange ) in lcl_PaintAbove() argument
141 rDocShell.PostPaint( ScRange(0,nRow,nTab, MAXCOL,nRow,nTab), PAINT_GRID ); in lcl_PaintAbove()
149 ScDocument* pDoc = rDocShell.GetDocument(); in AdjustRowHeight()
164 ScSizeDeviceProvider aProv( &rDocShell ); in AdjustRowHeight()
171 rDocShell.PostPaint( 0, nStartRow, nTab, MAXCOL, MAXROW, nTab, in AdjustRowHeight()
182 ScDocShellModificator aModificator( rDocShell ); in DetectiveAddPred()
184 rDocShell.MakeDrawLayer(); in DetectiveAddPred()
185 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveAddPred()
204 rDocShell.GetUndoManager()->AddUndoAction( in DetectiveAddPred()
205 new ScUndoDetective( &rDocShell, pUndo, &aOperation ) ); in DetectiveAddPred()
208 SfxBindings* pBindings = rDocShell.GetViewBindings(); in DetectiveAddPred()
220 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveDelPred()
227 ScDocShellModificator aModificator( rDocShell ); in DetectiveDelPred()
245 rDocShell.GetUndoManager()->AddUndoAction( in DetectiveDelPred()
246 new ScUndoDetective( &rDocShell, pUndo, &aOperation ) ); in DetectiveDelPred()
249 SfxBindings* pBindings = rDocShell.GetViewBindings(); in DetectiveDelPred()
261 ScDocShellModificator aModificator( rDocShell ); in DetectiveAddSucc()
263 rDocShell.MakeDrawLayer(); in DetectiveAddSucc()
264 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveAddSucc()
284 rDocShell.GetUndoManager()->AddUndoAction( in DetectiveAddSucc()
285 new ScUndoDetective( &rDocShell, pUndo, &aOperation ) ); in DetectiveAddSucc()
288 SfxBindings* pBindings = rDocShell.GetViewBindings(); in DetectiveAddSucc()
300 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveDelSucc()
307 ScDocShellModificator aModificator( rDocShell ); in DetectiveDelSucc()
325 rDocShell.GetUndoManager()->AddUndoAction( in DetectiveDelSucc()
326 new ScUndoDetective( &rDocShell, pUndo, &aOperation ) ); in DetectiveDelSucc()
329 SfxBindings* pBindings = rDocShell.GetViewBindings(); in DetectiveDelSucc()
341 ScDocShellModificator aModificator( rDocShell ); in DetectiveAddError()
343 rDocShell.MakeDrawLayer(); in DetectiveAddError()
344 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveAddError()
364 rDocShell.GetUndoManager()->AddUndoAction( in DetectiveAddError()
365 new ScUndoDetective( &rDocShell, pUndo, &aOperation ) ); in DetectiveAddError()
368 SfxBindings* pBindings = rDocShell.GetViewBindings(); in DetectiveAddError()
380 ScDocShellModificator aModificator( rDocShell ); in DetectiveMarkInvalid()
382 rDocShell.MakeDrawLayer(); in DetectiveMarkInvalid()
383 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveMarkInvalid()
388 Window* pWaitWin = rDocShell.GetActiveDialogParent(); in DetectiveMarkInvalid()
405 rDocShell.GetUndoManager()->AddUndoAction( pUndo ); in DetectiveMarkInvalid()
422 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveDelAll()
429 ScDocShellModificator aModificator( rDocShell ); in DetectiveDelAll()
448 rDocShell.GetUndoManager()->AddUndoAction( in DetectiveDelAll()
449 new ScUndoDetective( &rDocShell, pUndo, NULL, pUndoList ) ); in DetectiveDelAll()
452 SfxBindings* pBindings = rDocShell.GetViewBindings(); in DetectiveDelAll()
465 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveRefresh()
471 rDocShell.MakeDrawLayer(); in DetectiveRefresh()
524 rDocShell.GetUndoManager()->AddUndoAction( in DetectiveRefresh()
525 new ScUndoDraw( pUndo, &rDocShell ), in DetectiveRefresh()
529 rDocShell.SetDrawModified(); in DetectiveRefresh()
540 ScDocShellModificator aModificator( rDocShell ); in DeleteContents()
548 ScDocument* pDoc = rDocShell.GetDocument(); in DeleteContents()
557 rDocShell.ErrorMessage(aTester.GetMessageId()); in DeleteContents()
594 rDocShell.UpdatePaintExt( nExtFlags, aMarkRange ); in DeleteContents()
648 rDocShell.GetUndoManager()->AddUndoAction( in DeleteContents()
649 new ScUndoDeleteContents( &rDocShell, aMultiMark, aExtendedRange, in DeleteContents()
653 rDocShell.PostPaint( aExtendedRange, PAINT_GRID, nExtFlags ); in DeleteContents()
655 lcl_PaintAbove( rDocShell, aExtendedRange ); // fuer Linien ueber dem Bereich in DeleteContents()
681 ScDocShellModificator aModificator( rDocShell ); in TransliterateText()
683 ScDocument* pDoc = rDocShell.GetDocument(); in TransliterateText()
691 rDocShell.ErrorMessage(aTester.GetMessageId()); in TransliterateText()
717 rDocShell.GetUndoManager()->AddUndoAction( in TransliterateText()
718 new ScUndoTransliterate( &rDocShell, aMultiMark, pUndoDoc, nType ) ); in TransliterateText()
724 rDocShell.PostPaint( aMarkRange, PAINT_GRID ); in TransliterateText()
735 ScDocShellModificator aModificator( rDocShell ); in SetNormalString()
736 ScDocument* pDoc = rDocShell.GetDocument(); in SetNormalString()
743 rDocShell.ErrorMessage(aTester.GetMessageId()); in SetNormalString()
779rDocShell.GetUndoManager()->AddUndoAction(new ScUndoEnterData( &rDocShell, rPos.Col(),rPos.Row(),r… in SetNormalString()
786 rDocShell.PostPaintCell( rPos ); in SetNormalString()
798 ScDocShellModificator aModificator( rDocShell ); in PutCell()
799 ScDocument* pDoc = rDocShell.GetDocument(); in PutCell()
810 rDocShell.ErrorMessage(aTester.GetMessageId()); in PutCell()
830 rDocShell.GetUndoManager()->AddUndoAction( in PutCell()
831 new ScUndoPutCell( &rDocShell, rPos, pUndoCell, pRedoCell, bHeight ) ); in PutCell()
838 rDocShell.PostPaintCell( rPos ); in PutCell()
853 if ( pViewSh && pViewSh->GetViewData()->GetDocShell() == &rDocShell ) in NotifyInputHandler()
885 ScDocument* pDoc = rDocShell.GetDocument(); in PutData()
987 ScDocument* pDoc = rDocShell.GetDocument(); in InterpretEnglishString()
1042 ScDocument* pDoc = rDocShell.GetDocument(); in SetCellText()
1075 ScDocument& rDoc = *rDocShell.GetDocument(); in ShowNote()
1082rDocShell.GetUndoManager()->AddUndoAction( new ScUndoShowHideNote( rDocShell, rPos, bShow ) ); in ShowNote()
1087 rDocShell.SetDocumentModified(); in ShowNote()
1096 ScDocShellModificator aModificator( rDocShell ); in SetNoteText()
1098 ScDocument* pDoc = rDocShell.GetDocument(); in SetNoteText()
1103 rDocShell.ErrorMessage(aTester.GetMessageId()); in SetNoteText()
1118 rDocShell.PostPaintCell( rPos ); in SetNoteText()
1130 ScDocShellModificator aModificator( rDocShell ); in ReplaceNote()
1131 ScDocument& rDoc = *rDocShell.GetDocument(); in ReplaceNote()
1136 …::svl::IUndoManager* pUndoMgr = (pDrawLayer && rDoc.IsUndoEnabled()) ? rDocShell.GetUndoManager() … in ReplaceNote()
1167 …pUndoMgr->AddUndoAction( new ScUndoReplaceNote( rDocShell, rPos, aOldData, aNewData, pDrawLayer->G… in ReplaceNote()
1170 rDocShell.PostPaintCell( rPos ); in ReplaceNote()
1180 rDocShell.ErrorMessage(aTester.GetMessageId()); in ReplaceNote()
1191 ScDocument* pDoc = rDocShell.GetDocument(); in ApplyAttributes()
1203 rDocShell.ErrorMessage(STR_PROTECTIONERR); in ApplyAttributes()
1207 ScDocShellModificator aModificator( rDocShell ); in ApplyAttributes()
1224 rDocShell.GetUndoManager()->AddUndoAction( in ApplyAttributes()
1226 &rDocShell, rMark, in ApplyAttributes()
1235 rDocShell.UpdatePaintExt( nExtFlags, aMultiRange ); // content before the change in ApplyAttributes()
1238 rDocShell.UpdatePaintExt( nExtFlags, aMultiRange ); // content after the change in ApplyAttributes()
1241 rDocShell.PostPaint( aMultiRange, PAINT_GRID, nExtFlags ); in ApplyAttributes()
1243 lcl_PaintAbove( rDocShell, aMultiRange ); // fuer Linien ueber dem Bereich in ApplyAttributes()
1254 ScDocument* pDoc = rDocShell.GetDocument(); in ApplyStyle()
1266 rDocShell.ErrorMessage(STR_PROTECTIONERR); in ApplyStyle()
1275 ScDocShellModificator aModificator( rDocShell ); in ApplyStyle()
1299 rDocShell.GetUndoManager()->AddUndoAction( in ApplyStyle()
1301 &rDocShell, rMark, aMultiRange, rStyleName, pUndoDoc ) ); in ApplyStyle()
1315 rDocShell.PostPaint( aMultiRange, PAINT_GRID, nExtFlags ); in ApplyStyle()
1317 lcl_PaintAbove( rDocShell, aMultiRange ); // fuer Linien ueber dem Bereich in ApplyStyle()
1329 ScDocShellModificator aModificator( rDocShell ); in InsertCells()
1344 ScDocument* pDoc = rDocShell.GetDocument(); in InsertCells()
1354 ScTabViewShell* pViewSh = rDocShell.GetBestViewShell(); //preserve current cursor position in InsertCells()
1439 rDocShell.ErrorMessage(aTester.GetMessageId()); in InsertCells()
1443 …WaitObject aWait( rDocShell.GetActiveDialogParent() ); // wichtig wegen TrackFormulas bei UpdateR… in InsertCells()
1465 rDocShell.GetUndoManager()->EnterListAction( aUndo, aUndo ); in InsertCells()
1488 rDocShell.ErrorMessage(STR_MSSG_INSERTCELLS_0); in InsertCells()
1489 rDocShell.GetUndoManager()->LeaveListAction(); in InsertCells()
1586 rDocShell.ErrorMessage(STR_MSSG_INSERTCELLS_0); in InsertCells()
1587 rDocShell.GetUndoManager()->LeaveListAction(); in InsertCells()
1651 rDocShell.GetUndoManager()->LeaveListAction(); in InsertCells()
1654 rDocShell.GetUndoManager()->AddUndoAction( new ScUndoInsertCells( in InsertCells()
1655 &rDocShell, ScRange( nStartCol, nStartRow, nStartTab, nEndCol, nEndRow, nEndTab ), in InsertCells()
1685 rDocShell.GetUndoManager()->LeaveListAction(); in InsertCells()
1700rDocShell.UpdatePaintExt( nExtFlags, nPaintStartX, nPaintStartY, i, nPaintEndX, nPaintEndY, i ); in InsertCells()
1713rDocShell.PostPaint( nPaintStartX, nPaintStartY, i, nPaintEndX, nPaintEndY, i+nScenarioCount, PAIN… in InsertCells()
1716rDocShell.PostPaint( nPaintStartX, nPaintStartY, i, nPaintEndX, nPaintEndY, i+nScenarioCount, nPai… in InsertCells()
1739 rDocShell.GetUndoManager()->LeaveListAction(); in InsertCells()
1740 rDocShell.GetUndoManager()->RemoveLastUndoAction(); in InsertCells()
1745 rDocShell.ErrorMessage(STR_INSERT_FULL); // Spalte/Zeile voll in InsertCells()
1757 ScDocShellModificator aModificator( rDocShell ); in DeleteCells()
1772 ScDocument* pDoc = rDocShell.GetDocument(); in DeleteCells()
1853 rDocShell.ErrorMessage(aTester.GetMessageId()); in DeleteCells()
1871 rDocShell.GetUndoManager()->EnterListAction( aUndo, aUndo ); in DeleteCells()
1890 rDocShell.ErrorMessage(STR_MSSG_DELETECELLS_0); in DeleteCells()
1891 rDocShell.GetUndoManager()->LeaveListAction(); in DeleteCells()
1995 rDocShell.ErrorMessage(STR_MSSG_DELETECELLS_0); in DeleteCells()
1996 rDocShell.GetUndoManager()->LeaveListAction(); in DeleteCells()
2007 …WaitObject aWait( rDocShell.GetActiveDialogParent() ); // wichtig wegen TrackFormulas bei UpdateR… in DeleteCells()
2045 rDocShell.UpdatePaintExt( nExtFlags, nStartCol, nStartRow, i, nEndCol, nEndRow, i ); in DeleteCells()
2113 rDocShell.GetUndoManager()->LeaveListAction(); in DeleteCells()
2116 rDocShell.GetUndoManager()->AddUndoAction( new ScUndoDeleteCells( in DeleteCells()
2117 …&rDocShell, ScRange( nStartCol, nStartRow, nStartTab, nEndCol, nEndRow, nEndTab ),nUndoPos, pTabs,… in DeleteCells()
2171 rDocShell.GetUndoManager()->LeaveListAction(); in DeleteCells()
2209rDocShell.UpdatePaintExt( nExtFlags, nPaintStartX, nPaintStartY, i, nPaintEndX, nPaintEndY, i ); in DeleteCells()
2218rDocShell.PostPaint( nPaintStartX, nPaintStartY, i, nPaintEndX, nPaintEndY, i+nScenarioCount, nPai… in DeleteCells()
2223 …lcl_PaintAbove( rDocShell, ScRange( nPaintStartX, nPaintStartY, i, nPaintEndX, nPaintEndY, i+nScen… in DeleteCells()
2225rDocShell.PostPaint( nPaintStartX, nPaintStartY, i, nPaintEndX, nPaintEndY, i+nScenarioCount, PAIN… in DeleteCells()
2239 ScDocShellModificator aModificator( rDocShell ); in MoveBlock()
2259 ScDocument* pDoc = rDocShell.GetDocument(); in MoveBlock()
2330 rDocShell.ErrorMessage(STR_PASTE_FULL); in MoveBlock()
2347 rDocShell.ErrorMessage(aTester.GetMessageId()); in MoveBlock()
2359 rDocShell.ErrorMessage(STR_MSSG_MOVEBLOCKTO_0); in MoveBlock()
2367 rDocShell.UpdatePaintExt( nSourceExt, nStartCol,nStartRow,nStartTab, nEndCol,nEndRow,nEndTab ); in MoveBlock()
2369rDocShell.UpdatePaintExt( nDestExt, nDestCol,nDestRow,nDestTab, nDestEndCol,nDestEndRow,nDestEndTa… in MoveBlock()
2434 rDocShell.ErrorMessage(STR_MSSG_MOVEBLOCKTO_0); in MoveBlock()
2495 rDocShell.GetUndoManager()->AddUndoAction( in MoveBlock()
2496 new ScUndoDragDrop( &rDocShell, ScRange( in MoveBlock()
2550 rDocShell.PostPaint( nPaintStartX,nPaintStartY,nDestTab, in MoveBlock()
2578 rDocShell.PostPaint( nPaintStartX,nPaintStartY,nStartTab, in MoveBlock()
2690 WaitObject aWait( rDocShell.GetActiveDialogParent() ); in InsertTable()
2692 ScDocShellModificator aModificator( rDocShell ); in InsertTable()
2694 ScDocument* pDoc = rDocShell.GetDocument(); in InsertTable()
2701 if( !rDocShell.GetDocument()->IsImportingXML() ) in InsertTable()
2720 rDocShell.GetUndoManager()->AddUndoAction( in InsertTable()
2721 new ScUndoInsertTab( &rDocShell, nTab, bAppend, rName)); in InsertTable()
2729 rDocShell.Broadcast( ScTablesHint( SC_TAB_INSERTED, nTab ) ); in InsertTable()
2731 rDocShell.PostPaintExtras(); in InsertTable()
2737 rDocShell.ErrorMessage(STR_TABINSERT_ERROR); in InsertTable()
2744 WaitObject aWait( rDocShell.GetActiveDialogParent() ); in DeleteTable()
2746 ScDocShellModificator aModificator( rDocShell ); in DeleteTable()
2749 ScDocument* pDoc = rDocShell.GetDocument(); in DeleteTable()
2805 rDocShell.GetUndoManager()->AddUndoAction( in DeleteTable()
2806 new ScUndoDeleteTab( &rDocShell, theTabs, pUndoDoc, pUndoData )); in DeleteTable()
2813 VBA_DeleteModule( rDocShell, sCodeName ); in DeleteTable()
2816 rDocShell.Broadcast( ScTablesHint( SC_TAB_DELETED, nTab ) ); in DeleteTable()
2820 rDocShell.UpdateLinks(); // Link-Manager updaten in DeleteTable()
2821 SfxBindings* pBindings = rDocShell.GetViewBindings(); in DeleteTable()
2826 rDocShell.PostPaintExtras(); in DeleteTable()
2846 ScDocument* pDoc = rDocShell.GetDocument(); in SetTableVisible()
2854 rDocShell.ErrorMessage(STR_PROTECTIONERR); in SetTableVisible()
2858 ScDocShellModificator aModificator( rDocShell ); in SetTableVisible()
2873 rDocShell.ErrorMessage(STR_PROTECTIONERR); //! eigene Meldung? in SetTableVisible()
2880 rDocShell.GetUndoManager()->AddUndoAction( new ScUndoShowHideTab( &rDocShell, nTab, bVisible ) ); in SetTableVisible()
2884 rDocShell.Broadcast( ScTablesHint( SC_TAB_HIDDEN, nTab ) ); in SetTableVisible()
2887 rDocShell.PostPaint(0,0,0,MAXCOL,MAXROW,MAXTAB, PAINT_EXTRAS); in SetTableVisible()
2895 ScDocument* pDoc = rDocShell.GetDocument(); in SetLayoutRTL()
2902 ScDocShellModificator aModificator( rDocShell ); in SetLayoutRTL()
2908 rDocShell.GetUndoManager()->AddUndoAction( new ScUndoLayoutRTL( &rDocShell, nTab, bRTL ) ); in SetLayoutRTL()
2911 rDocShell.PostPaint( 0,0,0,MAXCOL,MAXROW,MAXTAB, PAINT_ALL ); in SetLayoutRTL()
2914 SfxBindings* pBindings = rDocShell.GetViewBindings(); in SetLayoutRTL()
2963 ScDocument* pDoc = rDocShell.GetDocument(); in RenameTable()
2969 rDocShell.ErrorMessage(STR_PROTECTIONERR); in RenameTable()
2973 ScDocShellModificator aModificator( rDocShell ); in RenameTable()
2982 rDocShell.GetUndoManager()->AddUndoAction( in RenameTable()
2983 new ScUndoRenameTab( &rDocShell, nTab, sOldName, rName)); in RenameTable()
2985 rDocShell.PostPaintExtras(); in RenameTable()
2997 ScDocument* pDoc = rDocShell.GetDocument(); in SetTabBgColor()
3003 rDocShell.ErrorMessage(STR_PROTECTIONERR); //TODO Check to see what this string is... in SetTabBgColor()
3018 rDocShell.GetUndoManager()->AddUndoAction( in SetTabBgColor()
3019 new ScUndoTabColor( &rDocShell, nTab, aOldTabBgColor, rColor)); in SetTabBgColor()
3021 rDocShell.PostPaintExtras(); in SetTabBgColor()
3022 ScDocShellModificator aModificator( rDocShell ); in SetTabBgColor()
3034 ScDocument* pDoc = rDocShell.GetDocument(); in SetTabBgColor()
3041 rDocShell.ErrorMessage(STR_PROTECTIONERR); //TODO Get a better String Error... in SetTabBgColor()
3074 rDocShell.ErrorMessage(STR_PROTECTIONERR); //TODO Get a better String Error... in SetTabBgColor()
3082 rDocShell.GetUndoManager()->AddUndoAction( in SetTabBgColor()
3083 new ScUndoTabColor( &rDocShell, rUndoTabColorList)); in SetTabBgColor()
3085 rDocShell.PostPaintExtras(); in SetTabBgColor()
3086 ScDocShellModificator aModificator( rDocShell ); in SetTabBgColor()
3099 sal_uInt16 lcl_GetOptimalColWidth( ScDocShell& rDocShell, SCCOL nCol, SCTAB nTab, sal_Bool bFormula… in lcl_GetOptimalColWidth() argument
3103 ScSizeDeviceProvider aProv(&rDocShell); in lcl_GetOptimalColWidth()
3108 ScDocument* pDoc = rDocShell.GetDocument(); in lcl_GetOptimalColWidth()
3120 ScDocShellModificator aModificator( rDocShell ); in SetWidthOrHeight()
3125 ScDocument* pDoc = rDocShell.GetDocument(); in SetWidthOrHeight()
3130 if ( !pDoc->IsChangeReadOnlyEnabled() && !rDocShell.IsEditable() ) in SetWidthOrHeight()
3133 rDocShell.ErrorMessage(STR_PROTECTIONERR); //! eigene Meldung? in SetWidthOrHeight()
3203 ScSizeDeviceProvider aProv( &rDocShell ); in SetWidthOrHeight()
3240 lcl_GetOptimalColWidth( rDocShell, nCol, nTab, bFormula ); in SetWidthOrHeight()
3273 rDocShell.GetUndoManager()->AddUndoAction( in SetWidthOrHeight()
3274 new ScUndoWidthOrHeight( &rDocShell, aMark, in SetWidthOrHeight()
3282 rDocShell.PostPaint(0,0,nTab,MAXCOL,MAXROW,nTab,PAINT_ALL); in SetWidthOrHeight()
3292 ScDocShellModificator aModificator( rDocShell ); in InsertPageBreak()
3294 ScDocument* pDoc = rDocShell.GetDocument(); in InsertPageBreak()
3298 SfxBindings* pBindings = rDocShell.GetViewBindings(); in InsertPageBreak()
3312 rDocShell.GetUndoManager()->AddUndoAction( in InsertPageBreak()
3313 new ScUndoPageBreak( &rDocShell, rPos.Col(), rPos.Row(), nTab, bColumn, sal_True ) ); in InsertPageBreak()
3328 rDocShell.PostPaint( static_cast<SCCOL>(nPos)-1, 0, nTab, MAXCOL, MAXROW, nTab, PAINT_GRID ); in InsertPageBreak()
3337 rDocShell.PostPaint( 0, static_cast<SCROW>(nPos)-1, nTab, MAXCOL, MAXROW, nTab, PAINT_GRID ); in InsertPageBreak()
3356 ScDocShellModificator aModificator( rDocShell ); in RemovePageBreak()
3358 ScDocument* pDoc = rDocShell.GetDocument(); in RemovePageBreak()
3362 SfxBindings* pBindings = rDocShell.GetViewBindings(); in RemovePageBreak()
3377 rDocShell.GetUndoManager()->AddUndoAction( in RemovePageBreak()
3378 new ScUndoPageBreak( &rDocShell, rPos.Col(), rPos.Row(), nTab, bColumn, sal_False ) ); in RemovePageBreak()
3392 rDocShell.PostPaint( static_cast<SCCOL>(nPos)-1, 0, nTab, MAXCOL, MAXROW, nTab, PAINT_GRID ); in RemovePageBreak()
3401 rDocShell.PostPaint( 0, nPos-1, nTab, MAXCOL, MAXROW, nTab, PAINT_GRID ); in RemovePageBreak()
3421 ScDocument* pDoc = rDocShell.GetDocument(); in ProtectSheet()
3432 rDocShell.GetUndoManager()->AddUndoAction( in ProtectSheet()
3433 new ScUndoTabProtect(&rDocShell, nTab, p) ); in ProtectSheet()
3439 rDocShell.PostPaintGridAll(); in ProtectSheet()
3440 ScDocShellModificator aModificator(rDocShell); in ProtectSheet()
3446 ScDocument* pDoc = rDocShell.GetDocument(); in Protect()
3462 rDocShell.GetUndoManager()->AddUndoAction( in Protect()
3463 new ScUndoDocProtect(&rDocShell, p) ); in Protect()
3484 rDocShell.GetUndoManager()->AddUndoAction( in Protect()
3485 new ScUndoTabProtect(&rDocShell, nTab, p) ); in Protect()
3491 rDocShell.PostPaintGridAll(); in Protect()
3492 ScDocShellModificator aModificator( rDocShell ); in Protect()
3500 ScDocument* pDoc = rDocShell.GetDocument(); in Unprotect()
3518 … InfoBox aBox( rDocShell.GetActiveDialogParent(), String( ScResId( SCSTR_WRONGPASSWORD ) ) ); in Unprotect()
3528 rDocShell.GetUndoManager()->AddUndoAction( in Unprotect()
3529 new ScUndoDocProtect(&rDocShell, pProtectCopy) ); in Unprotect()
3548 … InfoBox aBox( rDocShell.GetActiveDialogParent(), String( ScResId( SCSTR_WRONGPASSWORD ) ) ); in Unprotect()
3558 rDocShell.GetUndoManager()->AddUndoAction( in Unprotect()
3559 new ScUndoTabProtect(&rDocShell, nTab, pProtectCopy) ); in Unprotect()
3564 rDocShell.PostPaintGridAll(); in Unprotect()
3565 ScDocShellModificator aModificator( rDocShell ); in Unprotect()
3575 ScDocShellModificator aModificator( rDocShell ); in ClearItems()
3577 ScDocument* pDoc = rDocShell.GetDocument(); in ClearItems()
3583 rDocShell.ErrorMessage(aTester.GetMessageId()); in ClearItems()
3607 rDocShell.GetUndoManager()->AddUndoAction( in ClearItems()
3608 new ScUndoClearItems( &rDocShell, aMultiMark, pUndoDoc, pWhich ) ); in ClearItems()
3613 rDocShell.PostPaint( aMarkRange, PAINT_GRID, SC_PF_LINES | SC_PF_TESTMERGE ); in ClearItems()
3623 ScDocShellModificator aModificator( rDocShell ); in ChangeIndent()
3625 ScDocument* pDoc = rDocShell.GetDocument(); in ChangeIndent()
3631 rDocShell.ErrorMessage(aTester.GetMessageId()); in ChangeIndent()
3655 rDocShell.GetUndoManager()->AddUndoAction( in ChangeIndent()
3656 new ScUndoIndent( &rDocShell, rMark, pUndoDoc, bIncrement ) ); in ChangeIndent()
3661 rDocShell.PostPaint( aMarkRange, PAINT_GRID, SC_PF_LINES | SC_PF_TESTMERGE ); in ChangeIndent()
3664 SfxBindings* pBindings = rDocShell.GetViewBindings(); in ChangeIndent()
3690 ScDocShellModificator aModificator( rDocShell ); in AutoFormat()
3693 ScDocument* pDoc = rDocShell.GetDocument(); in AutoFormat()
3716 WaitObject aWait( rDocShell.GetActiveDialogParent() ); in AutoFormat()
3763 rDocShell.PostPaint( 0,0,nTab, MAXCOL,MAXROW,nTab, in AutoFormat()
3775 rDocShell.PostPaint( 0,nStartRow,nTab, MAXCOL,MAXROW,nTab, in AutoFormat()
3778 rDocShell.PostPaint( nStartCol, nStartRow, nTab, in AutoFormat()
3785 rDocShell.GetUndoManager()->AddUndoAction( in AutoFormat()
3786 new ScUndoAutoFormat( &rDocShell, rRange, pUndoDoc, aMark, bSize, nFormatNo ) ); in AutoFormat()
3792 rDocShell.ErrorMessage(aTester.GetMessageId()); in AutoFormat()
3803 ScDocShellModificator aModificator( rDocShell ); in EnterMatrix()
3806 ScDocument* pDoc = rDocShell.GetDocument(); in EnterMatrix()
3828 WaitObject aWait( rDocShell.GetActiveDialogParent() ); in EnterMatrix()
3871 rDocShell.GetUndoManager()->AddUndoAction( in EnterMatrix()
3872 new ScUndoEnterMatrix( &rDocShell, rRange, pUndoDoc, rString ) ); in EnterMatrix()
3876 rDocShell.PostPaint( nStartCol,nStartRow,nStartTab,nEndCol,nEndRow,nEndTab, PAINT_GRID ); in EnterMatrix()
3882 rDocShell.ErrorMessage(aTester.GetMessageId()); in EnterMatrix()
3892 ScDocShellModificator aModificator( rDocShell ); in TabOp()
3895 ScDocument* pDoc = rDocShell.GetDocument(); in TabOp()
3918 WaitObject aWait( rDocShell.GetActiveDialogParent() ); in TabOp()
3927 rDocShell.GetUndoManager()->AddUndoAction( in TabOp()
3928 new ScUndoTabOp( &rDocShell, in TabOp()
3938 rDocShell.PostPaintGridAll(); in TabOp()
3943 rDocShell.ErrorMessage(aTester.GetMessageId()); in TabOp()
3965 ScDocShellModificator aModificator( rDocShell ); in FillSimple()
3968 ScDocument* pDoc = rDocShell.GetDocument(); in FillSimple()
3991 WaitObject aWait( rDocShell.GetActiveDialogParent() ); in FillSimple()
4042 rDocShell.GetUndoManager()->AddUndoAction( in FillSimple()
4043 new ScUndoAutoFill( &rDocShell, aDestArea, aSourceArea, pUndoDoc, aMark, in FillSimple()
4048 rDocShell.PostPaintGridAll(); in FillSimple()
4055 rDocShell.ErrorMessage(aTester.GetMessageId()); in FillSimple()
4065 ScDocShellModificator aModificator( rDocShell ); in FillSeries()
4068 ScDocument* pDoc = rDocShell.GetDocument(); in FillSeries()
4091 WaitObject aWait( rDocShell.GetActiveDialogParent() ); in FillSeries()
4157 rDocShell.PostPaintGridAll(); in FillSeries()
4164 rDocShell.GetUndoManager()->AddUndoAction( in FillSeries()
4165 new ScUndoAutoFill( &rDocShell, aDestArea, aSourceArea, pUndoDoc, aMark, in FillSeries()
4173 rDocShell.ErrorMessage(aTester.GetMessageId()); in FillSeries()
4181 ScDocShellModificator aModificator( rDocShell ); in FillAuto()
4183 ScDocument* pDoc = rDocShell.GetDocument(); in FillAuto()
4248 rDocShell.ErrorMessage(aTester.GetMessageId()); in FillAuto()
4256 rDocShell.ErrorMessage(STR_MATRIXFRAGMENTERR); in FillAuto()
4260 WaitObject aWait( rDocShell.GetActiveDialogParent() ); in FillAuto()
4289 rDocShell.GetUndoManager()->AddUndoAction( in FillAuto()
4290 new ScUndoAutoFill( &rDocShell, aDestArea, aSourceArea, pUndoDoc, aMark, in FillAuto()
4295 rDocShell.PostPaintGridAll(); in FillAuto()
4307 ScDocShellModificator aModificator( rDocShell ); in MergeCells()
4309 ScDocument* pDoc = rDocShell.GetDocument(); in MergeCells()
4323 rDocShell.ErrorMessage(aTester.GetMessageId()); in MergeCells()
4338 rDocShell.ErrorMessage(STR_MSSG_MERGECELLS_0); in MergeCells()
4374 rDocShell.GetUndoManager()->AddUndoAction( in MergeCells()
4375 new ScUndoMerge( &rDocShell, in MergeCells()
4381 rDocShell.PostPaint( nStartCol, nStartRow, nTab, in MergeCells()
4387 SfxBindings* pBindings = rDocShell.GetViewBindings(); in MergeCells()
4400 ScDocShellModificator aModificator( rDocShell ); in UnmergeCells()
4402 ScDocument* pDoc = rDocShell.GetDocument(); in UnmergeCells()
4420 rDocShell.GetUndoManager()->AddUndoAction( in UnmergeCells()
4421 new ScUndoRemoveMerge( &rDocShell, rRange, pUndoDoc ) ); in UnmergeCells()
4438 rDocShell.PostPaint( aExtended, PAINT_GRID ); in UnmergeCells()
4456 ScDocShellModificator aModificator( rDocShell ); in SetNewRangeNames()
4459 ScDocument* pDoc = rDocShell.GetDocument(); in SetNewRangeNames()
4467 rDocShell.GetUndoManager()->AddUndoAction( in SetNewRangeNames()
4468 new ScUndoRangeNames( &rDocShell, pUndoRanges, pRedoRanges ) ); in SetNewRangeNames()
4502 ScDocument* pDoc = rDocShell.GetDocument(); in CreateOneName()
4532 short nResult = QueryBox( rDocShell.GetActiveDialogParent(), in CreateOneName()
4567 ScDocShellModificator aModificator( rDocShell ); in CreateNames()
4587 ScDocument* pDoc = rDocShell.GetDocument(); in CreateNames()
4651 ScDocShellModificator aModificator( rDocShell ); in InsertNameList()
4655 ScDocument* pDoc = rDocShell.GetDocument(); in InsertNameList()
4732 rDocShell.GetUndoManager()->AddUndoAction( in InsertNameList()
4733 new ScUndoListNames( &rDocShell, in InsertNameList()
4739 rDocShell.PostPaint( nStartCol,nStartRow,nTab, nEndCol,nEndRow,nTab, PAINT_GRID ); in InsertNameList()
4745 rDocShell.ErrorMessage(aTester.GetMessageId()); in InsertNameList()
4754 ScDocument* pDoc = rDocShell.GetDocument(); in ResizeMatrix()
4769 rDocShell.GetUndoManager()->EnterListAction( aUndo, aUndo ); in ResizeMatrix()
4791 rDocShell.GetUndoManager()->LeaveListAction(); in ResizeMatrix()
4806 ScDocument* pDoc = rDocShell.GetDocument(); in InsertAreaLink()
4830 rDocShell.GetUndoManager()->EnterListAction( aUndo, aUndo ); in InsertAreaLink()
4834 rDocShell.GetUndoManager()->AddUndoAction( in InsertAreaLink()
4835 new ScUndoRemoveAreaLink( &rDocShell, in InsertAreaLink()
4856 ScAreaLink* pLink = new ScAreaLink( &rDocShell, rFile, aFilterName, in InsertAreaLink()
4864 rDocShell.GetUndoManager()->AddUndoAction( new ScUndoInsertAreaLink( &rDocShell, in InsertAreaLink()
4868rDocShell.GetUndoManager()->LeaveListAction(); // undo for link update is still separate in InsertAreaLink()
4879 SfxBindings* pBindings = rDocShell.GetViewBindings(); in InsertAreaLink()