diff options
Diffstat (limited to 'xmloff/source/style/XMLFootnoteSeparatorImport.cxx')
-rw-r--r-- | xmloff/source/style/XMLFootnoteSeparatorImport.cxx | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/xmloff/source/style/XMLFootnoteSeparatorImport.cxx b/xmloff/source/style/XMLFootnoteSeparatorImport.cxx index 7293c1198cea..4c579c78bed5 100644 --- a/xmloff/source/style/XMLFootnoteSeparatorImport.cxx +++ b/xmloff/source/style/XMLFootnoteSeparatorImport.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. @@ -43,9 +44,7 @@ #include <xmloff/nmspmap.hxx> #include <xmloff/maptype.hxx> -#ifndef _XMLOFF_PAGEMASTERSTYLEMAP_HXX #include <xmloff/PageMasterStyleMap.hxx> -#endif #include <tools/debug.hxx> #include <tools/color.hxx> @@ -93,6 +92,7 @@ void XMLFootnoteSeparatorImport::StartElement( sal_Int16 eLineAdjust = text::HorizontalAdjust_LEFT; // enum text::HorizontalAdjust sal_Int32 nLineTextDistance = 0; sal_Int32 nLineDistance = 0; + sal_Int8 nLineStyle = 0; // iterate over xattribute list and fill values sal_Int16 nLength = xAttrList->getLength(); @@ -153,6 +153,23 @@ void XMLFootnoteSeparatorImport::StartElement( if (SvXMLUnitConverter::convertColor(aColor, sAttrValue)) nLineColor = (sal_Int32)aColor.GetColor(); } + else if (IsXMLToken( sLocalName, XML_LINE_STYLE )) + { + sal_uInt16 nTmpU; + static const SvXMLEnumMapEntry aXML_LineStyle_Enum[] = + { + { XML_NONE, 0 }, + { XML_SOLID, 1 }, + { XML_DOTTED, 2 }, + { XML_DASH, 3 }, + { XML_TOKEN_INVALID, 0 } + }; + + if (SvXMLUnitConverter::convertEnum( + nTmpU, sAttrValue, aXML_LineStyle_Enum)) + nLineStyle = (sal_Int8)nTmpU; + + } } } @@ -170,6 +187,11 @@ void XMLFootnoteSeparatorImport::StartElement( XMLPropertyState aLineColor( nIndex, aAny ); rProperties.push_back(aLineColor); + aAny <<= nLineStyle; + nIndex = rMapper->FindEntryIndex(CTF_PM_FTN_LINE_STYLE); + XMLPropertyState aLineStyle( nIndex, aAny ); + rProperties.push_back(aLineStyle); + aAny <<= nLineDistance; nIndex = rMapper->FindEntryIndex(CTF_PM_FTN_DISTANCE); XMLPropertyState aLineDistance( nIndex, aAny ); @@ -191,3 +213,5 @@ void XMLFootnoteSeparatorImport::StartElement( XMLPropertyState aLineWeight( nPropIndex, aAny ); rProperties.push_back(aLineWeight); } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |