summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorAndreas Schlüns <as@openoffice.org>2002-09-23 04:50:13 +0000
committerAndreas Schlüns <as@openoffice.org>2002-09-23 04:50:13 +0000
commit9c79fadde3b45fe5973d8eee628f5ad2aa1466f8 (patch)
tree0d755b2b19e9a890eb600119568fca2223f11523 /framework
parent63f395354e9f70bcec0e02d54fae5c95cd39b7b1 (diff)
#103554# repair record as comment mode
Diffstat (limited to 'framework')
-rw-r--r--framework/source/recording/dispatchrecorder.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/framework/source/recording/dispatchrecorder.cxx b/framework/source/recording/dispatchrecorder.cxx
index 35c665105209..3445a0bca980 100644
--- a/framework/source/recording/dispatchrecorder.cxx
+++ b/framework/source/recording/dispatchrecorder.cxx
@@ -145,7 +145,8 @@ void SAL_CALL DispatchRecorder::recordDispatchAsComment( const css::util::URL&
{
::rtl::OUString aTarget;
- com::sun::star::frame::DispatchStatement aStatement( aURL.Complete, aTarget, lArguments, 0, sal_False );
+ // last parameter must be set to true -> it's a comment
+ com::sun::star::frame::DispatchStatement aStatement( aURL.Complete, aTarget, lArguments, 0, sal_True );
m_aStatements.push_back( aStatement );
}
@@ -369,7 +370,7 @@ void SAL_CALL DispatchRecorder::implts_recordMacro( const ::rtl::OUString& aURL,
if(nValidArgs>0)
{
if(bAsComment)
- aArgumentBuffer.appendAscii("rem ");
+ aScriptBuffer.appendAscii("rem ");
aScriptBuffer.appendAscii("dim ");
aScriptBuffer.append (sArrayName);
aScriptBuffer.appendAscii("(");
@@ -381,20 +382,20 @@ void SAL_CALL DispatchRecorder::implts_recordMacro( const ::rtl::OUString& aURL,
// add code for parsing urls
if(bAsComment)
- aArgumentBuffer.appendAscii("rem ");
+ aScriptBuffer.appendAscii("rem ");
aScriptBuffer.appendAscii("url.Complete = \"");
aScriptBuffer.append (aURL);
aScriptBuffer.appendAscii("\"\n");
if(bAsComment)
- aArgumentBuffer.appendAscii("rem ");
+ aScriptBuffer.appendAscii("rem ");
aScriptBuffer.appendAscii("parser.parseStrict(url)\n");
// add code for dispatches
if(bAsComment)
- aArgumentBuffer.appendAscii("rem ");
+ aScriptBuffer.appendAscii("rem ");
aScriptBuffer.appendAscii("disp = document.queryDispatch(url,\"\",0)\n");
if(bAsComment)
- aArgumentBuffer.appendAscii("rem ");
+ aScriptBuffer.appendAscii("rem ");
if(nValidArgs<1)
aScriptBuffer.appendAscii("disp.dispatch(url,noargs())\n");
else