summaryrefslogtreecommitdiff
path: root/xmloff/source/script
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2006-06-26 08:55:12 +0000
committerRüdiger Timm <rt@openoffice.org>2006-06-26 08:55:12 +0000
commitdd3fe9bbaa3f7e0a39c925add4235327f27b1de6 (patch)
tree40fd756ef75ac479f482a44deb4414fe3b8d93a3 /xmloff/source/script
parent5b5f31b5092f3f7a87e75e794c36cb26866333c9 (diff)
#136940# Fixed by mav.
Diffstat (limited to 'xmloff/source/script')
-rw-r--r--xmloff/source/script/xmlscripti.cxx17
1 files changed, 14 insertions, 3 deletions
diff --git a/xmloff/source/script/xmlscripti.cxx b/xmloff/source/script/xmlscripti.cxx
index b05a2ae792ce..a733eef7589b 100644
--- a/xmloff/source/script/xmlscripti.cxx
+++ b/xmloff/source/script/xmlscripti.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: xmlscripti.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 14:21:30 $
+ * last change: $Author: rt $ $Date: 2006-06-26 09:55:12 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -156,7 +156,18 @@ SvXMLImportContext* XMLScriptContext::CreateChildContext(
if ( xAttrList.is() )
{
::rtl::OUString aLanguage = xAttrList->getValueByName( aAttrName );
- pContext = new XMLScriptChildContext( GetImport(), nPrefix, rLName, m_xModel, aLanguage );
+
+ if ( m_xModel.is() )
+ {
+ uno::Sequence< beans::PropertyValue > aMedDescr = m_xModel->getArgs();
+ sal_Int32 nNewLen = aMedDescr.getLength() + 1;
+ aMedDescr.realloc( nNewLen );
+ aMedDescr[nNewLen-1].Name = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "BreakMacroSignature" ) );
+ aMedDescr[nNewLen-1].Value <<= (sal_Bool)sal_True;
+ m_xModel->attachResource( m_xModel->getURL(), aMedDescr );
+
+ pContext = new XMLScriptChildContext( GetImport(), nPrefix, rLName, m_xModel, aLanguage );
+ }
}
}
}