diff options
author | PriyankaGaikwad <priyanka.gaikwad@synerzip.com> | 2015-03-23 18:14:28 +0530 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-03-24 15:45:08 +0000 |
commit | 8707670cb39f5777cd54f8b180ec342416ef259f (patch) | |
tree | 2676713016b6102f477b298c4d76a1fe6b553862 /oox | |
parent | 849c1b64de19ef42cbd8cd392b036b9f914f2522 (diff) |
tdf#90174 FILESAVE: export of bullet color for pptx
Added pptx export support for bullet color.
Change-Id: I69306c8b3ace359f8dc243b83f89cfb570b9b73b
Reviewed-on: https://gerrit.libreoffice.org/14966
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/drawingml.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index 0c732fdaefdd..1fe13cd92497 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -1610,6 +1610,7 @@ void DrawingML::WriteParagraphNumbering( Reference< XPropertySet > rXPropSet, sa bool bHasFontDesc = false; OUString aGraphicURL; sal_Int16 nBulletRelSize = 0; + sal_Int32 nBulletColor; for ( sal_Int32 i = 0; i < nPropertyCount; i++ ) { @@ -1634,6 +1635,10 @@ void DrawingML::WriteParagraphNumbering( Reference< XPropertySet > rXPropSet, sa else if( *(OUString*)pValue == ")") bPBehind = true; } + else if(aPropName == "BulletColor") + { + nBulletColor = *( (sal_Int32*)pValue ); + } else if ( aPropName == "BulletChar" ) { aBulletChar = OUString ( *( (OUString*)pValue ) )[ 0 ]; @@ -1688,6 +1693,13 @@ void DrawingML::WriteParagraphNumbering( Reference< XPropertySet > rXPropSet, sa } else { + if(nBulletColor) + { + mpFS->startElementNS( XML_a, XML_buClr, FSEND ); + WriteColor( nBulletColor ); + mpFS->endElementNS( XML_a, XML_buClr ); + } + if( nBulletRelSize && nBulletRelSize != 100 ) mpFS->singleElementNS( XML_a, XML_buSzPct, XML_val, IS( std::max( (sal_Int32)25000, std::min( (sal_Int32)400000, 1000*( (sal_Int32)nBulletRelSize ) ) ) ), FSEND ); |