From 66e367284fa328ab06d2252b975401c393b96ab8 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Thu, 15 May 2003 09:52:34 +0000 Subject: INTEGRATION: CWS fwk02 (1.17.24); FILE MERGED 2003/05/13 09:19:14 as 1.17.24.3: #109316# undo cosmetic fixes 2003/05/08 09:58:00 as 1.17.24.2: #109316# show assertion for non recordable items, so they can be checked 2003/05/08 07:51:41 as 1.17.24.1: #109316# ignore non recordable items --- framework/source/recording/dispatchrecorder.cxx | 28 +++++++++++++++++-------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'framework/source/recording/dispatchrecorder.cxx') diff --git a/framework/source/recording/dispatchrecorder.cxx b/framework/source/recording/dispatchrecorder.cxx index 20f0f0c5bfa7..202be3676801 100644 --- a/framework/source/recording/dispatchrecorder.cxx +++ b/framework/source/recording/dispatchrecorder.cxx @@ -309,7 +309,7 @@ void SAL_CALL DispatchRecorder::AppendToBuffer( css::uno::Any aValue, ::rtl::OUS { aNew = m_xConverter->convertToSimpleType( aValue, css::uno::TypeClass_STRING ); } - catch (css::script::CannotConvertException&) { LOG_WARNING("","Type not scriptable!") } + catch (css::script::CannotConvertException&) {} catch (css::uno::Exception&) {} ::rtl::OUString sVal; aNew >>= sVal; @@ -331,6 +331,9 @@ void SAL_CALL DispatchRecorder::implts_recordMacro( const ::rtl::OUString& aURL, { ::rtl::OUStringBuffer aArgumentBuffer(1000); ::rtl::OUString sArrayName; + // this value is used to name the arrays of aArgumentBuffer + sArrayName = ::rtl::OUString::createFromAscii("args"); + sArrayName += ::rtl::OUString::valueOf((sal_Int32)m_nRecordingID); aScriptBuffer.appendAscii("rem ----------------------------------------------------------------------\n"); @@ -338,15 +341,22 @@ void SAL_CALL DispatchRecorder::implts_recordMacro( const ::rtl::OUString& aURL, sal_Int32 nValidArgs = 0; for( sal_Int32 i=0; i