summaryrefslogtreecommitdiff
path: root/xmloff/source/style/XMLFootnoteSeparatorExport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/style/XMLFootnoteSeparatorExport.cxx')
-rw-r--r--xmloff/source/style/XMLFootnoteSeparatorExport.cxx27
1 files changed, 25 insertions, 2 deletions
diff --git a/xmloff/source/style/XMLFootnoteSeparatorExport.cxx b/xmloff/source/style/XMLFootnoteSeparatorExport.cxx
index b576c697732c..a7f5e0c1bf3a 100644
--- a/xmloff/source/style/XMLFootnoteSeparatorExport.cxx
+++ b/xmloff/source/style/XMLFootnoteSeparatorExport.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -35,9 +36,7 @@
#include <xmloff/xmltoken.hxx>
#include <xmloff/xmlprmap.hxx>
-#ifndef _XMLOFF_PAGEMASTERSTYLEMAP_HXX
#include <xmloff/PageMasterStyleMap.hxx>
-#endif
#include <com/sun/star/text/HorizontalAdjust.hpp>
#include <rtl/ustrbuf.hxx>
@@ -75,6 +74,7 @@ void XMLFootnoteSeparatorExport::exportXML(
sal_Int8 nLineRelWidth = 0;
sal_Int32 nLineTextDistance = 0;
sal_Int16 nLineWeight = 0;
+ sal_Int8 nLineStyle = 0;
// find indices into property map and get values
sal_uInt32 nCount = pProperties->size();
@@ -107,6 +107,9 @@ void XMLFootnoteSeparatorExport::exportXML(
"received wrong property state index" );
rState.maValue >>= nLineWeight;
break;
+ case CTF_PM_FTN_LINE_STYLE:
+ rState.maValue >>= nLineStyle;
+ break;
}
}
@@ -136,6 +139,22 @@ void XMLFootnoteSeparatorExport::exportXML(
sBuf.makeStringAndClear());
}
+ // line style
+ static const SvXMLEnumMapEntry aXML_LineStyle_Enum[] =
+ {
+ { XML_NONE, 0 },
+ { XML_SOLID, 1 },
+ { XML_DOTTED, 2 },
+ { XML_DASH, 3 },
+ { XML_TOKEN_INVALID, 0 }
+ };
+ if (rExport.GetMM100UnitConverter().convertEnum(
+ sBuf, nLineStyle, aXML_LineStyle_Enum ) )
+ {
+ rExport.AddAttribute(XML_NAMESPACE_STYLE, XML_LINE_STYLE,
+ sBuf.makeStringAndClear());
+ }
+
// adjustment
static const SvXMLEnumMapEntry aXML_HorizontalAdjust_Enum[] =
{
@@ -162,6 +181,10 @@ void XMLFootnoteSeparatorExport::exportXML(
rExport.AddAttribute(XML_NAMESPACE_STYLE, XML_COLOR,
sBuf.makeStringAndClear());
+ // line-style
+
SvXMLElementExport aElem(rExport, XML_NAMESPACE_STYLE,
XML_FOOTNOTE_SEP, sal_True, sal_True);
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */