summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorPriyankaGaikwad <priyanka.gaikwad@synerzip.com>2015-04-06 16:17:03 +0530
committerCaolán McNamara <caolanm@redhat.com>2015-05-11 19:42:24 +0000
commit0c3b96790da88fb22b5e932f9a4abaeb330b610a (patch)
tree2b1cf5fd86828a54962d79af61f606aeba0c4523 /oox
parent5ffe469a9e9c5b86dbdcbe556d23cd789a9f3a55 (diff)
tdf#90174 FILESAVE: export of bullet color for pptx
Added pptx export support for bullet color. Change-Id: I0c7713a6d2161e1ecbe0d7f5778e78791e9759cd Reviewed-on: https://gerrit.libreoffice.org/15169 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/drawingml.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 4d4c8c790196..e7bea03d17af 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -1644,6 +1644,7 @@ void DrawingML::WriteParagraphNumbering( Reference< XPropertySet > rXPropSet, sa
OUString aGraphicURL;
sal_Int16 nBulletRelSize = 0;
sal_Int16 nStartWith = 1;
+ sal_Int32 nBulletColor = 0;
for ( sal_Int32 i = 0; i < nPropertyCount; i++ )
{
@@ -1668,6 +1669,10 @@ void DrawingML::WriteParagraphNumbering( Reference< XPropertySet > rXPropSet, sa
else if( *static_cast<OUString const *>(pValue) == ")")
bPBehind = true;
}
+ else if(aPropName == "BulletColor")
+ {
+ nBulletColor = *( (sal_Int32*)pValue );
+ }
else if ( aPropName == "BulletChar" )
{
aBulletChar = OUString ( *( static_cast<OUString const *>(pValue) ) )[ 0 ];
@@ -1726,6 +1731,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 );