summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config_host/config_poppler.h.in2
-rw-r--r--configure.ac1
-rw-r--r--sd/qa/unit/import-tests.cxx10
3 files changed, 13 insertions, 0 deletions
diff --git a/config_host/config_poppler.h.in b/config_host/config_poppler.h.in
index 458c49bb1d7e..934aec114d07 100644
--- a/config_host/config_poppler.h.in
+++ b/config_host/config_poppler.h.in
@@ -5,6 +5,8 @@ Settings for poppler header file dection
#ifndef CONFIG_POPPLER_H
#define CONFIG_POPPLER_H
+#define ENABLE_PDFIMPORT 0
+
#define HAVE_POPPLER_VERSION_H 0
#endif
diff --git a/configure.ac b/configure.ac
index d2a7aba97ed8..26071dc847ab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10453,6 +10453,7 @@ if test $_os != Android -a $_os != iOS -a \( -z "$enable_pdfimport" -o "$enable_
BUILD_TYPE="$BUILD_TYPE POPPLER"
AC_DEFINE([HAVE_POPPLER_VERSION_H], 1)
fi
+ AC_DEFINE([ENABLE_PDFIMPORT],1)
else
AC_MSG_RESULT([no])
fi
diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx
index 8da93fb45d58..c2f00b943272 100644
--- a/sd/qa/unit/import-tests.cxx
+++ b/sd/qa/unit/import-tests.cxx
@@ -7,6 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include <config_poppler.h>
+
#include "sdmodeltestbase.hxx"
#include <svl/stritem.hxx>
@@ -94,8 +96,10 @@ public:
void testShapeLineStyle();
void testBnc862510_6();
void testBnc862510_7();
+#if ENABLE_PDFIMPORT
void testPDFImport();
void testPDFImportSkipImages();
+#endif
void testBulletSuffix();
void testBnc910045();
@@ -130,8 +134,10 @@ public:
CPPUNIT_TEST(testShapeLineStyle);
CPPUNIT_TEST(testBnc862510_6);
CPPUNIT_TEST(testBnc862510_7);
+#if ENABLE_PDFIMPORT
CPPUNIT_TEST(testPDFImport);
CPPUNIT_TEST(testPDFImportSkipImages);
+#endif
CPPUNIT_TEST(testBulletSuffix);
CPPUNIT_TEST(testBnc910045);
@@ -1081,6 +1087,8 @@ void SdImportTest::testBnc862510_7()
xDocShRef->DoClose();
}
+#if ENABLE_PDFIMPORT
+
void SdImportTest::testPDFImport()
{
::sd::DrawDocShellRef xDocShRef = loadURL(getURLFromSrc("/sd/qa/unit/data/pdf/txtpic.pdf"), PDF);
@@ -1118,6 +1126,8 @@ void SdImportTest::testPDFImportSkipImages()
xDocShRef->DoClose();
}
+#endif
+
void SdImportTest::testBulletSuffix()
{
::sd::DrawDocShellRef xDocShRef = loadURL( getURLFromSrc("/sd/qa/unit/data/pptx/n83889.pptx"), PPTX );