diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-01-27 15:03:39 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-01-27 15:04:26 +0100 |
commit | 452d86c9cbfb6b4b7e86426931a0d982dd8bb180 (patch) | |
tree | 4f80b7cc380d731c71f566ee7e91b2e300126360 /chart2/source/model | |
parent | db59e4481614f58e111a86a1926e49fb523ebbae (diff) |
Replace SvtUndoOptions with (simplified) direct configuration access.
Also, code in sw can be simplified under the premise that always
/org.openoffice.Office.Common/Undo/Steps > 0.
Diffstat (limited to 'chart2/source/model')
-rw-r--r-- | chart2/source/model/main/UndoManager.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chart2/source/model/main/UndoManager.cxx b/chart2/source/model/main/UndoManager.cxx index 919c0fae71dd..a4b876ff2426 100644 --- a/chart2/source/model/main/UndoManager.cxx +++ b/chart2/source/model/main/UndoManager.cxx @@ -33,9 +33,10 @@ #include <com/sun/star/lang/DisposedException.hpp> /** === end UNO includes === **/ +#include <comphelper/processfactory.hxx> #include <framework/undomanagerhelper.hxx> +#include <officecfg/Office/Common.hxx> #include <svl/undo.hxx> -#include <unotools/undoopt.hxx> //...................................................................................................................... namespace chart @@ -85,7 +86,9 @@ namespace chart ,m_aUndoManager() ,m_aUndoHelper( *this ) { - m_aUndoManager.SetMaxUndoActionCount( (sal_uInt16)SvtUndoOptions().GetUndoCount() ); + m_aUndoManager.SetMaxUndoActionCount( + officecfg::Office::Common::Undo::Steps::get( + comphelper::getProcessComponentContext())); } virtual ~UndoManager_Impl() |