summaryrefslogtreecommitdiff
path: root/framework/source/recording
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2002-07-08 07:20:17 +0000
committerMathias Bauer <mba@openoffice.org>2002-07-08 07:20:17 +0000
commit9075e7c1379a9121d4968bca723efc760e8f5265 (patch)
treefb212b979434143f417bd6ea51bc6fea03f8bb38 /framework/source/recording
parentcf2fafe0840c5481e1f8a71af24ff52ad3b85b16 (diff)
#100949#: don't record empty macros
Diffstat (limited to 'framework/source/recording')
-rw-r--r--framework/source/recording/dispatchrecorder.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/source/recording/dispatchrecorder.cxx b/framework/source/recording/dispatchrecorder.cxx
index d2d8c06e1d08..c9775b676944 100644
--- a/framework/source/recording/dispatchrecorder.cxx
+++ b/framework/source/recording/dispatchrecorder.cxx
@@ -105,11 +105,14 @@ Sequence< Any > make_seq_out_of_struct(
struct DispatchStatement
{
::rtl::OUString aCommand;
+ ::rtl::OUString aTarget;
css::uno::Sequence < css::beans::PropertyValue > aArgs;
+ sal_Int32 nFlags;
sal_Bool bIsComment;
DispatchStatement( const ::rtl::OUString& rCmd, const css::uno::Sequence< css::beans::PropertyValue >& rArgs, sal_Bool bComment )
: aCommand( rCmd )
+ , nFlags(0)
, bIsComment( bComment )
{
aArgs = rArgs;
@@ -186,6 +189,10 @@ void SAL_CALL DispatchRecorder::endRecording() throw( css::uno::RuntimeException
{
/* SAFE{ */
WriteGuard aWriteLock(m_aLock);
+
+ if ( !m_aStatements.size() )
+ return ::rtl::OUString();
+
::rtl::OUStringBuffer aScriptBuffer;
aScriptBuffer.ensureCapacity(10000);
m_nRecordingID = 1;