diff options
Diffstat (limited to 'filter/source/svg/svgwriter.cxx')
-rw-r--r-- | filter/source/svg/svgwriter.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx index 1558836a21e9..e4a7c4bac7a7 100644 --- a/filter/source/svg/svgwriter.cxx +++ b/filter/source/svg/svgwriter.cxx @@ -1110,6 +1110,7 @@ bool SVGTextWriter::nextTextPortion() sInfo = "type: " + sPortionType + "; "; } #endif + msPageCount = ""; if( xPortionTextRange.is() ) { #if OSL_DEBUG_LEVEL > 0 @@ -1161,6 +1162,10 @@ bool SVGTextWriter::nextTextPortion() { mbIsPlaceholderShape = true; } + else if (sFieldName == "PageCount") + { + msPageCount = xTextField->getPresentation( /* show command: */ false ); + } else { mbIsURLField = sFieldName == "URL"; @@ -1673,6 +1678,12 @@ void SVGTextWriter::implWriteTextPortion( const Point& rPos, mrExport.GetDocHandler()->characters( rText ); } } + else if ( !msPageCount.isEmpty() ) + { + mrExport.AddAttribute( XML_NAMESPACE_NONE, "class", "PageCount" ); + SvXMLElementExport aSVGTspanElem( mrExport, XML_NAMESPACE_NONE, aXMLElemTspan, mbIWS, mbIWS ); + mrExport.GetDocHandler()->characters( msPageCount ); + } else { SvXMLElementExport aSVGTspanElem( mrExport, XML_NAMESPACE_NONE, aXMLElemTspan, mbIWS, mbIWS ); |