Lines Matching refs:rDocShell
109 ScDrawLayer* pDrawLayer = rDocShell.GetDocument()->GetDrawLayer(); in IMPL_LINK()
113 rDocShell.GetUndoManager()->AddUndoAction( new ScUndoDraw( pUndoAction, &rDocShell ) ); in IMPL_LINK()
114 rDocShell.SetDrawModified(); in IMPL_LINK()
117 ScDocument* pDoc = rDocShell.GetDocument(); in IMPL_LINK()
130 void lcl_PaintAbove( ScDocShell& rDocShell, const ScRange& rRange ) in lcl_PaintAbove() argument
137 rDocShell.PostPaint( ScRange(0,nRow,nTab, MAXCOL,nRow,nTab), PAINT_GRID ); in lcl_PaintAbove()
145 ScDocument* pDoc = rDocShell.GetDocument(); in AdjustRowHeight()
160 ScSizeDeviceProvider aProv( &rDocShell ); in AdjustRowHeight()
167 rDocShell.PostPaint( 0, nStartRow, nTab, MAXCOL, MAXROW, nTab, in AdjustRowHeight()
178 ScDocShellModificator aModificator( rDocShell ); in DetectiveAddPred()
180 rDocShell.MakeDrawLayer(); in DetectiveAddPred()
181 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveAddPred()
200 rDocShell.GetUndoManager()->AddUndoAction( in DetectiveAddPred()
201 new ScUndoDetective( &rDocShell, pUndo, &aOperation ) ); in DetectiveAddPred()
204 SfxBindings* pBindings = rDocShell.GetViewBindings(); in DetectiveAddPred()
216 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveDelPred()
223 ScDocShellModificator aModificator( rDocShell ); in DetectiveDelPred()
241 rDocShell.GetUndoManager()->AddUndoAction( in DetectiveDelPred()
242 new ScUndoDetective( &rDocShell, pUndo, &aOperation ) ); in DetectiveDelPred()
245 SfxBindings* pBindings = rDocShell.GetViewBindings(); in DetectiveDelPred()
257 ScDocShellModificator aModificator( rDocShell ); in DetectiveAddSucc()
259 rDocShell.MakeDrawLayer(); in DetectiveAddSucc()
260 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveAddSucc()
280 rDocShell.GetUndoManager()->AddUndoAction( in DetectiveAddSucc()
281 new ScUndoDetective( &rDocShell, pUndo, &aOperation ) ); in DetectiveAddSucc()
284 SfxBindings* pBindings = rDocShell.GetViewBindings(); in DetectiveAddSucc()
296 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveDelSucc()
303 ScDocShellModificator aModificator( rDocShell ); in DetectiveDelSucc()
321 rDocShell.GetUndoManager()->AddUndoAction( in DetectiveDelSucc()
322 new ScUndoDetective( &rDocShell, pUndo, &aOperation ) ); in DetectiveDelSucc()
325 SfxBindings* pBindings = rDocShell.GetViewBindings(); in DetectiveDelSucc()
337 ScDocShellModificator aModificator( rDocShell ); in DetectiveAddError()
339 rDocShell.MakeDrawLayer(); in DetectiveAddError()
340 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveAddError()
360 rDocShell.GetUndoManager()->AddUndoAction( in DetectiveAddError()
361 new ScUndoDetective( &rDocShell, pUndo, &aOperation ) ); in DetectiveAddError()
364 SfxBindings* pBindings = rDocShell.GetViewBindings(); in DetectiveAddError()
376 ScDocShellModificator aModificator( rDocShell ); in DetectiveMarkInvalid()
378 rDocShell.MakeDrawLayer(); in DetectiveMarkInvalid()
379 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveMarkInvalid()
384 Window* pWaitWin = rDocShell.GetActiveDialogParent(); in DetectiveMarkInvalid()
401 rDocShell.GetUndoManager()->AddUndoAction( pUndo ); in DetectiveMarkInvalid()
418 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveDelAll()
425 ScDocShellModificator aModificator( rDocShell ); in DetectiveDelAll()
444 rDocShell.GetUndoManager()->AddUndoAction( in DetectiveDelAll()
445 new ScUndoDetective( &rDocShell, pUndo, NULL, pUndoList ) ); in DetectiveDelAll()
448 SfxBindings* pBindings = rDocShell.GetViewBindings(); in DetectiveDelAll()
461 ScDocument* pDoc = rDocShell.GetDocument(); in DetectiveRefresh()
467 rDocShell.MakeDrawLayer(); in DetectiveRefresh()
520 rDocShell.GetUndoManager()->AddUndoAction( in DetectiveRefresh()
521 new ScUndoDraw( pUndo, &rDocShell ), in DetectiveRefresh()
525 rDocShell.SetDrawModified(); in DetectiveRefresh()
536 ScDocShellModificator aModificator( rDocShell ); in DeleteContents()
544 ScDocument* pDoc = rDocShell.GetDocument(); in DeleteContents()
553 rDocShell.ErrorMessage(aTester.GetMessageId()); in DeleteContents()
590 rDocShell.UpdatePaintExt( nExtFlags, aMarkRange ); in DeleteContents()
644 rDocShell.GetUndoManager()->AddUndoAction( in DeleteContents()
645 new ScUndoDeleteContents( &rDocShell, aMultiMark, aExtendedRange, in DeleteContents()
649 rDocShell.PostPaint( aExtendedRange, PAINT_GRID, nExtFlags ); in DeleteContents()
651 lcl_PaintAbove( rDocShell, aExtendedRange ); // fuer Linien ueber dem Bereich in DeleteContents()
677 ScDocShellModificator aModificator( rDocShell ); in TransliterateText()
679 ScDocument* pDoc = rDocShell.GetDocument(); in TransliterateText()
687 rDocShell.ErrorMessage(aTester.GetMessageId()); in TransliterateText()
713 rDocShell.GetUndoManager()->AddUndoAction( in TransliterateText()
714 new ScUndoTransliterate( &rDocShell, aMultiMark, pUndoDoc, nType ) ); in TransliterateText()
720 rDocShell.PostPaint( aMarkRange, PAINT_GRID ); in TransliterateText()
731 ScDocShellModificator aModificator( rDocShell ); in SetNormalString()
732 ScDocument* pDoc = rDocShell.GetDocument(); in SetNormalString()
739 rDocShell.ErrorMessage(aTester.GetMessageId()); in SetNormalString()
775 …rDocShell.GetUndoManager()->AddUndoAction(new ScUndoEnterData( &rDocShell, rPos.Col(),rPos.Row(),r… in SetNormalString()
782 rDocShell.PostPaintCell( rPos ); in SetNormalString()
794 ScDocShellModificator aModificator( rDocShell ); in PutCell()
795 ScDocument* pDoc = rDocShell.GetDocument(); in PutCell()
806 rDocShell.ErrorMessage(aTester.GetMessageId()); in PutCell()
826 rDocShell.GetUndoManager()->AddUndoAction( in PutCell()
827 new ScUndoPutCell( &rDocShell, rPos, pUndoCell, pRedoCell, bHeight ) ); in PutCell()
834 rDocShell.PostPaintCell( rPos ); in PutCell()
849 if ( pViewSh && pViewSh->GetViewData()->GetDocShell() == &rDocShell ) in NotifyInputHandler()
881 ScDocument* pDoc = rDocShell.GetDocument(); in PutData()
983 ScDocument* pDoc = rDocShell.GetDocument(); in InterpretEnglishString()
1038 ScDocument* pDoc = rDocShell.GetDocument(); in SetCellText()
1071 ScDocument& rDoc = *rDocShell.GetDocument(); in ShowNote()
1078 … rDocShell.GetUndoManager()->AddUndoAction( new ScUndoShowHideNote( rDocShell, rPos, bShow ) ); in ShowNote()
1083 rDocShell.SetDocumentModified(); in ShowNote()
1092 ScDocShellModificator aModificator( rDocShell ); in SetNoteText()
1094 ScDocument* pDoc = rDocShell.GetDocument(); in SetNoteText()
1099 rDocShell.ErrorMessage(aTester.GetMessageId()); in SetNoteText()
1114 rDocShell.PostPaintCell( rPos ); in SetNoteText()
1126 ScDocShellModificator aModificator( rDocShell ); in ReplaceNote()
1127 ScDocument& rDoc = *rDocShell.GetDocument(); in ReplaceNote()
1132 …::svl::IUndoManager* pUndoMgr = (pDrawLayer && rDoc.IsUndoEnabled()) ? rDocShell.GetUndoManager() … in ReplaceNote()
1163 …pUndoMgr->AddUndoAction( new ScUndoReplaceNote( rDocShell, rPos, aOldData, aNewData, pDrawLayer->G… in ReplaceNote()
1166 rDocShell.PostPaintCell( rPos ); in ReplaceNote()
1176 rDocShell.ErrorMessage(aTester.GetMessageId()); in ReplaceNote()
1187 ScDocument* pDoc = rDocShell.GetDocument(); in ApplyAttributes()
1199 rDocShell.ErrorMessage(STR_PROTECTIONERR); in ApplyAttributes()
1203 ScDocShellModificator aModificator( rDocShell ); in ApplyAttributes()
1220 rDocShell.GetUndoManager()->AddUndoAction( in ApplyAttributes()
1222 &rDocShell, rMark, in ApplyAttributes()
1231 rDocShell.UpdatePaintExt( nExtFlags, aMultiRange ); // content before the change in ApplyAttributes()
1234 rDocShell.UpdatePaintExt( nExtFlags, aMultiRange ); // content after the change in ApplyAttributes()
1237 rDocShell.PostPaint( aMultiRange, PAINT_GRID, nExtFlags ); in ApplyAttributes()
1239 lcl_PaintAbove( rDocShell, aMultiRange ); // fuer Linien ueber dem Bereich in ApplyAttributes()
1250 ScDocument* pDoc = rDocShell.GetDocument(); in ApplyStyle()
1262 rDocShell.ErrorMessage(STR_PROTECTIONERR); in ApplyStyle()
1271 ScDocShellModificator aModificator( rDocShell ); in ApplyStyle()
1295 rDocShell.GetUndoManager()->AddUndoAction( in ApplyStyle()
1297 &rDocShell, rMark, aMultiRange, rStyleName, pUndoDoc ) ); in ApplyStyle()
1311 rDocShell.PostPaint( aMultiRange, PAINT_GRID, nExtFlags ); in ApplyStyle()
1313 lcl_PaintAbove( rDocShell, aMultiRange ); // fuer Linien ueber dem Bereich in ApplyStyle()
1325 ScDocShellModificator aModificator( rDocShell ); in InsertCells()
1340 ScDocument* pDoc = rDocShell.GetDocument(); in InsertCells()
1350 ScTabViewShell* pViewSh = rDocShell.GetBestViewShell(); //preserve current cursor position in InsertCells()
1435 rDocShell.ErrorMessage(aTester.GetMessageId()); in InsertCells()
1439 …WaitObject aWait( rDocShell.GetActiveDialogParent() ); // wichtig wegen TrackFormulas bei Upd… in InsertCells()
1461 rDocShell.GetUndoManager()->EnterListAction( aUndo, aUndo ); in InsertCells()
1484 rDocShell.ErrorMessage(STR_MSSG_INSERTCELLS_0); in InsertCells()
1485 rDocShell.GetUndoManager()->LeaveListAction(); in InsertCells()
1582 rDocShell.ErrorMessage(STR_MSSG_INSERTCELLS_0); in InsertCells()
1583 rDocShell.GetUndoManager()->LeaveListAction(); in InsertCells()
1647 rDocShell.GetUndoManager()->LeaveListAction(); in InsertCells()
1650 rDocShell.GetUndoManager()->AddUndoAction( new ScUndoInsertCells( in InsertCells()
1651 &rDocShell, ScRange( nStartCol, nStartRow, nStartTab, nEndCol, nEndRow, nEndTab ), in InsertCells()
1681 rDocShell.GetUndoManager()->LeaveListAction(); in InsertCells()
1696 … rDocShell.UpdatePaintExt( nExtFlags, nPaintStartX, nPaintStartY, i, nPaintEndX, nPaintEndY, i ); in InsertCells()
1709 …rDocShell.PostPaint( nPaintStartX, nPaintStartY, i, nPaintEndX, nPaintEndY, i+nScenarioCount, PAIN… in InsertCells()
1712 …rDocShell.PostPaint( nPaintStartX, nPaintStartY, i, nPaintEndX, nPaintEndY, i+nScenarioCount, nPai… in InsertCells()
1735 rDocShell.GetUndoManager()->LeaveListAction(); in InsertCells()
1736 rDocShell.GetUndoManager()->RemoveLastUndoAction(); in InsertCells()
1741 rDocShell.ErrorMessage(STR_INSERT_FULL); // Spalte/Zeile voll in InsertCells()
1753 ScDocShellModificator aModificator( rDocShell ); in DeleteCells()
1768 ScDocument* pDoc = rDocShell.GetDocument(); in DeleteCells()
1849 rDocShell.ErrorMessage(aTester.GetMessageId()); in DeleteCells()
1867 rDocShell.GetUndoManager()->EnterListAction( aUndo, aUndo ); in DeleteCells()
1886 rDocShell.ErrorMessage(STR_MSSG_DELETECELLS_0); in DeleteCells()
1887 rDocShell.GetUndoManager()->LeaveListAction(); in DeleteCells()
1991 rDocShell.ErrorMessage(STR_MSSG_DELETECELLS_0); in DeleteCells()
1992 rDocShell.GetUndoManager()->LeaveListAction(); in DeleteCells()
2003 …WaitObject aWait( rDocShell.GetActiveDialogParent() ); // wichtig wegen TrackFormulas bei Upd… in DeleteCells()
2041 rDocShell.UpdatePaintExt( nExtFlags, nStartCol, nStartRow, i, nEndCol, nEndRow, i ); in DeleteCells()
2109 rDocShell.GetUndoManager()->LeaveListAction(); in DeleteCells()
2112 rDocShell.GetUndoManager()->AddUndoAction( new ScUndoDeleteCells( in DeleteCells()
2113 …&rDocShell, ScRange( nStartCol, nStartRow, nStartTab, nEndCol, nEndRow, nEndTab ),nUndoPos, pTabs,… in DeleteCells()
2167 rDocShell.GetUndoManager()->LeaveListAction(); in DeleteCells()
2205 … rDocShell.UpdatePaintExt( nExtFlags, nPaintStartX, nPaintStartY, i, nPaintEndX, nPaintEndY, i ); in DeleteCells()
2214 …rDocShell.PostPaint( nPaintStartX, nPaintStartY, i, nPaintEndX, nPaintEndY, i+nScenarioCount, nPai… in DeleteCells()
2219 …lcl_PaintAbove( rDocShell, ScRange( nPaintStartX, nPaintStartY, i, nPaintEndX, nPaintEndY, i+nScen… in DeleteCells()
2221 …rDocShell.PostPaint( nPaintStartX, nPaintStartY, i, nPaintEndX, nPaintEndY, i+nScenarioCount, PAIN… in DeleteCells()
2235 ScDocShellModificator aModificator( rDocShell ); in MoveBlock()
2255 ScDocument* pDoc = rDocShell.GetDocument(); in MoveBlock()
2326 rDocShell.ErrorMessage(STR_PASTE_FULL); in MoveBlock()
2343 rDocShell.ErrorMessage(aTester.GetMessageId()); in MoveBlock()
2355 rDocShell.ErrorMessage(STR_MSSG_MOVEBLOCKTO_0); in MoveBlock()
2363 rDocShell.UpdatePaintExt( nSourceExt, nStartCol,nStartRow,nStartTab, nEndCol,nEndRow,nEndTab ); in MoveBlock()
2365 …rDocShell.UpdatePaintExt( nDestExt, nDestCol,nDestRow,nDestTab, nDestEndCol,nDestEndRow,nDestEndTa… in MoveBlock()
2430 rDocShell.ErrorMessage(STR_MSSG_MOVEBLOCKTO_0); in MoveBlock()
2491 rDocShell.GetUndoManager()->AddUndoAction( in MoveBlock()
2492 new ScUndoDragDrop( &rDocShell, ScRange( in MoveBlock()
2546 rDocShell.PostPaint( nPaintStartX,nPaintStartY,nDestTab, in MoveBlock()
2574 rDocShell.PostPaint( nPaintStartX,nPaintStartY,nStartTab, in MoveBlock()
2686 WaitObject aWait( rDocShell.GetActiveDialogParent() ); in InsertTable()
2688 ScDocShellModificator aModificator( rDocShell ); in InsertTable()
2690 ScDocument* pDoc = rDocShell.GetDocument(); in InsertTable()
2697 if( !rDocShell.GetDocument()->IsImportingXML() ) in InsertTable()
2716 rDocShell.GetUndoManager()->AddUndoAction( in InsertTable()
2717 new ScUndoInsertTab( &rDocShell, nTab, bAppend, rName)); in InsertTable()
2725 rDocShell.Broadcast( ScTablesHint( SC_TAB_INSERTED, nTab ) ); in InsertTable()
2727 rDocShell.PostPaintExtras(); in InsertTable()
2733 rDocShell.ErrorMessage(STR_TABINSERT_ERROR); in InsertTable()
2740 WaitObject aWait( rDocShell.GetActiveDialogParent() ); in DeleteTable()
2742 ScDocShellModificator aModificator( rDocShell ); in DeleteTable()
2745 ScDocument* pDoc = rDocShell.GetDocument(); in DeleteTable()
2801 rDocShell.GetUndoManager()->AddUndoAction( in DeleteTable()
2802 new ScUndoDeleteTab( &rDocShell, theTabs, pUndoDoc, pUndoData )); in DeleteTable()
2809 VBA_DeleteModule( rDocShell, sCodeName ); in DeleteTable()
2812 rDocShell.Broadcast( ScTablesHint( SC_TAB_DELETED, nTab ) ); in DeleteTable()
2816 rDocShell.UpdateLinks(); // Link-Manager updaten in DeleteTable()
2817 SfxBindings* pBindings = rDocShell.GetViewBindings(); in DeleteTable()
2822 rDocShell.PostPaintExtras(); in DeleteTable()
2842 ScDocument* pDoc = rDocShell.GetDocument(); in SetTableVisible()
2850 rDocShell.ErrorMessage(STR_PROTECTIONERR); in SetTableVisible()
2854 ScDocShellModificator aModificator( rDocShell ); in SetTableVisible()
2869 rDocShell.ErrorMessage(STR_PROTECTIONERR); //! eigene Meldung? in SetTableVisible()
2876 … rDocShell.GetUndoManager()->AddUndoAction( new ScUndoShowHideTab( &rDocShell, nTab, bVisible ) ); in SetTableVisible()
2880 rDocShell.Broadcast( ScTablesHint( SC_TAB_HIDDEN, nTab ) ); in SetTableVisible()
2883 rDocShell.PostPaint(0,0,0,MAXCOL,MAXROW,MAXTAB, PAINT_EXTRAS); in SetTableVisible()
2891 ScDocument* pDoc = rDocShell.GetDocument(); in SetLayoutRTL()
2898 ScDocShellModificator aModificator( rDocShell ); in SetLayoutRTL()
2904 rDocShell.GetUndoManager()->AddUndoAction( new ScUndoLayoutRTL( &rDocShell, nTab, bRTL ) ); in SetLayoutRTL()
2907 rDocShell.PostPaint( 0,0,0,MAXCOL,MAXROW,MAXTAB, PAINT_ALL ); in SetLayoutRTL()
2910 SfxBindings* pBindings = rDocShell.GetViewBindings(); in SetLayoutRTL()
2959 ScDocument* pDoc = rDocShell.GetDocument(); in RenameTable()
2965 rDocShell.ErrorMessage(STR_PROTECTIONERR); in RenameTable()
2969 ScDocShellModificator aModificator( rDocShell ); in RenameTable()
2978 rDocShell.GetUndoManager()->AddUndoAction( in RenameTable()
2979 new ScUndoRenameTab( &rDocShell, nTab, sOldName, rName)); in RenameTable()
2981 rDocShell.PostPaintExtras(); in RenameTable()
2993 ScDocument* pDoc = rDocShell.GetDocument(); in SetTabBgColor()
2999 rDocShell.ErrorMessage(STR_PROTECTIONERR); //TODO Check to see what this string is... in SetTabBgColor()
3014 rDocShell.GetUndoManager()->AddUndoAction( in SetTabBgColor()
3015 new ScUndoTabColor( &rDocShell, nTab, aOldTabBgColor, rColor)); in SetTabBgColor()
3017 rDocShell.PostPaintExtras(); in SetTabBgColor()
3018 ScDocShellModificator aModificator( rDocShell ); in SetTabBgColor()
3030 ScDocument* pDoc = rDocShell.GetDocument(); in SetTabBgColor()
3037 rDocShell.ErrorMessage(STR_PROTECTIONERR); //TODO Get a better String Error... in SetTabBgColor()
3070 rDocShell.ErrorMessage(STR_PROTECTIONERR); //TODO Get a better String Error... in SetTabBgColor()
3078 rDocShell.GetUndoManager()->AddUndoAction( in SetTabBgColor()
3079 new ScUndoTabColor( &rDocShell, rUndoTabColorList)); in SetTabBgColor()
3081 rDocShell.PostPaintExtras(); in SetTabBgColor()
3082 ScDocShellModificator aModificator( rDocShell ); in SetTabBgColor()
3095 sal_uInt16 lcl_GetOptimalColWidth( ScDocShell& rDocShell, SCCOL nCol, SCTAB nTab, sal_Bool bFormula… in lcl_GetOptimalColWidth() argument
3099 ScSizeDeviceProvider aProv(&rDocShell); in lcl_GetOptimalColWidth()
3104 ScDocument* pDoc = rDocShell.GetDocument(); in lcl_GetOptimalColWidth()
3116 ScDocShellModificator aModificator( rDocShell ); in SetWidthOrHeight()
3121 ScDocument* pDoc = rDocShell.GetDocument(); in SetWidthOrHeight()
3126 if ( !pDoc->IsChangeReadOnlyEnabled() && !rDocShell.IsEditable() ) in SetWidthOrHeight()
3129 rDocShell.ErrorMessage(STR_PROTECTIONERR); //! eigene Meldung? in SetWidthOrHeight()
3199 ScSizeDeviceProvider aProv( &rDocShell ); in SetWidthOrHeight()
3236 lcl_GetOptimalColWidth( rDocShell, nCol, nTab, bFormula ); in SetWidthOrHeight()
3269 rDocShell.GetUndoManager()->AddUndoAction( in SetWidthOrHeight()
3270 new ScUndoWidthOrHeight( &rDocShell, aMark, in SetWidthOrHeight()
3278 rDocShell.PostPaint(0,0,nTab,MAXCOL,MAXROW,nTab,PAINT_ALL); in SetWidthOrHeight()
3288 ScDocShellModificator aModificator( rDocShell ); in InsertPageBreak()
3290 ScDocument* pDoc = rDocShell.GetDocument(); in InsertPageBreak()
3294 SfxBindings* pBindings = rDocShell.GetViewBindings(); in InsertPageBreak()
3308 rDocShell.GetUndoManager()->AddUndoAction( in InsertPageBreak()
3309 new ScUndoPageBreak( &rDocShell, rPos.Col(), rPos.Row(), nTab, bColumn, sal_True ) ); in InsertPageBreak()
3324 … rDocShell.PostPaint( static_cast<SCCOL>(nPos)-1, 0, nTab, MAXCOL, MAXROW, nTab, PAINT_GRID ); in InsertPageBreak()
3333 … rDocShell.PostPaint( 0, static_cast<SCROW>(nPos)-1, nTab, MAXCOL, MAXROW, nTab, PAINT_GRID ); in InsertPageBreak()
3352 ScDocShellModificator aModificator( rDocShell ); in RemovePageBreak()
3354 ScDocument* pDoc = rDocShell.GetDocument(); in RemovePageBreak()
3358 SfxBindings* pBindings = rDocShell.GetViewBindings(); in RemovePageBreak()
3373 rDocShell.GetUndoManager()->AddUndoAction( in RemovePageBreak()
3374 new ScUndoPageBreak( &rDocShell, rPos.Col(), rPos.Row(), nTab, bColumn, sal_False ) ); in RemovePageBreak()
3388 … rDocShell.PostPaint( static_cast<SCCOL>(nPos)-1, 0, nTab, MAXCOL, MAXROW, nTab, PAINT_GRID ); in RemovePageBreak()
3397 rDocShell.PostPaint( 0, nPos-1, nTab, MAXCOL, MAXROW, nTab, PAINT_GRID ); in RemovePageBreak()
3417 ScDocument* pDoc = rDocShell.GetDocument(); in ProtectSheet()
3428 rDocShell.GetUndoManager()->AddUndoAction( in ProtectSheet()
3429 new ScUndoTabProtect(&rDocShell, nTab, p) ); in ProtectSheet()
3435 rDocShell.PostPaintGridAll(); in ProtectSheet()
3436 ScDocShellModificator aModificator(rDocShell); in ProtectSheet()
3442 ScDocument* pDoc = rDocShell.GetDocument(); in Protect()
3458 rDocShell.GetUndoManager()->AddUndoAction( in Protect()
3459 new ScUndoDocProtect(&rDocShell, p) ); in Protect()
3480 rDocShell.GetUndoManager()->AddUndoAction( in Protect()
3481 new ScUndoTabProtect(&rDocShell, nTab, p) ); in Protect()
3487 rDocShell.PostPaintGridAll(); in Protect()
3488 ScDocShellModificator aModificator( rDocShell ); in Protect()
3496 ScDocument* pDoc = rDocShell.GetDocument(); in Unprotect()
3514 … InfoBox aBox( rDocShell.GetActiveDialogParent(), String( ScResId( SCSTR_WRONGPASSWORD ) ) ); in Unprotect()
3524 rDocShell.GetUndoManager()->AddUndoAction( in Unprotect()
3525 new ScUndoDocProtect(&rDocShell, pProtectCopy) ); in Unprotect()
3544 … InfoBox aBox( rDocShell.GetActiveDialogParent(), String( ScResId( SCSTR_WRONGPASSWORD ) ) ); in Unprotect()
3554 rDocShell.GetUndoManager()->AddUndoAction( in Unprotect()
3555 new ScUndoTabProtect(&rDocShell, nTab, pProtectCopy) ); in Unprotect()
3560 rDocShell.PostPaintGridAll(); in Unprotect()
3561 ScDocShellModificator aModificator( rDocShell ); in Unprotect()
3571 ScDocShellModificator aModificator( rDocShell ); in ClearItems()
3573 ScDocument* pDoc = rDocShell.GetDocument(); in ClearItems()
3579 rDocShell.ErrorMessage(aTester.GetMessageId()); in ClearItems()
3603 rDocShell.GetUndoManager()->AddUndoAction( in ClearItems()
3604 new ScUndoClearItems( &rDocShell, aMultiMark, pUndoDoc, pWhich ) ); in ClearItems()
3609 rDocShell.PostPaint( aMarkRange, PAINT_GRID, SC_PF_LINES | SC_PF_TESTMERGE ); in ClearItems()
3619 ScDocShellModificator aModificator( rDocShell ); in ChangeIndent()
3621 ScDocument* pDoc = rDocShell.GetDocument(); in ChangeIndent()
3627 rDocShell.ErrorMessage(aTester.GetMessageId()); in ChangeIndent()
3651 rDocShell.GetUndoManager()->AddUndoAction( in ChangeIndent()
3652 new ScUndoIndent( &rDocShell, rMark, pUndoDoc, bIncrement ) ); in ChangeIndent()
3657 rDocShell.PostPaint( aMarkRange, PAINT_GRID, SC_PF_LINES | SC_PF_TESTMERGE ); in ChangeIndent()
3660 SfxBindings* pBindings = rDocShell.GetViewBindings(); in ChangeIndent()
3686 ScDocShellModificator aModificator( rDocShell ); in AutoFormat()
3689 ScDocument* pDoc = rDocShell.GetDocument(); in AutoFormat()
3712 WaitObject aWait( rDocShell.GetActiveDialogParent() ); in AutoFormat()
3759 rDocShell.PostPaint( 0,0,nTab, MAXCOL,MAXROW,nTab, in AutoFormat()
3771 rDocShell.PostPaint( 0,nStartRow,nTab, MAXCOL,MAXROW,nTab, in AutoFormat()
3774 rDocShell.PostPaint( nStartCol, nStartRow, nTab, in AutoFormat()
3781 rDocShell.GetUndoManager()->AddUndoAction( in AutoFormat()
3782 new ScUndoAutoFormat( &rDocShell, rRange, pUndoDoc, aMark, bSize, nFormatNo ) ); in AutoFormat()
3788 rDocShell.ErrorMessage(aTester.GetMessageId()); in AutoFormat()
3799 ScDocShellModificator aModificator( rDocShell ); in EnterMatrix()
3802 ScDocument* pDoc = rDocShell.GetDocument(); in EnterMatrix()
3824 WaitObject aWait( rDocShell.GetActiveDialogParent() ); in EnterMatrix()
3867 rDocShell.GetUndoManager()->AddUndoAction( in EnterMatrix()
3868 new ScUndoEnterMatrix( &rDocShell, rRange, pUndoDoc, rString ) ); in EnterMatrix()
3872 rDocShell.PostPaint( nStartCol,nStartRow,nStartTab,nEndCol,nEndRow,nEndTab, PAINT_GRID ); in EnterMatrix()
3878 rDocShell.ErrorMessage(aTester.GetMessageId()); in EnterMatrix()
3888 ScDocShellModificator aModificator( rDocShell ); in TabOp()
3891 ScDocument* pDoc = rDocShell.GetDocument(); in TabOp()
3914 WaitObject aWait( rDocShell.GetActiveDialogParent() ); in TabOp()
3923 rDocShell.GetUndoManager()->AddUndoAction( in TabOp()
3924 new ScUndoTabOp( &rDocShell, in TabOp()
3934 rDocShell.PostPaintGridAll(); in TabOp()
3939 rDocShell.ErrorMessage(aTester.GetMessageId()); in TabOp()
3961 ScDocShellModificator aModificator( rDocShell ); in FillSimple()
3964 ScDocument* pDoc = rDocShell.GetDocument(); in FillSimple()
3987 WaitObject aWait( rDocShell.GetActiveDialogParent() ); in FillSimple()
4038 rDocShell.GetUndoManager()->AddUndoAction( in FillSimple()
4039 new ScUndoAutoFill( &rDocShell, aDestArea, aSourceArea, pUndoDoc, aMark, in FillSimple()
4044 rDocShell.PostPaintGridAll(); in FillSimple()
4051 rDocShell.ErrorMessage(aTester.GetMessageId()); in FillSimple()
4061 ScDocShellModificator aModificator( rDocShell ); in FillSeries()
4064 ScDocument* pDoc = rDocShell.GetDocument(); in FillSeries()
4087 WaitObject aWait( rDocShell.GetActiveDialogParent() ); in FillSeries()
4153 rDocShell.PostPaintGridAll(); in FillSeries()
4160 rDocShell.GetUndoManager()->AddUndoAction( in FillSeries()
4161 new ScUndoAutoFill( &rDocShell, aDestArea, aSourceArea, pUndoDoc, aMark, in FillSeries()
4169 rDocShell.ErrorMessage(aTester.GetMessageId()); in FillSeries()
4177 ScDocShellModificator aModificator( rDocShell ); in FillAuto()
4179 ScDocument* pDoc = rDocShell.GetDocument(); in FillAuto()
4244 rDocShell.ErrorMessage(aTester.GetMessageId()); in FillAuto()
4252 rDocShell.ErrorMessage(STR_MATRIXFRAGMENTERR); in FillAuto()
4256 WaitObject aWait( rDocShell.GetActiveDialogParent() ); in FillAuto()
4285 rDocShell.GetUndoManager()->AddUndoAction( in FillAuto()
4286 new ScUndoAutoFill( &rDocShell, aDestArea, aSourceArea, pUndoDoc, aMark, in FillAuto()
4291 rDocShell.PostPaintGridAll(); in FillAuto()
4303 ScDocShellModificator aModificator( rDocShell ); in MergeCells()
4305 ScDocument* pDoc = rDocShell.GetDocument(); in MergeCells()
4319 rDocShell.ErrorMessage(aTester.GetMessageId()); in MergeCells()
4334 rDocShell.ErrorMessage(STR_MSSG_MERGECELLS_0); in MergeCells()
4370 rDocShell.GetUndoManager()->AddUndoAction( in MergeCells()
4371 new ScUndoMerge( &rDocShell, in MergeCells()
4377 rDocShell.PostPaint( nStartCol, nStartRow, nTab, in MergeCells()
4383 SfxBindings* pBindings = rDocShell.GetViewBindings(); in MergeCells()
4396 ScDocShellModificator aModificator( rDocShell ); in UnmergeCells()
4398 ScDocument* pDoc = rDocShell.GetDocument(); in UnmergeCells()
4416 rDocShell.GetUndoManager()->AddUndoAction( in UnmergeCells()
4417 new ScUndoRemoveMerge( &rDocShell, rRange, pUndoDoc ) ); in UnmergeCells()
4434 rDocShell.PostPaint( aExtended, PAINT_GRID ); in UnmergeCells()
4452 ScDocShellModificator aModificator( rDocShell ); in SetNewRangeNames()
4455 ScDocument* pDoc = rDocShell.GetDocument(); in SetNewRangeNames()
4463 rDocShell.GetUndoManager()->AddUndoAction( in SetNewRangeNames()
4464 new ScUndoRangeNames( &rDocShell, pUndoRanges, pRedoRanges ) ); in SetNewRangeNames()
4498 ScDocument* pDoc = rDocShell.GetDocument(); in CreateOneName()
4528 short nResult = QueryBox( rDocShell.GetActiveDialogParent(), in CreateOneName()
4563 ScDocShellModificator aModificator( rDocShell ); in CreateNames()
4583 ScDocument* pDoc = rDocShell.GetDocument(); in CreateNames()
4647 ScDocShellModificator aModificator( rDocShell ); in InsertNameList()
4651 ScDocument* pDoc = rDocShell.GetDocument(); in InsertNameList()
4728 rDocShell.GetUndoManager()->AddUndoAction( in InsertNameList()
4729 new ScUndoListNames( &rDocShell, in InsertNameList()
4735 rDocShell.PostPaint( nStartCol,nStartRow,nTab, nEndCol,nEndRow,nTab, PAINT_GRID ); in InsertNameList()
4741 rDocShell.ErrorMessage(aTester.GetMessageId()); in InsertNameList()
4750 ScDocument* pDoc = rDocShell.GetDocument(); in ResizeMatrix()
4765 rDocShell.GetUndoManager()->EnterListAction( aUndo, aUndo ); in ResizeMatrix()
4787 rDocShell.GetUndoManager()->LeaveListAction(); in ResizeMatrix()
4802 ScDocument* pDoc = rDocShell.GetDocument(); in InsertAreaLink()
4826 rDocShell.GetUndoManager()->EnterListAction( aUndo, aUndo ); in InsertAreaLink()
4830 rDocShell.GetUndoManager()->AddUndoAction( in InsertAreaLink()
4831 new ScUndoRemoveAreaLink( &rDocShell, in InsertAreaLink()
4852 ScAreaLink* pLink = new ScAreaLink( &rDocShell, rFile, aFilterName, in InsertAreaLink()
4860 rDocShell.GetUndoManager()->AddUndoAction( new ScUndoInsertAreaLink( &rDocShell, in InsertAreaLink()
4864 … rDocShell.GetUndoManager()->LeaveListAction(); // undo for link update is still separate in InsertAreaLink()
4875 SfxBindings* pBindings = rDocShell.GetViewBindings(); in InsertAreaLink()