summaryrefslogtreecommitdiff
path: root/xmloff/source/text
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2005-01-27 10:27:01 +0000
committerRüdiger Timm <rt@openoffice.org>2005-01-27 10:27:01 +0000
commit9218506815ca40e97dd51a58352ca8445bf42119 (patch)
treeb50f90365dfc0951164b99aba06a2fe8dc38ee99 /xmloff/source/text
parenta92eec1dd02c574be109ae19f3cd1958c0f2e036 (diff)
INTEGRATION: CWS dvoqbfix (1.109.6); FILE MERGED
2005/01/11 16:19:07 dvo 1.109.6.2: RESYNC: (1.109-1.110); FILE MERGED 2004/12/13 11:10:16 dvo 1.109.6.1: #i38380# spec-conforming default handling
Diffstat (limited to 'xmloff/source/text')
-rw-r--r--xmloff/source/text/txtimp.cxx20
1 files changed, 18 insertions, 2 deletions
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx
index 1a372f9cc697..ff5f84ebb388 100644
--- a/xmloff/source/text/txtimp.cxx
+++ b/xmloff/source/text/txtimp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtimp.cxx,v $
*
- * $Revision: 1.111 $
+ * $Revision: 1.112 $
*
- * last change: $Author: rt $ $Date: 2005-01-11 12:07:00 $
+ * last change: $Author: rt $ $Date: 2005-01-27 11:27:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -725,6 +725,22 @@ SvXMLImportPropertyMapper *XMLTextImportHelper::CreateParaExtPropMapper(SvXMLImp
return new XMLTextImportPropertyMapper( pPropMapper, rImport, pFontDecls );
}
+SvXMLImportPropertyMapper *XMLTextImportHelper::CreateParaDefaultExtPropMapper(SvXMLImport& rImport, XMLFontStylesContext* pFontDecls)
+{
+ if (!pFontDecls)
+ pFontDecls = const_cast<XMLFontStylesContext*>(rImport.GetFontDecls());
+
+ XMLPropertySetMapper* pPropMapper =
+ new XMLTextPropertySetMapper( TEXT_PROP_MAP_SHAPE_PARA );
+ SvXMLImportPropertyMapper* pImportMapper = new XMLTextImportPropertyMapper( pPropMapper, rImport, pFontDecls );
+
+ pPropMapper =
+ new XMLTextPropertySetMapper( TEXT_PROP_MAP_TEXT_ADDITIONAL_DEFAULTS );
+ pImportMapper->ChainImportMapper( new XMLTextImportPropertyMapper( pPropMapper, rImport, pFontDecls ) );
+
+ return pImportMapper;
+}
+
void XMLTextImportHelper::SetCursor( const Reference < XTextCursor > & rCursor )
{
xCursor = rCursor;