summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2005-05-13 06:31:53 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2005-05-13 06:31:53 +0000
commitc276550e07f8078fe9345985f70e8384d930a83f (patch)
treee5171ebd51ccc542c695c28df5f281a42a90bc6e /xmloff
parent39cadcccd696896568e34674c9a12b832c9f5a91 (diff)
INTEGRATION: CWS dr39 (1.4.66); FILE MERGED
2005/05/03 14:33:51 sab 1.4.66.1: #i48617#; also create special child contextes if start element is writen.
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/transform/MergeElemTContext.cxx36
1 files changed, 34 insertions, 2 deletions
diff --git a/xmloff/source/transform/MergeElemTContext.cxx b/xmloff/source/transform/MergeElemTContext.cxx
index c98d706037f0..def4391700d5 100644
--- a/xmloff/source/transform/MergeElemTContext.cxx
+++ b/xmloff/source/transform/MergeElemTContext.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: MergeElemTContext.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: vg $ $Date: 2005-02-21 15:53:37 $
+ * last change: $Author: rt $ $Date: 2005-05-13 07:31:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -332,6 +332,38 @@ XMLTransformerContext *XMLMergeElemTransformerContext::CreateChildContext(
}
}
}
+ else
+ {
+ XMLTransformerActions *pActions =
+ GetTransformer().GetUserDefinedActions( m_nActionMap );
+ OSL_ENSURE( pActions, "go no actions" );
+ if( pActions )
+ {
+ XMLTransformerActions::key_type aKey( nPrefix, rLocalName );
+ XMLTransformerActions::const_iterator aIter =
+ pActions->find( aKey );
+
+ if( !(aIter == pActions->end()) )
+ {
+ switch( (*aIter).second.m_nActionType )
+ {
+ case XML_ETACTION_EXTRACT_CHARACTERS:
+ {
+ if( !m_bStartElementExported )
+ ExportStartElement();
+ XMLParagraphTransformerContext* pPTC =
+ new XMLParagraphTransformerContext( GetTransformer(),
+ rQName);
+ pContext = pPTC;
+ }
+ break;
+ default:
+ OSL_ENSURE( !this, "unknown action" );
+ break;
+ }
+ }
+ }
+ }
// default is copying
if( !pContext )