From f794fef25f34fcb2d8643f97d7a6b3cc1ddc8d81 Mon Sep 17 00:00:00 2001 From: Ivo Hinkelmann Date: Thu, 17 Jul 2008 14:16:58 +0000 Subject: 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 --- automation/source/server/server.cxx | 19 +++++++++++++++++-- 1 file 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 +#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 +} + -- cgit