diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-01-10 12:19:50 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-01-10 12:19:50 +0000 |
commit | 00c2f9f0a0435f96a527f5753a8498047dcea0b8 (patch) | |
tree | 43033278a47b6086be79c585ca7f9830ea30a58c /sc/source/ui/view/auditsh.cxx | |
parent | INTEGRATION: CWS xmlfilter02 (1.1.2); FILE ADDED (diff) | |
download | core-00c2f9f0a0435f96a527f5753a8498047dcea0b8.tar.gz core-00c2f9f0a0435f96a527f5753a8498047dcea0b8.zip |
INTEGRATION: CWS xmlfilter02 (1.5.194); FILE MERGED
2007/05/08 16:08:31 dr 1.5.194.2: #i10000# warning
2007/04/17 11:02:43 tbe 1.5.194.1: #i76026# API: Undo history must be disabled while loading file
Diffstat (limited to 'sc/source/ui/view/auditsh.cxx')
-rw-r--r-- | sc/source/ui/view/auditsh.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sc/source/ui/view/auditsh.cxx b/sc/source/ui/view/auditsh.cxx index e58cd930d661..da09838174ec 100644 --- a/sc/source/ui/view/auditsh.cxx +++ b/sc/source/ui/view/auditsh.cxx @@ -4,9 +4,9 @@ * * $RCSfile: auditsh.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: kz $ $Date: 2006-07-21 14:50:46 $ + * last change: $Author: obo $ $Date: 2008-01-10 13:19:50 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -51,6 +51,7 @@ #include "tabvwsh.hxx" #include "scresid.hxx" #include "sc.hrc" +#include "document.hxx" //------------------------------------------------------------------------ @@ -75,7 +76,12 @@ ScAuditingShell::ScAuditingShell(ScViewData* pData) : nFunction( SID_FILL_ADD_PRED ) { SetPool( &pViewData->GetViewShell()->GetPool() ); - SetUndoManager( pViewData->GetSfxDocShell()->GetUndoManager() ); + SfxUndoManager* pMgr = pViewData->GetSfxDocShell()->GetUndoManager(); + SetUndoManager( pMgr ); + if ( !pViewData->GetDocument()->IsUndoEnabled() ) + { + pMgr->SetMaxUndoActionCount( 0 ); + } SetHelpId( HID_SCSHELL_AUDIT ); SetName(String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("Auditing"))); } |