summaryrefslogtreecommitdiff
path: root/sc/qa/extras/scpdfexport.cxx
diff options
context:
space:
mode:
authorTibor Nagy <tibor.nagy.extern@allotropia.de>2024-01-11 02:45:05 +0100
committerNagy Tibor <tibor.nagy.extern@allotropia.de>2024-01-11 14:14:20 +0100
commit37eb62c995a72fcd01d5f79e8b04fa0578cb822b (patch)
treea671de6218eb41edd4ad8881e1680ca2c9e1007e /sc/qa/extras/scpdfexport.cxx
parentcf9d8631ee5d4b894425446a9e6a8c939ab0309c (diff)
tdf#159066 sc: fix OLE object alternative text (PDF/UA export)
Change-Id: I0af9cf61cafbe7ba93d08ed22fc11bb173612bfe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161904 Tested-by: Jenkins Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
Diffstat (limited to 'sc/qa/extras/scpdfexport.cxx')
-rw-r--r--sc/qa/extras/scpdfexport.cxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/sc/qa/extras/scpdfexport.cxx b/sc/qa/extras/scpdfexport.cxx
index ae85dbb9b442..de888c083387 100644
--- a/sc/qa/extras/scpdfexport.cxx
+++ b/sc/qa/extras/scpdfexport.cxx
@@ -65,6 +65,7 @@ public:
void testExportFitToPage_Tdf103516();
void testUnoCommands_Tdf120161();
void testTdf64703_hiddenPageBreak();
+ void testTdf159066();
void testTdf159065();
void testTdf123870();
void testTdf143978();
@@ -78,6 +79,7 @@ public:
CPPUNIT_TEST(testExportFitToPage_Tdf103516);
CPPUNIT_TEST(testUnoCommands_Tdf120161);
CPPUNIT_TEST(testTdf64703_hiddenPageBreak);
+ CPPUNIT_TEST(testTdf159066);
CPPUNIT_TEST(testTdf159065);
CPPUNIT_TEST(testTdf123870);
CPPUNIT_TEST(testTdf143978);
@@ -396,6 +398,22 @@ void ScPDFExportTest::testTdf64703_hiddenPageBreak()
}
}
+void ScPDFExportTest::testTdf159066()
+{
+ loadFromFile(u"tdf159066.ods");
+ uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
+
+ // A1:E5
+ ScRange range1(0, 0, 0, 4, 4, 0);
+ exportToPDF(xModel, range1);
+
+ bool bFound = false;
+ CPPUNIT_ASSERT(hasTextInPdf("/Alt<", bFound));
+
+ // The OLE object contains alternative text description
+ CPPUNIT_ASSERT_EQUAL(true, bFound);
+}
+
void ScPDFExportTest::testTdf159065()
{
loadFromFile(u"tdf159065.ods");