summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--automation/source/server/server.cxx19
1 files changed, 17 insertions, 2 deletions
diff --git a/automation/source/server/server.cxx b/automation/source/server/server.cxx
index c802d7296048..87f299f9ca43 100644
--- a/automation/source/server/server.cxx
+++ b/automation/source/server/server.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: server.cxx,v $
- * $Revision: 1.24 $
+ * $Revision: 1.25 $
*
* This file is part of OpenOffice.org.
*
@@ -74,7 +74,8 @@
#include "rcontrol.hxx"
#include "server.hxx"
#include "testtool.hxx"
-#include <automation/automation.hxx>
+#include "automation/automation.hxx"
+#include "recorder.hxx"
#include "basic/svtmsg.hrc"
@@ -888,6 +889,10 @@ ImplRemoteControl::ImplRemoteControl()
ImplRemoteControl::~ImplRemoteControl()
{
+ if ( MacroRecorder::HasMacroRecorder() )
+ MacroRecorder::GetMacroRecorder()->SetActionRecord( FALSE ); // Will delete MacroRecorder if necessary
+
+
StatementList::bDying = TRUE;
#if OSL_DEBUG_LEVEL > 1
if ( m_pDbgWin )
@@ -964,3 +969,13 @@ extern "C" void DestroyRemoteControl()
pRemoteControl = 0;
}
+extern "C" void CreateEventLogger()
+{
+ MacroRecorder::GetMacroRecorder()->SetActionLog();
+}
+
+extern "C" void DestroyEventLogger()
+{
+ MacroRecorder::GetMacroRecorder()->SetActionLog( FALSE ); // Will delete MacroRecorder if necessary
+}
+