Kaydet (Commit) c276550e authored tarafından Rüdiger Timm's avatar Rüdiger Timm

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.
üst 39cadccc
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment