Kaydet (Commit) 967fb589 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS aig02 (1.37.26); FILE MERGED

2003/06/27 16:20:43 dvo 1.37.26.2: #108784# load text shapes in header/footer (don't convert to frame anymore)
2003/06/26 16:03:07 dvo 1.37.26.1: #108784# enable loading of shapes (but not controls) in header/footers
üst b84b0494
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: txtparai.cxx,v $ * $RCSfile: txtparai.cxx,v $
* *
* $Revision: 1.37 $ * $Revision: 1.38 $
* *
* last change: $Author: hr $ $Date: 2003-03-27 18:20:45 $ * last change: $Author: vg $ $Date: 2003-07-04 13:28:16 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -1795,7 +1795,11 @@ SvXMLImportContext *XMLImpSpanContext_Impl::CreateChildContext( ...@@ -1795,7 +1795,11 @@ SvXMLImportContext *XMLImpSpanContext_Impl::CreateChildContext(
XMLTextFieldImportContext::CreateTextFieldImportContext( XMLTextFieldImportContext::CreateTextFieldImportContext(
rImport, *rImport.GetTextImport().get(), nPrefix, rLocalName, rImport, *rImport.GetTextImport().get(), nPrefix, rLocalName,
nToken); nToken);
if( !pContext && !rImport.GetTextImport()->IsInHeaderFooter() ) // #108784# import draw elements (except control shapes in headers)
if( pContext == NULL &&
!( rImport.GetTextImport()->IsInHeaderFooter() &&
nPrefix == XML_NAMESPACE_DRAW &&
IsXMLToken( rLocalName, XML_CONTROL ) ) )
{ {
Reference < XShapes > xShapes; Reference < XShapes > xShapes;
pContext = rImport.GetShapeImport()->CreateGroupChildContext( pContext = rImport.GetShapeImport()->CreateGroupChildContext(
...@@ -1813,8 +1817,7 @@ SvXMLImportContext *XMLImpSpanContext_Impl::CreateChildContext( ...@@ -1813,8 +1817,7 @@ SvXMLImportContext *XMLImpSpanContext_Impl::CreateChildContext(
if( bInsertTextFrame ) if( bInsertTextFrame )
{ {
if( XMLTextImportHelper::HasDrawNameAttribute( xAttrList, rImport.GetNamespaceMap() ) || if( XMLTextImportHelper::HasDrawNameAttribute( xAttrList, rImport.GetNamespaceMap() ) )
rImport.GetTextImport()->IsInHeaderFooter() )
{ {
Reference < XTextRange > xAnchorPos = Reference < XTextRange > xAnchorPos =
rImport.GetTextImport()->GetCursor()->getStart(); rImport.GetTextImport()->GetCursor()->getStart();
......
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