summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authoryogesh.bharate001 <yogesh.bharate@synerzip.com>2015-04-17 17:37:00 +0530
committerCaolán McNamara <caolanm@redhat.com>2015-05-09 19:58:53 +0000
commit8d74795e6e777cef0b1df64a56ea886208c87bc0 (patch)
treec06e12352506947a781013706e61539e22a096ed /sd
parent24be7ef5887ec3598b3b34cb4fccff17ed6e1106 (diff)
tdf#90672: PPTX table cell border color is not exported.
Problem Description : XML Difference : Original : <a:solidFill> <a:srgbClr val="00B0F0"/> </a:solidFill> After Roundtrip : tag is missing Solution : Added support for table cell border color. Change-Id: I2baf969d7a8e46a0c5825d9f57bf135ec479c9eb Reviewed-on: https://gerrit.libreoffice.org/15364 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/qa/unit/data/pptx/n90190.pptxbin32349 -> 33256 bytes
-rw-r--r--sd/qa/unit/export-tests.cxx7
2 files changed, 6 insertions, 1 deletions
diff --git a/sd/qa/unit/data/pptx/n90190.pptx b/sd/qa/unit/data/pptx/n90190.pptx
index ae83eb64f18f..caeabe71038e 100644
--- a/sd/qa/unit/data/pptx/n90190.pptx
+++ b/sd/qa/unit/data/pptx/n90190.pptx
Binary files differ
diff --git a/sd/qa/unit/export-tests.cxx b/sd/qa/unit/export-tests.cxx
index 78fce6b322d1..bfb89135acc6 100644
--- a/sd/qa/unit/export-tests.cxx
+++ b/sd/qa/unit/export-tests.cxx
@@ -983,27 +983,32 @@ void SdExportTest::testTableCellBorder()
sal_Int32 nLeftBorder = aBorderLine.LineWidth ;
// While importing the table cell border line width, it converts EMU->Hmm then divided result by 2.
// To get original value of LineWidth need to multiple by 2.
- nLeftBorder = nLeftBorder * 2 ;
+ nLeftBorder = nLeftBorder * 2 ;
nLeftBorder = oox::drawingml::convertHmmToEmu( nLeftBorder );
CPPUNIT_ASSERT(nLeftBorder);
+ CPPUNIT_ASSERT_EQUAL(util::Color(45296), aBorderLine.Color);
xCellPropSet->getPropertyValue("RightBorder") >>= aBorderLine;
sal_Int32 nRightBorder = aBorderLine.LineWidth ;
nRightBorder = nRightBorder * 2 ;
nRightBorder = oox::drawingml::convertHmmToEmu( nRightBorder );
CPPUNIT_ASSERT(nRightBorder);
+ CPPUNIT_ASSERT_EQUAL(util::Color(16777215), aBorderLine.Color);
xCellPropSet->getPropertyValue("TopBorder") >>= aBorderLine;
sal_Int32 nTopBorder = aBorderLine.LineWidth ;
nTopBorder = nTopBorder * 2 ;
nTopBorder = oox::drawingml::convertHmmToEmu( nTopBorder );
CPPUNIT_ASSERT(nTopBorder);
+ CPPUNIT_ASSERT_EQUAL(util::Color(45296), aBorderLine.Color);
+
xCellPropSet->getPropertyValue("BottomBorder") >>= aBorderLine;
sal_Int32 nBottomBorder = aBorderLine.LineWidth ;
nBottomBorder = nBottomBorder * 2 ;
nBottomBorder = oox::drawingml::convertHmmToEmu( nBottomBorder );
CPPUNIT_ASSERT(nBottomBorder);
+ CPPUNIT_ASSERT_EQUAL(util::Color(45296), aBorderLine.Color);
xDocShRef->DoClose();
}