use color instead of int

Change-Id: I7a837b61af666b6e13519df43255ff309d54f170
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88123
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2020-02-06 18:20:28 +01:00 committed by Xisco Faulí
parent 396d101941
commit af14b2096e
2 changed files with 5 additions and 4 deletions

View file

@ -21,6 +21,7 @@ $(eval $(call gb_CppunitTest_use_libraries,lotuswordpro_import_test, \
cppuhelper \
sal \
test \
tl \
unotest \
vcl \
))

View file

@ -149,9 +149,9 @@ CPPUNIT_TEST_FIXTURE(LotusWordProTest, paragraphProperties)
uno::Reference<text::XTextRange> const xParagraph7(xParaEnum->nextElement(),
uno::UNO_QUERY_THROW);
uno::Reference<beans::XPropertySet> xPropertySet7(xParagraph7, uno::UNO_QUERY);
sal_Int32 nParaBackColor;
Color nParaBackColor;
xPropertySet7->getPropertyValue("ParaBackColor") >>= nParaBackColor;
CPPUNIT_ASSERT_EQUAL(sal_Int32(16711680), nParaBackColor);
CPPUNIT_ASSERT_EQUAL(Color(0xff0000), nParaBackColor);
table::BorderLine2 aTopBorder;
xPropertySet7->getPropertyValue("TopBorder") >>= aTopBorder;
@ -223,9 +223,9 @@ CPPUNIT_TEST_FIXTURE(LotusWordProTest, paragraphProperties)
uno::Reference<text::XTextRange> const xParagraph13(xParaEnum->nextElement(),
uno::UNO_QUERY_THROW);
uno::Reference<beans::XPropertySet> xPropertySet13(xParagraph13, uno::UNO_QUERY);
sal_Int32 nCharColor;
Color nCharColor;
xPropertySet13->getPropertyValue("CharColor") >>= nCharColor;
CPPUNIT_ASSERT_EQUAL(sal_Int32(65280), nCharColor);
CPPUNIT_ASSERT_EQUAL(Color(0x00ff00), nCharColor);
}
CPPUNIT_PLUGIN_IMPLEMENT();