diff options
author | Carsten Driesner <cd@openoffice.org> | 2011-01-21 17:18:37 +0100 |
---|---|---|
committer | Carsten Driesner <cd@openoffice.org> | 2011-01-21 17:18:37 +0100 |
commit | d672102cc70fa4b24eed730e89e9e766cc10a525 (patch) | |
tree | ee6e081a403e1e23af6ec7850a34eb10fc7fc8fd /sc/source/ui/docshell/docfunc.cxx | |
parent | 9617758b4b0997f5981a1303684ba9c9a4dd148b (diff) | |
parent | 6f68642b7b2310b902264849a5ffc5dca6c15510 (diff) |
removetooltypes01: Rebase to DEV300m98
Diffstat (limited to 'sc/source/ui/docshell/docfunc.cxx')
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index fa219689d933..7ec023717a6a 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -3126,6 +3126,8 @@ sal_Bool ScDocFunc::SetWidthOrHeight( sal_Bool bWidth, SCCOLROW nRangeCnt, SCCOL ScSizeMode eMode, sal_uInt16 nSizeTwips, sal_Bool bRecord, sal_Bool bApi ) { + ScDocShellModificator aModificator( rDocShell ); + if (!nRangeCnt) return sal_True; @@ -3287,6 +3289,7 @@ sal_Bool ScDocFunc::SetWidthOrHeight( sal_Bool bWidth, SCCOLROW nRangeCnt, SCCOL pDoc->UpdatePageBreaks( nTab ); rDocShell.PostPaint(0,0,nTab,MAXCOL,MAXROW,nTab,PAINT_ALL); + aModificator.SetDocumentModified(); return bSuccess; } @@ -4866,10 +4869,12 @@ sal_Bool ScDocFunc::InsertAreaLink( const String& rFile, const String& rFilter, } // Update hat sein eigenes Undo - - pLink->SetDoInsert(bFitBlock); // beim ersten Update ggf. nichts einfuegen - pLink->Update(); // kein SetInCreate -> Update ausfuehren - pLink->SetDoInsert(sal_True); // Default = TRUE + if (pDoc->IsExecuteLinkEnabled()) + { + pLink->SetDoInsert(bFitBlock); // beim ersten Update ggf. nichts einfuegen + pLink->Update(); // kein SetInCreate -> Update ausfuehren + } + pLink->SetDoInsert(sal_True); // Default = sal_True SfxBindings* pBindings = rDocShell.GetViewBindings(); if (pBindings) |