[Libreoffice-commits] core.git: Branch 'aoo/trunk' - sdext/source
Pedro Giffuni
pfg at apache.org
Fri Oct 30 13:08:27 PDT 2015
sdext/source/pdfimport/xpdfwrapper/makefile.mk | 2 -
sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx | 6 ----
sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx | 27 ------------------
3 files changed, 2 insertions(+), 33 deletions(-)
New commits:
commit 64b3c5d3803db9575e4de20939dfc4cb52d2c9cb
Author: Pedro Giffuni <pfg at apache.org>
Date: Fri Oct 30 18:56:14 2015 +0000
Cleanup some defines since Poppler can only come from the system.
We don't carry Poppler (PDF rendering library) within AOO,
due to the restrictive licensing, so we can only use it
if it's provided through the system.
For the pdf-import extension we can therefore assume it is
the only option and cleanup the code accordingly.
diff --git a/sdext/source/pdfimport/xpdfwrapper/makefile.mk b/sdext/source/pdfimport/xpdfwrapper/makefile.mk
index 5ec65ec..a6d2342 100644
--- a/sdext/source/pdfimport/xpdfwrapper/makefile.mk
+++ b/sdext/source/pdfimport/xpdfwrapper/makefile.mk
@@ -42,7 +42,7 @@ CFLAGS+=-DSYSTEM_ZLIB
@echo "PDF Import extension disabled."
.ENDIF
-CFLAGS += $(POPPLER_CFLAGS) -DSYSTEM_POPPLER
+CFLAGS += $(POPPLER_CFLAGS)
# --- Files --------------------------------------------------------
UWINAPILIB:=
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
index d3e8025..3657787 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
@@ -37,9 +37,6 @@
#include "Object.h"
#include "OutputDev.h"
#include "Stream.h"
-#ifndef SYSTEM_POPPLER
-# include "parseargs.h"
-#endif
#include "GlobalParams.h"
#include "PDFDoc.h"
@@ -55,9 +52,6 @@
class GfxPath;
class GfxFont;
class PDFDoc;
-#ifndef SYSTEM_POPPLER
-typedef GString GooString;
-#endif
namespace pdfi
{
diff --git a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
index 04fe1df..de4130f 100644
--- a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
@@ -28,33 +28,12 @@
FILE* g_binary_out=stderr;
-#ifndef SYSTEM_POPPLER
-static char ownerPassword[33] = "\001";
-static char userPassword[33] = "\001";
-static char outputFile[256] = "\001";
-
-static ArgDesc argDesc[] = {
- {(char*)"-f", argString, outputFile, sizeof(outputFile),
- (char*)"output file for binary streams"},
- {(char*)"-opw", argString, ownerPassword, sizeof(ownerPassword),
- (char*)"owner password (for encrypted files)"},
- {(char*)"-upw", argString, userPassword, sizeof(userPassword),
- (char*)"user password (for encrypted files)"},
- {NULL, argString, NULL, 0, NULL }
-};
-#else
static const char *ownerPassword = "\001";
static const char *userPassword = "\001";
static const char *outputFile = "\001";
-#endif
int main(int argc, char **argv)
{
-#ifndef SYSTEM_POPPLER
- // parse args; initialize to defaults
- if( !parseArgs(argDesc, &argc, argv) )
- return 1;
-#else
int k = 0;
while (k < argc)
{
@@ -81,19 +60,15 @@ int main(int argc, char **argv)
}
++k;
}
-#endif
if( argc < 2 )
return 1;
// read config file
globalParams = new GlobalParams(
-#ifndef SYSTEM_POPPLER
- (char*)""
-#endif
);
globalParams->setErrQuiet(gTrue);
-#if !defined(SYSTEM_POPPLER) || defined(_MSC_VER)
+#ifdef _MSC_VER
globalParams->setupBaseFonts(NULL);
#endif
More information about the Libreoffice-commits
mailing list