summaryrefslogtreecommitdiffstats
path: root/chart2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-01-27 15:03:39 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-01-27 15:04:26 +0100
commit452d86c9cbfb6b4b7e86426931a0d982dd8bb180 (patch)
tree4f80b7cc380d731c71f566ee7e91b2e300126360 /chart2
parentDo not move nCurUndoAction < 0. (diff)
downloadcore-452d86c9cbfb6b4b7e86426931a0d982dd8bb180.tar.gz
core-452d86c9cbfb6b4b7e86426931a0d982dd8bb180.zip
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')
-rw-r--r--chart2/source/model/main/UndoManager.cxx7
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()