diff options
author | Noel Power <noel.power@novell.com> | 2012-08-03 13:06:25 +0100 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-08-03 14:25:47 +0100 |
commit | cc51389c07f880d513f94b9c4c1bad449435b406 (patch) | |
tree | 4e89018ab5ffd77618735fcf2f664c7c81ef458d /xmloff/source/style/xmlnumfe.cxx | |
parent | 42c1644f8b24d2462d747c07a75283e9cd99b415 (diff) |
support new xml number:fill-character elem for number-style namespace
Change-Id: I7d3ca1f121396dfc017bb1ee73651f9017e58ba3
Diffstat (limited to 'xmloff/source/style/xmlnumfe.cxx')
-rw-r--r-- | xmloff/source/style/xmlnumfe.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx index 9ff20eaf01ab..d11e5ee05a27 100644 --- a/xmloff/source/style/xmlnumfe.cxx +++ b/xmloff/source/style/xmlnumfe.cxx @@ -533,6 +533,14 @@ void SvXMLNumFmtExport::WriteMinutesElement_Impl( sal_Bool bLong ) sal_True, sal_False ); } +void SvXMLNumFmtExport::WriteRepeatedElement_Impl( sal_Unicode nChar ) +{ + FinishTextElement_Impl(); + SvXMLElementExport aElem( rExport, XML_NAMESPACE_NUMBER, XML_FILL_CHARACTER, + sal_True, sal_False ); + rExport.Characters( OUString::valueOf( nChar ) ); +} + void SvXMLNumFmtExport::WriteSecondsElement_Impl( sal_Bool bLong, sal_uInt16 nDecimals ) { FinishTextElement_Impl(); @@ -1563,6 +1571,14 @@ void SvXMLNumFmtExport::ExportPart_Impl( const SvNumberformat& rFormat, sal_uInt WriteAMPMElement_Impl(); // short/long? bAnyContent = sal_True; break; + case NF_SYMBOLTYPE_STAR : + // export only if ODF 1.2 extensions are enabled + if( SvtSaveOptions().GetODFDefaultVersion() > SvtSaveOptions::ODFVER_012 ) + { + if ( pElemStr && pElemStr->Len() > 1 ) + WriteRepeatedElement_Impl( pElemStr->GetChar( 1 ) ); + } + break; } nPrevType = nElemType; ++nPos; |