summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brauer <mib@openoffice.org>2001-04-30 07:58:19 +0000
committerMichael Brauer <mib@openoffice.org>2001-04-30 07:58:19 +0000
commit54d31199a0fce2a0db97d106499d5fe5c65d06ec (patch)
tree057384cafa1c8e16b1eaf19d6f4651e1fe6afb30
parentecb42c995a7ce51e2d527eeda8c784314e3a36a0 (diff)
#85924#: New paragraph property map for shapes
-rw-r--r--xmloff/source/text/txtparae.cxx6
-rw-r--r--xmloff/source/text/txtprmap.cxx17
2 files changed, 14 insertions, 9 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index ccfdade8f459..330492f057fd 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtparae.cxx,v $
*
- * $Revision: 1.73 $
+ * $Revision: 1.74 $
*
- * last change: $Author: dvo $ $Date: 2001-04-17 11:38:57 $
+ * last change: $Author: mib $ $Date: 2001-04-30 08:58:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -835,7 +835,7 @@ SvXMLExportPropertyMapper *XMLTextParagraphExport::CreateParaExtPropMapper(
SvXMLExport& rExport)
{
XMLPropertySetMapper *pPropMapper =
- new XMLTextPropertySetMapper( TEXT_PROP_MAP_PARA );
+ new XMLTextPropertySetMapper( TEXT_PROP_MAP_SHAPE_PARA );
return new XMLTextExportPropertySetMapper( pPropMapper, rExport );
}
diff --git a/xmloff/source/text/txtprmap.cxx b/xmloff/source/text/txtprmap.cxx
index 5367bae06f3b..35cfbdf8e2f8 100644
--- a/xmloff/source/text/txtprmap.cxx
+++ b/xmloff/source/text/txtprmap.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtprmap.cxx,v $
*
- * $Revision: 1.43 $
+ * $Revision: 1.44 $
*
- * last change: $Author: dvo $ $Date: 2001-04-27 10:55:29 $
+ * last change: $Author: mib $ $Date: 2001-04-30 08:58:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -88,6 +88,10 @@ using namespace ::com::sun::star::uno;
XMLPropertyMapEntry aXMLParaPropMap[] =
{
+ M_E( "ParaLeftMargin", FO, margin_left, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_PARALEFTMARGIN ),
+ M_E( "ParaLeftMarginRelative", FO, margin_left, XML_TYPE_PERCENT, CTF_PARALEFTMARGIN_REL ),
+ M_E( "ParaRightMargin", FO, margin_right, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_PARARIGHTMARGIN ),
+ M_E( "ParaRightMarginRelative", FO, margin_right, XML_TYPE_PERCENT, CTF_PARARIGHTMARGIN_REL ),
// RES_CHRATR_CASEMAP
M_E( "CharCaseMap", FO, font_variant, XML_TYPE_TEXT_CASEMAP_VAR, 0 ),
M_E( "CharCaseMap", FO, text_transform, XML_TYPE_TEXT_CASEMAP, 0 ),
@@ -252,10 +256,6 @@ XMLPropertyMapEntry aXMLParaPropMap[] =
// not required
// RES_LR_SPACE
- M_E( "ParaLeftMargin", FO, margin_left, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_PARALEFTMARGIN ),
- M_E( "ParaLeftMarginRelative", FO, margin_left, XML_TYPE_PERCENT, CTF_PARALEFTMARGIN_REL ),
- M_E( "ParaRightMargin", FO, margin_right, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_PARARIGHTMARGIN ),
- M_E( "ParaRightMarginRelative", FO, margin_right, XML_TYPE_PERCENT, CTF_PARARIGHTMARGIN_REL ),
M_E( "ParaFirstLineIndent", FO, text_indent, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_PARAFIRSTLINE ),
M_E( "ParaFirstLineIndentRelative", FO, text_indent, XML_TYPE_PERCENT, CTF_PARAFIRSTLINE_REL ),
M_E( "ParaLastLineAdjust", STYLE, auto_text_indent, XML_TYPE_BOOL, 0 ),
@@ -752,6 +752,11 @@ XMLPropertyMapEntry *lcl_txtprmap_getMap( sal_uInt16 nType )
case TEXT_PROP_MAP_RUBY:
pMap = aXMLRubyPropMap;
break;
+ case TEXT_PROP_MAP_SHAPE_PARA:
+ pMap = &aXMLParaPropMap[4];
+ DBG_ASSERT( pMap->msXMLName == sXML_font_variant,
+ "paragraph map changed" );
+ break;
}
DBG_ASSERT( pMap, "illegal map type" );
return pMap;