diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2008-07-17 14:16:58 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2008-07-17 14:16:58 +0000 |
commit | f794fef25f34fcb2d8643f97d7a6b3cc1ddc8d81 (patch) | |
tree | 6c356ad6edaddacb0adec62a47402057ab3f89af | |
parent | 2689ab198207cfc9aac755b864f65cd42626c521 (diff) |
INTEGRATION: CWS logger2 (1.24.4); FILE MERGED
2008/05/21 11:54:01 gh 1.24.4.1: #i88653# VCL Logger added to Macro recorder in sts library
-rw-r--r-- | automation/source/server/server.cxx | 19 |
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 +} + |