diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-04-13 06:05:13 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-04-13 06:05:13 +0000 |
commit | 7de2289e693d3fd86402207517568f99511aa916 (patch) | |
tree | cd3257a84d8dfc5d761cd1ffe01d1297e5d464b2 /Build/source/libs/poppler | |
parent | 4ca57b91804c5a4acb3152c4b5192a35e51ca3fe (diff) |
poppler build fixes
git-svn-id: svn://tug.org/texlive/trunk@22067 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/poppler')
355 files changed, 100 insertions, 100853 deletions
diff --git a/Build/source/libs/poppler/Makefile.am b/Build/source/libs/poppler/Makefile.am index 4bdad1a0248..86a3f311427 100644 --- a/Build/source/libs/poppler/Makefile.am +++ b/Build/source/libs/poppler/Makefile.am @@ -1,6 +1,6 @@ ## Proxy Makefile.am to build poppler for TeX Live. ## -## Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org> +## Copyright (C) 2011 Peter Breitenlohner <tex-live@tug.org> ## ## This file is free software; the copyright holder ## gives unlimited permission to copy and/or distribute it, @@ -25,15 +25,15 @@ rebuild: all ## We want to re-distribute the whole original poppler source tree. ## -## With current automake (1.10.2) 'make distcheck' fails when -## DISTFILES contains a directory and files in that directory. -## Thus nodist_* for all files in $(POPPLER_TREE). EXTRA_DIST = $(POPPLER_TREE) +## Patches applied to the original source tree +## +EXTRA_DIST += $(POPPLER_TREE)-PATCHES + # in case of an SVN repository dist-hook: rm -rf `find $(distdir) -name .svn` - rm -f $(distdir)/$(POPPLER_TREE)/install-sh SUBDIRS = goo fofi poppler @@ -121,3 +121,4 @@ poppler_libpoppler_a_sources = \ $(POPPLER_SRC)/UnicodeTypeTable.cc \ $(POPPLER_SRC)/XRef.cc \ $(POPPLER_SRC)/XpdfPluginAPI.cc + diff --git a/Build/source/libs/poppler/Makefile.in b/Build/source/libs/poppler/Makefile.in index d44c1c4dfcf..1b5cec5007f 100644 --- a/Build/source/libs/poppler/Makefile.in +++ b/Build/source/libs/poppler/Makefile.in @@ -50,7 +50,7 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = aconf.h $(top_builddir)/poppler-0.12.4/config.h +CONFIG_HEADER = aconf.h config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) @@ -87,7 +87,7 @@ am__objects_3 = Annot.$(OBJEXT) Array.$(OBJEXT) BuiltinFont.$(OBJEXT) \ nodist_libpoppler_a_OBJECTS = $(am__objects_1) $(am__objects_2) \ $(am__objects_3) libpoppler_a_OBJECTS = $(nodist_libpoppler_a_OBJECTS) -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/poppler-0.12.4 +DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/../../build-aux/depcomp am__depfiles_maybe = depfiles am__mv = mv -f @@ -247,7 +247,7 @@ top_srcdir = @top_srcdir@ #======================================================================== #======================================================================== ACLOCAL_AMFLAGS = -I ../../m4 -EXTRA_DIST = $(POPPLER_TREE) +EXTRA_DIST = $(POPPLER_TREE) $(POPPLER_TREE)-PATCHES SUBDIRS = goo fofi poppler GOO_SRC = $(top_srcdir)/$(POPPLER_TREE)/goo FOFI_SRC = $(top_srcdir)/$(POPPLER_TREE)/fofi @@ -330,7 +330,7 @@ poppler_libpoppler_a_sources = \ $(POPPLER_SRC)/XRef.cc \ $(POPPLER_SRC)/XpdfPluginAPI.cc -all: aconf.h +all: aconf.h config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: @@ -384,18 +384,18 @@ $(srcdir)/aconf.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) rm -f stamp-h1 touch $@ -poppler-0.12.4/config.h: poppler-0.12.4/stamp-h2 +config.h: stamp-h2 @if test ! -f $@; then \ - rm -f poppler-0.12.4/stamp-h2; \ - $(MAKE) $(AM_MAKEFLAGS) poppler-0.12.4/stamp-h2; \ + rm -f stamp-h2; \ + $(MAKE) $(AM_MAKEFLAGS) stamp-h2; \ else :; fi -poppler-0.12.4/stamp-h2: $(top_srcdir)/poppler-0.12.4/config.h.in $(top_builddir)/config.status - @rm -f poppler-0.12.4/stamp-h2 - cd $(top_builddir) && $(SHELL) ./config.status poppler-0.12.4/config.h +stamp-h2: $(top_srcdir)/poppler-0.12.4/config.h.in $(top_builddir)/config.status + @rm -f stamp-h2 + cd $(top_builddir) && $(SHELL) ./config.status config.h distclean-hdr: - -rm -f aconf.h stamp-h1 poppler-0.12.4/config.h poppler-0.12.4/stamp-h2 + -rm -f aconf.h stamp-h1 config.h stamp-h2 clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) @@ -1700,7 +1700,7 @@ distcleancheck: distclean exit 1; } >&2 check-am: all-am check: check-recursive -all-am: Makefile $(LIBRARIES) aconf.h +all-am: Makefile $(LIBRARIES) aconf.h config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive @@ -1828,7 +1828,6 @@ rebuild: all # in case of an SVN repository dist-hook: rm -rf `find $(distdir) -name .svn` - rm -f $(distdir)/$(POPPLER_TREE)/install-sh # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/Build/source/libs/poppler/aconf.h.in b/Build/source/libs/poppler/aconf.h.in index ac9fba5dc28..572d940b20e 100644 --- a/Build/source/libs/poppler/aconf.h.in +++ b/Build/source/libs/poppler/aconf.h.in @@ -24,6 +24,9 @@ /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #undef HAVE_FSEEKO +/* Define to 1 if you have the `gettimeofday' function. */ +#undef HAVE_GETTIMEOFDAY + /* Define to 1 if you have the <inttypes.h> header file. */ #undef HAVE_INTTYPES_H @@ -68,6 +71,9 @@ /* Define to 1 if you have the <sys/stat.h> header file. */ #undef HAVE_SYS_STAT_H +/* Define to 1 if you have the <sys/time.h> header file. */ +#undef HAVE_SYS_TIME_H + /* Define to 1 if you have the <sys/types.h> header file. */ #undef HAVE_SYS_TYPES_H diff --git a/Build/source/libs/poppler/configure b/Build/source/libs/poppler/configure index f985ad4d5cf..c8498a85b47 100755 --- a/Build/source/libs/poppler/configure +++ b/Build/source/libs/poppler/configure @@ -4606,7 +4606,7 @@ fi done -for ac_header in strings.h sys/select.h time.h +for ac_header in strings.h sys/select.h time.h sys/time.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" @@ -4779,7 +4779,7 @@ fi -for ac_func in popen mkstemp mkstemps +for ac_func in popen mkstemp mkstemps gettimeofday do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" @@ -5064,13 +5064,13 @@ ac_config_headers="$ac_config_headers aconf.h" -POPPLER_TREE=poppler-0.12.4 +ac_config_headers="$ac_config_headers config.h:poppler-0.12.4/config.h.in" -ac_config_files="$ac_config_files Makefile poppler/Makefile goo/Makefile fofi/Makefile" +POPPLER_TREE=poppler-0.12.4 -ac_config_headers="$ac_config_headers poppler-0.12.4/config.h" +ac_config_files="$ac_config_files Makefile poppler/Makefile goo/Makefile fofi/Makefile" cat >confcache <<\_ACEOF @@ -5812,11 +5812,11 @@ do case $ac_config_target in "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "aconf.h") CONFIG_HEADERS="$CONFIG_HEADERS aconf.h" ;; + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:poppler-0.12.4/config.h.in" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "poppler/Makefile") CONFIG_FILES="$CONFIG_FILES poppler/Makefile" ;; "goo/Makefile") CONFIG_FILES="$CONFIG_FILES goo/Makefile" ;; "fofi/Makefile") CONFIG_FILES="$CONFIG_FILES fofi/Makefile" ;; - "poppler-0.12.4/config.h") CONFIG_HEADERS="$CONFIG_HEADERS poppler-0.12.4/config.h" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac diff --git a/Build/source/libs/poppler/configure.ac b/Build/source/libs/poppler/configure.ac index 774d54afe4c..63bacfbfb23 100644 --- a/Build/source/libs/poppler/configure.ac +++ b/Build/source/libs/poppler/configure.ac @@ -50,12 +50,12 @@ AC_PROG_LN_S dnl **** Checks for header files **** -AC_CHECK_HEADERS([strings.h sys/select.h time.h]) +AC_CHECK_HEADERS([strings.h sys/select.h time.h sys/time.h]) AC_HEADER_DIRENT dnl **** Checks for library functions **** -AC_CHECK_FUNCS([popen mkstemp mkstemps]) +AC_CHECK_FUNCS([popen mkstemp mkstemps gettimeofday]) AC_SYS_LARGEFILE AC_FUNC_FSEEKO @@ -78,11 +78,10 @@ AH_TOP([/* #undef USE_EXCEPTIONS]) AH_BOTTOM([#endif]) -POPPLER_TREE=poppler-[]poppler_version -AC_SUBST([POPPLER_TREE]) +AC_CONFIG_HEADERS([config.h:poppler-]poppler_version[/config.h.in]) -AC_CONFIG_FILES([Makefile poppler/Makefile goo/Makefile fofi/Makefile]) +AC_SUBST([POPPLER_TREE], [poppler-]poppler_version) -AC_CONFIG_HEADERS([poppler-]poppler_version[/config.h]) +AC_CONFIG_FILES([Makefile poppler/Makefile goo/Makefile fofi/Makefile]) AC_OUTPUT diff --git a/Build/source/libs/poppler/fofi/Makefile.in b/Build/source/libs/poppler/fofi/Makefile.in index 2391e491e24..2f32ad12d38 100644 --- a/Build/source/libs/poppler/fofi/Makefile.in +++ b/Build/source/libs/poppler/fofi/Makefile.in @@ -39,8 +39,7 @@ am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/aconf.h \ - $(top_builddir)/poppler-0.12.4/config.h +CONFIG_HEADER = $(top_builddir)/aconf.h $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = diff --git a/Build/source/libs/poppler/goo/Makefile.in b/Build/source/libs/poppler/goo/Makefile.in index ade60a4abf2..c396de1d694 100644 --- a/Build/source/libs/poppler/goo/Makefile.in +++ b/Build/source/libs/poppler/goo/Makefile.in @@ -39,8 +39,7 @@ am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/aconf.h \ - $(top_builddir)/poppler-0.12.4/config.h +CONFIG_HEADER = $(top_builddir)/aconf.h $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = diff --git a/Build/source/libs/poppler/poppler-0.12.4-PATCHES/ChangeLog b/Build/source/libs/poppler/poppler-0.12.4-PATCHES/ChangeLog new file mode 100644 index 00000000000..97f88a8559c --- /dev/null +++ b/Build/source/libs/poppler/poppler-0.12.4-PATCHES/ChangeLog @@ -0,0 +1,14 @@ +2011-04-12 Peter Breitenlohner <peb@mppmu.mpg.de> + + * patch-02-warnings (new): + poppler/Movie.cc: Cast -1 to Gulong. + goo/PNGWriter.h: Add newline at end of file. + + +2011-04-12 Taco Hoekwater <taco@luatex.org> + + Imported poppler-0.12.4 source tree from: + http://poppler.freedesktop.org/ + + * patch-01-PDF_PARSER_ONLY (new): FIXME. + diff --git a/Build/source/libs/poppler/poppler-0.12.4-PATCHES/TL-Changes b/Build/source/libs/poppler/poppler-0.12.4-PATCHES/TL-Changes new file mode 100644 index 00000000000..dca891b8aef --- /dev/null +++ b/Build/source/libs/poppler/poppler-0.12.4-PATCHES/TL-Changes @@ -0,0 +1,24 @@ +Changes applied to the poppler-0.12.4 tree as obtained from: + http://poppler.freedesktop.org/ + +Removed: + config.guess + config.sub + depcomp + install-sh + ltmain.sh + missing + +Removed unused dirs: + cmake + glib + m4 + qt + qt4 + splash + test + utils + +Removed execute permission: + goo/GooTimer.h + diff --git a/Build/source/libs/poppler/poppler-0.12.4-PATCH1 b/Build/source/libs/poppler/poppler-0.12.4-PATCHES/patch-01-PDF_PARSER_ONLY index 6cf240174b0..6cf240174b0 100644 --- a/Build/source/libs/poppler/poppler-0.12.4-PATCH1 +++ b/Build/source/libs/poppler/poppler-0.12.4-PATCHES/patch-01-PDF_PARSER_ONLY diff --git a/Build/source/libs/poppler/poppler-0.12.4-PATCHES/patch-02-warnings b/Build/source/libs/poppler/poppler-0.12.4-PATCHES/patch-02-warnings new file mode 100644 index 00000000000..8ebba2b64ce --- /dev/null +++ b/Build/source/libs/poppler/poppler-0.12.4-PATCHES/patch-02-warnings @@ -0,0 +1,22 @@ +diff -ur poppler-0.12.4.orig/goo/PNGWriter.h poppler-0.12.4/goo/PNGWriter.h +--- poppler-0.12.4.orig/goo/PNGWriter.h 2011-04-12 16:17:47.000000000 +0200 ++++ poppler-0.12.4/goo/PNGWriter.h 2011-04-12 22:16:31.489535918 +0200 +@@ -40,4 +40,4 @@ + + #endif + +-#endif +\ No newline at end of file ++#endif +diff -ur poppler-0.12.4.orig/poppler/Movie.cc poppler-0.12.4/poppler/Movie.cc +--- poppler-0.12.4.orig/poppler/Movie.cc 2011-04-12 16:17:47.000000000 +0200 ++++ poppler-0.12.4/poppler/Movie.cc 2011-04-12 22:19:34.797833201 +0200 +@@ -227,7 +227,7 @@ + if (tmp.dictLookup("S", &oname)->isName()) { + char* name = oname.getName(); + if (!strcmp(name, "F")) +- duration.units = -1; // infinity ++ duration.units = (Gulong)(-1); // infinity + else if (!strcmp(name, "T")) { + if (tmp.dictLookup("T", &ddict)->isDict()) { + if (ddict.dictLookup("V", &tmp2)->isNum()) { diff --git a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/COPYING-CMAKE-SCRIPTS b/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/COPYING-CMAKE-SCRIPTS deleted file mode 100644 index 4b417765f3a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/COPYING-CMAKE-SCRIPTS +++ /dev/null @@ -1,22 +0,0 @@ -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - -1. Redistributions of source code must retain the copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -3. The name of the author may not be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindCairo.cmake b/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindCairo.cmake deleted file mode 100644 index a0a8400d32c..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindCairo.cmake +++ /dev/null @@ -1,44 +0,0 @@ -# - try to find Cairo -# Once done this will define -# -# CAIRO_FOUND - system has Cairo -# CAIRO_CFLAGS - the Cairo CFlags -# CAIRO_LIBRARIES - Link these to use Cairo -# -# Copyright (c) 2007, Pino Toscano, <pino@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -if (NOT WIN32) - include(UsePkgConfig) - - pkgconfig(cairo _LibCairoIncDir _LibCairoLinkDir _CairoLinkFlags _CairoCflags) - set (CAIRO_FOUND FALSE) - if (_LibCairoIncDir) - - if (CAIRO_VERSION) - - exec_program(${PKGCONFIG_EXECUTABLE} ARGS --atleast-version=${CAIRO_VERSION} cairo RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull) - if(_return_VALUE STREQUAL "0") - set (CAIRO_CFLAGS ${_CairoCflags}) - set (CAIRO_LIBRARIES ${_CairoLinkFlags}) - endif(_return_VALUE STREQUAL "0") - - else (CAIRO_VERSION) - set (CAIRO_CFLAGS ${_CairoCflags}) - set (CAIRO_LIBRARIES ${_CairoLinkFlags}) - endif (CAIRO_VERSION) - - include(FindPackageHandleStandardArgs) - find_package_handle_standard_args(Cairo DEFAULT_MSG CAIRO_LIBRARIES CAIRO_CFLAGS) - - endif (_LibCairoIncDir) - -endif(NOT WIN32) - -mark_as_advanced( - CAIRO_CFLAGS - CAIRO_LIBRARIES -) - diff --git a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindFontconfig.cmake b/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindFontconfig.cmake deleted file mode 100644 index c6a8c6ab12f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindFontconfig.cmake +++ /dev/null @@ -1,47 +0,0 @@ -# - Try to find the Fontconfig -# Once done this will define -# -# FONTCONFIG_FOUND - system has Fontconfig -# FONTCONFIG_LIBRARIES - Link these to use FONTCONFIG -# FONTCONFIG_DEFINITIONS - Compiler switches required for using FONTCONFIG - -# Copyright (c) 2006,2007 Laurent Montel, <montel@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - - -if (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR) - - # in cache already - set(FONTCONFIG_FOUND TRUE) - -else (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR) - - if (NOT WIN32) - # use pkg-config to get the directories and then use these values - # in the FIND_PATH() and FIND_LIBRARY() calls - include(UsePkgConfig) - - pkgconfig(fontconfig _FONTCONFIGIncDir _FONTCONFIGLinkDir _FONTCONFIGLinkFlags _FONTCONFIGCflags) - - set(FONTCONFIG_DEFINITIONS ${_FONTCONFIGCflags} CACHE INTERNAL "The compilation flags for fontconfig") - endif (NOT WIN32) - - find_path(FONTCONFIG_INCLUDE_DIR fontconfig/fontconfig.h - PATHS - ${_FONTCONFIGIncDir} - /usr/X11/include - ) - - find_library(FONTCONFIG_LIBRARIES NAMES fontconfig - PATHS - ${_FONTCONFIGLinkDir} - ) - - include(FindPackageHandleStandardArgs) - FIND_PACKAGE_HANDLE_STANDARD_ARGS(Fontconfig DEFAULT_MSG FONTCONFIG_LIBRARIES FONTCONFIG_INCLUDE_DIR ) - - mark_as_advanced(FONTCONFIG_LIBRARIES FONTCONFIG_INCLUDE_DIR) - -endif (FONTCONFIG_LIBRARIES AND FONTCONFIG_INCLUDE_DIR) diff --git a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindGTK.cmake b/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindGTK.cmake deleted file mode 100644 index c751d3aad86..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindGTK.cmake +++ /dev/null @@ -1,78 +0,0 @@ -# - try to find GTK (and glib) -# Once done this will define -# -# GLIB_FOUND - system has GLib -# GLIB_CFLAGS - the GLib CFlags -# GLIB_LIBRARIES - Link these to use GLib -# -# Copyright 2008 Pino Toscano, <pino@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -include(FindPackageHandleStandardArgs) - -if (NOT WIN32) - include(UsePkgConfig) - - pkgconfig(glib-2.0 _LibGLIB2IncDir _LibGLIB2LinkDir GLIB2LinkFlags GLIB2Cflags) - pkgconfig(gdk-2.0 _LibGDK2IncDir _LibGDK2LinkDir GDK2LinkFlags GDK2Cflags) - set (GLIB_FOUND FALSE) - if (_LibGLIB2IncDir) - - exec_program(${PKGCONFIG_EXECUTABLE} ARGS --atleast-version=2.6 glib-2.0 RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull) - if(_return_VALUE STREQUAL "0") - set(_glib_FOUND TRUE) - endif(_return_VALUE STREQUAL "0") - endif (_LibGLIB2IncDir) - - if (_LibGDK2IncDir) - exec_program(${PKGCONFIG_EXECUTABLE} ARGS --atleast-version=2.4.0 gdk-2.0 RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull) - if(_return_VALUE STREQUAL "0") - set(_gdk_FOUND TRUE) - endif(_return_VALUE STREQUAL "0") - endif (_LibGDK2IncDir) - - if (_glib_FOUND) - set (GLIB2_CFLAGS ${GLIB2Cflags}) - set (GLIB2_LIBRARIES ${GLIB2LinkFlags}) - endif (_glib_FOUND) - - if (_gdk_FOUND) - set (GDK2_CFLAGS ${GDK2Cflags}) - set (GDK2_LIBRARIES ${GDK2LinkFlags}) - endif (_gdk_FOUND) - - find_package_handle_standard_args(GLib DEFAULT_MSG GLIB2_LIBRARIES GLIB2_CFLAGS) - find_package_handle_standard_args(GDK DEFAULT_MSG GDK2_LIBRARIES GDK2_CFLAGS) - - pkgconfig(gtk+-2.0 _LibGTK2IncDir _LibGTK2LinkDir GTK2LinkFlags GTK2Cflags) - pkgconfig(gdk-pixbuf-2.0 _LibGDK2PixbufIncDir _LibGDK2PixbufLinkDir GDK2PixbufLinkFlags GDK2PixbufCflags) - pkgconfig(gthread-2.0 _LibGThread2IncDir _LibGThread2LinkDir GThread2LinkFlags GThread2Cflags) - - if (_LibGTK2IncDir AND _LibGDK2PixbufIncDir AND _LibGThread2IncDir) - exec_program(${PKGCONFIG_EXECUTABLE} ARGS --atleast-version=2.8.0 gtk+-2.0 RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull) - if(_return_VALUE STREQUAL "0") - set(_gtk_FOUND TRUE) - endif(_return_VALUE STREQUAL "0") - - if (_gtk_FOUND) - set (GTK2_CFLAGS ${GTK2Cflags} ${GDK2PixbufCflags} ${GThread2Cflags}) - set (GTK2_LIBRARIES ${GTK2LinkFlags} ${GDK2PixbufLinkFlags} ${GThread2LinkFlags}) - endif (_gtk_FOUND) - - find_package_handle_standard_args(GTK DEFAULT_MSG GTK2_LIBRARIES GTK2_CFLAGS) - - endif (_LibGTK2IncDir AND _LibGDK2PixbufIncDir AND _LibGThread2IncDir) - -endif(NOT WIN32) - -mark_as_advanced( - GLIB2_CFLAGS - GLIB2_LIBRARIES - GDK2_CFLAGS - GDK2_LIBRARIES - GTK2_CFLAGS - GTK2_LIBRARIES -) - diff --git a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindLCMS.cmake b/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindLCMS.cmake deleted file mode 100644 index 9d162d2cfdd..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindLCMS.cmake +++ /dev/null @@ -1,84 +0,0 @@ -# - Find LCMS -# Find the LCMS includes and library -# This module defines -# LCMS_INCLUDE_DIR, where to find lcms.h -# LCMS_LIBRARIES, the libraries needed to use LCMS. -# LCMS_VERSION, The value of LCMS_VERSION defined in lcms.h -# LCMS_FOUND, If false, do not try to use LCMS. - - -# Copyright (c) 2008, Adrian Page, <adrian@pagenet.plus.com> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - - -# use pkg-config to get the directories and then use these values -# in the FIND_PATH() and FIND_LIBRARY() calls -if(NOT WIN32) - find_package(PkgConfig) - pkg_check_modules(PC_LCMS lcms) - set(LCMS_DEFINITIONS ${PC_LCMS_CFLAGS_OTHER}) -endif(NOT WIN32) - -find_path(LCMS_INCLUDE_DIR lcms.h - PATHS - ${PC_LCMS_INCLUDEDIR} - ${PC_LCMS_INCLUDE_DIRS} - PATH_SUFFIXES lcms liblcms1 -) - -find_library(LCMS_LIBRARIES NAMES lcms liblcms lcms-1 liblcms-1 - PATHS - ${PC_LCMS_LIBDIR} - ${PC_LCMS_LIBRARY_DIRS} - PATH_SUFFIXES lcms -) - -if(LCMS_INCLUDE_DIR AND LCMS_LIBRARIES) - set(LCMS_FOUND TRUE) -else(LCMS_INCLUDE_DIR AND LCMS_LIBRARIES) - set(LCMS_FOUND FALSE) -endif(LCMS_INCLUDE_DIR AND LCMS_LIBRARIES) - -if(LCMS_FOUND) - set(FIND_LCMS_VERSION_SOURCE - "#include <lcms.h>\n int main()\n {\n return LCMS_VERSION;\n }\n") - set(FIND_LCMS_VERSION_SOURCE_FILE ${CMAKE_BINARY_DIR}/CMakeTmp/FindLCMS.cxx) - file(WRITE "${FIND_LCMS_VERSION_SOURCE_FILE}" "${FIND_LCMS_VERSION_SOURCE}") - - set(FIND_LCMS_VERSION_ADD_INCLUDES - "-DINCLUDE_DIRECTORIES:STRING=${LCMS_INCLUDE_DIR}") - - try_run(LCMS_VERSION LCMS_COMPILE_RESULT - ${CMAKE_BINARY_DIR} - ${FIND_LCMS_VERSION_SOURCE_FILE} - CMAKE_FLAGS "${FIND_LCMS_VERSION_ADD_INCLUDES}" - OUTPUT_VARIABLE OUTPUT) - - if(LCMS_COMPILE_RESULT AND NOT LCMS_VERSION STREQUAL FAILED_TO_RUN) - if(NOT LCMS_FIND_QUIETLY) - string(SUBSTRING ${LCMS_VERSION} 0 1 LCMS_MAJOR_VERSION) - string(SUBSTRING ${LCMS_VERSION} 1 2 LCMS_MINOR_VERSION) - message(STATUS "Found lcms version ${LCMS_MAJOR_VERSION}.${LCMS_MINOR_VERSION}, ${LCMS_LIBRARIES}") - endif(NOT LCMS_FIND_QUIETLY) - else(LCMS_COMPILE_RESULT AND NOT LCMS_VERSION STREQUAL FAILED_TO_RUN) - if(NOT LCMS_FIND_QUIETLY) - message(STATUS "Found lcms but failed to find version ${LCMS_LIBRARIES}") - file(APPEND ${CMAKE_BINARY_DIR}/CMakeFiles/CMakeError.log - "Find lcms version failed with the following output:\n${OUTPUT}\nFindLCMS.cxx:\n${FIND_LCMS_VERSION_SOURCE}\n\n") - endif(NOT LCMS_FIND_QUIETLY) - set(LCMS_VERSION NOTFOUND) - endif(LCMS_COMPILE_RESULT AND NOT LCMS_VERSION STREQUAL FAILED_TO_RUN) -else(LCMS_FOUND) - if(NOT LCMS_FIND_QUIETLY) - if(LCMS_FIND_REQUIRED) - message(FATAL_ERROR "Required package lcms NOT found") - else(LCMS_FIND_REQUIRED) - message(STATUS "lcms NOT found") - endif(LCMS_FIND_REQUIRED) - endif(NOT LCMS_FIND_QUIETLY) -endif(LCMS_FOUND) - -mark_as_advanced(LCMS_INCLUDE_DIR LCMS_LIBRARIES LCMS_VERSION) - diff --git a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindLIBOPENJPEG.cmake b/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindLIBOPENJPEG.cmake deleted file mode 100644 index 978ee7d93fc..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindLIBOPENJPEG.cmake +++ /dev/null @@ -1,37 +0,0 @@ -# - Try to find the libopenjpeg library -# Once done this will define -# -# LIBOPENJPEG_FOUND - system has libopenjpeg -# LIBOPENJPEG_INCLUDE_DIRS - the libopenjpeg include directories -# LIBOPENJPEG_LIBRARIES - Link these to use libopenjpeg -# LIBOPENJPEG_INCLUDE_DIR is internal and deprecated for use - -# Copyright (c) 2008, Albert Astals Cid, <aacid@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - - -if (LIBOPENJPEG_LIBRARIES AND LIBOPENJPEG_INCLUDE_DIR) - - # in cache already - set(LIBOPENJPEG_FOUND TRUE) - -else (LIBOPENJPEG_LIBRARIES AND LIBOPENJPEG_INCLUDE_DIR) - - #reset vars - set(LIBOPENJPEG_LIBRARIES) - set(LIBOPENJPEG_INCLUDE_DIR) - - find_path (LIBOPENJPEG_INCLUDE_DIR openjpeg.h PATH_SUFFIXES openjpeg) - find_library(LIBOPENJPEG_LIBRARIES openjpeg) - if(LIBOPENJPEG_INCLUDE_DIR AND LIBOPENJPEG_LIBRARIES) - set(LIBOPENJPEG_FOUND TRUE) - endif(LIBOPENJPEG_INCLUDE_DIR AND LIBOPENJPEG_LIBRARIES) - - include(FindPackageHandleStandardArgs) - find_package_handle_standard_args(LibOpenJPEG DEFAULT_MSG LIBOPENJPEG_LIBRARIES LIBOPENJPEG_INCLUDE_DIR) - -endif (LIBOPENJPEG_LIBRARIES AND LIBOPENJPEG_INCLUDE_DIR) - -set(LIBOPENJPEG_INCLUDE_DIRS ${LIBOPENJPEG_INCLUDE_DIR}) diff --git a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindQt3.cmake b/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindQt3.cmake deleted file mode 100644 index 06ff94014be..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindQt3.cmake +++ /dev/null @@ -1,319 +0,0 @@ -# - Locate Qt include paths and libraries -# This module defines: -# QT3_INCLUDE_DIR - where to find qt.h, etc. -# QT3_LIBRARIES - the libraries to link against to use Qt. -# QT3_DEFINITIONS - definitions to use when -# compiling code that uses Qt. -# QT3_FOUND - If false, don't try to use Qt. -# -# If you need the multithreaded version of Qt, set QT_MT_REQUIRED to TRUE -# -# Also defined, but not for general use are: -# QT3_MOC_EXECUTABLE, where to find the moc tool. -# QT3_UIC_EXECUTABLE, where to find the uic tool. -# QT3_QT_LIBRARY, where to find the Qt library. -# QT3_QTMAIN_LIBRARY, where to find the qtmain -# library. This is only required by Qt3 on Windows. - -# These are around for backwards compatibility -# they will be set -# QT_WRAP_CPP, set true if QT3_MOC_EXECUTABLE is found -# QT_WRAP_UI set true if QT3_UIC_EXECUTABLE is found - -FILE(GLOB GLOB_PATHS_BIN /usr/lib/qt-3*/bin/) -FIND_PATH(QT3_INCLUDE_DIR qt.h - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]/include/Qt" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]/include/Qt" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]/include/Qt" - $ENV{QTDIR}/include - ${GLOB_PATHS_BIN} - /usr/local/qt/include - /usr/lib/qt/include - /usr/lib/qt3/include - /usr/include/qt - /usr/share/qt3/include - C:/Progra~1/qt/include - /usr/include/qt3 - /usr/X11R6/include - ) - -# if qglobal.h is not in the qt_include_dir then set -# QT3_INCLUDE_DIR to NOTFOUND -IF(NOT EXISTS ${QT3_INCLUDE_DIR}/qglobal.h) - SET(QT3_INCLUDE_DIR QT3_INCLUDE_DIR-NOTFOUND CACHE PATH "path to qt3 include directory" FORCE) -ENDIF(NOT EXISTS ${QT3_INCLUDE_DIR}/qglobal.h) - -IF(QT3_INCLUDE_DIR) - #extract the version string from qglobal.h - FILE(READ ${QT3_INCLUDE_DIR}/qglobal.h QGLOBAL_H) - STRING(REGEX MATCH "#define[\t ]+QT_VERSION_STR[\t ]+\"([0-9]+.[0-9]+.[0-9]+)\"" QGLOBAL_H "${QGLOBAL_H}") - STRING(REGEX REPLACE ".*\"([0-9]+.[0-9]+.[0-9]+)\".*" "\\1" qt_version_str "${QGLOBAL_H}") - - # Under windows the qt library (MSVC) has the format qt-mtXYZ where XYZ is the - # version X.Y.Z, so we need to remove the dots from version - STRING(REGEX REPLACE "\\." "" qt_version_str_lib "${qt_version_str}") -ELSE(QT3_INCLUDE_DIR) -ENDIF(QT3_INCLUDE_DIR) - -FILE(GLOB GLOB_PATHS_LIB /usr/lib/qt-3*/lib/) -IF (QT_MT_REQUIRED) - FIND_LIBRARY(QT3_QT_LIBRARY - NAMES - qt-mt qt-mt${qt_version_str_lib} qt-mtnc${qt_version_str_lib} - qt-mtedu${qt_version_str_lib} qt-mt230nc qt-mtnc321 qt-mt3 - PATHS - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]/lib" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]/lib" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]/lib" - $ENV{QTDIR}/lib - ${GLOB_PATHS_LIB} - /usr/local/qt/lib - /usr/lib/qt/lib - /usr/lib/qt3/lib - /usr/lib/qt3/lib64 - /usr/share/qt3/lib - C:/Progra~1/qt/lib - /usr/X11R6/lib - ) - -ELSE (QT_MT_REQUIRED) - FIND_LIBRARY(QT3_QT_LIBRARY - NAMES - qt qt-${qt_version_str_lib} qt-edu${qt_version_str_lib} - qt-mt qt-mt${qt_version_str_lib} qt-mtnc${qt_version_str_lib} - qt-mtedu${qt_version_str_lib} qt-mt230nc qt-mtnc321 qt-mt3 - PATHS - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]/lib" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]/lib" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]/lib" - $ENV{QTDIR}/lib - ${GLOB_PATHS_LIB} - /usr/local/qt/lib - /usr/lib/qt/lib - /usr/lib/qt3/lib - /usr/lib/qt3/lib64 - /usr/share/qt3/lib - C:/Progra~1/qt/lib - /usr/X11R6/lib - ) -ENDIF (QT_MT_REQUIRED) - -IF(QT3_QT_LIBRARY) -ELSE(QT3_QT_LIBRARY) -ENDIF(QT3_QT_LIBRARY) - - -FIND_LIBRARY(QT_QASSISTANTCLIENT_LIBRARY - NAMES qassistantclient - PATHS - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]/lib" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]/lib" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]/lib" - $ENV{QTDIR}/lib - ${GLOB_PATHS_LIB} - /usr/local/qt/lib - /usr/lib/qt3/lib - /usr/lib/qt3/lib64 - /usr/share/qt3/lib - C:/Progra~1/qt/lib - /usr/X11R6/lib - ) - -# qt 3 should prefer QTDIR over the PATH -FIND_PROGRAM(QT3_MOC_EXECUTABLE - NAMES moc moc-qt3 - PATHS - $ENV{QTDIR}/bin - NO_DEFAULT_PATH -) - -FIND_PROGRAM(QT3_MOC_EXECUTABLE - NAMES moc moc-qt3 - PATHS - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]/include/Qt" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]/include/Qt" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]/include/Qt" - $ENV{QTDIR}/bin - ${GLOB_PATHS_BIN} - /usr/local/qt/bin - /usr/lib/qt/bin - /usr/lib/qt3/bin - /usr/share/qt3/bin - C:/Progra~1/qt/bin - /usr/X11R6/bin - ) - -IF(QT3_MOC_EXECUTABLE) - SET ( QT_WRAP_CPP "YES") -ELSE(QT3_MOC_EXECUTABLE) -ENDIF(QT3_MOC_EXECUTABLE) - -# qt 3 should prefer QTDIR over the PATH -FIND_PROGRAM(QT3_UIC_EXECUTABLE uic - PATHS - $ENV{QTDIR}/bin - NO_DEFAULT_PATH -) -FIND_PROGRAM(QT3_UIC_EXECUTABLE uic - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]/include/Qt" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]/include/Qt" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]/include/Qt" - $ENV{QTDIR}/bin - ${GLOB_PATHS_BIN} - /usr/local/qt/bin - /usr/lib/qt/bin - /usr/lib/qt3/bin - /usr/share/qt3/bin - C:/Progra~1/qt/bin - /usr/X11R6/bin - ) - -IF(QT3_UIC_EXECUTABLE) - SET ( QT_WRAP_UI "YES") -ELSE(QT3_UIC_EXECUTABLE) -ENDIF(QT3_UIC_EXECUTABLE) - -IF (WIN32) - FIND_LIBRARY(QT3_QTMAIN_LIBRARY qtmain - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]/lib" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]/lib" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.1.0;InstallDir]/lib" - "$ENV{ProgramFiles}/qt/lib" - $ENV{QTDIR}/lib "C:/Program Files/qt/lib" - DOC "This Library is only needed by and included with Qt3 on MSWindows. It should be NOTFOUND, undefined or IGNORE otherwise." - ) -ENDIF (WIN32) - - -IF (QT3_MIN_VERSION) - - STRING(REGEX REPLACE "([0-9]+)\\.[0-9]+\\.[0-9]+" "\\1" qt_major_vers "${qt_version_str}") - STRING(REGEX REPLACE "[0-9]+\\.([0-9]+)\\.[0-9]+" "\\1" qt_minor_vers "${qt_version_str}") - STRING(REGEX REPLACE "[0-9]+\\.[0-9]+\\.([0-9]+)" "\\1" qt_patch_vers "${qt_version_str}") - - #now parse the parts of the user given version string into variables - STRING(REGEX MATCH "^[0-9]+\\.[0-9]+\\.[0-9]+$" req_qt_major_vers "${QT3_MIN_VERSION}") - IF (NOT req_qt_major_vers) - MESSAGE( FATAL_ERROR "Invalid Qt version string given: \"${QT3_MIN_VERSION}\", expected e.g. \"3.1.5\"") - ENDIF (NOT req_qt_major_vers) - - STRING(REGEX REPLACE "([0-9]+)\\.[0-9]+\\.[0-9]+" "\\1" req_qt_major_vers "${QT3_MIN_VERSION}") - STRING(REGEX REPLACE "[0-9]+\\.([0-9])+\\.[0-9]+" "\\1" req_qt_minor_vers "${QT3_MIN_VERSION}") - STRING(REGEX REPLACE "[0-9]+\\.[0-9]+\\.([0-9]+)" "\\1" req_qt_patch_vers "${QT3_MIN_VERSION}") - - # req = "6.5.4", qt = "3.2.1" - - IF (req_qt_major_vers GREATER qt_major_vers) # (6 > 3) ? - MESSAGE( FATAL_ERROR "Qt major version not matched (required: ${QT3_MIN_VERSION}, found: ${qt_version_str})") # yes - ELSE (req_qt_major_vers GREATER qt_major_vers) # no - IF (req_qt_major_vers LESS qt_major_vers) # (6 < 3) ? - SET( QT_VERSION_BIG_ENOUGH "YES" ) # yes - ELSE (req_qt_major_vers LESS qt_major_vers) # ( 6==3) ? - IF (req_qt_minor_vers GREATER qt_minor_vers) # (5>2) ? - MESSAGE( FATAL_ERROR "Qt minor version not matched (required: ${QT3_MIN_VERSION}, found: ${qt_version_str})") # yes - ELSE (req_qt_minor_vers GREATER qt_minor_vers) # no - IF (req_qt_minor_vers LESS qt_minor_vers) # (5<2) ? - SET( QT_VERSION_BIG_ENOUGH "YES" ) # yes - ELSE (req_qt_minor_vers LESS qt_minor_vers) # (5==2) - IF (req_qt_patch_vers GREATER qt_patch_vers) # (4>1) ? - MESSAGE( FATAL_ERROR "Qt patch level not matched (required: ${QT3_MIN_VERSION}, found: ${qt_version_str})") # yes - ELSE (req_qt_patch_vers GREATER qt_patch_vers) # (4>1) ? - SET( QT_VERSION_BIG_ENOUGH "YES" ) # yes - ENDIF (req_qt_patch_vers GREATER qt_patch_vers) # (4>1) ? - ENDIF (req_qt_minor_vers LESS qt_minor_vers) - ENDIF (req_qt_minor_vers GREATER qt_minor_vers) - ENDIF (req_qt_major_vers LESS qt_major_vers) - ENDIF (req_qt_major_vers GREATER qt_major_vers) -ENDIF (QT3_MIN_VERSION) - -# if the include a library are found then we have it -IF(QT3_INCLUDE_DIR) - IF(QT3_QT_LIBRARY) - SET( QT3_FOUND "YES" ) - ENDIF(QT3_QT_LIBRARY) -ENDIF(QT3_INCLUDE_DIR) - -IF(QT3_FOUND) - SET( QT3_LIBRARIES ${QT3_LIBRARIES} ${QT3_QT_LIBRARY} ) - SET( QT3_DEFINITIONS "") - - IF (WIN32 AND NOT CYGWIN) - IF (QT3_QTMAIN_LIBRARY) - # for version 3 - SET (QT3_DEFINITIONS -DQT_DLL -DQT_THREAD_SUPPORT -DNO_DEBUG) - SET (QT3_LIBRARIES imm32.lib ${QT3_QT_LIBRARY} ${QT3_QTMAIN_LIBRARY} ) - SET (QT3_LIBRARIES ${QT3_LIBRARIES} winmm wsock32) - ELSE (QT3_QTMAIN_LIBRARY) - # for version 2 - SET (QT3_LIBRARIES imm32.lib ws2_32.lib ${QT3_QT_LIBRARY} ) - ENDIF (QT3_QTMAIN_LIBRARY) - ELSE (WIN32 AND NOT CYGWIN) - SET (QT3_LIBRARIES ${QT3_QT_LIBRARY} ) - - SET (QT3_DEFINITIONS -DQT_SHARED -DQT_NO_DEBUG) - IF(QT3_QT_LIBRARY MATCHES "qt-mt") - SET (QT3_DEFINITIONS ${QT3_DEFINITIONS} -DQT_THREAD_SUPPORT -D_REENTRANT) - ENDIF(QT3_QT_LIBRARY MATCHES "qt-mt") - - ENDIF (WIN32 AND NOT CYGWIN) - - IF (QT_QASSISTANTCLIENT_LIBRARY) - SET (QT3_LIBRARIES ${QT_QASSISTANTCLIENT_LIBRARY} ${QT3_LIBRARIES}) - ENDIF (QT_QASSISTANTCLIENT_LIBRARY) - - # Backwards compatibility for CMake1.4 and 1.2 - SET (QT_MOC_EXE ${QT3_MOC_EXECUTABLE} ) - SET (QT_UIC_EXE ${QT3_UIC_EXECUTABLE} ) - # for unix add X11 stuff - IF(UNIX) - FIND_PACKAGE(X11) - IF (X11_FOUND) - SET (QT3_LIBRARIES ${QT3_LIBRARIES} ${X11_LIBRARIES}) - ENDIF (X11_FOUND) - IF (CMAKE_DL_LIBS) - SET (QT3_LIBRARIES ${QT3_LIBRARIES} ${CMAKE_DL_LIBS}) - ENDIF (CMAKE_DL_LIBS) - ENDIF(UNIX) - IF(QT3_QT_LIBRARY MATCHES "qt-mt") - FIND_PACKAGE(Threads) - SET(QT3_LIBRARIES ${QT3_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) - ENDIF(QT3_QT_LIBRARY MATCHES "qt-mt") -ENDIF(QT3_FOUND) - -EXEC_PROGRAM(${QT3_MOC_EXECUTABLE} ARGS "-v" OUTPUT_VARIABLE QTVERSION_MOC) -EXEC_PROGRAM(${QT3_UIC_EXECUTABLE} ARGS "-version" OUTPUT_VARIABLE QTVERSION_UI) - -SET(_QT_UIC_VERSION_3 FALSE) -IF("${QTVERSION_UIC}" MATCHES ".* 3..*") - SET(_QT_UIC_VERSION_3 TRUE) -ENDIF("${QTVERSION_UIC}" MATCHES ".* 3..*") - -SET(_QT_MOC_VERSION_3 FALSE) -IF("${QTVERSION_MOC}" MATCHES ".* 3..*") - SET(_QT_MOC_VERSION_3 TRUE) -ENDIF("${QTVERSION_MOC}" MATCHES ".* 3..*") - -SET(QT_WRAP_CPP FALSE) -IF (QT3_MOC_EXECUTABLE) - IF(_QT_MOC_VERSION_3) - SET ( QT_WRAP_CPP TRUE) - ENDIF(_QT_MOC_VERSION_3) -ENDIF (QT3_MOC_EXECUTABLE) - -SET(QT_WRAP_UI FALSE) -IF (QT3_UIC_EXECUTABLE) - IF(_QT_UIC_VERSION_3) - SET ( QT_WRAP_UI TRUE) - ENDIF(_QT_UIC_VERSION_3) -ENDIF (QT3_UIC_EXECUTABLE) - -MARK_AS_ADVANCED( - QT3_INCLUDE_DIR - QT3_QT_LIBRARY - QT3_QTMAIN_LIBRARY - QT_QASSISTANTCLIENT_LIBRARY - QT3_UIC_EXECUTABLE - QT3_MOC_EXECUTABLE - QT_WRAP_CPP - QT_WRAP_UI - ) diff --git a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindQt4.cmake b/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindQt4.cmake deleted file mode 100644 index 9122bb33f6d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/FindQt4.cmake +++ /dev/null @@ -1,1295 +0,0 @@ -# - Find QT 4 -# This module can be used to find Qt4. -# The most important issue is that the Qt4 qmake is available via the system path. -# This qmake is then used to detect basically everything else. -# This module defines a number of key variables and macros. First is -# QT_USE_FILE which is the path to a CMake file that can be included to compile -# Qt 4 applications and libraries. By default, the QtCore and QtGui -# libraries are loaded. This behavior can be changed by setting one or more -# of the following variables to true: -# QT_DONT_USE_QTCORE -# QT_DONT_USE_QTGUI -# QT_USE_QT3SUPPORT -# QT_USE_QTASSISTANT -# QT_USE_QTDESIGNER -# QT_USE_QTMOTIF -# QT_USE_QTMAIN -# QT_USE_QTNETWORK -# QT_USE_QTNSPLUGIN -# QT_USE_QTOPENGL -# QT_USE_QTSQL -# QT_USE_QTXML -# QT_USE_QTSVG -# QT_USE_QTTEST -# QT_USE_QTUITOOLS -# QT_USE_QTDBUS -# QT_USE_QTSCRIPT -# -# All the libraries required are stored in a variable called QT_LIBRARIES. -# Add this variable to your TARGET_LINK_LIBRARIES. -# -# macro QT4_WRAP_CPP(outfiles inputfile ... OPTIONS ...) -# create moc code from a list of files containing Qt class with -# the Q_OBJECT declaration. Options may be given to moc, such as those found -# when executing "moc -help" -# -# macro QT4_WRAP_UI(outfiles inputfile ... OPTIONS ...) -# create code from a list of Qt designer ui files. -# Options may be given to uic, such as those found -# when executing "uic -help" -# -# macro QT4_ADD_RESOURCES(outfiles inputfile ... OPTIONS ...) -# create code from a list of Qt resource files. -# Options may be given to rcc, such as those found -# when executing "rcc -help" -# -# macro QT4_AUTOMOC(inputfile ... ) -# macro QT4_GENERATE_MOC(inputfile outputfile ) -# -# macro QT4_ADD_DBUS_INTERFACE(outfiles interface basename) -# create a the interface header and implementation files with the -# given basename from the given interface xml file and add it to -# the list of sources. -# To disable generating a namespace header, set the source file property -# NO_NAMESPACE to TRUE on the interface file. -# -# macro QT4_ADD_DBUS_INTERFACES(outfiles inputfile ... ) -# create the interface header and implementation files -# for all listed interface xml files -# the name will be automatically determined from the name of the xml file -# To disable generating namespace headers, set the source file property -# NO_NAMESPACE to TRUE for these inputfiles. -# -# macro QT4_ADD_DBUS_ADAPTOR(outfiles xmlfile parentheader parentclassname [basename] [classname]) -# create a dbus adaptor (header and implementation file) from the xml file -# describing the interface, and add it to the list of sources. The adaptor -# forwards the calls to a parent class, defined in parentheader and named -# parentclassname. The name of the generated files will be -# <basename>adaptor.{cpp,h} where basename defaults to the basename of the xml file. -# If <classname> is provided, then it will be used as the classname of the -# adaptor itself. -# -# macro QT4_GENERATE_DBUS_INTERFACE( header [interfacename] OPTIONS ...) -# generate the xml interface file from the given header. -# If the optional argument interfacename is omitted, the name of the -# interface file is constructed from the basename of the header with -# the suffix .xml appended. -# Options may be given to uic, such as those found when executing "qdbuscpp2xml --help" -# -# QT_FOUND If false, don't try to use Qt. -# QT4_FOUND If false, don't try to use Qt 4. -# -# QT4_QTCORE_FOUND True if QtCore was found. -# QT4_QTGUI_FOUND True if QtGui was found. -# QT4_QT3SUPPORT_FOUND True if Qt3Support was found. -# QT4_QTASSISTANT_FOUND True if QtAssistant was found. -# QT4_QTDBUS_FOUND True if QtDBus was found. -# QT4_QTDESIGNER_FOUND True if QtDesigner was found. -# QT4_QTDESIGNERCOMPONENTS True if QtDesignerComponents was found. -# QT4_QTMOTIF_FOUND True if QtMotif was found. -# QT4_QTNETWORK_FOUND True if QtNetwork was found. -# QT4_QTNSPLUGIN_FOUND True if QtNsPlugin was found. -# QT4_QTOPENGL_FOUND True if QtOpenGL was found. -# QT4_QTSQL_FOUND True if QtSql was found. -# QT4_QTXML_FOUND True if QtXml was found. -# QT4_QTSVG_FOUND True if QtSvg was found. -# QT4_QTSCRIPT_FOUND True if QtScript was found. -# QT4_QTTEST_FOUND True if QtTest was found. -# QT4_QTUITOOLS_FOUND True if QtUiTools was found. -# -# QT4_DEFINITIONS Definitions to use when compiling code that uses Qt. -# -# QT4_INCLUDES List of paths to all include directories of -# Qt4 QT4_INCLUDE_DIR and QT4_QTCORE_INCLUDE_DIR are -# always in this variable even if NOTFOUND, -# all other INCLUDE_DIRS are -# only added if they are found. -# -# QT4_INCLUDE_DIR Path to "include" of Qt4 -# QT4_QT4_INCLUDE_DIR Path to "include/Qt" -# QT4_QT3SUPPORT_INCLUDE_DIR Path to "include/Qt3Support" -# QT4_QTASSISTANT_INCLUDE_DIR Path to "include/QtAssistant" -# QT4_QTCORE_INCLUDE_DIR Path to "include/QtCore" -# QT4_QTDESIGNER_INCLUDE_DIR Path to "include/QtDesigner" -# QT4_QTDESIGNERCOMPONENTS_INCLUDE_DIR Path to "include/QtDesigner" -# QT4_QTDBUS_INCLUDE_DIR Path to "include/QtDBus" -# QT4_QTGUI_INCLUDE_DIR Path to "include/QtGui" -# QT4_QTMOTIF_INCLUDE_DIR Path to "include/QtMotif" -# QT4_QTNETWORK_INCLUDE_DIR Path to "include/QtNetwork" -# QT4_QTNSPLUGIN_INCLUDE_DIR Path to "include/QtNsPlugin" -# QT4_QTOPENGL_INCLUDE_DIR Path to "include/QtOpenGL" -# QT4_QTSQL_INCLUDE_DIR Path to "include/QtSql" -# QT4_QTXML_INCLUDE_DIR Path to "include/QtXml" -# QT4_QTSVG_INCLUDE_DIR Path to "include/QtSvg" -# QT4_QTSCRIPT_INCLUDE_DIR Path to "include/QtScript" -# QT4_QTTEST_INCLUDE_DIR Path to "include/QtTest" -# -# QT4_LIBRARY_DIR Path to "lib" of Qt4 -# -# QT4_PLUGINS_DIR Path to "plugins" for Qt4 -# -# For every library of Qt, a QT4_QTFOO_LIBRARY variable is defined, with the full path to the library. -# -# So there are the following variables: -# The Qt3Support library: QT4_QT3SUPPORT_LIBRARY -# -# The QtAssistant library: QT4_QTASSISTANT_LIBRARY -# -# The QtCore library: QT4_QTCORE_LIBRARY -# -# The QtDBus library: QT4_QTDBUS_LIBRARY -# -# The QtDesigner library: QT4_QTDESIGNER_LIBRARY -# -# The QtDesignerComponents library: QT4_QTDESIGNERCOMPONENTS_LIBRARY -# -# The QtGui library: QT4_QTGUI_LIBRARY -# -# The QtMotif library: QT4_QTMOTIF_LIBRARY -# -# The QtNetwork library: QT4_QTNETWORK_LIBRARY -# -# The QtNsPLugin library: QT4_QTNSPLUGIN_LIBRARY -# -# The QtOpenGL library: QT4_QTOPENGL_LIBRARY -# -# The QtSql library: QT4_QTSQL_LIBRARY -# -# The QtXml library: QT4_QTXML_LIBRARY -# -# The QtSvg library: QT4_QTSVG_LIBRARY -# -# The QtScript library: QT4_QTSCRIPT_LIBRARY -# -# The QtTest library: QT4_QTTEST_LIBRARY -# -# The qtmain library for Windows QT4_QTMAIN_LIBRARY -# -# The QtUiTools library: QT4_QTUITOOLS_LIBRARY -# -# also defined, but NOT for general use are -# QT4_MOC_EXECUTABLE Where to find the moc tool. -# QT4_UIC_EXECUTABLE Where to find the uic tool. -# QT_UIC3_EXECUTABLE Where to find the uic3 tool. -# QT_RCC_EXECUTABLE Where to find the rcc tool -# QT_DBUSCPP2XML_EXECUTABLE Where to find the qdbuscpp2xml tool. -# QT_DBUSXML2CPP_EXECUTABLE Where to find the qdbusxml2cpp tool. -# -# QT_DOC_DIR Path to "doc" of Qt4 -# QT_MKSPECS_DIR Path to "mkspecs" of Qt4 -# -# -# These are around for backwards compatibility -# they will be set -# QT_WRAP_CPP Set true if QT4_MOC_EXECUTABLE is found -# QT_WRAP_UI Set true if QT4_UIC_EXECUTABLE is found -# -# These variables do _NOT_ have any effect anymore (compared to FindQt.cmake) -# QT_MT_REQUIRED Qt4 is now always multithreaded -# -# These variables are set to "" Because Qt structure changed -# (They make no sense in Qt4) -# QT4_QT_LIBRARY Qt-Library is now split - -# Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved. -# See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details. - -if (QT4_QMAKE_FOUND) - # Check already done in this cmake run, nothing more to do - -else (QT4_QMAKE_FOUND) - -# check that QT_NO_DEBUG is defined for release configurations -MACRO(QT_CHECK_FLAG_EXISTS FLAG VAR DOC) - IF(NOT ${VAR} MATCHES "${FLAG}") - SET(${VAR} "${${VAR}} ${FLAG}" - CACHE STRING "Flags used by the compiler during ${DOC} builds." FORCE) - ENDIF(NOT ${VAR} MATCHES "${FLAG}") -ENDMACRO(QT_CHECK_FLAG_EXISTS FLAG VAR) -QT_CHECK_FLAG_EXISTS(-DQT_NO_DEBUG CMAKE_CXX_FLAGS_RELWITHDEBINFO "Release with Debug Info") -QT_CHECK_FLAG_EXISTS(-DQT_NO_DEBUG CMAKE_CXX_FLAGS_RELEASE "release") -QT_CHECK_FLAG_EXISTS(-DQT_NO_DEBUG CMAKE_CXX_FLAGS_MINSIZEREL "release minsize") - -INCLUDE(CheckSymbolExists) -INCLUDE(MacroAddFileDependencies) -INCLUDE(MacroPushRequiredVars) - -SET(QT_USE_FILE ${CMAKE_ROOT}/Modules/UseQt4.cmake) - -SET( QT4_DEFINITIONS "") - -IF (WIN32) - SET(QT4_DEFINITIONS -DQT_DLL) -ENDIF(WIN32) - -SET(QT4_INSTALLED_VERSION_TOO_OLD FALSE) - -# macro for asking qmake to process pro files -MACRO(QT_QUERY_QMAKE outvar invar) - FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmpQmake/tmp.pro - "message(CMAKE_MESSAGE<$$${invar}>)") - - # Invoke qmake with the tmp.pro program to get the desired - # information. Use the same variable for both stdout and stderr - # to make sure we get the output on all platforms. - EXECUTE_PROCESS(COMMAND ${QT_QMAKE_EXECUTABLE} - WORKING_DIRECTORY - ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmpQmake - OUTPUT_VARIABLE _qmake_query_output - RESULT_VARIABLE _qmake_result - ERROR_VARIABLE _qmake_query_output ) - - FILE(REMOVE_RECURSE - "${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmpQmake") - - IF(_qmake_result) - MESSAGE(WARNING " querying qmake for ${invar}. qmake reported:\n${_qmake_query_output}") - ELSE(_qmake_result) - STRING(REGEX REPLACE ".*CMAKE_MESSAGE<([^>]*).*" "\\1" ${outvar} "${_qmake_query_output}") - ENDIF(_qmake_result) - -ENDMACRO(QT_QUERY_QMAKE) - -GET_FILENAME_COMPONENT(qt_install_version "[HKEY_CURRENT_USER\\Software\\trolltech\\Versions;DefaultQtVersion]" NAME) -# check for qmake -FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake qmake4 qmake-qt4 PATHS - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\4.0.0;InstallDir]/bin" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\4.0.0;InstallDir]/bin" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\${qt_install_version};InstallDir]/bin" - $ENV{QTDIR}/bin -) - -IF (QT_QMAKE_EXECUTABLE) - - SET(QT4_QMAKE_FOUND FALSE) - - EXEC_PROGRAM(${QT_QMAKE_EXECUTABLE} ARGS "-query QT_VERSION" OUTPUT_VARIABLE QTVERSION) - - # check for qt3 qmake and then try and find qmake4 or qmake-qt4 in the path - IF("${QTVERSION}" MATCHES "Unknown") - SET(QT_QMAKE_EXECUTABLE NOTFOUND CACHE FILEPATH "" FORCE) - FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake4 qmake-qt4 PATHS - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\4.0.0;InstallDir]/bin" - "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\4.0.0;InstallDir]/bin" - $ENV{QTDIR}/bin - ) - IF(QT_QMAKE_EXECUTABLE) - EXEC_PROGRAM(${QT_QMAKE_EXECUTABLE} - ARGS "-query QT_VERSION" OUTPUT_VARIABLE QTVERSION) - ENDIF(QT_QMAKE_EXECUTABLE) - ENDIF("${QTVERSION}" MATCHES "Unknown") - - # check that we found the Qt4 qmake, Qt3 qmake output won't match here - STRING(REGEX MATCH "^[0-9]+\\.[0-9]+\\.[0-9]+" qt_version_tmp "${QTVERSION}") - IF (qt_version_tmp) - - # we need at least version 4.0.0 - IF (NOT QT4_MIN_VERSION) - SET(QT4_MIN_VERSION "4.0.0") - ENDIF (NOT QT4_MIN_VERSION) - - #now parse the parts of the user given version string into variables - STRING(REGEX MATCH "^[0-9]+\\.[0-9]+\\.[0-9]+" req_qt_major_vers "${QT4_MIN_VERSION}") - IF (NOT req_qt_major_vers) - MESSAGE( FATAL_ERROR "Invalid Qt version string given: \"${QT4_MIN_VERSION}\", expected e.g. \"4.0.1\"") - ENDIF (NOT req_qt_major_vers) - - # now parse the parts of the user given version string into variables - STRING(REGEX REPLACE "^([0-9]+)\\.[0-9]+\\.[0-9]+" "\\1" req_qt_major_vers "${QT4_MIN_VERSION}") - STRING(REGEX REPLACE "^[0-9]+\\.([0-9])+\\.[0-9]+" "\\1" req_qt_minor_vers "${QT4_MIN_VERSION}") - STRING(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]+)" "\\1" req_qt_patch_vers "${QT4_MIN_VERSION}") - - IF (NOT req_qt_major_vers EQUAL 4) - MESSAGE( FATAL_ERROR "Invalid Qt version string given: \"${QT4_MIN_VERSION}\", major version 4 is required, e.g. \"4.0.1\"") - ENDIF (NOT req_qt_major_vers EQUAL 4) - - # and now the version string given by qmake - STRING(REGEX REPLACE "^([0-9]+)\\.[0-9]+\\.[0-9]+.*" "\\1" found_qt_major_vers "${QTVERSION}") - STRING(REGEX REPLACE "^[0-9]+\\.([0-9])+\\.[0-9]+.*" "\\1" found_qt_minor_vers "${QTVERSION}") - STRING(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" found_qt_patch_vers "${QTVERSION}") - - # compute an overall version number which can be compared at once - MATH(EXPR req_vers "${req_qt_major_vers}*10000 + ${req_qt_minor_vers}*100 + ${req_qt_patch_vers}") - MATH(EXPR found_vers "${found_qt_major_vers}*10000 + ${found_qt_minor_vers}*100 + ${found_qt_patch_vers}") - - IF (found_vers LESS req_vers) - SET(QT4_QMAKE_FOUND FALSE) - SET(QT4_INSTALLED_VERSION_TOO_OLD TRUE) - ELSE (found_vers LESS req_vers) - SET(QT4_QMAKE_FOUND TRUE) - ENDIF (found_vers LESS req_vers) - ENDIF (qt_version_tmp) - -ENDIF (QT_QMAKE_EXECUTABLE) - -IF (QT4_QMAKE_FOUND) - - if (WIN32) - # get qt install dir - get_filename_component(_DIR ${QT_QMAKE_EXECUTABLE} PATH ) - get_filename_component(QT_INSTALL_DIR ${_DIR} PATH ) - endif (WIN32) - - # ask qmake for the library dir - # Set QT4_LIBRARY_DIR - IF (NOT QT4_LIBRARY_DIR) - EXEC_PROGRAM( ${QT_QMAKE_EXECUTABLE} - ARGS "-query QT_INSTALL_LIBS" - OUTPUT_VARIABLE QT4_LIBRARY_DIR_TMP ) - IF(EXISTS "${QT4_LIBRARY_DIR_TMP}") - SET(QT4_LIBRARY_DIR ${QT4_LIBRARY_DIR_TMP} CACHE PATH "Qt library dir") - ELSE(EXISTS "${QT4_LIBRARY_DIR_TMP}") - MESSAGE("Warning: QT_QMAKE_EXECUTABLE reported QT_INSTALL_LIBS as ${QT4_LIBRARY_DIR_TMP}") - MESSAGE("Warning: ${QT4_LIBRARY_DIR_TMP} does NOT exist, Qt must NOT be installed correctly.") - ENDIF(EXISTS "${QT4_LIBRARY_DIR_TMP}") - ENDIF(NOT QT4_LIBRARY_DIR) - - IF (APPLE) - IF (EXISTS ${QT4_LIBRARY_DIR}/QtCore.framework) - SET(QT_USE_FRAMEWORKS ON - CACHE BOOL "Set to ON if Qt build uses frameworks.") - ELSE (EXISTS ${QT4_LIBRARY_DIR}/QtCore.framework) - SET(QT_USE_FRAMEWORKS OFF - CACHE BOOL "Set to ON if Qt build uses frameworks.") - ENDIF (EXISTS ${QT4_LIBRARY_DIR}/QtCore.framework) - - MARK_AS_ADVANCED(QT_USE_FRAMEWORKS) - ENDIF (APPLE) - - # ask qmake for the binary dir - IF (NOT QT_BINARY_DIR) - EXEC_PROGRAM(${QT_QMAKE_EXECUTABLE} - ARGS "-query QT_INSTALL_BINS" - OUTPUT_VARIABLE qt_bins ) - SET(QT_BINARY_DIR ${qt_bins} CACHE INTERNAL "") - ENDIF (NOT QT_BINARY_DIR) - - # ask qmake for the include dir - IF (NOT QT_HEADERS_DIR) - EXEC_PROGRAM( ${QT_QMAKE_EXECUTABLE} - ARGS "-query QT_INSTALL_HEADERS" - OUTPUT_VARIABLE qt_headers ) - SET(QT_HEADERS_DIR ${qt_headers} CACHE INTERNAL "") - ENDIF(NOT QT_HEADERS_DIR) - - - # ask qmake for the documentation directory - IF (NOT QT_DOC_DIR) - EXEC_PROGRAM( ${QT_QMAKE_EXECUTABLE} - ARGS "-query QT_INSTALL_DOCS" - OUTPUT_VARIABLE qt_doc_dir ) - SET(QT_DOC_DIR ${qt_doc_dir} CACHE PATH "The location of the Qt docs") - ENDIF (NOT QT_DOC_DIR) - - # ask qmake for the mkspecs directory - IF (NOT QT_MKSPECS_DIR) - EXEC_PROGRAM( ${QT_QMAKE_EXECUTABLE} - ARGS "-query QMAKE_MKSPECS" - OUTPUT_VARIABLE qt_mkspecs_dirs ) - STRING(REPLACE ":" ";" qt_mkspecs_dirs "${qt_mkspecs_dirs}") - FIND_PATH(QT_MKSPECS_DIR qconfig.pri PATHS ${qt_mkspecs_dirs} - DOC "The location of the Qt mkspecs containing qconfig.pri" - NO_DEFAULT_PATH ) - ENDIF (NOT QT_MKSPECS_DIR) - - # ask qmake for the plugins directory - IF (NOT QT4_PLUGINS_DIR) - EXEC_PROGRAM( ${QT_QMAKE_EXECUTABLE} - ARGS "-query QT_INSTALL_PLUGINS" - OUTPUT_VARIABLE qt_plugins_dir ) - SET(QT4_PLUGINS_DIR ${qt_plugins_dir} CACHE PATH "The location of the Qt plugins") - ENDIF (NOT QT4_PLUGINS_DIR) - ######################################## - # - # Setting the INCLUDE-Variables - # - ######################################## - - FIND_PATH(QT4_QTCORE_INCLUDE_DIR QtGlobal - ${QT_HEADERS_DIR}/QtCore - ${QT4_LIBRARY_DIR}/QtCore.framework/Headers - NO_DEFAULT_PATH - ) - - # Set QT4_INCLUDE_DIR by removine "/QtCore" in the string ${QT4_QTCORE_INCLUDE_DIR} - IF( QT4_QTCORE_INCLUDE_DIR AND NOT QT4_INCLUDE_DIR) - IF (QT_USE_FRAMEWORKS) - SET(QT4_INCLUDE_DIR ${QT_HEADERS_DIR}) - ELSE (QT_USE_FRAMEWORKS) - STRING( REGEX REPLACE "/QtCore$" "" qt4_include_dir ${QT4_QTCORE_INCLUDE_DIR}) - SET( QT4_INCLUDE_DIR ${qt4_include_dir} CACHE PATH "") - ENDIF (QT_USE_FRAMEWORKS) - ENDIF( QT4_QTCORE_INCLUDE_DIR AND NOT QT4_INCLUDE_DIR) - - IF( NOT QT4_INCLUDE_DIR) - IF( NOT Qt4_FIND_QUIETLY AND Qt4_FIND_REQUIRED) - MESSAGE( FATAL_ERROR "Could NOT find QtGlobal header") - ENDIF( NOT Qt4_FIND_QUIETLY AND Qt4_FIND_REQUIRED) - ENDIF( NOT QT4_INCLUDE_DIR) - - ############################################# - # - # Find out what window system we're using - # - ############################################# - # Save required includes and required_flags variables - macro_push_required_vars() - # Add QT4_INCLUDE_DIR to CMAKE_REQUIRED_INCLUDES - SET(CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES};${QT4_INCLUDE_DIR}") - # On Mac OS X when Qt has framework support, also add the framework path - IF( QT_USE_FRAMEWORKS ) - SET(CMAKE_REQUIRED_FLAGS "-F${QT4_LIBRARY_DIR} ") - ENDIF( QT_USE_FRAMEWORKS ) - # Check for Window system symbols (note: only one should end up being set) - CHECK_SYMBOL_EXISTS(Q_WS_X11 "QtCore/qglobal.h" Q_WS_X11) - CHECK_SYMBOL_EXISTS(Q_WS_WIN "QtCore/qglobal.h" Q_WS_WIN) - CHECK_SYMBOL_EXISTS(Q_WS_QWS "QtCore/qglobal.h" Q_WS_QWS) - CHECK_SYMBOL_EXISTS(Q_WS_MAC "QtCore/qglobal.h" Q_WS_MAC) - - IF (QT4_QTCOPY_REQUIRED) - CHECK_SYMBOL_EXISTS(QT_IS_QTCOPY "QtCore/qglobal.h" QT_KDE_QT_COPY) - IF (NOT QT_IS_QTCOPY) - MESSAGE(FATAL_ERROR "qt-copy is required, but hasn't been found") - ENDIF (NOT QT_IS_QTCOPY) - ENDIF (QT4_QTCOPY_REQUIRED) - - # Restore CMAKE_REQUIRED_INCLUDES+CMAKE_REQUIRED_FLAGS variables - macro_pop_required_vars() - # - ############################################# - - IF (QT_USE_FRAMEWORKS) - SET(QT4_DEFINITIONS ${QT4_DEFINITIONS} -F${QT4_LIBRARY_DIR} -L${QT4_LIBRARY_DIR} ) - ENDIF (QT_USE_FRAMEWORKS) - - # Set QT4_QT3SUPPORT_INCLUDE_DIR - FIND_PATH(QT4_QT3SUPPORT_INCLUDE_DIR Qt3Support - PATHS - ${QT4_INCLUDE_DIR}/Qt3Support - ${QT4_LIBRARY_DIR}/Qt3Support.framework/Headers - NO_DEFAULT_PATH - ) - - # Set QT4_QT4_INCLUDE_DIR - FIND_PATH(QT4_QT4_INCLUDE_DIR qglobal.h - PATHS - ${QT4_INCLUDE_DIR}/Qt - ${QT4_LIBRARY_DIR}/QtCore.framework/Headers - NO_DEFAULT_PATH - ) - - # Set QT4_QTGUI_INCLUDE_DIR - FIND_PATH(QT4_QTGUI_INCLUDE_DIR QtGui - PATHS - ${QT4_INCLUDE_DIR}/QtGui - ${QT4_LIBRARY_DIR}/QtGui.framework/Headers - NO_DEFAULT_PATH - ) - - # Set QT4_QTSVG_INCLUDE_DIR - FIND_PATH(QT4_QTSVG_INCLUDE_DIR QtSvg - PATHS - ${QT4_INCLUDE_DIR}/QtSvg - ${QT4_LIBRARY_DIR}/QtSvg.framework/Headers - NO_DEFAULT_PATH - ) - - # Set QT4_QTSCRIPT_INCLUDE_DIR - FIND_PATH(QT4_QTSCRIPT_INCLUDE_DIR QtScript - PATHS - ${QT4_INCLUDE_DIR}/QtScript - ${QT4_LIBRARY_DIR}/QtScript.framework/Headers - NO_DEFAULT_PATH - ) - - # Set QT4_QTTEST_INCLUDE_DIR - FIND_PATH(QT4_QTTEST_INCLUDE_DIR QtTest - PATHS - ${QT4_INCLUDE_DIR}/QtTest - ${QT4_LIBRARY_DIR}/QtTest.framework/Headers - NO_DEFAULT_PATH - ) - - # Set QT4_QTUITOOLS_INCLUDE_DIR - FIND_PATH(QT4_QTUITOOLS_INCLUDE_DIR QtUiTools - PATHS - ${QT4_INCLUDE_DIR}/QtUiTools - ${QT4_LIBRARY_DIR}/QtUiTools.framework/Headers - NO_DEFAULT_PATH - ) - - - - # Set QT4_QTMOTIF_INCLUDE_DIR - IF(Q_WS_X11) - FIND_PATH(QT4_QTMOTIF_INCLUDE_DIR QtMotif PATHS ${QT4_INCLUDE_DIR}/QtMotif NO_DEFAULT_PATH ) - ENDIF(Q_WS_X11) - - # Set QT4_QTNETWORK_INCLUDE_DIR - FIND_PATH(QT4_QTNETWORK_INCLUDE_DIR QtNetwork - PATHS - ${QT4_INCLUDE_DIR}/QtNetwork - ${QT4_LIBRARY_DIR}/QtNetwork.framework/Headers - NO_DEFAULT_PATH - ) - - # Set QT4_QTNSPLUGIN_INCLUDE_DIR - FIND_PATH(QT4_QTNSPLUGIN_INCLUDE_DIR QtNsPlugin - PATHS - ${QT4_INCLUDE_DIR}/QtNsPlugin - ${QT4_LIBRARY_DIR}/QtNsPlugin.framework/Headers - NO_DEFAULT_PATH - ) - - # Set QT4_QTOPENGL_INCLUDE_DIR - FIND_PATH(QT4_QTOPENGL_INCLUDE_DIR QtOpenGL - PATHS - ${QT4_INCLUDE_DIR}/QtOpenGL - ${QT4_LIBRARY_DIR}/QtOpenGL.framework/Headers - NO_DEFAULT_PATH - ) - - # Set QT4_QTSQL_INCLUDE_DIR - FIND_PATH(QT4_QTSQL_INCLUDE_DIR QtSql - PATHS - ${QT4_INCLUDE_DIR}/QtSql - ${QT4_LIBRARY_DIR}/QtSql.framework/Headers - NO_DEFAULT_PATH - ) - - # Set QT4_QTXML_INCLUDE_DIR - FIND_PATH(QT4_QTXML_INCLUDE_DIR QtXml - PATHS - ${QT4_INCLUDE_DIR}/QtXml - ${QT4_LIBRARY_DIR}/QtXml.framework/Headers - NO_DEFAULT_PATH - ) - - # Set QT4_QTASSISTANT_INCLUDE_DIR - FIND_PATH(QT4_QTASSISTANT_INCLUDE_DIR QtAssistant - PATHS - ${QT4_INCLUDE_DIR}/QtAssistant - ${QT_HEADERS_DIR}/QtAssistant - ${QT4_LIBRARY_DIR}/QtAssistant.framework/Headers - NO_DEFAULT_PATH - ) - - # Set QT4_QTDESIGNER_INCLUDE_DIR - FIND_PATH(QT4_QTDESIGNER_INCLUDE_DIR QDesignerComponents - PATHS - ${QT4_INCLUDE_DIR}/QtDesigner - ${QT_HEADERS_DIR}/QtDesigner - ${QT4_LIBRARY_DIR}/QtDesigner.framework/Headers - NO_DEFAULT_PATH - ) - - # Set QT4_QTDESIGNERCOMPONENTS_INCLUDE_DIR - FIND_PATH(QT4_QTDESIGNERCOMPONENTS_INCLUDE_DIR QDesignerComponents - PATHS - ${QT4_INCLUDE_DIR}/QtDesigner - ${QT_HEADERS_DIR}/QtDesigner - NO_DEFAULT_PATH - ) - - - # Set QT4_QTDBUS_INCLUDE_DIR - FIND_PATH(QT4_QTDBUS_INCLUDE_DIR QtDBus - PATHS - ${QT4_INCLUDE_DIR}/QtDBus - ${QT_HEADERS_DIR}/QtDBus - NO_DEFAULT_PATH - ) - - # Make variables changeble to the advanced user - MARK_AS_ADVANCED( QT4_LIBRARY_DIR QT4_INCLUDE_DIR QT4_QT4_INCLUDE_DIR QT_DOC_DIR QT_MKSPECS_DIR QT4_PLUGINS_DIR) - - # Set QT4_INCLUDES - SET( QT4_INCLUDES ${QT4_QT4_INCLUDE_DIR} ${QT_MKSPECS_DIR}/default ${QT4_INCLUDE_DIR}) - - - ######################################## - # - # Setting the LIBRARY-Variables - # - ######################################## - - IF (QT_USE_FRAMEWORKS) - # If FIND_LIBRARY found libraries in Apple frameworks, we would NOT have - # to jump through these hoops. - IF(EXISTS ${QT4_LIBRARY_DIR}/QtCore.framework) - SET(QT4_QTCORE_FOUND TRUE) - SET(QT4_QTCORE_LIBRARY "-F${QT4_LIBRARY_DIR} -framework QtCore" CACHE STRING "The QtCore library.") - ELSE(EXISTS ${QT4_LIBRARY_DIR}/QtCore.framework) - SET(QT4_QTCORE_FOUND FALSE) - ENDIF(EXISTS ${QT4_LIBRARY_DIR}/QtCore.framework) - - IF(EXISTS ${QT4_LIBRARY_DIR}/QtGui.framework) - SET(QT4_QTGUI_FOUND TRUE) - SET(QT4_QTGUI_LIBRARY "-F${QT4_LIBRARY_DIR} -framework QtGui" CACHE STRING "The QtGui library.") - ELSE(EXISTS ${QT4_LIBRARY_DIR}/QtGui.framework) - SET(QT4_QTGUI_FOUND FALSE) - ENDIF(EXISTS ${QT4_LIBRARY_DIR}/QtGui.framework) - - IF(EXISTS ${QT4_LIBRARY_DIR}/Qt3Support.framework) - SET(QT4_QT3SUPPORT_FOUND TRUE) - SET(QT4_QT3SUPPORT_LIBRARY "-F${QT4_LIBRARY_DIR} -framework Qt3Support" CACHE STRING "The Qt3Support library.") - ELSE(EXISTS ${QT4_LIBRARY_DIR}/Qt3Support.framework) - SET(QT4_QT3SUPPORT_FOUND FALSE) - ENDIF(EXISTS ${QT4_LIBRARY_DIR}/Qt3Support.framework) - - IF(EXISTS ${QT4_LIBRARY_DIR}/QtNetwork.framework) - SET(QT4_QTNETWORK_FOUND TRUE) - SET(QT4_QTNETWORK_LIBRARY "-F${QT4_LIBRARY_DIR} -framework QtNetwork" CACHE STRING "The QtNetwork library.") - ELSE(EXISTS ${QT4_LIBRARY_DIR}/QtNetwork.framework) - SET(QT4_QTNETWORK_FOUND FALSE) - ENDIF(EXISTS ${QT4_LIBRARY_DIR}/QtNetwork.framework) - - IF(EXISTS ${QT4_LIBRARY_DIR}/QtOpenGL.framework) - SET(QT4_QTOPENGL_FOUND TRUE) - SET(QT4_QTOPENGL_LIBRARY "-F${QT4_LIBRARY_DIR} -framework QtOpenGL" CACHE STRING "The QtOpenGL library.") - ELSE(EXISTS ${QT4_LIBRARY_DIR}/QtOpenGL.framework) - SET(QT4_QTOPENGL_FOUND FALSE) - ENDIF(EXISTS ${QT4_LIBRARY_DIR}/QtOpenGL.framework) - - IF(EXISTS ${QT4_LIBRARY_DIR}/QtSql.framework) - SET(QT4_QTSQL_FOUND TRUE) - SET(QT4_QTSQL_LIBRARY "-F${QT4_LIBRARY_DIR} -framework QtSql" CACHE STRING "The QtSql library.") - ELSE(EXISTS ${QT4_LIBRARY_DIR}/QtSql.framework) - SET(QT4_QTSQL_FOUND FALSE) - ENDIF(EXISTS ${QT4_LIBRARY_DIR}/QtSql.framework) - - IF(EXISTS ${QT4_LIBRARY_DIR}/QtXml.framework) - SET(QT4_QTXML_FOUND TRUE) - SET(QT4_QTXML_LIBRARY "-F${QT4_LIBRARY_DIR} -framework QtXml" CACHE STRING "The QtXml library.") - ELSE(EXISTS ${QT4_LIBRARY_DIR}/QtXml.framework) - SET(QT4_QTXML_FOUND FALSE) - ENDIF(EXISTS ${QT4_LIBRARY_DIR}/QtXml.framework) - - IF(EXISTS ${QT4_LIBRARY_DIR}/QtSvg.framework) - SET(QT4_QTSVG_FOUND TRUE) - SET(QT4_QTSVG_LIBRARY "-F${QT4_LIBRARY_DIR} -framework QtSvg" CACHE STRING "The QtSvg library.") - ELSE(EXISTS ${QT4_LIBRARY_DIR}/QtSvg.framework) - SET(QT4_QTSVG_FOUND FALSE) - ENDIF(EXISTS ${QT4_LIBRARY_DIR}/QtSvg.framework) - - IF(EXISTS ${QT4_LIBRARY_DIR}/QtDBus.framework) - SET(QT4_QTDBUS_FOUND TRUE) - SET(QT4_QTDBUS_LIBRARY "-F${QT4_LIBRARY_DIR} -framework QtDBus" CACHE STRING "The QtDBus library.") - ELSE(EXISTS ${QT4_LIBRARY_DIR}/QtDBus.framework) - SET(QT4_QTDBUS_FOUND FALSE) - ENDIF(EXISTS ${QT4_LIBRARY_DIR}/QtDBus.framework) - - IF(EXISTS ${QT4_LIBRARY_DIR}/QtTest.framework) - SET(QT4_QTTEST_FOUND TRUE) - SET(QT4_QTTEST_LIBRARY "-F${QT4_LIBRARY_DIR} -framework QtTest" CACHE STRING "The QtTest library.") - ELSE(EXISTS ${QT4_LIBRARY_DIR}/QtTest.framework) - SET(QT4_QTTEST_FOUND FALSE) - ENDIF(EXISTS ${QT4_LIBRARY_DIR}/QtTest.framework) - - # WTF? why don't we have frameworks? :P - # Set QT4_QTUITOOLS_LIBRARY - FIND_LIBRARY(QT4_QTUITOOLS_LIBRARY NAMES QtUiTools QtUiTools4 PATHS ${QT4_LIBRARY_DIR} ) - # Set QT4_QTSCRIPT_LIBRARY - FIND_LIBRARY(QT4_QTSCRIPT_LIBRARY NAMES QtScript QtScript4 PATHS ${QT4_LIBRARY_DIR} ) - - ELSE (QT_USE_FRAMEWORKS) - - # Set QT4_QTCORE_LIBRARY by searching for a lib with "QtCore." as part of the filename - FIND_LIBRARY(QT4_QTCORE_LIBRARY NAMES QtCore QtCore4 QtCored4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH ) - - # Set QT4_QT3SUPPORT_LIBRARY - FIND_LIBRARY(QT4_QT3SUPPORT_LIBRARY NAMES Qt3Support Qt3Support4 Qt3Supportd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - - # Set QT4_QTGUI_LIBRARY - FIND_LIBRARY(QT4_QTGUI_LIBRARY NAMES QtGui QtGui4 QtGuid4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - - # Set QT4_QTMOTIF_LIBRARY - IF(Q_WS_X11) - FIND_LIBRARY(QT4_QTMOTIF_LIBRARY NAMES QtMotif PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - ENDIF(Q_WS_X11) - - # Set QT4_QTNETWORK_LIBRARY - FIND_LIBRARY(QT4_QTNETWORK_LIBRARY NAMES QtNetwork QtNetwork4 QtNetworkd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - - # Set QT4_QTNSPLUGIN_LIBRARY - FIND_LIBRARY(QT4_QTNSPLUGIN_LIBRARY NAMES QtNsPlugin PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - - # Set QT4_QTOPENGL_LIBRARY - FIND_LIBRARY(QT4_QTOPENGL_LIBRARY NAMES QtOpenGL QtOpenGL4 QtOpenGLd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - - # Set QT4_QTSQL_LIBRARY - FIND_LIBRARY(QT4_QTSQL_LIBRARY NAMES QtSql QtSql4 QtSqld4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - - # Set QT4_QTXML_LIBRARY - FIND_LIBRARY(QT4_QTXML_LIBRARY NAMES QtXml QtXml4 QtXmld4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - - # Set QT4_QTSVG_LIBRARY - FIND_LIBRARY(QT4_QTSVG_LIBRARY NAMES QtSvg QtSvg4 QtSvgd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - - # Set QT4_QTSCRIPT_LIBRARY - FIND_LIBRARY(QT4_QTSCRIPT_LIBRARY NAMES QtScript QtScript4 QtScriptd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - - # Set QT4_QTUITOOLS_LIBRARY - FIND_LIBRARY(QT4_QTUITOOLS_LIBRARY NAMES QtUiTools QtUiTools4 QtUiToolsd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - - # Set QT4_QTTEST_LIBRARY - FIND_LIBRARY(QT4_QTTEST_LIBRARY NAMES QtTest QtTest4 QtTestd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - - FIND_LIBRARY(QT4_QTDBUS_LIBRARY NAMES QtDBus QtDBus4 QtDBusd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - - IF(MSVC) - FIND_LIBRARY(QT4_QTCORE_LIBRARY_RELEASE NAMES QtCore4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTCORE_LIBRARY_DEBUG NAMES QtCored4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QT3SUPPORT_LIBRARY_RELEASE NAMES Qt3Support4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QT3SUPPORT_LIBRARY_DEBUG NAMES Qt3Supportd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTGUI_LIBRARY_RELEASE NAMES QtGui4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTGUI_LIBRARY_DEBUG NAMES QtGuid4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTNETWORK_LIBRARY_RELEASE NAMES QtNetwork4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTNETWORK_LIBRARY_DEBUG NAMES QtNetworkd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTOPENGL_LIBRARY_RELEASE NAMES QtOpenGL4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTOPENGL_LIBRARY_DEBUG NAMES QtOpenGLd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTSQL_LIBRARY_RELEASE NAMES QtSql4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTSQL_LIBRARY_DEBUG NAMES QtSqld4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTXML_LIBRARY_RELEASE NAMES QtXml4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTXML_LIBRARY_DEBUG NAMES QtXmld4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTSVG_LIBRARY_RELEASE NAMES QtSvg4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTSVG_LIBRARY_DEBUG NAMES QtSvgd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTSCRIPT_LIBRARY_RELEASE NAMES QtScript4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTSCRIPT_LIBRARY_DEBUG NAMES QtScriptd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTUITOOLS_LIBRARY_RELEASE NAMES QtUiTools QtUiTools4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTUITOOLS_LIBRARY_DEBUG NAMES QtUiToolsd QtUiToolsd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTTEST_LIBRARY_RELEASE NAMES QtTest4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTTEST_LIBRARY_DEBUG NAMES QtTestd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTDBUS_LIBRARY_RELEASE NAMES QtDBus4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTDBUS_LIBRARY_DEBUG NAMES QtDBusd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTASSISTANT_LIBRARY_RELEASE NAMES QtAssistantClient4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTASSISTANT_LIBRARY_DEBUG NAMES QtAssistantClientd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTDESIGNER_LIBRARY_RELEASE NAMES QtDesigner4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTDESIGNER_LIBRARY_DEBUG NAMES QtDesignerd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTDESIGNERCOMPONENTS_LIBRARY_RELEASE NAMES QtDesignerComponents4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTDESIGNERCOMPONENTS_LIBRARY_DEBUG NAMES QtDesignerComponentsd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTMAIN_LIBRARY_RELEASE NAMES qtmain PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - FIND_LIBRARY(QT4_QTMAIN_LIBRARY_DEBUG NAMES qtmaind PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - ENDIF(MSVC) - ENDIF (QT_USE_FRAMEWORKS) - - IF( NOT QT4_QTCORE_LIBRARY ) - IF( NOT Qt4_FIND_QUIETLY AND Qt4_FIND_REQUIRED) - MESSAGE( FATAL_ERROR "Could NOT find QtCore. Check ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log for more details.") - ENDIF( NOT Qt4_FIND_QUIETLY AND Qt4_FIND_REQUIRED) - ENDIF( NOT QT4_QTCORE_LIBRARY ) - - # Set QT4_QTASSISTANT_LIBRARY - FIND_LIBRARY(QT4_QTASSISTANT_LIBRARY NAMES QtAssistantClient QtAssistantClient4 QtAssistant QtAssistant4 QtAssistantd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - - # Set QT4_QTDESIGNER_LIBRARY - FIND_LIBRARY(QT4_QTDESIGNER_LIBRARY NAMES QtDesigner QtDesigner4 QtDesignerd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - - # Set QT4_QTDESIGNERCOMPONENTS_LIBRARY - FIND_LIBRARY(QT4_QTDESIGNERCOMPONENTS_LIBRARY NAMES QtDesignerComponents QtDesignerComponents4 QtDesignerComponentsd4 PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - - # Set QT4_QTMAIN_LIBRARY - IF(WIN32) - FIND_LIBRARY(QT4_QTMAIN_LIBRARY NAMES qtmain qtmaind PATHS ${QT4_LIBRARY_DIR} NO_DEFAULT_PATH) - ENDIF(WIN32) - - ############################################ - # - # Check the existence of the libraries. - # - ############################################ - - MACRO (_QT4_ADJUST_LIB_VARS basename) - IF (QT4_${basename}_LIBRARY OR QT4_${basename}_LIBRARY_DEBUG) - - IF(MSVC) - # Both set - IF (QT4_${basename}_LIBRARY_RELEASE AND QT4_${basename}_LIBRARY_DEBUG) - SET(QT4_${basename}_LIBRARY optimized ${QT4_${basename}_LIBRARY_RELEASE} debug ${QT4_${basename}_LIBRARY_DEBUG}) - ENDIF (QT4_${basename}_LIBRARY_RELEASE AND QT4_${basename}_LIBRARY_DEBUG) - - # Only debug was found - IF (NOT QT4_${basename}_LIBRARY_RELEASE AND QT4_${basename}_LIBRARY_DEBUG) - SET(QT4_${basename}_LIBRARY ${QT4_${basename}_LIBRARY_DEBUG}) - ENDIF (NOT QT4_${basename}_LIBRARY_RELEASE AND QT4_${basename}_LIBRARY_DEBUG) - - # Only release was found - IF (QT4_${basename}_LIBRARY_RELEASE AND NOT QT4_${basename}_LIBRARY_DEBUG) - SET(QT4_${basename}_LIBRARY ${QT4_${basename}_LIBRARY_RELEASE}) - ENDIF (QT4_${basename}_LIBRARY_RELEASE AND NOT QT4_${basename}_LIBRARY_DEBUG) - - # Hmm, is this used anywhere ? Yes, in UseQt4.cmake. We are currently incompatible :-( - SET(QT4_${basename}_LIBRARIES optimized ${QT4_${basename}_LIBRARY} debug ${QT4_${basename}_LIBRARY_DEBUG}) - - ENDIF(MSVC) - - SET(QT4_${basename}_LIBRARY ${QT4_${basename}_LIBRARY} CACHE FILEPATH "The Qt4 ${basename} library") - - IF (QT4_${basename}_LIBRARY) - SET(QT4_${basename}_FOUND 1) - ENDIF (QT4_${basename}_LIBRARY) - - ENDIF (QT4_${basename}_LIBRARY OR QT4_${basename}_LIBRARY_DEBUG) - - IF (QT4_${basename}_INCLUDE_DIR) - #add the include directory to QT4_INCLUDES - SET(QT4_INCLUDES "${QT4_${basename}_INCLUDE_DIR}" ${QT4_INCLUDES}) - ENDIF (QT4_${basename}_INCLUDE_DIR) - - # Make variables changeble to the advanced user - MARK_AS_ADVANCED(QT4_${basename}_LIBRARY QT4_${basename}_INCLUDE_DIR) - ENDMACRO (_QT4_ADJUST_LIB_VARS) - - - # Set QT_xyz_LIBRARY variable and add - # library include path to QT4_INCLUDES - _QT4_ADJUST_LIB_VARS(QTCORE) - _QT4_ADJUST_LIB_VARS(QTGUI) - _QT4_ADJUST_LIB_VARS(QT3SUPPORT) - _QT4_ADJUST_LIB_VARS(QTASSISTANT) - _QT4_ADJUST_LIB_VARS(QTDESIGNER) - _QT4_ADJUST_LIB_VARS(QTDESIGNERCOMPONENTS) - _QT4_ADJUST_LIB_VARS(QTNETWORK) - _QT4_ADJUST_LIB_VARS(QTNSPLUGIN) - _QT4_ADJUST_LIB_VARS(QTOPENGL) - _QT4_ADJUST_LIB_VARS(QTSQL) - _QT4_ADJUST_LIB_VARS(QTXML) - _QT4_ADJUST_LIB_VARS(QTSVG) - _QT4_ADJUST_LIB_VARS(QTSCRIPT) - _QT4_ADJUST_LIB_VARS(QTUITOOLS) - _QT4_ADJUST_LIB_VARS(QTTEST) - _QT4_ADJUST_LIB_VARS(QTDBUS) - - # platform dependent libraries - IF(Q_WS_X11) - _QT4_ADJUST_LIB_VARS(QTMOTIF) - ENDIF(Q_WS_X11) - IF(WIN32) - _QT4_ADJUST_LIB_VARS(QTMAIN) - ENDIF(WIN32) - - - ####################################### - # - # Check the executables of Qt - # ( moc, uic, rcc ) - # - ####################################### - - - # find moc and uic using qmake - QT_QUERY_QMAKE(QT4_MOC_EXECUTABLE_INTERNAL "QMAKE_MOC") - QT_QUERY_QMAKE(QT4_UIC_EXECUTABLE_INTERNAL "QMAKE_UIC") - - FILE(TO_CMAKE_PATH - "${QT4_MOC_EXECUTABLE_INTERNAL}" QT4_MOC_EXECUTABLE_INTERNAL) - FILE(TO_CMAKE_PATH - "${QT4_UIC_EXECUTABLE_INTERNAL}" QT4_UIC_EXECUTABLE_INTERNAL) - - SET(QT4_MOC_EXECUTABLE - ${QT4_MOC_EXECUTABLE_INTERNAL} CACHE FILEPATH "The moc executable") - SET(QT4_UIC_EXECUTABLE - ${QT4_UIC_EXECUTABLE_INTERNAL} CACHE FILEPATH "The uic executable") - - FIND_PROGRAM(QT_UIC3_EXECUTABLE - NAMES uic3 - PATHS ${QT_BINARY_DIR} - NO_DEFAULT_PATH - ) - - FIND_PROGRAM(QT_RCC_EXECUTABLE - NAMES rcc - PATHS ${QT_BINARY_DIR} - NO_DEFAULT_PATH - ) - - FIND_PROGRAM(QT_DBUSCPP2XML_EXECUTABLE - NAMES qdbuscpp2xml - PATHS ${QT_BINARY_DIR} - NO_DEFAULT_PATH - ) - - FIND_PROGRAM(QT_DBUSXML2CPP_EXECUTABLE - NAMES qdbusxml2cpp - PATHS ${QT_BINARY_DIR} - NO_DEFAULT_PATH - ) - - IF (QT4_MOC_EXECUTABLE) - SET(QT_WRAP_CPP "YES") - ENDIF (QT4_MOC_EXECUTABLE) - - IF (QT4_UIC_EXECUTABLE) - SET(QT_WRAP_UI "YES") - ENDIF (QT4_UIC_EXECUTABLE) - - - - MARK_AS_ADVANCED( QT4_UIC_EXECUTABLE QT_UIC3_EXECUTABLE QT4_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_DBUSXML2CPP_EXECUTABLE QT_DBUSCPP2XML_EXECUTABLE) - - ###################################### - # - # Macros for building Qt files - # - ###################################### - MACRO (QT4_EXTRACT_OPTIONS _qt4_files _qt4_options) - SET(${_qt4_files}) - SET(${_qt4_options}) - SET(_QT4_DOING_OPTIONS FALSE) - FOREACH(_currentArg ${ARGN}) - IF ("${_currentArg}" STREQUAL "OPTIONS") - SET(_QT4_DOING_OPTIONS TRUE) - ELSE ("${_currentArg}" STREQUAL "OPTIONS") - IF(_QT4_DOING_OPTIONS) - LIST(APPEND ${_qt4_options} "${_currentArg}") - ELSE(_QT4_DOING_OPTIONS) - LIST(APPEND ${_qt4_files} "${_currentArg}") - ENDIF(_QT4_DOING_OPTIONS) - ENDIF ("${_currentArg}" STREQUAL "OPTIONS") - ENDFOREACH(_currentArg) - ENDMACRO (QT4_EXTRACT_OPTIONS) - - MACRO (QT4_GET_MOC_INC_DIRS _moc_INC_DIRS) - SET(${_moc_INC_DIRS}) - GET_DIRECTORY_PROPERTY(_inc_DIRS INCLUDE_DIRECTORIES) - - FOREACH(_current ${_inc_DIRS}) - SET(${_moc_INC_DIRS} ${${_moc_INC_DIRS}} "-I" ${_current}) - ENDFOREACH(_current ${_inc_DIRS}) - - ENDMACRO(QT4_GET_MOC_INC_DIRS) - - - MACRO (QT4_GENERATE_MOC infile outfile ) - # get include dirs - QT4_GET_MOC_INC_DIRS(moc_includes) - - GET_FILENAME_COMPONENT(abs_infile ${infile} ABSOLUTE) - - IF (MSVC_IDE) - SET (_moc_parameter_file ${outfile}_parameters) - SET (_moc_param "${moc_includes} \n-o${outfile} \n${abs_infile}") - STRING(REGEX REPLACE ";-I;" "\\n-I" _moc_param "${_moc_param}") - FILE (WRITE ${_moc_parameter_file} "${_moc_param}") - ADD_CUSTOM_COMMAND(OUTPUT ${outfile} - COMMAND ${QT4_MOC_EXECUTABLE} - ARGS @"${_moc_parameter_file}" - DEPENDS ${abs_infile}) - ELSE (MSVC_IDE) - ADD_CUSTOM_COMMAND(OUTPUT ${outfile} - COMMAND ${QT4_MOC_EXECUTABLE} - ARGS ${moc_includes} -o ${outfile} ${abs_infile} - DEPENDS ${abs_infile}) - ENDIF (MSVC_IDE) - - SET_SOURCE_FILES_PROPERTIES(${outfile} PROPERTIES SKIP_AUTOMOC TRUE) # dont run automoc on this file - - MACRO_ADD_FILE_DEPENDENCIES(${abs_infile} ${outfile}) - ENDMACRO (QT4_GENERATE_MOC) - - - # QT4_WRAP_CPP(outfiles inputfile ... ) - # TODO perhaps add support for -D, -U and other minor options - - MACRO (QT4_WRAP_CPP outfiles ) - # get include dirs - QT4_GET_MOC_INC_DIRS(moc_includes) - QT4_EXTRACT_OPTIONS(moc_files moc_options ${ARGN}) - - FOREACH (it ${moc_files}) - GET_FILENAME_COMPONENT(it ${it} ABSOLUTE) - GET_FILENAME_COMPONENT(outfile ${it} NAME_WE) - - SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/moc_${outfile}.cxx) - ADD_CUSTOM_COMMAND(OUTPUT ${outfile} - COMMAND ${QT4_MOC_EXECUTABLE} - ARGS ${moc_includes} ${moc_options} -o ${outfile} ${it} - DEPENDS ${it}) - SET(${outfiles} ${${outfiles}} ${outfile}) - ENDFOREACH(it) - - ENDMACRO (QT4_WRAP_CPP) - - - # QT4_WRAP_UI(outfiles inputfile ... ) - - MACRO (QT4_WRAP_UI outfiles ) - QT4_EXTRACT_OPTIONS(ui_files ui_options ${ARGN}) - - FOREACH (it ${ui_files}) - GET_FILENAME_COMPONENT(outfile ${it} NAME_WE) - GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE) - SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/ui_${outfile}.h) - ADD_CUSTOM_COMMAND(OUTPUT ${outfile} - COMMAND ${QT4_UIC_EXECUTABLE} - ARGS ${ui_options} -o ${outfile} ${infile} - MAIN_DEPENDENCY ${infile}) - SET(${outfiles} ${${outfiles}} ${outfile}) - ENDFOREACH (it) - - ENDMACRO (QT4_WRAP_UI) - - - # QT4_ADD_RESOURCES(outfiles inputfile ... ) - # TODO perhaps consider adding support for compression and root options to rcc - - MACRO (QT4_ADD_RESOURCES outfiles ) - QT4_EXTRACT_OPTIONS(rcc_files rcc_options ${ARGN}) - - FOREACH (it ${rcc_files}) - GET_FILENAME_COMPONENT(outfilename ${it} NAME_WE) - GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE) - GET_FILENAME_COMPONENT(rc_path ${infile} PATH) - SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/qrc_${outfilename}.cxx) - # parse file for dependencies - # all files are absolute paths or relative to the location of the qrc file - FILE(READ "${infile}" _RC_FILE_CONTENTS) - STRING(REGEX MATCHALL "<file[^<]+" _RC_FILES "${_RC_FILE_CONTENTS}") - SET(_RC_DEPENDS) - FOREACH(_RC_FILE ${_RC_FILES}) - STRING(REGEX REPLACE "^<file[^>]*>" "" _RC_FILE "${_RC_FILE}") - STRING(REGEX MATCH "^/|([A-Za-z]:/)" _ABS_PATH_INDICATOR "${_RC_FILE}") - IF(NOT _ABS_PATH_INDICATOR) - SET(_RC_FILE "${rc_path}/${_RC_FILE}") - ENDIF(NOT _ABS_PATH_INDICATOR) - SET(_RC_DEPENDS ${_RC_DEPENDS} "${_RC_FILE}") - ENDFOREACH(_RC_FILE) - ADD_CUSTOM_COMMAND(OUTPUT ${outfile} - COMMAND ${QT_RCC_EXECUTABLE} - ARGS ${rcc_options} -name ${outfilename} -o ${outfile} ${infile} - MAIN_DEPENDENCY ${infile} - DEPENDS ${_RC_DEPENDS}) - SET(${outfiles} ${${outfiles}} ${outfile}) - ENDFOREACH (it) - - ENDMACRO (QT4_ADD_RESOURCES) - - MACRO(QT4_ADD_DBUS_INTERFACE _sources _interface _basename) - GET_FILENAME_COMPONENT(_infile ${_interface} ABSOLUTE) - SET(_header ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.h) - SET(_impl ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.cpp) - SET(_moc ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.moc) - - GET_SOURCE_FILE_PROPERTY(_nonamespace ${_interface} NO_NAMESPACE) - IF ( _nonamespace ) - SET(_params -N -m) - ELSE ( _nonamespace ) - SET(_params -m) - ENDIF ( _nonamespace ) - - GET_SOURCE_FILE_PROPERTY(_include ${_interface} INCLUDE) - IF ( _include ) - SET(_params ${_params} -i ${_include}) - ENDIF ( _include ) - - ADD_CUSTOM_COMMAND(OUTPUT ${_impl} ${_header} - COMMAND ${QT_DBUSXML2CPP_EXECUTABLE} ${_params} -p ${_basename} ${_infile} - DEPENDS ${_infile}) - - SET_SOURCE_FILES_PROPERTIES(${_impl} PROPERTIES SKIP_AUTOMOC TRUE) - - QT4_GENERATE_MOC(${_header} ${_moc}) - - SET(${_sources} ${${_sources}} ${_impl} ${_header} ${_moc}) - MACRO_ADD_FILE_DEPENDENCIES(${_impl} ${_moc}) - - ENDMACRO(QT4_ADD_DBUS_INTERFACE) - - - MACRO(QT4_ADD_DBUS_INTERFACES _sources) - FOREACH (_current_FILE ${ARGN}) - GET_FILENAME_COMPONENT(_infile ${_current_FILE} ABSOLUTE) - # get the part before the ".xml" suffix - STRING(REGEX REPLACE "(.*[/\\.])?([^\\.]+)\\.xml" "\\2" _basename ${_current_FILE}) - STRING(TOLOWER ${_basename} _basename) - QT4_ADD_DBUS_INTERFACE(${_sources} ${_infile} ${_basename}interface) - ENDFOREACH (_current_FILE) - ENDMACRO(QT4_ADD_DBUS_INTERFACES) - - - MACRO(QT4_GENERATE_DBUS_INTERFACE _header) # _customName OPTIONS -some -options ) - QT4_EXTRACT_OPTIONS(_customName _qt4_dbus_options ${ARGN}) - - GET_FILENAME_COMPONENT(_in_file ${_header} ABSOLUTE) - GET_FILENAME_COMPONENT(_basename ${_header} NAME_WE) - - IF (_customName) - SET(_target ${CMAKE_CURRENT_BINARY_DIR}/${_customName}) - ELSE (_customName) - SET(_target ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.xml) - ENDIF (_customName) - - ADD_CUSTOM_COMMAND(OUTPUT ${_target} - COMMAND ${QT_DBUSCPP2XML_EXECUTABLE} ${_qt4_dbus_options} ${_in_file} > ${_target} - DEPENDS ${_in_file} - ) - ENDMACRO(QT4_GENERATE_DBUS_INTERFACE) - - - MACRO(QT4_ADD_DBUS_ADAPTOR _sources _xml_file _include _parentClass) # _optionalBasename _optionalClassName) - GET_FILENAME_COMPONENT(_infile ${_xml_file} ABSOLUTE) - - SET(_optionalBasename "${ARGV4}") - IF (_optionalBasename) - SET(_basename ${_optionalBasename} ) - ELSE (_optionalBasename) - STRING(REGEX REPLACE "(.*[/\\.])?([^\\.]+)\\.xml" "\\2adaptor" _basename ${_infile}) - STRING(TOLOWER ${_basename} _basename) - ENDIF (_optionalBasename) - - SET(_optionalClassName "${ARGV5}") - SET(_header ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.h) - SET(_impl ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.cpp) - SET(_moc ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.moc) - - IF(_optionalClassName) - ADD_CUSTOM_COMMAND(OUTPUT ${_impl} ${_header} - COMMAND ${QT_DBUSXML2CPP_EXECUTABLE} -m -a ${_basename} -c ${_optionalClassName} -i ${_include} -l ${_parentClass} ${_infile} - DEPENDS ${_infile} - ) - ELSE(_optionalClassName) - ADD_CUSTOM_COMMAND(OUTPUT ${_impl} ${_header} - COMMAND ${QT_DBUSXML2CPP_EXECUTABLE} -m -a ${_basename} -i ${_include} -l ${_parentClass} ${_infile} - DEPENDS ${_infile} - ) - ENDIF(_optionalClassName) - - QT4_GENERATE_MOC(${_header} ${_moc}) - SET_SOURCE_FILES_PROPERTIES(${_impl} PROPERTIES SKIP_AUTOMOC TRUE) - MACRO_ADD_FILE_DEPENDENCIES(${_impl} ${_moc}) - - SET(${_sources} ${${_sources}} ${_impl} ${_header} ${_moc}) - ENDMACRO(QT4_ADD_DBUS_ADAPTOR) - - MACRO(QT4_AUTOMOC) - QT4_GET_MOC_INC_DIRS(_moc_INCS) - - SET(_matching_FILES ) - FOREACH (_current_FILE ${ARGN}) - - GET_FILENAME_COMPONENT(_abs_FILE ${_current_FILE} ABSOLUTE) - # if "SKIP_AUTOMOC" is set to true, we will not handle this file here. - # here. this is required to make bouic work correctly: - # we need to add generated .cpp files to the sources (to compile them), - # but we cannot let automoc handle them, as the .cpp files don't exist yet when - # cmake is run for the very first time on them -> however the .cpp files might - # exist at a later run. at that time we need to skip them, so that we don't add two - # different rules for the same moc file - GET_SOURCE_FILE_PROPERTY(_skip ${_abs_FILE} SKIP_AUTOMOC) - - IF ( NOT _skip AND EXISTS ${_abs_FILE} ) - - FILE(READ ${_abs_FILE} _contents) - - GET_FILENAME_COMPONENT(_abs_PATH ${_abs_FILE} PATH) - - STRING(REGEX MATCHALL "#include +[^ ]+\\.moc[\">]" _match "${_contents}") - IF(_match) - FOREACH (_current_MOC_INC ${_match}) - STRING(REGEX MATCH "[^ <\"]+\\.moc" _current_MOC "${_current_MOC_INC}") - - GET_filename_component(_basename ${_current_MOC} NAME_WE) - # SET(_header ${CMAKE_CURRENT_SOURCE_DIR}/${_basename}.h) - IF (EXISTS ${_abs_PATH}/${_basename}.h) - SET(_header ${_abs_PATH}/${_basename}.h) - ELSE (EXISTS ${_abs_PATH}/${_basename}.h) - SET(_header ${_abs_FILE}) - ENDIF (EXISTS ${_abs_PATH}/${_basename}.h) - SET(_moc ${CMAKE_CURRENT_BINARY_DIR}/${_current_MOC}) - ADD_CUSTOM_COMMAND(OUTPUT ${_moc} - COMMAND ${QT4_MOC_EXECUTABLE} - ARGS ${_moc_INCS} ${_header} -o ${_moc} - DEPENDS ${_header} - ) - - MACRO_ADD_FILE_DEPENDENCIES(${_abs_FILE} ${_moc}) - ENDFOREACH (_current_MOC_INC) - ENDIF(_match) - ENDIF ( NOT _skip AND EXISTS ${_abs_FILE} ) - ENDFOREACH (_current_FILE) - ENDMACRO(QT4_AUTOMOC) - - - - ###################################### - # - # decide if Qt got found - # - ###################################### - - # if the includes,libraries,moc,uic and rcc are found then we have it - IF( QT4_LIBRARY_DIR AND QT4_INCLUDE_DIR AND QT4_MOC_EXECUTABLE AND QT4_UIC_EXECUTABLE AND QT_RCC_EXECUTABLE) - SET( QT4_FOUND "YES" ) - IF( NOT Qt4_FIND_QUIETLY) - MESSAGE(STATUS "Found Qt-Version ${QTVERSION} (using ${QT_QMAKE_EXECUTABLE})") - ENDIF( NOT Qt4_FIND_QUIETLY) - ELSE( QT4_LIBRARY_DIR AND QT4_INCLUDE_DIR AND QT4_MOC_EXECUTABLE AND QT4_UIC_EXECUTABLE AND QT_RCC_EXECUTABLE) - SET( QT4_FOUND "NO") - SET(QT_QMAKE_EXECUTABLE "${QT_QMAKE_EXECUTABLE}-NOTFOUND" CACHE FILEPATH "Invalid qmake found" FORCE) - IF( Qt4_FIND_REQUIRED) - IF ( NOT QT4_LIBRARY_DIR ) - MESSAGE(STATUS "Qt libraries NOT found!") - ENDIF(NOT QT4_LIBRARY_DIR ) - IF ( NOT QT4_INCLUDE_DIR ) - MESSAGE(STATUS "Qt includes NOT found!") - ENDIF( NOT QT4_INCLUDE_DIR ) - IF ( NOT QT4_MOC_EXECUTABLE ) - MESSAGE(STATUS "Qt's moc NOT found!") - ENDIF( NOT QT4_MOC_EXECUTABLE ) - IF ( NOT QT4_UIC_EXECUTABLE ) - MESSAGE(STATUS "Qt's uic NOT found!") - ENDIF( NOT QT4_UIC_EXECUTABLE ) - IF ( NOT QT_RCC_EXECUTABLE ) - MESSAGE(STATUS "Qt's rcc NOT found!") - ENDIF( NOT QT_RCC_EXECUTABLE ) - MESSAGE( FATAL_ERROR "Qt libraries, includes, moc, uic or/and rcc NOT found!") - ENDIF( Qt4_FIND_REQUIRED) - ENDIF( QT4_LIBRARY_DIR AND QT4_INCLUDE_DIR AND QT4_MOC_EXECUTABLE AND QT4_UIC_EXECUTABLE AND QT_RCC_EXECUTABLE) - SET(QT_FOUND ${QT4_FOUND}) - - - ####################################### - # - # System dependent settings - # - ####################################### - # for unix add X11 stuff - IF(UNIX) - # on OS X X11 may not be required - IF (Q_WS_X11) - FIND_PACKAGE(X11 REQUIRED) - ENDIF (Q_WS_X11) - FIND_PACKAGE(Threads) - SET(QT4_QTCORE_LIBRARY ${QT4_QTCORE_LIBRARY} ${CMAKE_THREAD_LIBS_INIT}) - ENDIF(UNIX) - - - ####################################### - # - # compatibility settings - # - ####################################### - # Backwards compatibility for CMake1.4 and 1.2 - SET (QT_MOC_EXE ${QT4_MOC_EXECUTABLE} ) - SET (QT_UIC_EXE ${QT4_UIC_EXECUTABLE} ) - - SET( QT4_QT_LIBRARY "") - -ELSE(QT4_QMAKE_FOUND) - - SET(QT_QMAKE_EXECUTABLE "${QT_QMAKE_EXECUTABLE}-NOTFOUND" CACHE FILEPATH "Invalid qmake found" FORCE) - IF(Qt4_FIND_REQUIRED) - IF(QT4_INSTALLED_VERSION_TOO_OLD) - MESSAGE(FATAL_ERROR "The installed Qt version ${QTVERSION} is too old, at least version ${QT4_MIN_VERSION} is required") - ELSE(QT4_INSTALLED_VERSION_TOO_OLD) - MESSAGE( FATAL_ERROR "Qt qmake not found!") - ENDIF(QT4_INSTALLED_VERSION_TOO_OLD) - ELSE(Qt4_FIND_REQUIRED) - IF(QT4_INSTALLED_VERSION_TOO_OLD AND NOT Qt4_FIND_QUIETLY) - MESSAGE(STATUS "The installed Qt version ${QTVERSION} is too old, at least version ${QT4_MIN_VERSION} is required") - ENDIF(QT4_INSTALLED_VERSION_TOO_OLD AND NOT Qt4_FIND_QUIETLY) - ENDIF(Qt4_FIND_REQUIRED) - -ENDIF (QT4_QMAKE_FOUND) -ENDIF (QT4_QMAKE_FOUND) - diff --git a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroBoolTo01.cmake b/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroBoolTo01.cmake deleted file mode 100644 index 63b9852660d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroBoolTo01.cmake +++ /dev/null @@ -1,20 +0,0 @@ -# MACRO_BOOL_TO_01( VAR RESULT0 ... RESULTN ) -# This macro evaluates its first argument -# and sets all the given vaiables either to 0 or 1 -# depending on the value of the first one - -# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - - -MACRO(MACRO_BOOL_TO_01 FOUND_VAR ) - FOREACH (_current_VAR ${ARGN}) - IF(${FOUND_VAR}) - SET(${_current_VAR} 1) - ELSE(${FOUND_VAR}) - SET(${_current_VAR} 0) - ENDIF(${FOUND_VAR}) - ENDFOREACH(_current_VAR) -ENDMACRO(MACRO_BOOL_TO_01) diff --git a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroEnsureVersion.cmake b/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroEnsureVersion.cmake deleted file mode 100644 index 6797e5b7dbb..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroEnsureVersion.cmake +++ /dev/null @@ -1,117 +0,0 @@ -# This file defines the following macros for developers to use in ensuring -# that installed software is of the right version: -# -# MACRO_ENSURE_VERSION - test that a version number is greater than -# or equal to some minimum -# MACRO_ENSURE_VERSION_RANGE - test that a version number is greater than -# or equal to some minimum and less than some -# maximum -# MACRO_ENSURE_VERSION2 - deprecated, do not use in new code -# - -# MACRO_ENSURE_VERSION -# This macro compares version numbers of the form "x.y.z" or "x.y" -# MACRO_ENSURE_VERSION( FOO_MIN_VERSION FOO_VERSION_FOUND FOO_VERSION_OK) -# will set FOO_VERSION_OK to true if FOO_VERSION_FOUND >= FOO_MIN_VERSION -# Leading and trailing text is ok, e.g. -# MACRO_ENSURE_VERSION( "2.5.31" "flex 2.5.4a" VERSION_OK) -# which means 2.5.31 is required and "flex 2.5.4a" is what was found on the system - -# Copyright (c) 2006, David Faure, <faure@kde.org> -# Copyright (c) 2007, Will Stephenson <wstephenson@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -# MACRO_ENSURE_VERSION_RANGE -# This macro ensures that a version number of the form -# "x.y.z" or "x.y" falls within a range defined by -# min_version <= found_version < max_version. -# If this expression holds, FOO_VERSION_OK will be set TRUE -# -# Example: MACRO_ENSURE_VERSION_RANGE3( "0.1.0" ${FOOCODE_VERSION} "0.7.0" FOO_VERSION_OK ) -# -# This macro will break silently if any of x,y,z are greater than 100. -# -# Copyright (c) 2007, Will Stephenson <wstephenson@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -# NORMALIZE_VERSION -# Helper macro to convert version numbers of the form "x.y.z" -# to an integer equal to 10^4 * x + 10^2 * y + z -# -# This macro will break silently if any of x,y,z are greater than 100. -# -# Copyright (c) 2006, David Faure, <faure@kde.org> -# Copyright (c) 2007, Will Stephenson <wstephenson@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -# CHECK_RANGE_INCLUSIVE_LOWER -# Helper macro to check whether x <= y < z -# -# Copyright (c) 2007, Will Stephenson <wstephenson@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - - -MACRO(NORMALIZE_VERSION _requested_version _normalized_version) - STRING(REGEX MATCH "[^0-9]*[0-9]+\\.[0-9]+\\.[0-9]+.*" _threePartMatch "${_requested_version}") - if (_threePartMatch) - # parse the parts of the version string - STRING(REGEX REPLACE "[^0-9]*([0-9]+)\\.[0-9]+\\.[0-9]+.*" "\\1" _major_vers "${_requested_version}") - STRING(REGEX REPLACE "[^0-9]*[0-9]+\\.([0-9]+)\\.[0-9]+.*" "\\1" _minor_vers "${_requested_version}") - STRING(REGEX REPLACE "[^0-9]*[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" _patch_vers "${_requested_version}") - else (_threePartMatch) - STRING(REGEX REPLACE "([0-9]+)\\.[0-9]+" "\\1" _major_vers "${_requested_version}") - STRING(REGEX REPLACE "[0-9]+\\.([0-9]+)" "\\1" _minor_vers "${_requested_version}") - set(_patch_vers "0") - endif (_threePartMatch) - - # compute an overall version number which can be compared at once - MATH(EXPR ${_normalized_version} "${_major_vers}*10000 + ${_minor_vers}*100 + ${_patch_vers}") -ENDMACRO(NORMALIZE_VERSION) - -MACRO(MACRO_CHECK_RANGE_INCLUSIVE_LOWER _lower_limit _value _upper_limit _ok) - if (${_value} LESS ${_lower_limit}) - set( ${_ok} FALSE ) - elseif (${_value} EQUAL ${_lower_limit}) - set( ${_ok} TRUE ) - elseif (${_value} EQUAL ${_upper_limit}) - set( ${_ok} FALSE ) - elseif (${_value} GREATER ${_upper_limit}) - set( ${_ok} FALSE ) - else (${_value} LESS ${_lower_limit}) - set( ${_ok} TRUE ) - endif (${_value} LESS ${_lower_limit}) -ENDMACRO(MACRO_CHECK_RANGE_INCLUSIVE_LOWER) - -MACRO(MACRO_ENSURE_VERSION requested_version found_version var_too_old) - NORMALIZE_VERSION( ${requested_version} req_vers_num ) - NORMALIZE_VERSION( ${found_version} found_vers_num ) - - if (found_vers_num LESS req_vers_num) - set( ${var_too_old} FALSE ) - else (found_vers_num LESS req_vers_num) - set( ${var_too_old} TRUE ) - endif (found_vers_num LESS req_vers_num) - -ENDMACRO(MACRO_ENSURE_VERSION) - -MACRO(MACRO_ENSURE_VERSION2 requested_version2 found_version2 var_too_old2) - MACRO_ENSURE_VERSION( ${requested_version2} ${found_version2} ${var_too_old2}) -ENDMACRO(MACRO_ENSURE_VERSION2) - -MACRO(MACRO_ENSURE_VERSION_RANGE min_version found_version max_version var_ok) - NORMALIZE_VERSION( ${min_version} req_vers_num ) - NORMALIZE_VERSION( ${found_version} found_vers_num ) - NORMALIZE_VERSION( ${max_version} max_vers_num ) - - MACRO_CHECK_RANGE_INCLUSIVE_LOWER( ${req_vers_num} ${found_vers_num} ${max_vers_num} ${var_ok}) -ENDMACRO(MACRO_ENSURE_VERSION_RANGE) - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroOptionalFindPackage.cmake b/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroOptionalFindPackage.cmake deleted file mode 100644 index 816cdb7e872..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroOptionalFindPackage.cmake +++ /dev/null @@ -1,28 +0,0 @@ -# - MACRO_OPTIONAL_FIND_PACKAGE() combines FIND_PACKAGE() with an OPTION() -# MACRO_OPTIONAL_FIND_PACKAGE( <name> [QUIT] ) -# This macro is a combination of OPTION() and FIND_PACKAGE(), it -# works like FIND_PACKAGE(), but additionally it automatically creates -# an option name WITH_<name>, which can be disabled via the cmake GUI. -# or via -DWITH_<name>=OFF -# The standard <name>_FOUND variables can be used in the same way -# as when using the normal FIND_PACKAGE() - -# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - - -MACRO (MACRO_OPTIONAL_FIND_PACKAGE _name ) - OPTION(WITH_${_name} "Search for ${_name} package" ON) - if (WITH_${_name}) - FIND_PACKAGE(${_name} ${ARGN}) - else (WITH_${_name}) - set(${_name}_FOUND) - set(${_name}_INCLUDE_DIR) - set(${_name}_INCLUDES) - set(${_name}_LIBRARY) - set(${_name}_LIBRARIES) - endif (WITH_${_name}) -ENDMACRO (MACRO_OPTIONAL_FIND_PACKAGE) - diff --git a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroPushRequiredVars.cmake b/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroPushRequiredVars.cmake deleted file mode 100644 index 650b566eedf..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroPushRequiredVars.cmake +++ /dev/null @@ -1,47 +0,0 @@ -# this module defines two macros: -# MACRO_PUSH_REQUIRED_VARS() -# and -# MACRO_POP_REQUIRED_VARS() -# use these if you call cmake macros which use -# any of the CMAKE_REQUIRED_XXX variables -# -# Usage: -# MACRO_PUSH_REQUIRED_VARS() -# SET(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} -DSOME_MORE_DEF) -# CHECK_FUNCTION_EXISTS(...) -# MACRO_POP_REQUIRED_VARS() - -# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -MACRO(MACRO_PUSH_REQUIRED_VARS) - - IF(NOT DEFINED _PUSH_REQUIRED_VARS_COUNTER) - SET(_PUSH_REQUIRED_VARS_COUNTER 0) - ENDIF(NOT DEFINED _PUSH_REQUIRED_VARS_COUNTER) - - MATH(EXPR _PUSH_REQUIRED_VARS_COUNTER "${_PUSH_REQUIRED_VARS_COUNTER}+1") - - SET(_CMAKE_REQUIRED_INCLUDES_SAVE_${_PUSH_REQUIRED_VARS_COUNTER} ${CMAKE_REQUIRED_INCLUDES}) - SET(_CMAKE_REQUIRED_DEFINITIONS_SAVE_${_PUSH_REQUIRED_VARS_COUNTER} ${CMAKE_REQUIRED_DEFINITIONS}) - SET(_CMAKE_REQUIRED_LIBRARIES_SAVE_${_PUSH_REQUIRED_VARS_COUNTER} ${CMAKE_REQUIRED_LIBRARIES}) - SET(_CMAKE_REQUIRED_FLAGS_SAVE_${_PUSH_REQUIRED_VARS_COUNTER} ${CMAKE_REQUIRED_FLAGS}) -ENDMACRO(MACRO_PUSH_REQUIRED_VARS) - -MACRO(MACRO_POP_REQUIRED_VARS) - -# don't pop more than we pushed - IF("${_PUSH_REQUIRED_VARS_COUNTER}" GREATER "0") - - SET(CMAKE_REQUIRED_INCLUDES ${_CMAKE_REQUIRED_INCLUDES_SAVE_${_PUSH_REQUIRED_VARS_COUNTER}}) - SET(CMAKE_REQUIRED_DEFINITIONS ${_CMAKE_REQUIRED_DEFINITIONS_SAVE_${_PUSH_REQUIRED_VARS_COUNTER}}) - SET(CMAKE_REQUIRED_LIBRARIES ${_CMAKE_REQUIRED_LIBRARIES_SAVE_${_PUSH_REQUIRED_VARS_COUNTER}}) - SET(CMAKE_REQUIRED_FLAGS ${_CMAKE_REQUIRED_FLAGS_SAVE_${_PUSH_REQUIRED_VARS_COUNTER}}) - - MATH(EXPR _PUSH_REQUIRED_VARS_COUNTER "${_PUSH_REQUIRED_VARS_COUNTER}-1") - ENDIF("${_PUSH_REQUIRED_VARS_COUNTER}" GREATER "0") - -ENDMACRO(MACRO_POP_REQUIRED_VARS) - diff --git a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/PopplerDefaults.cmake b/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/PopplerDefaults.cmake deleted file mode 100644 index 6ffac472d53..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/PopplerDefaults.cmake +++ /dev/null @@ -1,10 +0,0 @@ -# enable the testing facilities -enable_testing() - -# put the include directories of the sources before other include paths -# (eg, system includes) -set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON) - -# colored output -set(CMAKE_COLOR_MAKEFILE ON) - diff --git a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/PopplerMacros.cmake b/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/PopplerMacros.cmake deleted file mode 100644 index 5b0555f89c8..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/PopplerMacros.cmake +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 2008 Pino Toscano, <pino@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -macro(POPPLER_ADD_TEST exe build_flag) - set(build_test ${${build_flag}}) - if(NOT build_test) - set(_add_executable_param ${_add_executable_param} EXCLUDE_FROM_ALL) - endif(NOT build_test) - - add_executable(${exe} ${_add_executable_param} ${ARGN}) - - # if the tests are EXCLUDE_FROM_ALL, add a target "buildtests" to build all tests - if(NOT build_test) - get_directory_property(_buildtestsAdded BUILDTESTS_ADDED) - if(NOT _buildtestsAdded) - add_custom_target(buildtests) - set_directory_properties(PROPERTIES BUILDTESTS_ADDED TRUE) - endif(NOT _buildtestsAdded) - add_dependencies(buildtests ${exe}) - endif(NOT build_test) -endmacro(POPPLER_ADD_TEST) - -macro(POPPLER_ADD_UNITTEST exe build_flag) - set(build_test ${${build_flag}}) - if(NOT build_test) - set(_add_executable_param ${_add_executable_param} EXCLUDE_FROM_ALL) - endif(NOT build_test) - - add_executable(${exe} ${_add_executable_param} ${ARGN}) - add_test(${exe} ${EXECUTABLE_OUTPUT_PATH}/${exe}) - - # if the tests are EXCLUDE_FROM_ALL, add a target "buildtests" to build all tests - if(NOT build_test) - get_directory_property(_buildtestsAdded BUILDTESTS_ADDED) - if(NOT _buildtestsAdded) - add_custom_target(buildtests) - set_directory_properties(PROPERTIES BUILDTESTS_ADDED TRUE) - endif(NOT _buildtestsAdded) - add_dependencies(buildtests ${exe}) - endif(NOT build_test) -endmacro(POPPLER_ADD_UNITTEST) - -macro(POPPLER_CREATE_INSTALL_PKGCONFIG generated_file install_location) - if(NOT WIN32) - configure_file(${generated_file}.cmake ${CMAKE_CURRENT_BINARY_DIR}/${generated_file} @ONLY) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${generated_file} DESTINATION ${install_location}) - endif(NOT WIN32) -endmacro(POPPLER_CREATE_INSTALL_PKGCONFIG) - -macro(SHOW_END_MESSAGE what enabled) - string(LENGTH ${what} length_what) - math(EXPR left_char "20 - ${length_what}") - set(blanks) - foreach(_i RANGE 1 ${left_char}) - set(blanks "${blanks} ") - endforeach(_i) - if(${enabled}) - set(enabled_string "yes") - else(${enabled}) - set(enabled_string "no") - endif(${enabled}) - - message(" ${what}:${blanks} ${enabled_string}") -endmacro(SHOW_END_MESSAGE) - - -set(CMAKE_SYSTEM_INCLUDE_PATH ${CMAKE_SYSTEM_INCLUDE_PATH} - "${CMAKE_INSTALL_PREFIX}/include" ) - -set(CMAKE_SYSTEM_PROGRAM_PATH ${CMAKE_SYSTEM_PROGRAM_PATH} - "${CMAKE_INSTALL_PREFIX}/bin" ) - -set(CMAKE_SYSTEM_LIBRARY_PATH ${CMAKE_SYSTEM_LIBRARY_PATH} - "${CMAKE_INSTALL_PREFIX}/lib" ) - -# under Windows dlls may be also installed in bin/ -if(WIN32) - set(CMAKE_SYSTEM_LIBRARY_PATH ${CMAKE_SYSTEM_LIBRARY_PATH} - "${CMAKE_INSTALL_PREFIX}/bin" ) -endif(WIN32) - -if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) - set(CMAKE_BUILD_TYPE RelWithDebInfo) -endif(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) - -if(CMAKE_COMPILER_IS_GNUCXX) - # set the default compile warnings - set(DEFAULT_COMPILE_WARNINGS_NO) - set(DEFAULT_COMPILE_WARNINGS_YES "-Wall -Wno-write-strings") - set(DEFAULT_COMPILE_WARNINGS_KDE "-Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common") - - set(CMAKE_CXX_FLAGS "-Woverloaded-virtual") - set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") - set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") - set(CMAKE_CXX_FLAGS_DEBUG "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline") - set(CMAKE_CXX_FLAGS_DEBUGFULL "-g3 -fno-inline") - set(CMAKE_CXX_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage -fprofile-arcs") - set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") - set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG") - set(CMAKE_C_FLAGS_DEBUG "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline") - set(CMAKE_C_FLAGS_DEBUGFULL "-g3 -fno-inline") - set(CMAKE_C_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage -fprofile-arcs") -endif (CMAKE_COMPILER_IS_GNUCXX) - -if(CMAKE_C_COMPILER MATCHES "icc") - set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") - set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") - set(CMAKE_CXX_FLAGS_DEBUG "-O2 -g -0b0 -noalign") - set(CMAKE_CXX_FLAGS_DEBUGFULL "-g -Ob0 -noalign") - set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") - set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG") - set(CMAKE_C_FLAGS_DEBUG "-O2 -g -Ob0 -noalign") - set(CMAKE_C_FLAGS_DEBUGFULL "-g -Ob0 -noalign") -endif(CMAKE_C_COMPILER MATCHES "icc") - diff --git a/Build/source/libs/poppler/poppler-0.12.4/config.guess b/Build/source/libs/poppler/poppler-0.12.4/config.guess deleted file mode 100755 index da833146088..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/config.guess +++ /dev/null @@ -1,1561 +0,0 @@ -#! /bin/sh -# Attempt to guess a canonical system name. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 -# Free Software Foundation, Inc. - -timestamp='2009-04-27' - -# This file is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA -# 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - - -# Originally written by Per Bothner <per@bothner.com>. -# Please send patches to <config-patches@gnu.org>. Submit a context -# diff and a properly formatted ChangeLog entry. -# -# This script attempts to guess a canonical system name similar to -# config.sub. If it succeeds, it prints the system name on stdout, and -# exits with 0. Otherwise, it exits with 1. -# -# The plan is that this can be called by configure scripts if you -# don't specify an explicit build system type. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] - -Output the configuration name of the system \`$me' is run on. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to <config-patches@gnu.org>." - -version="\ -GNU config.guess ($timestamp) - -Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit ;; - --version | -v ) - echo "$version" ; exit ;; - --help | --h* | -h ) - echo "$usage"; exit ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" >&2 - exit 1 ;; - * ) - break ;; - esac -done - -if test $# != 0; then - echo "$me: too many arguments$help" >&2 - exit 1 -fi - -trap 'exit 1' 1 2 15 - -# CC_FOR_BUILD -- compiler used by this script. Note that the use of a -# compiler to aid in system detection is discouraged as it requires -# temporary files to be created and, as you can see below, it is a -# headache to deal with in a portable fashion. - -# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still -# use `HOST_CC' if defined, but it is deprecated. - -# Portable tmp directory creation inspired by the Autoconf team. - -set_cc_for_build=' -trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; -: ${TMPDIR=/tmp} ; - { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || - { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || - { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || - { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; -dummy=$tmp/dummy ; -tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; -case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int x;" > $dummy.c ; - for c in cc gcc c89 c99 ; do - if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then - CC_FOR_BUILD="$c"; break ; - fi ; - done ; - if test x"$CC_FOR_BUILD" = x ; then - CC_FOR_BUILD=no_compiler_found ; - fi - ;; - ,,*) CC_FOR_BUILD=$CC ;; - ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ; set_cc_for_build= ;' - -# This is needed to find uname on a Pyramid OSx when run in the BSD universe. -# (ghazi@noc.rutgers.edu 1994-08-24) -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then - PATH=$PATH:/.attbin ; export PATH -fi - -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown - -# Note: order is significant - the case branches are not exclusive. - -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in - *:NetBSD:*:*) - # NetBSD (nbsd) targets should (where applicable) match one or - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, - # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently - # switched to ELF, *-*-netbsd* would select the old - # object file format. This provides both forward - # compatibility and a consistent mechanism for selecting the - # object file format. - # - # Note: NetBSD doesn't particularly care about the vendor - # portion of the name. We always set it to "unknown". - sysctl="sysctl -n hw.machine_arch" - UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ - /usr/sbin/$sysctl 2>/dev/null || echo unknown)` - case "${UNAME_MACHINE_ARCH}" in - armeb) machine=armeb-unknown ;; - arm*) machine=arm-unknown ;; - sh3el) machine=shl-unknown ;; - sh3eb) machine=sh-unknown ;; - sh5el) machine=sh5le-unknown ;; - *) machine=${UNAME_MACHINE_ARCH}-unknown ;; - esac - # The Operating System including object format, if it has switched - # to ELF recently, or will in the future. - case "${UNAME_MACHINE_ARCH}" in - arm*|i386|m68k|ns32k|sh3*|sparc|vax) - eval $set_cc_for_build - if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep __ELF__ >/dev/null - then - # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). - # Return netbsd for either. FIX? - os=netbsd - else - os=netbsdelf - fi - ;; - *) - os=netbsd - ;; - esac - # The OS release - # Debian GNU/NetBSD machines have a different userland, and - # thus, need a distinct triplet. However, they do not need - # kernel version information, so it can be replaced with a - # suitable tag, in the style of linux-gnu. - case "${UNAME_VERSION}" in - Debian*) - release='-gnu' - ;; - *) - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - ;; - esac - # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: - # contains redundant information, the shorter form: - # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - echo "${machine}-${os}${release}" - exit ;; - *:OpenBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} - exit ;; - *:ekkoBSD:*:*) - echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} - exit ;; - *:SolidBSD:*:*) - echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} - exit ;; - macppc:MirBSD:*:*) - echo powerpc-unknown-mirbsd${UNAME_RELEASE} - exit ;; - *:MirBSD:*:*) - echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} - exit ;; - alpha:OSF1:*:*) - case $UNAME_RELEASE in - *4.0) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - ;; - *5.*) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` - ;; - esac - # According to Compaq, /usr/sbin/psrinfo has been available on - # OSF/1 and Tru64 systems produced since 1995. I hope that - # covers most systems running today. This code pipes the CPU - # types through head -n 1, so we only detect the type of CPU 0. - ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` - case "$ALPHA_CPU_TYPE" in - "EV4 (21064)") - UNAME_MACHINE="alpha" ;; - "EV4.5 (21064)") - UNAME_MACHINE="alpha" ;; - "LCA4 (21066/21068)") - UNAME_MACHINE="alpha" ;; - "EV5 (21164)") - UNAME_MACHINE="alphaev5" ;; - "EV5.6 (21164A)") - UNAME_MACHINE="alphaev56" ;; - "EV5.6 (21164PC)") - UNAME_MACHINE="alphapca56" ;; - "EV5.7 (21164PC)") - UNAME_MACHINE="alphapca57" ;; - "EV6 (21264)") - UNAME_MACHINE="alphaev6" ;; - "EV6.7 (21264A)") - UNAME_MACHINE="alphaev67" ;; - "EV6.8CB (21264C)") - UNAME_MACHINE="alphaev68" ;; - "EV6.8AL (21264B)") - UNAME_MACHINE="alphaev68" ;; - "EV6.8CX (21264D)") - UNAME_MACHINE="alphaev68" ;; - "EV6.9A (21264/EV69A)") - UNAME_MACHINE="alphaev69" ;; - "EV7 (21364)") - UNAME_MACHINE="alphaev7" ;; - "EV7.9 (21364A)") - UNAME_MACHINE="alphaev79" ;; - esac - # A Pn.n version is a patched version. - # A Vn.n version is a released version. - # A Tn.n version is a released field test version. - # A Xn.n version is an unreleased experimental baselevel. - # 1.2 uses "1.2" for uname -r. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - exit ;; - Alpha\ *:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # Should we change UNAME_MACHINE based on the output of uname instead - # of the specific Alpha model? - echo alpha-pc-interix - exit ;; - 21064:Windows_NT:50:3) - echo alpha-dec-winnt3.5 - exit ;; - Amiga*:UNIX_System_V:4.0:*) - echo m68k-unknown-sysv4 - exit ;; - *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos - exit ;; - *:[Mm]orph[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-morphos - exit ;; - *:OS/390:*:*) - echo i370-ibm-openedition - exit ;; - *:z/VM:*:*) - echo s390-ibm-zvmoe - exit ;; - *:OS400:*:*) - echo powerpc-ibm-os400 - exit ;; - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} - exit ;; - arm:riscos:*:*|arm:RISCOS:*:*) - echo arm-unknown-riscos - exit ;; - SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) - echo hppa1.1-hitachi-hiuxmpp - exit ;; - Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then - echo pyramid-pyramid-sysv3 - else - echo pyramid-pyramid-bsd - fi - exit ;; - NILE*:*:*:dcosx) - echo pyramid-pyramid-svr4 - exit ;; - DRS?6000:unix:4.0:6*) - echo sparc-icl-nx6 - exit ;; - DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) - case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7; exit ;; - esac ;; - s390x:SunOS:*:*) - echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) - eval $set_cc_for_build - SUN_ARCH="i386" - # If there is a compiler, see if it is configured for 64-bit objects. - # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. - # This test works for both compilers. - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then - if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_64BIT_ARCH >/dev/null - then - SUN_ARCH="x86_64" - fi - fi - echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:6*:*) - # According to config.sub, this is the proper way to canonicalize - # SunOS6. Hard to guess exactly what SunOS6 will be like, but - # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in - Series*|S4*) - UNAME_RELEASE=`uname -v` - ;; - esac - # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit ;; - sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} - exit ;; - sun*:*:4.2BSD:*) - UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 - case "`/bin/arch`" in - sun3) - echo m68k-sun-sunos${UNAME_RELEASE} - ;; - sun4) - echo sparc-sun-sunos${UNAME_RELEASE} - ;; - esac - exit ;; - aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} - exit ;; - # The situation for MiNT is a little confusing. The machine name - # can be virtually everything (everything which is not - # "atarist" or "atariste" at least should have a processor - # > m68000). The system name ranges from "MiNT" over "FreeMiNT" - # to the lowercase version "mint" (or "freemint"). Finally - # the system name "TOS" denotes a system which is actually not - # MiNT. But MiNT is downward compatible to TOS, so this should - # be no problem. - atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} - exit ;; - hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} - exit ;; - *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} - exit ;; - m68k:machten:*:*) - echo m68k-apple-machten${UNAME_RELEASE} - exit ;; - powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} - exit ;; - RISC*:Mach:*:*) - echo mips-dec-mach_bsd4.3 - exit ;; - RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} - exit ;; - VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} - exit ;; - 2020:CLIX:*:* | 2430:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} - exit ;; - mips:*:*:UMIPS | mips:*:*:RISCos) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c -#ifdef __cplusplus -#include <stdio.h> /* for printf() prototype */ - int main (int argc, char *argv[]) { -#else - int main (argc, argv) int argc; char *argv[]; { -#endif - #if defined (host_mips) && defined (MIPSEB) - #if defined (SYSTYPE_SYSV) - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_SVR4) - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); - #endif - #endif - exit (-1); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c && - dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && - SYSTEM_NAME=`$dummy $dummyarg` && - { echo "$SYSTEM_NAME"; exit; } - echo mips-mips-riscos${UNAME_RELEASE} - exit ;; - Motorola:PowerMAX_OS:*:*) - echo powerpc-motorola-powermax - exit ;; - Motorola:*:4.3:PL8-*) - echo powerpc-harris-powermax - exit ;; - Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) - echo powerpc-harris-powermax - exit ;; - Night_Hawk:Power_UNIX:*:*) - echo powerpc-harris-powerunix - exit ;; - m88k:CX/UX:7*:*) - echo m88k-harris-cxux7 - exit ;; - m88k:*:4*:R4*) - echo m88k-motorola-sysv4 - exit ;; - m88k:*:3*:R3*) - echo m88k-motorola-sysv3 - exit ;; - AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] - then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ - [ ${TARGET_BINARY_INTERFACE}x = x ] - then - echo m88k-dg-dgux${UNAME_RELEASE} - else - echo m88k-dg-dguxbcs${UNAME_RELEASE} - fi - else - echo i586-dg-dgux${UNAME_RELEASE} - fi - exit ;; - M88*:DolphinOS:*:*) # DolphinOS (SVR3) - echo m88k-dolphin-sysv3 - exit ;; - M88*:*:R3*:*) - # Delta 88k system running SVR3 - echo m88k-motorola-sysv3 - exit ;; - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) - echo m88k-tektronix-sysv3 - exit ;; - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) - echo m68k-tektronix-bsd - exit ;; - *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit ;; - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i*86:AIX:*:*) - echo i386-ibm-aix - exit ;; - ia64:AIX:*:*) - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} - exit ;; - *:AIX:2:3) - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include <sys/systemcfg.h> - - main() - { - if (!__power_pc()) - exit(1); - puts("powerpc-ibm-aix3.2.5"); - exit(0); - } -EOF - if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` - then - echo "$SYSTEM_NAME" - else - echo rs6000-ibm-aix3.2.5 - fi - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then - echo rs6000-ibm-aix3.2.4 - else - echo rs6000-ibm-aix3.2 - fi - exit ;; - *:AIX:*:[456]) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` - if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then - IBM_ARCH=rs6000 - else - IBM_ARCH=powerpc - fi - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit ;; - *:AIX:*:*) - echo rs6000-ibm-aix - exit ;; - ibmrt:4.4BSD:*|romp-ibm:BSD:*) - echo romp-ibm-bsd4.4 - exit ;; - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit ;; # report: romp-ibm BSD 4.3 - *:BOSX:*:*) - echo rs6000-bull-bosx - exit ;; - DPX/2?00:B.O.S.:*:*) - echo m68k-bull-sysv3 - exit ;; - 9000/[34]??:4.3bsd:1.*:*) - echo m68k-hp-bsd - exit ;; - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) - echo m68k-hp-bsd4.4 - exit ;; - 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - case "${UNAME_MACHINE}" in - 9000/31? ) HP_ARCH=m68000 ;; - 9000/[34]?? ) HP_ARCH=m68k ;; - 9000/[678][0-9][0-9]) - if [ -x /usr/bin/getconf ]; then - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "${sc_cpu_version}" in - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 - 532) # CPU_PA_RISC2_0 - case "${sc_kernel_bits}" in - 32) HP_ARCH="hppa2.0n" ;; - 64) HP_ARCH="hppa2.0w" ;; - '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 - esac ;; - esac - fi - if [ "${HP_ARCH}" = "" ]; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - - #define _HPUX_SOURCE - #include <stdlib.h> - #include <unistd.h> - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } -EOF - (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` - test -z "$HP_ARCH" && HP_ARCH=hppa - fi ;; - esac - if [ ${HP_ARCH} = "hppa2.0w" ] - then - eval $set_cc_for_build - - # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating - # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler - # generating 64-bit code. GNU and HP use different nomenclature: - # - # $ CC_FOR_BUILD=cc ./config.guess - # => hppa2.0w-hp-hpux11.23 - # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess - # => hppa64-hp-hpux11.23 - - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | - grep __LP64__ >/dev/null - then - HP_ARCH="hppa2.0w" - else - HP_ARCH="hppa64" - fi - fi - echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit ;; - ia64:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ia64-hp-hpux${HPUX_REV} - exit ;; - 3050*:HI-UX:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include <unistd.h> - int - main () - { - long cpu = sysconf (_SC_CPU_VERSION); - /* The order matters, because CPU_IS_HP_MC68K erroneously returns - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct - results, however. */ - if (CPU_IS_PA_RISC (cpu)) - { - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; - default: puts ("hppa-hitachi-hiuxwe2"); break; - } - } - else if (CPU_IS_HP_MC68K (cpu)) - puts ("m68k-hitachi-hiuxwe2"); - else puts ("unknown-hitachi-hiuxwe2"); - exit (0); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && - { echo "$SYSTEM_NAME"; exit; } - echo unknown-hitachi-hiuxwe2 - exit ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) - echo hppa1.1-hp-bsd - exit ;; - 9000/8??:4.3bsd:*:*) - echo hppa1.0-hp-bsd - exit ;; - *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) - echo hppa1.0-hp-mpeix - exit ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) - echo hppa1.1-hp-osf - exit ;; - hp8??:OSF1:*:*) - echo hppa1.0-hp-osf - exit ;; - i*86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk - else - echo ${UNAME_MACHINE}-unknown-osf1 - fi - exit ;; - parisc*:Lites*:*:*) - echo hppa1.1-hp-lites - exit ;; - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) - echo c1-convex-bsd - exit ;; - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit ;; - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) - echo c34-convex-bsd - exit ;; - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) - echo c38-convex-bsd - exit ;; - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) - echo c4-convex-bsd - exit ;; - CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*[A-Z]90:*:*:*) - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ - -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*T3E:*:*:*) - echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*SV1:*:*:*) - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - *:UNICOS/mp:*:*) - echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) - FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit ;; - sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} - exit ;; - *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit ;; - *:FreeBSD:*:*) - case ${UNAME_MACHINE} in - pc98) - echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - amd64) - echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - *) - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - esac - exit ;; - i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin - exit ;; - *:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 - exit ;; - i*:windows32*:*) - # uname -m includes "-pc" on this system. - echo ${UNAME_MACHINE}-mingw32 - exit ;; - i*:PW*:*) - echo ${UNAME_MACHINE}-pc-pw32 - exit ;; - *:Interix*:[3456]*) - case ${UNAME_MACHINE} in - x86) - echo i586-pc-interix${UNAME_RELEASE} - exit ;; - EM64T | authenticamd | genuineintel) - echo x86_64-unknown-interix${UNAME_RELEASE} - exit ;; - IA64) - echo ia64-unknown-interix${UNAME_RELEASE} - exit ;; - esac ;; - [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) - echo i${UNAME_MACHINE}-pc-mks - exit ;; - i*:Windows_NT*:* | Pentium*:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we - # UNAME_MACHINE based on the output of uname instead of i386? - echo i586-pc-interix - exit ;; - i*:UWIN*:*) - echo ${UNAME_MACHINE}-pc-uwin - exit ;; - amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) - echo x86_64-unknown-cygwin - exit ;; - p*:CYGWIN*:*) - echo powerpcle-unknown-cygwin - exit ;; - prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - *:GNU:*:*) - # the GNU system - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit ;; - *:GNU/*:*:*) - # other systems with GNU libc and userland - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu - exit ;; - i*86:Minix:*:*) - echo ${UNAME_MACHINE}-pc-minix - exit ;; - arm*:Linux:*:*) - eval $set_cc_for_build - if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ARM_EABI__ - then - echo ${UNAME_MACHINE}-unknown-linux-gnu - else - echo ${UNAME_MACHINE}-unknown-linux-gnueabi - fi - exit ;; - avr32*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - cris:Linux:*:*) - echo cris-axis-linux-gnu - exit ;; - crisv32:Linux:*:*) - echo crisv32-axis-linux-gnu - exit ;; - frv:Linux:*:*) - echo frv-unknown-linux-gnu - exit ;; - ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - m32r*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - mips:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef mips - #undef mipsel - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mipsel - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=mips - #else - CPU= - #endif - #endif -EOF - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' - /^CPU/{ - s: ::g - p - }'`" - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } - ;; - mips64:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef mips64 - #undef mips64el - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mips64el - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=mips64 - #else - CPU= - #endif - #endif -EOF - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' - /^CPU/{ - s: ::g - p - }'`" - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } - ;; - or32:Linux:*:*) - echo or32-unknown-linux-gnu - exit ;; - ppc:Linux:*:*) - echo powerpc-unknown-linux-gnu - exit ;; - ppc64:Linux:*:*) - echo powerpc64-unknown-linux-gnu - exit ;; - alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in - EV5) UNAME_MACHINE=alphaev5 ;; - EV56) UNAME_MACHINE=alphaev56 ;; - PCA56) UNAME_MACHINE=alphapca56 ;; - PCA57) UNAME_MACHINE=alphapca56 ;; - EV6) UNAME_MACHINE=alphaev6 ;; - EV67) UNAME_MACHINE=alphaev67 ;; - EV68*) UNAME_MACHINE=alphaev68 ;; - esac - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} - exit ;; - padre:Linux:*:*) - echo sparc-unknown-linux-gnu - exit ;; - parisc:Linux:*:* | hppa:Linux:*:*) - # Look for CPU level - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-gnu ;; - PA8*) echo hppa2.0-unknown-linux-gnu ;; - *) echo hppa-unknown-linux-gnu ;; - esac - exit ;; - parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-gnu - exit ;; - s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux - exit ;; - sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - sh*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - vax:Linux:*:*) - echo ${UNAME_MACHINE}-dec-linux-gnu - exit ;; - x86_64:Linux:*:*) - echo x86_64-unknown-linux-gnu - exit ;; - xtensa*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - i*86:Linux:*:*) - # The BFD linker knows what the default object file format is, so - # first see if it will tell us. cd to the root directory to prevent - # problems with other programs or directories called `ld' in the path. - # Set LC_ALL=C to ensure ld outputs messages in English. - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ - | sed -ne '/supported targets:/!d - s/[ ][ ]*/ /g - s/.*supported targets: *// - s/ .*// - p'` - case "$ld_supported_targets" in - elf32-i386) - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" - ;; - a.out-i386-linux) - echo "${UNAME_MACHINE}-pc-linux-gnuaout" - exit ;; - "") - # Either a pre-BFD a.out linker (linux-gnuoldld) or - # one that does not give us useful --help. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld" - exit ;; - esac - # Determine whether the default compiler is a.out or elf - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include <features.h> - #ifdef __ELF__ - # ifdef __GLIBC__ - # if __GLIBC__ >= 2 - LIBC=gnu - # else - LIBC=gnulibc1 - # endif - # else - LIBC=gnulibc1 - # endif - #else - #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) - LIBC=gnu - #else - LIBC=gnuaout - #endif - #endif - #ifdef __dietlibc__ - LIBC=dietlibc - #endif -EOF - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' - /^LIBC/{ - s: ::g - p - }'`" - test x"${LIBC}" != x && { - echo "${UNAME_MACHINE}-pc-linux-${LIBC}" - exit - } - test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } - ;; - i*86:DYNIX/ptx:4*:*) - # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. - # earlier versions are messed up and put the nodename in both - # sysname and nodename. - echo i386-sequent-sysv4 - exit ;; - i*86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, - # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit ;; - i*86:OS/2:*:*) - # If we were able to find `uname', then EMX Unix compatibility - # is probably installed. - echo ${UNAME_MACHINE}-pc-os2-emx - exit ;; - i*86:XTS-300:*:STOP) - echo ${UNAME_MACHINE}-unknown-stop - exit ;; - i*86:atheos:*:*) - echo ${UNAME_MACHINE}-unknown-atheos - exit ;; - i*86:syllable:*:*) - echo ${UNAME_MACHINE}-pc-syllable - exit ;; - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} - exit ;; - i*86:*DOS:*:*) - echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit ;; - i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} - fi - exit ;; - i*86:*:5:[678]*) - # UnixWare 7.x, OpenUNIX and OpenServer 6. - case `/bin/uname -X | grep "^Machine"` in - *486*) UNAME_MACHINE=i486 ;; - *Pentium) UNAME_MACHINE=i586 ;; - *Pent*|*Celeron) UNAME_MACHINE=i686 ;; - esac - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} - exit ;; - i*86:*:3.2:*) - if test -f /usr/options/cb.name; then - UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` - echo ${UNAME_MACHINE}-pc-isc$UNAME_REL - elif /bin/uname -X 2>/dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` - (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 - (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ - && UNAME_MACHINE=i586 - (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ - && UNAME_MACHINE=i686 - (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ - && UNAME_MACHINE=i686 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL - else - echo ${UNAME_MACHINE}-pc-sysv32 - fi - exit ;; - pc:*:*:*) - # Left here for compatibility: - # uname -m prints for DJGPP always 'pc', but it prints nothing about - # the processor, so we play safe by assuming i586. - # Note: whatever this is, it MUST be the same as what config.sub - # prints for the "djgpp" host, or else GDB configury will decide that - # this is a cross-build. - echo i586-pc-msdosdjgpp - exit ;; - Intel:Mach:3*:*) - echo i386-pc-mach3 - exit ;; - paragon:*:*:*) - echo i860-intel-osf1 - exit ;; - i860:*:4.*:*) # i860-SVR4 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 - else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 - fi - exit ;; - mini*:CTIX:SYS*5:*) - # "miniframe" - echo m68010-convergent-sysv - exit ;; - mc68k:UNIX:SYSTEM5:3.51m) - echo m68k-convergent-sysv - exit ;; - M680?0:D-NIX:5.3:*) - echo m68k-diab-dnix - exit ;; - M68*:*:R3V[5678]*:*) - test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) - OS_REL='' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4; exit; } ;; - NCR*:*:4.2:* | MPRAS*:*:4.2:*) - OS_REL='.3' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } - /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; - m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} - exit ;; - mc68030:UNIX_System_V:4.*:*) - echo m68k-atari-sysv4 - exit ;; - TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} - exit ;; - rs6000:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit ;; - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) - echo powerpc-unknown-lynxos${UNAME_RELEASE} - exit ;; - SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} - exit ;; - RM*:ReliantUNIX-*:*:*) - echo mips-sni-sysv4 - exit ;; - RM*:SINIX-*:*:*) - echo mips-sni-sysv4 - exit ;; - *:SINIX-*:*:*) - if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 - else - echo ns32k-sni-sysv - fi - exit ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says <Richard.M.Bartel@ccMail.Census.GOV> - echo i586-unisys-sysv4 - exit ;; - *:UNIX_System_V:4*:FTX*) - # From Gerald Hewes <hewes@openmarket.com>. - # How about differentiating between stratus architectures? -djm - echo hppa1.1-stratus-sysv4 - exit ;; - *:*:*:FTX*) - # From seanf@swdc.stratus.com. - echo i860-stratus-sysv4 - exit ;; - i*86:VOS:*:*) - # From Paul.Green@stratus.com. - echo ${UNAME_MACHINE}-stratus-vos - exit ;; - *:VOS:*:*) - # From Paul.Green@stratus.com. - echo hppa1.1-stratus-vos - exit ;; - mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} - exit ;; - news*:NEWS-OS:6*:*) - echo mips-sony-newsos6 - exit ;; - R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} - else - echo mips-unknown-sysv${UNAME_RELEASE} - fi - exit ;; - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. - echo powerpc-be-beos - exit ;; - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. - echo powerpc-apple-beos - exit ;; - BePC:BeOS:*:*) # BeOS running on Intel PC compatible. - echo i586-pc-beos - exit ;; - BePC:Haiku:*:*) # Haiku running on Intel PC compatible. - echo i586-pc-haiku - exit ;; - SX-4:SUPER-UX:*:*) - echo sx4-nec-superux${UNAME_RELEASE} - exit ;; - SX-5:SUPER-UX:*:*) - echo sx5-nec-superux${UNAME_RELEASE} - exit ;; - SX-6:SUPER-UX:*:*) - echo sx6-nec-superux${UNAME_RELEASE} - exit ;; - SX-7:SUPER-UX:*:*) - echo sx7-nec-superux${UNAME_RELEASE} - exit ;; - SX-8:SUPER-UX:*:*) - echo sx8-nec-superux${UNAME_RELEASE} - exit ;; - SX-8R:SUPER-UX:*:*) - echo sx8r-nec-superux${UNAME_RELEASE} - exit ;; - Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit ;; - *:Rhapsody:*:*) - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit ;; - *:Darwin:*:*) - UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown - case $UNAME_PROCESSOR in - unknown) UNAME_PROCESSOR=powerpc ;; - esac - echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} - exit ;; - *:procnto*:*:* | *:QNX:[0123456789]*:*) - UNAME_PROCESSOR=`uname -p` - if test "$UNAME_PROCESSOR" = "x86"; then - UNAME_PROCESSOR=i386 - UNAME_MACHINE=pc - fi - echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} - exit ;; - *:QNX:*:4*) - echo i386-pc-qnx - exit ;; - NSE-?:NONSTOP_KERNEL:*:*) - echo nse-tandem-nsk${UNAME_RELEASE} - exit ;; - NSR-?:NONSTOP_KERNEL:*:*) - echo nsr-tandem-nsk${UNAME_RELEASE} - exit ;; - *:NonStop-UX:*:*) - echo mips-compaq-nonstopux - exit ;; - BS2000:POSIX*:*:*) - echo bs2000-siemens-sysv - exit ;; - DS/*:UNIX_System_V:*:*) - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} - exit ;; - *:Plan9:*:*) - # "uname -m" is not consistent, so use $cputype instead. 386 - # is converted to i386 for consistency with other x86 - # operating systems. - if test "$cputype" = "386"; then - UNAME_MACHINE=i386 - else - UNAME_MACHINE="$cputype" - fi - echo ${UNAME_MACHINE}-unknown-plan9 - exit ;; - *:TOPS-10:*:*) - echo pdp10-unknown-tops10 - exit ;; - *:TENEX:*:*) - echo pdp10-unknown-tenex - exit ;; - KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) - echo pdp10-dec-tops20 - exit ;; - XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) - echo pdp10-xkl-tops20 - exit ;; - *:TOPS-20:*:*) - echo pdp10-unknown-tops20 - exit ;; - *:ITS:*:*) - echo pdp10-unknown-its - exit ;; - SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} - exit ;; - *:DragonFly:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit ;; - *:*VMS:*:*) - UNAME_MACHINE=`(uname -p) 2>/dev/null` - case "${UNAME_MACHINE}" in - A*) echo alpha-dec-vms ; exit ;; - I*) echo ia64-dec-vms ; exit ;; - V*) echo vax-dec-vms ; exit ;; - esac ;; - *:XENIX:*:SysV) - echo i386-pc-xenix - exit ;; - i*86:skyos:*:*) - echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' - exit ;; - i*86:rdos:*:*) - echo ${UNAME_MACHINE}-pc-rdos - exit ;; - i*86:AROS:*:*) - echo ${UNAME_MACHINE}-pc-aros - exit ;; -esac - -#echo '(No uname command or uname output not recognized.)' 1>&2 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 - -eval $set_cc_for_build -cat >$dummy.c <<EOF -#ifdef _SEQUENT_ -# include <sys/types.h> -# include <sys/utsname.h> -#endif -main () -{ -#if defined (sony) -#if defined (MIPSEB) - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, - I don't know.... */ - printf ("mips-sony-bsd\n"); exit (0); -#else -#include <sys/param.h> - printf ("m68k-sony-newsos%s\n", -#ifdef NEWSOS4 - "4" -#else - "" -#endif - ); exit (0); -#endif -#endif - -#if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix\n"); exit (0); -#endif - -#if defined (hp300) && !defined (hpux) - printf ("m68k-hp-bsd\n"); exit (0); -#endif - -#if defined (NeXT) -#if !defined (__ARCHITECTURE__) -#define __ARCHITECTURE__ "m68k" -#endif - int version; - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; - if (version < 4) - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); - else - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); - exit (0); -#endif - -#if defined (MULTIMAX) || defined (n16) -#if defined (UMAXV) - printf ("ns32k-encore-sysv\n"); exit (0); -#else -#if defined (CMU) - printf ("ns32k-encore-mach\n"); exit (0); -#else - printf ("ns32k-encore-bsd\n"); exit (0); -#endif -#endif -#endif - -#if defined (__386BSD__) - printf ("i386-pc-bsd\n"); exit (0); -#endif - -#if defined (sequent) -#if defined (i386) - printf ("i386-sequent-dynix\n"); exit (0); -#endif -#if defined (ns32000) - printf ("ns32k-sequent-dynix\n"); exit (0); -#endif -#endif - -#if defined (_SEQUENT_) - struct utsname un; - - uname(&un); - - if (strncmp(un.version, "V2", 2) == 0) { - printf ("i386-sequent-ptx2\n"); exit (0); - } - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ - printf ("i386-sequent-ptx1\n"); exit (0); - } - printf ("i386-sequent-ptx\n"); exit (0); - -#endif - -#if defined (vax) -# if !defined (ultrix) -# include <sys/param.h> -# if defined (BSD) -# if BSD == 43 - printf ("vax-dec-bsd4.3\n"); exit (0); -# else -# if BSD == 199006 - printf ("vax-dec-bsd4.3reno\n"); exit (0); -# else - printf ("vax-dec-bsd\n"); exit (0); -# endif -# endif -# else - printf ("vax-dec-bsd\n"); exit (0); -# endif -# else - printf ("vax-dec-ultrix\n"); exit (0); -# endif -#endif - -#if defined (alliant) && defined (i860) - printf ("i860-alliant-bsd\n"); exit (0); -#endif - - exit (1); -} -EOF - -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && - { echo "$SYSTEM_NAME"; exit; } - -# Apollos put the system type in the environment. - -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } - -# Convex versions that predate uname can use getsysinfo(1) - -if [ -x /usr/convex/getsysinfo ] -then - case `getsysinfo -f cpu_type` in - c1*) - echo c1-convex-bsd - exit ;; - c2*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit ;; - c34*) - echo c34-convex-bsd - exit ;; - c38*) - echo c38-convex-bsd - exit ;; - c4*) - echo c4-convex-bsd - exit ;; - esac -fi - -cat >&2 <<EOF -$0: unable to guess system type - -This script, last modified $timestamp, has failed to recognize -the operating system you are using. It is advised that you -download the most up to date version of the config scripts from - - http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD -and - http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD - -If the version you run ($0) is already up to date, please -send the following data and any information you think might be -pertinent to <config-patches@gnu.org> in order to provide the needed -information to handle your system. - -config.guess timestamp = $timestamp - -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null` - -hostinfo = `(hostinfo) 2>/dev/null` -/bin/universe = `(/bin/universe) 2>/dev/null` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` -/bin/arch = `(/bin/arch) 2>/dev/null` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` - -UNAME_MACHINE = ${UNAME_MACHINE} -UNAME_RELEASE = ${UNAME_RELEASE} -UNAME_SYSTEM = ${UNAME_SYSTEM} -UNAME_VERSION = ${UNAME_VERSION} -EOF - -exit 1 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/Build/source/libs/poppler/poppler-0.12.4/config.sub b/Build/source/libs/poppler/poppler-0.12.4/config.sub deleted file mode 100755 index a39437d0158..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/config.sub +++ /dev/null @@ -1,1686 +0,0 @@ -#! /bin/sh -# Configuration validation subroutine script. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 -# Free Software Foundation, Inc. - -timestamp='2009-04-17' - -# This file is (in principle) common to ALL GNU software. -# The presence of a machine in this file suggests that SOME GNU software -# can handle that machine. It does not imply ALL GNU software can. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA -# 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - - -# Please send patches to <config-patches@gnu.org>. Submit a context -# diff and a properly formatted ChangeLog entry. -# -# Configuration subroutine to validate and canonicalize a configuration type. -# Supply the specified configuration type as an argument. -# If it is invalid, we print an error message on stderr and exit with code 1. -# Otherwise, we print the canonical config type on stdout and succeed. - -# This file is supposed to be the same for all GNU packages -# and recognize all the CPU types, system types and aliases -# that are meaningful with *any* GNU software. -# Each package is responsible for reporting which valid configurations -# it does not support. The user should be able to distinguish -# a failure to support a valid configuration from a meaningless -# configuration. - -# The goal of this file is to map all the various variations of a given -# machine specification into a single specification in the form: -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or in some cases, the newer four-part form: -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# It is wrong to echo any other type of specification. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] CPU-MFR-OPSYS - $0 [OPTION] ALIAS - -Canonicalize a configuration name. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to <config-patches@gnu.org>." - -version="\ -GNU config.sub ($timestamp) - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit ;; - --version | -v ) - echo "$version" ; exit ;; - --help | --h* | -h ) - echo "$usage"; exit ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" - exit 1 ;; - - *local*) - # First pass through any local machine types. - echo $1 - exit ;; - - * ) - break ;; - esac -done - -case $# in - 0) echo "$me: missing argument$help" >&2 - exit 1;; - 1) ;; - *) echo "$me: too many arguments$help" >&2 - exit 1;; -esac - -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). -# Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` -case $maybe_os in - nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ - uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ - kopensolaris*-gnu* | \ - storm-chaos* | os2-emx* | rtmk-nova*) - os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` - ;; - *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` - else os=; fi - ;; -esac - -### Let's recognize common machines as not being operating systems so -### that things like config.sub decstation-3100 work. We also -### recognize some manufacturers as not being operating systems, so we -### can provide default operating systems below. -case $os in - -sun*os*) - # Prevent following clause from handling this invalid input. - ;; - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis | -knuth | -cray) - os= - basic_machine=$1 - ;; - -sim | -cisco | -oki | -wec | -winbond) - os= - basic_machine=$1 - ;; - -scout) - ;; - -wrs) - os=-vxworks - basic_machine=$1 - ;; - -chorusos*) - os=-chorusos - basic_machine=$1 - ;; - -chorusrdb) - os=-chorusrdb - basic_machine=$1 - ;; - -hiux*) - os=-hiuxwe2 - ;; - -sco6) - os=-sco5v6 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco5) - os=-sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco4) - os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2.[4-9]*) - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2v[4-9]*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco5v6*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco*) - os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -udk*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -isc) - os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -clix*) - basic_machine=clipper-intergraph - ;; - -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -lynx*) - os=-lynxos - ;; - -ptx*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` - ;; - -windowsnt*) - os=`echo $os | sed -e 's/windowsnt/winnt/'` - ;; - -psos*) - os=-psos - ;; - -mint | -mint[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; -esac - -# Decode aliases for certain CPU-COMPANY combinations. -case $basic_machine in - # Recognize the basic CPU types without company name. - # Some are omitted here because they have special meanings below. - 1750a | 580 \ - | a29k \ - | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ - | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ - | am33_2.0 \ - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ - | bfin \ - | c4x | clipper \ - | d10v | d30v | dlx | dsp16xx \ - | fido | fr30 | frv \ - | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ - | i370 | i860 | i960 | ia64 \ - | ip2k | iq2000 \ - | lm32 \ - | m32c | m32r | m32rle | m68000 | m68k | m88k \ - | maxq | mb | microblaze | mcore | mep | metag \ - | mips | mipsbe | mipseb | mipsel | mipsle \ - | mips16 \ - | mips64 | mips64el \ - | mips64octeon | mips64octeonel \ - | mips64orion | mips64orionel \ - | mips64r5900 | mips64r5900el \ - | mips64vr | mips64vrel \ - | mips64vr4100 | mips64vr4100el \ - | mips64vr4300 | mips64vr4300el \ - | mips64vr5000 | mips64vr5000el \ - | mips64vr5900 | mips64vr5900el \ - | mipsisa32 | mipsisa32el \ - | mipsisa32r2 | mipsisa32r2el \ - | mipsisa64 | mipsisa64el \ - | mipsisa64r2 | mipsisa64r2el \ - | mipsisa64sb1 | mipsisa64sb1el \ - | mipsisa64sr71k | mipsisa64sr71kel \ - | mipstx39 | mipstx39el \ - | mn10200 | mn10300 \ - | moxie \ - | mt \ - | msp430 \ - | nios | nios2 \ - | ns16k | ns32k \ - | or32 \ - | pdp10 | pdp11 | pj | pjl \ - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ - | pyramid \ - | score \ - | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ - | sh64 | sh64le \ - | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ - | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ - | spu | strongarm \ - | tahoe | thumb | tic4x | tic80 | tron \ - | v850 | v850e \ - | we32k \ - | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ - | z8k | z80) - basic_machine=$basic_machine-unknown - ;; - m6811 | m68hc11 | m6812 | m68hc12) - # Motorola 68HC11/12. - basic_machine=$basic_machine-unknown - os=-none - ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) - ;; - ms1) - basic_machine=mt-unknown - ;; - - # We use `pc' rather than `unknown' - # because (1) that's what they normally are, and - # (2) the word "unknown" tends to confuse beginning users. - i*86 | x86_64) - basic_machine=$basic_machine-pc - ;; - # Object if more than one company name word. - *-*-*) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; - # Recognize the basic CPU types with company name. - 580-* \ - | a29k-* \ - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ - | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ - | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* | avr32-* \ - | bfin-* | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ - | clipper-* | craynv-* | cydra-* \ - | d10v-* | d30v-* | dlx-* \ - | elxsi-* \ - | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ - | h8300-* | h8500-* \ - | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ - | i*86-* | i860-* | i960-* | ia64-* \ - | ip2k-* | iq2000-* \ - | lm32-* \ - | m32c-* | m32r-* | m32rle-* \ - | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ - | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ - | mips16-* \ - | mips64-* | mips64el-* \ - | mips64octeon-* | mips64octeonel-* \ - | mips64orion-* | mips64orionel-* \ - | mips64r5900-* | mips64r5900el-* \ - | mips64vr-* | mips64vrel-* \ - | mips64vr4100-* | mips64vr4100el-* \ - | mips64vr4300-* | mips64vr4300el-* \ - | mips64vr5000-* | mips64vr5000el-* \ - | mips64vr5900-* | mips64vr5900el-* \ - | mipsisa32-* | mipsisa32el-* \ - | mipsisa32r2-* | mipsisa32r2el-* \ - | mipsisa64-* | mipsisa64el-* \ - | mipsisa64r2-* | mipsisa64r2el-* \ - | mipsisa64sb1-* | mipsisa64sb1el-* \ - | mipsisa64sr71k-* | mipsisa64sr71kel-* \ - | mipstx39-* | mipstx39el-* \ - | mmix-* \ - | mt-* \ - | msp430-* \ - | nios-* | nios2-* \ - | none-* | np1-* | ns16k-* | ns32k-* \ - | orion-* \ - | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ - | pyramid-* \ - | romp-* | rs6000-* \ - | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ - | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ - | sparclite-* \ - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ - | tahoe-* | thumb-* \ - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ - | tron-* \ - | v850-* | v850e-* | vax-* \ - | we32k-* \ - | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ - | xstormy16-* | xtensa*-* \ - | ymp-* \ - | z8k-* | z80-*) - ;; - # Recognize the basic CPU types without company name, with glob match. - xtensa*) - basic_machine=$basic_machine-unknown - ;; - # Recognize the various machine names and aliases which stand - # for a CPU type and a company and sometimes even an OS. - 386bsd) - basic_machine=i386-unknown - os=-bsd - ;; - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) - basic_machine=m68000-att - ;; - 3b*) - basic_machine=we32k-att - ;; - a29khif) - basic_machine=a29k-amd - os=-udi - ;; - abacus) - basic_machine=abacus-unknown - ;; - adobe68k) - basic_machine=m68010-adobe - os=-scout - ;; - alliant | fx80) - basic_machine=fx80-alliant - ;; - altos | altos3068) - basic_machine=m68k-altos - ;; - am29k) - basic_machine=a29k-none - os=-bsd - ;; - amd64) - basic_machine=x86_64-pc - ;; - amd64-*) - basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - amdahl) - basic_machine=580-amdahl - os=-sysv - ;; - amiga | amiga-*) - basic_machine=m68k-unknown - ;; - amigaos | amigados) - basic_machine=m68k-unknown - os=-amigaos - ;; - amigaunix | amix) - basic_machine=m68k-unknown - os=-sysv4 - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv - ;; - apollo68bsd) - basic_machine=m68k-apollo - os=-bsd - ;; - aros) - basic_machine=i386-pc - os=-aros - ;; - aux) - basic_machine=m68k-apple - os=-aux - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - blackfin) - basic_machine=bfin-unknown - os=-linux - ;; - blackfin-*) - basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; - c90) - basic_machine=c90-cray - os=-unicos - ;; - cegcc) - basic_machine=arm-unknown - os=-cegcc - ;; - convex-c1) - basic_machine=c1-convex - os=-bsd - ;; - convex-c2) - basic_machine=c2-convex - os=-bsd - ;; - convex-c32) - basic_machine=c32-convex - os=-bsd - ;; - convex-c34) - basic_machine=c34-convex - os=-bsd - ;; - convex-c38) - basic_machine=c38-convex - os=-bsd - ;; - cray | j90) - basic_machine=j90-cray - os=-unicos - ;; - craynv) - basic_machine=craynv-cray - os=-unicosmp - ;; - cr16) - basic_machine=cr16-unknown - os=-elf - ;; - crds | unos) - basic_machine=m68k-crds - ;; - crisv32 | crisv32-* | etraxfs*) - basic_machine=crisv32-axis - ;; - cris | cris-* | etrax*) - basic_machine=cris-axis - ;; - crx) - basic_machine=crx-unknown - os=-elf - ;; - da30 | da30-*) - basic_machine=m68k-da30 - ;; - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) - basic_machine=mips-dec - ;; - decsystem10* | dec10*) - basic_machine=pdp10-dec - os=-tops10 - ;; - decsystem20* | dec20*) - basic_machine=pdp10-dec - os=-tops20 - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - ;; - delta88) - basic_machine=m88k-motorola - os=-sysv3 - ;; - dicos) - basic_machine=i686-pc - os=-dicos - ;; - djgpp) - basic_machine=i586-pc - os=-msdosdjgpp - ;; - dpx20 | dpx20-*) - basic_machine=rs6000-bull - os=-bosx - ;; - dpx2* | dpx2*-bull) - basic_machine=m68k-bull - os=-sysv3 - ;; - ebmon29k) - basic_machine=a29k-amd - os=-ebmon - ;; - elxsi) - basic_machine=elxsi-elxsi - os=-bsd - ;; - encore | umax | mmax) - basic_machine=ns32k-encore - ;; - es1800 | OSE68k | ose68k | ose | OSE) - basic_machine=m68k-ericsson - os=-ose - ;; - fx2800) - basic_machine=i860-alliant - ;; - genix) - basic_machine=ns32k-ns - ;; - gmicro) - basic_machine=tron-gmicro - os=-sysv - ;; - go32) - basic_machine=i386-pc - os=-go32 - ;; - h3050r* | hiux*) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - h8300hms) - basic_machine=h8300-hitachi - os=-hms - ;; - h8300xray) - basic_machine=h8300-hitachi - os=-xray - ;; - h8500hms) - basic_machine=h8500-hitachi - os=-hms - ;; - harris) - basic_machine=m88k-harris - os=-sysv3 - ;; - hp300-*) - basic_machine=m68k-hp - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux) - basic_machine=m68k-hp - os=-hpux - ;; - hp3k9[0-9][0-9] | hp9[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k2[0-9][0-9] | hp9k31[0-9]) - basic_machine=m68000-hp - ;; - hp9k3[2-9][0-9]) - basic_machine=m68k-hp - ;; - hp9k6[0-9][0-9] | hp6[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k7[0-79][0-9] | hp7[0-79][0-9]) - basic_machine=hppa1.1-hp - ;; - hp9k78[0-9] | hp78[0-9]) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][13679] | hp8[0-9][13679]) - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][0-9] | hp8[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hppa-next) - os=-nextstep3 - ;; - hppaosf) - basic_machine=hppa1.1-hp - os=-osf - ;; - hppro) - basic_machine=hppa1.1-hp - os=-proelf - ;; - i370-ibm* | ibm*) - basic_machine=i370-ibm - ;; -# I'm not sure what "Sysv32" means. Should this be sysv3.2? - i*86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv32 - ;; - i*86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv4 - ;; - i*86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv - ;; - i*86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-solaris2 - ;; - i386mach) - basic_machine=i386-mach - os=-mach - ;; - i386-vsta | vsta) - basic_machine=i386-unknown - os=-vsta - ;; - iris | iris4d) - basic_machine=mips-sgi - case $os in - -irix*) - ;; - *) - os=-irix4 - ;; - esac - ;; - isi68 | isi) - basic_machine=m68k-isi - os=-sysv - ;; - m68knommu) - basic_machine=m68k-unknown - os=-linux - ;; - m68knommu-*) - basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; - m88k-omron*) - basic_machine=m88k-omron - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv - ;; - merlin) - basic_machine=ns32k-utek - os=-sysv - ;; - mingw32) - basic_machine=i386-pc - os=-mingw32 - ;; - mingw32ce) - basic_machine=arm-unknown - os=-mingw32ce - ;; - miniframe) - basic_machine=m68000-convergent - ;; - *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; - mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` - ;; - mips3*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown - ;; - monitor) - basic_machine=m68k-rom68k - os=-coff - ;; - morphos) - basic_machine=powerpc-unknown - os=-morphos - ;; - msdos) - basic_machine=i386-pc - os=-msdos - ;; - ms1-*) - basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` - ;; - mvs) - basic_machine=i370-ibm - os=-mvs - ;; - ncr3000) - basic_machine=i486-ncr - os=-sysv4 - ;; - netbsd386) - basic_machine=i386-unknown - os=-netbsd - ;; - netwinder) - basic_machine=armv4l-rebel - os=-linux - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - os=-newsos - ;; - news1000) - basic_machine=m68030-sony - os=-newsos - ;; - news-3600 | risc-news) - basic_machine=mips-sony - os=-newsos - ;; - necv70) - basic_machine=v70-nec - os=-sysv - ;; - next | m*-next ) - basic_machine=m68k-next - case $os in - -nextstep* ) - ;; - -ns2*) - os=-nextstep2 - ;; - *) - os=-nextstep3 - ;; - esac - ;; - nh3000) - basic_machine=m68k-harris - os=-cxux - ;; - nh[45]000) - basic_machine=m88k-harris - os=-cxux - ;; - nindy960) - basic_machine=i960-intel - os=-nindy - ;; - mon960) - basic_machine=i960-intel - os=-mon960 - ;; - nonstopux) - basic_machine=mips-compaq - os=-nonstopux - ;; - np1) - basic_machine=np1-gould - ;; - nsr-tandem) - basic_machine=nsr-tandem - ;; - op50n-* | op60c-*) - basic_machine=hppa1.1-oki - os=-proelf - ;; - openrisc | openrisc-*) - basic_machine=or32-unknown - ;; - os400) - basic_machine=powerpc-ibm - os=-os400 - ;; - OSE68000 | ose68000) - basic_machine=m68000-ericsson - os=-ose - ;; - os68k) - basic_machine=m68k-none - os=-os68k - ;; - pa-hitachi) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - paragon) - basic_machine=i860-intel - os=-osf - ;; - parisc) - basic_machine=hppa-unknown - os=-linux - ;; - parisc-*) - basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; - pbd) - basic_machine=sparc-tti - ;; - pbb) - basic_machine=m68k-tti - ;; - pc532 | pc532-*) - basic_machine=ns32k-pc532 - ;; - pc98) - basic_machine=i386-pc - ;; - pc98-*) - basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentium | p5 | k5 | k6 | nexgen | viac3) - basic_machine=i586-pc - ;; - pentiumpro | p6 | 6x86 | athlon | athlon_*) - basic_machine=i686-pc - ;; - pentiumii | pentium2 | pentiumiii | pentium3) - basic_machine=i686-pc - ;; - pentium4) - basic_machine=i786-pc - ;; - pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumpro-* | p6-* | 6x86-* | athlon-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentium4-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pn) - basic_machine=pn-gould - ;; - power) basic_machine=power-ibm - ;; - ppc) basic_machine=powerpc-unknown - ;; - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppcle | powerpclittle | ppc-le | powerpc-little) - basic_machine=powerpcle-unknown - ;; - ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppc64) basic_machine=powerpc64-unknown - ;; - ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppc64le | powerpc64little | ppc64-le | powerpc64-little) - basic_machine=powerpc64le-unknown - ;; - ppc64le-* | powerpc64little-*) - basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ps2) - basic_machine=i386-ibm - ;; - pw32) - basic_machine=i586-unknown - os=-pw32 - ;; - rdos) - basic_machine=i386-pc - os=-rdos - ;; - rom68k) - basic_machine=m68k-rom68k - os=-coff - ;; - rm[46]00) - basic_machine=mips-siemens - ;; - rtpc | rtpc-*) - basic_machine=romp-ibm - ;; - s390 | s390-*) - basic_machine=s390-ibm - ;; - s390x | s390x-*) - basic_machine=s390x-ibm - ;; - sa29200) - basic_machine=a29k-amd - os=-udi - ;; - sb1) - basic_machine=mipsisa64sb1-unknown - ;; - sb1el) - basic_machine=mipsisa64sb1el-unknown - ;; - sde) - basic_machine=mipsisa32-sde - os=-elf - ;; - sei) - basic_machine=mips-sei - os=-seiux - ;; - sequent) - basic_machine=i386-sequent - ;; - sh) - basic_machine=sh-hitachi - os=-hms - ;; - sh5el) - basic_machine=sh5le-unknown - ;; - sh64) - basic_machine=sh64-unknown - ;; - sparclite-wrs | simso-wrs) - basic_machine=sparclite-wrs - os=-vxworks - ;; - sps7) - basic_machine=m68k-bull - os=-sysv2 - ;; - spur) - basic_machine=spur-unknown - ;; - st2000) - basic_machine=m68k-tandem - ;; - stratus) - basic_machine=i860-stratus - os=-sysv4 - ;; - sun2) - basic_machine=m68000-sun - ;; - sun2os3) - basic_machine=m68000-sun - os=-sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun3os3) - basic_machine=m68k-sun - os=-sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun4os3) - basic_machine=sparc-sun - os=-sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - os=-sunos4 - ;; - sun4sol2) - basic_machine=sparc-sun - os=-solaris2 - ;; - sun3 | sun3-*) - basic_machine=m68k-sun - ;; - sun4) - basic_machine=sparc-sun - ;; - sun386 | sun386i | roadrunner) - basic_machine=i386-sun - ;; - sv1) - basic_machine=sv1-cray - os=-unicos - ;; - symmetry) - basic_machine=i386-sequent - os=-dynix - ;; - t3e) - basic_machine=alphaev5-cray - os=-unicos - ;; - t90) - basic_machine=t90-cray - os=-unicos - ;; - tic54x | c54x*) - basic_machine=tic54x-unknown - os=-coff - ;; - tic55x | c55x*) - basic_machine=tic55x-unknown - os=-coff - ;; - tic6x | c6x*) - basic_machine=tic6x-unknown - os=-coff - ;; - tile*) - basic_machine=tile-unknown - os=-linux-gnu - ;; - tx39) - basic_machine=mipstx39-unknown - ;; - tx39el) - basic_machine=mipstx39el-unknown - ;; - toad1) - basic_machine=pdp10-xkl - os=-tops20 - ;; - tower | tower-32) - basic_machine=m68k-ncr - ;; - tpf) - basic_machine=s390x-ibm - os=-tpf - ;; - udi29k) - basic_machine=a29k-amd - os=-udi - ;; - ultra3) - basic_machine=a29k-nyu - os=-sym1 - ;; - v810 | necv810) - basic_machine=v810-nec - os=-none - ;; - vaxv) - basic_machine=vax-dec - os=-sysv - ;; - vms) - basic_machine=vax-dec - os=-vms - ;; - vpp*|vx|vx-*) - basic_machine=f301-fujitsu - ;; - vxworks960) - basic_machine=i960-wrs - os=-vxworks - ;; - vxworks68) - basic_machine=m68k-wrs - os=-vxworks - ;; - vxworks29k) - basic_machine=a29k-wrs - os=-vxworks - ;; - w65*) - basic_machine=w65-wdc - os=-none - ;; - w89k-*) - basic_machine=hppa1.1-winbond - os=-proelf - ;; - xbox) - basic_machine=i686-pc - os=-mingw32 - ;; - xps | xps100) - basic_machine=xps100-honeywell - ;; - ymp) - basic_machine=ymp-cray - os=-unicos - ;; - z8k-*-coff) - basic_machine=z8k-unknown - os=-sim - ;; - z80-*-coff) - basic_machine=z80-unknown - os=-sim - ;; - none) - basic_machine=none-none - os=-none - ;; - -# Here we handle the default manufacturer of certain CPU types. It is in -# some cases the only manufacturer, in others, it is the most popular. - w89k) - basic_machine=hppa1.1-winbond - ;; - op50n) - basic_machine=hppa1.1-oki - ;; - op60c) - basic_machine=hppa1.1-oki - ;; - romp) - basic_machine=romp-ibm - ;; - mmix) - basic_machine=mmix-knuth - ;; - rs6000) - basic_machine=rs6000-ibm - ;; - vax) - basic_machine=vax-dec - ;; - pdp10) - # there are many clones, so DEC is not a safe bet - basic_machine=pdp10-unknown - ;; - pdp11) - basic_machine=pdp11-dec - ;; - we32k) - basic_machine=we32k-att - ;; - sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) - basic_machine=sh-unknown - ;; - sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) - basic_machine=sparc-sun - ;; - cydra) - basic_machine=cydra-cydrome - ;; - orion) - basic_machine=orion-highlevel - ;; - orion105) - basic_machine=clipper-highlevel - ;; - mac | mpw | mac-mpw) - basic_machine=m68k-apple - ;; - pmac | pmac-mpw) - basic_machine=powerpc-apple - ;; - *-unknown) - # Make sure to match an already-canonicalized machine name. - ;; - *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; -esac - -# Here we canonicalize certain aliases for manufacturers. -case $basic_machine in - *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` - ;; - *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` - ;; - *) - ;; -esac - -# Decode manufacturer-specific aliases for certain operating systems. - -if [ x"$os" != x"" ] -then -case $os in - # First match some system type aliases - # that might get confused with valid system types. - # -solaris* is a basic system type, with this one exception. - -solaris1 | -solaris1.*) - os=`echo $os | sed -e 's|solaris1|sunos4|'` - ;; - -solaris) - os=-solaris2 - ;; - -svr4*) - os=-sysv4 - ;; - -unixware*) - os=-sysv4.2uw - ;; - -gnu/linux*) - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` - ;; - # First accept the basic system types. - # The portable systems comes first. - # Each alternative MUST END IN A *, to match a version number. - # -sysv* is not here because it comes later, after sysvr4. - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ - | -kopensolaris* \ - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* | -aros* \ - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ - | -openbsd* | -solidbsd* \ - | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ - | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -chorusos* | -chorusrdb* | -cegcc* \ - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ - | -uxpv* | -beos* | -mpeix* | -udk* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ - | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ - | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ - | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) - # Remember, each alternative MUST END IN *, to match a version number. - ;; - -qnx*) - case $basic_machine in - x86-* | i*86-*) - ;; - *) - os=-nto$os - ;; - esac - ;; - -nto-qnx*) - ;; - -nto*) - os=`echo $os | sed -e 's|nto|nto-qnx|'` - ;; - -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ - | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) - ;; - -mac*) - os=`echo $os | sed -e 's|mac|macos|'` - ;; - -linux-dietlibc) - os=-linux-dietlibc - ;; - -linux*) - os=`echo $os | sed -e 's|linux|linux-gnu|'` - ;; - -sunos5*) - os=`echo $os | sed -e 's|sunos5|solaris2|'` - ;; - -sunos6*) - os=`echo $os | sed -e 's|sunos6|solaris3|'` - ;; - -opened*) - os=-openedition - ;; - -os400*) - os=-os400 - ;; - -wince*) - os=-wince - ;; - -osfrose*) - os=-osfrose - ;; - -osf*) - os=-osf - ;; - -utek*) - os=-bsd - ;; - -dynix*) - os=-bsd - ;; - -acis*) - os=-aos - ;; - -atheos*) - os=-atheos - ;; - -syllable*) - os=-syllable - ;; - -386bsd) - os=-bsd - ;; - -ctix* | -uts*) - os=-sysv - ;; - -nova*) - os=-rtmk-nova - ;; - -ns2 ) - os=-nextstep2 - ;; - -nsk*) - os=-nsk - ;; - # Preserve the version number of sinix5. - -sinix5.*) - os=`echo $os | sed -e 's|sinix|sysv|'` - ;; - -sinix*) - os=-sysv4 - ;; - -tpf*) - os=-tpf - ;; - -triton*) - os=-sysv3 - ;; - -oss*) - os=-sysv3 - ;; - -svr4) - os=-sysv4 - ;; - -svr3) - os=-sysv3 - ;; - -sysvr4) - os=-sysv4 - ;; - # This must come after -sysvr4. - -sysv*) - ;; - -ose*) - os=-ose - ;; - -es1800*) - os=-ose - ;; - -xenix) - os=-xenix - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - os=-mint - ;; - -aros*) - os=-aros - ;; - -kaos*) - os=-kaos - ;; - -zvmoe) - os=-zvmoe - ;; - -dicos*) - os=-dicos - ;; - -none) - ;; - *) - # Get rid of the `-' at the beginning of $os. - os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 - exit 1 - ;; -esac -else - -# Here we handle the default operating systems that come with various machines. -# The value should be what the vendor currently ships out the door with their -# machine or put another way, the most popular os provided with the machine. - -# Note that if you're going to try to match "-MANUFACTURER" here (say, -# "-sun"), then you have to tell the case statement up towards the top -# that MANUFACTURER isn't an operating system. Otherwise, code above -# will signal an error saying that MANUFACTURER isn't an operating -# system, and we'll never get to this point. - -case $basic_machine in - score-*) - os=-elf - ;; - spu-*) - os=-elf - ;; - *-acorn) - os=-riscix1.2 - ;; - arm*-rebel) - os=-linux - ;; - arm*-semi) - os=-aout - ;; - c4x-* | tic4x-*) - os=-coff - ;; - # This must come before the *-dec entry. - pdp10-*) - os=-tops20 - ;; - pdp11-*) - os=-none - ;; - *-dec | vax-*) - os=-ultrix4.2 - ;; - m68*-apollo) - os=-domain - ;; - i386-sun) - os=-sunos4.0.2 - ;; - m68000-sun) - os=-sunos3 - # This also exists in the configure program, but was not the - # default. - # os=-sunos4 - ;; - m68*-cisco) - os=-aout - ;; - mep-*) - os=-elf - ;; - mips*-cisco) - os=-elf - ;; - mips*-*) - os=-elf - ;; - or32-*) - os=-coff - ;; - *-tti) # must be before sparc entry or we get the wrong os. - os=-sysv3 - ;; - sparc-* | *-sun) - os=-sunos4.1.1 - ;; - *-be) - os=-beos - ;; - *-haiku) - os=-haiku - ;; - *-ibm) - os=-aix - ;; - *-knuth) - os=-mmixware - ;; - *-wec) - os=-proelf - ;; - *-winbond) - os=-proelf - ;; - *-oki) - os=-proelf - ;; - *-hp) - os=-hpux - ;; - *-hitachi) - os=-hiux - ;; - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) - os=-sysv - ;; - *-cbm) - os=-amigaos - ;; - *-dg) - os=-dgux - ;; - *-dolphin) - os=-sysv3 - ;; - m68k-ccur) - os=-rtu - ;; - m88k-omron*) - os=-luna - ;; - *-next ) - os=-nextstep - ;; - *-sequent) - os=-ptx - ;; - *-crds) - os=-unos - ;; - *-ns) - os=-genix - ;; - i370-*) - os=-mvs - ;; - *-next) - os=-nextstep3 - ;; - *-gould) - os=-sysv - ;; - *-highlevel) - os=-bsd - ;; - *-encore) - os=-bsd - ;; - *-sgi) - os=-irix - ;; - *-siemens) - os=-sysv4 - ;; - *-masscomp) - os=-rtu - ;; - f30[01]-fujitsu | f700-fujitsu) - os=-uxpv - ;; - *-rom68k) - os=-coff - ;; - *-*bug) - os=-coff - ;; - *-apple) - os=-macos - ;; - *-atari*) - os=-mint - ;; - *) - os=-none - ;; -esac -fi - -# Here we handle the case where we know the os, and the CPU type, but not the -# manufacturer. We pick the logical manufacturer. -vendor=unknown -case $basic_machine in - *-unknown) - case $os in - -riscix*) - vendor=acorn - ;; - -sunos*) - vendor=sun - ;; - -aix*) - vendor=ibm - ;; - -beos*) - vendor=be - ;; - -hpux*) - vendor=hp - ;; - -mpeix*) - vendor=hp - ;; - -hiux*) - vendor=hitachi - ;; - -unos*) - vendor=crds - ;; - -dgux*) - vendor=dg - ;; - -luna*) - vendor=omron - ;; - -genix*) - vendor=ns - ;; - -mvs* | -opened*) - vendor=ibm - ;; - -os400*) - vendor=ibm - ;; - -ptx*) - vendor=sequent - ;; - -tpf*) - vendor=ibm - ;; - -vxsim* | -vxworks* | -windiss*) - vendor=wrs - ;; - -aux*) - vendor=apple - ;; - -hms*) - vendor=hitachi - ;; - -mpw* | -macos*) - vendor=apple - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - vendor=atari - ;; - -vos*) - vendor=stratus - ;; - esac - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` - ;; -esac - -echo $basic_machine$os -exit - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/Build/source/libs/poppler/poppler-0.12.4/depcomp b/Build/source/libs/poppler/poppler-0.12.4/depcomp deleted file mode 100755 index 53bee03e9c9..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/depcomp +++ /dev/null @@ -1,688 +0,0 @@ -#! /bin/sh -# depcomp - compile a program generating dependencies as side-effects - -scriptversion=2011-04-11-05; # UTC - -# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010, -# 2011 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. - -case $1 in - '') - echo "$0: No command. Try \`$0 --help' for more information." 1>&2 - exit 1; - ;; - -h | --h*) - cat <<\EOF -Usage: depcomp [--help] [--version] PROGRAM [ARGS] - -Run PROGRAMS ARGS to compile a file, generating dependencies -as side-effects. - -Environment variables: - depmode Dependency tracking mode. - source Source file read by `PROGRAMS ARGS'. - object Object file output by `PROGRAMS ARGS'. - DEPDIR directory where to store dependencies. - depfile Dependency file to output. - tmpdepfile Temporary file to use when outputing dependencies. - libtool Whether libtool is used (yes/no). - -Report bugs to <bug-automake@gnu.org>. -EOF - exit $? - ;; - -v | --v*) - echo "depcomp $scriptversion" - exit $? - ;; -esac - -if test -z "$depmode" || test -z "$source" || test -z "$object"; then - echo "depcomp: Variables source, object and depmode must be set" 1>&2 - exit 1 -fi - -# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. -depfile=${depfile-`echo "$object" | - sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} -tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} - -rm -f "$tmpdepfile" - -# Some modes work just like other modes, but use different flags. We -# parameterize here, but still list the modes in the big case below, -# to make depend.m4 easier to write. Note that we *cannot* use a case -# here, because this file can only contain one case statement. -if test "$depmode" = hp; then - # HP compiler uses -M and no extra arg. - gccflag=-M - depmode=gcc -fi - -if test "$depmode" = dashXmstdout; then - # This is just like dashmstdout with a different argument. - dashmflag=-xM - depmode=dashmstdout -fi - -cygpath_u="cygpath -u -f -" -if test "$depmode" = msvcmsys; then - # This is just like msvisualcpp but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u='sed s,\\\\,/,g' - depmode=msvisualcpp -fi - -if test "$depmode" = msvc7msys; then - # This is just like msvc7 but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u='sed s,\\\\,/,g' - depmode=msvc7 -fi - -case "$depmode" in -gcc3) -## gcc 3 implements dependency tracking that does exactly what -## we want. Yay! Note: for some reason libtool 1.4 doesn't like -## it if -MD -MP comes after the -MF stuff. Hmm. -## Unfortunately, FreeBSD c89 acceptance of flags depends upon -## the command line argument order; so add the flags where they -## appear in depend2.am. Note that the slowdown incurred here -## affects only configure: in makefiles, %FASTDEP% shortcuts this. - for arg - do - case $arg in - -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; - *) set fnord "$@" "$arg" ;; - esac - shift # fnord - shift # $arg - done - "$@" - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - mv "$tmpdepfile" "$depfile" - ;; - -gcc) -## There are various ways to get dependency output from gcc. Here's -## why we pick this rather obscure method: -## - Don't want to use -MD because we'd like the dependencies to end -## up in a subdir. Having to rename by hand is ugly. -## (We might end up doing this anyway to support other compilers.) -## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like -## -MM, not -M (despite what the docs say). -## - Using -M directly means running the compiler twice (even worse -## than renaming). - if test -z "$gccflag"; then - gccflag=-MD, - fi - "$@" -Wp,"$gccflag$tmpdepfile" - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - echo "$object : \\" > "$depfile" - alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz -## The second -e expression handles DOS-style file names with drive letters. - sed -e 's/^[^:]*: / /' \ - -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" -## This next piece of magic avoids the `deleted header file' problem. -## The problem is that when a header file which appears in a .P file -## is deleted, the dependency causes make to die (because there is -## typically no way to rebuild the header). We avoid this by adding -## dummy dependencies for each header file. Too bad gcc doesn't do -## this for us directly. - tr ' ' ' -' < "$tmpdepfile" | -## Some versions of gcc put a space before the `:'. On the theory -## that the space means something, we add a space to the output as -## well. hp depmode also adds that space, but also prefixes the VPATH -## to the object. Take care to not repeat it in the output. -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - sed -e 's/^\\$//' -e '/^$/d' -e -e "s|.*$object$||" '/:$/d' \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -hp) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -sgi) - if test "$libtool" = yes; then - "$@" "-Wp,-MDupdate,$tmpdepfile" - else - "$@" -MDupdate "$tmpdepfile" - fi - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - - if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files - echo "$object : \\" > "$depfile" - - # Clip off the initial element (the dependent). Don't try to be - # clever and replace this with sed code, as IRIX sed won't handle - # lines with more than a fixed number of characters (4096 in - # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; - # the IRIX cc adds comments like `#:fec' to the end of the - # dependency line. - tr ' ' ' -' < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ - tr ' -' ' ' >> "$depfile" - echo >> "$depfile" - - # The second pass generates a dummy entry for each header file. - tr ' ' ' -' < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ - >> "$depfile" - else - # The sourcefile does not contain any dependencies, so just - # store a dummy comment line, to avoid errors with the Makefile - # "include basename.Plo" scheme. - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" - ;; - -aix) - # The C for AIX Compiler uses -M and outputs the dependencies - # in a .u file. In older versions, this file always lives in the - # current directory. Also, the AIX compiler puts `$object:' at the - # start of each line; $object doesn't have directory information. - # Version 6 uses the directory in both cases. - dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` - test "x$dir" = "x$object" && dir= - base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` - if test "$libtool" = yes; then - tmpdepfile1=$dir$base.u - tmpdepfile2=$base.u - tmpdepfile3=$dir.libs/$base.u - "$@" -Wc,-M - else - tmpdepfile1=$dir$base.u - tmpdepfile2=$dir$base.u - tmpdepfile3=$dir$base.u - "$@" -M - fi - stat=$? - - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - do - test -f "$tmpdepfile" && break - done - if test -f "$tmpdepfile"; then - # Each line is of the form `foo.o: dependent.h'. - # Do two passes, one to just change these to - # `$object: dependent.h' and one to simply `dependent.h:'. - sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" - # That's a tab and a space in the []. - sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" - else - # The sourcefile does not contain any dependencies, so just - # store a dummy comment line, to avoid errors with the Makefile - # "include basename.Plo" scheme. - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" - ;; - -icc) - # Intel's C compiler understands `-MD -MF file'. However on - # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c - # ICC 7.0 will fill foo.d with something like - # foo.o: sub/foo.c - # foo.o: sub/foo.h - # which is wrong. We want: - # sub/foo.o: sub/foo.c - # sub/foo.o: sub/foo.h - # sub/foo.c: - # sub/foo.h: - # ICC 7.1 will output - # foo.o: sub/foo.c sub/foo.h - # and will wrap long lines using \ : - # foo.o: sub/foo.c ... \ - # sub/foo.h ... \ - # ... - - "$@" -MD -MF "$tmpdepfile" - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - # Each line is of the form `foo.o: dependent.h', - # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. - # Do two passes, one to just change these to - # `$object: dependent.h' and one to simply `dependent.h:'. - sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" - # Some versions of the HPUX 10.20 sed can't process this invocation - # correctly. Breaking it into two sed invocations is a workaround. - sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | - sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -hp2) - # The "hp" stanza above does not work with aCC (C++) and HP's ia64 - # compilers, which have integrated preprocessors. The correct option - # to use with these is +Maked; it writes dependencies to a file named - # 'foo.d', which lands next to the object file, wherever that - # happens to be. - # Much of this is similar to the tru64 case; see comments there. - dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` - test "x$dir" = "x$object" && dir= - base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` - if test "$libtool" = yes; then - tmpdepfile1=$dir$base.d - tmpdepfile2=$dir.libs/$base.d - "$@" -Wc,+Maked - else - tmpdepfile1=$dir$base.d - tmpdepfile2=$dir$base.d - "$@" +Maked - fi - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile1" "$tmpdepfile2" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" - do - test -f "$tmpdepfile" && break - done - if test -f "$tmpdepfile"; then - sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" - # Add `dependent.h:' lines. - sed -ne '2,${ - s/^ *// - s/ \\*$// - s/$/:/ - p - }' "$tmpdepfile" >> "$depfile" - else - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" "$tmpdepfile2" - ;; - -tru64) - # The Tru64 compiler uses -MD to generate dependencies as a side - # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. - # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put - # dependencies in `foo.d' instead, so we check for that too. - # Subdirectories are respected. - dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` - test "x$dir" = "x$object" && dir= - base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` - - if test "$libtool" = yes; then - # With Tru64 cc, shared objects can also be used to make a - # static library. This mechanism is used in libtool 1.4 series to - # handle both shared and static libraries in a single compilation. - # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. - # - # With libtool 1.5 this exception was removed, and libtool now - # generates 2 separate objects for the 2 libraries. These two - # compilations output dependencies in $dir.libs/$base.o.d and - # in $dir$base.o.d. We have to check for both files, because - # one of the two compilations can be disabled. We should prefer - # $dir$base.o.d over $dir.libs/$base.o.d because the latter is - # automatically cleaned when .libs/ is deleted, while ignoring - # the former would cause a distcleancheck panic. - tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 - tmpdepfile2=$dir$base.o.d # libtool 1.5 - tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 - tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 - "$@" -Wc,-MD - else - tmpdepfile1=$dir$base.o.d - tmpdepfile2=$dir$base.d - tmpdepfile3=$dir$base.d - tmpdepfile4=$dir$base.d - "$@" -MD - fi - - stat=$? - if test $stat -eq 0; then : - else - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" - do - test -f "$tmpdepfile" && break - done - if test -f "$tmpdepfile"; then - sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" - # That's a tab and a space in the []. - sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" - else - echo "#dummy" > "$depfile" - fi - rm -f "$tmpdepfile" - ;; - -msvc7) - if test "$libtool" = yes; then - showIncludes=-Wc,-showIncludes - else - showIncludes=-showIncludes - fi - "$@" $showIncludes > "$tmpdepfile" - stat=$? - grep -v '^Note: including file: ' "$tmpdepfile" - if test "$stat" = 0; then : - else - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - echo "$object : \\" > "$depfile" - # The first sed program below extracts the file names and escapes - # backslashes for cygpath. The second sed program outputs the file - # name when reading, but also accumulates all include files in the - # hold buffer in order to output them again at the end. This only - # works with sed implementations that can handle large buffers. - sed < "$tmpdepfile" -n ' -/^Note: including file: *\(.*\)/ { - s//\1/ - s/\\/\\\\/g - p -}' | $cygpath_u | sort -u | sed -n ' -s/ /\\ /g -s/\(.*\)/ \1 \\/p -s/.\(.*\) \\/\1:/ -H -$ { - s/.*/ / - G - p -}' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvc7msys) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -#nosideeffect) - # This comment above is used by automake to tell side-effect - # dependency tracking mechanisms from slower ones. - -dashmstdout) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout, regardless of -o. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - # Remove `-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - test -z "$dashmflag" && dashmflag=-M - # Require at least two characters before searching for `:' - # in the target name. This is to cope with DOS-style filenames: - # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. - "$@" $dashmflag | - sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" - rm -f "$depfile" - cat < "$tmpdepfile" > "$depfile" - tr ' ' ' -' < "$tmpdepfile" | \ -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -dashXmstdout) - # This case only exists to satisfy depend.m4. It is never actually - # run, as this mode is specially recognized in the preamble. - exit 1 - ;; - -makedepend) - "$@" || exit $? - # Remove any Libtool call - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - # X makedepend - shift - cleared=no eat=no - for arg - do - case $cleared in - no) - set ""; shift - cleared=yes ;; - esac - if test $eat = yes; then - eat=no - continue - fi - case "$arg" in - -D*|-I*) - set fnord "$@" "$arg"; shift ;; - # Strip any option that makedepend may not understand. Remove - # the object too, otherwise makedepend will parse it as a source file. - -arch) - eat=yes ;; - -*|$object) - ;; - *) - set fnord "$@" "$arg"; shift ;; - esac - done - obj_suffix=`echo "$object" | sed 's/^.*\././'` - touch "$tmpdepfile" - ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" - rm -f "$depfile" - # makedepend may prepend the VPATH from the source file name to the object. - # No need to regex-escape $object, excess matching of '.' is harmless. - sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" - sed '1,2d' "$tmpdepfile" | tr ' ' ' -' | \ -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" "$tmpdepfile".bak - ;; - -cpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - # Remove `-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - "$@" -E | - sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ - -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | - sed '$ s: \\$::' > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - cat < "$tmpdepfile" >> "$depfile" - sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvisualcpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - IFS=" " - for arg - do - case "$arg" in - -o) - shift - ;; - $object) - shift - ;; - "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") - set fnord "$@" - shift - shift - ;; - *) - set fnord "$@" "$arg" - shift - shift - ;; - esac - done - "$@" -E 2>/dev/null | - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" - echo " " >> "$depfile" - sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvcmsys) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -none) - exec "$@" - ;; - -*) - echo "Unknown depmode $depmode" 1>&2 - exit 1 - ;; -esac - -exit 0 - -# Local Variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/CMakeLists.txt b/Build/source/libs/poppler/poppler-0.12.4/glib/CMakeLists.txt deleted file mode 100644 index 6ed95230104..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/CMakeLists.txt +++ /dev/null @@ -1,117 +0,0 @@ -add_definitions(-DG_LOG_DOMAIN=\"Poppler\" ${GLIB2_CFLAGS}) - -include_directories( - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_BINARY_DIR} -) -if (CAIRO_FOUND) - include_directories(${CAIRO_INCLUDES}) - set (CAIRO_FEATURE "#define POPPLER_HAS_CAIRO 1") - add_definitions(${CAIRO_CFLAGS}) -else (CAIRO_FOUND) - set (CAIRO_FEATURE "#undef POPPLER_HAS_CAIRO") -endif (CAIRO_FOUND) - -if (GDK_FOUND) - add_definitions(${GDK2_CFLAGS}) -endif (GDK_FOUND) - -configure_file(poppler-features.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/poppler-features.h @ONLY) - -if (GTK_FOUND) - add_subdirectory(demo) -endif (GTK_FOUND) - -set(poppler_glib_public_headers - poppler-action.h - poppler-date.h - poppler-document.h - poppler-page.h - poppler-attachment.h - poppler-form-field.h - poppler-annot.h - poppler.h -) - -find_program(GLIB2_MKENUMS glib-mkenums) - -add_custom_command( - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/poppler-enums.h - COMMAND ${GLIB2_MKENUMS} - ARGS - --fhead \"\#ifndef __POPPLER_TYPE_ENUMS_H__\\n\" - --fhead \"\#define __POPPLER_TYPE_ENUMS_H__ 1\\n\\n\" - --fhead \"\#include <glib-object.h>\\n\\n\" - --fhead \"G_BEGIN_DECLS\\n\\n\" - --ftail \"G_END_DECLS\\n\\n\" - --ftail \"\#endif /* __POPPLER_TYPE_ENUMS_H__ */\\n\" - --fprod \"\\n/* --- @filename@ --- */\" - --eprod \"\#define POPPLER_TYPE_@ENUMSHORT@ \(@enum_name@_get_type\(\)\)\\n\" - --eprod \"GType @enum_name@_get_type \(void\) G_GNUC_CONST\;\\n\" - ${poppler_glib_public_headers} > ${CMAKE_CURRENT_BINARY_DIR}/poppler-enums.h - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - DEPENDS ${poppler_glib_public_headers} -) - -add_custom_command( - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/poppler-enums.c - COMMAND ${GLIB2_MKENUMS} - ARGS - --fhead \"\#include \\"poppler-enums.h\\"\\n\\n\" - --fprod \"\\n/* enumerations from \\"@filename@\\" */\" - --fprod \"\\n\#include \\"@filename@\\"\" - --vhead \"static const G@Type@Value _@enum_name@_values[] = {\" - --vprod \" { @VALUENAME@, \\"@VALUENAME@\\", \\"@valuenick@\\" },\" - --vtail \" { 0, NULL, NULL }\\n}\;\\n\\n\" - --vtail \"GType\\n@enum_name@_get_type \(void\)\\n{\\n\" - --vtail \" static GType type = 0\;\\n\\n\" - --vtail \" if \(G_UNLIKELY \(type == 0\)\)\\n\" - --vtail \" type = g_\@type\@_register_static \(\\"@EnumName@\\", _@enum_name@_values\)\;\\n\\n\" - --vtail \" return type\;\\n}\\n\\n\" - ${poppler_glib_public_headers} > ${CMAKE_CURRENT_BINARY_DIR}/poppler-enums.c - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - DEPENDS ${poppler_glib_public_headers} ${CMAKE_CURRENT_BINARY_DIR}/poppler-enums.h -) - - -set(poppler_glib_SRCS - poppler-action.cc - poppler-date.cc - poppler-document.cc - poppler-page.cc - poppler-attachment.cc - poppler-form-field.cc - poppler-annot.cc - poppler-layer.cc - poppler.cc - ${CMAKE_CURRENT_BINARY_DIR}/poppler-enums.c -) -if (CAIRO_FOUND) - set(poppler_glib_SRCS ${poppler_glib_SRCS} - ${CMAKE_SOURCE_DIR}/poppler/CairoFontEngine.cc - ${CMAKE_SOURCE_DIR}/poppler/CairoOutputDev.cc - ) -endif (CAIRO_FOUND) -add_library(poppler-glib SHARED ${poppler_glib_SRCS}) -set_target_properties(poppler-glib PROPERTIES VERSION 4.0.0 SOVERSION 4) -target_link_libraries(poppler-glib poppler ${GLIB2_LIBRARIES}) -if (CAIRO_FOUND) - target_link_libraries(poppler-glib ${CAIRO_LIBRARIES}) -endif (CAIRO_FOUND) -install(TARGETS poppler-glib RUNTIME DESTINATION bin LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX}) - -install(FILES - ${poppler_glib_public_headers} - ${CMAKE_CURRENT_BINARY_DIR}/poppler-enums.h - ${CMAKE_CURRENT_BINARY_DIR}/poppler-features.h - DESTINATION include/poppler/glib) - - -if (GDK_FOUND) - set(test_poppler_glib_SRCS - test-poppler-glib.cc - ) - poppler_add_test(test-poppler-glib BUILD_GTK_TESTS ${test_poppler_glib_SRCS}) - target_link_libraries(test-poppler-glib poppler-glib ${GDK2_LIBRARIES}) -endif (GDK_FOUND) - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/Makefile.am b/Build/source/libs/poppler/poppler-0.12.4/glib/Makefile.am deleted file mode 100644 index 3c065fe267a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/Makefile.am +++ /dev/null @@ -1,110 +0,0 @@ -if BUILD_CAIRO_OUTPUT - -cairo_includes = \ - $(CAIRO_CFLAGS) - -cairo_libs = \ - $(top_builddir)/poppler/libpoppler-cairo.la \ - $(CAIRO_LIBS) - -endif - -SUBDIRS = . reference demo -INCLUDES = \ - -DG_LOG_DOMAIN=\"Poppler\" \ - -I$(top_srcdir) \ - -I$(top_srcdir)/poppler \ - $(cairo_includes) \ - $(POPPLER_GLIB_CFLAGS) \ - $(GDK_CFLAGS) \ - $(FREETYPE_CFLAGS) \ - $(FONTCONFIG_CFLAGS) \ - $(cairo_includes) \ - $(POPPLER_GLIB_DISABLE_DEPRECATED) \ - $(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES) - -stamp_files = stamp-poppler-enums.h - -poppler-enums.h: stamp-poppler-enums.h - @true - -stamp-poppler-enums.h: poppler-enums.h.template $(poppler_glib_public_headers) - $(AM_V_GEN) $(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbh \ - && (cmp -s xgen-etbh poppler-enums.h || cp xgen-etbh poppler-enums.h ) \ - && rm -f xgen-etbh \ - && echo timestamp > $(@F) - -poppler-enums.c: poppler-enums.c.template $(poppler_glib_public_headers) - $(AM_V_GEN) $(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbc \ - && (cmp -s xgen-etbc poppler-enums.c || cp xgen-etbc poppler-enums.c ) \ - && rm -f xgen-etbc - -EXTRA_DIST = \ - poppler-enums.h.template \ - poppler-enums.c.template - -poppler_glib_public_headers = \ - poppler-action.h \ - poppler-date.h \ - poppler-document.h \ - poppler-page.h \ - poppler-attachment.h \ - poppler-form-field.h \ - poppler-annot.h \ - poppler-layer.h \ - poppler.h - -poppler_glib_includedir = $(includedir)/poppler/glib - -poppler_glib_include_HEADERS = \ - $(poppler_glib_public_headers) \ - poppler-enums.h \ - poppler-features.h - -lib_LTLIBRARIES = libpoppler-glib.la -libpoppler_glib_la_SOURCES = \ - $(BUILT_SOURCES) \ - poppler-action.cc \ - poppler-date.cc \ - poppler-document.cc \ - poppler-page.cc \ - poppler-attachment.cc \ - poppler-form-field.cc \ - poppler-annot.cc \ - poppler-layer.cc \ - poppler.cc \ - poppler-private.h - -libpoppler_glib_la_LIBADD = \ - $(top_builddir)/poppler/libpoppler.la \ - $(POPPLER_GLIB_LIBS) \ - $(GDK_LIBS) \ - $(FREETYPE_LIBS) \ - $(FONTCONFIG_LIBS) \ - $(cairo_libs) - -libpoppler_glib_la_LDFLAGS = -version-info 4:0:0 @create_shared_lib@ @auto_import_flags@ - -if BUILD_WITH_GDK -noinst_PROGRAMS = test-poppler-glib - -test_poppler_glib_SOURCES = \ - test-poppler-glib.cc - -test_poppler_glib_LDADD = \ - $(top_builddir)/poppler/libpoppler.la \ - libpoppler-glib.la \ - $(POPPLER_GLIB_LIBS) \ - $(GDK_LIBS) \ - $(FREETYPE_LIBS) \ - $(cairo_libs) -endif - -BUILT_SOURCES = \ - poppler-enums.c \ - poppler-enums.h \ - poppler-features.h - -CLEANFILES = $(BUILT_SOURCES) $(stamp_files) -DISTCLEANFILES = $(BUILT_SOURCES) $(stamp_files) -MAINTAINERCLEANFILES = $(BUILT_SOURCES) $(stamp_files) diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/Makefile.in b/Build/source/libs/poppler/poppler-0.12.4/glib/Makefile.in deleted file mode 100644 index 256d8c927dd..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/Makefile.in +++ /dev/null @@ -1,978 +0,0 @@ -# Makefile.in generated by automake 1.11 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - - - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -@BUILD_WITH_GDK_TRUE@noinst_PROGRAMS = test-poppler-glib$(EXEEXT) -subdir = glib -DIST_COMMON = $(poppler_glib_include_HEADERS) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(srcdir)/poppler-features.h.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ - $(top_srcdir)/m4/define-dir.m4 $(top_srcdir)/m4/gtk-doc.m4 \ - $(top_srcdir)/m4/libjpeg.m4 $(top_srcdir)/m4/libpng.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/qt.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h \ - $(top_builddir)/poppler/poppler-config.h -CONFIG_CLEAN_FILES = poppler-features.h -CONFIG_CLEAN_VPATH_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__installdirs = "$(DESTDIR)$(libdir)" \ - "$(DESTDIR)$(poppler_glib_includedir)" -LTLIBRARIES = $(lib_LTLIBRARIES) -am__DEPENDENCIES_1 = -@BUILD_CAIRO_OUTPUT_TRUE@am__DEPENDENCIES_2 = $(top_builddir)/poppler/libpoppler-cairo.la \ -@BUILD_CAIRO_OUTPUT_TRUE@ $(am__DEPENDENCIES_1) -libpoppler_glib_la_DEPENDENCIES = \ - $(top_builddir)/poppler/libpoppler.la $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) -am__objects_1 = poppler-enums.lo -am_libpoppler_glib_la_OBJECTS = $(am__objects_1) poppler-action.lo \ - poppler-date.lo poppler-document.lo poppler-page.lo \ - poppler-attachment.lo poppler-form-field.lo poppler-annot.lo \ - poppler-layer.lo poppler.lo -libpoppler_glib_la_OBJECTS = $(am_libpoppler_glib_la_OBJECTS) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) -am__v_lt_0 = --silent -libpoppler_glib_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ - $(AM_CXXFLAGS) $(CXXFLAGS) $(libpoppler_glib_la_LDFLAGS) \ - $(LDFLAGS) -o $@ -PROGRAMS = $(noinst_PROGRAMS) -am__test_poppler_glib_SOURCES_DIST = test-poppler-glib.cc -@BUILD_WITH_GDK_TRUE@am_test_poppler_glib_OBJECTS = \ -@BUILD_WITH_GDK_TRUE@ test-poppler-glib.$(OBJEXT) -test_poppler_glib_OBJECTS = $(am_test_poppler_glib_OBJECTS) -@BUILD_WITH_GDK_TRUE@test_poppler_glib_DEPENDENCIES = \ -@BUILD_WITH_GDK_TRUE@ $(top_builddir)/poppler/libpoppler.la \ -@BUILD_WITH_GDK_TRUE@ libpoppler-glib.la $(am__DEPENDENCIES_1) \ -@BUILD_WITH_GDK_TRUE@ $(am__DEPENDENCIES_1) \ -@BUILD_WITH_GDK_TRUE@ $(am__DEPENDENCIES_1) \ -@BUILD_WITH_GDK_TRUE@ $(am__DEPENDENCIES_2) -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/poppler -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_$(V)) -am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) -am__v_CC_0 = @echo " CC " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_$(V)) -am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CCLD_0 = @echo " CCLD " $@; -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -AM_V_CXX = $(am__v_CXX_$(V)) -am__v_CXX_ = $(am__v_CXX_$(AM_DEFAULT_VERBOSITY)) -am__v_CXX_0 = @echo " CXX " $@; -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CXXLD = $(am__v_CXXLD_$(V)) -am__v_CXXLD_ = $(am__v_CXXLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CXXLD_0 = @echo " CXXLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -SOURCES = $(libpoppler_glib_la_SOURCES) $(test_poppler_glib_SOURCES) -DIST_SOURCES = $(libpoppler_glib_la_SOURCES) \ - $(am__test_poppler_glib_SOURCES_DIST) -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-dvi-recursive install-exec-recursive \ - install-html-recursive install-info-recursive \ - install-pdf-recursive install-ps-recursive install-recursive \ - installcheck-recursive installdirs-recursive pdf-recursive \ - ps-recursive uninstall-recursive -HEADERS = $(poppler_glib_include_HEADERS) -RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ - distclean-recursive maintainer-clean-recursive -AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ - $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ - distdir -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -am__relativize = \ - dir0=`pwd`; \ - sed_first='s,^\([^/]*\)/.*$$,\1,'; \ - sed_rest='s,^[^/]*/*,,'; \ - sed_last='s,^.*/\([^/]*\)$$,\1,'; \ - sed_butlast='s,/*[^/]*$$,,'; \ - while test -n "$$dir1"; do \ - first=`echo "$$dir1" | sed -e "$$sed_first"`; \ - if test "$$first" != "."; then \ - if test "$$first" = ".."; then \ - dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ - dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ - else \ - first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ - if test "$$first2" = "$$first"; then \ - dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ - else \ - dir2="../$$dir2"; \ - fi; \ - dir0="$$dir0"/"$$first"; \ - fi; \ - fi; \ - dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ - done; \ - reldir="$$dir2" -ABIWORD_CFLAGS = @ABIWORD_CFLAGS@ -ABIWORD_LIBS = @ABIWORD_LIBS@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAIRO_CFLAGS = @CAIRO_CFLAGS@ -CAIRO_FEATURE = @CAIRO_FEATURE@ -CAIRO_LIBS = @CAIRO_LIBS@ -CAIRO_REQ = @CAIRO_REQ@ -CAIRO_VERSION = @CAIRO_VERSION@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ -FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ -FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ -FREETYPE_CONFIG = @FREETYPE_CONFIG@ -FREETYPE_LIBS = @FREETYPE_LIBS@ -GDK_CFLAGS = @GDK_CFLAGS@ -GDK_FEATURE = @GDK_FEATURE@ -GDK_LIBS = @GDK_LIBS@ -GLIB_MKENUMS = @GLIB_MKENUMS@ -GREP = @GREP@ -GTKDOC_CHECK = @GTKDOC_CHECK@ -GTK_TEST_CFLAGS = @GTK_TEST_CFLAGS@ -GTK_TEST_LIBS = @GTK_TEST_LIBS@ -HTML_DIR = @HTML_DIR@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LCMS_CFLAGS = @LCMS_CFLAGS@ -LCMS_LIBS = @LCMS_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBJPEG_LIBS = @LIBJPEG_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOPENJPEG_LIBS = @LIBOPENJPEG_LIBS@ -LIBPNG_LIBS = @LIBPNG_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -MOCQT4 = @MOCQT4@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PC_REQUIRES = @PC_REQUIRES@ -PC_REQUIRES_PRIVATE = @PC_REQUIRES_PRIVATE@ -PKG_CONFIG = @PKG_CONFIG@ -POPPLER_DATADIR = @POPPLER_DATADIR@ -POPPLER_GLIB_CFLAGS = @POPPLER_GLIB_CFLAGS@ -POPPLER_GLIB_DISABLE_DEPRECATED = @POPPLER_GLIB_DISABLE_DEPRECATED@ -POPPLER_GLIB_DISABLE_SINGLE_INCLUDES = @POPPLER_GLIB_DISABLE_SINGLE_INCLUDES@ -POPPLER_GLIB_LIBS = @POPPLER_GLIB_LIBS@ -POPPLER_MAJOR_VERSION = @POPPLER_MAJOR_VERSION@ -POPPLER_MICRO_VERSION = @POPPLER_MICRO_VERSION@ -POPPLER_MINOR_VERSION = @POPPLER_MINOR_VERSION@ -POPPLER_QT4_CFLAGS = @POPPLER_QT4_CFLAGS@ -POPPLER_QT4_CXXFLAGS = @POPPLER_QT4_CXXFLAGS@ -POPPLER_QT4_LIBS = @POPPLER_QT4_LIBS@ -POPPLER_QT4_TEST_CFLAGS = @POPPLER_QT4_TEST_CFLAGS@ -POPPLER_QT4_TEST_LIBS = @POPPLER_QT4_TEST_LIBS@ -POPPLER_QT_CXXFLAGS = @POPPLER_QT_CXXFLAGS@ -POPPLER_QT_LIBS = @POPPLER_QT_LIBS@ -PTHREAD_CC = @PTHREAD_CC@ -PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ -PTHREAD_LIBS = @PTHREAD_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZLIB_LIBS = @ZLIB_LIBS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -acx_pthread_config = @acx_pthread_config@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -auto_import_flags = @auto_import_flags@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -create_shared_lib = @create_shared_lib@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -win32_libs = @win32_libs@ -@BUILD_CAIRO_OUTPUT_TRUE@cairo_includes = \ -@BUILD_CAIRO_OUTPUT_TRUE@ $(CAIRO_CFLAGS) - -@BUILD_CAIRO_OUTPUT_TRUE@cairo_libs = \ -@BUILD_CAIRO_OUTPUT_TRUE@ $(top_builddir)/poppler/libpoppler-cairo.la \ -@BUILD_CAIRO_OUTPUT_TRUE@ $(CAIRO_LIBS) - -SUBDIRS = . reference demo -INCLUDES = \ - -DG_LOG_DOMAIN=\"Poppler\" \ - -I$(top_srcdir) \ - -I$(top_srcdir)/poppler \ - $(cairo_includes) \ - $(POPPLER_GLIB_CFLAGS) \ - $(GDK_CFLAGS) \ - $(FREETYPE_CFLAGS) \ - $(FONTCONFIG_CFLAGS) \ - $(cairo_includes) \ - $(POPPLER_GLIB_DISABLE_DEPRECATED) \ - $(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES) - -stamp_files = stamp-poppler-enums.h -EXTRA_DIST = \ - poppler-enums.h.template \ - poppler-enums.c.template - -poppler_glib_public_headers = \ - poppler-action.h \ - poppler-date.h \ - poppler-document.h \ - poppler-page.h \ - poppler-attachment.h \ - poppler-form-field.h \ - poppler-annot.h \ - poppler-layer.h \ - poppler.h - -poppler_glib_includedir = $(includedir)/poppler/glib -poppler_glib_include_HEADERS = \ - $(poppler_glib_public_headers) \ - poppler-enums.h \ - poppler-features.h - -lib_LTLIBRARIES = libpoppler-glib.la -libpoppler_glib_la_SOURCES = \ - $(BUILT_SOURCES) \ - poppler-action.cc \ - poppler-date.cc \ - poppler-document.cc \ - poppler-page.cc \ - poppler-attachment.cc \ - poppler-form-field.cc \ - poppler-annot.cc \ - poppler-layer.cc \ - poppler.cc \ - poppler-private.h - -libpoppler_glib_la_LIBADD = \ - $(top_builddir)/poppler/libpoppler.la \ - $(POPPLER_GLIB_LIBS) \ - $(GDK_LIBS) \ - $(FREETYPE_LIBS) \ - $(FONTCONFIG_LIBS) \ - $(cairo_libs) - -libpoppler_glib_la_LDFLAGS = -version-info 4:0:0 @create_shared_lib@ @auto_import_flags@ -@BUILD_WITH_GDK_TRUE@test_poppler_glib_SOURCES = \ -@BUILD_WITH_GDK_TRUE@ test-poppler-glib.cc - -@BUILD_WITH_GDK_TRUE@test_poppler_glib_LDADD = \ -@BUILD_WITH_GDK_TRUE@ $(top_builddir)/poppler/libpoppler.la \ -@BUILD_WITH_GDK_TRUE@ libpoppler-glib.la \ -@BUILD_WITH_GDK_TRUE@ $(POPPLER_GLIB_LIBS) \ -@BUILD_WITH_GDK_TRUE@ $(GDK_LIBS) \ -@BUILD_WITH_GDK_TRUE@ $(FREETYPE_LIBS) \ -@BUILD_WITH_GDK_TRUE@ $(cairo_libs) - -BUILT_SOURCES = \ - poppler-enums.c \ - poppler-enums.h \ - poppler-features.h - -CLEANFILES = $(BUILT_SOURCES) $(stamp_files) -DISTCLEANFILES = $(BUILT_SOURCES) $(stamp_files) -MAINTAINERCLEANFILES = $(BUILT_SOURCES) $(stamp_files) -all: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) all-recursive - -.SUFFIXES: -.SUFFIXES: .c .cc .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign glib/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign glib/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): -poppler-features.h: $(top_builddir)/config.status $(srcdir)/poppler-features.h.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -install-libLTLIBRARIES: $(lib_LTLIBRARIES) - @$(NORMAL_INSTALL) - test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ - list2=; for p in $$list; do \ - if test -f $$p; then \ - list2="$$list2 $$p"; \ - else :; fi; \ - done; \ - test -z "$$list2" || { \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ - } - -uninstall-libLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ - done - -clean-libLTLIBRARIES: - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -libpoppler-glib.la: $(libpoppler_glib_la_OBJECTS) $(libpoppler_glib_la_DEPENDENCIES) - $(AM_V_CXXLD)$(libpoppler_glib_la_LINK) -rpath $(libdir) $(libpoppler_glib_la_OBJECTS) $(libpoppler_glib_la_LIBADD) $(LIBS) - -clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list -test-poppler-glib$(EXEEXT): $(test_poppler_glib_OBJECTS) $(test_poppler_glib_DEPENDENCIES) - @rm -f test-poppler-glib$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(test_poppler_glib_OBJECTS) $(test_poppler_glib_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-action.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-annot.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-attachment.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-date.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-document.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-enums.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-form-field.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-layer.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-page.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-poppler-glib.Po@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< - -.cc.o: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< - -.cc.obj: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.cc.lo: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-poppler_glib_includeHEADERS: $(poppler_glib_include_HEADERS) - @$(NORMAL_INSTALL) - test -z "$(poppler_glib_includedir)" || $(MKDIR_P) "$(DESTDIR)$(poppler_glib_includedir)" - @list='$(poppler_glib_include_HEADERS)'; test -n "$(poppler_glib_includedir)" || list=; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(poppler_glib_includedir)'"; \ - $(INSTALL_HEADER) $$files "$(DESTDIR)$(poppler_glib_includedir)" || exit $$?; \ - done - -uninstall-poppler_glib_includeHEADERS: - @$(NORMAL_UNINSTALL) - @list='$(poppler_glib_include_HEADERS)'; test -n "$(poppler_glib_includedir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '$(DESTDIR)$(poppler_glib_includedir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(poppler_glib_includedir)" && rm -f $$files - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -$(RECURSIVE_CLEAN_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done - @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(MKDIR_P) "$(distdir)/$$subdir" \ - || exit 1; \ - fi; \ - done - @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ - $(am__relativize); \ - new_distdir=$$reldir; \ - dir1=$$subdir; dir2="$(top_distdir)"; \ - $(am__relativize); \ - new_top_distdir=$$reldir; \ - echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ - echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ - ($(am__cd) $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$new_top_distdir" \ - distdir="$$new_distdir" \ - am__remove_distdir=: \ - am__skip_length_check=: \ - am__skip_mode_fix=: \ - distdir) \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) check-recursive -all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) -installdirs: installdirs-recursive -installdirs-am: - for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(poppler_glib_includedir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) -clean: clean-recursive - -clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ - clean-noinstPROGRAMS mostlyclean-am - -distclean: distclean-recursive - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -html-am: - -info: info-recursive - -info-am: - -install-data-am: install-poppler_glib_includeHEADERS - -install-dvi: install-dvi-recursive - -install-dvi-am: - -install-exec-am: install-libLTLIBRARIES - -install-html: install-html-recursive - -install-html-am: - -install-info: install-info-recursive - -install-info-am: - -install-man: - -install-pdf: install-pdf-recursive - -install-pdf-am: - -install-ps: install-ps-recursive - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-libLTLIBRARIES \ - uninstall-poppler_glib_includeHEADERS - -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check \ - ctags-recursive install install-am install-strip \ - tags-recursive - -.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ - all all-am check check-am clean clean-generic \ - clean-libLTLIBRARIES clean-libtool clean-noinstPROGRAMS ctags \ - ctags-recursive distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-libLTLIBRARIES install-man install-pdf \ - install-pdf-am install-poppler_glib_includeHEADERS install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-recursive uninstall uninstall-am \ - uninstall-libLTLIBRARIES uninstall-poppler_glib_includeHEADERS - - -poppler-enums.h: stamp-poppler-enums.h - @true - -stamp-poppler-enums.h: poppler-enums.h.template $(poppler_glib_public_headers) - $(AM_V_GEN) $(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbh \ - && (cmp -s xgen-etbh poppler-enums.h || cp xgen-etbh poppler-enums.h ) \ - && rm -f xgen-etbh \ - && echo timestamp > $(@F) - -poppler-enums.c: poppler-enums.c.template $(poppler_glib_public_headers) - $(AM_V_GEN) $(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbc \ - && (cmp -s xgen-etbc poppler-enums.c || cp xgen-etbc poppler-enums.c ) \ - && rm -f xgen-etbc - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/CMakeLists.txt b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/CMakeLists.txt deleted file mode 100644 index 2187e7900cf..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ - -add_definitions(${GTK2_CFLAGS}) - -set(poppler_glib_demo_SRCS - main.c - find.c - fonts.c - forms.c - info.cc - images.c - links.c - outline.c - page.c - render.c - text.c - transitions.c - utils.c - annots.c - attachments.c - layers.c -) -poppler_add_test(poppler-glib-demo BUILD_GTK_TESTS ${poppler_glib_demo_SRCS}) -target_link_libraries(poppler-glib-demo poppler-glib ${GTK2_LIBRARIES}) diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/Makefile.am b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/Makefile.am deleted file mode 100644 index 4c301de525e..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/Makefile.am +++ /dev/null @@ -1,51 +0,0 @@ -INCLUDES = \ - -I$(top_srcdir)/glib \ - -I$(top_builddir)/glib \ - $(GTK_TEST_CFLAGS) \ - $(POPPLER_GLIB_DISABLE_DEPRECATED) \ - -DGTK_DISABLE_DEPRECATED \ - $(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES) - -AM_LDFLAGS = @auto_import_flags@ - -if BUILD_GTK_TEST -noinst_PROGRAMS = poppler-glib-demo -endif - -poppler_glib_demo_SOURCES = \ - main.c \ - annots.h \ - annots.c \ - attachments.c \ - attachments.h \ - find.h \ - find.c \ - fonts.h \ - fonts.c \ - forms.h \ - forms.c \ - images.h \ - images.c \ - info.h \ - info.cc \ - layers.h \ - layers.c \ - links.h \ - links.c \ - outline.h \ - outline.c \ - page.h \ - page.c \ - render.h \ - render.c \ - text.h \ - text.c \ - transitions.h \ - transitions.c \ - utils.h \ - utils.c - -LDADD = \ - $(top_builddir)/glib/libpoppler-glib.la \ - $(top_builddir)/poppler/libpoppler.la \ - $(GTK_TEST_LIBS) diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/Makefile.in b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/Makefile.in deleted file mode 100644 index b75e5766ae5..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/Makefile.in +++ /dev/null @@ -1,665 +0,0 @@ -# Makefile.in generated by automake 1.11 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -@BUILD_GTK_TEST_TRUE@noinst_PROGRAMS = poppler-glib-demo$(EXEEXT) -subdir = glib/demo -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ - $(top_srcdir)/m4/define-dir.m4 $(top_srcdir)/m4/gtk-doc.m4 \ - $(top_srcdir)/m4/libjpeg.m4 $(top_srcdir)/m4/libpng.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/qt.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h \ - $(top_builddir)/poppler/poppler-config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -PROGRAMS = $(noinst_PROGRAMS) -am_poppler_glib_demo_OBJECTS = main.$(OBJEXT) annots.$(OBJEXT) \ - attachments.$(OBJEXT) find.$(OBJEXT) fonts.$(OBJEXT) \ - forms.$(OBJEXT) images.$(OBJEXT) info.$(OBJEXT) \ - layers.$(OBJEXT) links.$(OBJEXT) outline.$(OBJEXT) \ - page.$(OBJEXT) render.$(OBJEXT) text.$(OBJEXT) \ - transitions.$(OBJEXT) utils.$(OBJEXT) -poppler_glib_demo_OBJECTS = $(am_poppler_glib_demo_OBJECTS) -poppler_glib_demo_LDADD = $(LDADD) -am__DEPENDENCIES_1 = -poppler_glib_demo_DEPENDENCIES = \ - $(top_builddir)/glib/libpoppler-glib.la \ - $(top_builddir)/poppler/libpoppler.la $(am__DEPENDENCIES_1) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) -am__v_lt_0 = --silent -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/poppler -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_$(V)) -am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) -am__v_CC_0 = @echo " CC " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_$(V)) -am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CCLD_0 = @echo " CCLD " $@; -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -AM_V_CXX = $(am__v_CXX_$(V)) -am__v_CXX_ = $(am__v_CXX_$(AM_DEFAULT_VERBOSITY)) -am__v_CXX_0 = @echo " CXX " $@; -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CXXLD = $(am__v_CXXLD_$(V)) -am__v_CXXLD_ = $(am__v_CXXLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CXXLD_0 = @echo " CXXLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -SOURCES = $(poppler_glib_demo_SOURCES) -DIST_SOURCES = $(poppler_glib_demo_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ABIWORD_CFLAGS = @ABIWORD_CFLAGS@ -ABIWORD_LIBS = @ABIWORD_LIBS@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAIRO_CFLAGS = @CAIRO_CFLAGS@ -CAIRO_FEATURE = @CAIRO_FEATURE@ -CAIRO_LIBS = @CAIRO_LIBS@ -CAIRO_REQ = @CAIRO_REQ@ -CAIRO_VERSION = @CAIRO_VERSION@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ -FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ -FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ -FREETYPE_CONFIG = @FREETYPE_CONFIG@ -FREETYPE_LIBS = @FREETYPE_LIBS@ -GDK_CFLAGS = @GDK_CFLAGS@ -GDK_FEATURE = @GDK_FEATURE@ -GDK_LIBS = @GDK_LIBS@ -GLIB_MKENUMS = @GLIB_MKENUMS@ -GREP = @GREP@ -GTKDOC_CHECK = @GTKDOC_CHECK@ -GTK_TEST_CFLAGS = @GTK_TEST_CFLAGS@ -GTK_TEST_LIBS = @GTK_TEST_LIBS@ -HTML_DIR = @HTML_DIR@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LCMS_CFLAGS = @LCMS_CFLAGS@ -LCMS_LIBS = @LCMS_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBJPEG_LIBS = @LIBJPEG_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOPENJPEG_LIBS = @LIBOPENJPEG_LIBS@ -LIBPNG_LIBS = @LIBPNG_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -MOCQT4 = @MOCQT4@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PC_REQUIRES = @PC_REQUIRES@ -PC_REQUIRES_PRIVATE = @PC_REQUIRES_PRIVATE@ -PKG_CONFIG = @PKG_CONFIG@ -POPPLER_DATADIR = @POPPLER_DATADIR@ -POPPLER_GLIB_CFLAGS = @POPPLER_GLIB_CFLAGS@ -POPPLER_GLIB_DISABLE_DEPRECATED = @POPPLER_GLIB_DISABLE_DEPRECATED@ -POPPLER_GLIB_DISABLE_SINGLE_INCLUDES = @POPPLER_GLIB_DISABLE_SINGLE_INCLUDES@ -POPPLER_GLIB_LIBS = @POPPLER_GLIB_LIBS@ -POPPLER_MAJOR_VERSION = @POPPLER_MAJOR_VERSION@ -POPPLER_MICRO_VERSION = @POPPLER_MICRO_VERSION@ -POPPLER_MINOR_VERSION = @POPPLER_MINOR_VERSION@ -POPPLER_QT4_CFLAGS = @POPPLER_QT4_CFLAGS@ -POPPLER_QT4_CXXFLAGS = @POPPLER_QT4_CXXFLAGS@ -POPPLER_QT4_LIBS = @POPPLER_QT4_LIBS@ -POPPLER_QT4_TEST_CFLAGS = @POPPLER_QT4_TEST_CFLAGS@ -POPPLER_QT4_TEST_LIBS = @POPPLER_QT4_TEST_LIBS@ -POPPLER_QT_CXXFLAGS = @POPPLER_QT_CXXFLAGS@ -POPPLER_QT_LIBS = @POPPLER_QT_LIBS@ -PTHREAD_CC = @PTHREAD_CC@ -PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ -PTHREAD_LIBS = @PTHREAD_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZLIB_LIBS = @ZLIB_LIBS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -acx_pthread_config = @acx_pthread_config@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -auto_import_flags = @auto_import_flags@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -create_shared_lib = @create_shared_lib@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -win32_libs = @win32_libs@ -INCLUDES = \ - -I$(top_srcdir)/glib \ - -I$(top_builddir)/glib \ - $(GTK_TEST_CFLAGS) \ - $(POPPLER_GLIB_DISABLE_DEPRECATED) \ - -DGTK_DISABLE_DEPRECATED \ - $(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES) - -AM_LDFLAGS = @auto_import_flags@ -poppler_glib_demo_SOURCES = \ - main.c \ - annots.h \ - annots.c \ - attachments.c \ - attachments.h \ - find.h \ - find.c \ - fonts.h \ - fonts.c \ - forms.h \ - forms.c \ - images.h \ - images.c \ - info.h \ - info.cc \ - layers.h \ - layers.c \ - links.h \ - links.c \ - outline.h \ - outline.c \ - page.h \ - page.c \ - render.h \ - render.c \ - text.h \ - text.c \ - transitions.h \ - transitions.c \ - utils.h \ - utils.c - -LDADD = \ - $(top_builddir)/glib/libpoppler-glib.la \ - $(top_builddir)/poppler/libpoppler.la \ - $(GTK_TEST_LIBS) - -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .cc .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign glib/demo/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign glib/demo/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list -poppler-glib-demo$(EXEEXT): $(poppler_glib_demo_OBJECTS) $(poppler_glib_demo_DEPENDENCIES) - @rm -f poppler-glib-demo$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(poppler_glib_demo_OBJECTS) $(poppler_glib_demo_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/annots.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/attachments.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/find.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fonts.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/forms.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/images.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/info.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/layers.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/links.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/outline.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/page.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/render.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/transitions.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utils.Po@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< - -.cc.o: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< - -.cc.obj: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.cc.lo: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-noinstPROGRAMS ctags distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ - pdf pdf-am ps ps-am tags uninstall uninstall-am - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/annots.c b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/annots.c deleted file mode 100644 index 7865f1d41e9..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/annots.c +++ /dev/null @@ -1,675 +0,0 @@ -/* - * Copyright (C) 2008 Inigo Martinez <inigomartinez@gmail.com> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <string.h> - -#include "annots.h" -#include "utils.h" - -enum { - ANNOTS_X1_COLUMN, - ANNOTS_Y1_COLUMN, - ANNOTS_X2_COLUMN, - ANNOTS_Y2_COLUMN, - ANNOTS_TYPE_COLUMN, - ANNOTS_COLOR_COLUMN, - ANNOTS_COLUMN, - N_COLUMNS -}; - -typedef struct { - PopplerDocument *doc; - PopplerPage *page; - - GtkListStore *model; - GtkWidget *annot_view; - GtkWidget *timer_label; - - gint num_page; -} PgdAnnotsDemo; - -static void -pgd_annots_free (PgdAnnotsDemo *demo) -{ - if (!demo) - return; - - if (demo->doc) { - g_object_unref (demo->doc); - demo->doc = NULL; - } - - if (demo->page) { - g_object_unref (demo->page); - demo->page = NULL; - } - - if (demo->model) { - g_object_unref (demo->model); - demo->model = NULL; - } - - g_free (demo); -} - -static GtkWidget * -pgd_annot_view_new (void) -{ - GtkWidget *frame, *label; - - frame = gtk_frame_new (NULL); - gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE); - label = gtk_label_new (NULL); - gtk_label_set_markup (GTK_LABEL (label), "<b>Annot Properties</b>"); - gtk_frame_set_label_widget (GTK_FRAME (frame), label); - gtk_widget_show (label); - - return frame; -} - -const gchar * -get_annot_type (PopplerAnnot *poppler_annot) -{ - switch (poppler_annot_get_annot_type (poppler_annot)) - { - case POPPLER_ANNOT_TEXT: - return "Text"; - case POPPLER_ANNOT_LINK: - return "Link"; - case POPPLER_ANNOT_FREE_TEXT: - return "Free Text"; - case POPPLER_ANNOT_LINE: - return "Line"; - case POPPLER_ANNOT_SQUARE: - return "Square"; - case POPPLER_ANNOT_CIRCLE: - return "Circle"; - case POPPLER_ANNOT_POLYGON: - return "Polygon"; - case POPPLER_ANNOT_POLY_LINE: - return "Poly Line"; - case POPPLER_ANNOT_HIGHLIGHT: - return "Highlight"; - case POPPLER_ANNOT_UNDERLINE: - return "Underline"; - case POPPLER_ANNOT_SQUIGGLY: - return "Squiggly"; - case POPPLER_ANNOT_STRIKE_OUT: - return "Strike Out"; - case POPPLER_ANNOT_STAMP: - return "Stamp"; - case POPPLER_ANNOT_CARET: - return "Caret"; - case POPPLER_ANNOT_INK: - return "Ink"; - case POPPLER_ANNOT_POPUP: - return "Popup"; - case POPPLER_ANNOT_FILE_ATTACHMENT: - return "File Attachment"; - case POPPLER_ANNOT_SOUND: - return "Sound"; - case POPPLER_ANNOT_MOVIE: - return "Movie"; - case POPPLER_ANNOT_WIDGET: - return "Widget"; - case POPPLER_ANNOT_SCREEN: - return "Screen"; - case POPPLER_ANNOT_PRINTER_MARK: - return "Printer Mark"; - case POPPLER_ANNOT_TRAP_NET: - return "Trap Net"; - case POPPLER_ANNOT_WATERMARK: - return "Watermark"; - case POPPLER_ANNOT_3D: - return "3D"; - default: - break; - } - - return "Unknown"; -} - -GdkPixbuf * -get_annot_color (PopplerAnnot *poppler_annot) -{ - PopplerColor *poppler_color; - - if ((poppler_color = poppler_annot_get_color (poppler_annot))) { - GdkPixbuf *pixbuf; - gint rowstride, num, x; - guchar *pixels; - - pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, - FALSE, 8, - 64, 16); - - rowstride = gdk_pixbuf_get_rowstride (pixbuf); - pixels = gdk_pixbuf_get_pixels (pixbuf); - - num = gdk_pixbuf_get_width (pixbuf) * - gdk_pixbuf_get_height (pixbuf); - - for (x = 0; x < num; x++) { - pixels[0] = poppler_color->red; - pixels[1] = poppler_color->green; - pixels[2] = poppler_color->blue; - pixels += 3; - } - - g_free (poppler_color); - - return pixbuf; - } - - return NULL; -} - -gchar * -get_markup_date (PopplerAnnotMarkup *poppler_annot) -{ - GDate *date; - struct tm t; - time_t timet; - - date = poppler_annot_markup_get_date (poppler_annot); - if (!date) - return NULL; - - g_date_to_struct_tm (date, &t); - g_date_free (date); - - timet = mktime (&t); - return timet == (time_t) - 1 ? NULL : pgd_format_date (timet); -} - -const gchar * -get_markup_reply_to (PopplerAnnotMarkup *poppler_annot) -{ - switch (poppler_annot_markup_get_reply_to (poppler_annot)) - { - case POPPLER_ANNOT_MARKUP_REPLY_TYPE_R: - return "Type R"; - case POPPLER_ANNOT_MARKUP_REPLY_TYPE_GROUP: - return "Type Group"; - default: - break; - } - - return "Unknown"; -} - -const gchar * -get_markup_external_data (PopplerAnnotMarkup *poppler_annot) -{ - switch (poppler_annot_markup_get_external_data (poppler_annot)) - { - case POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_3D: - return "Markup 3D"; - default: - break; - } - - return "Unknown"; -} - -const gchar * -get_text_state (PopplerAnnotText *poppler_annot) -{ - switch (poppler_annot_text_get_state (poppler_annot)) - { - case POPPLER_ANNOT_TEXT_STATE_MARKED: - return "Marked"; - case POPPLER_ANNOT_TEXT_STATE_UNMARKED: - return "Unmarked"; - case POPPLER_ANNOT_TEXT_STATE_ACCEPTED: - return "Accepted"; - case POPPLER_ANNOT_TEXT_STATE_REJECTED: - return "Rejected"; - case POPPLER_ANNOT_TEXT_STATE_CANCELLED: - return "Cancelled"; - case POPPLER_ANNOT_TEXT_STATE_COMPLETED: - return "Completed"; - case POPPLER_ANNOT_TEXT_STATE_NONE: - return "None"; - case POPPLER_ANNOT_TEXT_STATE_UNKNOWN: - return "Unknown"; - default: - break; - } - - return "Unknown"; -} - -const gchar * -get_free_text_quadding (PopplerAnnotFreeText *poppler_annot) -{ - switch (poppler_annot_free_text_get_quadding (poppler_annot)) - { - case POPPLER_ANNOT_FREE_TEXT_QUADDING_LEFT_JUSTIFIED: - return "Left Justified"; - case POPPLER_ANNOT_FREE_TEXT_QUADDING_CENTERED: - return "Centered"; - case POPPLER_ANNOT_FREE_TEXT_QUADDING_RIGHT_JUSTIFIED: - return "Right Justified"; - default: - break; - } - - return "Unknown"; -} - -gchar * -get_free_text_callout_line (PopplerAnnotFreeText *poppler_annot) -{ - PopplerAnnotCalloutLine *callout; - gdouble x1, y1, x2, y2; - gchar *text; - - if ((callout = poppler_annot_free_text_get_callout_line (poppler_annot))) { - text = g_strdup_printf ("%f,%f,%f,%f", callout->x1, - callout->y1, - callout->x2, - callout->y2); - if (callout->multiline) - text = g_strdup_printf ("%s,%f,%f", text, - callout->x3, - callout->y3); - - return text; - } - - return NULL; -} - -static void -pgd_annot_view_set_annot_markup (GtkWidget *table, - PopplerAnnotMarkup *markup, - gint *row) -{ - gchar *text; - PopplerRectangle rect; - - text = poppler_annot_markup_get_label (markup); - pgd_table_add_property (GTK_TABLE (table), "<b>Label:</b>", text, row); - g_free (text); - - if (poppler_annot_markup_has_popup (markup)) { - pgd_table_add_property (GTK_TABLE (table), "<b>Popup is open:</b>", - poppler_annot_markup_get_popup_is_open (markup) ? "Yes" : "No", row); - - poppler_annot_markup_get_popup_rectangle (markup, &rect); - text = g_strdup_printf ("X1: %.2f, Y1: %.2f, X2: %.2f, Y2: %.2f", - rect.x1, rect.y1, rect.x2, rect.y2); - pgd_table_add_property (GTK_TABLE (table), "<b>Popup Rectangle:</b>", text, row); - g_free (text); - } - - text = g_strdup_printf ("%f", poppler_annot_markup_get_opacity (markup)); - pgd_table_add_property (GTK_TABLE (table), "<b>Opacity:</b>", text, row); - g_free (text); - - text = get_markup_date (markup); - pgd_table_add_property (GTK_TABLE (table), "<b>Date:</b>", text, row); - g_free (text); - - text = poppler_annot_markup_get_subject (markup); - pgd_table_add_property (GTK_TABLE (table), "<b>Subject:</b>", text, row); - g_free (text); - - pgd_table_add_property (GTK_TABLE (table), "<b>Reply To:</b>", get_markup_reply_to (markup), row); - - pgd_table_add_property (GTK_TABLE (table), "<b>External Data:</b>", get_markup_external_data (markup), row); -} - -static void -pgd_annot_view_set_annot_text (GtkWidget *table, - PopplerAnnotText *annot, - gint *row) -{ - gchar *text; - - pgd_table_add_property (GTK_TABLE (table), "<b>Is open:</b>", - poppler_annot_text_get_is_open (annot) ? "Yes" : "No", row); - - text = poppler_annot_text_get_icon (annot); - pgd_table_add_property (GTK_TABLE (table), "<b>Icon:</b>", text, row); - g_free (text); - - pgd_table_add_property (GTK_TABLE (table), "<b>State:</b>", get_text_state (annot), row); -} - -static void -pgd_annot_view_set_annot_free_text (GtkWidget *table, - PopplerAnnotFreeText *annot, - gint *row) -{ - gchar *text; - - pgd_table_add_property (GTK_TABLE (table), "<b>Quadding:</b>", get_free_text_quadding (annot), row); - - text = get_free_text_callout_line (annot); - pgd_table_add_property (GTK_TABLE (table), "<b>Callout:</b>", text, row); - g_free (text); -} - -static void -pgd_annot_view_set_annot (GtkWidget *annot_view, - PopplerAnnot *annot) -{ - GtkWidget *alignment; - GtkWidget *table; - GEnumValue *enum_value; - gint row = 0; - gchar *text, *warning; - time_t timet; - - alignment = gtk_bin_get_child (GTK_BIN (annot_view)); - if (alignment) { - gtk_container_remove (GTK_CONTAINER (annot_view), alignment); - } - - alignment = gtk_alignment_new (0.5, 0.5, 1, 1); - gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 5, 5, 12, 5); - gtk_container_add (GTK_CONTAINER (annot_view), alignment); - gtk_widget_show (alignment); - - if (!annot) - return; - - table = gtk_table_new (10, 2, FALSE); - gtk_table_set_col_spacings (GTK_TABLE (table), 6); - gtk_table_set_row_spacings (GTK_TABLE (table), 6); - - text = poppler_annot_get_contents (annot); - pgd_table_add_property (GTK_TABLE (table), "<b>Contents:</b>", text, &row); - g_free (text); - - text = poppler_annot_get_name (annot); - pgd_table_add_property (GTK_TABLE (table), "<b>Name:</b>", text, &row); - g_free (text); - - text = poppler_annot_get_modified (annot); - if (poppler_date_parse (text, &timet)) { - g_free (text); - text = pgd_format_date (timet); - } - pgd_table_add_property (GTK_TABLE (table), "<b>Modified:</b>", text, &row); - g_free (text); - - text = g_strdup_printf ("%d", poppler_annot_get_flags (annot)); - pgd_table_add_property (GTK_TABLE (table), "<b>Flags:</b>", text, &row); - g_free (text); - - if (POPPLER_IS_ANNOT_MARKUP (annot)) - pgd_annot_view_set_annot_markup (table, POPPLER_ANNOT_MARKUP (annot), &row); - - switch (poppler_annot_get_annot_type (annot)) - { - case POPPLER_ANNOT_TEXT: - pgd_annot_view_set_annot_text (table, POPPLER_ANNOT_TEXT (annot), &row); - break; - case POPPLER_ANNOT_FREE_TEXT: - pgd_annot_view_set_annot_free_text (table, POPPLER_ANNOT_FREE_TEXT (annot), &row); - break; - default: - break; - } - - gtk_container_add (GTK_CONTAINER (alignment), table); - gtk_widget_show (table); -} - -static void -pgd_annots_get_annots (GtkWidget *button, - PgdAnnotsDemo *demo) -{ - GList *mapping, *l; - gint n_fields; - GTimer *timer; - - gtk_list_store_clear (demo->model); - pgd_annot_view_set_annot (demo->annot_view, NULL); - - if (demo->page) { - g_object_unref (demo->page); - demo->page = NULL; - } - - demo->page = poppler_document_get_page (demo->doc, demo->num_page); - if (!demo->page) - return; - - timer = g_timer_new (); - mapping = poppler_page_get_annot_mapping (demo->page); - g_timer_stop (timer); - - n_fields = g_list_length (mapping); - if (n_fields > 0) { - gchar *str; - - str = g_strdup_printf ("<i>%d annots found in %.4f seconds</i>", - n_fields, g_timer_elapsed (timer, NULL)); - gtk_label_set_markup (GTK_LABEL (demo->timer_label), str); - g_free (str); - } else { - gtk_label_set_markup (GTK_LABEL (demo->timer_label), "<i>No annots found</i>"); - } - - g_timer_destroy (timer); - - for (l = mapping; l; l = g_list_next (l)) { - PopplerAnnotMapping *amapping; - GtkTreeIter iter; - gchar *x1, *y1, *x2, *y2; - GdkPixbuf *pixbuf; - - amapping = (PopplerAnnotMapping *) l->data; - - x1 = g_strdup_printf ("%.2f", amapping->area.x1); - y1 = g_strdup_printf ("%.2f", amapping->area.y1); - x2 = g_strdup_printf ("%.2f", amapping->area.x2); - y2 = g_strdup_printf ("%.2f", amapping->area.y2); - - pixbuf = get_annot_color (amapping->annot); - - gtk_list_store_append (demo->model, &iter); - gtk_list_store_set (demo->model, &iter, - ANNOTS_X1_COLUMN, x1, - ANNOTS_Y1_COLUMN, y1, - ANNOTS_X2_COLUMN, x2, - ANNOTS_Y2_COLUMN, y2, - ANNOTS_TYPE_COLUMN, get_annot_type (amapping->annot), - ANNOTS_COLOR_COLUMN, pixbuf, - ANNOTS_COLUMN, amapping->annot, - -1); - - if (pixbuf) - g_object_unref (pixbuf); - - g_free (x1); - g_free (y1); - g_free (x2); - g_free (y2); - } - - poppler_page_free_annot_mapping (mapping); -} - -static void -pgd_annots_page_selector_value_changed (GtkSpinButton *spinbutton, - PgdAnnotsDemo *demo) -{ - demo->num_page = (gint) gtk_spin_button_get_value (spinbutton) - 1; -} - -static void -pgd_annots_selection_changed (GtkTreeSelection *treeselection, - PgdAnnotsDemo *demo) -{ - GtkTreeModel *model; - GtkTreeIter iter; - - if (gtk_tree_selection_get_selected (treeselection, &model, &iter)) { - PopplerAnnot *annot; - - gtk_tree_model_get (model, &iter, - ANNOTS_COLUMN, &annot, - -1); - pgd_annot_view_set_annot (demo->annot_view, annot); - g_object_unref (annot); - } -} - -GtkWidget * -pgd_annots_create_widget (PopplerDocument *document) -{ - PgdAnnotsDemo *demo; - GtkWidget *label; - GtkWidget *vbox; - GtkWidget *hbox, *page_selector; - GtkWidget *button; - GtkWidget *hpaned; - GtkWidget *swindow, *treeview; - GtkTreeSelection *selection; - GtkCellRenderer *renderer; - gchar *str; - gint n_pages; - - demo = g_new0 (PgdAnnotsDemo, 1); - - demo->doc = g_object_ref (document); - - n_pages = poppler_document_get_n_pages (document); - - vbox = gtk_vbox_new (FALSE, 12); - - hbox = gtk_hbox_new (FALSE, 6); - - label = gtk_label_new ("Page:"); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); - gtk_widget_show (label); - - page_selector = gtk_spin_button_new_with_range (1, n_pages, 1); - g_signal_connect (G_OBJECT (page_selector), "value-changed", - G_CALLBACK (pgd_annots_page_selector_value_changed), - (gpointer) demo); - gtk_box_pack_start (GTK_BOX (hbox), page_selector, FALSE, TRUE, 0); - gtk_widget_show (page_selector); - - str = g_strdup_printf ("of %d", n_pages); - label = gtk_label_new (str); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); - gtk_widget_show (label); - g_free (str); - - button = gtk_button_new_with_label ("Get Annots"); - g_signal_connect (G_OBJECT (button), "clicked", - G_CALLBACK (pgd_annots_get_annots), - (gpointer) demo); - gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0); - gtk_widget_show (button); - - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); - gtk_widget_show (hbox); - - demo->timer_label = gtk_label_new (NULL); - gtk_label_set_markup (GTK_LABEL (demo->timer_label), "<i>No annots found</i>"); - g_object_set (G_OBJECT (demo->timer_label), "xalign", 1.0, NULL); - gtk_box_pack_start (GTK_BOX (vbox), demo->timer_label, FALSE, TRUE, 0); - gtk_widget_show (demo->timer_label); - - hpaned = gtk_hpaned_new (); - - demo->annot_view = pgd_annot_view_new (); - - swindow = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), - GTK_POLICY_AUTOMATIC, - GTK_POLICY_AUTOMATIC); - - demo->model = gtk_list_store_new (N_COLUMNS, G_TYPE_STRING, - G_TYPE_STRING, G_TYPE_STRING, - G_TYPE_STRING, G_TYPE_STRING, - GDK_TYPE_PIXBUF, G_TYPE_OBJECT); - treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (demo->model)); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - ANNOTS_X1_COLUMN, "X1", - renderer, - "text", ANNOTS_X1_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - ANNOTS_Y1_COLUMN, "Y1", - renderer, - "text", ANNOTS_Y1_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - ANNOTS_X2_COLUMN, "X2", - renderer, - "text", ANNOTS_X2_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - ANNOTS_Y2_COLUMN, "Y2", - renderer, - "text", ANNOTS_Y2_COLUMN, - NULL); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - ANNOTS_TYPE_COLUMN, "Type", - renderer, - "text", ANNOTS_TYPE_COLUMN, - NULL); - - renderer = gtk_cell_renderer_pixbuf_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - ANNOTS_COLOR_COLUMN, "Color", - renderer, - "pixbuf", ANNOTS_COLOR_COLUMN, - NULL); - - selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview)); - g_signal_connect (G_OBJECT (selection), "changed", - G_CALLBACK (pgd_annots_selection_changed), - (gpointer) demo); - - gtk_container_add (GTK_CONTAINER (swindow), treeview); - gtk_widget_show (treeview); - - gtk_paned_add1 (GTK_PANED (hpaned), swindow); - gtk_widget_show (swindow); - - gtk_paned_add2 (GTK_PANED (hpaned), demo->annot_view); - gtk_widget_show (demo->annot_view); - - gtk_paned_set_position (GTK_PANED (hpaned), 300); - - gtk_box_pack_start (GTK_BOX (vbox), hpaned, TRUE, TRUE, 0); - gtk_widget_show (hpaned); - - g_object_weak_ref (G_OBJECT (vbox), - (GWeakNotify)pgd_annots_free, - demo); - - return vbox; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/annots.h b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/annots.h deleted file mode 100644 index 844e4f52baf..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/annots.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 Inigo Martinez <inigomartinez@gmail.com> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <poppler.h> - -#ifndef _ANNOTS_H_ -#define _ANNOTS_H_ - -G_BEGIN_DECLS - -GtkWidget *pgd_annots_create_widget (PopplerDocument *document); - -G_END_DECLS - -#endif /* _ANNOTS_H_ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/attachments.c b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/attachments.c deleted file mode 100644 index 28eb62ed305..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/attachments.c +++ /dev/null @@ -1,358 +0,0 @@ -/* - * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> - -#include "attachments.h" -#include "utils.h" - -enum { - ATTACHMENTS_NAME_COLUMN, - ATTACHMENTS_DESCRIPTION_COLUMN, - ATTACHMENTS_SIZE_COLUMN, - ATTACHMENTS_CTIME_COLUMN, - ATTACHMENTS_MTIME_COLUMN, - ATTACHMENTS_ATTACHMENT_COLUMN, - N_COLUMNS -}; - -static void -pgd_attachments_fill_model (GtkListStore *model, - PopplerDocument *document) -{ - GList *list, *l; - - list = poppler_document_get_attachments (document); - - for (l = list; l && l->data; l = g_list_next (l)) { - PopplerAttachment *attachment = POPPLER_ATTACHMENT (l->data); - GtkTreeIter iter; - gchar *size; - gchar *ctime, *mtime; - - size = g_strdup_printf ("%" G_GSIZE_FORMAT, attachment->size); - ctime = pgd_format_date (attachment->ctime); - mtime = pgd_format_date (attachment->mtime); - - gtk_list_store_append (model, &iter); - gtk_list_store_set (model, &iter, - ATTACHMENTS_NAME_COLUMN, - attachment->name ? attachment->name : "Unknown", - ATTACHMENTS_DESCRIPTION_COLUMN, - attachment->description ? attachment->description : "Unknown", - ATTACHMENTS_SIZE_COLUMN, - size ? size : "Unknown", - ATTACHMENTS_CTIME_COLUMN, - ctime ? ctime : "Unknown", - ATTACHMENTS_MTIME_COLUMN, - mtime ? mtime : "Unknown", - ATTACHMENTS_ATTACHMENT_COLUMN, attachment, - -1); - - g_free (size); - g_free (ctime); - g_free (mtime); - - g_object_unref (attachment); - } - - g_list_free (list); -} - -static GtkWidget * -pgd_attachments_create_list (GtkTreeModel *model) -{ - GtkWidget *treeview; - GtkCellRenderer *renderer; - - treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model)); - gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), TRUE); - gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (treeview), TRUE); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 0, "Name", - renderer, - "text", ATTACHMENTS_NAME_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 1, "Description", - renderer, - "text", ATTACHMENTS_DESCRIPTION_COLUMN, - NULL); - g_object_set (G_OBJECT (renderer), "ellipsize", PANGO_ELLIPSIZE_END, NULL); - g_object_set (G_OBJECT (gtk_tree_view_get_column (GTK_TREE_VIEW (treeview), 1)), - "expand", TRUE, NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 2, "Size", - renderer, - "text", ATTACHMENTS_SIZE_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 3, "Creation Date", - renderer, - "text", ATTACHMENTS_CTIME_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 4, "Modification Date", - renderer, - "text", ATTACHMENTS_MTIME_COLUMN, - NULL); - return treeview; -} - -static void -pgd_attachments_save_dialog_response (GtkFileChooser *file_chooser, - gint response, - PopplerAttachment *attachment) -{ - gchar *filename; - GError *error = NULL; - - if (response != GTK_RESPONSE_ACCEPT) { - g_object_unref (attachment); - gtk_widget_destroy (GTK_WIDGET (file_chooser)); - return; - } - - filename = gtk_file_chooser_get_filename (file_chooser); - if (!poppler_attachment_save (attachment, filename, &error)) { - g_warning ("%s", error->message); - g_error_free (error); - } - g_free (filename); - g_object_unref (attachment); - gtk_widget_destroy (GTK_WIDGET (file_chooser)); -} - -static void -pgd_attachments_save_button_clicked (GtkButton *button, - GtkTreeView *treeview) -{ - GtkTreeSelection *selection; - GtkTreeModel *model; - GtkTreeIter iter; - GtkWidget *file_chooser; - PopplerAttachment *attachment; - - selection = gtk_tree_view_get_selection (treeview); - if (!gtk_tree_selection_get_selected (selection, &model, &iter)) - return; - - gtk_tree_model_get (model, &iter, - ATTACHMENTS_ATTACHMENT_COLUMN, &attachment, - -1); - - if (!attachment) - return; - - file_chooser = gtk_file_chooser_dialog_new ("Save attachment", - GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (treeview))), - GTK_FILE_CHOOSER_ACTION_SAVE, - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, - NULL); - gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (file_chooser), attachment->name); - g_signal_connect (G_OBJECT (file_chooser), "response", - G_CALLBACK (pgd_attachments_save_dialog_response), - (gpointer) attachment); - gtk_widget_show (file_chooser); - -} - -#if GLIB_CHECK_VERSION(2, 16, 0) -static gboolean -attachment_save_callback (const gchar *buf, - gsize count, - gpointer data, - GError **error) -{ - GChecksum *cs = (GChecksum *)data; - - g_checksum_update (cs, buf, count); - - return TRUE; -} - -static void -message_dialog_run (GtkWindow *parent, - const gchar *message) -{ - GtkWidget *dialog; - - dialog = gtk_message_dialog_new (parent, - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_INFO, - GTK_BUTTONS_CLOSE, - "%s", message); - gtk_dialog_run (GTK_DIALOG (dialog)); - gtk_widget_destroy (dialog); -} - -static void -pgd_attachments_validate_button_clicked (GtkButton *button, - GtkTreeView *treeview) -{ - GtkTreeSelection *selection; - GtkTreeModel *model; - GtkTreeIter iter; - GChecksum *cs; - guint8 *digest; - gsize digest_len; - PopplerAttachment *attachment; - gboolean valid = TRUE; - - selection = gtk_tree_view_get_selection (treeview); - if (!gtk_tree_selection_get_selected (selection, &model, &iter)) - return; - - gtk_tree_model_get (model, &iter, - ATTACHMENTS_ATTACHMENT_COLUMN, &attachment, - -1); - - if (!attachment) - return; - - if (attachment->checksum->len == 0) { - message_dialog_run (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (treeview))), - "Impossible to validate attachment: checksum is not available"); - g_object_unref (attachment); - - return; - } - - cs = g_checksum_new (G_CHECKSUM_MD5); - poppler_attachment_save_to_callback (attachment, attachment_save_callback, - (gpointer)cs, NULL); - digest_len = g_checksum_type_get_length (G_CHECKSUM_MD5); - digest = (guint8 *) g_malloc (digest_len); - g_checksum_get_digest (cs, digest, &digest_len); - g_checksum_free (cs); - - if (attachment->checksum->len == digest_len) { - gint i; - - for (i = 0; i < digest_len; i++) { - if ((guint8)attachment->checksum->str[i] != digest[i]) { - valid = FALSE; - break; - } - } - } - - if (valid) { - message_dialog_run (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (treeview))), - "Attachment is valid"); - } else { - message_dialog_run (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (treeview))), - "Attachment is not valid: the checksum does not match"); - } - - g_free (digest); - g_object_unref (attachment); -} -#endif - -GtkWidget * -pgd_attachments_create_widget (PopplerDocument *document) -{ - GtkWidget *vbox; - GtkWidget *treeview; - GtkListStore *model; - GtkWidget *swindow; - GtkWidget *hbox, *button; - gboolean has_attachments; - - vbox = gtk_vbox_new (FALSE, 12); - - swindow = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), - GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); - - has_attachments = poppler_document_has_attachments (document); - if (has_attachments) { - model = gtk_list_store_new (N_COLUMNS, - G_TYPE_STRING, G_TYPE_STRING, - G_TYPE_STRING, - G_TYPE_STRING, G_TYPE_STRING, - G_TYPE_OBJECT); - pgd_attachments_fill_model (model, document); - treeview = pgd_attachments_create_list (GTK_TREE_MODEL (model)); - } else { - GtkCellRenderer *renderer; - GtkTreeIter iter; - gchar *markup; - - model = gtk_list_store_new (1, G_TYPE_STRING); - gtk_list_store_append (model, &iter); - markup = g_strdup_printf ("<span size=\"larger\" style=\"italic\">%s</span>", - "The document doesn't contain attachments"); - gtk_list_store_set (model, &iter, 0, markup, -1); - g_free (markup); - - treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model)); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 0, "Name", - renderer, - "markup", 0, - NULL); - } - g_object_unref (model); - - gtk_container_add (GTK_CONTAINER (swindow), treeview); - gtk_widget_show (treeview); - - gtk_box_pack_start (GTK_BOX (vbox), swindow, TRUE, TRUE, 0); - gtk_widget_show (swindow); - - if (!has_attachments) - return vbox; - - hbox = gtk_hbutton_box_new (); - gtk_button_box_set_layout (GTK_BUTTON_BOX (hbox), GTK_BUTTONBOX_SPREAD); - - button = gtk_button_new_with_label ("Save"); - g_signal_connect (G_OBJECT (button), "clicked", - G_CALLBACK (pgd_attachments_save_button_clicked), - (gpointer)treeview); - - gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0); - gtk_widget_show (button); - -#if GLIB_CHECK_VERSION(2, 16, 0) - button = gtk_button_new_with_label ("Validate"); - g_signal_connect (G_OBJECT (button), "clicked", - G_CALLBACK (pgd_attachments_validate_button_clicked), - (gpointer)treeview); - - gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0); - gtk_widget_show (button); -#endif - - - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 6); - gtk_widget_show (hbox); - - return vbox; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/attachments.h b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/attachments.h deleted file mode 100644 index 36dab828061..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/attachments.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <poppler.h> - -#ifndef _ATTACHMENTS_H_ -#define _ATTACHMENTS_H_ - -G_BEGIN_DECLS - -GtkWidget *pgd_attachments_create_widget (PopplerDocument *document); - -G_END_DECLS - -#endif /* _ATTACHMENTS_H_ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/find.c b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/find.c deleted file mode 100644 index 08e41e24d3d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/find.c +++ /dev/null @@ -1,282 +0,0 @@ -/* - * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "find.h" - -enum { - TITLE_COLUMN, - X1_COLUMN, - Y1_COLUMN, - X2_COLUMN, - Y2_COLUMN, - - VISIBLE_COLUMN, - N_COLUMNS -}; - -typedef struct { - PopplerDocument *doc; - - GtkTreeModel *model; - GtkWidget *entry; - GtkWidget *progress; - - gint n_pages; - gint page_index; - - guint idle_id; -} PgdFindDemo; - -static void -pgd_find_free (PgdFindDemo *demo) -{ - if (!demo) - return; - - if (demo->idle_id > 0) { - g_source_remove (demo->idle_id); - demo->idle_id = 0; - } - - if (demo->doc) { - g_object_unref (demo->doc); - demo->doc = NULL; - } - - if (demo->model) { - g_object_unref (demo->model); - demo->model = NULL; - } - - g_free (demo); -} - -static void -pgd_find_update_progress (PgdFindDemo *demo, - gint scanned) -{ - gchar *str; - - str = g_strdup_printf ("Searching ... (%d%%)", - MIN (scanned * 100 / demo->n_pages, 100)); - gtk_progress_bar_set_text (GTK_PROGRESS_BAR (demo->progress), str); - gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (demo->progress), - MIN ((gdouble)scanned / demo->n_pages, 1.0)); - g_free (str); -} - -static gboolean -pgd_find_find_text (PgdFindDemo *demo) -{ - PopplerPage *page; - GList *matches; - GTimer *timer; - - page = poppler_document_get_page (demo->doc, demo->page_index); - if (!page) { - demo->page_index++; - return demo->page_index < demo->n_pages; - } - - timer = g_timer_new (); - matches = poppler_page_find_text (page, gtk_entry_get_text (GTK_ENTRY (demo->entry))); - g_timer_stop (timer); - if (matches) { - GtkTreeIter iter; - gchar *str; - GList *l; - gint n_match = 0; - - str = g_strdup_printf ("%d matches found on page %d in %.4f seconds", - g_list_length (matches), demo->page_index + 1, - g_timer_elapsed (timer, NULL)); - - gtk_tree_store_append (GTK_TREE_STORE (demo->model), &iter, NULL); - gtk_tree_store_set (GTK_TREE_STORE (demo->model), &iter, - TITLE_COLUMN, str, - VISIBLE_COLUMN, FALSE, - -1); - g_free (str); - - for (l = matches; l && l->data; l = g_list_next (l)) { - PopplerRectangle *rect = (PopplerRectangle *)l->data; - GtkTreeIter iter_child; - gchar *x1, *y1, *x2, *y2; - - str = g_strdup_printf ("Match %d", ++n_match); - x1 = g_strdup_printf ("%.2f", rect->x1); - y1 = g_strdup_printf ("%.2f", rect->y1); - x2 = g_strdup_printf ("%.2f", rect->x2); - y2 = g_strdup_printf ("%.2f", rect->y2); - - gtk_tree_store_append (GTK_TREE_STORE (demo->model), &iter_child, &iter); - gtk_tree_store_set (GTK_TREE_STORE (demo->model), &iter_child, - TITLE_COLUMN, str, - X1_COLUMN, x1, - Y1_COLUMN, y1, - X2_COLUMN, x2, - Y2_COLUMN, y2, - VISIBLE_COLUMN, TRUE, - -1); - g_free (str); - g_free (x1); - g_free (y1); - g_free (x2); - g_free (y2); - g_free (rect); - } - g_list_free (matches); - } - - g_timer_destroy (timer); - g_object_unref (page); - - demo->page_index++; - pgd_find_update_progress (demo, demo->page_index); - - return demo->page_index < demo->n_pages; -} - -static void -pgd_find_button_clicked (GtkButton *button, - PgdFindDemo *demo) -{ - gtk_tree_store_clear (GTK_TREE_STORE (demo->model)); - demo->page_index = 0; - pgd_find_update_progress (demo, demo->page_index); - if (demo->idle_id > 0) - g_source_remove (demo->idle_id); - demo->idle_id = g_idle_add ((GSourceFunc)pgd_find_find_text, demo); -} - -static void -pgd_find_button_sensitivity_cb (GtkWidget *button, - GtkEntry *entry) -{ - const gchar *text; - - text = gtk_entry_get_text (entry); - gtk_widget_set_sensitive (button, text != NULL && text[0] != '\0'); -} - -GtkWidget * -pgd_find_create_widget (PopplerDocument *document) -{ - PgdFindDemo *demo; - GtkWidget *vbox, *hbox; - GtkWidget *button; - GtkWidget *swindow; - GtkWidget *treeview; - GtkCellRenderer *renderer; - - demo = g_new0 (PgdFindDemo, 1); - - demo->doc = g_object_ref (document); - - demo->n_pages = poppler_document_get_n_pages (document); - - vbox = gtk_vbox_new (FALSE, 12); - - hbox = gtk_hbox_new (FALSE, 6); - - demo->entry = gtk_entry_new (); - gtk_box_pack_start (GTK_BOX (hbox), demo->entry, FALSE, TRUE, 0); - gtk_widget_show (demo->entry); - - demo->progress = gtk_progress_bar_new (); - gtk_progress_bar_set_ellipsize (GTK_PROGRESS_BAR (demo->progress), - PANGO_ELLIPSIZE_END); - gtk_box_pack_start (GTK_BOX (hbox), demo->progress, TRUE, TRUE, 0); - gtk_widget_show (demo->progress); - - button = gtk_button_new_with_label ("Find"); - gtk_widget_set_sensitive (button, FALSE); - g_signal_connect (G_OBJECT (button), "clicked", - G_CALLBACK (pgd_find_button_clicked), - (gpointer)demo); - g_signal_connect_swapped (G_OBJECT (demo->entry), "changed", - G_CALLBACK (pgd_find_button_sensitivity_cb), - (gpointer)button); - gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0); - gtk_widget_show (button); - - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 6); - gtk_widget_show (hbox); - - swindow = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), - GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); - - demo->model = GTK_TREE_MODEL ( - gtk_tree_store_new (N_COLUMNS, - G_TYPE_STRING, - G_TYPE_STRING, G_TYPE_STRING, - G_TYPE_STRING, G_TYPE_STRING, - G_TYPE_BOOLEAN)); - treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (demo->model)); - gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (treeview), TRUE); - gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview)), - GTK_SELECTION_NONE); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - TITLE_COLUMN, "Matches", - renderer, - "text", TITLE_COLUMN, - NULL); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - X1_COLUMN, "X1", - renderer, - "text", X1_COLUMN, - "visible", VISIBLE_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - Y1_COLUMN, "Y1", - renderer, - "text", Y1_COLUMN, - "visible", VISIBLE_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - X2_COLUMN, "X2", - renderer, - "text", X2_COLUMN, - "visible", VISIBLE_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - Y2_COLUMN, "Y2", - renderer, - "text", Y2_COLUMN, - "visible", VISIBLE_COLUMN, - NULL); - gtk_container_add (GTK_CONTAINER (swindow), treeview); - gtk_widget_show (treeview); - - gtk_box_pack_start (GTK_BOX (vbox), swindow, TRUE, TRUE, 0); - gtk_widget_show (swindow); - - g_object_weak_ref (G_OBJECT (vbox), - (GWeakNotify)pgd_find_free, - (gpointer)demo); - - return vbox; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/find.h b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/find.h deleted file mode 100644 index 36f95c1d54d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/find.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <poppler.h> - -#ifndef _FIND_H_ -#define _FIND_H_ - -G_BEGIN_DECLS - -GtkWidget *pgd_find_create_widget (PopplerDocument *document); - -G_END_DECLS - -#endif /* _FIND_H_ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/fonts.c b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/fonts.c deleted file mode 100644 index 07ea58993b9..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/fonts.c +++ /dev/null @@ -1,276 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> - -#include "fonts.h" - -enum { - FONTS_NAME_COLUMN, - FONTS_DETAILS_COLUMN, - N_COLUMNS -}; - -typedef struct { - PopplerDocument *doc; - - GtkWidget *treeview; - GtkWidget *progress; - - guint idle_id; -} PgdFontsDemo; - -static void -pgd_fonts_free (PgdFontsDemo *demo) -{ - if (!demo) - return; - - if (demo->idle_id > 0) { - g_source_remove (demo->idle_id); - demo->idle_id = 0; - } - - if (demo->doc) { - g_object_unref (demo->doc); - demo->doc = NULL; - } - - g_free (demo); -} - -static void -pdg_fonts_cell_data_func (GtkTreeViewColumn *col, - GtkCellRenderer *renderer, - GtkTreeModel *model, - GtkTreeIter *iter, - gpointer user_data) -{ - char *name; - char *details; - char *markup; - - gtk_tree_model_get (model, iter, - FONTS_NAME_COLUMN, &name, - FONTS_DETAILS_COLUMN, &details, - -1); - - if (details) { - markup = g_strdup_printf ("<b><big>%s</big></b>\n<small>%s</small>", - name, details); - } else { - markup = g_strdup_printf ("<b><big>%s</big></b>", name); - } - - g_object_set (renderer, "markup", markup, NULL); - - g_free (markup); - g_free (details); - g_free (name); -} - -static const gchar * -font_type_to_string (PopplerFontType type) -{ - switch (type) { - case POPPLER_FONT_TYPE_TYPE1: - return "Type 1"; - case POPPLER_FONT_TYPE_TYPE1C: - return "Type 1C"; - case POPPLER_FONT_TYPE_TYPE3: - return "Type 3"; - case POPPLER_FONT_TYPE_TRUETYPE: - return "TrueType"; - case POPPLER_FONT_TYPE_CID_TYPE0: - return "Type 1 (CID)"; - case POPPLER_FONT_TYPE_CID_TYPE0C: - return "Type 1C (CID)"; - case POPPLER_FONT_TYPE_CID_TYPE2: - return "TrueType (CID)"; - default: - return "Unknown font type"; - } -} - -static void -pgd_fonts_update_progress (PgdFontsDemo *demo, - gint n_pages, - gint scanned) -{ - gchar *str; - - str = g_strdup_printf ("Scanning fonts (%d%%)", - MIN (scanned * 100 / n_pages, 100)); - gtk_progress_bar_set_text (GTK_PROGRESS_BAR (demo->progress), str); - gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (demo->progress), - MIN ((gdouble)scanned / n_pages, 1.0)); - g_free (str); -} - -static gboolean -pgd_fonts_fill_model (PgdFontsDemo *demo) -{ - GtkTreeModel *model; - PopplerFontInfo *font_info; - PopplerFontsIter *fonts_iter; - gint n_pages, scanned = 0; - - n_pages = poppler_document_get_n_pages (demo->doc); - - model = gtk_tree_view_get_model (GTK_TREE_VIEW (demo->treeview)); - g_object_ref (model); - - gtk_list_store_clear (GTK_LIST_STORE (model)); - - font_info = poppler_font_info_new (demo->doc); - - while (poppler_font_info_scan (font_info, 20, &fonts_iter)) { - pgd_fonts_update_progress (demo, n_pages, scanned); - - while (gtk_events_pending ()) - gtk_main_iteration (); - - scanned += 20; - - if (!fonts_iter) - continue; - - do { - GtkTreeIter iter; - const gchar *name; - const gchar *type; - const gchar *embedded; - const gchar *filename; - gchar *details; - - name = poppler_fonts_iter_get_name (fonts_iter); - if (!name) - name = "No name"; - - type = font_type_to_string (poppler_fonts_iter_get_font_type (fonts_iter)); - - if (poppler_fonts_iter_is_embedded (fonts_iter)) { - if (poppler_fonts_iter_is_subset (fonts_iter)) - embedded = "Embedded subset"; - else - embedded = "Embedded"; - } else { - embedded = "Not embedded"; - } - - filename = poppler_fonts_iter_get_file_name (fonts_iter); - - if (filename) - details = g_markup_printf_escaped ("%s\n%s (%s)", type, embedded, filename); - else - details = g_markup_printf_escaped ("%s\n%s", type, embedded); - - gtk_list_store_append (GTK_LIST_STORE (model), &iter); - gtk_list_store_set (GTK_LIST_STORE (model), &iter, - FONTS_NAME_COLUMN, name, - FONTS_DETAILS_COLUMN, details, - -1); - - g_free (details); - } while (poppler_fonts_iter_next (fonts_iter)); - poppler_fonts_iter_free (fonts_iter); - } - - pgd_fonts_update_progress (demo, n_pages, scanned); - - g_object_unref (font_info); - g_object_unref (model); - - return FALSE; -} - -static void -pgd_fonts_scan_button_clicked (GtkButton *button, - PgdFontsDemo *demo) -{ - demo->idle_id = g_idle_add ((GSourceFunc)pgd_fonts_fill_model, demo); -} - -GtkWidget * -pgd_fonts_create_widget (PopplerDocument *document) -{ - PgdFontsDemo *demo; - GtkWidget *vbox; - GtkListStore *model; - GtkCellRenderer *renderer; - GtkTreeViewColumn *column; - GtkWidget *swindow; - GtkWidget *hbox, *button; - - demo = g_new0 (PgdFontsDemo, 1); - - demo->doc = g_object_ref (document); - - vbox = gtk_vbox_new (FALSE, 12); - - hbox = gtk_hbox_new (FALSE, 6); - - demo->progress = gtk_progress_bar_new (); - gtk_progress_bar_set_ellipsize (GTK_PROGRESS_BAR (demo->progress), - PANGO_ELLIPSIZE_END); - gtk_box_pack_start (GTK_BOX (hbox), demo->progress, TRUE, TRUE, 0); - gtk_widget_show (demo->progress); - - button = gtk_button_new_with_label ("Scan"); - g_signal_connect (G_OBJECT (button), "clicked", - G_CALLBACK (pgd_fonts_scan_button_clicked), - (gpointer)demo); - gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0); - gtk_widget_show (button); - - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 6); - gtk_widget_show (hbox); - - swindow = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), - GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); - - model = gtk_list_store_new (N_COLUMNS, G_TYPE_STRING, G_TYPE_STRING); - demo->treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model)); - gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (demo->treeview), FALSE); - gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (demo->treeview), TRUE); - gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (demo->treeview)), - GTK_SELECTION_NONE); - g_object_unref (model); - - column = gtk_tree_view_column_new (); - gtk_tree_view_append_column (GTK_TREE_VIEW (demo->treeview), column); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_column_pack_start (GTK_TREE_VIEW_COLUMN (column), renderer, FALSE); - gtk_tree_view_column_set_cell_data_func (column, renderer, - pdg_fonts_cell_data_func, - NULL, NULL); - - gtk_container_add (GTK_CONTAINER (swindow), demo->treeview); - gtk_widget_show (demo->treeview); - - gtk_box_pack_start (GTK_BOX (vbox), swindow, TRUE, TRUE, 0); - gtk_widget_show (swindow); - - g_object_weak_ref (G_OBJECT (swindow), - (GWeakNotify)pgd_fonts_free, - (gpointer)demo); - - return vbox; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/fonts.h b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/fonts.h deleted file mode 100644 index b13447c383f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/fonts.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <poppler.h> - -#ifndef _FONTS_H_ -#define _FONTS_H_ - -G_BEGIN_DECLS - -GtkWidget *pgd_fonts_create_widget (PopplerDocument *document); - -G_END_DECLS - -#endif /* _FONTS_H_ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/forms.c b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/forms.c deleted file mode 100644 index e4b1fd8cbf9..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/forms.c +++ /dev/null @@ -1,491 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <string.h> - -#include "forms.h" -#include "utils.h" - -enum { - FORMS_FIELD_TYPE_COLUMN, - FORMS_ID_COLUMN, - FORMS_READ_ONLY_COLUMN, - FORMS_X1_COLUMN, - FORMS_Y1_COLUMN, - FORMS_X2_COLUMN, - FORMS_Y2_COLUMN, - FORMS_FIELD_COLUMN, - N_COLUMNS -}; - -typedef struct { - PopplerDocument *doc; - - GtkListStore *model; - GtkWidget *field_view; - GtkWidget *timer_label; - - gint page; -} PgdFormsDemo; - -static void -pgd_forms_free (PgdFormsDemo *demo) -{ - if (!demo) - return; - - if (demo->doc) { - g_object_unref (demo->doc); - demo->doc = NULL; - } - - if (demo->model) { - g_object_unref (demo->model); - demo->model = NULL; - } - - g_free (demo); -} - -static GtkWidget * -pgd_form_field_view_new (void) -{ - GtkWidget *frame, *label; - - frame = gtk_frame_new (NULL); - gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE); - label = gtk_label_new (NULL); - gtk_label_set_markup (GTK_LABEL (label), "<b>Form Field Properties</b>"); - gtk_frame_set_label_widget (GTK_FRAME (frame), label); - gtk_widget_show (label); - - return frame; -} - -static void -pgd_form_field_view_add_choice_items (GtkTable *table, - PopplerFormField *field, - gint *selected, - gint *row) -{ - GtkWidget *label; - GtkWidget *textview, *swindow; - GtkTextBuffer *buffer; - gint i; - - label = gtk_label_new (NULL); - g_object_set (G_OBJECT (label), "xalign", 0.0, NULL); - gtk_label_set_markup (GTK_LABEL (label), "<b>Items:</b>"); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, *row, *row + 1, - GTK_FILL, GTK_FILL, 0, 0); - gtk_widget_show (label); - - swindow = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), - GTK_POLICY_AUTOMATIC, - GTK_POLICY_AUTOMATIC); - - textview = gtk_text_view_new (); - gtk_text_view_set_editable (GTK_TEXT_VIEW (textview), FALSE); - buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (textview)); - - for (i = 0; i < poppler_form_field_choice_get_n_items (field); i++) { - gchar *item; - - item = poppler_form_field_choice_get_item (field, i); - gtk_text_buffer_insert_at_cursor (buffer, item, strlen (item)); - gtk_text_buffer_insert_at_cursor (buffer, "\n", strlen ("\n")); - g_free (item); - - if (poppler_form_field_choice_is_item_selected (field, i)) - *selected = i; - } - - gtk_container_add (GTK_CONTAINER (swindow), textview); - gtk_widget_show (textview); - - gtk_table_attach (GTK_TABLE (table), swindow, 1, 2, *row, *row + 1, - GTK_FILL, GTK_FILL, 0, 0); - gtk_widget_show (swindow); - - *row += 1; -} - -static void -pgd_form_field_view_set_field (GtkWidget *field_view, - PopplerFormField *field) -{ - GtkWidget *alignment; - GtkWidget *table; - GEnumValue *enum_value; - gint row = 0; - - alignment = gtk_bin_get_child (GTK_BIN (field_view)); - if (alignment) { - gtk_container_remove (GTK_CONTAINER (field_view), alignment); - } - - alignment = gtk_alignment_new (0.5, 0.5, 1, 1); - gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 5, 5, 12, 5); - gtk_container_add (GTK_CONTAINER (field_view), alignment); - gtk_widget_show (alignment); - - if (!field) - return; - - table = gtk_table_new (10, 2, FALSE); - gtk_table_set_col_spacings (GTK_TABLE (table), 6); - gtk_table_set_row_spacings (GTK_TABLE (table), 6); - - switch (poppler_form_field_get_field_type (field)) { - case POPPLER_FORM_FIELD_BUTTON: - enum_value = g_enum_get_value ((GEnumClass *) g_type_class_ref (POPPLER_TYPE_FORM_BUTTON_TYPE), - poppler_form_field_button_get_button_type (field)); - pgd_table_add_property (GTK_TABLE (table), "<b>Button Type:</b>", enum_value->value_name, &row); - pgd_table_add_property (GTK_TABLE (table), "<b>Button State:</b>", - poppler_form_field_button_get_state (field) ? "Active" : "Inactive", &row); - break; - case POPPLER_FORM_FIELD_TEXT: { - gchar *text; - - enum_value = g_enum_get_value ((GEnumClass *) g_type_class_ref (POPPLER_TYPE_FORM_TEXT_TYPE), - poppler_form_field_text_get_text_type (field)); - pgd_table_add_property (GTK_TABLE (table), "<b>Text Type:</b>", enum_value->value_name, &row); - - text = poppler_form_field_text_get_text (field); - pgd_table_add_property (GTK_TABLE (table), "<b>Contents:</b>", text, &row); - g_free (text); - - text = g_strdup_printf ("%d", poppler_form_field_text_get_max_len (field)); - pgd_table_add_property (GTK_TABLE (table), "<b>Max Length:</b>", text, &row); - g_free (text); - - pgd_table_add_property (GTK_TABLE (table), "<b>Do spellcheck:</b>", - poppler_form_field_text_do_spell_check (field) ? "Yes" : "No", &row); - pgd_table_add_property (GTK_TABLE (table), "<b>Do scroll:</b>", - poppler_form_field_text_do_scroll (field) ? "Yes" : "No", &row); - pgd_table_add_property (GTK_TABLE (table), "<b>Rich Text:</b>", - poppler_form_field_text_is_rich_text (field) ? "Yes" : "No", &row); - pgd_table_add_property (GTK_TABLE (table), "<b>Pasword type:</b>", - poppler_form_field_text_is_password (field) ? "Yes" : "No", &row); - } - break; - case POPPLER_FORM_FIELD_CHOICE: { - gchar *text, *item; - gint selected; - - enum_value = g_enum_get_value ((GEnumClass *) g_type_class_ref (POPPLER_TYPE_FORM_CHOICE_TYPE), - poppler_form_field_choice_get_choice_type (field)); - pgd_table_add_property (GTK_TABLE (table), "<b>Choice Type:</b>", enum_value->value_name, &row); - pgd_table_add_property (GTK_TABLE (table), "<b>Editable:</b>", - poppler_form_field_choice_is_editable (field) ? "Yes" : "No", &row); - pgd_table_add_property (GTK_TABLE (table), "<b>Multiple Selection:</b>", - poppler_form_field_choice_can_select_multiple (field) ? "Yes" : "No", &row); - pgd_table_add_property (GTK_TABLE (table), "<b>Do spellcheck:</b>", - poppler_form_field_choice_do_spell_check (field) ? "Yes" : "No", &row); - pgd_table_add_property (GTK_TABLE (table), "<b>Commit on Change:</b>", - poppler_form_field_choice_commit_on_change (field) ? "Yes" : "No", &row); - - text = g_strdup_printf ("%d", poppler_form_field_choice_get_n_items (field)); - pgd_table_add_property (GTK_TABLE (table), "<b>Number of items:</b>", text, &row); - g_free (text); - - pgd_form_field_view_add_choice_items (GTK_TABLE (table), field, &selected, &row); - - if (poppler_form_field_choice_get_n_items (field) > selected) { - item = poppler_form_field_choice_get_item (field, selected); - text = g_strdup_printf ("%d (%s)", selected, item); - g_free (item); - pgd_table_add_property (GTK_TABLE (table), "<b>Selected item:</b>", text, &row); - g_free (text); - } - - text = poppler_form_field_choice_get_text (field); - pgd_table_add_property (GTK_TABLE (table), "<b>Contents:</b>", text, &row); - g_free (text); - } - break; - case POPPLER_FORM_FIELD_SIGNATURE: - case POPPLER_FORM_FIELD_UNKNOWN: - break; - default: - g_assert_not_reached (); - } - - gtk_container_add (GTK_CONTAINER (alignment), table); - gtk_widget_show (table); -} - -const gchar * -get_form_field_type (PopplerFormField *field) -{ - switch (poppler_form_field_get_field_type (field)) { - case POPPLER_FORM_FIELD_TEXT: - return "Text"; - case POPPLER_FORM_FIELD_BUTTON: - return "Button"; - case POPPLER_FORM_FIELD_CHOICE: - return "Choice"; - case POPPLER_FORM_FIELD_SIGNATURE: - return "Signature"; - case POPPLER_FORM_FIELD_UNKNOWN: - default: - break; - } - - return "Unknown"; -} - -static void -pgd_forms_get_form_fields (GtkWidget *button, - PgdFormsDemo *demo) -{ - PopplerPage *page; - GList *mapping, *l; - gint n_fields; - GTimer *timer; - - gtk_list_store_clear (demo->model); - pgd_form_field_view_set_field (demo->field_view, NULL); - - page = poppler_document_get_page (demo->doc, demo->page); - if (!page) - return; - - timer = g_timer_new (); - mapping = poppler_page_get_form_field_mapping (page); - g_timer_stop (timer); - - n_fields = g_list_length (mapping); - if (n_fields > 0) { - gchar *str; - - str = g_strdup_printf ("<i>%d form fields found in %.4f seconds</i>", - n_fields, g_timer_elapsed (timer, NULL)); - gtk_label_set_markup (GTK_LABEL (demo->timer_label), str); - g_free (str); - } else { - gtk_label_set_markup (GTK_LABEL (demo->timer_label), "<i>No form fields found</i>"); - } - - g_timer_destroy (timer); - - for (l = mapping; l; l = g_list_next (l)) { - PopplerFormFieldMapping *fmapping; - GtkTreeIter iter; - gchar *x1, *y1, *x2, *y2; - - fmapping = (PopplerFormFieldMapping *)l->data; - - x1 = g_strdup_printf ("%.2f", fmapping->area.x1); - y1 = g_strdup_printf ("%.2f", fmapping->area.y1); - x2 = g_strdup_printf ("%.2f", fmapping->area.x2); - y2 = g_strdup_printf ("%.2f", fmapping->area.y2); - - gtk_list_store_append (demo->model, &iter); - gtk_list_store_set (demo->model, &iter, - FORMS_FIELD_TYPE_COLUMN, get_form_field_type (fmapping->field), - FORMS_ID_COLUMN, poppler_form_field_get_id (fmapping->field), - FORMS_READ_ONLY_COLUMN, poppler_form_field_is_read_only (fmapping->field), - FORMS_X1_COLUMN, x1, - FORMS_Y1_COLUMN, y1, - FORMS_X2_COLUMN, x2, - FORMS_Y2_COLUMN, y2, - FORMS_FIELD_COLUMN, fmapping->field, - -1); - g_free (x1); - g_free (y1); - g_free (x2); - g_free (y2); - } - - poppler_page_free_form_field_mapping (mapping); - g_object_unref (page); -} - -static void -pgd_forms_page_selector_value_changed (GtkSpinButton *spinbutton, - PgdFormsDemo *demo) -{ - demo->page = (gint)gtk_spin_button_get_value (spinbutton) - 1; -} - -static void -pgd_forms_selection_changed (GtkTreeSelection *treeselection, - PgdFormsDemo *demo) -{ - GtkTreeModel *model; - GtkTreeIter iter; - - if (gtk_tree_selection_get_selected (treeselection, &model, &iter)) { - PopplerFormField *field; - - gtk_tree_model_get (model, &iter, - FORMS_FIELD_COLUMN, &field, - -1); - pgd_form_field_view_set_field (demo->field_view, field); - g_object_unref (field); - } -} - -GtkWidget * -pgd_forms_create_widget (PopplerDocument *document) -{ - PgdFormsDemo *demo; - GtkWidget *label; - GtkWidget *vbox; - GtkWidget *hbox, *page_selector; - GtkWidget *button; - GtkWidget *hpaned; - GtkWidget *swindow, *treeview; - GtkTreeSelection *selection; - GtkCellRenderer *renderer; - gchar *str; - gint n_pages; - - demo = g_new0 (PgdFormsDemo, 1); - - demo->doc = g_object_ref (document); - - n_pages = poppler_document_get_n_pages (document); - - vbox = gtk_vbox_new (FALSE, 12); - - hbox = gtk_hbox_new (FALSE, 6); - - label = gtk_label_new ("Page:"); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); - gtk_widget_show (label); - - page_selector = gtk_spin_button_new_with_range (1, n_pages, 1); - g_signal_connect (G_OBJECT (page_selector), "value-changed", - G_CALLBACK (pgd_forms_page_selector_value_changed), - (gpointer)demo); - gtk_box_pack_start (GTK_BOX (hbox), page_selector, FALSE, TRUE, 0); - gtk_widget_show (page_selector); - - str = g_strdup_printf ("of %d", n_pages); - label = gtk_label_new (str); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); - gtk_widget_show (label); - g_free (str); - - button = gtk_button_new_with_label ("Get Forms Fields"); - g_signal_connect (G_OBJECT (button), "clicked", - G_CALLBACK (pgd_forms_get_form_fields), - (gpointer)demo); - gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0); - gtk_widget_show (button); - - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); - gtk_widget_show (hbox); - - demo->timer_label = gtk_label_new (NULL); - gtk_label_set_markup (GTK_LABEL (demo->timer_label), "<i>No form fields found</i>"); - g_object_set (G_OBJECT (demo->timer_label), "xalign", 1.0, NULL); - gtk_box_pack_start (GTK_BOX (vbox), demo->timer_label, FALSE, TRUE, 0); - gtk_widget_show (demo->timer_label); - - hpaned = gtk_hpaned_new (); - - demo->field_view = pgd_form_field_view_new (); - - swindow = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), - GTK_POLICY_AUTOMATIC, - GTK_POLICY_AUTOMATIC); - - demo->model = gtk_list_store_new (N_COLUMNS, G_TYPE_STRING, - G_TYPE_INT, G_TYPE_BOOLEAN, - G_TYPE_STRING, - G_TYPE_STRING, G_TYPE_STRING, - G_TYPE_STRING, G_TYPE_OBJECT); - treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (demo->model)); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 0, "Form Field Type", - renderer, - "text", FORMS_FIELD_TYPE_COLUMN, - NULL); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 1, "Form Field Id", - renderer, - "text", FORMS_ID_COLUMN, - NULL); - - renderer = gtk_cell_renderer_toggle_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 2, "Read Only", - renderer, - "active", FORMS_READ_ONLY_COLUMN, - NULL); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 3, "X1", - renderer, - "text", FORMS_X1_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 4, "Y1", - renderer, - "text", FORMS_Y1_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 5, "X2", - renderer, - "text", FORMS_X2_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 6, "Y2", - renderer, - "text", FORMS_Y2_COLUMN, - NULL); - - selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview)); - g_signal_connect (G_OBJECT (selection), "changed", - G_CALLBACK (pgd_forms_selection_changed), - (gpointer)demo); - - gtk_container_add (GTK_CONTAINER (swindow), treeview); - gtk_widget_show (treeview); - - gtk_paned_add1 (GTK_PANED (hpaned), swindow); - gtk_widget_show (swindow); - - gtk_paned_add2 (GTK_PANED (hpaned), demo->field_view); - gtk_widget_show (demo->field_view); - - gtk_paned_set_position (GTK_PANED (hpaned), 300); - - gtk_box_pack_start (GTK_BOX (vbox), hpaned, TRUE, TRUE, 0); - gtk_widget_show (hpaned); - - g_object_weak_ref (G_OBJECT (vbox), - (GWeakNotify)pgd_forms_free, - demo); - - return vbox; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/forms.h b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/forms.h deleted file mode 100644 index 5b793bd1158..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/forms.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <poppler.h> - -#ifndef _FORMS_H_ -#define _FORMS_H_ - -G_BEGIN_DECLS - -GtkWidget *pgd_forms_create_widget (PopplerDocument *document); - -G_END_DECLS - -#endif /* _FORMS_H_ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/images.c b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/images.c deleted file mode 100644 index 76cfed20846..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/images.c +++ /dev/null @@ -1,342 +0,0 @@ -/* - * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "config.h" - -#include <gtk/gtk.h> - -#include "images.h" - -enum { - IMAGES_ID_COLUMN, - IMAGES_X1_COLUMN, - IMAGES_Y1_COLUMN, - IMAGES_X2_COLUMN, - IMAGES_Y2_COLUMN, - N_COLUMNS -}; - -typedef struct { - PopplerDocument *doc; - - GtkListStore *model; - GtkWidget *timer_label; - GtkWidget *image_view; - - gint page; -} PgdImagesDemo; - -static void -pgd_images_free (PgdImagesDemo *demo) -{ - if (!demo) - return; - - if (demo->doc) { - g_object_unref (demo->doc); - demo->doc = NULL; - } - - if (demo->model) { - g_object_unref (demo->model); - demo->model = NULL; - } - - g_free (demo); -} - -static gboolean -pgd_image_view_drawing_area_expose (GtkWidget *area, - GdkEventExpose *event, - GtkWidget *image_view) -{ - cairo_t *cr; - cairo_surface_t *image; - - image = g_object_get_data (G_OBJECT (image_view), "image-surface"); - if (!image) - return FALSE; - - gtk_widget_set_size_request (area, - cairo_image_surface_get_width (image), - cairo_image_surface_get_height (image)); - - cr = gdk_cairo_create (area->window); - cairo_set_source_surface (cr, image, 0, 0); - cairo_paint (cr); - cairo_destroy (cr); - - return TRUE; -} - -static GtkWidget * -pgd_image_view_new () -{ - GtkWidget *swindow; - GtkWidget *darea; - - swindow = gtk_scrolled_window_new (NULL, NULL); - - darea = gtk_drawing_area_new (); - g_signal_connect (G_OBJECT (darea), "expose_event", - G_CALLBACK (pgd_image_view_drawing_area_expose), - (gpointer)swindow); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), - GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); - gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (swindow), - darea); - gtk_widget_show (darea); - - return swindow; -} - -static void -pgd_image_view_set_image (GtkWidget *image_view, - cairo_surface_t *image) -{ - g_object_set_data_full (G_OBJECT (image_view), "image-surface", - image, - (GDestroyNotify)cairo_surface_destroy); - gtk_widget_queue_draw (image_view); -} - -static void -pgd_images_get_images (GtkWidget *button, - PgdImagesDemo *demo) -{ - PopplerPage *page; - GList *mapping, *l; - gint n_images; - GTimer *timer; - - gtk_list_store_clear (demo->model); - pgd_image_view_set_image (demo->image_view, NULL); - - page = poppler_document_get_page (demo->doc, demo->page); - if (!page) - return; - - timer = g_timer_new (); - mapping = poppler_page_get_image_mapping (page); - g_timer_stop (timer); - - n_images = g_list_length (mapping); - if (n_images > 0) { - gchar *str; - - str = g_strdup_printf ("<i>%d images found in %.4f seconds</i>", - n_images, g_timer_elapsed (timer, NULL)); - gtk_label_set_markup (GTK_LABEL (demo->timer_label), str); - g_free (str); - } else { - gtk_label_set_markup (GTK_LABEL (demo->timer_label), "<i>No images found</i>"); - } - - g_timer_destroy (timer); - - for (l = mapping; l; l = g_list_next (l)) { - PopplerImageMapping *imapping; - GtkTreeIter iter; - gchar *x1, *y1, *x2, *y2; - - imapping = (PopplerImageMapping *)l->data; - - x1 = g_strdup_printf ("%.2f", imapping->area.x1); - y1 = g_strdup_printf ("%.2f", imapping->area.y1); - x2 = g_strdup_printf ("%.2f", imapping->area.x2); - y2 = g_strdup_printf ("%.2f", imapping->area.y2); - - gtk_list_store_append (demo->model, &iter); - gtk_list_store_set (demo->model, &iter, - IMAGES_ID_COLUMN, imapping->image_id, - IMAGES_X1_COLUMN, x1, - IMAGES_Y1_COLUMN, y1, - IMAGES_X2_COLUMN, x2, - IMAGES_Y2_COLUMN, y2, - -1); - g_free (x1); - g_free (y1); - g_free (x2); - g_free (y2); - } - - poppler_page_free_image_mapping (mapping); - g_object_unref (page); -} - -static void -pgd_images_page_selector_value_changed (GtkSpinButton *spinbutton, - PgdImagesDemo *demo) -{ - demo->page = (gint)gtk_spin_button_get_value (spinbutton) - 1; -} - -static void -pgd_images_selection_changed (GtkTreeSelection *treeselection, - PgdImagesDemo *demo) -{ - GtkTreeModel *model; - GtkTreeIter iter; - - if (gtk_tree_selection_get_selected (treeselection, &model, &iter)) { - PopplerPage *page; - gint image_id; - - gtk_tree_model_get (model, &iter, - IMAGES_ID_COLUMN, &image_id, - -1); - page = poppler_document_get_page (demo->doc, demo->page); -#if defined (HAVE_CAIRO) - pgd_image_view_set_image (demo->image_view, - poppler_page_get_image (page, image_id)); -#endif - g_object_unref (page); - - } -} - -GtkWidget * -pgd_images_create_widget (PopplerDocument *document) -{ - PgdImagesDemo *demo; - GtkWidget *label; - GtkWidget *vbox; - GtkWidget *hbox, *page_selector; - GtkWidget *button; - GtkWidget *hpaned; - GtkWidget *swindow, *treeview; - GtkTreeSelection *selection; - GtkCellRenderer *renderer; - gchar *str; - gint n_pages; - - demo = g_new0 (PgdImagesDemo, 1); - - demo->doc = g_object_ref (document); - - n_pages = poppler_document_get_n_pages (document); - - vbox = gtk_vbox_new (FALSE, 12); - - hbox = gtk_hbox_new (FALSE, 6); - - label = gtk_label_new ("Page:"); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); - gtk_widget_show (label); - - page_selector = gtk_spin_button_new_with_range (1, n_pages, 1); - g_signal_connect (G_OBJECT (page_selector), "value-changed", - G_CALLBACK (pgd_images_page_selector_value_changed), - (gpointer)demo); - gtk_box_pack_start (GTK_BOX (hbox), page_selector, FALSE, TRUE, 0); - gtk_widget_show (page_selector); - - str = g_strdup_printf ("of %d", n_pages); - label = gtk_label_new (str); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); - gtk_widget_show (label); - g_free (str); - - button = gtk_button_new_with_label ("Get Images"); - g_signal_connect (G_OBJECT (button), "clicked", - G_CALLBACK (pgd_images_get_images), - (gpointer)demo); - gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0); - gtk_widget_show (button); - - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); - gtk_widget_show (hbox); - - demo->timer_label = gtk_label_new (NULL); - gtk_label_set_markup (GTK_LABEL (demo->timer_label), "<i>No images found</i>"); - g_object_set (G_OBJECT (demo->timer_label), "xalign", 1.0, NULL); - gtk_box_pack_start (GTK_BOX (vbox), demo->timer_label, FALSE, TRUE, 0); - gtk_widget_show (demo->timer_label); - - hpaned = gtk_hpaned_new (); - - demo->image_view = pgd_image_view_new (); - - swindow = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), - GTK_POLICY_AUTOMATIC, - GTK_POLICY_AUTOMATIC); - - demo->model = gtk_list_store_new (N_COLUMNS, G_TYPE_INT, - G_TYPE_STRING, G_TYPE_STRING, - G_TYPE_STRING, G_TYPE_STRING); - treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (demo->model)); - - renderer = gtk_cell_renderer_text_new (); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 0, "Image", - renderer, - "text", IMAGES_ID_COLUMN, - NULL); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 1, "X1", - renderer, - "text", IMAGES_X1_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 2, "Y1", - renderer, - "text", IMAGES_Y1_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 3, "X2", - renderer, - "text", IMAGES_X2_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 4, "Y2", - renderer, - "text", IMAGES_Y2_COLUMN, - NULL); - - selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview)); - g_signal_connect (G_OBJECT (selection), "changed", - G_CALLBACK (pgd_images_selection_changed), - (gpointer)demo); - - gtk_container_add (GTK_CONTAINER (swindow), treeview); - gtk_widget_show (treeview); - - gtk_paned_add1 (GTK_PANED (hpaned), swindow); - gtk_widget_show (swindow); - - gtk_paned_add2 (GTK_PANED (hpaned), demo->image_view); - gtk_widget_show (demo->image_view); - - gtk_paned_set_position (GTK_PANED (hpaned), 300); - - gtk_box_pack_start (GTK_BOX (vbox), hpaned, TRUE, TRUE, 0); - gtk_widget_show (hpaned); - - g_object_weak_ref (G_OBJECT (vbox), - (GWeakNotify)pgd_images_free, - demo); - - return vbox; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/images.h b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/images.h deleted file mode 100644 index 6180c3b2ac6..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/images.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <poppler.h> - -#ifndef _IMAGES_H_ -#define _IMAGES_H_ - -G_BEGIN_DECLS - -GtkWidget *pgd_images_create_widget (PopplerDocument *document); - -G_END_DECLS - -#endif /* _IMAGES_H_ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/info.cc b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/info.cc deleted file mode 100644 index 87be8eaa773..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/info.cc +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> - -#include "config.h" -#include "info.h" -#include "utils.h" - -static void -pgd_info_add_permissions (GtkTable *table, - PopplerPermissions permissions, - gint *row) -{ - GtkWidget *label, *hbox; - GtkWidget *checkbox; - - label = gtk_label_new (NULL); - g_object_set (G_OBJECT (label), "xalign", 0.0, NULL); - gtk_label_set_markup (GTK_LABEL (label), "<b>Permissions:</b>"); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, *row, *row + 1, - GTK_FILL, GTK_FILL, 0, 0); - gtk_widget_show (label); - - hbox = gtk_hbox_new (FALSE, 6); - - checkbox = gtk_check_button_new_with_label ("Print"); - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbox), - (permissions & POPPLER_PERMISSIONS_OK_TO_PRINT)); - gtk_box_pack_start (GTK_BOX (hbox), checkbox, FALSE, TRUE, 0); - gtk_widget_show (checkbox); - - checkbox = gtk_check_button_new_with_label ("Copy"); - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbox), - (permissions & POPPLER_PERMISSIONS_OK_TO_COPY)); - gtk_box_pack_start (GTK_BOX (hbox), checkbox, FALSE, TRUE, 0); - gtk_widget_show (checkbox); - - checkbox = gtk_check_button_new_with_label ("Modify"); - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbox), - (permissions & POPPLER_PERMISSIONS_OK_TO_MODIFY)); - gtk_box_pack_start (GTK_BOX (hbox), checkbox, FALSE, TRUE, 0); - gtk_widget_show (checkbox); - - checkbox = gtk_check_button_new_with_label ("Add notes"); - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbox), - (permissions & POPPLER_PERMISSIONS_OK_TO_ADD_NOTES)); - gtk_box_pack_start (GTK_BOX (hbox), checkbox, FALSE, TRUE, 0); - gtk_widget_show (checkbox); - - gtk_table_attach (GTK_TABLE (table), hbox, 1, 2, *row, *row + 1, - GTK_FILL, GTK_FILL, 0, 0); - gtk_widget_show (hbox); - - *row += 1; -} - -static void -pgd_info_add_metadata (GtkTable *table, - const gchar *metadata, - gint *row) -{ - GtkWidget *label; - GtkWidget *textview, *swindow; - GtkTextBuffer *buffer; - - label = gtk_label_new (NULL); - g_object_set (G_OBJECT (label), "xalign", 0.0, NULL); - gtk_label_set_markup (GTK_LABEL (label), "<b>Metadata:</b>"); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, *row, *row + 1, - GTK_FILL, GTK_FILL, 0, 0); - gtk_widget_show (label); - - swindow = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), - GTK_POLICY_AUTOMATIC, - GTK_POLICY_AUTOMATIC); - - textview = gtk_text_view_new (); - gtk_text_view_set_editable (GTK_TEXT_VIEW (textview), FALSE); - buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (textview)); - if (metadata) - gtk_text_buffer_set_text (buffer, metadata, -1); - - gtk_container_add (GTK_CONTAINER (swindow), textview); - gtk_widget_show (textview); - - gtk_table_attach (GTK_TABLE (table), swindow, 1, 2, *row, *row + 1, - (GtkAttachOptions)(GTK_EXPAND | GTK_FILL), - (GtkAttachOptions)(GTK_EXPAND | GTK_FILL), 0, 0); - gtk_widget_show (swindow); - - *row += 1; -} - -GtkWidget * -pgd_info_create_widget (PopplerDocument *document) -{ - GtkWidget *vbox; - GtkWidget *label; - GtkWidget *frame, *alignment, *table; - gchar *str; - gchar *title, *format, *author, *subject; - gchar *keywords, *creator, *producer, *linearized; - gchar *metadata; - GTime creation_date, mod_date; - GEnumValue *enum_value; - PopplerBackend backend; - PopplerPageLayout layout; - PopplerPageMode mode; - PopplerPermissions permissions; - PopplerViewerPreferences view_prefs; - gint row = 0; - - g_object_get (document, - "title", &title, - "format", &format, - "author", &author, - "subject", &subject, - "keywords", &keywords, - "creation-date", &creation_date, - "mod-date", &mod_date, - "creator", &creator, - "producer", &producer, - "linearized", &linearized, - "page-mode", &mode, - "page-layout", &layout, - "permissions", &permissions, - "viewer-preferences", &view_prefs, - "metadata", &metadata, - NULL); - - vbox = gtk_vbox_new (FALSE, 12); - - backend = poppler_get_backend (); - enum_value = g_enum_get_value ((GEnumClass *) g_type_class_ref (POPPLER_TYPE_BACKEND), backend); - str = g_strdup_printf ("<span weight='bold' size='larger'>Poppler %s (%s)</span>", - poppler_get_version (), enum_value->value_name); - label = gtk_label_new (NULL); - gtk_label_set_markup (GTK_LABEL (label), str); - g_free (str); - gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 12); - gtk_widget_show (label); - - frame = gtk_frame_new (NULL); - gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE); - label = gtk_label_new (NULL); - gtk_label_set_markup (GTK_LABEL (label), "<b>Document properties</b>"); - gtk_frame_set_label_widget (GTK_FRAME (frame), label); - gtk_widget_show (label); - - alignment = gtk_alignment_new (0.5, 0.5, 1, 1); - gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 5, 5, 12, 5); - gtk_container_add (GTK_CONTAINER (frame), alignment); - gtk_widget_show (alignment); - - table = gtk_table_new (14, 2, FALSE); - gtk_table_set_col_spacings (GTK_TABLE (table), 6); - gtk_table_set_row_spacings (GTK_TABLE (table), 6); - - pgd_table_add_property (GTK_TABLE (table), "<b>Format:</b>", format, &row); - g_free (format); - - pgd_table_add_property (GTK_TABLE (table), "<b>Title:</b>", title, &row); - g_free (title); - - pgd_table_add_property (GTK_TABLE (table), "<b>Author:</b>", author, &row); - g_free (author); - - pgd_table_add_property (GTK_TABLE (table), "<b>Subject:</b>", subject, &row); - g_free (subject); - - pgd_table_add_property (GTK_TABLE (table), "<b>Keywords:</b>", keywords, &row); - g_free (keywords); - - pgd_table_add_property (GTK_TABLE (table), "<b>Creator:</b>", creator, &row); - g_free (creator); - - pgd_table_add_property (GTK_TABLE (table), "<b>Producer:</b>", producer, &row); - g_free (producer); - - pgd_table_add_property (GTK_TABLE (table), "<b>Linearized:</b>", linearized, &row); - g_free (linearized); - - str = pgd_format_date (creation_date); - pgd_table_add_property (GTK_TABLE (table), "<b>Creation Date:</b>", str, &row); - g_free (str); - - str = pgd_format_date (mod_date); - pgd_table_add_property (GTK_TABLE (table), "<b>Modification Date:</b>", str, &row); - g_free (str); - - enum_value = g_enum_get_value ((GEnumClass *) g_type_class_peek (POPPLER_TYPE_PAGE_MODE), mode); - pgd_table_add_property (GTK_TABLE (table), "<b>Page Mode:</b>", enum_value->value_name, &row); - - enum_value = g_enum_get_value ((GEnumClass *) g_type_class_peek (POPPLER_TYPE_PAGE_LAYOUT), layout); - pgd_table_add_property (GTK_TABLE (table), "<b>Page Layout:</b>", enum_value->value_name, &row); - - pgd_info_add_permissions (GTK_TABLE (table), permissions, &row); - - pgd_info_add_metadata (GTK_TABLE (table), metadata, &row); - g_free (metadata); - - /* TODO: view_prefs */ - - gtk_container_add (GTK_CONTAINER (alignment), table); - gtk_widget_show (table); - - gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0); - gtk_widget_show (frame); - - return vbox; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/info.h b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/info.h deleted file mode 100644 index a8b34d49533..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/info.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <poppler.h> - -#ifndef _INFO_H_ -#define _INFO_H_ - -G_BEGIN_DECLS - -GtkWidget *pgd_info_create_widget (PopplerDocument *document); - -G_END_DECLS - -#endif /* _INFO_H_ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/layers.c b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/layers.c deleted file mode 100644 index ac93376746e..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/layers.c +++ /dev/null @@ -1,511 +0,0 @@ -/* - * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "config.h" - -#include <gtk/gtk.h> - -#include "layers.h" - -enum { - LAYERS_TITLE_COLUMN, - LAYERS_VISIBILITY_COLUMN, - LAYERS_ENABLE_COLUMN, - LAYERS_SHOWTOGGLE_COLUMN, - LAYERS_RB_GROUP_COLUMN, - LAYERS_LAYER_COLUMN, - N_COLUMNS -}; - -typedef struct { - PopplerDocument *doc; - guint page; - GtkWidget *treeview; - GtkWidget *darea; - -#if defined (HAVE_CAIRO) - cairo_surface_t *surface; -#else - GdkPixbuf *pixbuf; -#endif -} PgdLayersDemo; - -static void -pgd_layers_free (PgdLayersDemo *demo) -{ - if (!demo) - return; - - if (demo->doc) { - g_object_unref (demo->doc); - demo->doc = NULL; - } - -#if defined (HAVE_CAIRO) - if (demo->surface) { - cairo_surface_destroy (demo->surface); - demo->surface = NULL; - } -#else - if (demo->pixbuf) { - g_object_unref (demo->pixbuf); - demo->pixbuf = NULL; - } -#endif - - g_free (demo); -} - -static void -build_tree (PopplerDocument *document, - GtkTreeModel *model, - GtkTreeIter *parent, - PopplerLayersIter *iter) -{ - - do { - GtkTreeIter tree_iter; - PopplerLayersIter *child; - PopplerLayer *layer; - gboolean visible; - gchar *markup; - gint rb_group = 0; - - layer = poppler_layers_iter_get_layer (iter); - if (layer) { - markup = g_markup_escape_text (poppler_layer_get_title (layer), -1); - visible = poppler_layer_is_visible (layer); - rb_group = poppler_layer_get_radio_button_group_id (layer); - } else { - gchar *title; - - title = poppler_layers_iter_get_title (iter); - markup = g_markup_escape_text (title, -1); - g_free (title); - - visible = FALSE; - layer = NULL; - } - - gtk_tree_store_append (GTK_TREE_STORE (model), &tree_iter, parent); - gtk_tree_store_set (GTK_TREE_STORE (model), &tree_iter, - LAYERS_TITLE_COLUMN, markup, - LAYERS_VISIBILITY_COLUMN, visible, - LAYERS_ENABLE_COLUMN, TRUE, /* FIXME */ - LAYERS_SHOWTOGGLE_COLUMN, (layer != NULL), - LAYERS_RB_GROUP_COLUMN, rb_group, - LAYERS_LAYER_COLUMN, layer, - -1); - if (layer) - g_object_unref (layer); - g_free (markup); - - child = poppler_layers_iter_get_child (iter); - if (child) - build_tree (document, model, &tree_iter, child); - poppler_layers_iter_free (child); - } while (poppler_layers_iter_next (iter)); -} - -GtkTreeModel * -pgd_layers_create_model (PopplerDocument *document) -{ - GtkTreeModel *model; - PopplerLayersIter *iter; - - iter = poppler_layers_iter_new (document); - if (iter) { - model = GTK_TREE_MODEL ( - gtk_tree_store_new (N_COLUMNS, - G_TYPE_STRING, - G_TYPE_BOOLEAN, - G_TYPE_BOOLEAN, - G_TYPE_BOOLEAN, - G_TYPE_INT, - G_TYPE_OBJECT)); - build_tree (document, model, NULL, iter); - poppler_layers_iter_free (iter); - } else { - GtkTreeIter tree_iter; - gchar *markup; - - model = GTK_TREE_MODEL (gtk_list_store_new (1, G_TYPE_STRING)); - gtk_list_store_append (GTK_LIST_STORE (model), &tree_iter); - markup = g_strdup_printf ("<span size=\"larger\" style=\"italic\">%s</span>", - "The document doesn't contain layers"); - gtk_list_store_set (GTK_LIST_STORE (model), &tree_iter, - 0, markup, -1); - g_free (markup); - } - - return model; -} - -#if defined (HAVE_CAIRO) -static cairo_surface_t * -pgd_layers_render_page (PgdLayersDemo *demo) -{ - cairo_t *cr; - PopplerPage *page; - gdouble width, height; - cairo_surface_t *surface = NULL; - - page = poppler_document_get_page (demo->doc, demo->page); - if (!page) - return NULL; - - poppler_page_get_size (page, &width, &height); - gtk_widget_set_size_request (demo->darea, width, height); - - surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, - width, height); - cr = cairo_create (surface); - - cairo_save (cr); - cairo_set_source_rgb (cr, 1, 1, 1); - cairo_rectangle (cr, 0, 0, width, height); - cairo_fill (cr); - cairo_restore (cr); - - cairo_save (cr); - poppler_page_render (page, cr); - cairo_restore (cr); - - cairo_destroy (cr); - g_object_unref (page); - - return surface; -} -#else -static GdkPixbuf * -pgd_layers_render_page (PgdLayersDemo *demo) -{ - PopplerPage *page; - gdouble width, height; - GdkPixbuf *pixbuf = NULL; - - page = poppler_document_get_page (demo->doc, demo->page); - if (!page) - return NULL; - - poppler_page_get_size (page, &width, &height); - gtk_widget_set_size_request (demo->darea, width, height); - - pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, - FALSE, 8, width, height); - gdk_pixbuf_fill (pixbuf, 0xffffff); - poppler_page_render_to_pixbuf (page, 0, 0, - width, height, - 1.0, 0, pixbuf); - g_object_unref (page); - - return pixbuf; -} -#endif - -static gboolean -pgd_layers_viewer_drawing_area_expose (GtkWidget *area, - GdkEventExpose *event, - PgdLayersDemo *demo) -{ -#if defined (HAVE_CAIRO) - cairo_t *cr; - - if (!demo->surface) { - demo->surface = pgd_layers_render_page (demo); - if (!demo->surface) - return FALSE; - } -#else - - if (!demo->pixbuf) { - demo->pixbuf = pgd_layers_render_page (demo); - if (!demo->pixbuf) - return FALSE; - } -#endif - - gdk_window_clear (area->window); - -#if defined (HAVE_CAIRO) - cr = gdk_cairo_create (area->window); - cairo_set_source_surface (cr, demo->surface, 0, 0); - cairo_paint (cr); - cairo_destroy (cr); -#else - gdk_draw_pixbuf (area->window, - area->style->fg_gc[GTK_STATE_NORMAL], - demo->pixbuf, - 0, 0, - 0, 0, - gdk_pixbuf_get_width (demo->pixbuf), - gdk_pixbuf_get_height (demo->pixbuf), - GDK_RGB_DITHER_NORMAL, - 0, 0); -#endif - - return TRUE; -} - -static gboolean -pgd_layers_viewer_redraw (PgdLayersDemo *demo) -{ -#if defined (HAVE_CAIRO) - cairo_surface_destroy (demo->surface); - demo->surface = NULL; -#else - g_object_unref (demo->pixbuf); - demo->pixbuf = NULL; -#endif - gtk_widget_queue_draw (demo->darea); - - return FALSE; -} - -static void -pgd_layers_viewer_queue_redraw (PgdLayersDemo *demo) -{ - g_idle_add ((GSourceFunc)pgd_layers_viewer_redraw, demo); -} - -static void -pgd_layers_page_selector_value_changed (GtkSpinButton *spinbutton, - PgdLayersDemo *demo) -{ - demo->page = (gint)gtk_spin_button_get_value (spinbutton) - 1; - pgd_layers_viewer_queue_redraw (demo); -} - -static GtkWidget * -pgd_layers_create_viewer (PgdLayersDemo *demo) -{ - GtkWidget *vbox, *hbox; - GtkWidget *label; - GtkWidget *swindow; - GtkWidget *page_selector; - guint n_pages; - gchar *str; - - vbox = gtk_vbox_new (FALSE, 6); - - hbox = gtk_hbox_new (FALSE, 6); - - label = gtk_label_new ("Page:"); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); - gtk_widget_show (label); - - n_pages = poppler_document_get_n_pages (demo->doc); - page_selector = gtk_spin_button_new_with_range (1, n_pages, 1); - g_signal_connect (G_OBJECT (page_selector), "value-changed", - G_CALLBACK (pgd_layers_page_selector_value_changed), - (gpointer)demo); - gtk_box_pack_start (GTK_BOX (hbox), page_selector, FALSE, TRUE, 0); - gtk_widget_show (page_selector); - - str = g_strdup_printf ("of %d", n_pages); - label = gtk_label_new (str); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); - gtk_widget_show (label); - g_free (str); - - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); - gtk_widget_show (hbox); - - demo->darea = gtk_drawing_area_new (); - g_signal_connect (G_OBJECT (demo->darea), "expose_event", - G_CALLBACK (pgd_layers_viewer_drawing_area_expose), - (gpointer)demo); - - swindow = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), - GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); - gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (swindow), demo->darea); - gtk_widget_show (demo->darea); - - gtk_box_pack_start (GTK_BOX (vbox), swindow, TRUE, TRUE, 0); - gtk_widget_show (swindow); - - return vbox; -} - -static gboolean -update_kids (GtkTreeModel *model, - GtkTreePath *path, - GtkTreeIter *iter, - GtkTreeIter *parent) -{ - if (gtk_tree_store_is_ancestor (GTK_TREE_STORE (model), parent, iter)) { - gboolean visible; - - gtk_tree_model_get (model, parent, - LAYERS_VISIBILITY_COLUMN, &visible, - -1); - gtk_tree_store_set (GTK_TREE_STORE (model), iter, - LAYERS_ENABLE_COLUMN, visible, - -1); - } - - return FALSE; -} - -static gboolean -clear_rb_group (GtkTreeModel *model, - GtkTreePath *path, - GtkTreeIter *iter, - gint *rb_group) -{ - gint group; - - gtk_tree_model_get (model, iter, - LAYERS_RB_GROUP_COLUMN, &group, - -1); - - if (group == *rb_group) { - gtk_tree_store_set (GTK_TREE_STORE (model), iter, - LAYERS_VISIBILITY_COLUMN, FALSE, - -1); - } - - return FALSE; -} - -static void -pgd_layers_visibility_changed (GtkCellRendererToggle *cell, - gchar *path_str, - PgdLayersDemo *demo) -{ - GtkTreeModel *model; - GtkTreePath *path; - GtkTreeIter iter; - gboolean visible; - PopplerLayer *layer; - - model = gtk_tree_view_get_model (GTK_TREE_VIEW (demo->treeview)); - - path = gtk_tree_path_new_from_string (path_str); - gtk_tree_model_get_iter (model, &iter, path); - gtk_tree_model_get (model, &iter, - LAYERS_VISIBILITY_COLUMN, &visible, - LAYERS_LAYER_COLUMN, &layer, - -1); - - visible = !visible; - visible ? poppler_layer_show (layer) : poppler_layer_hide (layer); - - if (visible) { - gint rb_group; - - rb_group = poppler_layer_get_radio_button_group_id (layer); - if (rb_group) { - gtk_tree_model_foreach (model, - (GtkTreeModelForeachFunc)clear_rb_group, - &rb_group); - } - } - - gtk_tree_store_set (GTK_TREE_STORE (model), &iter, - LAYERS_VISIBILITY_COLUMN, visible, - -1); - - if (poppler_layer_is_parent (layer)) { - gtk_tree_model_foreach (model, - (GtkTreeModelForeachFunc)update_kids, - &iter); - } - - pgd_layers_viewer_queue_redraw (demo); - - gtk_tree_path_free (path); - g_object_unref (layer); -} - -GtkWidget * -pgd_layers_create_widget (PopplerDocument *document) -{ - PgdLayersDemo *demo; - GtkWidget *swindow; - GtkWidget *treeview; - GtkTreeModel *model; - GtkCellRenderer *renderer; - GtkTreeSelection *selection; - GtkWidget *hpaned, *viewer; - - demo = g_new0 (PgdLayersDemo, 1); - demo->doc = g_object_ref (document); - - hpaned = gtk_hpaned_new (); - - viewer = pgd_layers_create_viewer (demo); - - swindow = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), - GTK_POLICY_AUTOMATIC, - GTK_POLICY_AUTOMATIC); - - model = pgd_layers_create_model (document); - treeview = gtk_tree_view_new_with_model (model); - demo->treeview = treeview; - g_object_unref (model); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 0, "Layer", - renderer, - "markup", LAYERS_TITLE_COLUMN, - NULL); - g_object_set (G_OBJECT (renderer), "ellipsize", PANGO_ELLIPSIZE_END, NULL); - g_object_set (G_OBJECT (gtk_tree_view_get_column (GTK_TREE_VIEW (treeview), 0)), - "expand", TRUE, NULL); - - if (GTK_IS_TREE_STORE (model)) { - renderer = gtk_cell_renderer_toggle_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 1, "Show/Hide", - renderer, - "active", LAYERS_VISIBILITY_COLUMN, - "activatable", LAYERS_ENABLE_COLUMN, - "visible", LAYERS_SHOWTOGGLE_COLUMN, - NULL); - - g_signal_connect (renderer, "toggled", - G_CALLBACK (pgd_layers_visibility_changed), - (gpointer)demo); - gtk_tree_view_column_set_clickable (gtk_tree_view_get_column (GTK_TREE_VIEW (treeview), 1), - TRUE); - } - - gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview)), - GTK_SELECTION_NONE); - - gtk_container_add (GTK_CONTAINER (swindow), treeview); - gtk_widget_show (treeview); - - gtk_paned_add1 (GTK_PANED (hpaned), swindow); - gtk_widget_show (swindow); - - gtk_paned_add2 (GTK_PANED (hpaned), viewer); - gtk_widget_show (viewer); - - gtk_paned_set_position (GTK_PANED (hpaned), 150); - - g_object_weak_ref (G_OBJECT (hpaned), - (GWeakNotify)pgd_layers_free, - (gpointer)demo); - - return hpaned; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/layers.h b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/layers.h deleted file mode 100644 index 88b43c38f8a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/layers.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <poppler.h> - -#ifndef _LAYERS_H_ -#define _LAYERS_H_ - -G_BEGIN_DECLS - -GtkWidget *pgd_layers_create_widget (PopplerDocument *document); - -G_END_DECLS - -#endif /* _LAYERS_H_ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/links.c b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/links.c deleted file mode 100644 index 6cb4a5df621..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/links.c +++ /dev/null @@ -1,289 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> - -#include "links.h" -#include "utils.h" - -enum { - LINKS_ACTION_TYPE_COLUMN, - LINKS_X1_COLUMN, - LINKS_Y1_COLUMN, - LINKS_X2_COLUMN, - LINKS_Y2_COLUMN, - LINKS_ACTION_COLUMN, - N_COLUMNS -}; - -typedef struct { - PopplerDocument *doc; - - GtkListStore *model; - GtkWidget *action_view; - GtkWidget *timer_label; - - gint page; -} PgdLinksDemo; - -static void -pgd_links_free (PgdLinksDemo *demo) -{ - if (!demo) - return; - - if (demo->doc) { - g_object_unref (demo->doc); - demo->doc = NULL; - } - - if (demo->model) { - g_object_unref (demo->model); - demo->model = NULL; - } - - g_free (demo); -} - -static void -pgd_links_get_links (GtkWidget *button, - PgdLinksDemo *demo) -{ - PopplerPage *page; - GList *mapping, *l; - gint n_links; - GTimer *timer; - - gtk_list_store_clear (demo->model); - pgd_action_view_set_action (demo->action_view, NULL); - - page = poppler_document_get_page (demo->doc, demo->page); - if (!page) - return; - - timer = g_timer_new (); - mapping = poppler_page_get_link_mapping (page); - g_timer_stop (timer); - - n_links = g_list_length (mapping); - if (n_links > 0) { - gchar *str; - - str = g_strdup_printf ("<i>%d links found in %.4f seconds</i>", - n_links, g_timer_elapsed (timer, NULL)); - gtk_label_set_markup (GTK_LABEL (demo->timer_label), str); - g_free (str); - } else { - gtk_label_set_markup (GTK_LABEL (demo->timer_label), "<i>No links found</i>"); - } - - g_timer_destroy (timer); - - for (l = mapping; l; l = g_list_next (l)) { - PopplerLinkMapping *lmapping; - PopplerAction *action; - GEnumValue *enum_value; - GtkTreeIter iter; - gchar *x1, *y1, *x2, *y2; - - lmapping = (PopplerLinkMapping *)l->data; - action = poppler_action_copy (lmapping->action); - enum_value = g_enum_get_value ((GEnumClass *) g_type_class_ref (POPPLER_TYPE_ACTION_TYPE), action->type); - - x1 = g_strdup_printf ("%.2f", lmapping->area.x1); - y1 = g_strdup_printf ("%.2f", lmapping->area.y1); - x2 = g_strdup_printf ("%.2f", lmapping->area.x2); - y2 = g_strdup_printf ("%.2f", lmapping->area.y2); - - gtk_list_store_append (demo->model, &iter); - gtk_list_store_set (demo->model, &iter, - LINKS_ACTION_TYPE_COLUMN, enum_value->value_name, - LINKS_X1_COLUMN, x1, - LINKS_Y1_COLUMN, y1, - LINKS_X2_COLUMN, x2, - LINKS_Y2_COLUMN, y2, - LINKS_ACTION_COLUMN, action, - -1); - g_free (x1); - g_free (y1); - g_free (x2); - g_free (y2); - - g_object_weak_ref (G_OBJECT (demo->model), - (GWeakNotify)poppler_action_free, - action); - } - - poppler_page_free_link_mapping (mapping); - g_object_unref (page); -} - -static void -pgd_links_page_selector_value_changed (GtkSpinButton *spinbutton, - PgdLinksDemo *demo) -{ - demo->page = (gint)gtk_spin_button_get_value (spinbutton) - 1; -} - -static void -pgd_links_selection_changed (GtkTreeSelection *treeselection, - PgdLinksDemo *demo) -{ - GtkTreeModel *model; - GtkTreeIter iter; - - if (gtk_tree_selection_get_selected (treeselection, &model, &iter)) { - PopplerAction *action; - - gtk_tree_model_get (model, &iter, - LINKS_ACTION_COLUMN, &action, - -1); - pgd_action_view_set_action (demo->action_view, action); - } -} - -GtkWidget * -pgd_links_create_widget (PopplerDocument *document) -{ - PgdLinksDemo *demo; - GtkWidget *label; - GtkWidget *vbox; - GtkWidget *hbox, *page_selector; - GtkWidget *button; - GtkWidget *hpaned; - GtkWidget *swindow, *treeview; - GtkTreeSelection *selection; - GtkCellRenderer *renderer; - gchar *str; - gint n_pages; - - demo = g_new0 (PgdLinksDemo, 1); - - demo->doc = g_object_ref (document); - - n_pages = poppler_document_get_n_pages (document); - - vbox = gtk_vbox_new (FALSE, 12); - - hbox = gtk_hbox_new (FALSE, 6); - - label = gtk_label_new ("Page:"); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); - gtk_widget_show (label); - - page_selector = gtk_spin_button_new_with_range (1, n_pages, 1); - g_signal_connect (G_OBJECT (page_selector), "value-changed", - G_CALLBACK (pgd_links_page_selector_value_changed), - (gpointer)demo); - gtk_box_pack_start (GTK_BOX (hbox), page_selector, FALSE, TRUE, 0); - gtk_widget_show (page_selector); - - str = g_strdup_printf ("of %d", n_pages); - label = gtk_label_new (str); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); - gtk_widget_show (label); - g_free (str); - - button = gtk_button_new_with_label ("Get Links"); - g_signal_connect (G_OBJECT (button), "clicked", - G_CALLBACK (pgd_links_get_links), - (gpointer)demo); - gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0); - gtk_widget_show (button); - - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); - gtk_widget_show (hbox); - - demo->timer_label = gtk_label_new (NULL); - gtk_label_set_markup (GTK_LABEL (demo->timer_label), "<i>No links found</i>"); - g_object_set (G_OBJECT (demo->timer_label), "xalign", 1.0, NULL); - gtk_box_pack_start (GTK_BOX (vbox), demo->timer_label, FALSE, TRUE, 0); - gtk_widget_show (demo->timer_label); - - hpaned = gtk_hpaned_new (); - - demo->action_view = pgd_action_view_new (document); - - swindow = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), - GTK_POLICY_AUTOMATIC, - GTK_POLICY_AUTOMATIC); - - demo->model = gtk_list_store_new (N_COLUMNS, - G_TYPE_STRING, G_TYPE_STRING, - G_TYPE_STRING, G_TYPE_STRING, - G_TYPE_STRING, G_TYPE_POINTER); - treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (demo->model)); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 0, "Action Type", - renderer, - "text", LINKS_ACTION_TYPE_COLUMN, - NULL); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 1, "X1", - renderer, - "text", LINKS_X1_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 2, "Y1", - renderer, - "text", LINKS_Y1_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 3, "X2", - renderer, - "text", LINKS_X2_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 4, "Y2", - renderer, - "text", LINKS_Y2_COLUMN, - NULL); - - selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview)); - g_signal_connect (G_OBJECT (selection), "changed", - G_CALLBACK (pgd_links_selection_changed), - (gpointer)demo); - - gtk_container_add (GTK_CONTAINER (swindow), treeview); - gtk_widget_show (treeview); - - gtk_paned_add1 (GTK_PANED (hpaned), swindow); - gtk_widget_show (swindow); - - gtk_paned_add2 (GTK_PANED (hpaned), demo->action_view); - gtk_widget_show (demo->action_view); - - gtk_paned_set_position (GTK_PANED (hpaned), 300); - - gtk_box_pack_start (GTK_BOX (vbox), hpaned, TRUE, TRUE, 0); - gtk_widget_show (hpaned); - - g_object_weak_ref (G_OBJECT (vbox), - (GWeakNotify)pgd_links_free, - demo); - - return vbox; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/links.h b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/links.h deleted file mode 100644 index b7dbaeb49ca..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/links.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <poppler.h> - -#ifndef _LINKS_H_ -#define _LINKS_H_ - -G_BEGIN_DECLS - -GtkWidget *pgd_links_create_widget (PopplerDocument *document); - -G_END_DECLS - -#endif /* _LINKS_H_ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/main.c b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/main.c deleted file mode 100644 index 3026c6cf5e2..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/main.c +++ /dev/null @@ -1,247 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <poppler.h> -#include <string.h> - -#include "info.h" -#include "fonts.h" -#include "render.h" -#include "page.h" -#include "outline.h" -#include "links.h" -#include "forms.h" -#include "transitions.h" -#include "images.h" -#include "annots.h" -#include "attachments.h" -#include "layers.h" -#include "text.h" -#include "find.h" - -enum { - PGD_TITLE_COLUMN, - PGD_NPAGE_COLUMN, - PGD_WIDGET_COLUMN, - N_COLUMNS -}; - -typedef struct { - const gchar *name; - GtkWidget *(* create_widget) (PopplerDocument *document); -} PopplerGlibDemo; - -static const PopplerGlibDemo demo_list[] = { - { "Info", pgd_info_create_widget }, - { "Fonts", pgd_fonts_create_widget }, - { "Render", pgd_render_create_widget }, - { "Page Info", pgd_page_create_widget }, - { "Outline", pgd_outline_create_widget }, - { "Links", pgd_links_create_widget }, - { "Forms", pgd_forms_create_widget }, - { "Page Transitions", pgd_transitions_create_widget }, - { "Images", pgd_images_create_widget }, - { "Annots", pgd_annots_create_widget }, - { "Attachments", pgd_attachments_create_widget }, - { "Layers", pgd_layers_create_widget }, - { "Text", pgd_text_create_widget }, - { "Find", pgd_find_create_widget } -}; - -static void -pgd_demo_changed (GtkTreeSelection *selection, - GtkNotebook *notebook) -{ - GtkTreeModel *model; - GtkTreeIter iter; - - if (gtk_tree_selection_get_selected (selection, &model, &iter)) { - gint n_page; - - gtk_tree_model_get (model, &iter, - PGD_NPAGE_COLUMN, &n_page, - -1); - gtk_notebook_set_current_page (notebook, n_page); - } -} - -static GtkWidget * -pgd_demo_list_create (void) -{ - GtkWidget *treeview; - GtkListStore *model; - GtkCellRenderer *renderer; - gint i; - - model = gtk_list_store_new (N_COLUMNS, - G_TYPE_STRING, - G_TYPE_INT, - G_TYPE_POINTER); - treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model)); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 0, "Demos", - renderer, - "text", PGD_TITLE_COLUMN, - NULL); - - for (i = 0; i < G_N_ELEMENTS (demo_list); i++) { - GtkTreeIter iter; - - gtk_list_store_append (model, &iter); - gtk_list_store_set (model, &iter, - PGD_TITLE_COLUMN, demo_list[i].name, - PGD_NPAGE_COLUMN, i, - -1); - } - - g_object_unref (model); - - return treeview; -} - -static GtkWidget * -pdg_demo_notebook_create (PopplerDocument *document) -{ - GtkWidget *notebook; - gint i; - - notebook = gtk_notebook_new (); - gtk_notebook_set_show_tabs (GTK_NOTEBOOK (notebook), FALSE); - gtk_notebook_set_show_border (GTK_NOTEBOOK (notebook), FALSE); - - for (i = 0; i < G_N_ELEMENTS (demo_list); i++) { - GtkWidget *demo_widget; - - demo_widget = demo_list[i].create_widget (document); - gtk_notebook_append_page (GTK_NOTEBOOK (notebook), demo_widget, NULL); - gtk_widget_show (demo_widget); - } - - return notebook; -} - -gint main (gint argc, gchar **argv) -{ - PopplerDocument *document; - GtkWidget *win; - GtkWidget *hbox; - GtkWidget *notebook; - GtkWidget *treeview; - GtkTreeSelection *selection; - gchar *uri; - GTimer *timer; - GError *error = NULL; - - if (argc != 2) { - g_print ("Usage: poppler-glib-demo FILE\n"); - return 1; - } - - if (!g_thread_supported ()) - g_thread_init (NULL); - - gtk_init (&argc, &argv); - -#if GLIB_CHECK_VERSION (2,15,0) - GFile *file; - - file = g_file_new_for_commandline_arg (argv[1]); - uri = g_file_get_uri (file); - g_object_unref (file); -#else - if (g_path_is_absolute (argv[1])) { - uri = g_filename_to_uri (argv[1], NULL, &error); - } else if (g_ascii_strncasecmp (argv[1], "file://", strlen ("file://")) == 0) { - uri = g_strdup (argv[1]); - } else if (!g_strrstr (argv[1], "://")) { - gchar *dir; - gchar *filename; - - dir = g_get_current_dir (); - filename = g_build_filename (dir, argv[1], NULL); - g_free (dir); - - uri = g_filename_to_uri (filename, NULL, &error); - g_free (filename); - } else { - g_print ("Error: unsupported uri\n"); - - return 1; - } - - if (error) { - g_print ("Error: %s\n", error->message); - g_error_free (error); - - return 1; - } -#endif /* GLIB_CHECK_VERSION */ - - timer = g_timer_new (); - document = poppler_document_new_from_file (uri, NULL, &error); - g_timer_stop (timer); - if (error) { - g_print ("Error: %s\n", error->message); - g_error_free (error); - g_free (uri); - - return 1; - } - - g_free (uri); - - g_print ("Document successfully loaded in %.4f seconds\n", - g_timer_elapsed (timer, NULL)); - g_timer_destroy (timer); - - /* Main window */ - win = gtk_window_new (GTK_WINDOW_TOPLEVEL); - gtk_window_set_default_size (GTK_WINDOW (win), 600, 600); - gtk_window_set_title (GTK_WINDOW (win), "Poppler GLib Demo"); - g_signal_connect (G_OBJECT (win), "delete-event", - G_CALLBACK (gtk_main_quit), NULL); - - hbox = gtk_hbox_new (FALSE, 6); - - treeview = pgd_demo_list_create (); - gtk_box_pack_start (GTK_BOX (hbox), treeview, FALSE, TRUE, 0); - gtk_widget_show (treeview); - - notebook = pdg_demo_notebook_create (document); - gtk_box_pack_start (GTK_BOX (hbox), notebook, TRUE, TRUE, 0); - gtk_widget_show (notebook); - - selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview)); - g_signal_connect (G_OBJECT (selection), "changed", - G_CALLBACK (pgd_demo_changed), - (gpointer) notebook); - - gtk_container_add (GTK_CONTAINER (win), hbox); - gtk_widget_show (hbox); - - gtk_widget_show (win); - - gtk_main (); - - g_object_unref (document); - - return 0; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/outline.c b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/outline.c deleted file mode 100644 index 5dc71892513..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/outline.c +++ /dev/null @@ -1,218 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> - -#include "outline.h" -#include "utils.h" - -enum { - OUTLINE_TITLE_COLUMN, - OUTLINE_ACTION_TYPE_COLUMN, - OUTLINE_EXPAND_COLUMN, - OUTLINE_ACTION_COLUMN, - N_COLUMNS -}; - -static void -build_tree (PopplerDocument *document, - GtkTreeModel *model, - GtkTreeIter *parent, - PopplerIndexIter *iter) -{ - - do { - GtkTreeIter tree_iter; - PopplerIndexIter *child; - PopplerAction *action; - gboolean expand; - gchar *markup; - GEnumValue *enum_value; - - action = poppler_index_iter_get_action (iter); - expand = poppler_index_iter_is_open (iter); - - if (!action) - continue; - - markup = g_markup_escape_text (action->any.title, -1); - enum_value = g_enum_get_value ((GEnumClass *) g_type_class_ref (POPPLER_TYPE_ACTION_TYPE), action->type); - - if (action->type == POPPLER_ACTION_GOTO_DEST && - action->goto_dest.dest->type == POPPLER_DEST_NAMED) { - /* TODO */ - } - - gtk_tree_store_append (GTK_TREE_STORE (model), &tree_iter, parent); - gtk_tree_store_set (GTK_TREE_STORE (model), &tree_iter, - OUTLINE_TITLE_COLUMN, markup, - OUTLINE_ACTION_TYPE_COLUMN, enum_value->value_name, - OUTLINE_EXPAND_COLUMN, expand, - OUTLINE_ACTION_COLUMN, action, - -1); - g_object_weak_ref (G_OBJECT (model), - (GWeakNotify)poppler_action_free, - action); - - g_free (markup); - - child = poppler_index_iter_get_child (iter); - if (child) - build_tree (document, model, &tree_iter, child); - poppler_index_iter_free (child); - } while (poppler_index_iter_next (iter)); -} - -GtkTreeModel * -pgd_outline_create_model (PopplerDocument *document) -{ - GtkTreeModel *model; - PopplerIndexIter *iter; - - iter = poppler_index_iter_new (document); - if (iter) { - model = GTK_TREE_MODEL ( - gtk_tree_store_new (N_COLUMNS, - G_TYPE_STRING, G_TYPE_STRING, - G_TYPE_BOOLEAN, G_TYPE_POINTER)); - build_tree (document, model, NULL, iter); - poppler_index_iter_free (iter); - } else { - GtkTreeIter tree_iter; - gchar *markup; - - model = GTK_TREE_MODEL (gtk_list_store_new (1, G_TYPE_STRING)); - gtk_list_store_append (GTK_LIST_STORE (model), &tree_iter); - markup = g_strdup_printf ("<span size=\"larger\" style=\"italic\">%s</span>", - "The document doesn't contain outline"); - gtk_list_store_set (GTK_LIST_STORE (model), &tree_iter, - 0, markup, -1); - g_free (markup); - } - - return model; -} - -static void -expand_open_links (GtkTreeView *tree_view, - GtkTreeModel *model, - GtkTreeIter *parent) -{ - GtkTreeIter iter; - gboolean expand; - - if (gtk_tree_model_iter_children (model, &iter, parent)) { - do { - gtk_tree_model_get (model, &iter, - OUTLINE_EXPAND_COLUMN, &expand, - -1); - if (expand) { - GtkTreePath *path; - - path = gtk_tree_model_get_path (model, &iter); - gtk_tree_view_expand_row (tree_view, path, FALSE); - gtk_tree_path_free (path); - } - - expand_open_links (tree_view, model, &iter); - } while (gtk_tree_model_iter_next (model, &iter)); - } -} - -static void -pgd_outline_selection_changed (GtkTreeSelection *treeselection, - GtkWidget *action_view) -{ - GtkTreeModel *model; - GtkTreeIter iter; - - if (gtk_tree_selection_get_selected (treeselection, &model, &iter)) { - PopplerAction *action; - - gtk_tree_model_get (model, &iter, - OUTLINE_ACTION_COLUMN, &action, - -1); - pgd_action_view_set_action (action_view, action); - } -} - -GtkWidget * -pgd_outline_create_widget (PopplerDocument *document) -{ - GtkWidget *swindow; - GtkWidget *treeview; - GtkTreeModel *model; - GtkCellRenderer *renderer; - GtkTreeSelection *selection; - GtkWidget *hpaned, *action; - - hpaned = gtk_hpaned_new (); - - action = pgd_action_view_new (document); - - swindow = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), - GTK_POLICY_AUTOMATIC, - GTK_POLICY_AUTOMATIC); - - model = pgd_outline_create_model (document); - treeview = gtk_tree_view_new_with_model (model); - g_object_unref (model); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 0, "Title", - renderer, - "markup", OUTLINE_TITLE_COLUMN, - NULL); - g_object_set (G_OBJECT (renderer), "ellipsize", PANGO_ELLIPSIZE_END, NULL); - g_object_set (G_OBJECT (gtk_tree_view_get_column (GTK_TREE_VIEW (treeview), 0)), - "expand", TRUE, NULL); - - if (GTK_IS_TREE_STORE (model)) { - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 1, "Action Type", - renderer, - "text", OUTLINE_ACTION_TYPE_COLUMN, - NULL); - - expand_open_links (GTK_TREE_VIEW (treeview), model, NULL); - - selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview)); - g_signal_connect (G_OBJECT (selection), "changed", - G_CALLBACK (pgd_outline_selection_changed), - (gpointer)action); - } else { - gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview)), - GTK_SELECTION_NONE); - } - - gtk_container_add (GTK_CONTAINER (swindow), treeview); - gtk_widget_show (treeview); - - gtk_paned_add1 (GTK_PANED (hpaned), swindow); - gtk_widget_show (swindow); - - gtk_paned_add2 (GTK_PANED (hpaned), action); - gtk_widget_show (action); - - gtk_paned_set_position (GTK_PANED (hpaned), 300); - - return hpaned; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/outline.h b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/outline.h deleted file mode 100644 index 61b8238b742..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/outline.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <poppler.h> - -#ifndef _OUTLINE_H_ -#define _OUTLINE_H_ - -G_BEGIN_DECLS - -GtkWidget *pgd_outline_create_widget (PopplerDocument *document); - -G_END_DECLS - -#endif /* _OUTLINE_H_ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/page.c b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/page.c deleted file mode 100644 index ee034f0d8b4..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/page.c +++ /dev/null @@ -1,335 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "config.h" - -#include <gtk/gtk.h> - -#include "page.h" -#include "utils.h" - -typedef struct { - PopplerDocument *doc; - - GtkWidget *index; - GtkWidget *label; - GtkWidget *size; - GtkWidget *duration; - GtkWidget *thumbnail; - GtkWidget *thumbnail_size; - - gint page; -} PgdPageDemo; - -static void -pgd_page_free (PgdPageDemo *demo) -{ - if (!demo) - return; - - if (demo->doc) { - g_object_unref (demo->doc); - demo->doc = NULL; - } - - g_free (demo); -} - -#ifndef POPPLER_WITH_GDK -static void -image_set_from_surface (GtkImage *gtkimage, - cairo_surface_t *surface) -{ - GdkPixbuf *pixbuf; - cairo_surface_t *image; - cairo_t *cr; - gboolean has_alpha; - gint width, height; - cairo_format_t surface_format; - gint pixbuf_n_channels; - gint pixbuf_rowstride; - guchar *pixbuf_pixels; - gint x, y; - - width = cairo_image_surface_get_width (surface); - height = cairo_image_surface_get_height (surface); - - surface_format = cairo_image_surface_get_format (surface); - has_alpha = (surface_format == CAIRO_FORMAT_ARGB32); - - pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, - TRUE, 8, - width, height); - pixbuf_n_channels = gdk_pixbuf_get_n_channels (pixbuf); - pixbuf_rowstride = gdk_pixbuf_get_rowstride (pixbuf); - pixbuf_pixels = gdk_pixbuf_get_pixels (pixbuf); - - image = cairo_image_surface_create_for_data (pixbuf_pixels, - surface_format, - width, height, - pixbuf_rowstride); - cr = cairo_create (image); - cairo_set_source_surface (cr, surface, 0, 0); - - if (has_alpha) - cairo_mask_surface (cr, surface, 0, 0); - else - cairo_paint (cr); - - cairo_destroy (cr); - cairo_surface_destroy (image); - - for (y = 0; y < height; y++) { - guchar *p = pixbuf_pixels + y * pixbuf_rowstride; - - for (x = 0; x < width; x++) { - guchar tmp; - -#if G_BYTE_ORDER == G_LITTLE_ENDIAN - tmp = p[0]; - p[0] = p[2]; - p[2] = tmp; - p[3] = (has_alpha) ? p[3] : 0xff; -#else - tmp = p[0]; - p[0] = (has_alpha) ? p[3] : 0xff; - p[3] = p[2]; - p[2] = p[1]; - p[1] = tmp; -#endif - p += pixbuf_n_channels; - } - } - - gtk_image_set_from_pixbuf (gtkimage, pixbuf); - g_object_unref (pixbuf); -} -#endif /* !POPPLER_WITH_GDK */ - -static void -pgd_page_set_page (PgdPageDemo *demo, - PopplerPage *page) -{ -#ifdef POPPLER_WITH_GDK - GdkPixbuf *thumbnail; -#else - cairo_surface_t *thumbnail; -#endif - gchar *str; - - str = page ? g_strdup_printf ("%d", poppler_page_get_index (page)) : NULL; - gtk_label_set_text (GTK_LABEL (demo->index), str); - g_free (str); - - if (page) { - g_object_get (G_OBJECT (page), "label", &str, NULL); - gtk_label_set_text (GTK_LABEL (demo->label), str); - g_free (str); - } else { - gtk_label_set_text (GTK_LABEL (demo->label), NULL); - } - - if (page) { - gdouble width, height; - - poppler_page_get_size (page, &width, &height); - str = g_strdup_printf ("%.2f x %.2f", width, height); - gtk_label_set_text (GTK_LABEL (demo->size), str); - g_free (str); - } else { - gtk_label_set_text (GTK_LABEL (demo->size), NULL); - } - - str = page ? g_strdup_printf ("%.2f seconds", poppler_page_get_duration (page)) : NULL; - gtk_label_set_text (GTK_LABEL (demo->duration), str); - g_free (str); - -#ifdef POPPLER_WITH_GDK - thumbnail = page ? poppler_page_get_thumbnail_pixbuf (page) : NULL; -#else - thumbnail = page ? poppler_page_get_thumbnail (page) : NULL; -#endif - if (thumbnail) { - gint width, height; - - poppler_page_get_thumbnail_size (page, &width, &height); - str = g_strdup_printf ("%d x %d", width, height); - gtk_label_set_text (GTK_LABEL (demo->thumbnail_size), str); - g_free (str); - -#ifdef POPPLER_WITH_GDK - gtk_image_set_from_pixbuf (GTK_IMAGE (demo->thumbnail), thumbnail); - g_object_unref (thumbnail); -#else - image_set_from_surface (GTK_IMAGE (demo->thumbnail), thumbnail); - cairo_surface_destroy (thumbnail); -#endif - } else { - str = g_strdup ("<i>No thumbnail found</i>"); - gtk_label_set_markup (GTK_LABEL (demo->thumbnail_size), str); - g_free (str); - - gtk_image_set_from_stock (GTK_IMAGE (demo->thumbnail), - GTK_STOCK_MISSING_IMAGE, - GTK_ICON_SIZE_DIALOG); - } -} - -static void -pgd_page_get_info (GtkWidget *button, - PgdPageDemo *demo) -{ - PopplerPage *page; - - page = poppler_document_get_page (demo->doc, demo->page); - pgd_page_set_page (demo, page); - g_object_unref (page); -} - -static void -pgd_page_page_selector_value_changed (GtkSpinButton *spinbutton, - PgdPageDemo *demo) -{ - demo->page = (gint)gtk_spin_button_get_value (spinbutton) - 1; -} - -GtkWidget * -pgd_page_create_widget (PopplerDocument *document) -{ - PgdPageDemo *demo; - GtkWidget *vbox; - GtkWidget *hbox, *page_selector; - GtkWidget *button; - GtkWidget *frame, *alignment; - GtkWidget *table; - GtkWidget *label; - GtkWidget *thumnail_box; - gchar *str; - gint n_pages; - gint row = 0; - - demo = g_new0 (PgdPageDemo, 1); - - demo->doc = g_object_ref (document); - - n_pages = poppler_document_get_n_pages (document); - - vbox = gtk_vbox_new (FALSE, 12); - - hbox = gtk_hbox_new (FALSE, 6); - - label = gtk_label_new ("Page:"); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); - gtk_widget_show (label); - - page_selector = gtk_spin_button_new_with_range (1, n_pages, 1); - g_signal_connect (G_OBJECT (page_selector), "value-changed", - G_CALLBACK (pgd_page_page_selector_value_changed), - (gpointer)demo); - gtk_box_pack_start (GTK_BOX (hbox), page_selector, FALSE, TRUE, 0); - gtk_widget_show (page_selector); - - str = g_strdup_printf ("of %d", n_pages); - label = gtk_label_new (str); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); - gtk_widget_show (label); - g_free (str); - - button = gtk_button_new_with_label ("Get Info"); - g_signal_connect (G_OBJECT (button), "clicked", - G_CALLBACK (pgd_page_get_info), - (gpointer)demo); - gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0); - gtk_widget_show (button); - - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); - gtk_widget_show (hbox); - - hbox = gtk_hbox_new (FALSE, 6); - - frame = gtk_frame_new (NULL); - gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE); - label = gtk_label_new (NULL); - gtk_label_set_markup (GTK_LABEL (label), "<b>Page Properties</b>"); - gtk_frame_set_label_widget (GTK_FRAME (frame), label); - gtk_widget_show (label); - - alignment = gtk_alignment_new (0.5, 0.5, 1, 1); - gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 5, 5, 12, 5); - gtk_container_add (GTK_CONTAINER (frame), alignment); - gtk_widget_show (alignment); - - table = gtk_table_new (3, 2, FALSE); - - gtk_table_set_col_spacings (GTK_TABLE (table), 6); - gtk_table_set_row_spacings (GTK_TABLE (table), 6); - - pgd_table_add_property_with_value_widget (GTK_TABLE (table), "<b>Page Index:</b>", - &(demo->index), NULL, &row); - pgd_table_add_property_with_value_widget (GTK_TABLE (table), "<b>Page Label:</b>", - &(demo->label), NULL, &row); - pgd_table_add_property_with_value_widget (GTK_TABLE (table), "<b>Page Size:</b>", - &(demo->size), NULL, &row); - pgd_table_add_property_with_value_widget (GTK_TABLE (table), "<b>Page Duration:</b>", - &(demo->duration), NULL, &row); - - gtk_container_add (GTK_CONTAINER (alignment), table); - gtk_widget_show (table); - - gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); - gtk_widget_show (frame); - - frame = gtk_frame_new (NULL); - gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE); - gtk_frame_set_label_align (GTK_FRAME (frame), 0.5, 0.5); - label = gtk_label_new (NULL); - gtk_label_set_markup (GTK_LABEL (label), "<b>Page Thumbnail</b>"); - gtk_frame_set_label_widget (GTK_FRAME (frame), label); - gtk_widget_show (label); - - alignment = gtk_alignment_new (0.5, 0.5, 1, 1); - gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 5, 5, 12, 5); - gtk_container_add (GTK_CONTAINER (frame), alignment); - gtk_widget_show (alignment); - - thumnail_box = gtk_vbox_new (FALSE, 6); - - demo->thumbnail = gtk_image_new (); - gtk_box_pack_start (GTK_BOX (thumnail_box), demo->thumbnail, TRUE, TRUE, 0); - gtk_widget_show (demo->thumbnail); - - demo->thumbnail_size = gtk_label_new (NULL); - g_object_set (G_OBJECT (demo->thumbnail_size), "xalign", 0.5, NULL); - gtk_box_pack_start (GTK_BOX (thumnail_box), demo->thumbnail_size, TRUE, TRUE, 0); - gtk_widget_show (demo->thumbnail_size); - - gtk_container_add (GTK_CONTAINER (alignment), thumnail_box); - gtk_widget_show (thumnail_box); - - gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); - gtk_widget_show (frame); - - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); - gtk_widget_show (hbox); - - g_object_weak_ref (G_OBJECT (vbox), - (GWeakNotify)pgd_page_free, - (gpointer)demo); - - return vbox; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/page.h b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/page.h deleted file mode 100644 index 5b86a81d2e6..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/page.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <poppler.h> - -#ifndef _PAGE_H_ -#define _PAGE_H_ - -G_BEGIN_DECLS - -GtkWidget *pgd_page_create_widget (PopplerDocument *document); - -G_END_DECLS - -#endif /* _PAGE_H_ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/render.c b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/render.c deleted file mode 100644 index 610d7d6338c..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/render.c +++ /dev/null @@ -1,531 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "config.h" - -#include <gtk/gtk.h> -#include <cairo.h> - -#include "render.h" - -typedef enum { -#if defined (HAVE_CAIRO) - PGD_RENDER_CAIRO, -#endif - PGD_RENDER_PIXBUF -} PgdRenderMode; - -typedef struct { - PopplerDocument *doc; - - /* Properties */ - PgdRenderMode mode; - gint page; - gdouble scale; - gint rotate; - GdkRectangle slice; - - GtkWidget *swindow; - GtkWidget *darea; - GtkWidget *slice_x; - GtkWidget *slice_y; - GtkWidget *slice_w; - GtkWidget *slice_h; - GtkWidget *timer_label; - -#if defined (HAVE_CAIRO) - cairo_surface_t *surface; -#endif - GdkPixbuf *pixbuf; -} PgdRenderDemo; - -static void -pgd_render_free (PgdRenderDemo *demo) -{ - if (!demo) - return; - - if (demo->doc) { - g_object_unref (demo->doc); - demo->doc = NULL; - } - -#if defined (HAVE_CAIRO) - if (demo->surface) { - cairo_surface_destroy (demo->surface); - demo->surface = NULL; - } -#endif - - if (demo->pixbuf) { - g_object_unref (demo->pixbuf); - demo->pixbuf = NULL; - } - - g_free (demo); -} - -static gboolean -pgd_render_drawing_area_expose (GtkWidget *area, - GdkEventExpose *event, - PgdRenderDemo *demo) -{ -#if defined (HAVE_CAIRO) - if (demo->mode == PGD_RENDER_CAIRO && !demo->surface) - return FALSE; -#endif - - if (demo->mode == PGD_RENDER_PIXBUF && !demo->pixbuf) - return FALSE; - - gdk_window_clear (area->window); - -#if defined (HAVE_CAIRO) - if (demo->mode == PGD_RENDER_CAIRO) { - cairo_t *cr; - - cr = gdk_cairo_create (area->window); - cairo_set_source_surface (cr, demo->surface, 0, 0); - cairo_paint (cr); - cairo_destroy (cr); - } else if (demo->mode == PGD_RENDER_PIXBUF) { -#endif - gdk_draw_pixbuf (area->window, - area->style->fg_gc[GTK_STATE_NORMAL], - demo->pixbuf, - 0, 0, - 0, 0, - gdk_pixbuf_get_width (demo->pixbuf), - gdk_pixbuf_get_height (demo->pixbuf), - GDK_RGB_DITHER_NORMAL, - 0, 0); -#if defined (HAVE_CAIRO) - } else { - g_assert_not_reached (); - } -#endif - - return TRUE; -} - -static void -pgd_render_start (GtkButton *button, - PgdRenderDemo *demo) -{ - PopplerPage *page; - gdouble page_width, page_height; - gdouble width, height; - gint x, y; - gchar *str; - GTimer *timer; - - page = poppler_document_get_page (demo->doc, demo->page); - if (!page) - return; - -#if defined (HAVE_CAIRO) - if (demo->surface) - cairo_surface_destroy (demo->surface); - demo->surface = NULL; -#endif - - if (demo->pixbuf) - g_object_unref (demo->pixbuf); - demo->pixbuf = NULL; - - poppler_page_get_size (page, &page_width, &page_height); - - if (demo->rotate == 0 || demo->rotate == 180) { - width = demo->slice.width * demo->scale; - height = demo->slice.height * demo->scale; - x = demo->slice.x * demo->scale; - y = demo->slice.y * demo->scale; - } else { - width = demo->slice.height * demo->scale; - height = demo->slice.width * demo->scale; - x = demo->slice.y * demo->scale; - y = demo->slice.x * demo->scale; - } - -#if defined (HAVE_CAIRO) - if (demo->mode == PGD_RENDER_CAIRO) { - cairo_t *cr; - - timer = g_timer_new (); - demo->surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, - width, height); - cr = cairo_create (demo->surface); - - cairo_save (cr); - switch (demo->rotate) { - case 90: - cairo_translate (cr, x + width, -y); - break; - case 180: - cairo_translate (cr, x + width, y + height); - break; - case 270: - cairo_translate (cr, -x, y + height); - break; - default: - cairo_translate (cr, -x, -y); - } - - if (demo->scale != 1.0) - cairo_scale (cr, demo->scale, demo->scale); - - if (demo->rotate != 0) - cairo_rotate (cr, demo->rotate * G_PI / 180.0); - - poppler_page_render (page, cr); - cairo_restore (cr); - - cairo_set_operator (cr, CAIRO_OPERATOR_DEST_OVER); - cairo_set_source_rgb (cr, 1., 1., 1.); - cairo_paint (cr); - - g_timer_stop (timer); - - cairo_destroy (cr); - } else if (demo->mode == PGD_RENDER_PIXBUF) { -#endif -#ifdef POPPLER_WITH_GDK - timer = g_timer_new (); - demo->pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, - FALSE, 8, width, height); - gdk_pixbuf_fill (demo->pixbuf, 0xffffff); - poppler_page_render_to_pixbuf (page, - x, y, - width, - height, - demo->scale, - demo->rotate, - demo->pixbuf); - g_timer_stop (timer); -#endif /* POPPLER_WITH_GDK */ -#if defined (HAVE_CAIRO) - } else { - g_assert_not_reached (); - } -#endif - g_object_unref (page); - - str = g_strdup_printf ("<i>Page rendered in %.4f seconds</i>", - g_timer_elapsed (timer, NULL)); - gtk_label_set_markup (GTK_LABEL (demo->timer_label), str); - g_free (str); - - g_timer_destroy (timer); - - gtk_widget_set_size_request (demo->darea, width, height); - gtk_widget_queue_draw (demo->darea); -} - -static void -pgd_render_slice_selector_setup (PgdRenderDemo *demo) -{ - PopplerPage *page; - gdouble width, height; - - page = poppler_document_get_page (demo->doc, demo->page); - if (!page) - return; - - poppler_page_get_size (page, &width, &height); - - gtk_spin_button_set_range (GTK_SPIN_BUTTON (demo->slice_x), 0, width); - gtk_spin_button_set_range (GTK_SPIN_BUTTON (demo->slice_y), 0, height); - gtk_spin_button_set_range (GTK_SPIN_BUTTON (demo->slice_w), 0, width); - gtk_spin_button_set_range (GTK_SPIN_BUTTON (demo->slice_h), 0, height); - - gtk_spin_button_set_value (GTK_SPIN_BUTTON (demo->slice_x), 0); - gtk_spin_button_set_value (GTK_SPIN_BUTTON (demo->slice_y), 0); - gtk_spin_button_set_value (GTK_SPIN_BUTTON (demo->slice_w), width); - gtk_spin_button_set_value (GTK_SPIN_BUTTON (demo->slice_h), height); - - g_object_unref (page); -} - -static void -pgd_render_page_selector_value_changed (GtkSpinButton *spinbutton, - PgdRenderDemo *demo) -{ - demo->page = (gint)gtk_spin_button_get_value (spinbutton) - 1; - pgd_render_slice_selector_setup (demo); -} - -static void -pgd_render_scale_selector_value_changed (GtkSpinButton *spinbutton, - PgdRenderDemo *demo) -{ - demo->scale = gtk_spin_button_get_value (spinbutton); -} - -static void -pgd_render_rotate_selector_changed (GtkComboBox *combobox, - PgdRenderDemo *demo) -{ - demo->rotate = gtk_combo_box_get_active (combobox) * 90; -} - -static void -pgd_render_mode_selector_changed (GtkComboBox *combobox, - PgdRenderDemo *demo) -{ - demo->mode = gtk_combo_box_get_active (combobox); -} - -static void -pgd_render_slice_selector_value_changed (GtkSpinButton *spinbutton, - PgdRenderDemo *demo) -{ - demo->slice.x = (gint)gtk_spin_button_get_value (GTK_SPIN_BUTTON (demo->slice_x)); - demo->slice.y = (gint)gtk_spin_button_get_value (GTK_SPIN_BUTTON (demo->slice_y)); - demo->slice.width = (gint)gtk_spin_button_get_value (GTK_SPIN_BUTTON (demo->slice_w)); - demo->slice.height = (gint)gtk_spin_button_get_value (GTK_SPIN_BUTTON (demo->slice_h)); -} - -GtkWidget * -pgd_render_properties_selector_create (PgdRenderDemo *demo) -{ - GtkWidget *hbox, *vbox; - GtkWidget *label; - GtkWidget *page_hbox, *page_selector; - GtkWidget *scale_hbox, *scale_selector; - GtkWidget *rotate_hbox, *rotate_selector; - GtkWidget *mode_hbox, *mode_selector; - GtkWidget *slice_hbox, *slice_selector; - GtkWidget *button; - gint n_pages; - gchar *str; - - n_pages = poppler_document_get_n_pages (demo->doc); - - vbox = gtk_vbox_new (FALSE, 6); - - hbox = gtk_hbox_new (FALSE, 12); - gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); - gtk_widget_show (hbox); - - page_hbox = gtk_hbox_new (FALSE, 6); - - label = gtk_label_new ("Page:"); - gtk_box_pack_start (GTK_BOX (page_hbox), label, TRUE, TRUE, 0); - gtk_widget_show (label); - - page_selector = gtk_spin_button_new_with_range (1, n_pages, 1); - g_signal_connect (G_OBJECT (page_selector), "value-changed", - G_CALLBACK (pgd_render_page_selector_value_changed), - (gpointer)demo); - gtk_box_pack_start (GTK_BOX (page_hbox), page_selector, TRUE, TRUE, 0); - gtk_widget_show (page_selector); - - str = g_strdup_printf ("of %d", n_pages); - label = gtk_label_new (str); - gtk_box_pack_start (GTK_BOX (page_hbox), label, TRUE, TRUE, 0); - gtk_widget_show (label); - g_free (str); - - gtk_box_pack_start (GTK_BOX (hbox), page_hbox, FALSE, TRUE, 0); - gtk_widget_show (page_hbox); - - scale_hbox = gtk_hbox_new (FALSE, 6); - - label = gtk_label_new ("Scale:"); - gtk_box_pack_start (GTK_BOX (scale_hbox), label, TRUE, TRUE, 0); - gtk_widget_show (label); - - scale_selector = gtk_spin_button_new_with_range (0, 10.0, 0.1); - gtk_spin_button_set_value (GTK_SPIN_BUTTON (scale_selector), 1.0); - g_signal_connect (G_OBJECT (scale_selector), "value-changed", - G_CALLBACK (pgd_render_scale_selector_value_changed), - (gpointer)demo); - gtk_box_pack_start (GTK_BOX (scale_hbox), scale_selector, TRUE, TRUE, 0); - gtk_widget_show (scale_selector); - - gtk_box_pack_start (GTK_BOX (hbox), scale_hbox, FALSE, TRUE, 0); - gtk_widget_show (scale_hbox); - - rotate_hbox = gtk_hbox_new (FALSE, 6); - - label = gtk_label_new ("Rotate:"); - gtk_box_pack_start (GTK_BOX (rotate_hbox), label, TRUE, TRUE, 0); - gtk_widget_show (label); - - rotate_selector = gtk_combo_box_new_text (); - gtk_combo_box_append_text (GTK_COMBO_BOX (rotate_selector), "0"); - gtk_combo_box_append_text (GTK_COMBO_BOX (rotate_selector), "90"); - gtk_combo_box_append_text (GTK_COMBO_BOX (rotate_selector), "180"); - gtk_combo_box_append_text (GTK_COMBO_BOX (rotate_selector), "270"); - gtk_combo_box_set_active (GTK_COMBO_BOX (rotate_selector), 0); - g_signal_connect (G_OBJECT (rotate_selector), "changed", - G_CALLBACK (pgd_render_rotate_selector_changed), - (gpointer)demo); - gtk_box_pack_start (GTK_BOX (rotate_hbox), rotate_selector, TRUE, TRUE, 0); - gtk_widget_show (rotate_selector); - - gtk_box_pack_start (GTK_BOX (hbox), rotate_hbox, FALSE, TRUE, 0); - gtk_widget_show (rotate_hbox); - - mode_hbox = gtk_hbox_new (FALSE, 6); - - label = gtk_label_new ("Mode:"); - gtk_box_pack_start (GTK_BOX (mode_hbox), label, TRUE, TRUE, 0); - gtk_widget_show (label); - - mode_selector = gtk_combo_box_new_text (); -#if defined (HAVE_CAIRO) - gtk_combo_box_append_text (GTK_COMBO_BOX (mode_selector), "cairo"); -#endif -#ifdef POPPLER_WITH_GDK - gtk_combo_box_append_text (GTK_COMBO_BOX (mode_selector), "pixbuf"); -#endif - gtk_combo_box_set_active (GTK_COMBO_BOX (mode_selector), 0); - g_signal_connect (G_OBJECT (mode_selector), "changed", - G_CALLBACK (pgd_render_mode_selector_changed), - (gpointer)demo); - gtk_box_pack_start (GTK_BOX (mode_hbox), mode_selector, TRUE, TRUE, 0); - gtk_widget_show (mode_selector); - - gtk_box_pack_start (GTK_BOX (hbox), mode_hbox, FALSE, TRUE, 0); - gtk_widget_show (mode_hbox); - - hbox = gtk_hbox_new (FALSE, 12); - gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); - gtk_widget_show (hbox); - - slice_hbox = gtk_hbox_new (FALSE, 6); - - label = gtk_label_new ("x:"); - gtk_box_pack_start (GTK_BOX (slice_hbox), label, TRUE, TRUE, 0); - gtk_widget_show (label); - - demo->slice_x = gtk_spin_button_new_with_range (0, 0, 1.0); - g_signal_connect (G_OBJECT (demo->slice_x), "value-changed", - G_CALLBACK (pgd_render_slice_selector_value_changed), - (gpointer)demo); - gtk_box_pack_start (GTK_BOX (slice_hbox), demo->slice_x, TRUE, TRUE, 0); - gtk_widget_show (demo->slice_x); - - gtk_box_pack_start (GTK_BOX (hbox), slice_hbox, FALSE, TRUE, 0); - gtk_widget_show (slice_hbox); - - slice_hbox = gtk_hbox_new (FALSE, 6); - - label = gtk_label_new ("y:"); - gtk_box_pack_start (GTK_BOX (slice_hbox), label, TRUE, TRUE, 0); - gtk_widget_show (label); - - demo->slice_y = gtk_spin_button_new_with_range (0, 0, 1.0); - g_signal_connect (G_OBJECT (demo->slice_y), "value-changed", - G_CALLBACK (pgd_render_slice_selector_value_changed), - (gpointer)demo); - gtk_box_pack_start (GTK_BOX (slice_hbox), demo->slice_y, TRUE, TRUE, 0); - gtk_widget_show (demo->slice_y); - - gtk_box_pack_start (GTK_BOX (hbox), slice_hbox, FALSE, TRUE, 0); - gtk_widget_show (slice_hbox); - - slice_hbox = gtk_hbox_new (FALSE, 6); - - label = gtk_label_new ("width:"); - gtk_box_pack_start (GTK_BOX (slice_hbox), label, TRUE, TRUE, 0); - gtk_widget_show (label); - - demo->slice_w = gtk_spin_button_new_with_range (0, 0, 1.0); - g_signal_connect (G_OBJECT (demo->slice_w), "value-changed", - G_CALLBACK (pgd_render_slice_selector_value_changed), - (gpointer)demo); - gtk_box_pack_start (GTK_BOX (slice_hbox), demo->slice_w, TRUE, TRUE, 0); - gtk_widget_show (demo->slice_w); - - gtk_box_pack_start (GTK_BOX (hbox), slice_hbox, FALSE, TRUE, 0); - gtk_widget_show (slice_hbox); - - slice_hbox = gtk_hbox_new (FALSE, 6); - - label = gtk_label_new ("height:"); - gtk_box_pack_start (GTK_BOX (slice_hbox), label, TRUE, TRUE, 0); - gtk_widget_show (label); - - demo->slice_h = gtk_spin_button_new_with_range (0, 0, 1.0); - g_signal_connect (G_OBJECT (demo->slice_h), "value-changed", - G_CALLBACK (pgd_render_slice_selector_value_changed), - (gpointer)demo); - gtk_box_pack_start (GTK_BOX (slice_hbox), demo->slice_h, TRUE, TRUE, 0); - gtk_widget_show (demo->slice_h); - - gtk_box_pack_start (GTK_BOX (hbox), slice_hbox, FALSE, TRUE, 0); - gtk_widget_show (slice_hbox); - - pgd_render_slice_selector_setup (demo); - - button = gtk_button_new_with_label ("Render"); - g_signal_connect (G_OBJECT (button), "clicked", - G_CALLBACK (pgd_render_start), - (gpointer)demo); - gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, TRUE, 0); - gtk_widget_show (button); - - demo->timer_label = gtk_label_new (NULL); - gtk_label_set_markup (GTK_LABEL (demo->timer_label), "<i>No page rendered</i>"); - g_object_set (G_OBJECT (demo->timer_label), "xalign", 1.0, NULL); - gtk_box_pack_end (GTK_BOX (vbox), demo->timer_label, FALSE, TRUE, 0); - gtk_widget_show (demo->timer_label); - - return vbox; -} - -GtkWidget * -pgd_render_create_widget (PopplerDocument *document) -{ - PgdRenderDemo *demo; - GtkWidget *vbox, *hbox; - - demo = g_new0 (PgdRenderDemo, 1); - - demo->doc = g_object_ref (document); - demo->scale = 1.0; - - vbox = gtk_vbox_new (FALSE, 6); - - hbox = pgd_render_properties_selector_create (demo); - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 6); - gtk_widget_show (hbox); - - demo->darea = gtk_drawing_area_new (); - g_signal_connect (G_OBJECT (demo->darea), "expose_event", - G_CALLBACK (pgd_render_drawing_area_expose), - (gpointer)demo); - - demo->swindow = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (demo->swindow), - GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); - gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (demo->swindow), - demo->darea); - gtk_widget_show (demo->darea); - - gtk_box_pack_start (GTK_BOX (vbox), demo->swindow, TRUE, TRUE, 0); - gtk_widget_show (demo->swindow); - - g_object_weak_ref (G_OBJECT (demo->swindow), - (GWeakNotify)pgd_render_free, - (gpointer)demo); - - return vbox; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/render.h b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/render.h deleted file mode 100644 index 46f70396d93..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/render.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <poppler.h> - -#ifndef _RENDER_H_ -#define _RENDER_H_ - -G_BEGIN_DECLS - -GtkWidget *pgd_render_create_widget (PopplerDocument *document); - -G_END_DECLS - -#endif /* _RENDER_H_ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/text.c b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/text.c deleted file mode 100644 index e11908217a6..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/text.c +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <string.h> - -#include "text.h" - -typedef struct { - PopplerDocument *doc; - - GtkWidget *timer_label; - GtkTextBuffer *buffer; - - gint page; -} PgdTextDemo; - -static void -pgd_text_free (PgdTextDemo *demo) -{ - if (!demo) - return; - - if (demo->doc) { - g_object_unref (demo->doc); - demo->doc = NULL; - } - - if (demo->buffer) { - g_object_unref (demo->buffer); - demo->buffer = NULL; - } - - g_free (demo); -} - -static void -pgd_text_get_text (GtkWidget *button, - PgdTextDemo *demo) -{ - PopplerPage *page; - PopplerRectangle rect; - gdouble width, height; - gchar *text; - GTimer *timer; - - page = poppler_document_get_page (demo->doc, demo->page); - if (!page) - return; - - poppler_page_get_size (page, &width, &height); - rect.x1 = rect.y1 = 0; - rect.x2 = width; - rect.y2 = height; - - timer = g_timer_new (); - text = poppler_page_get_text (page, POPPLER_SELECTION_GLYPH, &rect); - g_timer_stop (timer); - - if (text) { - gchar *str; - - str = g_strdup_printf ("<i>got text in %.4f seconds</i>", - g_timer_elapsed (timer, NULL)); - gtk_label_set_markup (GTK_LABEL (demo->timer_label), str); - g_free (str); - } else { - gtk_label_set_markup (GTK_LABEL (demo->timer_label), "<i>No text found</i>"); - } - - g_timer_destroy (timer); - g_object_unref (page); - - if (text) { - gtk_text_buffer_set_text (demo->buffer, text, strlen (text)); - g_free (text); - } -} - -static void -pgd_text_page_selector_value_changed (GtkSpinButton *spinbutton, - PgdTextDemo *demo) -{ - demo->page = (gint)gtk_spin_button_get_value (spinbutton) - 1; -} - -GtkWidget * -pgd_text_create_widget (PopplerDocument *document) -{ - PgdTextDemo *demo; - GtkWidget *label; - GtkWidget *vbox; - GtkWidget *hbox, *page_selector; - GtkWidget *button; - GtkWidget *swindow, *textview; - gchar *str; - gint n_pages; - - demo = g_new0 (PgdTextDemo, 1); - - demo->doc = g_object_ref (document); - - n_pages = poppler_document_get_n_pages (document); - - vbox = gtk_vbox_new (FALSE, 12); - - hbox = gtk_hbox_new (FALSE, 6); - - label = gtk_label_new ("Page:"); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); - gtk_widget_show (label); - - page_selector = gtk_spin_button_new_with_range (1, n_pages, 1); - g_signal_connect (G_OBJECT (page_selector), "value-changed", - G_CALLBACK (pgd_text_page_selector_value_changed), - (gpointer)demo); - gtk_box_pack_start (GTK_BOX (hbox), page_selector, FALSE, TRUE, 0); - gtk_widget_show (page_selector); - - str = g_strdup_printf ("of %d", n_pages); - label = gtk_label_new (str); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); - gtk_widget_show (label); - g_free (str); - - button = gtk_button_new_with_label ("Get Text"); - g_signal_connect (G_OBJECT (button), "clicked", - G_CALLBACK (pgd_text_get_text), - (gpointer)demo); - gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0); - gtk_widget_show (button); - - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); - gtk_widget_show (hbox); - - demo->timer_label = gtk_label_new (NULL); - gtk_label_set_markup (GTK_LABEL (demo->timer_label), "<i>No text found</i>"); - g_object_set (G_OBJECT (demo->timer_label), "xalign", 1.0, NULL); - gtk_box_pack_start (GTK_BOX (vbox), demo->timer_label, FALSE, TRUE, 0); - gtk_widget_show (demo->timer_label); - - swindow = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), - GTK_POLICY_AUTOMATIC, - GTK_POLICY_AUTOMATIC); - - demo->buffer = gtk_text_buffer_new (NULL); - textview = gtk_text_view_new_with_buffer (demo->buffer); - - gtk_container_add (GTK_CONTAINER (swindow), textview); - gtk_widget_show (textview); - - gtk_box_pack_start (GTK_BOX (vbox), swindow, TRUE, TRUE, 0); - gtk_widget_show (swindow); - - g_object_weak_ref (G_OBJECT (vbox), - (GWeakNotify)pgd_text_free, - demo); - - return vbox; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/text.h b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/text.h deleted file mode 100644 index 87a11435822..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/text.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <poppler.h> - -#ifndef _TEXT_H_ -#define _TEXT_H_ - -G_BEGIN_DECLS - -GtkWidget *pgd_text_create_widget (PopplerDocument *document); - -G_END_DECLS - -#endif /* _TEXT_H_ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/transitions.c b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/transitions.c deleted file mode 100644 index b6188b58a6c..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/transitions.c +++ /dev/null @@ -1,321 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> - -#include "transitions.h" - -enum { - TRANSITIONS_PAGE_COLUMN, - TRANSITIONS_TYPE_COLUMN, - TRANSITIONS_ALIGNMENT_COLUMN, - TRANSITIONS_DIRECTION_COLUMN, - TRANSITIONS_DURATION_COLUMN, - TRANSITIONS_ANGLE_COLUMN, - TRANSITIONS_SCALE_COLUMN, - TRANSITIONS_RECTANGULAR_COLUMN, - N_COLUMNS -}; - -typedef struct { - PopplerDocument *doc; - - GtkWidget *treeview; - GtkWidget *progress; - - guint idle_id; -} PgdTransitionsDemo; - -static void -pgd_transitions_free (PgdTransitionsDemo *demo) -{ - if (!demo) - return; - - if (demo->idle_id > 0) { - g_source_remove (demo->idle_id); - demo->idle_id = 0; - } - - if (demo->doc) { - g_object_unref (demo->doc); - demo->doc = NULL; - } - - g_free (demo); -} - -static const gchar * -transition_type_to_string (PopplerPageTransitionType type) -{ - switch (type) { - case POPPLER_PAGE_TRANSITION_REPLACE: - return "Replace"; - case POPPLER_PAGE_TRANSITION_SPLIT: - return "Split"; - case POPPLER_PAGE_TRANSITION_BLINDS: - return "Blinds"; - case POPPLER_PAGE_TRANSITION_BOX: - return "Box"; - case POPPLER_PAGE_TRANSITION_WIPE: - return "Wipe"; - case POPPLER_PAGE_TRANSITION_DISSOLVE: - return "Dissolve"; - case POPPLER_PAGE_TRANSITION_GLITTER: - return "Glitter"; - case POPPLER_PAGE_TRANSITION_FLY: - return "Fly"; - case POPPLER_PAGE_TRANSITION_PUSH: - return "Push"; - case POPPLER_PAGE_TRANSITION_COVER: - return "Cover"; - case POPPLER_PAGE_TRANSITION_UNCOVER: - return "Uncover"; - case POPPLER_PAGE_TRANSITION_FADE: - return "Fade"; - } - - return "Unknown"; -} - -static const gchar * -transition_alignment_to_string (PopplerPageTransitionAlignment alignment) -{ - return alignment == POPPLER_PAGE_TRANSITION_HORIZONTAL ? "Horizontal" : "Vertical"; -} - -static const gchar * -transition_direction_to_string (PopplerPageTransitionDirection direction) -{ - return direction == POPPLER_PAGE_TRANSITION_INWARD ? "Inward" : "Outward"; -} - -static void -pgd_transitions_update_progress (PgdTransitionsDemo *demo, - gint n_pages, - gint scanned) -{ - gchar *str; - - str = g_strdup_printf ("Scanning transitions (%d%%)", - MIN (scanned * 100 / n_pages, 100)); - gtk_progress_bar_set_text (GTK_PROGRESS_BAR (demo->progress), str); - gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (demo->progress), - MIN ((gdouble)scanned / n_pages, 1.0)); - g_free (str); -} - -static gboolean -pgd_transitions_fill_model (PgdTransitionsDemo *demo) -{ - GtkTreeModel *model; - gint i, n_pages; - - n_pages = poppler_document_get_n_pages (demo->doc); - - model = gtk_tree_view_get_model (GTK_TREE_VIEW (demo->treeview)); - g_object_ref (model); - - for (i = 0; i < n_pages; i++) { - PopplerPage *page; - PopplerPageTransition *transition; - - pgd_transitions_update_progress (demo, n_pages, i); - - while (gtk_events_pending ()) - gtk_main_iteration (); - - page = poppler_document_get_page (demo->doc, i); - if (!page) - continue; - - transition = poppler_page_get_transition (page); - if (transition) { - GtkTreeIter iter; - gchar *npage; - gchar *duration; - gchar *angle; - gchar *scale; - - npage = g_strdup_printf ("%d", i + 1); - duration = g_strdup_printf ("%d", transition->duration); - angle = g_strdup_printf ("%d", transition->angle); - scale = g_strdup_printf ("%.2f", transition->scale); - - gtk_list_store_append (GTK_LIST_STORE (model), &iter); - gtk_list_store_set (GTK_LIST_STORE (model), &iter, - TRANSITIONS_PAGE_COLUMN, npage, - TRANSITIONS_TYPE_COLUMN, - transition_type_to_string (transition->type), - TRANSITIONS_ALIGNMENT_COLUMN, - transition_alignment_to_string (transition->alignment), - TRANSITIONS_DIRECTION_COLUMN, - transition_direction_to_string (transition->direction), - TRANSITIONS_DURATION_COLUMN, duration, - TRANSITIONS_ANGLE_COLUMN, angle, - TRANSITIONS_SCALE_COLUMN, scale, - TRANSITIONS_RECTANGULAR_COLUMN, - transition->rectangular ? "Yes" : "No", - -1); - g_free (npage); - g_free (duration); - g_free (angle); - g_free (scale); - - poppler_page_transition_free (transition); - } - - g_object_unref (page); - } - - pgd_transitions_update_progress (demo, n_pages, n_pages); - g_object_unref (model); - - return FALSE; -} - -static void -pgd_transitions_scan_button_clicked (GtkButton *button, - PgdTransitionsDemo *demo) -{ - if (demo->idle_id > 0) - g_source_remove (demo->idle_id); - - demo->idle_id = g_idle_add ((GSourceFunc)pgd_transitions_fill_model, demo); -} - -static GtkWidget * -pgd_transitions_create_list (GtkTreeModel *model) -{ - GtkWidget *treeview; - GtkCellRenderer *renderer; - - treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model)); - gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), TRUE); - gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (treeview), TRUE); - gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview)), - GTK_SELECTION_NONE); - - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 0, "Page", - renderer, - "text", TRANSITIONS_PAGE_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 1, "Type", - renderer, - "text", TRANSITIONS_TYPE_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 2, "Alignment", - renderer, - "text", TRANSITIONS_ALIGNMENT_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 3, "Direction", - renderer, - "text", TRANSITIONS_DIRECTION_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 4, "Duration", - renderer, - "text", TRANSITIONS_DURATION_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 5, "Angle", - renderer, - "text", TRANSITIONS_ANGLE_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 6, "Scale", - renderer, - "text", TRANSITIONS_SCALE_COLUMN, - NULL); - renderer = gtk_cell_renderer_text_new (); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview), - 7, "Rectangular", - renderer, - "text", TRANSITIONS_RECTANGULAR_COLUMN, - NULL); - return treeview; -} - -GtkWidget * -pgd_transitions_create_widget (PopplerDocument *document) -{ - PgdTransitionsDemo *demo; - GtkWidget *vbox; - GtkListStore *model; - GtkWidget *swindow; - GtkWidget *hbox, *button; - - demo = g_new0 (PgdTransitionsDemo, 1); - - demo->doc = g_object_ref (document); - - vbox = gtk_vbox_new (FALSE, 12); - - hbox = gtk_hbox_new (FALSE, 6); - - demo->progress = gtk_progress_bar_new (); - gtk_progress_bar_set_ellipsize (GTK_PROGRESS_BAR (demo->progress), - PANGO_ELLIPSIZE_END); - gtk_box_pack_start (GTK_BOX (hbox), demo->progress, TRUE, TRUE, 0); - gtk_widget_show (demo->progress); - - button = gtk_button_new_with_label ("Scan"); - g_signal_connect (G_OBJECT (button), "clicked", - G_CALLBACK (pgd_transitions_scan_button_clicked), - (gpointer)demo); - gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0); - gtk_widget_show (button); - - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 6); - gtk_widget_show (hbox); - - swindow = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), - GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); - - model = gtk_list_store_new (N_COLUMNS, - G_TYPE_STRING, G_TYPE_STRING, - G_TYPE_STRING, G_TYPE_STRING, - G_TYPE_STRING, G_TYPE_STRING, - G_TYPE_STRING, G_TYPE_STRING); - demo->treeview = pgd_transitions_create_list (GTK_TREE_MODEL (model)); - g_object_unref (model); - - gtk_container_add (GTK_CONTAINER (swindow), demo->treeview); - gtk_widget_show (demo->treeview); - - gtk_box_pack_start (GTK_BOX (vbox), swindow, TRUE, TRUE, 0); - gtk_widget_show (swindow); - - g_object_weak_ref (G_OBJECT (swindow), - (GWeakNotify)pgd_transitions_free, - (gpointer)demo); - - return vbox; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/transitions.h b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/transitions.h deleted file mode 100644 index 11d8bd47f7d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/transitions.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <poppler.h> - -#ifndef _TRANSITIONS_H_ -#define _TRANSITIONS_H_ - -G_BEGIN_DECLS - -GtkWidget *pgd_transitions_create_widget (PopplerDocument *document); - -G_END_DECLS - -#endif /* _TRANSITIONS_H_ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/utils.c b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/utils.c deleted file mode 100644 index 010fab3086c..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/utils.c +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <time.h> - -#include "utils.h" - -void -pgd_table_add_property_with_value_widget (GtkTable *table, - const gchar *markup, - GtkWidget **value_widget, - const gchar *value, - gint *row) -{ - GtkWidget *label; - - label = gtk_label_new (NULL); - g_object_set (G_OBJECT (label), "xalign", 0.0, NULL); - gtk_label_set_markup (GTK_LABEL (label), markup); - gtk_table_attach (GTK_TABLE (table), label, 0, 1, *row, *row + 1, - GTK_FILL, GTK_FILL, 0, 0); - gtk_widget_show (label); - - *value_widget = label = gtk_label_new (value); - g_object_set (G_OBJECT (label), - "xalign", 0.0, - "selectable", TRUE, - "ellipsize", PANGO_ELLIPSIZE_END, - NULL); - gtk_table_attach (GTK_TABLE (table), label, 1, 2, *row, *row + 1, - GTK_FILL | GTK_EXPAND, GTK_FILL, 0, 0); - gtk_widget_show (label); - - *row += 1; -} - -void -pgd_table_add_property (GtkTable *table, - const gchar *markup, - const gchar *value, - gint *row) -{ - GtkWidget *label; - - pgd_table_add_property_with_value_widget (table, markup, &label, value, row); -} - -GtkWidget * -pgd_action_view_new (PopplerDocument *document) -{ - GtkWidget *frame, *label; - - frame = gtk_frame_new (NULL); - gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE); - label = gtk_label_new (NULL); - gtk_label_set_markup (GTK_LABEL (label), "<b>Action Properties</b>"); - gtk_frame_set_label_widget (GTK_FRAME (frame), label); - gtk_widget_show (label); - - g_object_set_data (G_OBJECT (frame), "document", document); - - return frame; -} - -static void -pgd_action_view_add_destination (GtkWidget *action_view, - GtkTable *table, - PopplerDest *dest, - gboolean remote, - gint *row) -{ - PopplerDocument *document; - GEnumValue *enum_value; - gchar *str; - - pgd_table_add_property (table, "<b>Type:</b>", "Destination", row); - - enum_value = g_enum_get_value ((GEnumClass *) g_type_class_ref (POPPLER_TYPE_DEST_TYPE), dest->type); - pgd_table_add_property (table, "<b>Destination Type:</b>", enum_value->value_name, row); - - document = g_object_get_data (G_OBJECT (action_view), "document"); - - if (dest->type != POPPLER_DEST_NAMED) { - str = NULL; - - if (document && !remote) { - PopplerPage *poppler_page; - gchar *page_label; - - poppler_page = poppler_document_get_page (document, MAX (0, dest->page_num - 1)); - - g_object_get (G_OBJECT (poppler_page), - "label", &page_label, - NULL); - if (page_label) { - str = g_strdup_printf ("%d (%s)", dest->page_num, page_label); - g_free (page_label); - } - } - - if (!str) - str = g_strdup_printf ("%d", dest->page_num); - pgd_table_add_property (table, "<b>Page:</b>", str, row); - g_free (str); - - str = g_strdup_printf ("%.2f", dest->left); - pgd_table_add_property (table, "<b>Left:</b>", str, row); - g_free (str); - - str = g_strdup_printf ("%.2f", dest->right); - pgd_table_add_property (table, "<b>Right:</b>", str, row); - g_free (str); - - str = g_strdup_printf ("%.2f", dest->top); - pgd_table_add_property (table, "<b>Top:</b>", str, row); - g_free (str); - - str = g_strdup_printf ("%.2f", dest->bottom); - pgd_table_add_property (table, "<b>Bottom:</b>", str, row); - g_free (str); - - str = g_strdup_printf ("%.2f", dest->zoom); - pgd_table_add_property (table, "<b>Zoom:</b>", str, row); - g_free (str); - } else { - pgd_table_add_property (table, "<b>Named Dest:</b>", dest->named_dest, row); - - if (document && !remote) { - PopplerDest *new_dest; - - new_dest = poppler_document_find_dest (document, dest->named_dest); - if (new_dest) { - GtkWidget *new_table, *alignment; - gint new_row = 0; - - alignment = gtk_alignment_new (0.5, 0.5, 1, 1); - gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 5, 5, 12, 5); - - new_table = gtk_table_new (8, 2, FALSE); - gtk_table_set_col_spacings (GTK_TABLE (new_table), 6); - gtk_table_set_row_spacings (GTK_TABLE (new_table), 6); - gtk_table_attach_defaults (table, alignment, 0, 2, *row, *row + 1); - gtk_widget_show (alignment); - - pgd_action_view_add_destination (action_view, GTK_TABLE (new_table), - new_dest, FALSE, &new_row); - poppler_dest_free (new_dest); - - gtk_container_add (GTK_CONTAINER (alignment), new_table); - gtk_widget_show (new_table); - - *row += 1; - } - } - } -} - -void -pgd_action_view_set_action (GtkWidget *action_view, - PopplerAction *action) -{ - GtkWidget *alignment; - GtkWidget *table; - gint row = 0; - - alignment = gtk_bin_get_child (GTK_BIN (action_view)); - if (alignment) { - gtk_container_remove (GTK_CONTAINER (action_view), alignment); - } - - alignment = gtk_alignment_new (0.5, 0.5, 1, 1); - gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 5, 5, 12, 5); - gtk_container_add (GTK_CONTAINER (action_view), alignment); - gtk_widget_show (alignment); - - if (!action) - return; - - table = gtk_table_new (10, 2, FALSE); - gtk_table_set_col_spacings (GTK_TABLE (table), 6); - gtk_table_set_row_spacings (GTK_TABLE (table), 6); - - pgd_table_add_property (GTK_TABLE (table), "<b>Title:</b>", action->any.title, &row); - - switch (action->type) { - case POPPLER_ACTION_UNKNOWN: - pgd_table_add_property (GTK_TABLE (table), "<b>Type:</b>", "Unknown", &row); - break; - case POPPLER_ACTION_NONE: - pgd_table_add_property (GTK_TABLE (table), "<b>Type:</b>", "None", &row); - break; - case POPPLER_ACTION_GOTO_DEST: - pgd_action_view_add_destination (action_view, GTK_TABLE (table), action->goto_dest.dest, FALSE, &row); - break; - case POPPLER_ACTION_GOTO_REMOTE: - pgd_table_add_property (GTK_TABLE (table), "<b>Type:</b>", "Remote Destination", &row); - pgd_table_add_property (GTK_TABLE (table), "<b>Filename:</b>", action->goto_remote.file_name, &row); - pgd_action_view_add_destination (action_view, GTK_TABLE (table), action->goto_remote.dest, TRUE, &row); - break; - case POPPLER_ACTION_LAUNCH: - pgd_table_add_property (GTK_TABLE (table), "<b>Type:</b>", "Launch", &row); - pgd_table_add_property (GTK_TABLE (table), "<b>Filename:</b>", action->launch.file_name, &row); - pgd_table_add_property (GTK_TABLE (table), "<b>Params:</b>", action->launch.params, &row); - break; - case POPPLER_ACTION_URI: - pgd_table_add_property (GTK_TABLE (table), "<b>Type:</b>", "External URI", &row); - pgd_table_add_property (GTK_TABLE (table), "<b>URI</b>", action->uri.uri, &row); - break; - case POPPLER_ACTION_NAMED: - pgd_table_add_property (GTK_TABLE (table), "<b>Type:</b>", "Named Action", &row); - pgd_table_add_property (GTK_TABLE (table), "<b>Name:</b>", action->named.named_dest, &row); - break; - case POPPLER_ACTION_MOVIE: - pgd_table_add_property (GTK_TABLE (table), "<b>Type:</b>", "Movie", &row); - break; - default: - g_assert_not_reached (); - } - - gtk_container_add (GTK_CONTAINER (alignment), table); - gtk_widget_show (table); -} - -gchar * -pgd_format_date (time_t utime) -{ - time_t time = (time_t) utime; - char s[256]; - const char *fmt_hack = "%c"; - size_t len; -#ifdef HAVE_LOCALTIME_R - struct tm t; - if (time == 0 || !localtime_r (&time, &t)) return NULL; - len = strftime (s, sizeof (s), fmt_hack, &t); -#else - struct tm *t; - if (time == 0 || !(t = localtime (&time)) ) return NULL; - len = strftime (s, sizeof (s), fmt_hack, t); -#endif - - if (len == 0 || s[0] == '\0') return NULL; - - return g_locale_to_utf8 (s, -1, NULL, NULL, NULL); -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/utils.h b/Build/source/libs/poppler/poppler-0.12.4/glib/demo/utils.h deleted file mode 100644 index 72c3ef308d3..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/demo/utils.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <gtk/gtk.h> -#include <poppler.h> - -#ifndef _UTILS_H_ -#define _UTILS_H_ - -G_BEGIN_DECLS - -void pgd_table_add_property (GtkTable *table, - const gchar *markup, - const gchar *value, - gint *row); -void pgd_table_add_property_with_value_widget (GtkTable *table, - const gchar *markup, - GtkWidget **value_widget, - const gchar *value, - gint *row); -GtkWidget *pgd_action_view_new (PopplerDocument *document); -void pgd_action_view_set_action (GtkWidget *action_view, - PopplerAction *action); -gchar *pgd_format_date (time_t utime); - -G_END_DECLS - -#endif /* _UTILS_H_ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-action.cc b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-action.cc deleted file mode 100644 index f171245857b..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-action.cc +++ /dev/null @@ -1,418 +0,0 @@ -/* poppler-action.cc: glib wrapper for poppler -*- c-basic-offset: 8 -*- - * Copyright (C) 2005, Red Hat, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler.h" -#include "poppler-private.h" - -POPPLER_DEFINE_BOXED_TYPE (PopplerDest, poppler_dest, poppler_dest_copy, poppler_dest_free) - -/** - * poppler_dest_copy: - * @dest: a #PopplerDest - * - * Copies @dest, creating an identical #PopplerDest. - * - * Return value: a new destination identical to @dest - **/ -PopplerDest * -poppler_dest_copy (PopplerDest *dest) -{ - PopplerDest *new_dest; - - new_dest = g_new0 (PopplerDest, 1); - memcpy (new_dest, dest, sizeof (PopplerDest)); - - if (dest->named_dest) - new_dest->named_dest = g_strdup (dest->named_dest); - - return new_dest; -} - - -/** - * poppler_dest_free: - * @dest: a #PopplerDest - * - * Frees @dest - **/ -void -poppler_dest_free (PopplerDest *dest) -{ - if (!dest) - return; - - if (dest->named_dest) - g_free (dest->named_dest); - - g_free (dest); -} - -POPPLER_DEFINE_BOXED_TYPE (PopplerAction, poppler_action, poppler_action_copy, poppler_action_free) - -/** - * poppler_action_free: - * @action: a #PopplerAction - * - * Frees @action - **/ -void -poppler_action_free (PopplerAction *action) -{ - if (action == NULL) - return; - - /* Action specific stuff */ - switch (action->type) { - case POPPLER_ACTION_GOTO_DEST: - poppler_dest_free (action->goto_dest.dest); - break; - case POPPLER_ACTION_GOTO_REMOTE: - poppler_dest_free (action->goto_remote.dest); - g_free (action->goto_remote.file_name); - break; - case POPPLER_ACTION_URI: - g_free (action->uri.uri); - break; - case POPPLER_ACTION_LAUNCH: - g_free (action->launch.file_name); - g_free (action->launch.params); - break; - case POPPLER_ACTION_NAMED: - g_free (action->named.named_dest); - break; - case POPPLER_ACTION_MOVIE: - /* TODO */ - break; - default: - break; - } - - g_free (action->any.title); - g_free (action); -} - -/** - * poppler_action_copy: - * @action: a #PopplerAction - * - * Copies @action, creating an identical #PopplerAction. - * - * Return value: a new action identical to @action - **/ -PopplerAction * -poppler_action_copy (PopplerAction *action) -{ - PopplerAction *new_action; - - g_return_val_if_fail (action != NULL, NULL); - - /* Do a straight copy of the memory */ - new_action = g_new0 (PopplerAction, 1); - memcpy (new_action, action, sizeof (PopplerAction)); - - if (action->any.title != NULL) - new_action->any.title = g_strdup (action->any.title); - - switch (action->type) { - case POPPLER_ACTION_GOTO_DEST: - new_action->goto_dest.dest = poppler_dest_copy (action->goto_dest.dest); - break; - case POPPLER_ACTION_GOTO_REMOTE: - new_action->goto_remote.dest = poppler_dest_copy (action->goto_remote.dest); - if (action->goto_remote.file_name) - new_action->goto_remote.file_name = g_strdup (action->goto_remote.file_name); - break; - case POPPLER_ACTION_URI: - if (action->uri.uri) - new_action->uri.uri = g_strdup (action->uri.uri); - break; - case POPPLER_ACTION_LAUNCH: - if (action->launch.file_name) - new_action->launch.file_name = g_strdup (action->launch.file_name); - if (action->launch.params) - new_action->launch.params = g_strdup (action->launch.params); - break; - case POPPLER_ACTION_NAMED: - if (action->named.named_dest) - new_action->named.named_dest = g_strdup (action->named.named_dest); - break; - case POPPLER_ACTION_MOVIE: - /* TODO */ - break; - default: - break; - } - - return new_action; -} - -PopplerDest * -dest_new_goto (PopplerDocument *document, - LinkDest *link_dest) -{ - PopplerDest *dest; - - dest = g_new0 (PopplerDest, 1); - - if (link_dest == NULL) { - dest->type = POPPLER_DEST_UNKNOWN; - return dest; - } - - switch (link_dest->getKind ()) { - case destXYZ: - dest->type = POPPLER_DEST_XYZ; - break; - case destFit: - dest->type = POPPLER_DEST_FIT; - break; - case destFitH: - dest->type = POPPLER_DEST_FITH; - break; - case destFitV: - dest->type = POPPLER_DEST_FITV; - break; - case destFitR: - dest->type = POPPLER_DEST_FITR; - break; - case destFitB: - dest->type = POPPLER_DEST_FITB; - break; - case destFitBH: - dest->type = POPPLER_DEST_FITBH; - break; - case destFitBV: - dest->type = POPPLER_DEST_FITBV; - break; - default: - dest->type = POPPLER_DEST_UNKNOWN; - } - - if (link_dest->isPageRef ()) { - if (document) { - Ref page_ref = link_dest->getPageRef (); - dest->page_num = document->doc->findPage (page_ref.num, page_ref.gen); - } else { - /* FIXME: We don't keep areound the page_ref for the - * remote doc, so we can't look this up. Guess that - * it's 0*/ - dest->page_num = 0; - } - } else { - dest->page_num = link_dest->getPageNum (); - } - - dest->left = link_dest->getLeft (); - dest->bottom = link_dest->getBottom (); - dest->right = link_dest->getRight (); - dest->top = link_dest->getTop (); - dest->zoom = link_dest->getZoom (); - dest->change_left = link_dest->getChangeLeft (); - dest->change_top = link_dest->getChangeTop (); - dest->change_zoom = link_dest->getChangeZoom (); - - if (document && dest->page_num > 0) { - PopplerPage *page; - - page = poppler_document_get_page (document, dest->page_num - 1); - - if (page) { - dest->left -= page->page->getCropBox ()->x1; - dest->bottom -= page->page->getCropBox ()->x1; - dest->right -= page->page->getCropBox ()->y1; - dest->top -= page->page->getCropBox ()->y1; - - g_object_unref (page); - } else { - g_warning ("Invalid page %d in Link Destination\n", dest->page_num); - dest->page_num = 0; - } - } - - return dest; -} - -static PopplerDest * -dest_new_named (GooString *named_dest) -{ - PopplerDest *dest; - - dest = g_new0 (PopplerDest, 1); - - if (named_dest == NULL) { - dest->type = POPPLER_DEST_UNKNOWN; - return dest; - } - - dest->type = POPPLER_DEST_NAMED; - dest->named_dest = g_strdup (named_dest->getCString ()); - - return dest; -} - -static void -build_goto_dest (PopplerDocument *document, - PopplerAction *action, - LinkGoTo *link) -{ - LinkDest *link_dest; - GooString *named_dest; - - /* Return if it isn't OK */ - if (! link->isOk ()) { - action->goto_dest.dest = dest_new_goto (NULL, NULL); - return; - } - - link_dest = link->getDest (); - named_dest = link->getNamedDest (); - - if (link_dest != NULL) { - action->goto_dest.dest = dest_new_goto (document, link_dest); - } else if (named_dest != NULL) { - action->goto_dest.dest = dest_new_named (named_dest); - } else { - action->goto_dest.dest = dest_new_goto (document, NULL); - } -} - -static void -build_goto_remote (PopplerAction *action, - LinkGoToR *link) -{ - LinkDest *link_dest; - GooString *named_dest; - - /* Return if it isn't OK */ - if (! link->isOk ()) { - action->goto_remote.dest = dest_new_goto (NULL, NULL); - return; - } - - action->goto_remote.file_name = _poppler_goo_string_to_utf8 (link->getFileName()); - - link_dest = link->getDest (); - named_dest = link->getNamedDest (); - - if (link_dest != NULL) { - action->goto_remote.dest = dest_new_goto (NULL, link_dest); - } else if (named_dest != NULL) { - action->goto_remote.dest = dest_new_named (named_dest); - } else { - action->goto_remote.dest = dest_new_goto (NULL, NULL); - } -} - -static void -build_launch (PopplerAction *action, - LinkLaunch *link) -{ - if (link->getFileName()) { - action->launch.file_name = g_strdup (link->getFileName()->getCString ()); - } - if (link->getParams()) { - action->launch.params = g_strdup (link->getParams()->getCString ()); - } -} - -static void -build_uri (PopplerAction *action, - LinkURI *link) -{ - gchar *uri; - - uri = link->getURI()->getCString (); - if (uri != NULL) - action->uri.uri = g_strdup (uri); -} - -static void -build_named (PopplerAction *action, - LinkNamed *link) -{ - gchar *name; - - name = link->getName ()->getCString (); - if (name != NULL) - action->named.named_dest = g_strdup (name); -} - -static void -build_movie (PopplerAction *action, - LinkAction *link) -{ - /* FIXME: Write */ -} - -PopplerAction * -_poppler_action_new (PopplerDocument *document, - LinkAction *link, - const gchar *title) -{ - PopplerAction *action; - - action = g_new0 (PopplerAction, 1); - - if (title) - action->any.title = g_strdup (title); - - if (link == NULL) { - action->type = POPPLER_ACTION_NONE; - return action; - } - - switch (link->getKind ()) { - case actionGoTo: - action->type = POPPLER_ACTION_GOTO_DEST; - build_goto_dest (document, action, dynamic_cast <LinkGoTo *> (link)); - break; - case actionGoToR: - action->type = POPPLER_ACTION_GOTO_REMOTE; - build_goto_remote (action, dynamic_cast <LinkGoToR *> (link)); - break; - case actionLaunch: - action->type = POPPLER_ACTION_LAUNCH; - build_launch (action, dynamic_cast <LinkLaunch *> (link)); - break; - case actionURI: - action->type = POPPLER_ACTION_URI; - build_uri (action, dynamic_cast <LinkURI *> (link)); - break; - case actionNamed: - action->type = POPPLER_ACTION_NAMED; - build_named (action, dynamic_cast <LinkNamed *> (link)); - break; - case actionMovie: - action->type = POPPLER_ACTION_MOVIE; - build_movie (action, link); - break; - case actionUnknown: - default: - action->type = POPPLER_ACTION_UNKNOWN; - break; - } - - return action; -} - -PopplerDest * -_poppler_dest_new_goto (PopplerDocument *document, - LinkDest *link_dest) -{ - return dest_new_goto (document, link_dest); -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-action.h b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-action.h deleted file mode 100644 index a89351af36b..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-action.h +++ /dev/null @@ -1,162 +0,0 @@ -/* poppler-action.h: glib interface to poppler - * Copyright (C) 2004, Red Hat, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __POPPLER_ACTION_H__ -#define __POPPLER_ACTION_H__ - -#include <glib-object.h> -#include "poppler.h" - -G_BEGIN_DECLS - -typedef enum -{ - POPPLER_ACTION_UNKNOWN, /* unknown action */ - POPPLER_ACTION_NONE, /* no action specified */ - POPPLER_ACTION_GOTO_DEST, /* go to destination */ - POPPLER_ACTION_GOTO_REMOTE, /* go to destination in new file */ - POPPLER_ACTION_LAUNCH, /* launch app (or open document) */ - POPPLER_ACTION_URI, /* URI */ - POPPLER_ACTION_NAMED, /* named action*/ - POPPLER_ACTION_MOVIE /* movie action */ -} PopplerActionType; - -typedef enum -{ - POPPLER_DEST_UNKNOWN, - POPPLER_DEST_XYZ, - POPPLER_DEST_FIT, - POPPLER_DEST_FITH, - POPPLER_DEST_FITV, - POPPLER_DEST_FITR, - POPPLER_DEST_FITB, - POPPLER_DEST_FITBH, - POPPLER_DEST_FITBV, - POPPLER_DEST_NAMED -} PopplerDestType; - -/* Define the PopplerAction types */ -typedef struct _PopplerActionAny PopplerActionAny; -typedef struct _PopplerActionGotoDest PopplerActionGotoDest; -typedef struct _PopplerActionGotoRemote PopplerActionGotoRemote; -typedef struct _PopplerActionLaunch PopplerActionLaunch; -typedef struct _PopplerActionUri PopplerActionUri; -typedef struct _PopplerActionNamed PopplerActionNamed; -typedef struct _PopplerActionMovie PopplerActionMovie; - -struct _PopplerDest -{ - PopplerDestType type; - - int page_num; - double left; - double bottom; - double right; - double top; - double zoom; - gchar *named_dest; - guint change_left : 1; - guint change_top : 1; - guint change_zoom : 1; -}; - - -struct _PopplerActionAny -{ - PopplerActionType type; - gchar *title; -}; - -struct _PopplerActionGotoDest -{ - PopplerActionType type; - gchar *title; - - PopplerDest *dest; -}; - -struct _PopplerActionGotoRemote -{ - PopplerActionType type; - gchar *title; - - gchar *file_name; - PopplerDest *dest; -}; - -struct _PopplerActionLaunch -{ - PopplerActionType type; - gchar *title; - - gchar *file_name; - gchar *params; -}; - -struct _PopplerActionUri -{ - PopplerActionType type; - gchar *title; - - char *uri; -}; - -struct _PopplerActionNamed -{ - PopplerActionType type; - gchar *title; - - gchar *named_dest; -}; - -struct _PopplerActionMovie -{ - PopplerActionType type; - gchar *title; -}; - -union _PopplerAction -{ - PopplerActionType type; - PopplerActionAny any; - PopplerActionGotoDest goto_dest; - PopplerActionGotoRemote goto_remote; - PopplerActionLaunch launch; - PopplerActionUri uri; - PopplerActionNamed named; - PopplerActionMovie movie; -}; - -#define POPPLER_TYPE_ACTION (poppler_action_get_type ()) -#define POPPLER_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_ACTION, PopplerAction)) - -GType poppler_action_get_type (void) G_GNUC_CONST; - -void poppler_action_free (PopplerAction *action); -PopplerAction *poppler_action_copy (PopplerAction *action); - - -#define POPPLER_TYPE_DEST (poppler_dest_get_type ()) -GType poppler_dest_get_type (void) G_GNUC_CONST; - -void poppler_dest_free (PopplerDest *dest); -PopplerDest *poppler_dest_copy (PopplerDest *dest); - -G_END_DECLS - -#endif /* __POPPLER_GLIB_H__ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-annot.cc b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-annot.cc deleted file mode 100644 index 29051f95f7a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-annot.cc +++ /dev/null @@ -1,839 +0,0 @@ -/* poppler-annot.cc: glib interface to poppler - * - * Copyright (C) 2007 Inigo Martinez <inigomartinez@gmail.com> - * Copyright (C) 2009 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler.h" -#include "poppler-private.h" - -typedef struct _PopplerAnnotClass PopplerAnnotClass; -typedef struct _PopplerAnnotMarkupClass PopplerAnnotMarkupClass; -typedef struct _PopplerAnnotFreeTextClass PopplerAnnotFreeTextClass; -typedef struct _PopplerAnnotTextClass PopplerAnnotTextClass; - -struct _PopplerAnnot -{ - GObject parent_instance; - Annot *annot; -}; - -struct _PopplerAnnotClass -{ - GObjectClass parent_class; -}; - -struct _PopplerAnnotMarkup -{ - PopplerAnnot parent_instance; -}; - -struct _PopplerAnnotMarkupClass -{ - PopplerAnnotClass parent_class; -}; - -struct _PopplerAnnotText -{ - PopplerAnnotMarkup parent_instance; -}; - -struct _PopplerAnnotTextClass -{ - PopplerAnnotMarkupClass parent_class; -}; - -struct _PopplerAnnotFreeText -{ - PopplerAnnotMarkup parent_instance; -}; - -struct _PopplerAnnotFreeTextClass -{ - PopplerAnnotMarkupClass parent_class; -}; - -G_DEFINE_TYPE (PopplerAnnot, poppler_annot, G_TYPE_OBJECT) -G_DEFINE_TYPE (PopplerAnnotMarkup, poppler_annot_markup, POPPLER_TYPE_ANNOT) -G_DEFINE_TYPE (PopplerAnnotText, poppler_annot_text, POPPLER_TYPE_ANNOT_MARKUP) -G_DEFINE_TYPE (PopplerAnnotFreeText, poppler_annot_free_text, POPPLER_TYPE_ANNOT_MARKUP) - -static void -poppler_annot_finalize (GObject *object) -{ - PopplerAnnot *poppler_annot = POPPLER_ANNOT (object); - - poppler_annot->annot = NULL; - - G_OBJECT_CLASS (poppler_annot_parent_class)->finalize (object); -} - -static void -poppler_annot_init (PopplerAnnot *poppler_annot) -{ -} - -static void -poppler_annot_class_init (PopplerAnnotClass *klass) -{ - GObjectClass *gobject_class = G_OBJECT_CLASS (klass); - - gobject_class->finalize = poppler_annot_finalize; -} - -PopplerAnnot * -_poppler_annot_new (Annot *annot) -{ - PopplerAnnot *poppler_annot; - - poppler_annot = POPPLER_ANNOT (g_object_new (POPPLER_TYPE_ANNOT, NULL)); - poppler_annot->annot = annot; - - return poppler_annot; -} - -static void -poppler_annot_markup_init (PopplerAnnotMarkup *poppler_annot) -{ -} - -static void -poppler_annot_markup_class_init (PopplerAnnotMarkupClass *klass) -{ -} - -static void -poppler_annot_text_init (PopplerAnnotText *poppler_annot) -{ -} - -static void -poppler_annot_text_class_init (PopplerAnnotTextClass *klass) -{ -} - -PopplerAnnot * -_poppler_annot_text_new (Annot *annot) -{ - PopplerAnnot *poppler_annot; - - poppler_annot = POPPLER_ANNOT (g_object_new (POPPLER_TYPE_ANNOT_TEXT, NULL)); - poppler_annot->annot = annot; - - return poppler_annot; -} - -static void -poppler_annot_free_text_init (PopplerAnnotFreeText *poppler_annot) -{ -} - -static void -poppler_annot_free_text_class_init (PopplerAnnotFreeTextClass *klass) -{ -} - -PopplerAnnot * -_poppler_annot_free_text_new (Annot *annot) -{ - PopplerAnnot *poppler_annot; - - poppler_annot = POPPLER_ANNOT (g_object_new (POPPLER_TYPE_ANNOT_FREE_TEXT, NULL)); - poppler_annot->annot = annot; - - return poppler_annot; -} - -/* Public methods */ -/** - * poppler_annot_get_annot_type: - * @poppler_annot: a #PopplerAnnot - * - * Gets the type of @poppler_annot - * - * Return value: #PopplerAnnotType of @poppler_annot. - **/ -PopplerAnnotType -poppler_annot_get_annot_type (PopplerAnnot *poppler_annot) -{ - g_return_val_if_fail (POPPLER_IS_ANNOT (poppler_annot), POPPLER_ANNOT_UNKNOWN); - - switch (poppler_annot->annot->getType ()) - { - case Annot::typeText: - return POPPLER_ANNOT_TEXT; - case Annot::typeLink: - return POPPLER_ANNOT_LINK; - case Annot::typeFreeText: - return POPPLER_ANNOT_FREE_TEXT; - case Annot::typeLine: - return POPPLER_ANNOT_LINE; - case Annot::typeSquare: - return POPPLER_ANNOT_SQUARE; - case Annot::typeCircle: - return POPPLER_ANNOT_CIRCLE; - case Annot::typePolygon: - return POPPLER_ANNOT_POLYGON; - case Annot::typePolyLine: - return POPPLER_ANNOT_POLY_LINE; - case Annot::typeHighlight: - return POPPLER_ANNOT_HIGHLIGHT; - case Annot::typeUnderline: - return POPPLER_ANNOT_UNDERLINE; - case Annot::typeSquiggly: - return POPPLER_ANNOT_SQUIGGLY; - case Annot::typeStrikeOut: - return POPPLER_ANNOT_STRIKE_OUT; - case Annot::typeStamp: - return POPPLER_ANNOT_STAMP; - case Annot::typeCaret: - return POPPLER_ANNOT_CARET; - case Annot::typeInk: - return POPPLER_ANNOT_INK; - case Annot::typePopup: - return POPPLER_ANNOT_POPUP; - case Annot::typeFileAttachment: - return POPPLER_ANNOT_FILE_ATTACHMENT; - case Annot::typeSound: - return POPPLER_ANNOT_SOUND; - case Annot::typeMovie: - return POPPLER_ANNOT_MOVIE; - case Annot::typeWidget: - return POPPLER_ANNOT_WIDGET; - case Annot::typeScreen: - return POPPLER_ANNOT_SCREEN; - case Annot::typePrinterMark: - return POPPLER_ANNOT_PRINTER_MARK; - case Annot::typeTrapNet: - return POPPLER_ANNOT_TRAP_NET; - case Annot::typeWatermark: - return POPPLER_ANNOT_WATERMARK; - case Annot::type3D: - return POPPLER_ANNOT_3D; - default: - g_warning ("Unsupported Annot Type"); - } - - return POPPLER_ANNOT_UNKNOWN; -} - -/** - * poppler_annot_get_contents: - * @poppler_annot: a #PopplerAnnot - * - * Retrieves the contents of @poppler_annot. - * - * Return value: a new allocated string with the contents of @poppler_annot. It - * must be freed with g_free() when done. - **/ -gchar * -poppler_annot_get_contents (PopplerAnnot *poppler_annot) -{ - GooString *contents; - - g_return_val_if_fail (POPPLER_IS_ANNOT (poppler_annot), NULL); - - contents = poppler_annot->annot->getContents (); - - return contents ? _poppler_goo_string_to_utf8 (contents) : NULL; -} - -/** - * poppler_annot_set_contents: - * @poppler_annot: a #PopplerAnnot - * @contents: a text string containing the new contents - * - * Sets the contents of @poppler_annot to the given value, - * replacing the current contents. - **/ -void -poppler_annot_set_contents (PopplerAnnot *poppler_annot, - const gchar *contents) -{ - GooString *goo_tmp; - gchar *tmp; - gsize length = 0; - - g_return_if_fail (POPPLER_IS_ANNOT (poppler_annot)); - - tmp = contents ? g_convert (contents, -1, "UTF-16BE", "UTF-8", NULL, &length, NULL) : NULL; - goo_tmp = new GooString (tmp, length); - g_free (tmp); - poppler_annot->annot->setContents (goo_tmp); - delete (goo_tmp); -} - -/** - * poppler_annot_get_name: - * @poppler_annot: a #PopplerAnnot - * - * Retrieves the name of @poppler_annot. - * - * Return value: a new allocated string with the name of @poppler_annot. It must - * be freed with g_free() when done. - **/ -gchar * -poppler_annot_get_name (PopplerAnnot *poppler_annot) -{ - GooString *name; - - g_return_val_if_fail (POPPLER_IS_ANNOT (poppler_annot), NULL); - - name = poppler_annot->annot->getName (); - - return name ? _poppler_goo_string_to_utf8 (name) : NULL; -} - -/** - * poppler_annot_get_modified: - * @poppler_annot: a #PopplerAnnot - * - * Retrieves the last modification data of @poppler_annot. The returned - * string will be either a PDF format date or a text string. - * See also #poppler_date_parse() - * - * Return value: a new allocated string with the last modification data of - * @poppler_annot. It must be freed with g_free() when done. - **/ -gchar * -poppler_annot_get_modified (PopplerAnnot *poppler_annot) -{ - GooString *text; - - g_return_val_if_fail (POPPLER_IS_ANNOT (poppler_annot), NULL); - - text = poppler_annot->annot->getModified (); - - return text ? _poppler_goo_string_to_utf8 (text) : NULL; -} - -/** - * poppler_annot_get_flags - * @poppler_annot: a #PopplerAnnot - * - * Retrieves the flag field specifying various characteristics of the - * @poppler_annot. - * - * Return value: the flag field of @poppler_annot. - **/ -PopplerAnnotFlag -poppler_annot_get_flags (PopplerAnnot *poppler_annot) -{ - g_return_val_if_fail (POPPLER_IS_ANNOT (poppler_annot), (PopplerAnnotFlag) 0); - - return (PopplerAnnotFlag) poppler_annot->annot->getFlags (); -} - -/** - * poppler_annot_get_color: - * @poppler_annot: a #PopplerAnnot - * - * Retrieves the color of @poppler_annot. - * - * Return value: a new allocated #PopplerColor with the color values of - * @poppler_annot, or %NULL. It must be freed with g_free() when done. - **/ -PopplerColor * -poppler_annot_get_color (PopplerAnnot *poppler_annot) -{ - AnnotColor *color; - PopplerColor *poppler_color = NULL; - - g_return_val_if_fail (POPPLER_IS_ANNOT (poppler_annot), NULL); - - color = poppler_annot->annot->getColor (); - - if (color) { - double *values = color->getValues (); - - switch (color->getSpace ()) - { - case AnnotColor::colorGray: - poppler_color = g_new (PopplerColor, 1); - - poppler_color->red = (guint16) (values[0] * 65535); - poppler_color->green = poppler_color->red; - poppler_color->blue = poppler_color->red; - - break; - case AnnotColor::colorRGB: - poppler_color = g_new (PopplerColor, 1); - - poppler_color->red = (guint16) (values[0] * 65535); - poppler_color->green = (guint16) (values[1] * 65535); - poppler_color->blue = (guint16) (values[2] * 65535); - - break; - case AnnotColor::colorCMYK: - g_warning ("Unsupported Annot Color: colorCMYK"); - case AnnotColor::colorTransparent: - break; - } - } - - return poppler_color; -} - -/* PopplerAnnotMarkup */ -/** -* poppler_annot_markup_get_label: -* @poppler_annot: a #PopplerAnnotMarkup -* -* Retrieves the label text of @poppler_annot. -* -* Return value: the label text of @poppler_annot. -*/ -gchar * -poppler_annot_markup_get_label (PopplerAnnotMarkup *poppler_annot) -{ - AnnotMarkup *annot; - GooString *text; - - g_return_val_if_fail (POPPLER_IS_ANNOT_MARKUP (poppler_annot), NULL); - - annot = static_cast<AnnotMarkup *>(POPPLER_ANNOT (poppler_annot)->annot); - - text = annot->getLabel (); - - return text ? _poppler_goo_string_to_utf8 (text) : NULL; -} - -/** - * poppler_annot_markup_has_popup: - * @poppler_annot: a #PopplerAnnotMarkup - * - * Return %TRUE if the markup annotation has a popup window associated - * - * Return value: %TRUE, if @poppler_annot has popup, %FALSE otherwise - **/ -gboolean -poppler_annot_markup_has_popup (PopplerAnnotMarkup *poppler_annot) -{ - AnnotMarkup *annot; - - g_return_val_if_fail (POPPLER_IS_ANNOT_MARKUP (poppler_annot), FALSE); - - annot = static_cast<AnnotMarkup *>(POPPLER_ANNOT (poppler_annot)->annot); - - return annot->getPopup () != NULL; -} - -/** - * poppler_annot_markup_get_popup_is_open: - * @poppler_annot: a #PopplerAnnotMarkup - * - * Retrieves the state of the popup annot related to @poppler_annot. - * - * Return value: the state of @poppler_annot. %TRUE if it's open, %FALSE in - * other case. - **/ -gboolean -poppler_annot_markup_get_popup_is_open (PopplerAnnotMarkup *poppler_annot) -{ - AnnotMarkup *annot; - AnnotPopup *annot_popup; - - g_return_val_if_fail (POPPLER_IS_ANNOT_MARKUP (poppler_annot), FALSE); - - annot = static_cast<AnnotMarkup *>(POPPLER_ANNOT (poppler_annot)->annot); - - if ((annot_popup = annot->getPopup ())) - return annot_popup->getOpen (); - - return FALSE; -} - -/** - * poppler_annot_markup_get_popup_rectangle: - * @poppler_annot: a #PopplerAnnotMarkup - * @poppler_rect: a #PopplerRectangle to store the popup rectangle - * - * Retrieves the rectangle of the popup annot related to @poppler_annot. - * - * Return value: %TRUE if #PopplerRectangle was correctly filled, - * %FALSE otherwise - **/ -gboolean -poppler_annot_markup_get_popup_rectangle (PopplerAnnotMarkup *poppler_annot, - PopplerRectangle *poppler_rect) -{ - AnnotMarkup *annot; - Annot *annot_popup; - PDFRectangle *annot_rect; - - g_return_val_if_fail (POPPLER_IS_ANNOT_MARKUP (poppler_annot), FALSE); - g_return_val_if_fail (poppler_rect != NULL, FALSE); - - annot = static_cast<AnnotMarkup *>(POPPLER_ANNOT (poppler_annot)->annot); - annot_popup = annot->getPopup (); - if (!annot_popup) - return FALSE; - - annot_rect = annot_popup->getRect (); - poppler_rect->x1 = annot_rect->x1; - poppler_rect->x2 = annot_rect->x2; - poppler_rect->y1 = annot_rect->y1; - poppler_rect->y2 = annot_rect->y2; - - return TRUE; -} - -/** -* poppler_annot_markup_get_opacity: -* @poppler_annot: a #PopplerAnnotMarkup -* -* Retrieves the opacity value of @poppler_annot. -* -* Return value: the opacity value of @poppler_annot. -*/ -gdouble -poppler_annot_markup_get_opacity (PopplerAnnotMarkup *poppler_annot) -{ - AnnotMarkup *annot; - - g_return_val_if_fail (POPPLER_IS_ANNOT_MARKUP (poppler_annot), 0); - - annot = static_cast<AnnotMarkup *>(POPPLER_ANNOT (poppler_annot)->annot); - - return annot->getOpacity (); -} - -GDate * -poppler_annot_markup_get_date (PopplerAnnotMarkup *poppler_annot) -{ - AnnotMarkup *annot; - GooString *annot_date; - time_t timet; - - g_return_val_if_fail (POPPLER_IS_ANNOT_MARKUP (poppler_annot), NULL); - - annot = static_cast<AnnotMarkup *>(POPPLER_ANNOT (poppler_annot)->annot); - annot_date = annot->getDate (); - if (!annot_date) - return NULL; - - if (_poppler_convert_pdf_date_to_gtime (annot_date, &timet)) { - GDate *date; - - date = g_date_new (); - g_date_set_time_t (date, timet); - - return date; - } - - return NULL; -} - -/** -* poppler_annot_markup_get_subject: -* @poppler_annot: a #PopplerAnnotMarkup -* -* Retrives the subject text of @poppler_annot. -* -* Return value: the subject text of @poppler_annot. -*/ -gchar * -poppler_annot_markup_get_subject (PopplerAnnotMarkup *poppler_annot) -{ - AnnotMarkup *annot; - GooString *text; - - g_return_val_if_fail (POPPLER_IS_ANNOT_MARKUP (poppler_annot), NULL); - - annot = static_cast<AnnotMarkup *>(POPPLER_ANNOT (poppler_annot)->annot); - - text = annot->getSubject (); - - return text ? _poppler_goo_string_to_utf8 (text) : NULL; -} - -/** -* poppler_annot_markup_get_reply_to: -* @poppler_annot: a #PopplerAnnotMarkup -* -* Gets the reply type of @poppler_annot. -* -* Return value: #PopplerAnnotMarkupReplyType of @poppler_annot. -*/ -PopplerAnnotMarkupReplyType -poppler_annot_markup_get_reply_to (PopplerAnnotMarkup *poppler_annot) -{ - AnnotMarkup *annot; - - g_return_val_if_fail (POPPLER_IS_ANNOT_MARKUP (poppler_annot), POPPLER_ANNOT_MARKUP_REPLY_TYPE_R); - - annot = static_cast<AnnotMarkup *>(POPPLER_ANNOT (poppler_annot)->annot); - - switch (annot->getReplyTo ()) - { - case AnnotMarkup::replyTypeR: - return POPPLER_ANNOT_MARKUP_REPLY_TYPE_R; - case AnnotMarkup::replyTypeGroup: - return POPPLER_ANNOT_MARKUP_REPLY_TYPE_GROUP; - default: - g_warning ("Unsupported Annot Markup Reply To Type"); - } - - return POPPLER_ANNOT_MARKUP_REPLY_TYPE_R; -} - -/** -* poppler_annot_markup_get_external_data: -* @poppler_annot: a #PopplerAnnotMarkup -* -* Gets the external data type of @poppler_annot. -* -* Return value: #PopplerAnnotExternalDataType of @poppler_annot. -*/ -PopplerAnnotExternalDataType -poppler_annot_markup_get_external_data (PopplerAnnotMarkup *poppler_annot) -{ - AnnotMarkup *annot; - - g_return_val_if_fail (POPPLER_IS_ANNOT_MARKUP (poppler_annot), POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_UNKNOWN); - - annot = static_cast<AnnotMarkup *>(POPPLER_ANNOT (poppler_annot)->annot); - - switch (annot->getExData ()) - { - case annotExternalDataMarkup3D: - return POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_3D; - case annotExternalDataMarkupUnknown: - return POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_UNKNOWN; - default: - g_warning ("Unsupported Annot Markup External Data"); - } - - return POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_UNKNOWN; -} - -/* PopplerAnnotText */ -/** - * poppler_annot_text_get_is_open: - * @poppler_annot: a #PopplerAnnotText - * - * Retrieves the state of @poppler_annot. - * - * Return value: the state of @poppler_annot. %TRUE if it's open, %FALSE in - * other case. - **/ -gboolean -poppler_annot_text_get_is_open (PopplerAnnotText *poppler_annot) -{ - AnnotText *annot; - - g_return_val_if_fail (POPPLER_IS_ANNOT_TEXT (poppler_annot), FALSE); - - annot = static_cast<AnnotText *>(POPPLER_ANNOT (poppler_annot)->annot); - - return annot->getOpen (); -} - -/** - * poppler_annot_text_get_icon: - * @poppler_annot: a #PopplerAnnotText - * - * Gets the icon type of @poppler_annot. - * - * Return value: #PopplerAnnotTextIcon of @poppler_annot. - **/ -gchar * -poppler_annot_text_get_icon (PopplerAnnotText *poppler_annot) -{ - AnnotText *annot; - GooString *text; - - g_return_val_if_fail (POPPLER_IS_ANNOT_TEXT (poppler_annot), NULL); - - annot = static_cast<AnnotText *>(POPPLER_ANNOT (poppler_annot)->annot); - - text = annot->getIcon (); - - return text ? _poppler_goo_string_to_utf8 (text) : NULL; -} - -/** - * poppler_annot_text_get_state: - * @poppler_annot: a #PopplerAnnotText - * - * Retrieves the state of @poppler_annot. - * - * Return value: #PopplerAnnotTextState of @poppler_annot. - **/ -PopplerAnnotTextState -poppler_annot_text_get_state (PopplerAnnotText *poppler_annot) -{ - AnnotText *annot; - - g_return_val_if_fail (POPPLER_IS_ANNOT_TEXT (poppler_annot), POPPLER_ANNOT_TEXT_STATE_UNKNOWN); - - annot = static_cast<AnnotText *>(POPPLER_ANNOT (poppler_annot)->annot); - - switch (annot->getState ()) - { - case AnnotText::stateUnknown: - return POPPLER_ANNOT_TEXT_STATE_UNKNOWN; - case AnnotText::stateMarked: - return POPPLER_ANNOT_TEXT_STATE_MARKED; - case AnnotText::stateUnmarked: - return POPPLER_ANNOT_TEXT_STATE_UNMARKED; - case AnnotText::stateAccepted: - return POPPLER_ANNOT_TEXT_STATE_ACCEPTED; - case AnnotText::stateRejected: - return POPPLER_ANNOT_TEXT_STATE_REJECTED; - case AnnotText::stateCancelled: - return POPPLER_ANNOT_TEXT_STATE_CANCELLED; - case AnnotText::stateCompleted: - return POPPLER_ANNOT_TEXT_STATE_COMPLETED; - case AnnotText::stateNone: - return POPPLER_ANNOT_TEXT_STATE_NONE; - default: - g_warning ("Unsupported Annot Text State"); - } - - return POPPLER_ANNOT_TEXT_STATE_UNKNOWN; -} - -/* PopplerAnnotFreeText */ -/** - * poppler_annot_free_text_get_quadding: - * @poppler_annot: a #PopplerAnnotFreeText - * - * Retrieves the justification of the text of @poppler_annot. - * - * Return value: #PopplerAnnotFreeTextQuadding of @poppler_annot. - **/ -PopplerAnnotFreeTextQuadding -poppler_annot_free_text_get_quadding (PopplerAnnotFreeText *poppler_annot) -{ - AnnotFreeText *annot; - - g_return_val_if_fail (POPPLER_IS_ANNOT_FREE_TEXT (poppler_annot), POPPLER_ANNOT_FREE_TEXT_QUADDING_LEFT_JUSTIFIED); - - annot = static_cast<AnnotFreeText *>(POPPLER_ANNOT (poppler_annot)->annot); - - switch (annot->getQuadding ()) - { - case AnnotFreeText::quaddingLeftJustified: - return POPPLER_ANNOT_FREE_TEXT_QUADDING_LEFT_JUSTIFIED; - case AnnotFreeText::quaddingCentered: - return POPPLER_ANNOT_FREE_TEXT_QUADDING_CENTERED; - case AnnotFreeText::quaddingRightJustified: - return POPPLER_ANNOT_FREE_TEXT_QUADDING_RIGHT_JUSTIFIED; - default: - g_warning ("Unsupported Annot Free Text Quadding"); - } - - return POPPLER_ANNOT_FREE_TEXT_QUADDING_LEFT_JUSTIFIED; -} - -/** - * poppler_annot_free_text_get_callout_line: - * @poppler_annot: a #PopplerAnnotFreeText - * - * Retrieves a #PopplerCalloutLine of four or six numbers specifying a callout - * line attached to the @poppler_annot. - * - * Return value: a new allocated #PopplerCalloutLine if the annot has a callout - * line, NULL in other case. It must be freed with g_free() when - * done. - **/ -PopplerAnnotCalloutLine * -poppler_annot_free_text_get_callout_line (PopplerAnnotFreeText *poppler_annot) -{ - AnnotFreeText *annot; - AnnotCalloutLine *line; - - g_return_val_if_fail (POPPLER_IS_ANNOT_FREE_TEXT (poppler_annot), NULL); - - annot = static_cast<AnnotFreeText *>(POPPLER_ANNOT (poppler_annot)->annot); - - if ((line = annot->getCalloutLine ())) { - AnnotCalloutMultiLine *multiline; - PopplerAnnotCalloutLine *callout = g_new0 (PopplerAnnotCalloutLine, 1); - - callout->x1 = line->getX1(); - callout->y1 = line->getY1(); - callout->x2 = line->getX2(); - callout->y2 = line->getY2(); - - if ((multiline = static_cast<AnnotCalloutMultiLine *>(line))) { - callout->multiline = TRUE; - callout->x3 = multiline->getX3(); - callout->y3 = multiline->getY3(); - return callout; - } - - callout->multiline = FALSE; - return callout; - } - - return NULL; -} - -/* PopplerAnnotCalloutLine */ -POPPLER_DEFINE_BOXED_TYPE (PopplerAnnotCalloutLine, poppler_annot_callout_line, - poppler_annot_callout_line_copy, - poppler_annot_callout_line_free) - -/** - * poppler_annot_callout_line_new: - * - * Creates a new empty #PopplerAnnotCalloutLine. - * - * Return value: a new allocated #PopplerAnnotCalloutLine, NULL in other case. - * It must be freed when done. - **/ -PopplerAnnotCalloutLine * -poppler_annot_callout_line_new (void) -{ - return g_new0 (PopplerAnnotCalloutLine, 1); -} - -/** - * poppler_annot_callout_line_copy: - * @callout: the #PopplerAnnotCalloutline to be copied. - * - * It does copy @callout to a new #PopplerAnnotCalloutLine. - * - * Return value: a new allocated #PopplerAnnotCalloutLine as exact copy of - * @callout, NULL in other case. It must be freed when done. - **/ -PopplerAnnotCalloutLine * -poppler_annot_callout_line_copy (PopplerAnnotCalloutLine *callout) -{ - PopplerAnnotCalloutLine *new_callout; - - g_return_val_if_fail (callout != NULL, NULL); - - new_callout = g_new0 (PopplerAnnotCalloutLine, 1); - *new_callout = *callout; - - return new_callout; -} - -/** - * poppler_annot_callout_line_free: - * @callout: a #PopplerAnnotCalloutLine - * - * Frees the memory used by #PopplerAnnotCalloutLine. - **/ -void -poppler_annot_callout_line_free (PopplerAnnotCalloutLine *callout) -{ - g_free (callout); -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-annot.h b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-annot.h deleted file mode 100644 index 46480274e45..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-annot.h +++ /dev/null @@ -1,176 +0,0 @@ -/* poppler-annot.h: glib interface to poppler - * - * Copyright (C) 2007 Inigo Martinez <inigomartinez@gmail.com> - * Copyright (C) 2009 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __POPPLER_ANNOT_H__ -#define __POPPLER_ANNOT_H__ - -#include <glib-object.h> -#include "poppler.h" - -G_BEGIN_DECLS - -#define POPPLER_TYPE_ANNOT (poppler_annot_get_type ()) -#define POPPLER_ANNOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_ANNOT, PopplerAnnot)) -#define POPPLER_IS_ANNOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_ANNOT)) - -#define POPPLER_TYPE_ANNOT_MARKUP (poppler_annot_markup_get_type ()) -#define POPPLER_ANNOT_MARKUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_ANNOT_MARKUP, PopplerAnnotMarkup)) -#define POPPLER_IS_ANNOT_MARKUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_ANNOT_MARKUP)) - -#define POPPLER_TYPE_ANNOT_TEXT (poppler_annot_text_get_type ()) -#define POPPLER_ANNOT_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_ANNOT_TEXT, PopplerAnnotText)) -#define POPPLER_IS_ANNOT_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_ANNOT_TEXT)) - -#define POPPLER_TYPE_ANNOT_FREE_TEXT (poppler_annot_free_text_get_type ()) -#define POPPLER_ANNOT_FREE_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_ANNOT_FREE_TEXT, PopplerAnnotFreeText)) -#define POPPLER_IS_ANNOT_FREE_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_ANNOT_FREE_TEXT)) - -#define POPPLER_TYPE_ANNOT_CALLOUT_LINE (poppler_annot_callout_line_get_type ()) - -typedef enum -{ - POPPLER_ANNOT_UNKNOWN, - POPPLER_ANNOT_TEXT, - POPPLER_ANNOT_LINK, - POPPLER_ANNOT_FREE_TEXT, - POPPLER_ANNOT_LINE, - POPPLER_ANNOT_SQUARE, - POPPLER_ANNOT_CIRCLE, - POPPLER_ANNOT_POLYGON, - POPPLER_ANNOT_POLY_LINE, - POPPLER_ANNOT_HIGHLIGHT, - POPPLER_ANNOT_UNDERLINE, - POPPLER_ANNOT_SQUIGGLY, - POPPLER_ANNOT_STRIKE_OUT, - POPPLER_ANNOT_STAMP, - POPPLER_ANNOT_CARET, - POPPLER_ANNOT_INK, - POPPLER_ANNOT_POPUP, - POPPLER_ANNOT_FILE_ATTACHMENT, - POPPLER_ANNOT_SOUND, - POPPLER_ANNOT_MOVIE, - POPPLER_ANNOT_WIDGET, - POPPLER_ANNOT_SCREEN, - POPPLER_ANNOT_PRINTER_MARK, - POPPLER_ANNOT_TRAP_NET, - POPPLER_ANNOT_WATERMARK, - POPPLER_ANNOT_3D -} PopplerAnnotType; - -typedef enum /*< flags >*/ -{ - POPPLER_ANNOT_FLAG_UNKNOWN = 0, - POPPLER_ANNOT_FLAG_INVISIBLE = 1 << 0, - POPPLER_ANNOT_FLAG_HIDDEN = 1 << 1, - POPPLER_ANNOT_FLAG_PRINT = 1 << 2, - POPPLER_ANNOT_FLAG_NO_ZOOM = 1 << 3, - POPPLER_ANNOT_FLAG_NO_ROTATE = 1 << 4, - POPPLER_ANNOT_FLAG_NO_VIEW = 1 << 5, - POPPLER_ANNOT_FLAG_READ_ONLY = 1 << 6, - POPPLER_ANNOT_FLAG_LOCKED = 1 << 7, - POPPLER_ANNOT_FLAG_TOGGLE_NO_VIEW = 1 << 8, - POPPLER_ANNOT_FLAG_LOCKED_CONTENTS = 1 << 9 -} PopplerAnnotFlag; - -typedef enum -{ - POPPLER_ANNOT_MARKUP_REPLY_TYPE_R, - POPPLER_ANNOT_MARKUP_REPLY_TYPE_GROUP -} PopplerAnnotMarkupReplyType; - -typedef enum -{ - POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_3D, - POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_UNKNOWN -} PopplerAnnotExternalDataType; - -typedef enum -{ - POPPLER_ANNOT_TEXT_STATE_MARKED, - POPPLER_ANNOT_TEXT_STATE_UNMARKED, - POPPLER_ANNOT_TEXT_STATE_ACCEPTED, - POPPLER_ANNOT_TEXT_STATE_REJECTED, - POPPLER_ANNOT_TEXT_STATE_CANCELLED, - POPPLER_ANNOT_TEXT_STATE_COMPLETED, - POPPLER_ANNOT_TEXT_STATE_NONE, - POPPLER_ANNOT_TEXT_STATE_UNKNOWN -} PopplerAnnotTextState; - -typedef enum -{ - POPPLER_ANNOT_FREE_TEXT_QUADDING_LEFT_JUSTIFIED, - POPPLER_ANNOT_FREE_TEXT_QUADDING_CENTERED, - POPPLER_ANNOT_FREE_TEXT_QUADDING_RIGHT_JUSTIFIED -} PopplerAnnotFreeTextQuadding; - -struct _PopplerAnnotCalloutLine -{ - gboolean multiline; - gdouble x1; - gdouble y1; - gdouble x2; - gdouble y2; - gdouble x3; - gdouble y3; -}; - -GType poppler_annot_get_type (void) G_GNUC_CONST; -PopplerAnnotType poppler_annot_get_annot_type (PopplerAnnot *poppler_annot); -gchar *poppler_annot_get_contents (PopplerAnnot *poppler_annot); -void poppler_annot_set_contents (PopplerAnnot *poppler_annot, - const gchar *contents); -gchar *poppler_annot_get_name (PopplerAnnot *poppler_annot); -gchar *poppler_annot_get_modified (PopplerAnnot *poppler_annot); -PopplerAnnotFlag poppler_annot_get_flags (PopplerAnnot *poppler_annot); -PopplerColor *poppler_annot_get_color (PopplerAnnot *poppler_annot); - -/* PopplerAnnotMarkup */ -GType poppler_annot_markup_get_type (void) G_GNUC_CONST; -gchar *poppler_annot_markup_get_label (PopplerAnnotMarkup *poppler_annot); -gboolean poppler_annot_markup_has_popup (PopplerAnnotMarkup *poppler_annot); -gboolean poppler_annot_markup_get_popup_is_open (PopplerAnnotMarkup *poppler_annot); -gboolean poppler_annot_markup_get_popup_rectangle (PopplerAnnotMarkup *poppler_annot, - PopplerRectangle *poppler_rect); -gdouble poppler_annot_markup_get_opacity (PopplerAnnotMarkup *poppler_annot); -GDate *poppler_annot_markup_get_date (PopplerAnnotMarkup *poppler_annot); -gchar *poppler_annot_markup_get_subject (PopplerAnnotMarkup *poppler_annot); -PopplerAnnotMarkupReplyType poppler_annot_markup_get_reply_to (PopplerAnnotMarkup *poppler_annot); -PopplerAnnotExternalDataType poppler_annot_markup_get_external_data (PopplerAnnotMarkup *poppler_annot); - -/* PopplerAnnotText */ -GType poppler_annot_text_get_type (void) G_GNUC_CONST; -gboolean poppler_annot_text_get_is_open (PopplerAnnotText *poppler_annot); -gchar *poppler_annot_text_get_icon (PopplerAnnotText *poppler_annot); -PopplerAnnotTextState poppler_annot_text_get_state (PopplerAnnotText *poppler_annot); - -/* PopplerAnnotFreeText */ -GType poppler_annot_free_text_get_type (void) G_GNUC_CONST; -PopplerAnnotFreeTextQuadding poppler_annot_free_text_get_quadding (PopplerAnnotFreeText *poppler_annot); -PopplerAnnotCalloutLine *poppler_annot_free_text_get_callout_line (PopplerAnnotFreeText *poppler_annot); - -/* PopplerCalloutLine */ -GType poppler_annot_callout_line_get_type (void) G_GNUC_CONST; -PopplerAnnotCalloutLine *poppler_annot_callout_line_new (void); -PopplerAnnotCalloutLine *poppler_annot_callout_line_copy (PopplerAnnotCalloutLine *callout); -void poppler_annot_callout_line_free (PopplerAnnotCalloutLine *callout); - -G_END_DECLS - -#endif /* __POPPLER_ANNOT_H__ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-attachment.cc b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-attachment.cc deleted file mode 100644 index 78bc72f63a1..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-attachment.cc +++ /dev/null @@ -1,274 +0,0 @@ -/* poppler-attachment.cc: glib wrapper for poppler - * Copyright (C) 2006, Red Hat, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "config.h" -#include <errno.h> -#include <glib/gstdio.h> - -#include "poppler.h" -#include "poppler-private.h" - -/* FIXME: We need to add gettext support sometime */ -#define _(x) (x) - -typedef struct _PopplerAttachmentPrivate PopplerAttachmentPrivate; -struct _PopplerAttachmentPrivate -{ - Object *obj_stream; - PopplerDocument *document; -}; - -#define POPPLER_ATTACHMENT_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), POPPLER_TYPE_ATTACHMENT, PopplerAttachmentPrivate)) - -static void poppler_attachment_dispose (GObject *obj); -static void poppler_attachment_finalize (GObject *obj); - -G_DEFINE_TYPE (PopplerAttachment, poppler_attachment, G_TYPE_OBJECT) - -static void -poppler_attachment_init (PopplerAttachment *attachment) -{ -} - -static void -poppler_attachment_class_init (PopplerAttachmentClass *klass) -{ - G_OBJECT_CLASS (klass)->dispose = poppler_attachment_dispose; - G_OBJECT_CLASS (klass)->finalize = poppler_attachment_finalize; - g_type_class_add_private (klass, sizeof (PopplerAttachmentPrivate)); -} - -static void -poppler_attachment_dispose (GObject *obj) -{ - PopplerAttachmentPrivate *priv; - - priv = POPPLER_ATTACHMENT_GET_PRIVATE (obj); - - if (priv->obj_stream) - { - priv->obj_stream->free(); - delete priv->obj_stream; - priv->obj_stream = NULL; - } - - if (priv->document) - { - g_object_unref (priv->document); - priv->document = NULL; - } - - G_OBJECT_CLASS (poppler_attachment_parent_class)->dispose (obj); -} - -static void -poppler_attachment_finalize (GObject *obj) -{ - PopplerAttachment *attachment; - - attachment = (PopplerAttachment *) obj; - - if (attachment->name) - g_free (attachment->name); - attachment->name = NULL; - - if (attachment->description) - g_free (attachment->description); - attachment->description = NULL; - - if (attachment->checksum) - g_string_free (attachment->checksum, TRUE); - attachment->checksum = NULL; - - G_OBJECT_CLASS (poppler_attachment_parent_class)->finalize (obj); -} - -/* Public functions */ - -PopplerAttachment * -_poppler_attachment_new (PopplerDocument *document, - EmbFile *emb_file) -{ - PopplerAttachment *attachment; - PopplerAttachmentPrivate *priv; - - g_assert (document != NULL); - g_assert (emb_file != NULL); - - attachment = (PopplerAttachment *) g_object_new (POPPLER_TYPE_ATTACHMENT, NULL); - priv = POPPLER_ATTACHMENT_GET_PRIVATE (attachment); - - priv->document = (PopplerDocument *) g_object_ref (document); - - if (emb_file->name ()) - attachment->name = _poppler_goo_string_to_utf8 (emb_file->name ()); - if (emb_file->description ()) - attachment->description = _poppler_goo_string_to_utf8 (emb_file->description ()); - - attachment->size = emb_file->size (); - - _poppler_convert_pdf_date_to_gtime (emb_file->createDate (), (time_t *)&attachment->ctime); - _poppler_convert_pdf_date_to_gtime (emb_file->modDate (), (time_t *)&attachment->mtime); - - if (emb_file->checksum ()->getLength () > 0) - attachment->checksum = g_string_new_len (emb_file->checksum ()->getCString (), - emb_file->checksum ()->getLength ()); - - priv->obj_stream = new Object(); - emb_file->streamObject().copy(priv->obj_stream); - - return attachment; -} - -static gboolean -save_helper (const gchar *buf, - gsize count, - gpointer data, - GError **error) -{ - FILE *f = (FILE *) data; - gsize n; - - n = fwrite (buf, 1, count, f); - if (n != count) - { - g_set_error (error, - G_FILE_ERROR, - g_file_error_from_errno (errno), - _("Error writing to image file: %s"), - g_strerror (errno)); - return FALSE; - } - - return TRUE; -} - -/** - * poppler_attachment_save: - * @attachment: A #PopplerAttachment. - * @filename: name of file to save - * @error: return location for error, or %NULL. - * - * Saves @attachment to a file indicated by @filename. If @error is set, %FALSE - * will be returned. Possible errors include those in the #G_FILE_ERROR domain - * and whatever the save function generates. - * - * Return value: %TRUE, if the file successfully saved - **/ -gboolean -poppler_attachment_save (PopplerAttachment *attachment, - const char *filename, - GError **error) -{ - gboolean result; - FILE *f; - - g_return_val_if_fail (POPPLER_IS_ATTACHMENT (attachment), FALSE); - - f = g_fopen (filename, "wb"); - - if (f == NULL) - { - gchar *display_name = g_filename_display_name (filename); - g_set_error (error, - G_FILE_ERROR, - g_file_error_from_errno (errno), - _("Failed to open '%s' for writing: %s"), - display_name, - g_strerror (errno)); - g_free (display_name); - return FALSE; - } - - result = poppler_attachment_save_to_callback (attachment, save_helper, f, error); - - if (fclose (f) < 0) - { - gchar *display_name = g_filename_display_name (filename); - g_set_error (error, - G_FILE_ERROR, - g_file_error_from_errno (errno), - _("Failed to close '%s', all data may not have been saved: %s"), - display_name, - g_strerror (errno)); - g_free (display_name); - return FALSE; - } - - return TRUE; -} - -#define BUF_SIZE 1024 - -/** - * poppler_attachment_save_to_callback: - * @attachment: A #PopplerAttachment. - * @save_func: a function that is called to save each block of data that the save routine generates. - * @user_data: user data to pass to the save function. - * @error: return location for error, or %NULL. - * - * Saves @attachment by feeding the produced data to @save_func. Can be used - * when you want to store the attachment to something other than a file, such as - * an in-memory buffer or a socket. If @error is set, %FALSE will be - * returned. Possible errors include those in the #G_FILE_ERROR domain and - * whatever the save function generates. - * - * Return value: %TRUE, if the save successfully completed - **/ -gboolean -poppler_attachment_save_to_callback (PopplerAttachment *attachment, - PopplerAttachmentSaveFunc save_func, - gpointer user_data, - GError **error) -{ - Stream *stream; - gchar buf[BUF_SIZE]; - int i; - gboolean eof_reached = FALSE; - - g_return_val_if_fail (POPPLER_IS_ATTACHMENT (attachment), FALSE); - - stream = POPPLER_ATTACHMENT_GET_PRIVATE (attachment)->obj_stream->getStream(); - stream->reset(); - - do - { - int data; - - for (i = 0; i < BUF_SIZE; i++) - { - data = stream->getChar (); - if (data == EOF) - { - eof_reached = TRUE; - break; - } - buf[i] = data; - } - - if (i > 0) - { - if (! (save_func) (buf, i, user_data, error)) - return FALSE; - } - } - while (! eof_reached); - - - return TRUE; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-attachment.h b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-attachment.h deleted file mode 100644 index d506167d005..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-attachment.h +++ /dev/null @@ -1,70 +0,0 @@ -/* poppler-attachment.h: glib interface to poppler - * Copyright (C) 2004, Red Hat, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __POPPLER_ATTACHMENT_H__ -#define __POPPLER_ATTACHMENT_H__ - -#include <glib.h> -#include <glib-object.h> - -#include "poppler.h" - -G_BEGIN_DECLS - - -#define POPPLER_TYPE_ATTACHMENT (poppler_attachment_get_type ()) -#define POPPLER_ATTACHMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_ATTACHMENT, PopplerAttachment)) -#define POPPLER_IS_ATTACHMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_ATTACHMENT)) - - -typedef gboolean (*PopplerAttachmentSaveFunc) (const gchar *buf, - gsize count, - gpointer data, - GError **error); - -struct _PopplerAttachment -{ - GObject parent; - - gchar *name; - gchar *description; - gsize size; - GTime mtime; - GTime ctime; - GString *checksum; -}; - -typedef struct _PopplerAttachmentClass -{ - GObjectClass parent_class; -} PopplerAttachmentClass; - - -GType poppler_attachment_get_type (void) G_GNUC_CONST; -gboolean poppler_attachment_save (PopplerAttachment *attachment, - const char *filename, - GError **error); -gboolean poppler_attachment_save_to_callback (PopplerAttachment *attachment, - PopplerAttachmentSaveFunc save_func, - gpointer user_data, - GError **error); - - -G_END_DECLS - -#endif /* __POPPLER_ATTACHMENT_H__ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-date.cc b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-date.cc deleted file mode 100644 index 2444f93c20a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-date.cc +++ /dev/null @@ -1,66 +0,0 @@ -/* poppler-date.cc: glib interface to poppler - * - * Copyright (C) 2009 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <DateInfo.h> - -#include "poppler-date.h" - -/** - * poppler_date_parse: - * @date: string to parse - * @timet: an uninitialized #time_t - * - * Parses a PDF format date string and converts it to a #time_t. Returns #FALSE - * if the parsing fails or the input string is not a valid PDF format date string - * - * Return value: #TRUE, if @timet was set - **/ -gboolean -poppler_date_parse (const gchar *date, - time_t *timet) -{ - gint year, mon, day, hour, min, sec, tz_hour, tz_minute; - gchar tz; - struct tm time; - time_t retval; - - /* See PDF Reference 1.3, Section 3.8.2 for PDF Date representation */ - // TODO do something with the timezone information - if (!parseDateString (date, &year, &mon, &day, &hour, &min, &sec, &tz, &tz_hour, &tz_minute)) - return FALSE; - - time.tm_year = year - 1900; - time.tm_mon = mon - 1; - time.tm_mday = day; - time.tm_hour = hour; - time.tm_min = min; - time.tm_sec = sec; - time.tm_wday = -1; - time.tm_yday = -1; - time.tm_isdst = -1; /* 0 = DST off, 1 = DST on, -1 = don't know */ - - /* compute tm_wday and tm_yday and check date */ - retval = mktime (&time); - if (retval == (time_t) - 1) - return FALSE; - - *timet = retval; - - return TRUE; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-date.h b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-date.h deleted file mode 100644 index 2bb52b27377..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-date.h +++ /dev/null @@ -1,30 +0,0 @@ -/* poppler-date.h: glib interface to poppler - * - * Copyright (C) 2009 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __POPPLER_DATE_H__ -#define __POPPLER_DATE_H__ - -#include "poppler.h" - -G_BEGIN_DECLS -gboolean poppler_date_parse (const gchar *date, - time_t *timet); -G_END_DECLS - -#endif /* __POPPLER_DATE_H__ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-document.cc b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-document.cc deleted file mode 100644 index fad45c84911..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-document.cc +++ /dev/null @@ -1,1960 +0,0 @@ -/* poppler-document.cc: glib wrapper for poppler - * Copyright (C) 2005, Red Hat, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <string.h> - -#include <goo/GooList.h> -#include <splash/SplashBitmap.h> -#include <GlobalParams.h> -#include <PDFDoc.h> -#include <Outline.h> -#include <ErrorCodes.h> -#include <UnicodeMap.h> -#include <GfxState.h> -#include <SplashOutputDev.h> -#include <Stream.h> -#include <FontInfo.h> -#include <PDFDocEncoding.h> -#include <OptionalContent.h> - -#include "poppler.h" -#include "poppler-private.h" -#include "poppler-enums.h" - -enum { - PROP_0, - PROP_TITLE, - PROP_FORMAT, - PROP_FORMAT_MAJOR, - PROP_FORMAT_MINOR, - PROP_AUTHOR, - PROP_SUBJECT, - PROP_KEYWORDS, - PROP_CREATOR, - PROP_PRODUCER, - PROP_CREATION_DATE, - PROP_MOD_DATE, - PROP_LINEARIZED, - PROP_PAGE_LAYOUT, - PROP_PAGE_MODE, - PROP_VIEWER_PREFERENCES, - PROP_PERMISSIONS, - PROP_METADATA -}; - -static void poppler_document_layers_free (PopplerDocument *document); - -typedef struct _PopplerDocumentClass PopplerDocumentClass; -struct _PopplerDocumentClass -{ - GObjectClass parent_class; -}; - -G_DEFINE_TYPE (PopplerDocument, poppler_document, G_TYPE_OBJECT) - -static PopplerDocument * -_poppler_document_new_from_pdfdoc (PDFDoc *newDoc, - GError **error) -{ - PopplerDocument *document; - - document = (PopplerDocument *) g_object_new (POPPLER_TYPE_DOCUMENT, NULL, NULL); - - if (!newDoc->isOk()) { - int fopen_errno; - switch (newDoc->getErrorCode()) - { - case errOpenFile: - // If there was an error opening the file, count it as a G_FILE_ERROR - // and set the GError parameters accordingly. (this assumes that the - // only way to get an errOpenFile error is if newDoc was created using - // a filename and thus fopen was called, which right now is true. - fopen_errno = newDoc->getFopenErrno(); - g_set_error (error, G_FILE_ERROR, - g_file_error_from_errno (fopen_errno), - "%s", g_strerror (fopen_errno)); - break; - case errBadCatalog: - g_set_error (error, POPPLER_ERROR, - POPPLER_ERROR_BAD_CATALOG, - "Failed to read the document catalog"); - break; - case errDamaged: - g_set_error (error, POPPLER_ERROR, - POPPLER_ERROR_DAMAGED, - "PDF document is damaged"); - break; - case errEncrypted: - g_set_error (error, POPPLER_ERROR, - POPPLER_ERROR_ENCRYPTED, - "Document is encrypted"); - break; - default: - g_set_error (error, POPPLER_ERROR, - POPPLER_ERROR_INVALID, - "Failed to load document"); - } - - delete newDoc; - return NULL; - } - - document->doc = newDoc; - -#if defined (HAVE_CAIRO) - document->output_dev = new CairoOutputDev (); - document->output_dev->startDoc(document->doc->getXRef (), document->doc->getCatalog ()); -#elif defined (HAVE_SPLASH) - SplashColor white; - white[0] = 255; - white[1] = 255; - white[2] = 255; - document->output_dev = new SplashOutputDev(splashModeRGB8, 4, gFalse, white); - document->output_dev->startDoc(document->doc->getXRef ()); -#endif - - return document; -} - -/** - * poppler_document_new_from_file: - * @uri: uri of the file to load - * @password: password to unlock the file with, or %NULL - * @error: Return location for an error, or %NULL - * - * Creates a new #PopplerDocument. If %NULL is returned, then @error will be - * set. Possible errors include those in the #POPPLER_ERROR and #G_FILE_ERROR - * domains. - * - * Return value: A newly created #PopplerDocument, or %NULL - **/ -PopplerDocument * -poppler_document_new_from_file (const char *uri, - const char *password, - GError **error) -{ - PDFDoc *newDoc; - GooString *filename_g; - GooString *password_g; - char *filename; - - if (!globalParams) { - globalParams = new GlobalParams(); - } - - filename = g_filename_from_uri (uri, NULL, error); - if (!filename) - return NULL; - - password_g = NULL; - if (password != NULL) { - if (g_utf8_validate (password, -1, NULL)) { - gchar *password_latin; - - password_latin = g_convert (password, -1, - "ISO-8859-1", - "UTF-8", - NULL, NULL, NULL); - password_g = new GooString (password_latin); - g_free (password_latin); - } else { - password_g = new GooString (password); - } - } - -#ifdef G_OS_WIN32 - wchar_t *filenameW; - int length; - - length = MultiByteToWideChar(CP_UTF8, 0, filename, -1, NULL, 0); - - filenameW = new WCHAR[length]; - if (!filenameW) - return NULL; - - length = MultiByteToWideChar(CP_UTF8, 0, filename, -1, filenameW, length); - - newDoc = new PDFDoc(filenameW, length, password_g, password_g); - delete filenameW; -#else - filename_g = new GooString (filename); - newDoc = new PDFDoc(filename_g, password_g, password_g); -#endif - g_free (filename); - - delete password_g; - - return _poppler_document_new_from_pdfdoc (newDoc, error); -} - -/** - * poppler_document_new_from_data: - * @data: the pdf data contained in a char array - * @length: the length of #data - * @password: password to unlock the file with, or %NULL - * @error: Return location for an error, or %NULL - * - * Creates a new #PopplerDocument. If %NULL is returned, then @error will be - * set. Possible errors include those in the #POPPLER_ERROR and #G_FILE_ERROR - * domains. - * - * Return value: A newly created #PopplerDocument, or %NULL - **/ -PopplerDocument * -poppler_document_new_from_data (char *data, - int length, - const char *password, - GError **error) -{ - Object obj; - PDFDoc *newDoc; - MemStream *str; - GooString *password_g; - - if (!globalParams) { - globalParams = new GlobalParams(); - } - - // create stream - obj.initNull(); - str = new MemStream(data, 0, length, &obj); - - password_g = NULL; - if (password != NULL) - password_g = new GooString (password); - - newDoc = new PDFDoc(str, password_g, password_g); - delete password_g; - - return _poppler_document_new_from_pdfdoc (newDoc, error); -} - -static gboolean -handle_save_error (int err_code, - GError **error) -{ - switch (err_code) - { - case errNone: - break; - case errOpenFile: - g_set_error (error, POPPLER_ERROR, - POPPLER_ERROR_OPEN_FILE, - "Failed to open file for writing"); - break; - case errEncrypted: - g_set_error (error, POPPLER_ERROR, - POPPLER_ERROR_ENCRYPTED, - "Document is encrypted"); - break; - default: - g_set_error (error, POPPLER_ERROR, - POPPLER_ERROR_INVALID, - "Failed to save document"); - } - - return err_code == errNone; -} - -/** - * poppler_document_save: - * @document: a #PopplerDocument - * @uri: uri of file to save - * @error: return location for an error, or %NULL - * - * Saves @document. Any change made in the document such as - * form fields filled by the user will be saved. - * If @error is set, %FALSE will be returned. Possible errors - * include those in the #G_FILE_ERROR domain. - * - * Return value: %TRUE, if the document was successfully saved - **/ -gboolean -poppler_document_save (PopplerDocument *document, - const char *uri, - GError **error) -{ - char *filename; - gboolean retval = FALSE; - - g_return_val_if_fail (POPPLER_IS_DOCUMENT (document), FALSE); - - filename = g_filename_from_uri (uri, NULL, error); - if (filename != NULL) { - GooString *fname = new GooString (filename); - int err_code; - g_free (filename); - - err_code = document->doc->saveAs (fname); - retval = handle_save_error (err_code, error); - delete fname; - } - - return retval; -} - -/** - * poppler_document_save_a_copy: - * @document: a #PopplerDocument - * @uri: uri of file to save - * @error: return location for an error, or %NULL - * - * Saves a copy of the original @document. - * Any change made in the document such as - * form fields filled by the user will not be saved. - * If @error is set, %FALSE will be returned. Possible errors - * include those in the #G_FILE_ERROR domain. - * - * Return value: %TRUE, if the document was successfully saved - **/ -gboolean -poppler_document_save_a_copy (PopplerDocument *document, - const char *uri, - GError **error) -{ - char *filename; - gboolean retval = FALSE; - - g_return_val_if_fail (POPPLER_IS_DOCUMENT (document), FALSE); - - filename = g_filename_from_uri (uri, NULL, error); - if (filename != NULL) { - GooString *fname = new GooString (filename); - int err_code; - g_free (filename); - - err_code = document->doc->saveWithoutChangesAs (fname); - retval = handle_save_error (err_code, error); - delete fname; - } - - return retval; -} - -static void -poppler_document_finalize (GObject *object) -{ - PopplerDocument *document = POPPLER_DOCUMENT (object); - - poppler_document_layers_free (document); - delete document->output_dev; - delete document->doc; -} - -/** - * poppler_document_get_n_pages: - * @document: A #PopplerDocument - * - * Returns the number of pages in a loaded document. - * - * Return value: Number of pages - **/ -int -poppler_document_get_n_pages (PopplerDocument *document) -{ - g_return_val_if_fail (POPPLER_IS_DOCUMENT (document), 0); - - return document->doc->getNumPages(); -} - -/** - * poppler_document_get_page: - * @document: A #PopplerDocument - * @index: a page index - * - * Returns the #PopplerPage indexed at @index. This object is owned by the - * caller. - * - * #PopplerPage<!-- -->s are indexed starting at 0. - * - * Return value: The #PopplerPage at @index - **/ -PopplerPage * -poppler_document_get_page (PopplerDocument *document, - int index) -{ - Catalog *catalog; - Page *page; - - g_return_val_if_fail (0 <= index && - index < poppler_document_get_n_pages (document), - NULL); - - catalog = document->doc->getCatalog(); - page = catalog->getPage (index + 1); - - return _poppler_page_new (document, page, index); -} - -/** - * poppler_document_get_page_by_label: - * @document: A #PopplerDocument - * @label: a page label - * - * Returns the #PopplerPage reference by @label. This object is owned by the - * caller. @label is a human-readable string representation of the page number, - * and can be document specific. Typically, it is a value such as "iii" or "3". - * - * By default, "1" refers to the first page. - * - * Return value: The #PopplerPage referenced by @label - **/ -PopplerPage * -poppler_document_get_page_by_label (PopplerDocument *document, - const char *label) -{ - Catalog *catalog; - GooString label_g(label); - int index; - - catalog = document->doc->getCatalog(); - if (!catalog->labelToIndex (&label_g, &index)) - return NULL; - - return poppler_document_get_page (document, index); -} - -/** - * poppler_document_has_attachments: - * @document: A #PopplerDocument - * - * Returns %TRUE of @document has any attachments. - * - * Return value: %TRUE, if @document has attachments. - **/ -gboolean -poppler_document_has_attachments (PopplerDocument *document) -{ - Catalog *catalog; - int n_files = 0; - - g_return_val_if_fail (POPPLER_IS_DOCUMENT (document), FALSE); - - catalog = document->doc->getCatalog (); - if (catalog && catalog->isOk ()) - { - n_files = catalog->numEmbeddedFiles (); - } - - return (n_files != 0); -} - -/** - * poppler_document_get_attachments: - * @document: A #PopplerDocument - * - * Returns a #GList containing #PopplerAttachment<!-- -->s. These attachments - * are unowned, and must be unreffed, and the list must be freed with - * g_list_free(). - * - * Return value: a list of available attachments. - **/ -GList * -poppler_document_get_attachments (PopplerDocument *document) -{ - Catalog *catalog; - int n_files, i; - GList *retval = NULL; - - g_return_val_if_fail (POPPLER_IS_DOCUMENT (document), NULL); - - catalog = document->doc->getCatalog (); - if (catalog == NULL || ! catalog->isOk ()) - return NULL; - - n_files = catalog->numEmbeddedFiles (); - for (i = 0; i < n_files; i++) - { - PopplerAttachment *attachment; - EmbFile *emb_file; - - emb_file = catalog->embeddedFile (i); - if (!emb_file->isOk ()) { - delete emb_file; - continue; - } - attachment = _poppler_attachment_new (document, emb_file); - delete emb_file; - - retval = g_list_prepend (retval, attachment); - } - return g_list_reverse (retval); -} - -/** - * poppler_document_find_dest: - * @document: A #PopplerDocument - * @link_name: a named destination - * - * Finds named destination @link_name in @document - * - * Return value: The #PopplerDest destination or %NULL if - * @link_name is not a destination. Returned value must - * be freed with #poppler_dest_free - **/ -PopplerDest * -poppler_document_find_dest (PopplerDocument *document, - const gchar *link_name) -{ - PopplerDest *dest = NULL; - LinkDest *link_dest = NULL; - GooString *g_link_name; - - g_return_val_if_fail (POPPLER_IS_DOCUMENT (document), NULL); - g_return_val_if_fail (link_name != NULL, NULL); - - g_link_name = new GooString (link_name); - - if (g_link_name) { - link_dest = document->doc->findDest (g_link_name); - delete g_link_name; - } - - if (link_dest) { - dest = _poppler_dest_new_goto (document, link_dest); - delete link_dest; - } - - return dest; -} - -char *_poppler_goo_string_to_utf8(GooString *s) -{ - char *result; - - if (s->hasUnicodeMarker()) { - result = g_convert (s->getCString () + 2, - s->getLength () - 2, - "UTF-8", "UTF-16BE", NULL, NULL, NULL); - } else { - int len; - gunichar *ucs4_temp; - int i; - - len = s->getLength (); - ucs4_temp = g_new (gunichar, len + 1); - for (i = 0; i < len; ++i) { - ucs4_temp[i] = pdfDocEncoding[(unsigned char)s->getChar(i)]; - } - ucs4_temp[i] = 0; - - result = g_ucs4_to_utf8 (ucs4_temp, -1, NULL, NULL, NULL); - - g_free (ucs4_temp); - } - - return result; -} - -static void -info_dict_get_string (Dict *info_dict, const gchar *key, GValue *value) -{ - Object obj; - GooString *goo_value; - gchar *result; - - if (!info_dict->lookup ((gchar *)key, &obj)->isString ()) { - obj.free (); - return; - } - - goo_value = obj.getString (); - - result = _poppler_goo_string_to_utf8(goo_value); - - obj.free (); - - g_value_set_string (value, result); - - g_free (result); -} - -static void -info_dict_get_date (Dict *info_dict, const gchar *key, GValue *value) -{ - Object obj; - time_t result; - - if (!info_dict->lookup ((gchar *)key, &obj)->isString ()) { - obj.free (); - return; - } - - if (_poppler_convert_pdf_date_to_gtime (obj.getString (), &result)) - g_value_set_int (value, result); - - obj.free (); -} - -static PopplerPageLayout -convert_page_layout (Catalog::PageLayout pageLayout) -{ - switch (pageLayout) - { - case Catalog::pageLayoutSinglePage: - return POPPLER_PAGE_LAYOUT_SINGLE_PAGE; - case Catalog::pageLayoutOneColumn: - return POPPLER_PAGE_LAYOUT_ONE_COLUMN; - case Catalog::pageLayoutTwoColumnLeft: - return POPPLER_PAGE_LAYOUT_TWO_COLUMN_LEFT; - case Catalog::pageLayoutTwoColumnRight: - return POPPLER_PAGE_LAYOUT_TWO_COLUMN_RIGHT; - case Catalog::pageLayoutTwoPageLeft: - return POPPLER_PAGE_LAYOUT_TWO_PAGE_LEFT; - case Catalog::pageLayoutTwoPageRight: - return POPPLER_PAGE_LAYOUT_TWO_PAGE_RIGHT; - case Catalog::pageLayoutNone: - default: - return POPPLER_PAGE_LAYOUT_UNSET; - } -} - -static PopplerPageMode -convert_page_mode (Catalog::PageMode pageMode) -{ - switch (pageMode) - { - case Catalog::pageModeOutlines: - return POPPLER_PAGE_MODE_USE_OUTLINES; - case Catalog::pageModeThumbs: - return POPPLER_PAGE_MODE_USE_THUMBS; - case Catalog::pageModeFullScreen: - return POPPLER_PAGE_MODE_FULL_SCREEN; - case Catalog::pageModeOC: - return POPPLER_PAGE_MODE_USE_OC; - case Catalog::pageModeAttach: - return POPPLER_PAGE_MODE_USE_ATTACHMENTS; - case Catalog::pageModeNone: - default: - return POPPLER_PAGE_MODE_UNSET; - } -} - -static void -poppler_document_get_property (GObject *object, - guint prop_id, - GValue *value, - GParamSpec *pspec) -{ - PopplerDocument *document = POPPLER_DOCUMENT (object); - Object obj; - Catalog *catalog; - gchar *str; - guint flag; - - switch (prop_id) - { - case PROP_TITLE: - document->doc->getDocInfo (&obj); - if (obj.isDict ()) - info_dict_get_string (obj.getDict(), "Title", value); - obj.free (); - break; - case PROP_FORMAT: - str = g_strndup("PDF-", 15); /* allocates 16 chars, pads with \0s */ - g_ascii_formatd (str + 4, 15 + 1 - 4, - "%.2g", document->doc->getPDFMajorVersion () + document->doc->getPDFMinorVersion() / 10.0); - g_value_take_string (value, str); - break; - case PROP_FORMAT_MAJOR: - g_value_set_uint (value, document->doc->getPDFMajorVersion ()); - break; - case PROP_FORMAT_MINOR: - g_value_set_uint (value, document->doc->getPDFMinorVersion()); - break; - case PROP_AUTHOR: - document->doc->getDocInfo (&obj); - if (obj.isDict ()) - info_dict_get_string (obj.getDict(), "Author", value); - obj.free (); - break; - case PROP_SUBJECT: - document->doc->getDocInfo (&obj); - if (obj.isDict ()) - info_dict_get_string (obj.getDict(), "Subject", value); - obj.free (); - break; - case PROP_KEYWORDS: - document->doc->getDocInfo (&obj); - if (obj.isDict ()) - info_dict_get_string (obj.getDict(), "Keywords", value); - obj.free (); - break; - case PROP_CREATOR: - document->doc->getDocInfo (&obj); - if (obj.isDict ()) - info_dict_get_string (obj.getDict(), "Creator", value); - obj.free (); - break; - case PROP_PRODUCER: - document->doc->getDocInfo (&obj); - if (obj.isDict ()) - info_dict_get_string (obj.getDict(), "Producer", value); - obj.free (); - break; - case PROP_CREATION_DATE: - document->doc->getDocInfo (&obj); - if (obj.isDict ()) - info_dict_get_date (obj.getDict(), "CreationDate", value); - obj.free (); - break; - case PROP_MOD_DATE: - document->doc->getDocInfo (&obj); - if (obj.isDict ()) - info_dict_get_date (obj.getDict(), "ModDate", value); - obj.free (); - break; - case PROP_LINEARIZED: - if (document->doc->isLinearized ()) { - g_value_set_string (value, "Yes"); - } else { - g_value_set_string (value, "No"); - } - break; - case PROP_PAGE_LAYOUT: - catalog = document->doc->getCatalog (); - if (catalog && catalog->isOk ()) - { - PopplerPageLayout page_layout = convert_page_layout (catalog->getPageLayout ()); - g_value_set_enum (value, page_layout); - } - break; - case PROP_PAGE_MODE: - catalog = document->doc->getCatalog (); - if (catalog && catalog->isOk ()) - { - PopplerPageMode page_mode = convert_page_mode (catalog->getPageMode ()); - g_value_set_enum (value, page_mode); - } - break; - case PROP_VIEWER_PREFERENCES: - /* FIXME: write... */ - g_value_set_flags (value, POPPLER_VIEWER_PREFERENCES_UNSET); - break; - case PROP_PERMISSIONS: - flag = 0; - if (document->doc->okToPrint ()) - flag |= POPPLER_PERMISSIONS_OK_TO_PRINT; - if (document->doc->okToChange ()) - flag |= POPPLER_PERMISSIONS_OK_TO_MODIFY; - if (document->doc->okToCopy ()) - flag |= POPPLER_PERMISSIONS_OK_TO_COPY; - if (document->doc->okToAddNotes ()) - flag |= POPPLER_PERMISSIONS_OK_TO_ADD_NOTES; - if (document->doc->okToFillForm ()) - flag |= POPPLER_PERMISSIONS_OK_TO_FILL_FORM; - g_value_set_flags (value, flag); - break; - case PROP_METADATA: - catalog = document->doc->getCatalog (); - if (catalog && catalog->isOk ()) - { - GooString *s = catalog->readMetadata (); - if ( s != NULL ) { - g_value_set_string (value, s->getCString()); - delete s; - } - } - break; - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); - } -} - -static void -poppler_document_class_init (PopplerDocumentClass *klass) -{ - GObjectClass *gobject_class = G_OBJECT_CLASS (klass); - - gobject_class->finalize = poppler_document_finalize; - gobject_class->get_property = poppler_document_get_property; - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_TITLE, - g_param_spec_string ("title", - "Document Title", - "The title of the document", - NULL, - G_PARAM_READABLE)); - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_FORMAT, - g_param_spec_string ("format", - "PDF Format", - "The PDF version of the document", - NULL, - G_PARAM_READABLE)); - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_FORMAT_MAJOR, - g_param_spec_uint ("format-major", - "PDF Format Major", - "The PDF major version number of the document", - 0, G_MAXUINT, 1, - G_PARAM_READABLE)); - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_FORMAT_MINOR, - g_param_spec_uint ("format-minor", - "PDF Format Minor", - "The PDF minor version number of the document", - 0, G_MAXUINT, 0, - G_PARAM_READABLE)); - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_AUTHOR, - g_param_spec_string ("author", - "Author", - "The author of the document", - NULL, - G_PARAM_READABLE)); - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_SUBJECT, - g_param_spec_string ("subject", - "Subject", - "Subjects the document touches", - NULL, - G_PARAM_READABLE)); - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_KEYWORDS, - g_param_spec_string ("keywords", - "Keywords", - "Keywords", - NULL, - G_PARAM_READABLE)); - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_CREATOR, - g_param_spec_string ("creator", - "Creator", - "The software that created the document", - NULL, - G_PARAM_READABLE)); - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_PRODUCER, - g_param_spec_string ("producer", - "Producer", - "The software that converted the document", - NULL, - G_PARAM_READABLE)); - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_CREATION_DATE, - g_param_spec_int ("creation-date", - "Creation Date", - "The date and time the document was created", - 0, G_MAXINT, 0, - G_PARAM_READABLE)); - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_MOD_DATE, - g_param_spec_int ("mod-date", - "Modification Date", - "The date and time the document was modified", - 0, G_MAXINT, 0, - G_PARAM_READABLE)); - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_LINEARIZED, - g_param_spec_string ("linearized", - "Fast Web View Enabled", - "Is the document optimized for web viewing?", - NULL, - G_PARAM_READABLE)); - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_PAGE_LAYOUT, - g_param_spec_enum ("page-layout", - "Page Layout", - "Initial Page Layout", - POPPLER_TYPE_PAGE_LAYOUT, - POPPLER_PAGE_LAYOUT_UNSET, - G_PARAM_READABLE)); - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_PAGE_MODE, - g_param_spec_enum ("page-mode", - "Page Mode", - "Page Mode", - POPPLER_TYPE_PAGE_MODE, - POPPLER_PAGE_MODE_UNSET, - G_PARAM_READABLE)); - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_VIEWER_PREFERENCES, - g_param_spec_flags ("viewer-preferences", - "Viewer Preferences", - "Viewer Preferences", - POPPLER_TYPE_VIEWER_PREFERENCES, - POPPLER_VIEWER_PREFERENCES_UNSET, - G_PARAM_READABLE)); - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_PERMISSIONS, - g_param_spec_flags ("permissions", - "Permissions", - "Permissions", - POPPLER_TYPE_PERMISSIONS, - POPPLER_PERMISSIONS_FULL, - G_PARAM_READABLE)); - - g_object_class_install_property - (G_OBJECT_CLASS (klass), - PROP_METADATA, - g_param_spec_string ("metadata", - "XML Metadata", - "Embedded XML metadata", - NULL, - G_PARAM_READABLE)); -} - -static void -poppler_document_init (PopplerDocument *document) -{ -} - -/* PopplerIndexIter: For determining the index of a tree */ -struct _PopplerIndexIter -{ - PopplerDocument *document; - GooList *items; - int index; -}; - - -POPPLER_DEFINE_BOXED_TYPE (PopplerIndexIter, poppler_index_iter, - poppler_index_iter_copy, - poppler_index_iter_free) - -/** - * poppler_index_iter_copy: - * @iter: a #PopplerIndexIter - * - * Creates a new #PopplerIndexIter as a copy of @iter. This must be freed with - * poppler_index_iter_free(). - * - * Return value: a new #PopplerIndexIter - **/ -PopplerIndexIter * -poppler_index_iter_copy (PopplerIndexIter *iter) -{ - PopplerIndexIter *new_iter; - - g_return_val_if_fail (iter != NULL, NULL); - - new_iter = g_new0 (PopplerIndexIter, 1); - *new_iter = *iter; - new_iter->document = (PopplerDocument *) g_object_ref (new_iter->document); - - return new_iter; -} - -/** - * poppler_index_iter_new: - * @document: a #PopplerDocument - * - * Returns the root #PopplerIndexIter for @document, or %NULL. This must be - * freed with poppler_index_iter_free(). - * - * Certain documents have an index associated with them. This index can be used - * to help the user navigate the document, and is similar to a table of - * contents. Each node in the index will contain a #PopplerAction that can be - * displayed to the user — typically a #POPPLER_ACTION_GOTO_DEST or a - * #POPPLER_ACTION_URI<!-- -->. - * - * Here is a simple example of some code that walks the full index: - * - * <informalexample><programlisting> - * static void - * walk_index (PopplerIndexIter *iter) - * { - * do - * { - * /<!-- -->* Get the the action and do something with it *<!-- -->/ - * PopplerIndexIter *child = poppler_index_iter_get_child (iter); - * if (child) - * walk_index (child); - * poppler_index_iter_free (child); - * } - * while (poppler_index_iter_next (iter)); - * } - * ... - * { - * iter = poppler_index_iter_new (document); - * walk_index (iter); - * poppler_index_iter_free (iter); - * } - *</programlisting></informalexample> - * - * Return value: a new #PopplerIndexIter - **/ -PopplerIndexIter * -poppler_index_iter_new (PopplerDocument *document) -{ - PopplerIndexIter *iter; - Outline *outline; - GooList *items; - - outline = document->doc->getOutline(); - if (outline == NULL) - return NULL; - - items = outline->getItems(); - if (items == NULL) - return NULL; - - iter = g_new0 (PopplerIndexIter, 1); - iter->document = (PopplerDocument *) g_object_ref (document); - iter->items = items; - iter->index = 0; - - return iter; -} - -/** - * poppler_index_iter_get_child: - * @parent: a #PopplerIndexIter - * - * Returns a newly created child of @parent, or %NULL if the iter has no child. - * See poppler_index_iter_new() for more information on this function. - * - * Return value: a new #PopplerIndexIter - **/ -PopplerIndexIter * -poppler_index_iter_get_child (PopplerIndexIter *parent) -{ - PopplerIndexIter *child; - OutlineItem *item; - - g_return_val_if_fail (parent != NULL, NULL); - - item = (OutlineItem *)parent->items->get (parent->index); - item->open (); - if (! (item->hasKids() && item->getKids()) ) - return NULL; - - child = g_new0 (PopplerIndexIter, 1); - child->document = (PopplerDocument *)g_object_ref (parent->document); - child->items = item->getKids (); - - g_assert (child->items); - - return child; -} - -static gchar * -unicode_to_char (Unicode *unicode, - int len) -{ - static UnicodeMap *uMap = NULL; - if (uMap == NULL) { - GooString *enc = new GooString("UTF-8"); - uMap = globalParams->getUnicodeMap(enc); - uMap->incRefCnt (); - delete enc; - } - - GooString gstr; - gchar buf[8]; /* 8 is enough for mapping an unicode char to a string */ - int i, n; - - for (i = 0; i < len; ++i) { - n = uMap->mapUnicode(unicode[i], buf, sizeof(buf)); - gstr.append(buf, n); - } - - return g_strdup (gstr.getCString ()); -} - -/** - * poppler_index_iter_is_open: - * @iter: a #PopplerIndexIter - * - * Returns whether this node should be expanded by default to the user. The - * document can provide a hint as to how the document's index should be expanded - * initially. - * - * Return value: %TRUE, if the document wants @iter to be expanded - **/ -gboolean -poppler_index_iter_is_open (PopplerIndexIter *iter) -{ - OutlineItem *item; - - item = (OutlineItem *)iter->items->get (iter->index); - - return item->isOpen(); -} - -/** - * poppler_index_iter_get_action: - * @iter: a #PopplerIndexIter - * - * Returns the #PopplerAction associated with @iter. It must be freed with - * poppler_action_free(). - * - * Return value: a new #PopplerAction - **/ -PopplerAction * -poppler_index_iter_get_action (PopplerIndexIter *iter) -{ - OutlineItem *item; - LinkAction *link_action; - PopplerAction *action; - gchar *title; - - g_return_val_if_fail (iter != NULL, NULL); - - item = (OutlineItem *)iter->items->get (iter->index); - link_action = item->getAction (); - - title = unicode_to_char (item->getTitle(), - item->getTitleLength ()); - - action = _poppler_action_new (iter->document, link_action, title); - g_free (title); - - return action; -} - -/** - * poppler_index_iter_next: - * @iter: a #PopplerIndexIter - * - * Sets @iter to point to the next action at the current level, if valid. See - * poppler_index_iter_new() for more information. - * - * Return value: %TRUE, if @iter was set to the next action - **/ -gboolean -poppler_index_iter_next (PopplerIndexIter *iter) -{ - g_return_val_if_fail (iter != NULL, FALSE); - - iter->index++; - if (iter->index >= iter->items->getLength()) - return FALSE; - - return TRUE; -} - -/** - * poppler_index_iter_free: - * @iter: a #PopplerIndexIter - * - * Frees @iter. - **/ -void -poppler_index_iter_free (PopplerIndexIter *iter) -{ - if (iter == NULL) - return; - - g_object_unref (iter->document); - g_free (iter); - -} - -struct _PopplerFontsIter -{ - GooList *items; - int index; -}; - -POPPLER_DEFINE_BOXED_TYPE (PopplerFontsIter, poppler_fonts_iter, - poppler_fonts_iter_copy, - poppler_fonts_iter_free) - -const char * -poppler_fonts_iter_get_full_name (PopplerFontsIter *iter) -{ - GooString *name; - FontInfo *info; - - info = (FontInfo *)iter->items->get (iter->index); - - name = info->getName(); - if (name != NULL) { - return info->getName()->getCString(); - } else { - return NULL; - } -} - -const char * -poppler_fonts_iter_get_name (PopplerFontsIter *iter) -{ - FontInfo *info; - const char *name; - - name = poppler_fonts_iter_get_full_name (iter); - info = (FontInfo *)iter->items->get (iter->index); - - if (info->getSubset() && name) { - while (*name && *name != '+') - name++; - - if (*name) - name++; - } - - return name; -} - -const char * -poppler_fonts_iter_get_file_name (PopplerFontsIter *iter) -{ - GooString *file; - FontInfo *info; - - info = (FontInfo *)iter->items->get (iter->index); - - file = info->getFile(); - if (file != NULL) { - return file->getCString(); - } else { - return NULL; - } -} - -PopplerFontType -poppler_fonts_iter_get_font_type (PopplerFontsIter *iter) -{ - FontInfo *info; - - g_return_val_if_fail (iter != NULL, POPPLER_FONT_TYPE_UNKNOWN); - - info = (FontInfo *)iter->items->get (iter->index); - - return (PopplerFontType)info->getType (); -} - -gboolean -poppler_fonts_iter_is_embedded (PopplerFontsIter *iter) -{ - FontInfo *info; - - info = (FontInfo *)iter->items->get (iter->index); - - return info->getEmbedded(); -} - -gboolean -poppler_fonts_iter_is_subset (PopplerFontsIter *iter) -{ - FontInfo *info; - - info = (FontInfo *)iter->items->get (iter->index); - - return info->getSubset(); -} - -gboolean -poppler_fonts_iter_next (PopplerFontsIter *iter) -{ - g_return_val_if_fail (iter != NULL, FALSE); - - iter->index++; - if (iter->index >= iter->items->getLength()) - return FALSE; - - return TRUE; -} - -PopplerFontsIter * -poppler_fonts_iter_copy (PopplerFontsIter *iter) -{ - PopplerFontsIter *new_iter; - - g_return_val_if_fail (iter != NULL, NULL); - - new_iter = g_new0 (PopplerFontsIter, 1); - *new_iter = *iter; - - new_iter->items = new GooList (); - for (int i = 0; i < iter->items->getLength(); i++) { - FontInfo *info = (FontInfo *)iter->items->get(i); - new_iter->items->append (new FontInfo (*info)); - } - - return new_iter; -} - -void -poppler_fonts_iter_free (PopplerFontsIter *iter) -{ - if (iter == NULL) - return; - - deleteGooList (iter->items, FontInfo); - - g_free (iter); -} - -static PopplerFontsIter * -poppler_fonts_iter_new (GooList *items) -{ - PopplerFontsIter *iter; - - iter = g_new0 (PopplerFontsIter, 1); - iter->items = items; - iter->index = 0; - - return iter; -} - - -typedef struct _PopplerFontInfoClass PopplerFontInfoClass; -struct _PopplerFontInfoClass -{ - GObjectClass parent_class; -}; - -G_DEFINE_TYPE (PopplerFontInfo, poppler_font_info, G_TYPE_OBJECT) - -static void poppler_font_info_finalize (GObject *object); - - -static void -poppler_font_info_class_init (PopplerFontInfoClass *klass) -{ - GObjectClass *gobject_class = G_OBJECT_CLASS (klass); - - gobject_class->finalize = poppler_font_info_finalize; -} - -static void -poppler_font_info_init (PopplerFontInfo *font_info) -{ - font_info->document = NULL; - font_info->scanner = NULL; -} - -static void -poppler_font_info_finalize (GObject *object) -{ - PopplerFontInfo *font_info = POPPLER_FONT_INFO (object); - - delete font_info->scanner; - g_object_unref (font_info->document); -} - -PopplerFontInfo * -poppler_font_info_new (PopplerDocument *document) -{ - PopplerFontInfo *font_info; - - g_return_val_if_fail (POPPLER_IS_DOCUMENT (document), NULL); - - font_info = (PopplerFontInfo *) g_object_new (POPPLER_TYPE_FONT_INFO, - NULL); - font_info->document = (PopplerDocument *) g_object_ref (document); - font_info->scanner = new FontInfoScanner(document->doc); - - return font_info; -} - -gboolean -poppler_font_info_scan (PopplerFontInfo *font_info, - int n_pages, - PopplerFontsIter **iter) -{ - GooList *items; - - g_return_val_if_fail (iter != NULL, FALSE); - - items = font_info->scanner->scan(n_pages); - - if (items == NULL) { - *iter = NULL; - } else if (items->getLength() == 0) { - *iter = NULL; - delete items; - } else { - *iter = poppler_fonts_iter_new(items); - } - - return (items != NULL); -} - -/* For backward compatibility */ -void -poppler_font_info_free (PopplerFontInfo *font_info) -{ - g_return_if_fail (font_info != NULL); - - g_object_unref (font_info); -} - - -/* Optional content (layers) */ -static Layer * -layer_new (OptionalContentGroup *oc) -{ - Layer *layer; - - layer = g_new0 (Layer, 1); - layer->oc = oc; - - return layer; -} - -static void -layer_free (Layer *layer) -{ - if (!layer) - return; - - if (layer->kids) { - g_list_foreach (layer->kids, (GFunc)layer_free, NULL); - g_list_free (layer->kids); - } - - if (layer->label) { - g_free (layer->label); - } - - g_free (layer); -} - -static GList * -get_optional_content_rbgroups (OCGs *ocg) -{ - Array *rb; - GList *groups = NULL; - - rb = ocg->getRBGroupsArray (); - - if (rb) { - int i, j; - - for (i = 0; i < rb->getLength (); ++i) { - Object obj; - Array *rb_array; - GList *group = NULL; - - rb->get (i, &obj); - if (!obj.isArray ()) { - obj.free (); - continue; - } - - rb_array = obj.getArray (); - for (j = 0; j < rb_array->getLength (); ++j) { - Object ref; - OptionalContentGroup *oc; - - rb_array->getNF (j, &ref); - if (!ref.isRef ()) { - ref.free (); - continue; - } - - oc = ocg->findOcgByRef (ref.getRef ()); - group = g_list_prepend (group, oc); - ref.free (); - } - obj.free (); - - groups = g_list_prepend (groups, group); - } - } - - return groups; -} - -static GList * -poppler_document_get_layer_rbgroup (PopplerDocument *document, - Layer *layer) -{ - GList *l; - - for (l = document->layers_rbgroups; l && l->data; l = g_list_next (l)) { - GList *group = (GList *)l->data; - - if (g_list_find (group, layer->oc)) - return group; - } - - return NULL; -} - -static GList * -get_optional_content_items_sorted (OCGs *ocg, Layer *parent, Array *order) -{ - GList *items = NULL; - Layer *last_item = parent; - int i; - - for (i = 0; i < order->getLength (); ++i) { - Object orderItem; - - order->get (i, &orderItem); - - if (orderItem.isDict ()) { - Object ref; - - order->getNF (i, &ref); - if (ref.isRef ()) { - OptionalContentGroup *oc = ocg->findOcgByRef (ref.getRef ()); - Layer *layer = layer_new (oc); - - items = g_list_prepend (items, layer); - last_item = layer; - } - ref.free (); - } else if (orderItem.isArray () && orderItem.arrayGetLength () > 0) { - if (!last_item) { - last_item = layer_new (NULL); - items = g_list_prepend (items, last_item); - } - last_item->kids = get_optional_content_items_sorted (ocg, last_item, orderItem.getArray ()); - } else if (orderItem.isString ()) { - last_item->label = _poppler_goo_string_to_utf8 (orderItem.getString ()); - } - orderItem.free (); - } - - return g_list_reverse (items); -} - -static GList * -get_optional_content_items (OCGs *ocg) -{ - Array *order; - GList *items = NULL; - - order = ocg->getOrderArray (); - - if (order) { - items = get_optional_content_items_sorted (ocg, NULL, order); - } else { - GooList *ocgs; - int i; - - ocgs = ocg->getOCGs (); - - for (i = 0; i < ocgs->getLength (); ++i) { - OptionalContentGroup *oc = (OptionalContentGroup *) ocgs->get (i); - Layer *layer = layer_new (oc); - - items = g_list_prepend (items, layer); - } - - items = g_list_reverse (items); - } - - return items; -} - -static GList * -poppler_document_get_layers (PopplerDocument *document) -{ - if (!document->layers) { - Catalog *catalog = document->doc->getCatalog (); - OCGs *ocg = catalog->getOptContentConfig (); - - if (!ocg) - return NULL; - - document->layers = get_optional_content_items (ocg); - document->layers_rbgroups = get_optional_content_rbgroups (ocg); - } - - return document->layers; -} - -static void -poppler_document_layers_free (PopplerDocument *document) -{ - if (!document->layers) - return; - - g_list_foreach (document->layers, (GFunc)layer_free, NULL); - g_list_free (document->layers); - - g_list_foreach (document->layers_rbgroups, (GFunc)g_list_free, NULL); - g_list_free (document->layers_rbgroups); - - document->layers = NULL; - document->layers_rbgroups = NULL; -} - -/* PopplerLayersIter */ -struct _PopplerLayersIter { - PopplerDocument *document; - GList *items; - int index; -}; - -POPPLER_DEFINE_BOXED_TYPE (PopplerLayersIter, poppler_layers_iter, - poppler_layers_iter_copy, - poppler_layers_iter_free) - -/** - * poppler_layers_iter_copy: - * @iter: a #PopplerLayersIter - * - * Creates a new #PopplerLayersIter as a copy of @iter. This must be freed with - * poppler_layers_iter_free(). - * - * Return value: a new #PopplerLayersIter - **/ -PopplerLayersIter * -poppler_layers_iter_copy (PopplerLayersIter *iter) -{ - PopplerLayersIter *new_iter; - - g_return_val_if_fail (iter != NULL, NULL); - - new_iter = g_new0 (PopplerLayersIter, 1); - *new_iter = *iter; - new_iter->document = (PopplerDocument *) g_object_ref (new_iter->document); - - return new_iter; -} - -/** - * poppler_layers_iter_free: - * @iter: a #PopplerLayersIter - * - * Frees @iter. - **/ -void -poppler_layers_iter_free (PopplerLayersIter *iter) -{ - if (iter == NULL) - return; - - g_object_unref (iter->document); - g_free (iter); -} - -/** - * poppler_layers_iter_new: - **/ -PopplerLayersIter * -poppler_layers_iter_new (PopplerDocument *document) -{ - PopplerLayersIter *iter; - GList *items; - - items = poppler_document_get_layers (document); - - if (!items) - return NULL; - - iter = g_new0 (PopplerLayersIter, 1); - iter->document = (PopplerDocument *)g_object_ref (document); - iter->items = items; - - return iter; -} - -/** - * poppler_layers_iter_get_child: - * @parent: a #PopplerLayersIter - * - * Returns a newly created child of @parent, or %NULL if the iter has no child. - * See poppler_layers_iter_new() for more information on this function. - * - * Return value: a new #PopplerLayersIter, or %NULL - **/ -PopplerLayersIter * -poppler_layers_iter_get_child (PopplerLayersIter *parent) -{ - PopplerLayersIter *child; - Layer *layer; - - g_return_val_if_fail (parent != NULL, NULL); - - layer = (Layer *) g_list_nth_data (parent->items, parent->index); - if (!layer || !layer->kids) - return NULL; - - child = g_new0 (PopplerLayersIter, 1); - child->document = (PopplerDocument *)g_object_ref (parent->document); - child->items = layer->kids; - - g_assert (child->items); - - return child; -} - -/** - * poppler_layers_iter_get_title: - * @iter: a #PopplerLayersIter - * - * Returns the title associated with @iter. It must be freed with - * g_free(). - * - * Return value: a new string containing the @iter's title or %NULL if @iter doesn't have a title. - * The returned string should be freed with g_free() when no longer needed. - **/ -gchar * -poppler_layers_iter_get_title (PopplerLayersIter *iter) -{ - Layer *layer; - - g_return_val_if_fail (iter != NULL, NULL); - - layer = (Layer *)g_list_nth_data (iter->items, iter->index); - - return layer->label ? g_strdup (layer->label) : NULL; -} - -/** - * poppler_layers_iter_get_layer: - * @iter: a #PopplerLayersIter - * - * Returns the #PopplerLayer associated with @iter. It must be freed with - * poppler_layer_free(). - * - * Return value: a new #PopplerLayer, or %NULL if there isn't any layer associated with @iter - **/ -PopplerLayer * -poppler_layers_iter_get_layer (PopplerLayersIter *iter) -{ - Layer *layer; - PopplerLayer *poppler_layer = NULL; - - g_return_val_if_fail (iter != NULL, NULL); - - layer = (Layer *)g_list_nth_data (iter->items, iter->index); - if (layer->oc) { - GList *rb_group = NULL; - - rb_group = poppler_document_get_layer_rbgroup (iter->document, layer); - poppler_layer = _poppler_layer_new (iter->document, layer, rb_group); - } - - return poppler_layer; -} - -/** - * poppler_layers_iter_next: - * @iter: a #PopplerLayersIter - * - * Sets @iter to point to the next action at the current level, if valid. See - * poppler_layers_iter_new() for more information. - * - * Return value: %TRUE, if @iter was set to the next action - **/ -gboolean -poppler_layers_iter_next (PopplerLayersIter *iter) -{ - g_return_val_if_fail (iter != NULL, FALSE); - - iter->index++; - if (iter->index >= (gint)g_list_length (iter->items)) - return FALSE; - - return TRUE; -} - -typedef struct _PopplerPSFileClass PopplerPSFileClass; -struct _PopplerPSFileClass -{ - GObjectClass parent_class; -}; - -G_DEFINE_TYPE (PopplerPSFile, poppler_ps_file, G_TYPE_OBJECT) - -static void poppler_ps_file_finalize (GObject *object); - - -static void -poppler_ps_file_class_init (PopplerPSFileClass *klass) -{ - GObjectClass *gobject_class = G_OBJECT_CLASS (klass); - - gobject_class->finalize = poppler_ps_file_finalize; -} - -static void -poppler_ps_file_init (PopplerPSFile *ps_file) -{ - ps_file->out = NULL; - ps_file->paper_width = -1; - ps_file->paper_height = -1; - ps_file->duplex = FALSE; -} - -static void -poppler_ps_file_finalize (GObject *object) -{ - PopplerPSFile *ps_file = POPPLER_PS_FILE (object); - - delete ps_file->out; - g_object_unref (ps_file->document); - g_free (ps_file->filename); -} - -/** - * poppler_ps_file_new: - * @document: a #PopplerDocument - * @filename: the path of the output filename - * @first_page: the first page to print - * @n_pages: the number of pages to print - * - * Create a new postscript file to render to - * - * Return value: a PopplerPSFile - **/ -PopplerPSFile * -poppler_ps_file_new (PopplerDocument *document, const char *filename, - int first_page, int n_pages) -{ - PopplerPSFile *ps_file; - - g_return_val_if_fail (POPPLER_IS_DOCUMENT (document), NULL); - g_return_val_if_fail (filename != NULL, NULL); - g_return_val_if_fail (n_pages > 0, NULL); - - ps_file = (PopplerPSFile *) g_object_new (POPPLER_TYPE_PS_FILE, NULL); - ps_file->document = (PopplerDocument *) g_object_ref (document); - ps_file->filename = g_strdup (filename); - ps_file->first_page = first_page + 1; - ps_file->last_page = first_page + 1 + n_pages - 1; - - return ps_file; -} - -/** - * poppler_ps_file_set_paper_size: - * @ps_file: a PopplerPSFile which was not yet printed to. - * @width: the paper width in 1/72 inch - * @height: the paper height in 1/72 inch - * - * Set the output paper size. These values will end up in the - * DocumentMedia, the BoundingBox DSC comments and other places in the - * generated PostScript. - * - **/ -void -poppler_ps_file_set_paper_size (PopplerPSFile *ps_file, - double width, double height) -{ - g_return_if_fail (ps_file->out == NULL); - - ps_file->paper_width = width; - ps_file->paper_height = height; -} - -/** - * poppler_ps_file_set_duplex: - * @ps_file: a PopplerPSFile which was not yet printed to - * @duplex: whether to force duplex printing (on printers which support this) - * - * Enable or disable Duplex printing. - * - **/ -void -poppler_ps_file_set_duplex (PopplerPSFile *ps_file, gboolean duplex) -{ - g_return_if_fail (ps_file->out == NULL); - - ps_file->duplex = duplex; -} - -/** - * poppler_ps_file_free: - * @ps_file: a PopplerPSFile - * - * Frees @ps_file - * - **/ -void -poppler_ps_file_free (PopplerPSFile *ps_file) -{ - g_return_if_fail (ps_file != NULL); - g_object_unref (ps_file); -} - -/** - * poppler_document_get_form_field: - * @document: a #PopplerDocument - * @id: an id of a #PopplerFormField - * - * Returns the #PopplerFormField for the given @id. It must be freed with - * g_object_unref() - * - * Return value: a new #PopplerFormField or NULL if not found - **/ -PopplerFormField * -poppler_document_get_form_field (PopplerDocument *document, - gint id) -{ - Catalog *catalog = document->doc->getCatalog(); - unsigned pageNum; - unsigned fieldNum; - FormPageWidgets *widgets; - FormWidget *field; - - FormWidget::decodeID (id, &pageNum, &fieldNum); - - widgets = catalog->getPage (pageNum)->getPageWidgets (); - if (!widgets) - return NULL; - - field = widgets->getWidget (fieldNum); - if (field) - return _poppler_form_field_new (document, field); - - return NULL; -} - -gboolean -_poppler_convert_pdf_date_to_gtime (GooString *date, - time_t *gdate) -{ - gchar *date_string; - gboolean retval; - - if (date->hasUnicodeMarker()) { - date_string = g_convert (date->getCString () + 2, - date->getLength () - 2, - "UTF-8", "UTF-16BE", NULL, NULL, NULL); - } else { - date_string = g_strndup (date->getCString (), date->getLength ()); - } - - retval = poppler_date_parse (date_string, gdate); - g_free (date_string); - - return retval; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-document.h b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-document.h deleted file mode 100644 index 2f4f50acb53..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-document.h +++ /dev/null @@ -1,192 +0,0 @@ -/* poppler-document.h: glib interface to poppler - * Copyright (C) 2004, Red Hat, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __POPPLER_DOCUMENT_H__ -#define __POPPLER_DOCUMENT_H__ - -#include <glib-object.h> -#include "poppler.h" - -G_BEGIN_DECLS - -#define POPPLER_TYPE_DOCUMENT (poppler_document_get_type ()) -#define POPPLER_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_DOCUMENT, PopplerDocument)) -#define POPPLER_IS_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_DOCUMENT)) - -typedef enum -{ - POPPLER_PAGE_LAYOUT_UNSET, - POPPLER_PAGE_LAYOUT_SINGLE_PAGE, - POPPLER_PAGE_LAYOUT_ONE_COLUMN, - POPPLER_PAGE_LAYOUT_TWO_COLUMN_LEFT, - POPPLER_PAGE_LAYOUT_TWO_COLUMN_RIGHT, - POPPLER_PAGE_LAYOUT_TWO_PAGE_LEFT, - POPPLER_PAGE_LAYOUT_TWO_PAGE_RIGHT -} PopplerPageLayout; - -typedef enum -{ - POPPLER_PAGE_MODE_UNSET, - POPPLER_PAGE_MODE_NONE, - POPPLER_PAGE_MODE_USE_OUTLINES, - POPPLER_PAGE_MODE_USE_THUMBS, - POPPLER_PAGE_MODE_FULL_SCREEN, - POPPLER_PAGE_MODE_USE_OC, - POPPLER_PAGE_MODE_USE_ATTACHMENTS -} PopplerPageMode; - -typedef enum -{ - POPPLER_FONT_TYPE_UNKNOWN, - POPPLER_FONT_TYPE_TYPE1, - POPPLER_FONT_TYPE_TYPE1C, - POPPLER_FONT_TYPE_TYPE1COT, - POPPLER_FONT_TYPE_TYPE3, - POPPLER_FONT_TYPE_TRUETYPE, - POPPLER_FONT_TYPE_TRUETYPEOT, - POPPLER_FONT_TYPE_CID_TYPE0, - POPPLER_FONT_TYPE_CID_TYPE0C, - POPPLER_FONT_TYPE_CID_TYPE0COT, - POPPLER_FONT_TYPE_CID_TYPE2, - POPPLER_FONT_TYPE_CID_TYPE2OT -} PopplerFontType; - -typedef enum /*< flags >*/ -{ - POPPLER_VIEWER_PREFERENCES_UNSET = 0, - POPPLER_VIEWER_PREFERENCES_HIDE_TOOLBAR = 1 << 0, - POPPLER_VIEWER_PREFERENCES_HIDE_MENUBAR = 1 << 1, - POPPLER_VIEWER_PREFERENCES_HIDE_WINDOWUI = 1 << 2, - POPPLER_VIEWER_PREFERENCES_FIT_WINDOW = 1 << 3, - POPPLER_VIEWER_PREFERENCES_CENTER_WINDOW = 1 << 4, - POPPLER_VIEWER_PREFERENCES_DISPLAY_DOC_TITLE = 1 << 5, - POPPLER_VIEWER_PREFERENCES_DIRECTION_RTL = 1 << 6 -} PopplerViewerPreferences; - -typedef enum /*< flags >*/ -{ - POPPLER_PERMISSIONS_OK_TO_PRINT = 1 << 0, - POPPLER_PERMISSIONS_OK_TO_MODIFY = 1 << 1, - POPPLER_PERMISSIONS_OK_TO_COPY = 1 << 2, - POPPLER_PERMISSIONS_OK_TO_ADD_NOTES = 1 << 3, - POPPLER_PERMISSIONS_OK_TO_FILL_FORM = 1 << 4, - POPPLER_PERMISSIONS_FULL = (POPPLER_PERMISSIONS_OK_TO_PRINT | POPPLER_PERMISSIONS_OK_TO_MODIFY | POPPLER_PERMISSIONS_OK_TO_COPY | POPPLER_PERMISSIONS_OK_TO_ADD_NOTES | POPPLER_PERMISSIONS_OK_TO_FILL_FORM) - -} PopplerPermissions; - - - -GType poppler_document_get_type (void) G_GNUC_CONST; -PopplerDocument *poppler_document_new_from_file (const char *uri, - const char *password, - GError **error); -PopplerDocument *poppler_document_new_from_data (char *data, - int length, - const char *password, - GError **error); -gboolean poppler_document_save (PopplerDocument *document, - const char *uri, - GError **error); -gboolean poppler_document_save_a_copy (PopplerDocument *document, - const char *uri, - GError **error); -int poppler_document_get_n_pages (PopplerDocument *document); -PopplerPage *poppler_document_get_page (PopplerDocument *document, - int index); -PopplerPage *poppler_document_get_page_by_label (PopplerDocument *document, - const char *label); -/* Attachments */ -gboolean poppler_document_has_attachments (PopplerDocument *document); -GList *poppler_document_get_attachments (PopplerDocument *document); - -/* Links */ -PopplerDest *poppler_document_find_dest (PopplerDocument *document, - const gchar *link_name); - -/* Form */ -PopplerFormField *poppler_document_get_form_field (PopplerDocument *document, - gint id); - -/* Interface for getting the Index of a poppler_document */ -#define POPPLER_TYPE_INDEX_ITER (poppler_index_iter_get_type ()) -GType poppler_index_iter_get_type (void) G_GNUC_CONST; -PopplerIndexIter *poppler_index_iter_new (PopplerDocument *document); -PopplerIndexIter *poppler_index_iter_copy (PopplerIndexIter *iter); -void poppler_index_iter_free (PopplerIndexIter *iter); - -PopplerIndexIter *poppler_index_iter_get_child (PopplerIndexIter *parent); -gboolean poppler_index_iter_is_open (PopplerIndexIter *iter); -PopplerAction *poppler_index_iter_get_action (PopplerIndexIter *iter); -gboolean poppler_index_iter_next (PopplerIndexIter *iter); - -/* Interface for getting the Fonts of a poppler_document */ -#define POPPLER_TYPE_FONT_INFO (poppler_font_info_get_type ()) -#define POPPLER_FONT_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_FONT_INFO, PopplerFontInfo)) -#define POPPLER_IS_FONT_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_FONT_INFO)) -GType poppler_font_info_get_type (void) G_GNUC_CONST; -PopplerFontInfo *poppler_font_info_new (PopplerDocument *document); -gboolean poppler_font_info_scan (PopplerFontInfo *font_info, - int n_pages, - PopplerFontsIter **iter); -void poppler_font_info_free (PopplerFontInfo *font_info); - -#define POPPLER_TYPE_FONTS_ITER (poppler_fonts_iter_get_type ()) -GType poppler_fonts_iter_get_type (void) G_GNUC_CONST; -PopplerFontsIter *poppler_fonts_iter_copy (PopplerFontsIter *iter); -void poppler_fonts_iter_free (PopplerFontsIter *iter); -const char *poppler_fonts_iter_get_name (PopplerFontsIter *iter); -const char *poppler_fonts_iter_get_full_name (PopplerFontsIter *iter); -const char *poppler_fonts_iter_get_file_name (PopplerFontsIter *iter); -PopplerFontType poppler_fonts_iter_get_font_type (PopplerFontsIter *iter); -gboolean poppler_fonts_iter_is_embedded (PopplerFontsIter *iter); -gboolean poppler_fonts_iter_is_subset (PopplerFontsIter *iter); -gboolean poppler_fonts_iter_next (PopplerFontsIter *iter); - -/* Interface for getting the Layers of a poppler_document */ -#define POPPLER_TYPE_LAYERS_ITER (poppler_layers_iter_get_type ()) -GType poppler_layers_iter_get_type (void) G_GNUC_CONST; -PopplerLayersIter *poppler_layers_iter_new (PopplerDocument *document); -PopplerLayersIter *poppler_layers_iter_copy (PopplerLayersIter *iter); -void poppler_layers_iter_free (PopplerLayersIter *iter); - -PopplerLayersIter *poppler_layers_iter_get_child (PopplerLayersIter *parent); -gchar *poppler_layers_iter_get_title (PopplerLayersIter *iter); -PopplerLayer *poppler_layers_iter_get_layer (PopplerLayersIter *iter); -gboolean poppler_layers_iter_next (PopplerLayersIter *iter); - -/* Export to ps */ -#define POPPLER_TYPE_PS_FILE (poppler_ps_file_get_type ()) -#define POPPLER_PS_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_PS_FILE, PopplerPSFile)) -#define POPPLER_IS_PS_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_PS_FILE)) -GType poppler_ps_file_get_type (void) G_GNUC_CONST; -PopplerPSFile *poppler_ps_file_new (PopplerDocument *document, - const char *filename, - int first_page, - int n_pages); -void poppler_ps_file_set_paper_size (PopplerPSFile *ps_file, - double width, - double height); -void poppler_ps_file_set_duplex (PopplerPSFile *ps_file, - gboolean duplex); -void poppler_ps_file_free (PopplerPSFile *ps_file); - - - -G_END_DECLS - -#endif /* __POPPLER_DOCUMENT_H__ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-enums.c b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-enums.c deleted file mode 100644 index 2f567c52dbc..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-enums.c +++ /dev/null @@ -1,607 +0,0 @@ - -/* Generated data (by glib-mkenums) */ - -#include <config.h> - -#include "poppler-enums.h" - -/* enumerations from "poppler-action.h" */ -#include "poppler-action.h" -GType -poppler_action_type_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_ACTION_UNKNOWN, "POPPLER_ACTION_UNKNOWN", "unknown" }, - { POPPLER_ACTION_NONE, "POPPLER_ACTION_NONE", "none" }, - { POPPLER_ACTION_GOTO_DEST, "POPPLER_ACTION_GOTO_DEST", "goto-dest" }, - { POPPLER_ACTION_GOTO_REMOTE, "POPPLER_ACTION_GOTO_REMOTE", "goto-remote" }, - { POPPLER_ACTION_LAUNCH, "POPPLER_ACTION_LAUNCH", "launch" }, - { POPPLER_ACTION_URI, "POPPLER_ACTION_URI", "uri" }, - { POPPLER_ACTION_NAMED, "POPPLER_ACTION_NAMED", "named" }, - { POPPLER_ACTION_MOVIE, "POPPLER_ACTION_MOVIE", "movie" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerActionType"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_dest_type_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_DEST_UNKNOWN, "POPPLER_DEST_UNKNOWN", "unknown" }, - { POPPLER_DEST_XYZ, "POPPLER_DEST_XYZ", "xyz" }, - { POPPLER_DEST_FIT, "POPPLER_DEST_FIT", "fit" }, - { POPPLER_DEST_FITH, "POPPLER_DEST_FITH", "fith" }, - { POPPLER_DEST_FITV, "POPPLER_DEST_FITV", "fitv" }, - { POPPLER_DEST_FITR, "POPPLER_DEST_FITR", "fitr" }, - { POPPLER_DEST_FITB, "POPPLER_DEST_FITB", "fitb" }, - { POPPLER_DEST_FITBH, "POPPLER_DEST_FITBH", "fitbh" }, - { POPPLER_DEST_FITBV, "POPPLER_DEST_FITBV", "fitbv" }, - { POPPLER_DEST_NAMED, "POPPLER_DEST_NAMED", "named" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerDestType"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -/* enumerations from "poppler-document.h" */ -#include "poppler-document.h" -GType -poppler_page_layout_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_PAGE_LAYOUT_UNSET, "POPPLER_PAGE_LAYOUT_UNSET", "unset" }, - { POPPLER_PAGE_LAYOUT_SINGLE_PAGE, "POPPLER_PAGE_LAYOUT_SINGLE_PAGE", "single-page" }, - { POPPLER_PAGE_LAYOUT_ONE_COLUMN, "POPPLER_PAGE_LAYOUT_ONE_COLUMN", "one-column" }, - { POPPLER_PAGE_LAYOUT_TWO_COLUMN_LEFT, "POPPLER_PAGE_LAYOUT_TWO_COLUMN_LEFT", "two-column-left" }, - { POPPLER_PAGE_LAYOUT_TWO_COLUMN_RIGHT, "POPPLER_PAGE_LAYOUT_TWO_COLUMN_RIGHT", "two-column-right" }, - { POPPLER_PAGE_LAYOUT_TWO_PAGE_LEFT, "POPPLER_PAGE_LAYOUT_TWO_PAGE_LEFT", "two-page-left" }, - { POPPLER_PAGE_LAYOUT_TWO_PAGE_RIGHT, "POPPLER_PAGE_LAYOUT_TWO_PAGE_RIGHT", "two-page-right" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerPageLayout"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_page_mode_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_PAGE_MODE_UNSET, "POPPLER_PAGE_MODE_UNSET", "unset" }, - { POPPLER_PAGE_MODE_NONE, "POPPLER_PAGE_MODE_NONE", "none" }, - { POPPLER_PAGE_MODE_USE_OUTLINES, "POPPLER_PAGE_MODE_USE_OUTLINES", "use-outlines" }, - { POPPLER_PAGE_MODE_USE_THUMBS, "POPPLER_PAGE_MODE_USE_THUMBS", "use-thumbs" }, - { POPPLER_PAGE_MODE_FULL_SCREEN, "POPPLER_PAGE_MODE_FULL_SCREEN", "full-screen" }, - { POPPLER_PAGE_MODE_USE_OC, "POPPLER_PAGE_MODE_USE_OC", "use-oc" }, - { POPPLER_PAGE_MODE_USE_ATTACHMENTS, "POPPLER_PAGE_MODE_USE_ATTACHMENTS", "use-attachments" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerPageMode"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_font_type_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_FONT_TYPE_UNKNOWN, "POPPLER_FONT_TYPE_UNKNOWN", "unknown" }, - { POPPLER_FONT_TYPE_TYPE1, "POPPLER_FONT_TYPE_TYPE1", "type1" }, - { POPPLER_FONT_TYPE_TYPE1C, "POPPLER_FONT_TYPE_TYPE1C", "type1c" }, - { POPPLER_FONT_TYPE_TYPE1COT, "POPPLER_FONT_TYPE_TYPE1COT", "type1cot" }, - { POPPLER_FONT_TYPE_TYPE3, "POPPLER_FONT_TYPE_TYPE3", "type3" }, - { POPPLER_FONT_TYPE_TRUETYPE, "POPPLER_FONT_TYPE_TRUETYPE", "truetype" }, - { POPPLER_FONT_TYPE_TRUETYPEOT, "POPPLER_FONT_TYPE_TRUETYPEOT", "truetypeot" }, - { POPPLER_FONT_TYPE_CID_TYPE0, "POPPLER_FONT_TYPE_CID_TYPE0", "cid-type0" }, - { POPPLER_FONT_TYPE_CID_TYPE0C, "POPPLER_FONT_TYPE_CID_TYPE0C", "cid-type0c" }, - { POPPLER_FONT_TYPE_CID_TYPE0COT, "POPPLER_FONT_TYPE_CID_TYPE0COT", "cid-type0cot" }, - { POPPLER_FONT_TYPE_CID_TYPE2, "POPPLER_FONT_TYPE_CID_TYPE2", "cid-type2" }, - { POPPLER_FONT_TYPE_CID_TYPE2OT, "POPPLER_FONT_TYPE_CID_TYPE2OT", "cid-type2ot" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerFontType"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_viewer_preferences_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GFlagsValue values[] = { - { POPPLER_VIEWER_PREFERENCES_UNSET, "POPPLER_VIEWER_PREFERENCES_UNSET", "unset" }, - { POPPLER_VIEWER_PREFERENCES_HIDE_TOOLBAR, "POPPLER_VIEWER_PREFERENCES_HIDE_TOOLBAR", "hide-toolbar" }, - { POPPLER_VIEWER_PREFERENCES_HIDE_MENUBAR, "POPPLER_VIEWER_PREFERENCES_HIDE_MENUBAR", "hide-menubar" }, - { POPPLER_VIEWER_PREFERENCES_HIDE_WINDOWUI, "POPPLER_VIEWER_PREFERENCES_HIDE_WINDOWUI", "hide-windowui" }, - { POPPLER_VIEWER_PREFERENCES_FIT_WINDOW, "POPPLER_VIEWER_PREFERENCES_FIT_WINDOW", "fit-window" }, - { POPPLER_VIEWER_PREFERENCES_CENTER_WINDOW, "POPPLER_VIEWER_PREFERENCES_CENTER_WINDOW", "center-window" }, - { POPPLER_VIEWER_PREFERENCES_DISPLAY_DOC_TITLE, "POPPLER_VIEWER_PREFERENCES_DISPLAY_DOC_TITLE", "display-doc-title" }, - { POPPLER_VIEWER_PREFERENCES_DIRECTION_RTL, "POPPLER_VIEWER_PREFERENCES_DIRECTION_RTL", "direction-rtl" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_flags_register_static (g_intern_static_string ("PopplerViewerPreferences"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_permissions_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GFlagsValue values[] = { - { POPPLER_PERMISSIONS_OK_TO_PRINT, "POPPLER_PERMISSIONS_OK_TO_PRINT", "ok-to-print" }, - { POPPLER_PERMISSIONS_OK_TO_MODIFY, "POPPLER_PERMISSIONS_OK_TO_MODIFY", "ok-to-modify" }, - { POPPLER_PERMISSIONS_OK_TO_COPY, "POPPLER_PERMISSIONS_OK_TO_COPY", "ok-to-copy" }, - { POPPLER_PERMISSIONS_OK_TO_ADD_NOTES, "POPPLER_PERMISSIONS_OK_TO_ADD_NOTES", "ok-to-add-notes" }, - { POPPLER_PERMISSIONS_OK_TO_FILL_FORM, "POPPLER_PERMISSIONS_OK_TO_FILL_FORM", "ok-to-fill-form" }, - { POPPLER_PERMISSIONS_FULL, "POPPLER_PERMISSIONS_FULL", "full" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_flags_register_static (g_intern_static_string ("PopplerPermissions"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -/* enumerations from "poppler-form-field.h" */ -#include "poppler-form-field.h" -GType -poppler_form_field_type_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_FORM_FIELD_UNKNOWN, "POPPLER_FORM_FIELD_UNKNOWN", "unknown" }, - { POPPLER_FORM_FIELD_BUTTON, "POPPLER_FORM_FIELD_BUTTON", "button" }, - { POPPLER_FORM_FIELD_TEXT, "POPPLER_FORM_FIELD_TEXT", "text" }, - { POPPLER_FORM_FIELD_CHOICE, "POPPLER_FORM_FIELD_CHOICE", "choice" }, - { POPPLER_FORM_FIELD_SIGNATURE, "POPPLER_FORM_FIELD_SIGNATURE", "signature" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerFormFieldType"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_form_button_type_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_FORM_BUTTON_PUSH, "POPPLER_FORM_BUTTON_PUSH", "push" }, - { POPPLER_FORM_BUTTON_CHECK, "POPPLER_FORM_BUTTON_CHECK", "check" }, - { POPPLER_FORM_BUTTON_RADIO, "POPPLER_FORM_BUTTON_RADIO", "radio" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerFormButtonType"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_form_text_type_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_FORM_TEXT_NORMAL, "POPPLER_FORM_TEXT_NORMAL", "normal" }, - { POPPLER_FORM_TEXT_MULTILINE, "POPPLER_FORM_TEXT_MULTILINE", "multiline" }, - { POPPLER_FORM_TEXT_FILE_SELECT, "POPPLER_FORM_TEXT_FILE_SELECT", "file-select" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerFormTextType"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_form_choice_type_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_FORM_CHOICE_COMBO, "POPPLER_FORM_CHOICE_COMBO", "combo" }, - { POPPLER_FORM_CHOICE_LIST, "POPPLER_FORM_CHOICE_LIST", "list" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerFormChoiceType"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -/* enumerations from "poppler-annot.h" */ -#include "poppler-annot.h" -GType -poppler_annot_type_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_ANNOT_UNKNOWN, "POPPLER_ANNOT_UNKNOWN", "unknown" }, - { POPPLER_ANNOT_TEXT, "POPPLER_ANNOT_TEXT", "text" }, - { POPPLER_ANNOT_LINK, "POPPLER_ANNOT_LINK", "link" }, - { POPPLER_ANNOT_FREE_TEXT, "POPPLER_ANNOT_FREE_TEXT", "free-text" }, - { POPPLER_ANNOT_LINE, "POPPLER_ANNOT_LINE", "line" }, - { POPPLER_ANNOT_SQUARE, "POPPLER_ANNOT_SQUARE", "square" }, - { POPPLER_ANNOT_CIRCLE, "POPPLER_ANNOT_CIRCLE", "circle" }, - { POPPLER_ANNOT_POLYGON, "POPPLER_ANNOT_POLYGON", "polygon" }, - { POPPLER_ANNOT_POLY_LINE, "POPPLER_ANNOT_POLY_LINE", "poly-line" }, - { POPPLER_ANNOT_HIGHLIGHT, "POPPLER_ANNOT_HIGHLIGHT", "highlight" }, - { POPPLER_ANNOT_UNDERLINE, "POPPLER_ANNOT_UNDERLINE", "underline" }, - { POPPLER_ANNOT_SQUIGGLY, "POPPLER_ANNOT_SQUIGGLY", "squiggly" }, - { POPPLER_ANNOT_STRIKE_OUT, "POPPLER_ANNOT_STRIKE_OUT", "strike-out" }, - { POPPLER_ANNOT_STAMP, "POPPLER_ANNOT_STAMP", "stamp" }, - { POPPLER_ANNOT_CARET, "POPPLER_ANNOT_CARET", "caret" }, - { POPPLER_ANNOT_INK, "POPPLER_ANNOT_INK", "ink" }, - { POPPLER_ANNOT_POPUP, "POPPLER_ANNOT_POPUP", "popup" }, - { POPPLER_ANNOT_FILE_ATTACHMENT, "POPPLER_ANNOT_FILE_ATTACHMENT", "file-attachment" }, - { POPPLER_ANNOT_SOUND, "POPPLER_ANNOT_SOUND", "sound" }, - { POPPLER_ANNOT_MOVIE, "POPPLER_ANNOT_MOVIE", "movie" }, - { POPPLER_ANNOT_WIDGET, "POPPLER_ANNOT_WIDGET", "widget" }, - { POPPLER_ANNOT_SCREEN, "POPPLER_ANNOT_SCREEN", "screen" }, - { POPPLER_ANNOT_PRINTER_MARK, "POPPLER_ANNOT_PRINTER_MARK", "printer-mark" }, - { POPPLER_ANNOT_TRAP_NET, "POPPLER_ANNOT_TRAP_NET", "trap-net" }, - { POPPLER_ANNOT_WATERMARK, "POPPLER_ANNOT_WATERMARK", "watermark" }, - { POPPLER_ANNOT_3D, "POPPLER_ANNOT_3D", "3d" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerAnnotType"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_annot_flag_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GFlagsValue values[] = { - { POPPLER_ANNOT_FLAG_UNKNOWN, "POPPLER_ANNOT_FLAG_UNKNOWN", "unknown" }, - { POPPLER_ANNOT_FLAG_INVISIBLE, "POPPLER_ANNOT_FLAG_INVISIBLE", "invisible" }, - { POPPLER_ANNOT_FLAG_HIDDEN, "POPPLER_ANNOT_FLAG_HIDDEN", "hidden" }, - { POPPLER_ANNOT_FLAG_PRINT, "POPPLER_ANNOT_FLAG_PRINT", "print" }, - { POPPLER_ANNOT_FLAG_NO_ZOOM, "POPPLER_ANNOT_FLAG_NO_ZOOM", "no-zoom" }, - { POPPLER_ANNOT_FLAG_NO_ROTATE, "POPPLER_ANNOT_FLAG_NO_ROTATE", "no-rotate" }, - { POPPLER_ANNOT_FLAG_NO_VIEW, "POPPLER_ANNOT_FLAG_NO_VIEW", "no-view" }, - { POPPLER_ANNOT_FLAG_READ_ONLY, "POPPLER_ANNOT_FLAG_READ_ONLY", "read-only" }, - { POPPLER_ANNOT_FLAG_LOCKED, "POPPLER_ANNOT_FLAG_LOCKED", "locked" }, - { POPPLER_ANNOT_FLAG_TOGGLE_NO_VIEW, "POPPLER_ANNOT_FLAG_TOGGLE_NO_VIEW", "toggle-no-view" }, - { POPPLER_ANNOT_FLAG_LOCKED_CONTENTS, "POPPLER_ANNOT_FLAG_LOCKED_CONTENTS", "locked-contents" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_flags_register_static (g_intern_static_string ("PopplerAnnotFlag"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_annot_markup_reply_type_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_ANNOT_MARKUP_REPLY_TYPE_R, "POPPLER_ANNOT_MARKUP_REPLY_TYPE_R", "r" }, - { POPPLER_ANNOT_MARKUP_REPLY_TYPE_GROUP, "POPPLER_ANNOT_MARKUP_REPLY_TYPE_GROUP", "group" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerAnnotMarkupReplyType"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_annot_external_data_type_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_3D, "POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_3D", "3d" }, - { POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_UNKNOWN, "POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_UNKNOWN", "unknown" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerAnnotExternalDataType"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_annot_text_state_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_ANNOT_TEXT_STATE_MARKED, "POPPLER_ANNOT_TEXT_STATE_MARKED", "marked" }, - { POPPLER_ANNOT_TEXT_STATE_UNMARKED, "POPPLER_ANNOT_TEXT_STATE_UNMARKED", "unmarked" }, - { POPPLER_ANNOT_TEXT_STATE_ACCEPTED, "POPPLER_ANNOT_TEXT_STATE_ACCEPTED", "accepted" }, - { POPPLER_ANNOT_TEXT_STATE_REJECTED, "POPPLER_ANNOT_TEXT_STATE_REJECTED", "rejected" }, - { POPPLER_ANNOT_TEXT_STATE_CANCELLED, "POPPLER_ANNOT_TEXT_STATE_CANCELLED", "cancelled" }, - { POPPLER_ANNOT_TEXT_STATE_COMPLETED, "POPPLER_ANNOT_TEXT_STATE_COMPLETED", "completed" }, - { POPPLER_ANNOT_TEXT_STATE_NONE, "POPPLER_ANNOT_TEXT_STATE_NONE", "none" }, - { POPPLER_ANNOT_TEXT_STATE_UNKNOWN, "POPPLER_ANNOT_TEXT_STATE_UNKNOWN", "unknown" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerAnnotTextState"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_annot_free_text_quadding_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_ANNOT_FREE_TEXT_QUADDING_LEFT_JUSTIFIED, "POPPLER_ANNOT_FREE_TEXT_QUADDING_LEFT_JUSTIFIED", "left-justified" }, - { POPPLER_ANNOT_FREE_TEXT_QUADDING_CENTERED, "POPPLER_ANNOT_FREE_TEXT_QUADDING_CENTERED", "centered" }, - { POPPLER_ANNOT_FREE_TEXT_QUADDING_RIGHT_JUSTIFIED, "POPPLER_ANNOT_FREE_TEXT_QUADDING_RIGHT_JUSTIFIED", "right-justified" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerAnnotFreeTextQuadding"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -/* enumerations from "poppler.h" */ -#include "poppler.h" -GType -poppler_error_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_ERROR_INVALID, "POPPLER_ERROR_INVALID", "invalid" }, - { POPPLER_ERROR_ENCRYPTED, "POPPLER_ERROR_ENCRYPTED", "encrypted" }, - { POPPLER_ERROR_OPEN_FILE, "POPPLER_ERROR_OPEN_FILE", "open-file" }, - { POPPLER_ERROR_BAD_CATALOG, "POPPLER_ERROR_BAD_CATALOG", "bad-catalog" }, - { POPPLER_ERROR_DAMAGED, "POPPLER_ERROR_DAMAGED", "damaged" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerError"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_orientation_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_ORIENTATION_PORTRAIT, "POPPLER_ORIENTATION_PORTRAIT", "portrait" }, - { POPPLER_ORIENTATION_LANDSCAPE, "POPPLER_ORIENTATION_LANDSCAPE", "landscape" }, - { POPPLER_ORIENTATION_UPSIDEDOWN, "POPPLER_ORIENTATION_UPSIDEDOWN", "upsidedown" }, - { POPPLER_ORIENTATION_SEASCAPE, "POPPLER_ORIENTATION_SEASCAPE", "seascape" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerOrientation"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_page_transition_type_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_PAGE_TRANSITION_REPLACE, "POPPLER_PAGE_TRANSITION_REPLACE", "replace" }, - { POPPLER_PAGE_TRANSITION_SPLIT, "POPPLER_PAGE_TRANSITION_SPLIT", "split" }, - { POPPLER_PAGE_TRANSITION_BLINDS, "POPPLER_PAGE_TRANSITION_BLINDS", "blinds" }, - { POPPLER_PAGE_TRANSITION_BOX, "POPPLER_PAGE_TRANSITION_BOX", "box" }, - { POPPLER_PAGE_TRANSITION_WIPE, "POPPLER_PAGE_TRANSITION_WIPE", "wipe" }, - { POPPLER_PAGE_TRANSITION_DISSOLVE, "POPPLER_PAGE_TRANSITION_DISSOLVE", "dissolve" }, - { POPPLER_PAGE_TRANSITION_GLITTER, "POPPLER_PAGE_TRANSITION_GLITTER", "glitter" }, - { POPPLER_PAGE_TRANSITION_FLY, "POPPLER_PAGE_TRANSITION_FLY", "fly" }, - { POPPLER_PAGE_TRANSITION_PUSH, "POPPLER_PAGE_TRANSITION_PUSH", "push" }, - { POPPLER_PAGE_TRANSITION_COVER, "POPPLER_PAGE_TRANSITION_COVER", "cover" }, - { POPPLER_PAGE_TRANSITION_UNCOVER, "POPPLER_PAGE_TRANSITION_UNCOVER", "uncover" }, - { POPPLER_PAGE_TRANSITION_FADE, "POPPLER_PAGE_TRANSITION_FADE", "fade" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerPageTransitionType"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_page_transition_alignment_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_PAGE_TRANSITION_HORIZONTAL, "POPPLER_PAGE_TRANSITION_HORIZONTAL", "horizontal" }, - { POPPLER_PAGE_TRANSITION_VERTICAL, "POPPLER_PAGE_TRANSITION_VERTICAL", "vertical" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerPageTransitionAlignment"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_page_transition_direction_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_PAGE_TRANSITION_INWARD, "POPPLER_PAGE_TRANSITION_INWARD", "inward" }, - { POPPLER_PAGE_TRANSITION_OUTWARD, "POPPLER_PAGE_TRANSITION_OUTWARD", "outward" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerPageTransitionDirection"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_selection_style_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_SELECTION_GLYPH, "POPPLER_SELECTION_GLYPH", "glyph" }, - { POPPLER_SELECTION_WORD, "POPPLER_SELECTION_WORD", "word" }, - { POPPLER_SELECTION_LINE, "POPPLER_SELECTION_LINE", "line" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerSelectionStyle"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -GType -poppler_backend_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const GEnumValue values[] = { - { POPPLER_BACKEND_UNKNOWN, "POPPLER_BACKEND_UNKNOWN", "unknown" }, - { POPPLER_BACKEND_SPLASH, "POPPLER_BACKEND_SPLASH", "splash" }, - { POPPLER_BACKEND_CAIRO, "POPPLER_BACKEND_CAIRO", "cairo" }, - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_enum_register_static (g_intern_static_string ("PopplerBackend"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - - - -/* Generated data ends here */ - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-enums.c.template b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-enums.c.template deleted file mode 100644 index 26a51b4c410..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-enums.c.template +++ /dev/null @@ -1,44 +0,0 @@ -/*** BEGIN file-header ***/ -#include <config.h> - -#include "poppler-enums.h" - -/*** END file-header ***/ - -/*** BEGIN file-production ***/ -/* enumerations from "@filename@" */ -#include "@filename@" -/*** END file-production ***/ - - -/*** BEGIN value-header ***/ -GType -@enum_name@_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) { - static const G@Type@Value values[] = { -/*** END value-header ***/ - -/*** BEGIN value-production ***/ - { @VALUENAME@, "@VALUENAME@", "@valuenick@" }, -/*** END value-production ***/ - -/*** BEGIN value-tail ***/ - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_@type@_register_static (g_intern_static_string ("@EnumName@"), values); - - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -/*** END value-tail ***/ - -/*** BEGIN file-tail ***/ - -/*** END file-tail ***/ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-enums.h b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-enums.h deleted file mode 100644 index 250416f04fe..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-enums.h +++ /dev/null @@ -1,74 +0,0 @@ - -/* Generated data (by glib-mkenums) */ - - -#ifndef POPPLER_ENUMS_H -#define POPPLER_ENUMS_H - -#include <glib-object.h> - -G_BEGIN_DECLS - -/* enumerations from "poppler-action.h" */ -GType poppler_action_type_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_ACTION_TYPE (poppler_action_type_get_type ()) -GType poppler_dest_type_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_DEST_TYPE (poppler_dest_type_get_type ()) - -/* enumerations from "poppler-document.h" */ -GType poppler_page_layout_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_PAGE_LAYOUT (poppler_page_layout_get_type ()) -GType poppler_page_mode_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_PAGE_MODE (poppler_page_mode_get_type ()) -GType poppler_font_type_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_FONT_TYPE (poppler_font_type_get_type ()) -GType poppler_viewer_preferences_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_VIEWER_PREFERENCES (poppler_viewer_preferences_get_type ()) -GType poppler_permissions_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_PERMISSIONS (poppler_permissions_get_type ()) - -/* enumerations from "poppler-form-field.h" */ -GType poppler_form_field_type_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_FORM_FIELD_TYPE (poppler_form_field_type_get_type ()) -GType poppler_form_button_type_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_FORM_BUTTON_TYPE (poppler_form_button_type_get_type ()) -GType poppler_form_text_type_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_FORM_TEXT_TYPE (poppler_form_text_type_get_type ()) -GType poppler_form_choice_type_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_FORM_CHOICE_TYPE (poppler_form_choice_type_get_type ()) - -/* enumerations from "poppler-annot.h" */ -GType poppler_annot_type_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_ANNOT_TYPE (poppler_annot_type_get_type ()) -GType poppler_annot_flag_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_ANNOT_FLAG (poppler_annot_flag_get_type ()) -GType poppler_annot_markup_reply_type_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_ANNOT_MARKUP_REPLY_TYPE (poppler_annot_markup_reply_type_get_type ()) -GType poppler_annot_external_data_type_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_ANNOT_EXTERNAL_DATA_TYPE (poppler_annot_external_data_type_get_type ()) -GType poppler_annot_text_state_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_ANNOT_TEXT_STATE (poppler_annot_text_state_get_type ()) -GType poppler_annot_free_text_quadding_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_ANNOT_FREE_TEXT_QUADDING (poppler_annot_free_text_quadding_get_type ()) - -/* enumerations from "poppler.h" */ -GType poppler_error_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_ERROR (poppler_error_get_type ()) -GType poppler_orientation_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_ORIENTATION (poppler_orientation_get_type ()) -GType poppler_page_transition_type_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_PAGE_TRANSITION_TYPE (poppler_page_transition_type_get_type ()) -GType poppler_page_transition_alignment_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT (poppler_page_transition_alignment_get_type ()) -GType poppler_page_transition_direction_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_PAGE_TRANSITION_DIRECTION (poppler_page_transition_direction_get_type ()) -GType poppler_selection_style_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_SELECTION_STYLE (poppler_selection_style_get_type ()) -GType poppler_backend_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_BACKEND (poppler_backend_get_type ()) -G_END_DECLS - -#endif /* !POPPLER_ENUMS_H */ - -/* Generated data ends here */ - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-enums.h.template b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-enums.h.template deleted file mode 100644 index 5d056dd54c0..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-enums.h.template +++ /dev/null @@ -1,25 +0,0 @@ -/*** BEGIN file-header ***/ - -#ifndef POPPLER_ENUMS_H -#define POPPLER_ENUMS_H - -#include <glib-object.h> - -G_BEGIN_DECLS -/*** END file-header ***/ - -/*** BEGIN file-production ***/ - -/* enumerations from "@filename@" */ -/*** END file-production ***/ - -/*** BEGIN value-header ***/ -GType @enum_name@_get_type (void) G_GNUC_CONST; -#define POPPLER_TYPE_@ENUMSHORT@ (@enum_name@_get_type ()) -/*** END value-header ***/ - -/*** BEGIN file-tail ***/ -G_END_DECLS - -#endif /* !POPPLER_ENUMS_H */ -/*** END file-tail ***/ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-features.h b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-features.h deleted file mode 100644 index 6df10361f23..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-features.h +++ /dev/null @@ -1,34 +0,0 @@ -/* poppler-features.h: glib interface to poppler - * Copyright (C) 2006, Red Hat, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __POPPLER_FEATURES_H__ -#define __POPPLER_FEATURES_H__ - -#define POPPLER_HAS_CAIRO 1 -#define POPPLER_WITH_GDK 1 - -#define POPPLER_MAJOR_VERSION (0) -#define POPPLER_MINOR_VERSION (12) -#define POPPLER_MICRO_VERSION (4) - -#define POPPLER_CHECK_VERSION(major,minor,micro) \ - (POPPLER_MAJOR_VERSION > (major) || \ - (POPPLER_MAJOR_VERSION == (major) && POPPLER_MINOR_VERSION > (minor)) || \ - (POPPLER_MAJOR_VERSION == (major) && POPPLER_MINOR_VERSION == (minor) && POPPLER_MICRO_VERSION >= (micro))) - -#endif /* __POPPLER_FEATURES_H__ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-features.h.cmake b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-features.h.cmake deleted file mode 100644 index 1f79ce4fdcd..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-features.h.cmake +++ /dev/null @@ -1,33 +0,0 @@ -/* poppler-features.h: glib interface to poppler - * Copyright (C) 2006, Red Hat, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __POPPLER_FEATURES_H__ -#define __POPPLER_FEATURES_H__ - -@CAIRO_FEATURE@ - -#define POPPLER_MAJOR_VERSION (@POPPLER_MAJOR_VERSION@) -#define POPPLER_MINOR_VERSION (@POPPLER_MINOR_VERSION@) -#define POPPLER_MICRO_VERSION (@POPPLER_MICRO_VERSION@) - -#define POPPLER_CHECK_VERSION(major,minor,micro) \ - (POPPLER_MAJOR_VERSION > (major) || \ - (POPPLER_MAJOR_VERSION == (major) && POPPLER_MINOR_VERSION > (minor)) || \ - (POPPLER_MAJOR_VERSION == (major) && POPPLER_MINOR_VERSION == (minor) && POPPLER_MICRO_VERSION >= (micro))) - -#endif /* __POPPLER_FEATURES_H__ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-features.h.in b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-features.h.in deleted file mode 100644 index 99c7ed8e02d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-features.h.in +++ /dev/null @@ -1,34 +0,0 @@ -/* poppler-features.h: glib interface to poppler - * Copyright (C) 2006, Red Hat, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __POPPLER_FEATURES_H__ -#define __POPPLER_FEATURES_H__ - -@CAIRO_FEATURE@ -@GDK_FEATURE@ - -#define POPPLER_MAJOR_VERSION (@POPPLER_MAJOR_VERSION@) -#define POPPLER_MINOR_VERSION (@POPPLER_MINOR_VERSION@) -#define POPPLER_MICRO_VERSION (@POPPLER_MICRO_VERSION@) - -#define POPPLER_CHECK_VERSION(major,minor,micro) \ - (POPPLER_MAJOR_VERSION > (major) || \ - (POPPLER_MAJOR_VERSION == (major) && POPPLER_MINOR_VERSION > (minor)) || \ - (POPPLER_MAJOR_VERSION == (major) && POPPLER_MINOR_VERSION == (minor) && POPPLER_MICRO_VERSION >= (micro))) - -#endif /* __POPPLER_FEATURES_H__ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-form-field.cc b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-form-field.cc deleted file mode 100644 index 4ed5b9ecc2e..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-form-field.cc +++ /dev/null @@ -1,579 +0,0 @@ -/* poppler-form-field.cc: glib interface to poppler - * - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * Copyright (C) 2006 Julien Rebetez - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler.h" -#include "poppler-private.h" - -typedef struct _PopplerFormFieldClass PopplerFormFieldClass; -struct _PopplerFormFieldClass -{ - GObjectClass parent_class; -}; - -G_DEFINE_TYPE (PopplerFormField, poppler_form_field, G_TYPE_OBJECT) - -static void -poppler_form_field_finalize (GObject *object) -{ - PopplerFormField *field = POPPLER_FORM_FIELD (object); - - if (field->document) - { - g_object_unref (field->document); - field->document = NULL; - } - field->widget = NULL; - - G_OBJECT_CLASS (poppler_form_field_parent_class)->finalize (object); -} - -static void -poppler_form_field_init (PopplerFormField *field) -{ -} - -static void -poppler_form_field_class_init (PopplerFormFieldClass *klass) -{ - GObjectClass *gobject_class = G_OBJECT_CLASS (klass); - - gobject_class->finalize = poppler_form_field_finalize; -} - -PopplerFormField * -_poppler_form_field_new (PopplerDocument *document, - FormWidget *field) -{ - PopplerFormField *poppler_field; - - g_return_val_if_fail (POPPLER_IS_DOCUMENT (document), NULL); - g_return_val_if_fail (field != NULL, NULL); - - poppler_field = POPPLER_FORM_FIELD (g_object_new (POPPLER_TYPE_FORM_FIELD, NULL)); - - poppler_field->document = (PopplerDocument *)g_object_ref (document); - poppler_field->widget = field; - - return poppler_field; -} - -/* Public methods */ -/** - * poppler_form_field_get_field_type: - * @field: a #PopplerFormField - * - * Gets the type of @field - * - * Return value: #PopplerFormFieldType of @field - **/ -PopplerFormFieldType -poppler_form_field_get_field_type (PopplerFormField *field) -{ - g_return_val_if_fail (POPPLER_IS_FORM_FIELD (field), POPPLER_FORM_FIELD_UNKNOWN); - - switch (field->widget->getType ()) - { - case formButton: - return POPPLER_FORM_FIELD_BUTTON; - case formText: - return POPPLER_FORM_FIELD_TEXT; - case formChoice: - return POPPLER_FORM_FIELD_CHOICE; - case formSignature: - return POPPLER_FORM_FIELD_SIGNATURE; - default: - g_warning ("Unsupported Form Field Type"); - } - - return POPPLER_FORM_FIELD_UNKNOWN; -} - -/** - * poppler_form_field_get_id: - * @field: a #PopplerFormField - * - * Gets the id of @field - * - * Return value: the id of @field - **/ -gint -poppler_form_field_get_id (PopplerFormField *field) -{ - g_return_val_if_fail (POPPLER_IS_FORM_FIELD (field), -1); - - return field->widget->getID (); -} - -/** - * poppler_form_field_get_font_size - * @field: a #PopplerFormField - * - * Gets the font size of @field - * - * Return value: the font size of @field - **/ -gdouble -poppler_form_field_get_font_size (PopplerFormField *field) -{ - g_return_val_if_fail (POPPLER_IS_FORM_FIELD (field), 0); - - return field->widget->getFontSize (); -} - -/** - * poppler_form_field_is_read_only - * @field: a #PopplerFormField - * - * Checks whether @field is read only - * - * Return value: %TRUE if @field is read only - **/ -gboolean -poppler_form_field_is_read_only (PopplerFormField *field) -{ - g_return_val_if_fail (POPPLER_IS_FORM_FIELD (field), FALSE); - - return field->widget->isReadOnly (); -} - -/* Button Field */ -/** - * poppler_form_field_button_get_button_type - * @field: a #PopplerFormField - * - * Gets the button type of @field - * - * Return value: #PopplerFormButtonType of @field - **/ -PopplerFormButtonType -poppler_form_field_button_get_button_type (PopplerFormField *field) -{ - g_return_val_if_fail (field->widget->getType () == formButton, POPPLER_FORM_BUTTON_PUSH); - - switch (static_cast<FormWidgetButton*>(field->widget)->getButtonType ()) - { - case formButtonPush: - return POPPLER_FORM_BUTTON_PUSH; - case formButtonCheck: - return POPPLER_FORM_BUTTON_CHECK; - case formButtonRadio: - return POPPLER_FORM_BUTTON_RADIO; - default: - g_assert_not_reached (); - } -} - -/** - * poppler_form_field_button_get_state - * @field: a #PopplerFormField - * - * Queries a #PopplerFormField and returns its current state. Returns %TRUE if - * @field is pressed in and %FALSE if it is raised. - * - * Return value: current state of @field - **/ -gboolean -poppler_form_field_button_get_state (PopplerFormField *field) -{ - g_return_val_if_fail (field->widget->getType () == formButton, FALSE); - - return static_cast<FormWidgetButton*>(field->widget)->getState (); -} - -/** - * poppler_form_field_button_set_state - * @field: a #PopplerFormField - * @state: %TRUE or %FALSE - * - * Sets the status of @field. Set to %TRUE if you want the #PopplerFormField - * to be 'pressed in', and %FALSE to raise it. - **/ -void -poppler_form_field_button_set_state (PopplerFormField *field, - gboolean state) -{ - g_return_if_fail (field->widget->getType () == formButton); - - static_cast<FormWidgetButton*>(field->widget)->setState ((GBool)state); -} - -/* Text Field */ -/** - * poppler_form_field_text_get_text_type: - * @field: a #PopplerFormField - * - * Gets the text type of @field. - * - * Return value: #PopplerFormTextType of @field - **/ -PopplerFormTextType -poppler_form_field_text_get_text_type (PopplerFormField *field) -{ - FormWidgetText *text_field; - - g_return_val_if_fail (field->widget->getType () == formText, POPPLER_FORM_TEXT_NORMAL); - - text_field = static_cast<FormWidgetText*>(field->widget); - - if (text_field->isMultiline ()) - return POPPLER_FORM_TEXT_MULTILINE; - else if (text_field->isFileSelect ()) - return POPPLER_FORM_TEXT_FILE_SELECT; - - return POPPLER_FORM_TEXT_NORMAL; -} - -/** - * poppler_form_field_text_get_text: - * @field: a #PopplerFormField - * - * Retrieves the contents of @field. - * - * Return value: a new allocated string. It must be freed with g_free() when done. - **/ -gchar * -poppler_form_field_text_get_text (PopplerFormField *field) -{ - FormWidgetText *text_field; - GooString *tmp; - - g_return_val_if_fail (field->widget->getType () == formText, NULL); - - text_field = static_cast<FormWidgetText*>(field->widget); - tmp = text_field->getContent (); - - return tmp ? _poppler_goo_string_to_utf8 (tmp) : NULL; -} - -/** - * poppler_form_field_text_set_text: - * @field: a #PopplerFormField - * @text: the new text - * - * Sets the text in @field to the given value, replacing the current contents. - **/ -void -poppler_form_field_text_set_text (PopplerFormField *field, - const gchar *text) -{ - GooString *goo_tmp; - gchar *tmp; - gsize length = 0; - - g_return_if_fail (field->widget->getType () == formText); - - tmp = text ? g_convert (text, -1, "UTF-16BE", "UTF-8", NULL, &length, NULL) : NULL; - goo_tmp = new GooString (tmp, length); - g_free (tmp); - static_cast<FormWidgetText*>(field->widget)->setContent (goo_tmp); - delete goo_tmp; -} - -/** - * poppler_form_field_text_get_max_len: - * @field: a #PopplerFormField - * - * Retrieves the maximum allowed length of the text in @field - * - * Return value: the maximum allowed number of characters in @field, or -1 if there is no maximum. - **/ -gint -poppler_form_field_text_get_max_len (PopplerFormField *field) -{ - g_return_val_if_fail (field->widget->getType () == formText, 0); - - return static_cast<FormWidgetText*>(field->widget)->getMaxLen (); -} - -/** - * poppler_form_field_text_do_spell_check: - * @field: a #PopplerFormField - * - * Checks whether spell checking should be done for the contents of @field - * - * Return value: %TRUE if spell checking should be done for @field - **/ -gboolean -poppler_form_field_text_do_spell_check (PopplerFormField *field) -{ - g_return_val_if_fail (field->widget->getType () == formText, FALSE); - - return !static_cast<FormWidgetText*>(field->widget)->noSpellCheck (); -} - -gboolean -poppler_form_field_text_do_scroll (PopplerFormField *field) -{ - g_return_val_if_fail (field->widget->getType () == formText, FALSE); - - return !static_cast<FormWidgetText*>(field->widget)->noScroll (); -} - -/** - * poppler_form_field_text_is_rich_text: - * @field: a #PopplerFormField - * - * Checks whether the contents of @field are rich text - * - * Return value: %TRUE if the contents of @field are rich text - **/ -gboolean -poppler_form_field_text_is_rich_text (PopplerFormField *field) -{ - g_return_val_if_fail (field->widget->getType () == formText, FALSE); - - return static_cast<FormWidgetText*>(field->widget)->isRichText (); -} - -/** - * poppler_form_field_text_is_password: - * @field: a #PopplerFormField - * - * Checks whether content of @field is a password and it must be hidden - * - * Return value: %TRUE if the content of @field is a password - **/ -gboolean -poppler_form_field_text_is_password (PopplerFormField *field) -{ - g_return_val_if_fail (field->widget->getType () == formText, FALSE); - - return static_cast<FormWidgetText*>(field->widget)->isPassword (); -} - -/* Choice Field */ -/** - * poppler_form_field_choice_get_choice_type: - * @field: a #PopplerFormField - * - * Gets the choice type of @field - * - * Return value: #PopplerFormChoiceType of @field - **/ -PopplerFormChoiceType -poppler_form_field_choice_get_choice_type (PopplerFormField *field) -{ - g_return_val_if_fail (field->widget->getType () == formChoice, POPPLER_FORM_CHOICE_COMBO); - - if (static_cast<FormWidgetChoice*>(field->widget)->isCombo ()) - return POPPLER_FORM_CHOICE_COMBO; - else - return POPPLER_FORM_CHOICE_LIST; -} - -/** - * poppler_form_field_choice_is_editable: - * @field: a #PopplerFormField - * - * Checks whether @field is editable - * - * Return value: %TRUE if @field is editable - **/ -gboolean -poppler_form_field_choice_is_editable (PopplerFormField *field) -{ - g_return_val_if_fail (field->widget->getType () == formChoice, FALSE); - - return static_cast<FormWidgetChoice*>(field->widget)->hasEdit (); -} - -/** - * poppler_form_field_choice_can_select_multiple: - * @field: a #PopplerFormField - * - * Checks whether @field allows multiple choices to be selected - * - * Return value: %TRUE if @field allows multiple choices to be selected - **/ -gboolean -poppler_form_field_choice_can_select_multiple (PopplerFormField *field) -{ - g_return_val_if_fail (field->widget->getType () == formChoice, FALSE); - - return static_cast<FormWidgetChoice*>(field->widget)->isMultiSelect (); -} - -/** - * poppler_form_field_choice_do_spell_check: - * @field: a #PopplerFormField - * - * Checks whether spell checking should be done for the contents of @field - * - * Return value: %TRUE if spell checking should be done for @field - **/ -gboolean -poppler_form_field_choice_do_spell_check (PopplerFormField *field) -{ - g_return_val_if_fail (field->widget->getType () == formChoice, FALSE); - - return !static_cast<FormWidgetChoice*>(field->widget)->noSpellCheck (); -} - -gboolean -poppler_form_field_choice_commit_on_change (PopplerFormField *field) -{ - g_return_val_if_fail (field->widget->getType () == formChoice, FALSE); - - return static_cast<FormWidgetChoice*>(field->widget)->commitOnSelChange (); -} - -/** - * poppler_form_field_choice_get_n_items: - * @field: a #PopplerFormField - * - * Returns the number of items on @field - * - * Return value: the number of items on @field - **/ -gint -poppler_form_field_choice_get_n_items (PopplerFormField *field) -{ - g_return_val_if_fail (field->widget->getType () == formChoice, -1); - - return static_cast<FormWidgetChoice*>(field->widget)->getNumChoices (); -} - -/** - * poppler_form_field_choice_get_item: - * @field: a #PopplerFormField - * @index: the index of the item - * - * Returns the contents of the item on @field at the given index - * - * Return value: a new allocated string. It must be freed with g_free() when done. - **/ -gchar * -poppler_form_field_choice_get_item (PopplerFormField *field, - gint index) -{ - GooString *tmp; - - g_return_val_if_fail (field->widget->getType () == formChoice, NULL); - - tmp = static_cast<FormWidgetChoice*>(field->widget)->getChoice (index); - return tmp ? _poppler_goo_string_to_utf8 (tmp) : NULL; -} - -/** - * poppler_form_field_choice_is_item_selected: - * @field: a #PopplerFormField - * @index: the index of the item - * - * Checks whether the item at the given index on @field is currently selected - * - * Return value: %TRUE if item at @index is currently selected - **/ -gboolean -poppler_form_field_choice_is_item_selected (PopplerFormField *field, - gint index) -{ - g_return_val_if_fail (field->widget->getType () == formChoice, FALSE); - - return static_cast<FormWidgetChoice*>(field->widget)->isSelected (index); -} - -/** - * poppler_form_field_choice_select_item: - * @field: a #PopplerFormField - * @index: the index of the item - * - * Selects the item at the given index on @field - **/ -void -poppler_form_field_choice_select_item (PopplerFormField *field, - gint index) -{ - g_return_if_fail (field->widget->getType () == formChoice); - - static_cast<FormWidgetChoice*>(field->widget)->select (index); -} - -/** - * poppler_form_field_choice_unselect_all: - * @field: a #PopplerFormField - * - * Unselects all the items on @field - **/ -void -poppler_form_field_choice_unselect_all (PopplerFormField *field) -{ - g_return_if_fail (field->widget->getType () == formChoice); - - static_cast<FormWidgetChoice*>(field->widget)->deselectAll (); -} - -/** - * poppler_form_field_choice_toggle_item: - * @field: a #PopplerFormField - * @index: the index of the item - * - * Changes the state of the item at the given index - **/ -void -poppler_form_field_choice_toggle_item (PopplerFormField *field, - gint index) -{ - g_return_if_fail (field->widget->getType () == formChoice); - - static_cast<FormWidgetChoice*>(field->widget)->toggle (index); -} - -/** - * poppler_form_field_choice_toggle_item: - * @field: a #PopplerFormField - * @text: the new text - * - * Sets the text in @field to the given value, replacing the current contents - **/ -void -poppler_form_field_choice_set_text (PopplerFormField *field, - const gchar *text) -{ - GooString *goo_tmp; - gchar *tmp; - gsize length = 0; - - g_return_if_fail (field->widget->getType () == formChoice); - - tmp = text ? g_convert (text, -1, "UTF-16BE", "UTF-8", NULL, &length, NULL) : NULL; - goo_tmp = new GooString (tmp, length); - g_free (tmp); - static_cast<FormWidgetChoice*>(field->widget)->setEditChoice (goo_tmp); - delete goo_tmp; -} - -/** - * poppler_form_field_choice_get_text: - * @field: a #PopplerFormField - * - * Retrieves the contents of @field. - * - * Return value: a new allocated string. It must be freed with g_free() when done. - **/ -gchar * -poppler_form_field_choice_get_text (PopplerFormField *field) -{ - GooString *tmp; - - g_return_val_if_fail (field->widget->getType () == formChoice, NULL); - - tmp = static_cast<FormWidgetChoice*>(field->widget)->getEditChoice (); - return tmp ? _poppler_goo_string_to_utf8 (tmp) : NULL; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-form-field.h b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-form-field.h deleted file mode 100644 index b8727e9e2c0..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-form-field.h +++ /dev/null @@ -1,107 +0,0 @@ -/* poppler-form-field.h: glib interface to poppler - * - * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __POPPLER_FORM_FIELD_H__ -#define __POPPLER_FORM_FIELD_H__ - -#include <glib-object.h> -#include "poppler.h" - -G_BEGIN_DECLS - -#define POPPLER_TYPE_FORM_FIELD (poppler_form_field_get_type ()) -#define POPPLER_FORM_FIELD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_FORM_FIELD, PopplerFormField)) -#define POPPLER_IS_FORM_FIELD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_FORM_FIELD)) - -typedef enum -{ - POPPLER_FORM_FIELD_UNKNOWN, - POPPLER_FORM_FIELD_BUTTON, - POPPLER_FORM_FIELD_TEXT, - POPPLER_FORM_FIELD_CHOICE, - POPPLER_FORM_FIELD_SIGNATURE -} PopplerFormFieldType; - -typedef enum -{ - POPPLER_FORM_BUTTON_PUSH, - POPPLER_FORM_BUTTON_CHECK, - POPPLER_FORM_BUTTON_RADIO -} PopplerFormButtonType; - -typedef enum -{ - POPPLER_FORM_TEXT_NORMAL, - POPPLER_FORM_TEXT_MULTILINE, - POPPLER_FORM_TEXT_FILE_SELECT -} PopplerFormTextType; - -typedef enum -{ - POPPLER_FORM_CHOICE_COMBO, - POPPLER_FORM_CHOICE_LIST -} PopplerFormChoiceType; - -GType poppler_form_field_get_type (void) G_GNUC_CONST; - -PopplerFormFieldType poppler_form_field_get_field_type (PopplerFormField *field); -gint poppler_form_field_get_id (PopplerFormField *field); -gdouble poppler_form_field_get_font_size (PopplerFormField *field); -gboolean poppler_form_field_is_read_only (PopplerFormField *field); - -/* Button Field */ -PopplerFormButtonType poppler_form_field_button_get_button_type (PopplerFormField *field); -gboolean poppler_form_field_button_get_state (PopplerFormField *field); -void poppler_form_field_button_set_state (PopplerFormField *field, - gboolean state); - -/* Text Field */ -PopplerFormTextType poppler_form_field_text_get_text_type (PopplerFormField *field); -gchar *poppler_form_field_text_get_text (PopplerFormField *field); -void poppler_form_field_text_set_text (PopplerFormField *field, - const gchar *text); -gint poppler_form_field_text_get_max_len (PopplerFormField *field); -gboolean poppler_form_field_text_do_spell_check (PopplerFormField *field); -gboolean poppler_form_field_text_do_scroll (PopplerFormField *field); -gboolean poppler_form_field_text_is_rich_text (PopplerFormField *field); -gboolean poppler_form_field_text_is_password (PopplerFormField *field); - -/* Choice Field */ -PopplerFormChoiceType poppler_form_field_choice_get_choice_type (PopplerFormField *field); -gboolean poppler_form_field_choice_is_editable (PopplerFormField *field); -gboolean poppler_form_field_choice_can_select_multiple (PopplerFormField *field); -gboolean poppler_form_field_choice_do_spell_check (PopplerFormField *field); -gboolean poppler_form_field_choice_commit_on_change (PopplerFormField *field); -gint poppler_form_field_choice_get_n_items (PopplerFormField *field); -gchar *poppler_form_field_choice_get_item (PopplerFormField *field, - gint index); -gboolean poppler_form_field_choice_is_item_selected (PopplerFormField *field, - gint index); -void poppler_form_field_choice_select_item (PopplerFormField *field, - gint index); -void poppler_form_field_choice_unselect_all (PopplerFormField *field); -void poppler_form_field_choice_toggle_item (PopplerFormField *field, - gint index); -void poppler_form_field_choice_set_text (PopplerFormField *field, - const gchar *text); -gchar *poppler_form_field_choice_get_text (PopplerFormField *field); - -G_END_DECLS - -#endif /* __POPPLER_FORM_FIELD_H__ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-layer.cc b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-layer.cc deleted file mode 100644 index 43aa85aa204..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-layer.cc +++ /dev/null @@ -1,203 +0,0 @@ -/* poppler-layer.cc: glib interface to poppler - * - * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-layer.h" -#include "poppler-private.h" - -typedef struct _PopplerLayerClass PopplerLayerClass; -struct _PopplerLayerClass -{ - GObjectClass parent_class; -}; - -G_DEFINE_TYPE (PopplerLayer, poppler_layer, G_TYPE_OBJECT) - -static void -poppler_layer_finalize (GObject *object) -{ - PopplerLayer *poppler_layer = POPPLER_LAYER (object); - - if (poppler_layer->document) - { - g_object_unref (poppler_layer->document); - poppler_layer->document = NULL; - } - - if (poppler_layer->title) - { - g_free (poppler_layer->title); - poppler_layer->title = NULL; - } - poppler_layer->layer = NULL; - poppler_layer->rbgroup = NULL; - - G_OBJECT_CLASS (poppler_layer_parent_class)->finalize (object); -} - -static void -poppler_layer_init (PopplerLayer *layer) -{ -} - -static void -poppler_layer_class_init (PopplerLayerClass *klass) -{ - GObjectClass *gobject_class = G_OBJECT_CLASS (klass); - - gobject_class->finalize = poppler_layer_finalize; -} - -PopplerLayer * -_poppler_layer_new (PopplerDocument *document, - Layer *layer, - GList *rbgroup) -{ - PopplerLayer *poppler_layer; - - g_return_val_if_fail (POPPLER_IS_DOCUMENT (document), NULL); - g_return_val_if_fail (layer != NULL, NULL); - - poppler_layer = POPPLER_LAYER (g_object_new (POPPLER_TYPE_LAYER, NULL)); - - poppler_layer->document = (PopplerDocument *)g_object_ref (document); - poppler_layer->layer = layer; - poppler_layer->rbgroup = rbgroup; - poppler_layer->title = _poppler_goo_string_to_utf8 (layer->oc->getName ()); - - return poppler_layer; -} - -/** - * poppler_layer_get_title - * @layer: a #PopplerLayer - * - * Returns the name of the layer suitable for - * presentation as a title in a viewer's GUI - * - * Return value: a string containing the title of the layer - **/ -const gchar * -poppler_layer_get_title (PopplerLayer *poppler_layer) -{ - g_return_val_if_fail (POPPLER_IS_LAYER (poppler_layer), NULL); - - return poppler_layer->title; -} - -/** - * poppler_layer_is_visible - * @layer: a #PopplerLayer - * - * Returns whether @layer is visible - * - * Return value: %TRUE if @layer is visible - **/ -gboolean -poppler_layer_is_visible (PopplerLayer *poppler_layer) -{ - g_return_val_if_fail (POPPLER_IS_LAYER (poppler_layer), FALSE); - - return poppler_layer->layer->oc->getState () == OptionalContentGroup::On; -} - -/** - * poppler_layer_show - * @layer: a #PopplerLayer - * - * Shows @layer - **/ -void -poppler_layer_show (PopplerLayer *poppler_layer) -{ - GList *l; - Layer *layer; - - g_return_if_fail (POPPLER_IS_LAYER (poppler_layer)); - - layer = poppler_layer->layer; - - if (layer->oc->getState () == OptionalContentGroup::On) - return; - - layer->oc->setState (OptionalContentGroup::On); - - for (l = poppler_layer->rbgroup; l && l->data; l = g_list_next (l)) { - OptionalContentGroup *oc = (OptionalContentGroup *)l->data; - - if (oc != layer->oc) - oc->setState (OptionalContentGroup::Off); - } -} - -/** - * poppler_layer_hide - * @layer: a #PopplerLayer - * - * Hides @layer. If @layer is the parent of other nested layers, - * such layers will be also hidden and will be blocked until @layer - * is shown again - **/ -void -poppler_layer_hide (PopplerLayer *poppler_layer) -{ - Layer *layer; - - g_return_if_fail (POPPLER_IS_LAYER (poppler_layer)); - - layer = poppler_layer->layer; - - if (layer->oc->getState () == OptionalContentGroup::Off) - return; - - layer->oc->setState (OptionalContentGroup::Off); -} - - -/** - * poppler_layer_is_parent - * @layer: a #PopplerLayer - * - * Returns whether @layer is parent of other nested layers. - * - * Return value: %TRUE if @layer is a parent layer - **/ -gboolean -poppler_layer_is_parent (PopplerLayer *poppler_layer) -{ - g_return_val_if_fail (POPPLER_IS_LAYER (poppler_layer), FALSE); - - return poppler_layer->layer->kids != NULL; -} - -/** - * poppler_layer_get_radio_button_group_id - * @layer: a #PopplerLayer - * - * Returns the numeric ID the radio button group associated with @layer. - * - * Return value: the ID of the radio button group associated with @layer, - * or 0 if the layer is not associated to any radio button group - **/ -gint -poppler_layer_get_radio_button_group_id (PopplerLayer *poppler_layer) -{ - g_return_val_if_fail (POPPLER_IS_LAYER (poppler_layer), FALSE); - - return GPOINTER_TO_INT (poppler_layer->rbgroup); -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-layer.h b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-layer.h deleted file mode 100644 index 2434e275888..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-layer.h +++ /dev/null @@ -1,43 +0,0 @@ -/* poppler-layer.h: glib interface to poppler - * - * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __POPPLER_LAYER_H__ -#define __POPPLER_LAYER_H__ - -#include <glib-object.h> -#include "poppler.h" - -G_BEGIN_DECLS - -#define POPPLER_TYPE_LAYER (poppler_layer_get_type ()) -#define POPPLER_LAYER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_LAYER, PopplerLayer)) -#define POPPLER_IS_LAYER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_LAYER)) - -GType poppler_layer_get_type (void) G_GNUC_CONST; - -const gchar *poppler_layer_get_title (PopplerLayer *layer); -gboolean poppler_layer_is_visible (PopplerLayer *layer); -void poppler_layer_show (PopplerLayer *layer); -void poppler_layer_hide (PopplerLayer *layer); -gboolean poppler_layer_is_parent (PopplerLayer *layer); -gint poppler_layer_get_radio_button_group_id (PopplerLayer *layer); - -G_END_DECLS - -#endif /* __POPPLER_LAYER_H__ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-page.cc b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-page.cc deleted file mode 100644 index 3c0ead1f431..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-page.cc +++ /dev/null @@ -1,2006 +0,0 @@ -/* poppler-page.cc: glib wrapper for poppler - * Copyright (C) 2005, Red Hat, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "config.h" -#include <math.h> - -#include <goo/GooList.h> -#include <splash/SplashBitmap.h> -#include <GlobalParams.h> -#include <PDFDoc.h> -#include <Outline.h> -#include <ErrorCodes.h> -#include <UnicodeMap.h> -#include <GfxState.h> -#include <PageTransition.h> - -#include "poppler.h" -#include "poppler-private.h" - -enum -{ - PROP_0, - PROP_LABEL -}; - -typedef struct _PopplerPageClass PopplerPageClass; -struct _PopplerPageClass -{ - GObjectClass parent_class; -}; - -G_DEFINE_TYPE (PopplerPage, poppler_page, G_TYPE_OBJECT) - -PopplerPage * -_poppler_page_new (PopplerDocument *document, Page *page, int index) -{ - PopplerPage *poppler_page; - - g_return_val_if_fail (POPPLER_IS_DOCUMENT (document), NULL); - - poppler_page = (PopplerPage *) g_object_new (POPPLER_TYPE_PAGE, NULL, NULL); - poppler_page->document = (PopplerDocument *) g_object_ref (document); - poppler_page->page = page; - poppler_page->index = index; - - return poppler_page; -} - -static void -poppler_page_finalize (GObject *object) -{ - PopplerPage *page = POPPLER_PAGE (object); - - g_object_unref (page->document); - page->document = NULL; - - if (page->annots != NULL) - delete page->annots; -#if defined (HAVE_CAIRO) - if (page->text != NULL) - page->text->decRefCnt(); -#else - if (page->gfx != NULL) - delete page->gfx; - if (page->text_dev != NULL) - delete page->text_dev; -#endif - /* page->page is owned by the document */ -} - -/** - * poppler_page_get_size: - * @page: A #PopplerPage - * @width: return location for the width of @page - * @height: return location for the height of @page - * - * Gets the size of @page at the current scale and rotation. - **/ -void -poppler_page_get_size (PopplerPage *page, - double *width, - double *height) -{ - double page_width, page_height; - int rotate; - - g_return_if_fail (POPPLER_IS_PAGE (page)); - - rotate = page->page->getRotate (); - if (rotate == 90 || rotate == 270) { - page_height = page->page->getCropWidth (); - page_width = page->page->getCropHeight (); - } else { - page_width = page->page->getCropWidth (); - page_height = page->page->getCropHeight (); - } - - if (width != NULL) - *width = page_width; - if (height != NULL) - *height = page_height; -} - -/** - * poppler_page_get_index: - * @page: a #PopplerPage - * - * Returns the index of @page - * - * Return value: index value of @page - **/ -int -poppler_page_get_index (PopplerPage *page) -{ - g_return_val_if_fail (POPPLER_IS_PAGE (page), 0); - - return page->index; -} - -/** - * poppler_page_get_duration: - * @page: a #PopplerPage - * - * Returns the duration of @page - * - * Return value: duration in seconds of @page or -1. - **/ -double -poppler_page_get_duration (PopplerPage *page) -{ - g_return_val_if_fail (POPPLER_IS_PAGE (page), -1); - - return page->page->getDuration (); -} - -/** - * poppler_page_get_transition: - * @page: a #PopplerPage - * - * Returns the transition effect of @page - * - * Return value: a #PopplerPageTransition or NULL. - **/ -PopplerPageTransition * -poppler_page_get_transition (PopplerPage *page) -{ - PageTransition *trans; - PopplerPageTransition *transition; - Object obj; - - g_return_val_if_fail (POPPLER_IS_PAGE (page), NULL); - - trans = new PageTransition (page->page->getTrans (&obj)); - obj.free (); - - if (!trans->isOk ()) { - delete trans; - return NULL; - } - - transition = poppler_page_transition_new (); - - switch (trans->getType ()) - { - case transitionReplace: - transition->type = POPPLER_PAGE_TRANSITION_REPLACE; - break; - case transitionSplit: - transition->type = POPPLER_PAGE_TRANSITION_SPLIT; - break; - case transitionBlinds: - transition->type = POPPLER_PAGE_TRANSITION_BLINDS; - break; - case transitionBox: - transition->type = POPPLER_PAGE_TRANSITION_BOX; - break; - case transitionWipe: - transition->type = POPPLER_PAGE_TRANSITION_WIPE; - break; - case transitionDissolve: - transition->type = POPPLER_PAGE_TRANSITION_DISSOLVE; - break; - case transitionGlitter: - transition->type = POPPLER_PAGE_TRANSITION_GLITTER; - break; - case transitionFly: - transition->type = POPPLER_PAGE_TRANSITION_FLY; - break; - case transitionPush: - transition->type = POPPLER_PAGE_TRANSITION_PUSH; - break; - case transitionCover: - transition->type = POPPLER_PAGE_TRANSITION_COVER; - break; - case transitionUncover: - transition->type = POPPLER_PAGE_TRANSITION_UNCOVER; - break; - case transitionFade: - transition->type = POPPLER_PAGE_TRANSITION_FADE; - break; - default: - g_assert_not_reached (); - } - - transition->alignment = (trans->getAlignment() == transitionHorizontal) ? - POPPLER_PAGE_TRANSITION_HORIZONTAL : - POPPLER_PAGE_TRANSITION_VERTICAL; - - transition->direction = (trans->getDirection() == transitionInward) ? - POPPLER_PAGE_TRANSITION_INWARD : - POPPLER_PAGE_TRANSITION_OUTWARD; - - transition->duration = trans->getDuration(); - transition->angle = trans->getAngle(); - transition->scale = trans->getScale(); - transition->rectangular = trans->isRectangular(); - - delete trans; - - return transition; -} - -#if !defined (HAVE_CAIRO) -static TextOutputDev * -poppler_page_get_text_output_dev (PopplerPage *page) -{ - if (page->text_dev == NULL) { - page->text_dev = new TextOutputDev (NULL, gTrue, gFalse, gFalse); - - if (page->gfx) - delete page->gfx; - page->gfx = page->page->createGfx(page->text_dev, - 72.0, 72.0, 0, - gFalse, /* useMediaBox */ - gTrue, /* Crop */ - -1, -1, -1, -1, - gFalse, /* printing */ - page->document->doc->getCatalog (), - NULL, NULL, NULL, NULL); - - page->page->display(page->gfx); - - page->text_dev->endPage(); - } - - return page->text_dev; -} -#endif /* !defined (HAVE_CAIRO) */ - -#if defined (HAVE_CAIRO) - -static TextPage * -poppler_page_get_text_page (PopplerPage *page) -{ - if (page->text == NULL) { - cairo_t *cr; - cairo_surface_t *surface; - - surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, 1, 1); - cr = cairo_create (surface); - poppler_page_render (page, cr); - cairo_destroy (cr); - cairo_surface_destroy (surface); - - } - - return page->text; -} - -#ifdef POPPLER_WITH_GDK -typedef struct { - unsigned char *cairo_data; - cairo_surface_t *surface; - cairo_t *cairo; -} OutputDevData; - -static void -poppler_page_prepare_output_dev (PopplerPage *page, - double scale, - int rotation, - gboolean transparent, - OutputDevData *output_dev_data) -{ - CairoOutputDev *output_dev; - cairo_surface_t *surface; - double width, height; - int cairo_width, cairo_height, cairo_rowstride, rotate; - unsigned char *cairo_data; - - rotate = rotation + page->page->getRotate (); - if (rotate == 90 || rotate == 270) { - height = page->page->getCropWidth (); - width = page->page->getCropHeight (); - } else { - width = page->page->getCropWidth (); - height = page->page->getCropHeight (); - } - - cairo_width = (int) ceil(width * scale); - cairo_height = (int) ceil(height * scale); - - output_dev = page->document->output_dev; - cairo_rowstride = cairo_width * 4; - cairo_data = (guchar *) gmallocn (cairo_height, cairo_rowstride); - if (transparent) - memset (cairo_data, 0x00, cairo_height * cairo_rowstride); - else - memset (cairo_data, 0xff, cairo_height * cairo_rowstride); - - surface = cairo_image_surface_create_for_data(cairo_data, - CAIRO_FORMAT_ARGB32, - cairo_width, cairo_height, - cairo_rowstride); - - output_dev_data->cairo_data = cairo_data; - output_dev_data->surface = surface; - output_dev_data->cairo = cairo_create (surface); - output_dev->setCairo (output_dev_data->cairo); -} - -static void -copy_cairo_surface_to_pixbuf (cairo_surface_t *surface, - unsigned char *data, - GdkPixbuf *pixbuf) -{ - int cairo_width, cairo_height, cairo_rowstride; - unsigned char *pixbuf_data, *dst, *cairo_data; - int pixbuf_rowstride, pixbuf_n_channels; - unsigned int *src; - int x, y; - - cairo_width = cairo_image_surface_get_width (surface); - cairo_height = cairo_image_surface_get_height (surface); - cairo_rowstride = cairo_width * 4; - cairo_data = data; - - pixbuf_data = gdk_pixbuf_get_pixels (pixbuf); - pixbuf_rowstride = gdk_pixbuf_get_rowstride (pixbuf); - pixbuf_n_channels = gdk_pixbuf_get_n_channels (pixbuf); - - if (cairo_width > gdk_pixbuf_get_width (pixbuf)) - cairo_width = gdk_pixbuf_get_width (pixbuf); - if (cairo_height > gdk_pixbuf_get_height (pixbuf)) - cairo_height = gdk_pixbuf_get_height (pixbuf); - for (y = 0; y < cairo_height; y++) - { - src = (unsigned int *) (cairo_data + y * cairo_rowstride); - dst = pixbuf_data + y * pixbuf_rowstride; - for (x = 0; x < cairo_width; x++) - { - dst[0] = (*src >> 16) & 0xff; - dst[1] = (*src >> 8) & 0xff; - dst[2] = (*src >> 0) & 0xff; - if (pixbuf_n_channels == 4) - dst[3] = (*src >> 24) & 0xff; - dst += pixbuf_n_channels; - src++; - } - } -} - -static void -poppler_page_copy_to_pixbuf (PopplerPage *page, - GdkPixbuf *pixbuf, - OutputDevData *output_dev_data) -{ - copy_cairo_surface_to_pixbuf (output_dev_data->surface, - output_dev_data->cairo_data, - pixbuf); - - page->document->output_dev->setCairo (NULL); - cairo_surface_destroy (output_dev_data->surface); - cairo_destroy (output_dev_data->cairo); - gfree (output_dev_data->cairo_data); -} - -static void -poppler_page_set_selection_alpha (PopplerPage *page, - double scale, - GdkPixbuf *pixbuf, - PopplerSelectionStyle style, - PopplerRectangle *selection) -{ - /* Cairo doesn't need this, since cairo generates an alpha channel. */ -} -#endif /* POPPLER_WITH_GDK */ - -#elif defined (HAVE_SPLASH) && defined (POPPLER_WITH_GDK) - -typedef struct { -} OutputDevData; - -static void -poppler_page_prepare_output_dev (PopplerPage *page, - double scale, - int rotation, - gboolean transparent, - OutputDevData *output_dev_data) -{ - /* pft */ -} - -static void -poppler_page_copy_to_pixbuf(PopplerPage *page, - GdkPixbuf *pixbuf, - OutputDevData *data) -{ - SplashOutputDev *output_dev; - SplashBitmap *bitmap; - SplashColorPtr color_ptr; - int splash_width, splash_height, splash_rowstride; - int pixbuf_rowstride, pixbuf_n_channels; - guchar *pixbuf_data, *dst; - int x, y; - - output_dev = page->document->output_dev; - - bitmap = output_dev->getBitmap (); - color_ptr = bitmap->getDataPtr (); - - splash_width = bitmap->getWidth (); - splash_height = bitmap->getHeight (); - splash_rowstride = bitmap->getRowSize (); - - pixbuf_data = gdk_pixbuf_get_pixels (pixbuf); - pixbuf_rowstride = gdk_pixbuf_get_rowstride (pixbuf); - pixbuf_n_channels = gdk_pixbuf_get_n_channels (pixbuf); - - if (splash_width > gdk_pixbuf_get_width (pixbuf)) - splash_width = gdk_pixbuf_get_width (pixbuf); - if (splash_height > gdk_pixbuf_get_height (pixbuf)) - splash_height = gdk_pixbuf_get_height (pixbuf); - - SplashColorPtr pixel = new Guchar[4]; - for (y = 0; y < splash_height; y++) - { - dst = pixbuf_data + y * pixbuf_rowstride; - for (x = 0; x < splash_width; x++) - { - output_dev->getBitmap()->getPixel(x, y, pixel); - dst[0] = pixel[0]; - dst[1] = pixel[1]; - dst[2] = pixel[2]; - if (pixbuf_n_channels == 4) - dst[3] = 0xff; - dst += pixbuf_n_channels; - } - } - delete [] pixel; -} - -static void -poppler_page_set_selection_alpha (PopplerPage *page, - double scale, - GdkPixbuf *pixbuf, - PopplerSelectionStyle style, - PopplerRectangle *selection) -{ - GList *region, *l; - gint x, y, width, height; - int pixbuf_rowstride, pixbuf_n_channels; - guchar *pixbuf_data, *dst; - - pixbuf_data = gdk_pixbuf_get_pixels (pixbuf); - pixbuf_rowstride = gdk_pixbuf_get_rowstride (pixbuf); - pixbuf_n_channels = gdk_pixbuf_get_n_channels (pixbuf); - width = gdk_pixbuf_get_width (pixbuf); - height = gdk_pixbuf_get_height (pixbuf); - - if (pixbuf_n_channels != 4) - return; - - for (y = 0; y < height; y++) { - dst = pixbuf_data + y * pixbuf_rowstride; - for (x = 0; x < width; x++) { - dst[3] = 0x00; - dst += pixbuf_n_channels; - } - } - - region = poppler_page_get_selection_region (page, scale, style, selection); - - for (l = region; l; l = g_list_next (l)) { - PopplerRectangle *rectangle = (PopplerRectangle *)l->data; - GdkRectangle rect; - - rect.x = (gint)rectangle->x1; - rect.y = (gint)rectangle->y1; - rect.width = (gint) (rectangle->x2 - rectangle->x1); - rect.height = (gint) (rectangle->y2 - rectangle->y1); - - for (y = 0; y < rect.height; y++) { - dst = pixbuf_data + (rect.y + y) * pixbuf_rowstride + - rect.x * pixbuf_n_channels; - for (x = 0; x < rect.width; x++) { - dst[3] = 0xff; - dst += pixbuf_n_channels; - } - } - } - - poppler_page_selection_region_free (region); -} - -#endif /* HAVE_SPLASH */ - -static GBool -poppler_print_annot_cb (Annot *annot, void *user_data) -{ - if (annot->getFlags () & Annot::flagPrint) - return gTrue; - return (annot->getType() == Annot::typeWidget); -} - -#if defined (HAVE_CAIRO) - -static void -_poppler_page_render (PopplerPage *page, - cairo_t *cairo, - GBool printing) -{ - CairoOutputDev *output_dev; - - g_return_if_fail (POPPLER_IS_PAGE (page)); - - output_dev = page->document->output_dev; - output_dev->setCairo (cairo); - output_dev->setPrinting (printing); - - if (!printing) - output_dev->setTextPage (page->text); - - /* NOTE: instead of passing -1 we should/could use cairo_clip_extents() - * to get a bounding box */ - cairo_save (cairo); - page->page->displaySlice(output_dev, - 72.0, 72.0, 0, - gFalse, /* useMediaBox */ - gTrue, /* Crop */ - -1, -1, - -1, -1, - printing, - page->document->doc->getCatalog (), - NULL, NULL, - printing ? poppler_print_annot_cb : NULL, NULL); - cairo_restore (cairo); - - output_dev->setCairo (NULL); - output_dev->setTextPage (NULL); -} - -/** - * poppler_page_render: - * @page: the page to render from - * @cairo: cairo context to render to - * - * Render the page to the given cairo context. This function - * is for rendering a page that will be displayed. If you want - * to render a page that will be printed use - * poppler_page_render_for_printing() instead - **/ -void -poppler_page_render (PopplerPage *page, - cairo_t *cairo) -{ - g_return_if_fail (POPPLER_IS_PAGE (page)); - - if (!page->text) - page->text = new TextPage(gFalse); - - _poppler_page_render (page, cairo, gFalse); -} - -/** - * poppler_page_render_for_printing: - * @page: the page to render from - * @cairo: cairo context to render to - * - * Render the page to the given cairo context for printing. - **/ -void -poppler_page_render_for_printing (PopplerPage *page, - cairo_t *cairo) -{ - g_return_if_fail (POPPLER_IS_PAGE (page)); - - _poppler_page_render (page, cairo, gTrue); -} - -static cairo_surface_t * -create_surface_from_thumbnail_data (guchar *data, - gint width, - gint height, - gint rowstride) -{ - guchar *cairo_pixels; - gint cairo_stride; - cairo_surface_t *surface; - int j; - - surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, width, height); - if (cairo_surface_status (surface)) - return NULL; - - cairo_pixels = cairo_image_surface_get_data (surface); - cairo_stride = cairo_image_surface_get_stride (surface); - - for (j = height; j; j--) { - guchar *p = data; - guchar *q = cairo_pixels; - guchar *end = p + 3 * width; - - while (p < end) { -#if G_BYTE_ORDER == G_LITTLE_ENDIAN - q[0] = p[2]; - q[1] = p[1]; - q[2] = p[0]; -#else - q[1] = p[0]; - q[2] = p[1]; - q[3] = p[2]; -#endif - p += 3; - q += 4; - } - - data += rowstride; - cairo_pixels += cairo_stride; - } - - return surface; -} - - -/** - * poppler_page_get_thumbnail: - * @page: the #PopperPage to get the thumbnail for - * - * Get the embedded thumbnail for the specified page. If the document - * doesn't have an embedded thumbnail for the page, this function - * returns %NULL. - * - * Return value: the tumbnail as a cairo_surface_t or %NULL if the document - * doesn't have a thumbnail for this page. - **/ -cairo_surface_t * -poppler_page_get_thumbnail (PopplerPage *page) -{ - unsigned char *data; - int width, height, rowstride; - cairo_surface_t *surface; - - g_return_val_if_fail (POPPLER_IS_PAGE (page), FALSE); - - if (!page->page->loadThumb (&data, &width, &height, &rowstride)) - return NULL; - - surface = create_surface_from_thumbnail_data (data, width, height, rowstride); - gfree (data); - - return surface; -} - -/** - * poppler_page_render_selection: - * @page: the #PopplerPage for which to render selection - * @cairo: cairo context to render to - * @selection: start and end point of selection as a rectangle - * @old_selection: previous selection - * @style: a #PopplerSelectionStyle - * @glyph_color: color to use for drawing glyphs - * @background_color: color to use for the selection background - * - * Render the selection specified by @selection for @page to - * the given cairo context. The selection will be rendered, using - * @glyph_color for the glyphs and @background_color for the selection - * background. - * - * If non-NULL, @old_selection specifies the selection that is already - * rendered to @cairo, in which case this function will (some day) - * only render the changed part of the selection. - **/ -void -poppler_page_render_selection (PopplerPage *page, - cairo_t *cairo, - PopplerRectangle *selection, - PopplerRectangle *old_selection, - PopplerSelectionStyle style, - PopplerColor *glyph_color, - PopplerColor *background_color) -{ - CairoOutputDev *output_dev; - TextPage *text; - SelectionStyle selection_style = selectionStyleGlyph; - PDFRectangle pdf_selection(selection->x1, selection->y1, - selection->x2, selection->y2); - - GfxColor gfx_background_color = { - { - background_color->red, - background_color->green, - background_color->blue - } - }; - GfxColor gfx_glyph_color = { - { - glyph_color->red, - glyph_color->green, - glyph_color->blue - } - }; - - switch (style) - { - case POPPLER_SELECTION_GLYPH: - selection_style = selectionStyleGlyph; - break; - case POPPLER_SELECTION_WORD: - selection_style = selectionStyleWord; - break; - case POPPLER_SELECTION_LINE: - selection_style = selectionStyleLine; - break; - } - - output_dev = page->document->output_dev; - output_dev->setCairo (cairo); - - text = poppler_page_get_text_page (page); - text->drawSelection (output_dev, 1.0, 0, - &pdf_selection, selection_style, - &gfx_glyph_color, &gfx_background_color); - - output_dev->setCairo (NULL); -} - -#endif /* HAVE_CAIRO */ - -#ifdef POPPLER_WITH_GDK -static void -_poppler_page_render_to_pixbuf (PopplerPage *page, - int src_x, int src_y, - int src_width, int src_height, - double scale, - int rotation, - GBool printing, - GdkPixbuf *pixbuf) -{ - OutputDevData data; - - poppler_page_prepare_output_dev (page, scale, rotation, FALSE, &data); - - page->page->displaySlice(page->document->output_dev, - 72.0 * scale, 72.0 * scale, - rotation, - gFalse, /* useMediaBox */ - gTrue, /* Crop */ - src_x, src_y, - src_width, src_height, - printing, - page->document->doc->getCatalog (), - NULL, NULL, - printing ? poppler_print_annot_cb : NULL, NULL); - - poppler_page_copy_to_pixbuf (page, pixbuf, &data); -} - -/** - * poppler_page_render_to_pixbuf: - * @page: the page to render from - * @src_x: x coordinate of upper left corner - * @src_y: y coordinate of upper left corner - * @src_width: width of rectangle to render - * @src_height: height of rectangle to render - * @scale: scale specified as pixels per point - * @rotation: rotate the document by the specified degree - * @pixbuf: pixbuf to render into - * - * First scale the document to match the specified pixels per point, - * then render the rectangle given by the upper left corner at - * (src_x, src_y) and src_width and src_height. - * This function is for rendering a page that will be displayed. - * If you want to render a page that will be printed use - * poppler_page_render_to_pixbuf_for_printing() instead - **/ -void -poppler_page_render_to_pixbuf (PopplerPage *page, - int src_x, int src_y, - int src_width, int src_height, - double scale, - int rotation, - GdkPixbuf *pixbuf) -{ - g_return_if_fail (POPPLER_IS_PAGE (page)); - g_return_if_fail (scale > 0.0); - g_return_if_fail (pixbuf != NULL); - - _poppler_page_render_to_pixbuf (page, src_x, src_y, - src_width, src_height, - scale, rotation, - gFalse, - pixbuf); -} - -/** - * poppler_page_render_to_pixbuf_for_printing: - * @page: the page to render from - * @src_x: x coordinate of upper left corner - * @src_y: y coordinate of upper left corner - * @src_width: width of rectangle to render - * @src_height: height of rectangle to render - * @scale: scale specified as pixels per point - * @rotation: rotate the document by the specified degree - * @pixbuf: pixbuf to render into - * - * First scale the document to match the specified pixels per point, - * then render the rectangle given by the upper left corner at - * (src_x, src_y) and src_width and src_height. - * This function is for rendering a page that will be printed. - **/ -void -poppler_page_render_to_pixbuf_for_printing (PopplerPage *page, - int src_x, int src_y, - int src_width, int src_height, - double scale, - int rotation, - GdkPixbuf *pixbuf) -{ - g_return_if_fail (POPPLER_IS_PAGE (page)); - g_return_if_fail (scale > 0.0); - g_return_if_fail (pixbuf != NULL); - - _poppler_page_render_to_pixbuf (page, src_x, src_y, - src_width, src_height, - scale, rotation, - gTrue, - pixbuf); -} - -/** - * poppler_page_get_thumbnail_pixbuf: - * @page: the #PopperPage to get the thumbnail for - * - * Get the embedded thumbnail for the specified page. If the document - * doesn't have an embedded thumbnail for the page, this function - * returns %NULL. - * - * Return value: the tumbnail as a #GdkPixbuf or %NULL if the document - * doesn't have a thumbnail for this page. - **/ -GdkPixbuf * -poppler_page_get_thumbnail_pixbuf (PopplerPage *page) -{ - unsigned char *data; - int width, height, rowstride; - - g_return_val_if_fail (POPPLER_IS_PAGE (page), FALSE); - - if (!page->page->loadThumb (&data, &width, &height, &rowstride)) - return NULL; - - return gdk_pixbuf_new_from_data (data, GDK_COLORSPACE_RGB, - FALSE, 8, width, height, rowstride, - (GdkPixbufDestroyNotify)gfree, NULL); -} - -/** - * poppler_page_render_selection_to_pixbuf: - * @page: the #PopplerPage for which to render selection - * @scale: scale specified as pixels per point - * @rotation: rotate the document by the specified degree - * @pixbuf: pixbuf to render to - * @selection: start and end point of selection as a rectangle - * @old_selection: previous selection - * @style: a #PopplerSelectionStyle - * @glyph_color: color to use for drawing glyphs - * @background_color: color to use for the selection background - * - * Render the selection specified by @selection for @page into - * @pixbuf. The selection will be rendered at @scale, using - * @glyph_color for the glyphs and @background_color for the selection - * background. - * - * If non-NULL, @old_selection specifies the selection that is already - * rendered in @pixbuf, in which case this function will (some day) - * only render the changed part of the selection. - **/ -void -poppler_page_render_selection_to_pixbuf (PopplerPage *page, - gdouble scale, - int rotation, - GdkPixbuf *pixbuf, - PopplerRectangle *selection, - PopplerRectangle *old_selection, - PopplerSelectionStyle style, - GdkColor *glyph_color, - GdkColor *background_color) -{ - OutputDev *output_dev; - OutputDevData data; - SelectionStyle selection_style = selectionStyleGlyph; - PDFRectangle pdf_selection(selection->x1, selection->y1, - selection->x2, selection->y2); - - GfxColor gfx_background_color = { - { - background_color->red, - background_color->green, - background_color->blue - } - }; - GfxColor gfx_glyph_color = { - { - glyph_color->red, - glyph_color->green, - glyph_color->blue - } - }; - - switch (style) - { - case POPPLER_SELECTION_GLYPH: - selection_style = selectionStyleGlyph; - break; - case POPPLER_SELECTION_WORD: - selection_style = selectionStyleWord; - break; - case POPPLER_SELECTION_LINE: - selection_style = selectionStyleLine; - break; - } - - output_dev = page->document->output_dev; - - poppler_page_prepare_output_dev (page, scale, rotation, TRUE, &data); - -#if defined (HAVE_CAIRO) - TextPage *text; - - text = poppler_page_get_text_page (page); - text->drawSelection (output_dev, scale, rotation, - &pdf_selection, selection_style, - &gfx_glyph_color, &gfx_background_color); -#else - TextOutputDev *text_dev; - - text_dev = poppler_page_get_text_output_dev (page); - text_dev->drawSelection (output_dev, scale, rotation, - &pdf_selection, selection_style, - &gfx_glyph_color, &gfx_background_color); - /* We'll need a function to destroy page->text_dev and page->gfx - * when the application wants to get rid of them. - * - * Two improvements: 1) make GfxFont refcounted and let TextPage and - * friends hold a reference to the GfxFonts they need so we can free - * up Gfx early. 2) use a TextPage directly when rendering the page - * so we don't have to use TextOutputDev and render a second - * time. */ -#endif - - poppler_page_copy_to_pixbuf (page, pixbuf, &data); - - poppler_page_set_selection_alpha (page, scale, pixbuf, style, selection); -} - -#endif /* POPPLER_WITH_GDK */ - -/** - * poppler_page_get_thumbnail_size: - * @page: A #PopplerPage - * @width: return location for width - * @height: return location for height - * - * Returns %TRUE if @page has a thumbnail associated with it. It also - * fills in @width and @height with the width and height of the - * thumbnail. The values of width and height are not changed if no - * appropriate thumbnail exists. - * - * Return value: %TRUE, if @page has a thumbnail associated with it. - **/ -gboolean -poppler_page_get_thumbnail_size (PopplerPage *page, - int *width, - int *height) -{ - Object thumb; - Dict *dict; - gboolean retval = FALSE; - - g_return_val_if_fail (POPPLER_IS_PAGE (page), FALSE); - g_return_val_if_fail (width != NULL, FALSE); - g_return_val_if_fail (height != NULL, FALSE); - - page->page->getThumb (&thumb); - if (!thumb.isStream ()) - { - thumb.free (); - return FALSE; - } - - dict = thumb.streamGetDict(); - - /* Theoretically, this could succeed and you would still fail when - * loading the thumb */ - if (dict->lookupInt ("Width", "W", width) && - dict->lookupInt ("Height", "H", height)) - retval = TRUE; - - thumb.free (); - - return retval; -} - -/** - * poppler_page_get_selection_region: - * @page: a #PopplerPage - * @scale: scale specified as pixels per point - * @style: a #PopplerSelectionStyle - * @selection: start and end point of selection as a rectangle - * - * Returns a region containing the area that would be rendered by - * poppler_page_render_selection() or - * poppler_page_render_selection_to_pixbuf() as a #GList of - * #PopplerRectangle. The returned list must be freed with - * poppler_page_selection_region_free(). - * - * Return value: a #GList of #PopplerRectangle - **/ -GList * -poppler_page_get_selection_region (PopplerPage *page, - gdouble scale, - PopplerSelectionStyle style, - PopplerRectangle *selection) -{ - PDFRectangle poppler_selection; - SelectionStyle selection_style = selectionStyleGlyph; - GooList *list; - GList *region = NULL; - int i; - - poppler_selection.x1 = selection->x1; - poppler_selection.y1 = selection->y1; - poppler_selection.x2 = selection->x2; - poppler_selection.y2 = selection->y2; - - switch (style) - { - case POPPLER_SELECTION_GLYPH: - selection_style = selectionStyleGlyph; - break; - case POPPLER_SELECTION_WORD: - selection_style = selectionStyleWord; - break; - case POPPLER_SELECTION_LINE: - selection_style = selectionStyleLine; - break; - } - -#if defined (HAVE_CAIRO) - TextPage *text; - - text = poppler_page_get_text_page (page); - list = text->getSelectionRegion(&poppler_selection, - selection_style, scale); -#else - TextOutputDev *text_dev; - - text_dev = poppler_page_get_text_output_dev (page); - list = text_dev->getSelectionRegion(&poppler_selection, - selection_style, scale); -#endif - - for (i = 0; i < list->getLength(); i++) { - PDFRectangle *selection_rect = (PDFRectangle *) list->get(i); - PopplerRectangle *rect; - - rect = poppler_rectangle_new (); - - rect->x1 = selection_rect->x1; - rect->y1 = selection_rect->y1; - rect->x2 = selection_rect->x2; - rect->y2 = selection_rect->y2; - - region = g_list_prepend (region, rect); - - delete selection_rect; - } - - delete list; - - return g_list_reverse (region); -} - -void -poppler_page_selection_region_free (GList *region) -{ - if (!region) - return; - - g_list_foreach (region, (GFunc)poppler_rectangle_free, NULL); - g_list_free (region); -} - -/** - * poppler_page_get_text: - * @page: a #PopplerPage - * @style: a #PopplerSelectionStyle - * @selection: the #PopplerRectangle including the text - * - * Retrieves the contents of the specified @selection as text. - * - * Return value: a pointer to the contents of the @selection - * as a string - **/ -char * -poppler_page_get_text (PopplerPage *page, - PopplerSelectionStyle style, - PopplerRectangle *selection) -{ - GooString *sel_text; - double height; - char *result; - SelectionStyle selection_style = selectionStyleGlyph; - PDFRectangle pdf_selection; - - g_return_val_if_fail (POPPLER_IS_PAGE (page), FALSE); - g_return_val_if_fail (selection != NULL, NULL); - - poppler_page_get_size (page, NULL, &height); - pdf_selection.x1 = selection->x1; - pdf_selection.y1 = height - selection->y2; - pdf_selection.x2 = selection->x2; - pdf_selection.y2 = height - selection->y1; - - switch (style) - { - case POPPLER_SELECTION_GLYPH: - selection_style = selectionStyleGlyph; - break; - case POPPLER_SELECTION_WORD: - selection_style = selectionStyleWord; - break; - case POPPLER_SELECTION_LINE: - selection_style = selectionStyleLine; - break; - } - -#if defined (HAVE_CAIRO) - TextPage *text; - - text = poppler_page_get_text_page (page); - sel_text = text->getSelectionText (&pdf_selection, selection_style); -#else - TextOutputDev *text_dev; - - text_dev = poppler_page_get_text_output_dev (page); - sel_text = text_dev->getSelectionText (&pdf_selection, selection_style); -#endif - - result = g_strdup (sel_text->getCString ()); - delete sel_text; - - return result; -} - -/** - * poppler_page_find_text: - * @page: a #PopplerPage - * @text: the text to search for (UTF-8 encoded) - * - * A #GList of rectangles for each occurance of the text on the page. - * The coordinates are in PDF points. - * - * Return value: a #GList of PopplerRectangle, - **/ -GList * -poppler_page_find_text (PopplerPage *page, - const char *text) -{ - PopplerRectangle *match; - GList *matches; - double xMin, yMin, xMax, yMax; - gunichar *ucs4; - glong ucs4_len; - double height; -#if defined (HAVE_CAIRO) - TextPage *text_dev; -#else - TextOutputDev *text_dev; -#endif - - g_return_val_if_fail (POPPLER_IS_PAGE (page), FALSE); - g_return_val_if_fail (text != NULL, FALSE); - -#if defined (HAVE_CAIRO) - text_dev = poppler_page_get_text_page (page); -#else - text_dev = new TextOutputDev (NULL, gTrue, gFalse, gFalse); - page->page->display (text_dev, 72, 72, 0, - gFalse, gTrue, gFalse, - page->document->doc->getCatalog()); -#endif - - ucs4 = g_utf8_to_ucs4_fast (text, -1, &ucs4_len); - poppler_page_get_size (page, NULL, &height); - - matches = NULL; - xMin = 0; - yMin = 0; - - while (text_dev->findText (ucs4, ucs4_len, - gFalse, gTrue, // startAtTop, stopAtBottom - gTrue, gFalse, // startAtLast, stopAtLast - gFalse, gFalse, // caseSensitive, backwards - &xMin, &yMin, &xMax, &yMax)) - { - match = g_new (PopplerRectangle, 1); - match->x1 = xMin; - match->y1 = height - yMax; - match->x2 = xMax; - match->y2 = height - yMin; - matches = g_list_prepend (matches, match); - } - -#if !defined (HAVE_CAIRO) - delete text_dev; -#endif - - g_free (ucs4); - - return g_list_reverse (matches); -} - -#if defined (HAVE_CAIRO) - -static CairoImageOutputDev * -poppler_page_get_image_output_dev (PopplerPage *page, - GBool (*imgDrawDeviceCbk)(int img_id, void *data), - void *imgDrawCbkData) -{ - CairoImageOutputDev *image_dev; - Gfx *gfx; - - image_dev = new CairoImageOutputDev (); - - if (imgDrawDeviceCbk) { - image_dev->setImageDrawDecideCbk (imgDrawDeviceCbk, - imgDrawCbkData); - } - - gfx = page->page->createGfx(image_dev, - 72.0, 72.0, 0, - gFalse, /* useMediaBox */ - gTrue, /* Crop */ - -1, -1, -1, -1, - gFalse, /* printing */ - page->document->doc->getCatalog (), - NULL, NULL, NULL, NULL); - page->page->display(gfx); - delete gfx; - - return image_dev; -} - -/** - * poppler_page_get_image_mapping: - * @page: A #PopplerPage - * - * Returns a list of #PopplerImageMapping items that map from a - * location on @page to an image of the page. This list must be freed - * with poppler_page_free_image_mapping() when done. - * - * Return value: A #GList of #PopplerImageMapping - **/ -GList * -poppler_page_get_image_mapping (PopplerPage *page) -{ - GList *map_list = NULL; - CairoImageOutputDev *out; - gint i; - - g_return_val_if_fail (POPPLER_IS_PAGE (page), NULL); - - out = poppler_page_get_image_output_dev (page, NULL, NULL); - - for (i = 0; i < out->getNumImages (); i++) { - PopplerImageMapping *mapping; - CairoImage *image; - - image = out->getImage (i); - - /* Create the mapping */ - mapping = g_new (PopplerImageMapping, 1); - - image->getRect (&(mapping->area.x1), &(mapping->area.y1), - &(mapping->area.x2), &(mapping->area.y2)); - mapping->image_id = i; - - mapping->area.x1 -= page->page->getCropBox()->x1; - mapping->area.x2 -= page->page->getCropBox()->x1; - mapping->area.y1 -= page->page->getCropBox()->y1; - mapping->area.y2 -= page->page->getCropBox()->y1; - - map_list = g_list_prepend (map_list, mapping); - } - - delete out; - - return map_list; -} - -static GBool -image_draw_decide_cb (int image_id, void *data) -{ - return (image_id == GPOINTER_TO_INT (data)); -} - -/** - * poppler_page_get_image: - * @page: A #PopplerPage - * @image_id: The image identificator - * - * Returns a cairo surface for the image of the @page - * - * Return value: A cairo surface for the image - **/ -cairo_surface_t * -poppler_page_get_image (PopplerPage *page, - gint image_id) -{ - CairoImageOutputDev *out; - cairo_surface_t *image; - - g_return_val_if_fail (POPPLER_IS_PAGE (page), NULL); - - out = poppler_page_get_image_output_dev (page, - image_draw_decide_cb, - GINT_TO_POINTER (image_id)); - - if (image_id >= out->getNumImages ()) { - delete out; - - return NULL; - } - - image = out->getImage (image_id)->getImage (); - if (!image) { - delete out; - - return NULL; - } - - cairo_surface_reference (image); - delete out; - - return image; -} - -/** - * poppler_page_free_image_mapping: - * @list: A list of #PopplerImageMapping<!-- -->s - * - * Frees a list of #PopplerImageMapping<!-- -->s allocated by - * poppler_page_get_image_mapping(). - **/ -void -poppler_page_free_image_mapping (GList *list) -{ - if (list == NULL) - return; - - g_list_foreach (list, (GFunc)g_free, NULL); - g_list_free (list); -} - -#else /* HAVE_CAIRO */ - -GList * -poppler_page_get_image_mapping (PopplerPage *page) -{ - return NULL; -} - -void -poppler_page_free_image_mapping (GList *list) -{ -} - -#endif /* HAVE_CAIRO */ - -/** - * poppler_page_render_to_ps: - * @page: a #PopplerPage - * @ps_file: the PopplerPSFile to render to - * - * Render the page on a postscript file - * - **/ -void -poppler_page_render_to_ps (PopplerPage *page, - PopplerPSFile *ps_file) -{ - g_return_if_fail (POPPLER_IS_PAGE (page)); - g_return_if_fail (ps_file != NULL); - - if (!ps_file->out) - ps_file->out = new PSOutputDev (ps_file->filename, - ps_file->document->doc->getXRef(), - ps_file->document->doc->getCatalog(), - NULL, - ps_file->first_page, ps_file->last_page, - psModePS, (int)ps_file->paper_width, - (int)ps_file->paper_height, ps_file->duplex, - 0, 0, 0, 0, gFalse, gFalse); - - - ps_file->document->doc->displayPage (ps_file->out, page->index + 1, 72.0, 72.0, - 0, gFalse, gTrue, gFalse); -} - -static void -poppler_page_get_property (GObject *object, - guint prop_id, - GValue *value, - GParamSpec *pspec) -{ - PopplerPage *page = POPPLER_PAGE (object); - GooString label; - - switch (prop_id) - { - case PROP_LABEL: - page->document->doc->getCatalog ()->indexToLabel (page->index, &label); - g_value_take_string (value, _poppler_goo_string_to_utf8(&label)); - break; - } -} - -static void -poppler_page_class_init (PopplerPageClass *klass) -{ - GObjectClass *gobject_class = G_OBJECT_CLASS (klass); - GParamSpec *pspec; - - gobject_class->finalize = poppler_page_finalize; - gobject_class->get_property = poppler_page_get_property; - - pspec = g_param_spec_string ("label", - "Page Label", - "The label of the page", - NULL, - G_PARAM_READABLE); - g_object_class_install_property (G_OBJECT_CLASS (klass), - PROP_LABEL, - pspec); -} - -static void -poppler_page_init (PopplerPage *page) -{ -} - -/** - * poppler_page_get_link_mapping: - * @page: A #PopplerPage - * - * Returns a list of #PopplerLinkMapping items that map from a - * location on @page to a #PopplerAction. This list must be freed - * with poppler_page_free_link_mapping() when done. - * - * Return value: A #GList of #PopplerLinkMapping - **/ -GList * -poppler_page_get_link_mapping (PopplerPage *page) -{ - GList *map_list = NULL; - gint i; - Links *links; - Object obj; - double width, height; - - g_return_val_if_fail (POPPLER_IS_PAGE (page), NULL); - - links = new Links (page->page->getAnnots (&obj), - page->document->doc->getCatalog ()->getBaseURI ()); - obj.free (); - - if (links == NULL) - return NULL; - - poppler_page_get_size (page, &width, &height); - - for (i = 0; i < links->getNumLinks (); i++) - { - PopplerLinkMapping *mapping; - PopplerRectangle rect; - LinkAction *link_action; - Link *link; - - link = links->getLink (i); - link_action = link->getAction (); - - /* Create the mapping */ - mapping = g_new (PopplerLinkMapping, 1); - mapping->action = _poppler_action_new (page->document, link_action, NULL); - - link->getRect (&rect.x1, &rect.y1, &rect.x2, &rect.y2); - - switch (page->page->getRotate ()) - { - case 90: - mapping->area.x1 = rect.y1; - mapping->area.y1 = height - rect.x2; - mapping->area.x2 = mapping->area.x1 + (rect.y2 - rect.y1); - mapping->area.y2 = mapping->area.y1 + (rect.x2 - rect.x1); - - break; - case 180: - mapping->area.x1 = width - rect.x2; - mapping->area.y1 = height - rect.y2; - mapping->area.x2 = mapping->area.x1 + (rect.x2 - rect.x1); - mapping->area.y2 = mapping->area.y1 + (rect.y2 - rect.y1); - - break; - case 270: - mapping->area.x1 = width - rect.y2; - mapping->area.y1 = rect.x1; - mapping->area.x2 = mapping->area.x1 + (rect.y2 - rect.y1); - mapping->area.y2 = mapping->area.y1 + (rect.x2 - rect.x1); - - break; - default: - mapping->area.x1 = rect.x1; - mapping->area.y1 = rect.y1; - mapping->area.x2 = rect.x2; - mapping->area.y2 = rect.y2; - } - - mapping->area.x1 -= page->page->getCropBox()->x1; - mapping->area.x2 -= page->page->getCropBox()->x1; - mapping->area.y1 -= page->page->getCropBox()->y1; - mapping->area.y2 -= page->page->getCropBox()->y1; - - map_list = g_list_prepend (map_list, mapping); - } - - delete links; - - return map_list; -} - -static void -poppler_mapping_free (PopplerLinkMapping *mapping) -{ - poppler_action_free (mapping->action); - g_free (mapping); -} - -/** - * poppler_page_free_link_mapping: - * @list: A list of #PopplerLinkMapping<!-- -->s - * - * Frees a list of #PopplerLinkMapping<!-- -->s allocated by - * poppler_page_get_link_mapping(). It also frees the #PopplerAction<!-- -->s - * that each mapping contains, so if you want to keep them around, you need to - * copy them with poppler_action_copy(). - **/ -void -poppler_page_free_link_mapping (GList *list) -{ - if (list == NULL) - return; - - g_list_foreach (list, (GFunc) (poppler_mapping_free), NULL); - g_list_free (list); -} - -/** - * poppler_page_get_form_field_mapping: - * @page: A #PopplerPage - * - * Returns a list of #PopplerFormFieldMapping items that map from a - * location on @page to a form field. This list must be freed - * with poppler_page_free_form_field_mapping() when done. - * - * Return value: A #GList of #PopplerFormFieldMapping - **/ -GList * -poppler_page_get_form_field_mapping (PopplerPage *page) -{ - GList *map_list = NULL; - FormPageWidgets *forms; - gint i; - - g_return_val_if_fail (POPPLER_IS_PAGE (page), NULL); - - forms = page->page->getPageWidgets (); - if (forms == NULL) - return NULL; - - for (i = 0; i < forms->getNumWidgets (); i++) { - PopplerFormFieldMapping *mapping; - FormWidget *field; - - mapping = poppler_form_field_mapping_new (); - - field = forms->getWidget (i); - - mapping->field = _poppler_form_field_new (page->document, field); - field->getRect (&(mapping->area.x1), &(mapping->area.y1), - &(mapping->area.x2), &(mapping->area.y2)); - - mapping->area.x1 -= page->page->getCropBox()->x1; - mapping->area.x2 -= page->page->getCropBox()->x1; - mapping->area.y1 -= page->page->getCropBox()->y1; - mapping->area.y2 -= page->page->getCropBox()->y1; - - map_list = g_list_prepend (map_list, mapping); - } - - return map_list; -} - -/** - * poppler_page_free_form_field_mapping: - * @list: A list of #PopplerFormFieldMapping<!-- -->s - * - * Frees a list of #PopplerFormFieldMapping<!-- -->s allocated by - * poppler_page_get_form_field_mapping(). - **/ -void -poppler_page_free_form_field_mapping (GList *list) -{ - if (list == NULL) - return; - - g_list_foreach (list, (GFunc) poppler_form_field_mapping_free, NULL); - g_list_free (list); -} - -/** - * poppler_page_get_annot_mapping: - * @page: A #PopplerPage - * - * Returns a list of #PopplerAnnotMapping items that map from a location on - * @page to a #PopplerAnnot. This list must be freed with - * poppler_page_free_annot_mapping() when done. - * - * Return value: A #GList of #PopplerAnnotMapping - **/ -GList * -poppler_page_get_annot_mapping (PopplerPage *page) -{ - GList *map_list = NULL; - double width, height; - gint i; - - g_return_val_if_fail (POPPLER_IS_PAGE (page), NULL); - - if (!page->annots) - page->annots = page->page->getAnnots (page->document->doc->getCatalog ()); - - if (!page->annots) - return NULL; - - poppler_page_get_size (page, &width, &height); - - for (i = 0; i < page->annots->getNumAnnots (); i++) { - PopplerAnnotMapping *mapping; - PopplerRectangle rect; - Annot *annot; - PDFRectangle *annot_rect; - gint rotation = 0; - - annot = page->annots->getAnnot (i); - - /* Create the mapping */ - mapping = poppler_annot_mapping_new (); - - switch (annot->getType ()) - { - case Annot::typeText: - mapping->annot = _poppler_annot_text_new (annot); - break; - case Annot::typeFreeText: - mapping->annot = _poppler_annot_free_text_new (annot); - break; - default: - mapping->annot = _poppler_annot_new (annot); - break; - } - - annot_rect = annot->getRect (); - rect.x1 = annot_rect->x1; - rect.y1 = annot_rect->y1; - rect.x2 = annot_rect->x2; - rect.y2 = annot_rect->y2; - - if (! (annot->getFlags () & Annot::flagNoRotate)) - rotation = page->page->getRotate (); - - switch (rotation) - { - case 90: - mapping->area.x1 = rect.y1; - mapping->area.y1 = height - rect.x2; - mapping->area.x2 = mapping->area.x1 + (rect.y2 - rect.y1); - mapping->area.y2 = mapping->area.y1 + (rect.x2 - rect.x1); - break; - case 180: - mapping->area.x1 = width - rect.x2; - mapping->area.y1 = height - rect.y2; - mapping->area.x2 = mapping->area.x1 + (rect.x2 - rect.x1); - mapping->area.y2 = mapping->area.y1 + (rect.y2 - rect.y1); - break; - case 270: - mapping->area.x1 = width - rect.y2; - mapping->area.y1 = rect.x1; - mapping->area.x2 = mapping->area.x1 + (rect.y2 - rect.y1); - mapping->area.y2 = mapping->area.y1 + (rect.x2 - rect.x1); - break; - default: - mapping->area.x1 = rect.x1; - mapping->area.y1 = rect.y1; - mapping->area.x2 = rect.x2; - mapping->area.y2 = rect.y2; - } - - mapping->area.x1 -= page->page->getCropBox()->x1; - mapping->area.x2 -= page->page->getCropBox()->x1; - mapping->area.y1 -= page->page->getCropBox()->y1; - mapping->area.y2 -= page->page->getCropBox()->y1; - - map_list = g_list_prepend (map_list, mapping); - } - - return g_list_reverse (map_list); -} - -/** - * poppler_page_free_annot_mapping: - * @list: A list of #PopplerAnnotMapping<!-- -->s - * - * Frees a list of #PopplerAnnotMapping<!-- -->s allocated by - * poppler_page_get_annot_mapping(). It also frees the #PopplerAnnot<!-- -->s - * that each mapping contains, so if you want to keep them around, you need to - * copy them with poppler_annot_copy(). - **/ -void -poppler_page_free_annot_mapping (GList *list) -{ - if (!list) - return; - - g_list_foreach (list, (GFunc)poppler_annot_mapping_free, NULL); - g_list_free (list); -} - -/* PopplerRectangle type */ - -POPPLER_DEFINE_BOXED_TYPE (PopplerRectangle, poppler_rectangle, - poppler_rectangle_copy, - poppler_rectangle_free) - -PopplerRectangle * -poppler_rectangle_new (void) -{ - return g_new0 (PopplerRectangle, 1); -} - -PopplerRectangle * -poppler_rectangle_copy (PopplerRectangle *rectangle) -{ - PopplerRectangle *new_rectangle; - - g_return_val_if_fail (rectangle != NULL, NULL); - - new_rectangle = g_new (PopplerRectangle, 1); - *new_rectangle = *rectangle; - - return new_rectangle; -} - -void -poppler_rectangle_free (PopplerRectangle *rectangle) -{ - g_free (rectangle); -} - -/* PopplerColor type */ -POPPLER_DEFINE_BOXED_TYPE (PopplerColor, poppler_color, poppler_color_copy, poppler_color_free) - -PopplerColor * -poppler_color_new (void) -{ - return (PopplerColor *) g_new0 (PopplerColor, 1); -} - -PopplerColor * -poppler_color_copy (PopplerColor *color) -{ - PopplerColor *new_color; - - new_color = g_new (PopplerColor, 1); - *new_color = *color; - - return new_color; -} - -void -poppler_color_free (PopplerColor *color) -{ - g_free (color); -} - -/* PopplerLinkMapping type */ -POPPLER_DEFINE_BOXED_TYPE (PopplerLinkMapping, poppler_link_mapping, - poppler_link_mapping_copy, - poppler_link_mapping_free) - -PopplerLinkMapping * -poppler_link_mapping_new (void) -{ - return (PopplerLinkMapping *) g_new0 (PopplerLinkMapping, 1); -} - -PopplerLinkMapping * -poppler_link_mapping_copy (PopplerLinkMapping *mapping) -{ - PopplerLinkMapping *new_mapping; - - new_mapping = poppler_link_mapping_new (); - - *new_mapping = *mapping; - if (new_mapping->action) - new_mapping->action = poppler_action_copy (new_mapping->action); - - return new_mapping; -} - -void -poppler_link_mapping_free (PopplerLinkMapping *mapping) -{ - if (mapping->action) - poppler_action_free (mapping->action); - - g_free (mapping); -} - -/* Poppler Image mapping type */ -POPPLER_DEFINE_BOXED_TYPE (PopplerImageMapping, poppler_image_mapping, - poppler_image_mapping_copy, - poppler_image_mapping_free) - -PopplerImageMapping * -poppler_image_mapping_new (void) -{ - return (PopplerImageMapping *) g_new0 (PopplerImageMapping, 1); -} - -PopplerImageMapping * -poppler_image_mapping_copy (PopplerImageMapping *mapping) -{ - PopplerImageMapping *new_mapping; - - new_mapping = poppler_image_mapping_new (); - - *new_mapping = *mapping; - - return new_mapping; -} - -void -poppler_image_mapping_free (PopplerImageMapping *mapping) -{ - g_free (mapping); -} - -/* Page Transition */ -POPPLER_DEFINE_BOXED_TYPE (PopplerPageTransition, poppler_page_transition, - poppler_page_transition_copy, - poppler_page_transition_free) - -PopplerPageTransition * -poppler_page_transition_new (void) -{ - return (PopplerPageTransition *) g_new0 (PopplerPageTransition, 1); -} - -PopplerPageTransition * -poppler_page_transition_copy (PopplerPageTransition *transition) -{ - PopplerPageTransition *new_transition; - - new_transition = poppler_page_transition_new (); - *new_transition = *transition; - - return new_transition; -} - -void -poppler_page_transition_free (PopplerPageTransition *transition) -{ - g_free (transition); -} - -/* Form Field Mapping Type */ -POPPLER_DEFINE_BOXED_TYPE (PopplerFormFieldMapping, poppler_form_field_mapping, - poppler_form_field_mapping_copy, - poppler_form_field_mapping_free) - -PopplerFormFieldMapping * -poppler_form_field_mapping_new (void) -{ - return (PopplerFormFieldMapping *) g_new0 (PopplerFormFieldMapping, 1); -} - -PopplerFormFieldMapping * -poppler_form_field_mapping_copy (PopplerFormFieldMapping *mapping) -{ - PopplerFormFieldMapping *new_mapping; - - new_mapping = poppler_form_field_mapping_new (); - *new_mapping = *mapping; - - if (mapping->field) - new_mapping->field = (PopplerFormField *)g_object_ref (mapping->field); - - return new_mapping; -} - -void -poppler_form_field_mapping_free (PopplerFormFieldMapping *mapping) -{ - if (!mapping) - return; - - if (mapping->field) - g_object_unref (mapping->field); - - g_free (mapping); -} - -/* PopplerAnnot Mapping Type */ -POPPLER_DEFINE_BOXED_TYPE (PopplerAnnotMapping, poppler_annot_mapping, - poppler_annot_mapping_copy, - poppler_annot_mapping_free) - -PopplerAnnotMapping * -poppler_annot_mapping_new (void) -{ - return (PopplerAnnotMapping *) g_new0 (PopplerAnnotMapping, 1); -} - -PopplerAnnotMapping * -poppler_annot_mapping_copy (PopplerAnnotMapping *mapping) -{ - PopplerAnnotMapping *new_mapping; - - new_mapping = poppler_annot_mapping_new (); - - *new_mapping = *mapping; - if (mapping->annot) - new_mapping->annot = (PopplerAnnot *) g_object_ref (mapping->annot); - - return new_mapping; -} - -void -poppler_annot_mapping_free (PopplerAnnotMapping *mapping) -{ - if (!mapping) - return; - - if (mapping->annot) - g_object_unref (mapping->annot); - - g_free (mapping); -} - -void -poppler_page_get_crop_box (PopplerPage *page, PopplerRectangle *rect) -{ - PDFRectangle* cropBox = page->page->getCropBox (); - - rect->x1 = cropBox->x1; - rect->x2 = cropBox->x2; - rect->y1 = cropBox->y1; - rect->y2 = cropBox->y2; -} - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-page.h b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-page.h deleted file mode 100644 index 93510484e6c..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-page.h +++ /dev/null @@ -1,227 +0,0 @@ -/* poppler-page.h: glib interface to poppler - * Copyright (C) 2004, Red Hat, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __POPPLER_PAGE_H__ -#define __POPPLER_PAGE_H__ - -#include <glib-object.h> - -#include "poppler.h" - -#ifdef POPPLER_WITH_GDK -#include <gdk/gdk.h> -#include <gdk-pixbuf/gdk-pixbuf.h> -#endif - -#ifdef POPPLER_HAS_CAIRO -#include <cairo.h> -#endif - -G_BEGIN_DECLS - -#define POPPLER_TYPE_PAGE (poppler_page_get_type ()) -#define POPPLER_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_PAGE, PopplerPage)) -#define POPPLER_IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_PAGE)) - - -GType poppler_page_get_type (void) G_GNUC_CONST; - -#ifdef POPPLER_WITH_GDK -void poppler_page_render_to_pixbuf (PopplerPage *page, - int src_x, - int src_y, - int src_width, - int src_height, - double scale, - int rotation, - GdkPixbuf *pixbuf); -void poppler_page_render_to_pixbuf_for_printing (PopplerPage *page, - int src_x, - int src_y, - int src_width, - int src_height, - double scale, - int rotation, - GdkPixbuf *pixbuf); -GdkPixbuf *poppler_page_get_thumbnail_pixbuf (PopplerPage *page); -void poppler_page_render_selection_to_pixbuf ( - PopplerPage *page, - gdouble scale, - int rotation, - GdkPixbuf *pixbuf, - PopplerRectangle *selection, - PopplerRectangle *old_selection, - PopplerSelectionStyle style, - GdkColor *glyph_color, - GdkColor *background_color); -#endif /* POPPLER_WITH_GDK */ - -#ifdef POPPLER_HAS_CAIRO -void poppler_page_render (PopplerPage *page, - cairo_t *cairo); -void poppler_page_render_for_printing (PopplerPage *page, - cairo_t *cairo); -cairo_surface_t *poppler_page_get_thumbnail (PopplerPage *page); -void poppler_page_render_selection (PopplerPage *page, - cairo_t *cairo, - PopplerRectangle *selection, - PopplerRectangle *old_selection, - PopplerSelectionStyle style, - PopplerColor *glyph_color, - PopplerColor *background_color); -#endif /* POPPLER_HAS_CAIRO */ - -void poppler_page_get_size (PopplerPage *page, - double *width, - double *height); -int poppler_page_get_index (PopplerPage *page); -double poppler_page_get_duration (PopplerPage *page); -PopplerPageTransition *poppler_page_get_transition (PopplerPage *page); -gboolean poppler_page_get_thumbnail_size (PopplerPage *page, - int *width, - int *height); -GList *poppler_page_find_text (PopplerPage *page, - const char *text); -void poppler_page_render_to_ps (PopplerPage *page, - PopplerPSFile *ps_file); -char *poppler_page_get_text (PopplerPage *page, - PopplerSelectionStyle style, - PopplerRectangle *rect); -GList *poppler_page_get_selection_region (PopplerPage *page, - gdouble scale, - PopplerSelectionStyle style, - PopplerRectangle *selection); -void poppler_page_selection_region_free(GList *region); -GList *poppler_page_get_link_mapping (PopplerPage *page); -void poppler_page_free_link_mapping (GList *list); -GList *poppler_page_get_image_mapping (PopplerPage *page); -void poppler_page_free_image_mapping (GList *list); -#ifdef POPPLER_HAS_CAIRO -cairo_surface_t *poppler_page_get_image (PopplerPage *page, - gint image_id); -#endif /* POPPLER_HAS_CAIRO */ -GList *poppler_page_get_form_field_mapping (PopplerPage *page); -void poppler_page_free_form_field_mapping (GList *list); -GList *poppler_page_get_annot_mapping (PopplerPage *page); -void poppler_page_free_annot_mapping (GList *list); -void poppler_page_get_crop_box (PopplerPage *page, - PopplerRectangle *rect); - - -/* A rectangle on a page, with coordinates in PDF points. */ -#define POPPLER_TYPE_RECTANGLE (poppler_rectangle_get_type ()) -struct _PopplerRectangle -{ - gdouble x1; - gdouble y1; - gdouble x2; - gdouble y2; -}; - -GType poppler_rectangle_get_type (void) G_GNUC_CONST; -PopplerRectangle *poppler_rectangle_new (void); -PopplerRectangle *poppler_rectangle_copy (PopplerRectangle *rectangle); -void poppler_rectangle_free (PopplerRectangle *rectangle); - -/* A color in RGB */ -#define POPPLER_TYPE_COLOR (poppler_color_get_type ()) -struct _PopplerColor -{ - guint16 red; - guint16 green; - guint16 blue; -}; - -GType poppler_color_get_type (void) G_GNUC_CONST; -PopplerColor *poppler_color_new (void); -PopplerColor *poppler_color_copy (PopplerColor *color); -void poppler_color_free (PopplerColor *color); - -/* Mapping between areas on the current page and PopplerActions */ -#define POPPLER_TYPE_LINK_MAPPING (poppler_link_mapping_get_type ()) -struct _PopplerLinkMapping -{ - PopplerRectangle area; - PopplerAction *action; -}; - -GType poppler_link_mapping_get_type (void) G_GNUC_CONST; -PopplerLinkMapping *poppler_link_mapping_new (void); -PopplerLinkMapping *poppler_link_mapping_copy (PopplerLinkMapping *mapping); -void poppler_link_mapping_free (PopplerLinkMapping *mapping); - -/* Page Transition */ -#define POPPLER_TYPE_PAGE_TRANSITION (poppler_page_transition_get_type ()) -struct _PopplerPageTransition -{ - PopplerPageTransitionType type; - PopplerPageTransitionAlignment alignment; - PopplerPageTransitionDirection direction; - gint duration; - gint angle; - gdouble scale; - gboolean rectangular; -}; - -GType poppler_page_transition_get_type (void) G_GNUC_CONST; -PopplerPageTransition *poppler_page_transition_new (void); -PopplerPageTransition *poppler_page_transition_copy (PopplerPageTransition *transition); -void poppler_page_transition_free (PopplerPageTransition *transition); - -/* Mapping between areas on the current page and images */ -#define POPPLER_TYPE_IMAGE_MAPPING (poppler_image_mapping_get_type ()) -struct _PopplerImageMapping -{ - PopplerRectangle area; - gint image_id; -}; - -GType poppler_image_mapping_get_type (void) G_GNUC_CONST; -PopplerImageMapping *poppler_image_mapping_new (void); -PopplerImageMapping *poppler_image_mapping_copy (PopplerImageMapping *mapping); -void poppler_image_mapping_free (PopplerImageMapping *mapping); - -/* Mapping between areas on the current page and form fields */ -#define POPPLER_TYPE_FORM_FIELD_MAPPING (poppler_form_field_mapping_get_type ()) -struct _PopplerFormFieldMapping -{ - PopplerRectangle area; - PopplerFormField *field; -}; - -GType poppler_form_field_mapping_get_type (void) G_GNUC_CONST; -PopplerFormFieldMapping *poppler_form_field_mapping_new (void); -PopplerFormFieldMapping *poppler_form_field_mapping_copy (PopplerFormFieldMapping *mapping); -void poppler_form_field_mapping_free (PopplerFormFieldMapping *mapping); - -/* Mapping between areas on the current page and annots */ -#define POPPLER_TYPE_ANNOT_MAPPING (poppler_annot_mapping_get_type ()) -struct _PopplerAnnotMapping -{ - PopplerRectangle area; - PopplerAnnot *annot; -}; - -GType poppler_annot_mapping_get_type (void) G_GNUC_CONST; -PopplerAnnotMapping *poppler_annot_mapping_new (void); -PopplerAnnotMapping *poppler_annot_mapping_copy (PopplerAnnotMapping *mapping); -void poppler_annot_mapping_free (PopplerAnnotMapping *mapping); - -G_END_DECLS - -#endif /* __POPPLER_PAGE_H__ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-private.h b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-private.h deleted file mode 100644 index e8ace142671..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler-private.h +++ /dev/null @@ -1,135 +0,0 @@ -#ifndef __POPPLER_PRIVATE_H__ -#define __POPPLER_PRIVATE_H__ - -#include <config.h> -#include <PDFDoc.h> -#include <PSOutputDev.h> -#include <Link.h> -#include <Form.h> -#include <Gfx.h> -#include <FontInfo.h> -#include <TextOutputDev.h> -#include <Catalog.h> -#include <OptionalContent.h> - -#if defined (HAVE_CAIRO) -#include <CairoOutputDev.h> -#elif defined (HAVE_SPLASH) -#include <SplashOutputDev.h> -#endif - -struct _PopplerDocument -{ - GObject parent_instance; - PDFDoc *doc; - - GList *layers; - GList *layers_rbgroups; -#if defined (HAVE_CAIRO) - CairoOutputDev *output_dev; -#elif defined (HAVE_SPLASH) - SplashOutputDev *output_dev; -#endif -}; - -struct _PopplerPSFile -{ - GObject parent_instance; - - PopplerDocument *document; - PSOutputDev *out; - char *filename; - int first_page; - int last_page; - double paper_width; - double paper_height; - gboolean duplex; -}; - -struct _PopplerFontInfo -{ - GObject parent_instance; - PopplerDocument *document; - FontInfoScanner *scanner; -}; - -struct _PopplerPage -{ - GObject parent_instance; - PopplerDocument *document; - Page *page; - int index; -#if defined (HAVE_CAIRO) - TextPage *text; -#else - TextOutputDev *text_dev; - Gfx *gfx; -#endif - Annots *annots; -}; - -struct _PopplerFormField -{ - GObject parent_instance; - PopplerDocument *document; - FormWidget *widget; -}; - -typedef struct _Layer { - GList *kids; - gchar *label; - OptionalContentGroup *oc; -} Layer; - -struct _PopplerLayer -{ - GObject parent_instance; - PopplerDocument *document; - Layer *layer; - GList *rbgroup; - gchar *title; -}; - -PopplerPage *_poppler_page_new (PopplerDocument *document, - Page *page, - int index); -PopplerAction *_poppler_action_new (PopplerDocument *document, - LinkAction *link, - const gchar *title); -PopplerLayer *_poppler_layer_new (PopplerDocument *document, - Layer *layer, - GList *rbgroup); -PopplerDest *_poppler_dest_new_goto (PopplerDocument *document, - LinkDest *link_dest); -PopplerFormField *_poppler_form_field_new (PopplerDocument *document, - FormWidget *field); -PopplerAttachment *_poppler_attachment_new (PopplerDocument *document, - EmbFile *file); -PopplerAnnot *_poppler_annot_new (Annot *annot); -PopplerAnnot *_poppler_annot_text_new (Annot *annot); -PopplerAnnot *_poppler_annot_free_text_new (Annot *annot); - -char *_poppler_goo_string_to_utf8(GooString *s); -gboolean _poppler_convert_pdf_date_to_gtime (GooString *date, - time_t *gdate); - -/* - * A convenience macro for boxed type implementations, which defines a - * type_name_get_type() function registering the boxed type. - */ -#define POPPLER_DEFINE_BOXED_TYPE(TypeName, type_name, copy_func, free_func) \ -GType \ -type_name##_get_type (void) \ -{ \ - static volatile gsize g_define_type_id__volatile = 0; \ - if (g_once_init_enter (&g_define_type_id__volatile)) { \ - GType g_define_type_id = \ - g_boxed_type_register_static (g_intern_static_string (#TypeName), \ - (GBoxedCopyFunc) copy_func, \ - (GBoxedFreeFunc) free_func); \ - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); \ - } \ - return g_define_type_id__volatile; \ -} - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler.cc b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler.cc deleted file mode 100644 index 3c1d503e22f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler.cc +++ /dev/null @@ -1,64 +0,0 @@ -/* poppler.cc: glib wrapper for poppler - * Copyright (C) 2005, Red Hat, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <config.h> -#include "poppler.h" - -GQuark poppler_error_quark (void) -{ - static GQuark q = 0; - - if (q == 0) - q = g_quark_from_static_string ("poppler-quark"); - - return q; -} - -/** - * poppler_get_backend: - * - * Returns the backend compiled into the poppler library. - * - * Return value: The backend used by poppler - **/ -PopplerBackend -poppler_get_backend (void) -{ -#if defined (HAVE_CAIRO) - return POPPLER_BACKEND_CAIRO; -#elif defined (HAVE_SPLASH) - return POPPLER_BACKEND_SPLASH; -#else - return POPPLER_BACKEND_UNKNOWN; -#endif -} - -static const char poppler_version[] = PACKAGE_VERSION; - -/** - * poppler_get_version: - * - * Returns the version of poppler in use. This result is not to be freed. - * - * Return value: the version of poppler. - **/ -const char * -poppler_get_version (void) -{ - return poppler_version; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler.h b/Build/source/libs/poppler/poppler-0.12.4/glib/poppler.h deleted file mode 100644 index b1a77307d9f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/poppler.h +++ /dev/null @@ -1,130 +0,0 @@ -/* poppler.h: glib interface to poppler - * Copyright (C) 2004, Red Hat, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __POPPLER_GLIB_H__ -#define __POPPLER_GLIB_H__ - -#include <glib-object.h> - -G_BEGIN_DECLS - -GQuark poppler_error_quark (void); - -#define POPPLER_ERROR poppler_error_quark () - -typedef enum -{ - POPPLER_ERROR_INVALID, - POPPLER_ERROR_ENCRYPTED, - POPPLER_ERROR_OPEN_FILE, - POPPLER_ERROR_BAD_CATALOG, - POPPLER_ERROR_DAMAGED -} PopplerError; - -typedef enum -{ - POPPLER_ORIENTATION_PORTRAIT, - POPPLER_ORIENTATION_LANDSCAPE, - POPPLER_ORIENTATION_UPSIDEDOWN, - POPPLER_ORIENTATION_SEASCAPE -} PopplerOrientation; - -typedef enum -{ - POPPLER_PAGE_TRANSITION_REPLACE, - POPPLER_PAGE_TRANSITION_SPLIT, - POPPLER_PAGE_TRANSITION_BLINDS, - POPPLER_PAGE_TRANSITION_BOX, - POPPLER_PAGE_TRANSITION_WIPE, - POPPLER_PAGE_TRANSITION_DISSOLVE, - POPPLER_PAGE_TRANSITION_GLITTER, - POPPLER_PAGE_TRANSITION_FLY, - POPPLER_PAGE_TRANSITION_PUSH, - POPPLER_PAGE_TRANSITION_COVER, - POPPLER_PAGE_TRANSITION_UNCOVER, - POPPLER_PAGE_TRANSITION_FADE -} PopplerPageTransitionType; - -typedef enum -{ - POPPLER_PAGE_TRANSITION_HORIZONTAL, - POPPLER_PAGE_TRANSITION_VERTICAL -} PopplerPageTransitionAlignment; - -typedef enum -{ - POPPLER_PAGE_TRANSITION_INWARD, - POPPLER_PAGE_TRANSITION_OUTWARD -} PopplerPageTransitionDirection; - -typedef enum -{ - POPPLER_SELECTION_GLYPH, - POPPLER_SELECTION_WORD, - POPPLER_SELECTION_LINE -} PopplerSelectionStyle; - -typedef struct _PopplerDocument PopplerDocument; -typedef struct _PopplerIndexIter PopplerIndexIter; -typedef struct _PopplerFontsIter PopplerFontsIter; -typedef struct _PopplerLayersIter PopplerLayersIter; -typedef struct _PopplerRectangle PopplerRectangle; -typedef struct _PopplerColor PopplerColor; -typedef struct _PopplerLinkMapping PopplerLinkMapping; -typedef struct _PopplerPageTransition PopplerPageTransition; -typedef struct _PopplerImageMapping PopplerImageMapping; -typedef struct _PopplerFormFieldMapping PopplerFormFieldMapping; -typedef struct _PopplerAnnotMapping PopplerAnnotMapping; -typedef struct _PopplerPage PopplerPage; -typedef struct _PopplerFontInfo PopplerFontInfo; -typedef struct _PopplerLayer PopplerLayer; -typedef struct _PopplerPSFile PopplerPSFile; -typedef union _PopplerAction PopplerAction; -typedef struct _PopplerDest PopplerDest; -typedef struct _PopplerFormField PopplerFormField; -typedef struct _PopplerAttachment PopplerAttachment; -typedef struct _PopplerAnnot PopplerAnnot; -typedef struct _PopplerAnnotMarkup PopplerAnnotMarkup; -typedef struct _PopplerAnnotText PopplerAnnotText; -typedef struct _PopplerAnnotFreeText PopplerAnnotFreeText; -typedef struct _PopplerAnnotCalloutLine PopplerAnnotCalloutLine; - -typedef enum -{ - POPPLER_BACKEND_UNKNOWN, - POPPLER_BACKEND_SPLASH, - POPPLER_BACKEND_CAIRO -} PopplerBackend; - -PopplerBackend poppler_get_backend (void); -const char * poppler_get_version (void); - -G_END_DECLS - -#include "poppler-features.h" -#include "poppler-document.h" -#include "poppler-page.h" -#include "poppler-layer.h" -#include "poppler-action.h" -#include "poppler-form-field.h" -#include "poppler-enums.h" -#include "poppler-attachment.h" -#include "poppler-annot.h" -#include "poppler-date.h" - -#endif /* __POPPLER_GLIB_H__ */ diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/Makefile.am b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/Makefile.am deleted file mode 100644 index fc99ed12124..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/Makefile.am +++ /dev/null @@ -1,88 +0,0 @@ -## Process this file with automake to produce Makefile.in - -# We require automake 1.6 at least. -AUTOMAKE_OPTIONS = 1.6 - -# This is a blank Makefile.am for using gtk-doc. -# Copy this to your project's API docs directory and modify the variables to -# suit your project. See the GTK+ Makefiles in gtk+/docs/reference for examples -# of using the various options. - -# The name of the module, e.g. 'glib'. -DOC_MODULE=poppler - -# The top-level SGML file. You can change this if you want to. -DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml - -# The directory containing the source code. Relative to $(srcdir). -# gtk-doc will search all .c & .h files beneath here for inline comments -# documenting the functions and macros. -# e.g. DOC_SOURCE_DIR=../../../gtk -DOC_SOURCE_DIR=.. - -# Extra options to pass to gtkdoc-scangobj. Not normally needed. -SCANGOBJ_OPTIONS= - -# Extra options to supply to gtkdoc-scan. -# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED" -SCAN_OPTIONS= - -# Extra options to supply to gtkdoc-mkdb. -# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml -MKDB_OPTIONS=--sgml-mode --output-format=xml --source-suffixes=c,cc,h - -# Extra options to supply to gtkdoc-mktmpl -# e.g. MKTMPL_OPTIONS=--only-section-tmpl -MKTMPL_OPTIONS= - -# Extra options to supply to gtkdoc-fixref. Not normally needed. -# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html -FIXXREF_OPTIONS= - -# Used for dependencies. The docs will be rebuilt if any of these change. -# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h -# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c -HFILE_GLOB=$(top_srcdir)/glib/*.h -CFILE_GLOB=$(top_srcdir)/glib/*.cc - -# Header files to ignore when scanning. -# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h -IGNORE_HFILES= - -# Images to copy into HTML directory. -# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png -HTML_IMAGES= - -# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE). -# e.g. content_files=running.sgml building.sgml changes-2.0.sgml -content_files= - -# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded -# These files must be listed here *and* in content_files -# e.g. expand_content_files=running.sgml -expand_content_files= - -# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library. -# Only needed if you are using gtkdoc-scangobj to dynamically query widget -# signals and properties. -# e.g. INCLUDES=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS) -# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib) -INCLUDES=-I$(top_srcdir)/glib -I$(top_builddir)/glib \ - $(CAIRO_CFLAGS) \ - $(POPPLER_GLIB_CFLAGS) \ - $(GDK_CFLAGS) \ - $(FREETYPE_CFLAGS) - -GTKDOC_LIBS=$(top_builddir)/poppler/libpoppler.la \ - $(top_builddir)/glib/libpoppler-glib.la \ - $(POPPLER_GLIB_LIBS) \ - $(FREETYPE_LIBS) \ - $(cairo_libs) - - -# This includes the standard gtk-doc make rules, copied by gtkdocize. -include $(top_srcdir)/gtk-doc.make - -# Other files to distribute -# e.g. EXTRA_DIST += version.xml.in -EXTRA_DIST += diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/Makefile.in b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/Makefile.in deleted file mode 100644 index 55ce141742e..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/Makefile.in +++ /dev/null @@ -1,698 +0,0 @@ -# Makefile.in generated by automake 1.11 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# -*- mode: makefile -*- - -#################################### -# Everything below here is generic # -#################################### -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(top_srcdir)/gtk-doc.make -subdir = glib/reference -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ - $(top_srcdir)/m4/define-dir.m4 $(top_srcdir)/m4/gtk-doc.m4 \ - $(top_srcdir)/m4/libjpeg.m4 $(top_srcdir)/m4/libpng.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/qt.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h \ - $(top_builddir)/poppler/poppler-config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ABIWORD_CFLAGS = @ABIWORD_CFLAGS@ -ABIWORD_LIBS = @ABIWORD_LIBS@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAIRO_CFLAGS = @CAIRO_CFLAGS@ -CAIRO_FEATURE = @CAIRO_FEATURE@ -CAIRO_LIBS = @CAIRO_LIBS@ -CAIRO_REQ = @CAIRO_REQ@ -CAIRO_VERSION = @CAIRO_VERSION@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ -FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ -FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ -FREETYPE_CONFIG = @FREETYPE_CONFIG@ -FREETYPE_LIBS = @FREETYPE_LIBS@ -GDK_CFLAGS = @GDK_CFLAGS@ -GDK_FEATURE = @GDK_FEATURE@ -GDK_LIBS = @GDK_LIBS@ -GLIB_MKENUMS = @GLIB_MKENUMS@ -GREP = @GREP@ -GTKDOC_CHECK = @GTKDOC_CHECK@ -GTK_TEST_CFLAGS = @GTK_TEST_CFLAGS@ -GTK_TEST_LIBS = @GTK_TEST_LIBS@ -HTML_DIR = @HTML_DIR@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LCMS_CFLAGS = @LCMS_CFLAGS@ -LCMS_LIBS = @LCMS_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBJPEG_LIBS = @LIBJPEG_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOPENJPEG_LIBS = @LIBOPENJPEG_LIBS@ -LIBPNG_LIBS = @LIBPNG_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -MOCQT4 = @MOCQT4@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PC_REQUIRES = @PC_REQUIRES@ -PC_REQUIRES_PRIVATE = @PC_REQUIRES_PRIVATE@ -PKG_CONFIG = @PKG_CONFIG@ -POPPLER_DATADIR = @POPPLER_DATADIR@ -POPPLER_GLIB_CFLAGS = @POPPLER_GLIB_CFLAGS@ -POPPLER_GLIB_DISABLE_DEPRECATED = @POPPLER_GLIB_DISABLE_DEPRECATED@ -POPPLER_GLIB_DISABLE_SINGLE_INCLUDES = @POPPLER_GLIB_DISABLE_SINGLE_INCLUDES@ -POPPLER_GLIB_LIBS = @POPPLER_GLIB_LIBS@ -POPPLER_MAJOR_VERSION = @POPPLER_MAJOR_VERSION@ -POPPLER_MICRO_VERSION = @POPPLER_MICRO_VERSION@ -POPPLER_MINOR_VERSION = @POPPLER_MINOR_VERSION@ -POPPLER_QT4_CFLAGS = @POPPLER_QT4_CFLAGS@ -POPPLER_QT4_CXXFLAGS = @POPPLER_QT4_CXXFLAGS@ -POPPLER_QT4_LIBS = @POPPLER_QT4_LIBS@ -POPPLER_QT4_TEST_CFLAGS = @POPPLER_QT4_TEST_CFLAGS@ -POPPLER_QT4_TEST_LIBS = @POPPLER_QT4_TEST_LIBS@ -POPPLER_QT_CXXFLAGS = @POPPLER_QT_CXXFLAGS@ -POPPLER_QT_LIBS = @POPPLER_QT_LIBS@ -PTHREAD_CC = @PTHREAD_CC@ -PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ -PTHREAD_LIBS = @PTHREAD_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZLIB_LIBS = @ZLIB_LIBS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -acx_pthread_config = @acx_pthread_config@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -auto_import_flags = @auto_import_flags@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -create_shared_lib = @create_shared_lib@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -win32_libs = @win32_libs@ - -# We require automake 1.6 at least. -AUTOMAKE_OPTIONS = 1.6 - -# This is a blank Makefile.am for using gtk-doc. -# Copy this to your project's API docs directory and modify the variables to -# suit your project. See the GTK+ Makefiles in gtk+/docs/reference for examples -# of using the various options. - -# The name of the module, e.g. 'glib'. -DOC_MODULE = poppler - -# The top-level SGML file. You can change this if you want to. -DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.sgml - -# The directory containing the source code. Relative to $(srcdir). -# gtk-doc will search all .c & .h files beneath here for inline comments -# documenting the functions and macros. -# e.g. DOC_SOURCE_DIR=../../../gtk -DOC_SOURCE_DIR = .. - -# Extra options to pass to gtkdoc-scangobj. Not normally needed. -SCANGOBJ_OPTIONS = - -# Extra options to supply to gtkdoc-scan. -# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED" -SCAN_OPTIONS = - -# Extra options to supply to gtkdoc-mkdb. -# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml -MKDB_OPTIONS = --sgml-mode --output-format=xml --source-suffixes=c,cc,h - -# Extra options to supply to gtkdoc-mktmpl -# e.g. MKTMPL_OPTIONS=--only-section-tmpl -MKTMPL_OPTIONS = - -# Extra options to supply to gtkdoc-fixref. Not normally needed. -# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html -FIXXREF_OPTIONS = - -# Used for dependencies. The docs will be rebuilt if any of these change. -# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h -# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c -HFILE_GLOB = $(top_srcdir)/glib/*.h -CFILE_GLOB = $(top_srcdir)/glib/*.cc - -# Header files to ignore when scanning. -# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h -IGNORE_HFILES = - -# Images to copy into HTML directory. -# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png -HTML_IMAGES = - -# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE). -# e.g. content_files=running.sgml building.sgml changes-2.0.sgml -content_files = - -# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded -# These files must be listed here *and* in content_files -# e.g. expand_content_files=running.sgml -expand_content_files = - -# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library. -# Only needed if you are using gtkdoc-scangobj to dynamically query widget -# signals and properties. -# e.g. INCLUDES=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS) -# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib) -INCLUDES = -I$(top_srcdir)/glib -I$(top_builddir)/glib \ - $(CAIRO_CFLAGS) \ - $(POPPLER_GLIB_CFLAGS) \ - $(GDK_CFLAGS) \ - $(FREETYPE_CFLAGS) - -GTKDOC_LIBS = $(top_builddir)/poppler/libpoppler.la \ - $(top_builddir)/glib/libpoppler-glib.la \ - $(POPPLER_GLIB_LIBS) \ - $(FREETYPE_LIBS) \ - $(cairo_libs) - -@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_CC = $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_CC = $(LIBTOOL) --mode=compile $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_LD = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_LD = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_RUN = sh -c -@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_RUN = $(LIBTOOL) --mode=execute - -# We set GPATH here; this gives us semantics for GNU make -# which are more like other make's VPATH, when it comes to -# whether a source that is a target of one rule is then -# searched for in VPATH/GPATH. -# -GPATH = $(srcdir) -TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE) - -# This includes the standard gtk-doc make rules, copied by gtkdocize. - -# Other files to distribute -# e.g. EXTRA_DIST += version.xml.in -EXTRA_DIST = $(content_files) $(HTML_IMAGES) $(DOC_MAIN_SGML_FILE) \ - $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt -DOC_STAMPS = scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \ - $(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp - -SCANOBJ_FILES = \ - $(DOC_MODULE).args \ - $(DOC_MODULE).hierarchy \ - $(DOC_MODULE).interfaces \ - $(DOC_MODULE).prerequisites \ - $(DOC_MODULE).signals - -REPORT_FILES = \ - $(DOC_MODULE)-undocumented.txt \ - $(DOC_MODULE)-undeclared.txt \ - $(DOC_MODULE)-unused.txt - -CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/gtk-doc.make $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign glib/reference/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign glib/reference/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$(top_distdir)" distdir="$(distdir)" \ - dist-hook -check-am: all-am -check: check-am -all-am: Makefile all-local -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-local mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-local - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-data-local - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic \ - maintainer-clean-local - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-local - -.MAKE: install-am install-strip - -.PHONY: all all-am all-local check check-am clean clean-generic \ - clean-libtool clean-local dist-hook distclean \ - distclean-generic distclean-libtool distclean-local distdir \ - dvi dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-data-local install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic \ - maintainer-clean-local mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-local - - -@ENABLE_GTK_DOC_TRUE@all-local: html-build.stamp -@ENABLE_GTK_DOC_FALSE@all-local: - -docs: html-build.stamp - -$(REPORT_FILES): sgml-build.stamp - -#### scan #### - -scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB) - @echo 'gtk-doc: Scanning header files' - @-chmod -R u+w $(srcdir) - cd $(srcdir) && \ - gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="$(IGNORE_HFILES)" $(SCAN_OPTIONS) $(EXTRA_HFILES) - if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null 2>&1 ; then \ - CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \ - else \ - cd $(srcdir) ; \ - for i in $(SCANOBJ_FILES) ; do \ - test -f $$i || touch $$i ; \ - done \ - fi - touch scan-build.stamp - -$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp - @true - -#### templates #### - -tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt - @echo 'gtk-doc: Rebuilding template files' - @-chmod -R u+w $(srcdir) - cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS) - touch tmpl-build.stamp - -tmpl.stamp: tmpl-build.stamp - @true - -tmpl/*.sgml: - @true - -#### xml #### - -sgml-build.stamp: tmpl.stamp $(HFILE_GLOB) $(CFILE_GLOB) $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files) - @echo 'gtk-doc: Building XML' - @-chmod -R u+w $(srcdir) - cd $(srcdir) && \ - gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $(MKDB_OPTIONS) - touch sgml-build.stamp - -sgml.stamp: sgml-build.stamp - @true - -#### html #### - -html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) - @echo 'gtk-doc: Building HTML' - @-chmod -R u+w $(srcdir) - rm -rf $(srcdir)/html - mkdir $(srcdir)/html - mkhtml_options=""; \ - gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \ - if test "$(?)" = "0"; then \ - mkhtml_options=--path="$(srcdir)"; \ - fi - cd $(srcdir)/html && gtkdoc-mkhtml $(mkhtml_options) $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) - test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html ) - @echo 'gtk-doc: Fixing cross-references' - cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) - touch html-build.stamp - -############## - -clean-local: - rm -f *~ *.bak - rm -rf .libs - -distclean-local: - cd $(srcdir) && \ - rm -rf xml $(REPORT_FILES) \ - $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt - -maintainer-clean-local: clean - cd $(srcdir) && rm -rf xml html - -install-data-local: - installfiles=`echo $(srcdir)/html/*`; \ - if test "$$installfiles" = '$(srcdir)/html/*'; \ - then echo '-- Nothing to install' ; \ - else \ - if test -n "$(DOC_MODULE_VERSION)"; then \ - installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ - else \ - installdir="$(DESTDIR)$(TARGET_DIR)"; \ - fi; \ - $(mkinstalldirs) $${installdir} ; \ - for i in $$installfiles; do \ - echo '-- Installing '$$i ; \ - $(INSTALL_DATA) $$i $${installdir}; \ - done; \ - if test -n "$(DOC_MODULE_VERSION)"; then \ - mv -f $${installdir}/$(DOC_MODULE).devhelp2 \ - $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \ - mv -f $${installdir}/$(DOC_MODULE).devhelp \ - $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp; \ - fi; \ - ! which gtkdoc-rebase >/dev/null 2>&1 || \ - gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir} ; \ - fi - -uninstall-local: - if test -n "$(DOC_MODULE_VERSION)"; then \ - installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ - else \ - installdir="$(DESTDIR)$(TARGET_DIR)"; \ - fi; \ - rm -rf $${installdir} - -# -# Require gtk-doc when making dist -# -@ENABLE_GTK_DOC_TRUE@dist-check-gtkdoc: -@ENABLE_GTK_DOC_FALSE@dist-check-gtkdoc: -@ENABLE_GTK_DOC_FALSE@ @echo "*** gtk-doc must be installed and enabled in order to make dist" -@ENABLE_GTK_DOC_FALSE@ @false - -dist-hook: dist-check-gtkdoc dist-hook-local - mkdir $(distdir)/tmpl - mkdir $(distdir)/xml - mkdir $(distdir)/html - -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl - -cp $(srcdir)/xml/*.xml $(distdir)/xml - cp $(srcdir)/html/* $(distdir)/html - -cp $(srcdir)/$(DOC_MODULE).types $(distdir)/ - -cp $(srcdir)/$(DOC_MODULE)-sections.txt $(distdir)/ - cd $(distdir) && rm -f $(DISTCLEANFILES) - ! which gtkdoc-rebase >/dev/null 2>&1 || \ - gtkdoc-rebase --online --relative --html-dir=$(distdir)/html - -.PHONY : dist-hook-local docs - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/ch01.html b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/ch01.html deleted file mode 100644 index 1a86988a39a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/ch01.html +++ /dev/null @@ -1,63 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>Poppler</title> -<meta name="generator" content="DocBook XSL Stylesheets V1.75.1"> -<link rel="home" href="index.html" title="Poppler Reference Manual"> -<link rel="up" href="index.html" title="Poppler Reference Manual"> -<link rel="prev" href="index.html" title="Poppler Reference Manual"> -<link rel="next" href="poppler-poppler.html" title="poppler"> -<meta name="generator" content="GTK-Doc V1.11 (XML mode)"> -<link rel="stylesheet" href="style.css" type="text/css"> -<link rel="chapter" href="ch01.html" title="Poppler"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"> -<td><a accesskey="p" href="index.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> -<td> </td> -<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> -<th width="100%" align="center">Poppler Reference Manual</th> -<td><a accesskey="n" href="poppler-poppler.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> -</tr></table> -<div class="chapter" title="Poppler"> -<div class="titlepage"><div><div><h2 class="title"> -<a name="id360229"></a>Poppler</h2></div></div></div> -<div class="toc"><dl> -<dt> -<span class="refentrytitle"><a href="poppler-poppler.html">poppler</a></span><span class="refpurpose"></span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-document.html">PopplerDocument</a></span><span class="refpurpose"> — Information about a document</span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-page.html">PopplerPage</a></span><span class="refpurpose"> — Information about a page in a document</span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-action.html">PopplerAction</a></span><span class="refpurpose"> — Action links</span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-attachment.html">PopplerAttachment</a></span><span class="refpurpose"></span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-form-field.html">PopplerFormField</a></span><span class="refpurpose"></span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-enums.html">poppler-enums</a></span><span class="refpurpose"></span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-annot.html">PopplerAnnot</a></span><span class="refpurpose"> — Annotations</span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-layer.html">PopplerLayer</a></span><span class="refpurpose"></span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-features.html">Version and Features Information</a></span><span class="refpurpose"> — Variables and functions to check the poppler version and features</span> -</dt> -</dl></div> -</div> -<div class="footer"> -<hr> - Generated by GTK-Doc V1.11</div> -</body> -</html> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/home.png b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/home.png Binary files differdeleted file mode 100644 index 17003611d9d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/home.png +++ /dev/null diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/index.html b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/index.html deleted file mode 100644 index 405dbae4bd6..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/index.html +++ /dev/null @@ -1,59 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>Poppler Reference Manual</title> -<meta name="generator" content="DocBook XSL Stylesheets V1.75.1"> -<link rel="home" href="index.html" title="Poppler Reference Manual"> -<link rel="next" href="ch01.html" title="Poppler"> -<meta name="generator" content="GTK-Doc V1.11 (XML mode)"> -<link rel="stylesheet" href="style.css" type="text/css"> -<link rel="chapter" href="ch01.html" title="Poppler"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<div class="book" title="Poppler Reference Manual"> -<div class="titlepage"> -<div><div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">Poppler Reference Manual</p></th></tr></table></div></div> -<hr> -</div> -<div class="toc"><dl> -<dt><span class="chapter"><a href="ch01.html">Poppler</a></span></dt> -<dd><dl> -<dt> -<span class="refentrytitle"><a href="poppler-poppler.html">poppler</a></span><span class="refpurpose"></span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-document.html">PopplerDocument</a></span><span class="refpurpose"> — Information about a document</span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-page.html">PopplerPage</a></span><span class="refpurpose"> — Information about a page in a document</span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-action.html">PopplerAction</a></span><span class="refpurpose"> — Action links</span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-attachment.html">PopplerAttachment</a></span><span class="refpurpose"></span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-form-field.html">PopplerFormField</a></span><span class="refpurpose"></span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-enums.html">poppler-enums</a></span><span class="refpurpose"></span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-annot.html">PopplerAnnot</a></span><span class="refpurpose"> — Annotations</span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-layer.html">PopplerLayer</a></span><span class="refpurpose"></span> -</dt> -<dt> -<span class="refentrytitle"><a href="poppler-poppler-features.html">Version and Features Information</a></span><span class="refpurpose"> — Variables and functions to check the poppler version and features</span> -</dt> -</dl></dd> -</dl></div> -</div> -<div class="footer"> -<hr> - Generated by GTK-Doc V1.11</div> -</body> -</html> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/index.sgml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/index.sgml deleted file mode 100644 index aabf172224a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/index.sgml +++ /dev/null @@ -1,309 +0,0 @@ -<ANCHOR id="poppler-poppler" href="poppler/poppler-poppler.html"> -<ANCHOR id="poppler-poppler.synopsis" href="poppler/poppler-poppler.html#poppler-poppler.synopsis"> -<ANCHOR id="PopplerDocument" href="poppler/poppler-poppler.html#PopplerDocument"> -<ANCHOR id="PopplerPage" href="poppler/poppler-poppler.html#PopplerPage"> -<ANCHOR id="poppler-poppler.object-hierarchy" href="poppler/poppler-poppler.html#poppler-poppler.object-hierarchy"> -<ANCHOR id="poppler-poppler.properties" href="poppler/poppler-poppler.html#poppler-poppler.properties"> -<ANCHOR id="poppler-poppler.description" href="poppler/poppler-poppler.html#poppler-poppler.description"> -<ANCHOR id="poppler-poppler.details" href="poppler/poppler-poppler.html#poppler-poppler.details"> -<ANCHOR id="poppler-error-quark" href="poppler/poppler-poppler.html#poppler-error-quark"> -<ANCHOR id="POPPLER-ERROR--CAPS" href="poppler/poppler-poppler.html#POPPLER-ERROR--CAPS"> -<ANCHOR id="PopplerError" href="poppler/poppler-poppler.html#PopplerError"> -<ANCHOR id="PopplerOrientation" href="poppler/poppler-poppler.html#PopplerOrientation"> -<ANCHOR id="PopplerDocument-struct" href="poppler/poppler-poppler.html#PopplerDocument-struct"> -<ANCHOR id="PopplerIndexIter" href="poppler/poppler-poppler.html#PopplerIndexIter"> -<ANCHOR id="PopplerFontsIter" href="poppler/poppler-poppler.html#PopplerFontsIter"> -<ANCHOR id="PopplerRectangle" href="poppler/poppler-poppler.html#PopplerRectangle"> -<ANCHOR id="PopplerSelectionStyle" href="poppler/poppler-poppler.html#PopplerSelectionStyle"> -<ANCHOR id="PopplerPageTransitionType" href="poppler/poppler-poppler.html#PopplerPageTransitionType"> -<ANCHOR id="PopplerPageTransitionAlignment" href="poppler/poppler-poppler.html#PopplerPageTransitionAlignment"> -<ANCHOR id="PopplerPageTransitionDirection" href="poppler/poppler-poppler.html#PopplerPageTransitionDirection"> -<ANCHOR id="PopplerLinkMapping" href="poppler/poppler-poppler.html#PopplerLinkMapping"> -<ANCHOR id="PopplerPage-struct" href="poppler/poppler-poppler.html#PopplerPage-struct"> -<ANCHOR id="PopplerFontInfo" href="poppler/poppler-poppler.html#PopplerFontInfo"> -<ANCHOR id="PopplerPSFile" href="poppler/poppler-poppler.html#PopplerPSFile"> -<ANCHOR id="PopplerBackend" href="poppler/poppler-poppler.html#PopplerBackend"> -<ANCHOR id="poppler-get-backend" href="poppler/poppler-poppler.html#poppler-get-backend"> -<ANCHOR id="poppler-get-version" href="poppler/poppler-poppler.html#poppler-get-version"> -<ANCHOR id="poppler-poppler.property-details" href="poppler/poppler-poppler.html#poppler-poppler.property-details"> -<ANCHOR id="PopplerDocument--author" href="poppler/poppler-poppler.html#PopplerDocument--author"> -<ANCHOR id="PopplerDocument--creation-date" href="poppler/poppler-poppler.html#PopplerDocument--creation-date"> -<ANCHOR id="PopplerDocument--creator" href="poppler/poppler-poppler.html#PopplerDocument--creator"> -<ANCHOR id="PopplerDocument--format" href="poppler/poppler-poppler.html#PopplerDocument--format"> -<ANCHOR id="PopplerDocument--format-major" href="poppler/poppler-poppler.html#PopplerDocument--format-major"> -<ANCHOR id="PopplerDocument--format-minor" href="poppler/poppler-poppler.html#PopplerDocument--format-minor"> -<ANCHOR id="PopplerDocument--keywords" href="poppler/poppler-poppler.html#PopplerDocument--keywords"> -<ANCHOR id="PopplerDocument--linearized" href="poppler/poppler-poppler.html#PopplerDocument--linearized"> -<ANCHOR id="PopplerDocument--metadata" href="poppler/poppler-poppler.html#PopplerDocument--metadata"> -<ANCHOR id="PopplerDocument--mod-date" href="poppler/poppler-poppler.html#PopplerDocument--mod-date"> -<ANCHOR id="PopplerDocument--page-layout" href="poppler/poppler-poppler.html#PopplerDocument--page-layout"> -<ANCHOR id="PopplerDocument--page-mode" href="poppler/poppler-poppler.html#PopplerDocument--page-mode"> -<ANCHOR id="PopplerDocument--permissions" href="poppler/poppler-poppler.html#PopplerDocument--permissions"> -<ANCHOR id="PopplerDocument--producer" href="poppler/poppler-poppler.html#PopplerDocument--producer"> -<ANCHOR id="PopplerDocument--subject" href="poppler/poppler-poppler.html#PopplerDocument--subject"> -<ANCHOR id="PopplerDocument--title" href="poppler/poppler-poppler.html#PopplerDocument--title"> -<ANCHOR id="PopplerDocument--viewer-preferences" href="poppler/poppler-poppler.html#PopplerDocument--viewer-preferences"> -<ANCHOR id="PopplerPage--label" href="poppler/poppler-poppler.html#PopplerPage--label"> -<ANCHOR id="poppler-poppler-document" href="poppler/poppler-poppler-document.html"> -<ANCHOR id="poppler-poppler-document.synopsis" href="poppler/poppler-poppler-document.html#poppler-poppler-document.synopsis"> -<ANCHOR id="poppler-poppler-document.description" href="poppler/poppler-poppler-document.html#poppler-poppler-document.description"> -<ANCHOR id="poppler-poppler-document.details" href="poppler/poppler-poppler-document.html#poppler-poppler-document.details"> -<ANCHOR id="PopplerPageLayout" href="poppler/poppler-poppler-document.html#PopplerPageLayout"> -<ANCHOR id="PopplerPageMode" href="poppler/poppler-poppler-document.html#PopplerPageMode"> -<ANCHOR id="PopplerFontType" href="poppler/poppler-poppler-document.html#PopplerFontType"> -<ANCHOR id="PopplerViewerPreferences" href="poppler/poppler-poppler-document.html#PopplerViewerPreferences"> -<ANCHOR id="PopplerPermissions" href="poppler/poppler-poppler-document.html#PopplerPermissions"> -<ANCHOR id="poppler-document-new-from-file" href="poppler/poppler-poppler-document.html#poppler-document-new-from-file"> -<ANCHOR id="poppler-document-new-from-data" href="poppler/poppler-poppler-document.html#poppler-document-new-from-data"> -<ANCHOR id="poppler-document-save" href="poppler/poppler-poppler-document.html#poppler-document-save"> -<ANCHOR id="poppler-document-get-n-pages" href="poppler/poppler-poppler-document.html#poppler-document-get-n-pages"> -<ANCHOR id="poppler-document-get-page" href="poppler/poppler-poppler-document.html#poppler-document-get-page"> -<ANCHOR id="poppler-document-get-page-by-label" href="poppler/poppler-poppler-document.html#poppler-document-get-page-by-label"> -<ANCHOR id="poppler-document-find-dest" href="poppler/poppler-poppler-document.html#poppler-document-find-dest"> -<ANCHOR id="poppler-document-has-attachments" href="poppler/poppler-poppler-document.html#poppler-document-has-attachments"> -<ANCHOR id="poppler-document-get-attachments" href="poppler/poppler-poppler-document.html#poppler-document-get-attachments"> -<ANCHOR id="poppler-document-get-form-field" href="poppler/poppler-poppler-document.html#poppler-document-get-form-field"> -<ANCHOR id="poppler-index-iter-get-type" href="poppler/poppler-poppler-document.html#poppler-index-iter-get-type"> -<ANCHOR id="poppler-index-iter-new" href="poppler/poppler-poppler-document.html#poppler-index-iter-new"> -<ANCHOR id="poppler-index-iter-copy" href="poppler/poppler-poppler-document.html#poppler-index-iter-copy"> -<ANCHOR id="poppler-index-iter-free" href="poppler/poppler-poppler-document.html#poppler-index-iter-free"> -<ANCHOR id="poppler-index-iter-get-child" href="poppler/poppler-poppler-document.html#poppler-index-iter-get-child"> -<ANCHOR id="poppler-index-iter-is-open" href="poppler/poppler-poppler-document.html#poppler-index-iter-is-open"> -<ANCHOR id="poppler-index-iter-get-action" href="poppler/poppler-poppler-document.html#poppler-index-iter-get-action"> -<ANCHOR id="poppler-index-iter-next" href="poppler/poppler-poppler-document.html#poppler-index-iter-next"> -<ANCHOR id="poppler-font-info-new" href="poppler/poppler-poppler-document.html#poppler-font-info-new"> -<ANCHOR id="poppler-font-info-scan" href="poppler/poppler-poppler-document.html#poppler-font-info-scan"> -<ANCHOR id="poppler-font-info-free" href="poppler/poppler-poppler-document.html#poppler-font-info-free"> -<ANCHOR id="poppler-fonts-iter-get-type" href="poppler/poppler-poppler-document.html#poppler-fonts-iter-get-type"> -<ANCHOR id="poppler-fonts-iter-copy" href="poppler/poppler-poppler-document.html#poppler-fonts-iter-copy"> -<ANCHOR id="poppler-fonts-iter-free" href="poppler/poppler-poppler-document.html#poppler-fonts-iter-free"> -<ANCHOR id="poppler-fonts-iter-get-name" href="poppler/poppler-poppler-document.html#poppler-fonts-iter-get-name"> -<ANCHOR id="poppler-fonts-iter-get-full-name" href="poppler/poppler-poppler-document.html#poppler-fonts-iter-get-full-name"> -<ANCHOR id="poppler-fonts-iter-get-font-type" href="poppler/poppler-poppler-document.html#poppler-fonts-iter-get-font-type"> -<ANCHOR id="poppler-fonts-iter-is-embedded" href="poppler/poppler-poppler-document.html#poppler-fonts-iter-is-embedded"> -<ANCHOR id="poppler-fonts-iter-is-subset" href="poppler/poppler-poppler-document.html#poppler-fonts-iter-is-subset"> -<ANCHOR id="poppler-fonts-iter-next" href="poppler/poppler-poppler-document.html#poppler-fonts-iter-next"> -<ANCHOR id="poppler-ps-file-new" href="poppler/poppler-poppler-document.html#poppler-ps-file-new"> -<ANCHOR id="poppler-ps-file-set-paper-size" href="poppler/poppler-poppler-document.html#poppler-ps-file-set-paper-size"> -<ANCHOR id="poppler-ps-file-set-duplex" href="poppler/poppler-poppler-document.html#poppler-ps-file-set-duplex"> -<ANCHOR id="poppler-ps-file-free" href="poppler/poppler-poppler-document.html#poppler-ps-file-free"> -<ANCHOR id="poppler-poppler-page" href="poppler/poppler-poppler-page.html"> -<ANCHOR id="poppler-poppler-page.synopsis" href="poppler/poppler-poppler-page.html#poppler-poppler-page.synopsis"> -<ANCHOR id="poppler-poppler-page.description" href="poppler/poppler-poppler-page.html#poppler-poppler-page.description"> -<ANCHOR id="poppler-poppler-page.details" href="poppler/poppler-poppler-page.html#poppler-poppler-page.details"> -<ANCHOR id="poppler-page-render" href="poppler/poppler-poppler-page.html#poppler-page-render"> -<ANCHOR id="poppler-page-render-to-pixbuf" href="poppler/poppler-poppler-page.html#poppler-page-render-to-pixbuf"> -<ANCHOR id="poppler-page-get-size" href="poppler/poppler-poppler-page.html#poppler-page-get-size"> -<ANCHOR id="poppler-page-get-index" href="poppler/poppler-poppler-page.html#poppler-page-get-index"> -<ANCHOR id="poppler-page-get-thumbnail" href="poppler/poppler-poppler-page.html#poppler-page-get-thumbnail"> -<ANCHOR id="poppler-page-get-thumbnail-size" href="poppler/poppler-poppler-page.html#poppler-page-get-thumbnail-size"> -<ANCHOR id="poppler-page-render-to-ps" href="poppler/poppler-poppler-page.html#poppler-page-render-to-ps"> -<ANCHOR id="poppler-page-find-text" href="poppler/poppler-poppler-page.html#poppler-page-find-text"> -<ANCHOR id="poppler-page-get-text" href="poppler/poppler-poppler-page.html#poppler-page-get-text"> -<ANCHOR id="poppler-page-get-duration" href="poppler/poppler-poppler-page.html#poppler-page-get-duration"> -<ANCHOR id="poppler-page-get-transition" href="poppler/poppler-poppler-page.html#poppler-page-get-transition"> -<ANCHOR id="poppler-page-get-link-mapping" href="poppler/poppler-poppler-page.html#poppler-page-get-link-mapping"> -<ANCHOR id="poppler-page-free-link-mapping" href="poppler/poppler-poppler-page.html#poppler-page-free-link-mapping"> -<ANCHOR id="poppler-page-get-image-mapping" href="poppler/poppler-poppler-page.html#poppler-page-get-image-mapping"> -<ANCHOR id="poppler-page-free-image-mapping" href="poppler/poppler-poppler-page.html#poppler-page-free-image-mapping"> -<ANCHOR id="poppler-page-get-form-field-mapping" href="poppler/poppler-poppler-page.html#poppler-page-get-form-field-mapping"> -<ANCHOR id="poppler-page-free-form-field-mapping" href="poppler/poppler-poppler-page.html#poppler-page-free-form-field-mapping"> -<ANCHOR id="poppler-page-get-selection-region" href="poppler/poppler-poppler-page.html#poppler-page-get-selection-region"> -<ANCHOR id="poppler-page-render-selection" href="poppler/poppler-poppler-page.html#poppler-page-render-selection"> -<ANCHOR id="poppler-page-render-selection-to-pixbuf" href="poppler/poppler-poppler-page.html#poppler-page-render-selection-to-pixbuf"> -<ANCHOR id="POPPLER-TYPE-RECTANGLE--CAPS" href="poppler/poppler-poppler-page.html#POPPLER-TYPE-RECTANGLE--CAPS"> -<ANCHOR id="PopplerRectangle" href="poppler/poppler-poppler-page.html#PopplerRectangle"> -<ANCHOR id="poppler-rectangle-get-type" href="poppler/poppler-poppler-page.html#poppler-rectangle-get-type"> -<ANCHOR id="poppler-rectangle-new" href="poppler/poppler-poppler-page.html#poppler-rectangle-new"> -<ANCHOR id="poppler-rectangle-copy" href="poppler/poppler-poppler-page.html#poppler-rectangle-copy"> -<ANCHOR id="poppler-rectangle-free" href="poppler/poppler-poppler-page.html#poppler-rectangle-free"> -<ANCHOR id="POPPLER-TYPE-PAGE-TRANSITION--CAPS" href="poppler/poppler-poppler-page.html#POPPLER-TYPE-PAGE-TRANSITION--CAPS"> -<ANCHOR id="PopplerPageTransition" href="poppler/poppler-poppler-page.html#PopplerPageTransition"> -<ANCHOR id="poppler-page-transition-get-type" href="poppler/poppler-poppler-page.html#poppler-page-transition-get-type"> -<ANCHOR id="poppler-page-transition-new" href="poppler/poppler-poppler-page.html#poppler-page-transition-new"> -<ANCHOR id="poppler-page-transition-copy" href="poppler/poppler-poppler-page.html#poppler-page-transition-copy"> -<ANCHOR id="poppler-page-transition-free" href="poppler/poppler-poppler-page.html#poppler-page-transition-free"> -<ANCHOR id="POPPLER-TYPE-LINK-MAPPING--CAPS" href="poppler/poppler-poppler-page.html#POPPLER-TYPE-LINK-MAPPING--CAPS"> -<ANCHOR id="PopplerLinkMapping" href="poppler/poppler-poppler-page.html#PopplerLinkMapping"> -<ANCHOR id="poppler-link-mapping-get-type" href="poppler/poppler-poppler-page.html#poppler-link-mapping-get-type"> -<ANCHOR id="poppler-link-mapping-new" href="poppler/poppler-poppler-page.html#poppler-link-mapping-new"> -<ANCHOR id="poppler-link-mapping-copy" href="poppler/poppler-poppler-page.html#poppler-link-mapping-copy"> -<ANCHOR id="poppler-link-mapping-free" href="poppler/poppler-poppler-page.html#poppler-link-mapping-free"> -<ANCHOR id="POPPLER-TYPE-IMAGE-MAPPING--CAPS" href="poppler/poppler-poppler-page.html#POPPLER-TYPE-IMAGE-MAPPING--CAPS"> -<ANCHOR id="PopplerImageMapping" href="poppler/poppler-poppler-page.html#PopplerImageMapping"> -<ANCHOR id="poppler-image-mapping-get-type" href="poppler/poppler-poppler-page.html#poppler-image-mapping-get-type"> -<ANCHOR id="poppler-image-mapping-new" href="poppler/poppler-poppler-page.html#poppler-image-mapping-new"> -<ANCHOR id="poppler-image-mapping-copy" href="poppler/poppler-poppler-page.html#poppler-image-mapping-copy"> -<ANCHOR id="poppler-image-mapping-free" href="poppler/poppler-poppler-page.html#poppler-image-mapping-free"> -<ANCHOR id="POPPLER-TYPE-FORM-FIELD-MAPPING--CAPS" href="poppler/poppler-poppler-page.html#POPPLER-TYPE-FORM-FIELD-MAPPING--CAPS"> -<ANCHOR id="PopplerFormFieldMapping" href="poppler/poppler-poppler-page.html#PopplerFormFieldMapping"> -<ANCHOR id="poppler-form-field-mapping-get-type" href="poppler/poppler-poppler-page.html#poppler-form-field-mapping-get-type"> -<ANCHOR id="poppler-form-field-mapping-new" href="poppler/poppler-poppler-page.html#poppler-form-field-mapping-new"> -<ANCHOR id="poppler-form-field-mapping-copy" href="poppler/poppler-poppler-page.html#poppler-form-field-mapping-copy"> -<ANCHOR id="poppler-form-field-mapping-free" href="poppler/poppler-poppler-page.html#poppler-form-field-mapping-free"> -<ANCHOR id="poppler-poppler-action" href="poppler/poppler-poppler-action.html"> -<ANCHOR id="poppler-poppler-action.synopsis" href="poppler/poppler-poppler-action.html#poppler-poppler-action.synopsis"> -<ANCHOR id="poppler-poppler-action.description" href="poppler/poppler-poppler-action.html#poppler-poppler-action.description"> -<ANCHOR id="poppler-poppler-action.details" href="poppler/poppler-poppler-action.html#poppler-poppler-action.details"> -<ANCHOR id="PopplerActionType" href="poppler/poppler-poppler-action.html#PopplerActionType"> -<ANCHOR id="PopplerDestType" href="poppler/poppler-poppler-action.html#PopplerDestType"> -<ANCHOR id="PopplerActionAny" href="poppler/poppler-poppler-action.html#PopplerActionAny"> -<ANCHOR id="PopplerActionGotoDest" href="poppler/poppler-poppler-action.html#PopplerActionGotoDest"> -<ANCHOR id="PopplerActionGotoRemote" href="poppler/poppler-poppler-action.html#PopplerActionGotoRemote"> -<ANCHOR id="PopplerActionLaunch" href="poppler/poppler-poppler-action.html#PopplerActionLaunch"> -<ANCHOR id="PopplerActionUri" href="poppler/poppler-poppler-action.html#PopplerActionUri"> -<ANCHOR id="PopplerActionNamed" href="poppler/poppler-poppler-action.html#PopplerActionNamed"> -<ANCHOR id="PopplerActionMovie" href="poppler/poppler-poppler-action.html#PopplerActionMovie"> -<ANCHOR id="PopplerDest" href="poppler/poppler-poppler-action.html#PopplerDest"> -<ANCHOR id="PopplerAction" href="poppler/poppler-poppler-action.html#PopplerAction"> -<ANCHOR id="POPPLER-TYPE-ACTION--CAPS" href="poppler/poppler-poppler-action.html#POPPLER-TYPE-ACTION--CAPS"> -<ANCHOR id="POPPLER-ACTION--CAPS" href="poppler/poppler-poppler-action.html#POPPLER-ACTION--CAPS"> -<ANCHOR id="poppler-action-get-type" href="poppler/poppler-poppler-action.html#poppler-action-get-type"> -<ANCHOR id="poppler-action-copy" href="poppler/poppler-poppler-action.html#poppler-action-copy"> -<ANCHOR id="poppler-action-free" href="poppler/poppler-poppler-action.html#poppler-action-free"> -<ANCHOR id="POPPLER-TYPE-DEST--CAPS" href="poppler/poppler-poppler-action.html#POPPLER-TYPE-DEST--CAPS"> -<ANCHOR id="poppler-dest-get-type" href="poppler/poppler-poppler-action.html#poppler-dest-get-type"> -<ANCHOR id="poppler-dest-copy" href="poppler/poppler-poppler-action.html#poppler-dest-copy"> -<ANCHOR id="poppler-dest-free" href="poppler/poppler-poppler-action.html#poppler-dest-free"> -<ANCHOR id="poppler-poppler-attachment" href="poppler/poppler-poppler-attachment.html"> -<ANCHOR id="poppler-poppler-attachment.synopsis" href="poppler/poppler-poppler-attachment.html#poppler-poppler-attachment.synopsis"> -<ANCHOR id="PopplerAttachment" href="poppler/poppler-poppler-attachment.html#PopplerAttachment"> -<ANCHOR id="poppler-poppler-attachment.description" href="poppler/poppler-poppler-attachment.html#poppler-poppler-attachment.description"> -<ANCHOR id="poppler-poppler-attachment.details" href="poppler/poppler-poppler-attachment.html#poppler-poppler-attachment.details"> -<ANCHOR id="PopplerAttachment-struct" href="poppler/poppler-poppler-attachment.html#PopplerAttachment-struct"> -<ANCHOR id="poppler-attachment-save" href="poppler/poppler-poppler-attachment.html#poppler-attachment-save"> -<ANCHOR id="poppler-attachment-save-to-callback" href="poppler/poppler-poppler-attachment.html#poppler-attachment-save-to-callback"> -<ANCHOR id="PopplerAttachmentSaveFunc" href="poppler/poppler-poppler-attachment.html#PopplerAttachmentSaveFunc"> -<ANCHOR id="poppler-poppler-form-field" href="poppler/poppler-poppler-form-field.html"> -<ANCHOR id="poppler-poppler-form-field.synopsis" href="poppler/poppler-poppler-form-field.html#poppler-poppler-form-field.synopsis"> -<ANCHOR id="PopplerFormField" href="poppler/poppler-poppler-form-field.html#PopplerFormField"> -<ANCHOR id="poppler-poppler-form-field.object-hierarchy" href="poppler/poppler-poppler-form-field.html#poppler-poppler-form-field.object-hierarchy"> -<ANCHOR id="poppler-poppler-form-field.description" href="poppler/poppler-poppler-form-field.html#poppler-poppler-form-field.description"> -<ANCHOR id="poppler-poppler-form-field.details" href="poppler/poppler-poppler-form-field.html#poppler-poppler-form-field.details"> -<ANCHOR id="PopplerFormField-struct" href="poppler/poppler-poppler-form-field.html#PopplerFormField-struct"> -<ANCHOR id="PopplerFormButtonType" href="poppler/poppler-poppler-form-field.html#PopplerFormButtonType"> -<ANCHOR id="PopplerFormChoiceType" href="poppler/poppler-poppler-form-field.html#PopplerFormChoiceType"> -<ANCHOR id="PopplerFormFieldType" href="poppler/poppler-poppler-form-field.html#PopplerFormFieldType"> -<ANCHOR id="PopplerFormTextType" href="poppler/poppler-poppler-form-field.html#PopplerFormTextType"> -<ANCHOR id="poppler-form-field-get-id" href="poppler/poppler-poppler-form-field.html#poppler-form-field-get-id"> -<ANCHOR id="poppler-form-field-get-field-type" href="poppler/poppler-poppler-form-field.html#poppler-form-field-get-field-type"> -<ANCHOR id="poppler-form-field-is-read-only" href="poppler/poppler-poppler-form-field.html#poppler-form-field-is-read-only"> -<ANCHOR id="poppler-form-field-get-font-size" href="poppler/poppler-poppler-form-field.html#poppler-form-field-get-font-size"> -<ANCHOR id="poppler-form-field-button-get-button-type" href="poppler/poppler-poppler-form-field.html#poppler-form-field-button-get-button-type"> -<ANCHOR id="poppler-form-field-button-get-state" href="poppler/poppler-poppler-form-field.html#poppler-form-field-button-get-state"> -<ANCHOR id="poppler-form-field-button-set-state" href="poppler/poppler-poppler-form-field.html#poppler-form-field-button-set-state"> -<ANCHOR id="poppler-form-field-choice-can-select-multiple" href="poppler/poppler-poppler-form-field.html#poppler-form-field-choice-can-select-multiple"> -<ANCHOR id="poppler-form-field-choice-commit-on-change" href="poppler/poppler-poppler-form-field.html#poppler-form-field-choice-commit-on-change"> -<ANCHOR id="poppler-form-field-choice-do-spell-check" href="poppler/poppler-poppler-form-field.html#poppler-form-field-choice-do-spell-check"> -<ANCHOR id="poppler-form-field-choice-get-choice-type" href="poppler/poppler-poppler-form-field.html#poppler-form-field-choice-get-choice-type"> -<ANCHOR id="poppler-form-field-choice-get-item" href="poppler/poppler-poppler-form-field.html#poppler-form-field-choice-get-item"> -<ANCHOR id="poppler-form-field-choice-get-n-items" href="poppler/poppler-poppler-form-field.html#poppler-form-field-choice-get-n-items"> -<ANCHOR id="poppler-form-field-choice-get-text" href="poppler/poppler-poppler-form-field.html#poppler-form-field-choice-get-text"> -<ANCHOR id="poppler-form-field-choice-is-editable" href="poppler/poppler-poppler-form-field.html#poppler-form-field-choice-is-editable"> -<ANCHOR id="poppler-form-field-choice-is-item-selected" href="poppler/poppler-poppler-form-field.html#poppler-form-field-choice-is-item-selected"> -<ANCHOR id="poppler-form-field-choice-select-item" href="poppler/poppler-poppler-form-field.html#poppler-form-field-choice-select-item"> -<ANCHOR id="poppler-form-field-choice-set-text" href="poppler/poppler-poppler-form-field.html#poppler-form-field-choice-set-text"> -<ANCHOR id="poppler-form-field-choice-toggle-item" href="poppler/poppler-poppler-form-field.html#poppler-form-field-choice-toggle-item"> -<ANCHOR id="poppler-form-field-choice-unselect-all" href="poppler/poppler-poppler-form-field.html#poppler-form-field-choice-unselect-all"> -<ANCHOR id="poppler-form-field-text-do-scroll" href="poppler/poppler-poppler-form-field.html#poppler-form-field-text-do-scroll"> -<ANCHOR id="poppler-form-field-text-do-spell-check" href="poppler/poppler-poppler-form-field.html#poppler-form-field-text-do-spell-check"> -<ANCHOR id="poppler-form-field-text-get-max-len" href="poppler/poppler-poppler-form-field.html#poppler-form-field-text-get-max-len"> -<ANCHOR id="poppler-form-field-text-get-text" href="poppler/poppler-poppler-form-field.html#poppler-form-field-text-get-text"> -<ANCHOR id="poppler-form-field-text-get-text-type" href="poppler/poppler-poppler-form-field.html#poppler-form-field-text-get-text-type"> -<ANCHOR id="poppler-form-field-text-is-password" href="poppler/poppler-poppler-form-field.html#poppler-form-field-text-is-password"> -<ANCHOR id="poppler-form-field-text-is-rich-text" href="poppler/poppler-poppler-form-field.html#poppler-form-field-text-is-rich-text"> -<ANCHOR id="poppler-form-field-text-set-text" href="poppler/poppler-poppler-form-field.html#poppler-form-field-text-set-text"> -<ANCHOR id="poppler-poppler-enums" href="poppler/poppler-poppler-enums.html"> -<ANCHOR id="poppler-poppler-enums.synopsis" href="poppler/poppler-poppler-enums.html#poppler-poppler-enums.synopsis"> -<ANCHOR id="poppler-poppler-enums.description" href="poppler/poppler-poppler-enums.html#poppler-poppler-enums.description"> -<ANCHOR id="poppler-poppler-enums.details" href="poppler/poppler-poppler-enums.html#poppler-poppler-enums.details"> -<ANCHOR id="POPPLER-TYPE-ACTION-TYPE--CAPS" href="poppler/poppler-poppler-enums.html#POPPLER-TYPE-ACTION-TYPE--CAPS"> -<ANCHOR id="poppler-action-type-get-type" href="poppler/poppler-poppler-enums.html#poppler-action-type-get-type"> -<ANCHOR id="POPPLER-TYPE-DEST-TYPE--CAPS" href="poppler/poppler-poppler-enums.html#POPPLER-TYPE-DEST-TYPE--CAPS"> -<ANCHOR id="poppler-dest-type-get-type" href="poppler/poppler-poppler-enums.html#poppler-dest-type-get-type"> -<ANCHOR id="POPPLER-TYPE-PAGE-LAYOUT--CAPS" href="poppler/poppler-poppler-enums.html#POPPLER-TYPE-PAGE-LAYOUT--CAPS"> -<ANCHOR id="poppler-page-layout-get-type" href="poppler/poppler-poppler-enums.html#poppler-page-layout-get-type"> -<ANCHOR id="POPPLER-TYPE-PAGE-MODE--CAPS" href="poppler/poppler-poppler-enums.html#POPPLER-TYPE-PAGE-MODE--CAPS"> -<ANCHOR id="poppler-page-mode-get-type" href="poppler/poppler-poppler-enums.html#poppler-page-mode-get-type"> -<ANCHOR id="POPPLER-TYPE-FONT-TYPE--CAPS" href="poppler/poppler-poppler-enums.html#POPPLER-TYPE-FONT-TYPE--CAPS"> -<ANCHOR id="poppler-font-type-get-type" href="poppler/poppler-poppler-enums.html#poppler-font-type-get-type"> -<ANCHOR id="POPPLER-TYPE-VIEWER-PREFERENCES--CAPS" href="poppler/poppler-poppler-enums.html#POPPLER-TYPE-VIEWER-PREFERENCES--CAPS"> -<ANCHOR id="poppler-viewer-preferences-get-type" href="poppler/poppler-poppler-enums.html#poppler-viewer-preferences-get-type"> -<ANCHOR id="POPPLER-TYPE-PERMISSIONS--CAPS" href="poppler/poppler-poppler-enums.html#POPPLER-TYPE-PERMISSIONS--CAPS"> -<ANCHOR id="poppler-permissions-get-type" href="poppler/poppler-poppler-enums.html#poppler-permissions-get-type"> -<ANCHOR id="POPPLER-TYPE-SELECTION-STYLE--CAPS" href="poppler/poppler-poppler-enums.html#POPPLER-TYPE-SELECTION-STYLE--CAPS"> -<ANCHOR id="poppler-selection-style-get-type" href="poppler/poppler-poppler-enums.html#poppler-selection-style-get-type"> -<ANCHOR id="POPPLER-TYPE-PAGE-TRANSITION-TYPE--CAPS" href="poppler/poppler-poppler-enums.html#POPPLER-TYPE-PAGE-TRANSITION-TYPE--CAPS"> -<ANCHOR id="poppler-page-transition-type-get-type" href="poppler/poppler-poppler-enums.html#poppler-page-transition-type-get-type"> -<ANCHOR id="POPPLER-TYPE-PAGE-TRANSITION-ALIGNMENT--CAPS" href="poppler/poppler-poppler-enums.html#POPPLER-TYPE-PAGE-TRANSITION-ALIGNMENT--CAPS"> -<ANCHOR id="poppler-page-transition-alignment-get-type" href="poppler/poppler-poppler-enums.html#poppler-page-transition-alignment-get-type"> -<ANCHOR id="POPPLER-TYPE-PAGE-TRANSITION-DIRECTION--CAPS" href="poppler/poppler-poppler-enums.html#POPPLER-TYPE-PAGE-TRANSITION-DIRECTION--CAPS"> -<ANCHOR id="poppler-page-transition-direction-get-type" href="poppler/poppler-poppler-enums.html#poppler-page-transition-direction-get-type"> -<ANCHOR id="POPPLER-TYPE-ERROR--CAPS" href="poppler/poppler-poppler-enums.html#POPPLER-TYPE-ERROR--CAPS"> -<ANCHOR id="poppler-error-get-type" href="poppler/poppler-poppler-enums.html#poppler-error-get-type"> -<ANCHOR id="POPPLER-TYPE-ORIENTATION--CAPS" href="poppler/poppler-poppler-enums.html#POPPLER-TYPE-ORIENTATION--CAPS"> -<ANCHOR id="poppler-orientation-get-type" href="poppler/poppler-poppler-enums.html#poppler-orientation-get-type"> -<ANCHOR id="POPPLER-TYPE-BACKEND--CAPS" href="poppler/poppler-poppler-enums.html#POPPLER-TYPE-BACKEND--CAPS"> -<ANCHOR id="poppler-backend-get-type" href="poppler/poppler-poppler-enums.html#poppler-backend-get-type"> -<ANCHOR id="poppler-poppler-annot" href="poppler/poppler-poppler-annot.html"> -<ANCHOR id="poppler-poppler-annot.synopsis" href="poppler/poppler-poppler-annot.html#poppler-poppler-annot.synopsis"> -<ANCHOR id="poppler-poppler-annot.description" href="poppler/poppler-poppler-annot.html#poppler-poppler-annot.description"> -<ANCHOR id="poppler-poppler-annot.details" href="poppler/poppler-poppler-annot.html#poppler-poppler-annot.details"> -<ANCHOR id="PopplerAnnot" href="poppler/poppler-poppler-annot.html#PopplerAnnot"> -<ANCHOR id="poppler-annot-callout-line-copy" href="poppler/poppler-poppler-annot.html#poppler-annot-callout-line-copy"> -<ANCHOR id="poppler-annot-callout-line-free" href="poppler/poppler-poppler-annot.html#poppler-annot-callout-line-free"> -<ANCHOR id="poppler-annot-callout-line-get-type" href="poppler/poppler-poppler-annot.html#poppler-annot-callout-line-get-type"> -<ANCHOR id="poppler-annot-callout-line-new" href="poppler/poppler-poppler-annot.html#poppler-annot-callout-line-new"> -<ANCHOR id="poppler-annot-external-data-type-get-type" href="poppler/poppler-poppler-annot.html#poppler-annot-external-data-type-get-type"> -<ANCHOR id="poppler-annot-flag-get-type" href="poppler/poppler-poppler-annot.html#poppler-annot-flag-get-type"> -<ANCHOR id="poppler-annot-free-text-get-callout-line" href="poppler/poppler-poppler-annot.html#poppler-annot-free-text-get-callout-line"> -<ANCHOR id="poppler-annot-free-text-get-quadding" href="poppler/poppler-poppler-annot.html#poppler-annot-free-text-get-quadding"> -<ANCHOR id="poppler-annot-free-text-get-type" href="poppler/poppler-poppler-annot.html#poppler-annot-free-text-get-type"> -<ANCHOR id="poppler-annot-free-text-quadding-get-type" href="poppler/poppler-poppler-annot.html#poppler-annot-free-text-quadding-get-type"> -<ANCHOR id="poppler-annot-get-annot-type" href="poppler/poppler-poppler-annot.html#poppler-annot-get-annot-type"> -<ANCHOR id="poppler-annot-get-color" href="poppler/poppler-poppler-annot.html#poppler-annot-get-color"> -<ANCHOR id="poppler-annot-get-contents" href="poppler/poppler-poppler-annot.html#poppler-annot-get-contents"> -<ANCHOR id="poppler-annot-get-flags" href="poppler/poppler-poppler-annot.html#poppler-annot-get-flags"> -<ANCHOR id="poppler-annot-get-modified" href="poppler/poppler-poppler-annot.html#poppler-annot-get-modified"> -<ANCHOR id="poppler-annot-get-name" href="poppler/poppler-poppler-annot.html#poppler-annot-get-name"> -<ANCHOR id="poppler-annot-get-type" href="poppler/poppler-poppler-annot.html#poppler-annot-get-type"> -<ANCHOR id="poppler-annot-mapping-copy" href="poppler/poppler-poppler-annot.html#poppler-annot-mapping-copy"> -<ANCHOR id="poppler-annot-mapping-free" href="poppler/poppler-poppler-annot.html#poppler-annot-mapping-free"> -<ANCHOR id="poppler-annot-mapping-get-type" href="poppler/poppler-poppler-annot.html#poppler-annot-mapping-get-type"> -<ANCHOR id="poppler-annot-mapping-new" href="poppler/poppler-poppler-annot.html#poppler-annot-mapping-new"> -<ANCHOR id="poppler-annot-markup-get-date" href="poppler/poppler-poppler-annot.html#poppler-annot-markup-get-date"> -<ANCHOR id="poppler-annot-markup-get-external-data" href="poppler/poppler-poppler-annot.html#poppler-annot-markup-get-external-data"> -<ANCHOR id="poppler-annot-markup-get-label" href="poppler/poppler-poppler-annot.html#poppler-annot-markup-get-label"> -<ANCHOR id="poppler-annot-markup-get-opacity" href="poppler/poppler-poppler-annot.html#poppler-annot-markup-get-opacity"> -<ANCHOR id="poppler-annot-markup-get-popup-is-open" href="poppler/poppler-poppler-annot.html#poppler-annot-markup-get-popup-is-open"> -<ANCHOR id="poppler-annot-markup-get-reply-to" href="poppler/poppler-poppler-annot.html#poppler-annot-markup-get-reply-to"> -<ANCHOR id="poppler-annot-markup-get-subject" href="poppler/poppler-poppler-annot.html#poppler-annot-markup-get-subject"> -<ANCHOR id="poppler-annot-markup-get-type" href="poppler/poppler-poppler-annot.html#poppler-annot-markup-get-type"> -<ANCHOR id="poppler-annot-markup-reply-type-get-type" href="poppler/poppler-poppler-annot.html#poppler-annot-markup-reply-type-get-type"> -<ANCHOR id="poppler-annot-text-get-icon" href="poppler/poppler-poppler-annot.html#poppler-annot-text-get-icon"> -<ANCHOR id="poppler-annot-text-get-is-open" href="poppler/poppler-poppler-annot.html#poppler-annot-text-get-is-open"> -<ANCHOR id="poppler-annot-text-get-state" href="poppler/poppler-poppler-annot.html#poppler-annot-text-get-state"> -<ANCHOR id="poppler-annot-text-get-type" href="poppler/poppler-poppler-annot.html#poppler-annot-text-get-type"> -<ANCHOR id="poppler-annot-text-state-get-type" href="poppler/poppler-poppler-annot.html#poppler-annot-text-state-get-type"> -<ANCHOR id="poppler-annot-type-get-type" href="poppler/poppler-poppler-annot.html#poppler-annot-type-get-type"> -<ANCHOR id="poppler-poppler-layer" href="poppler/poppler-poppler-layer.html"> -<ANCHOR id="poppler-poppler-layer.synopsis" href="poppler/poppler-poppler-layer.html#poppler-poppler-layer.synopsis"> -<ANCHOR id="poppler-poppler-layer.description" href="poppler/poppler-poppler-layer.html#poppler-poppler-layer.description"> -<ANCHOR id="poppler-poppler-layer.details" href="poppler/poppler-poppler-layer.html#poppler-poppler-layer.details"> -<ANCHOR id="poppler-layer-get-type" href="poppler/poppler-poppler-layer.html#poppler-layer-get-type"> -<ANCHOR id="poppler-layer-get-title" href="poppler/poppler-poppler-layer.html#poppler-layer-get-title"> -<ANCHOR id="poppler-layer-is-visible" href="poppler/poppler-poppler-layer.html#poppler-layer-is-visible"> -<ANCHOR id="poppler-layer-show" href="poppler/poppler-poppler-layer.html#poppler-layer-show"> -<ANCHOR id="poppler-layer-hide" href="poppler/poppler-poppler-layer.html#poppler-layer-hide"> -<ANCHOR id="poppler-layer-is-parent" href="poppler/poppler-poppler-layer.html#poppler-layer-is-parent"> -<ANCHOR id="poppler-layer-get-radio-button-group-id" href="poppler/poppler-poppler-layer.html#poppler-layer-get-radio-button-group-id"> -<ANCHOR id="poppler-poppler-features" href="poppler/poppler-poppler-features.html"> -<ANCHOR id="poppler-poppler-features.synopsis" href="poppler/poppler-poppler-features.html#poppler-poppler-features.synopsis"> -<ANCHOR id="poppler-poppler-features.description" href="poppler/poppler-poppler-features.html#poppler-poppler-features.description"> -<ANCHOR id="poppler-poppler-features.details" href="poppler/poppler-poppler-features.html#poppler-poppler-features.details"> -<ANCHOR id="POPPLER-HAS-CAIRO--CAPS" href="poppler/poppler-poppler-features.html#POPPLER-HAS-CAIRO--CAPS"> -<ANCHOR id="POPPLER-WITH-GDK--CAPS" href="poppler/poppler-poppler-features.html#POPPLER-WITH-GDK--CAPS"> -<ANCHOR id="POPPLER-MAJOR-VERSION--CAPS" href="poppler/poppler-poppler-features.html#POPPLER-MAJOR-VERSION--CAPS"> -<ANCHOR id="POPPLER-MINOR-VERSION--CAPS" href="poppler/poppler-poppler-features.html#POPPLER-MINOR-VERSION--CAPS"> -<ANCHOR id="POPPLER-MICRO-VERSION--CAPS" href="poppler/poppler-poppler-features.html#POPPLER-MICRO-VERSION--CAPS"> -<ANCHOR id="POPPLER-CHECK-VERSION--CAPS" href="poppler/poppler-poppler-features.html#POPPLER-CHECK-VERSION--CAPS"> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/left.png b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/left.png Binary files differdeleted file mode 100644 index 2d05b3d5b4a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/left.png +++ /dev/null diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-action.html b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-action.html deleted file mode 100644 index 27f85f3920a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-action.html +++ /dev/null @@ -1,386 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>PopplerAction</title> -<meta name="generator" content="DocBook XSL Stylesheets V1.75.1"> -<link rel="home" href="index.html" title="Poppler Reference Manual"> -<link rel="up" href="ch01.html" title="Poppler"> -<link rel="prev" href="poppler-poppler-page.html" title="PopplerPage"> -<link rel="next" href="poppler-poppler-attachment.html" title="PopplerAttachment"> -<meta name="generator" content="GTK-Doc V1.11 (XML mode)"> -<link rel="stylesheet" href="style.css" type="text/css"> -<link rel="chapter" href="ch01.html" title="Poppler"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> -<tr valign="middle"> -<td><a accesskey="p" href="poppler-poppler-page.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> -<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> -<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> -<th width="100%" align="center">Poppler Reference Manual</th> -<td><a accesskey="n" href="poppler-poppler-attachment.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> -</tr> -<tr><td colspan="5" class="shortcuts"> -<a href="#poppler-poppler-action.synopsis" class="shortcut">Top</a> -  | - <a href="#poppler-poppler-action.description" class="shortcut">Description</a> -</td></tr> -</table> -<div class="refentry" title="PopplerAction"> -<a name="poppler-poppler-action"></a><div class="titlepage"></div> -<div class="refnamediv"><table width="100%"><tr> -<td valign="top"> -<h2><span class="refentrytitle"><a name="poppler-poppler-action.top_of_page"></a>PopplerAction</span></h2> -<p>PopplerAction — Action links</p> -</td> -<td valign="top" align="right"></td> -</tr></table></div> -<div class="refsynopsisdiv" title="Synopsis"> -<a name="poppler-poppler-action.synopsis"></a><h2>Synopsis</h2> -<pre class="synopsis"> -enum <a class="link" href="poppler-poppler-action.html#PopplerActionType" title="enum PopplerActionType">PopplerActionType</a>; -enum <a class="link" href="poppler-poppler-action.html#PopplerDestType" title="enum PopplerDestType">PopplerDestType</a>; - <a class="link" href="poppler-poppler-action.html#PopplerActionAny" title="PopplerActionAny">PopplerActionAny</a>; - <a class="link" href="poppler-poppler-action.html#PopplerActionGotoDest" title="PopplerActionGotoDest">PopplerActionGotoDest</a>; - <a class="link" href="poppler-poppler-action.html#PopplerActionGotoRemote" title="PopplerActionGotoRemote">PopplerActionGotoRemote</a>; - <a class="link" href="poppler-poppler-action.html#PopplerActionLaunch" title="PopplerActionLaunch">PopplerActionLaunch</a>; - <a class="link" href="poppler-poppler-action.html#PopplerActionUri" title="PopplerActionUri">PopplerActionUri</a>; - <a class="link" href="poppler-poppler-action.html#PopplerActionNamed" title="PopplerActionNamed">PopplerActionNamed</a>; - <a class="link" href="poppler-poppler-action.html#PopplerActionMovie" title="PopplerActionMovie">PopplerActionMovie</a>; - <a class="link" href="poppler-poppler-action.html#PopplerDest" title="PopplerDest">PopplerDest</a>; -union <a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction">PopplerAction</a>; -#define <a class="link" href="poppler-poppler-action.html#POPPLER-TYPE-ACTION--CAPS" title="POPPLER_TYPE_ACTION">POPPLER_TYPE_ACTION</a> -#define <a class="link" href="poppler-poppler-action.html#POPPLER-ACTION--CAPS" title="POPPLER_ACTION()">POPPLER_ACTION</a> (obj) -GType <a class="link" href="poppler-poppler-action.html#poppler-action-get-type" title="poppler_action_get_type ()">poppler_action_get_type</a> (void); -<a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction">PopplerAction</a> * <a class="link" href="poppler-poppler-action.html#poppler-action-copy" title="poppler_action_copy ()">poppler_action_copy</a> (<a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction">PopplerAction</a> *action); -void <a class="link" href="poppler-poppler-action.html#poppler-action-free" title="poppler_action_free ()">poppler_action_free</a> (<a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction">PopplerAction</a> *action); -#define <a class="link" href="poppler-poppler-action.html#POPPLER-TYPE-DEST--CAPS" title="POPPLER_TYPE_DEST">POPPLER_TYPE_DEST</a> -GType <a class="link" href="poppler-poppler-action.html#poppler-dest-get-type" title="poppler_dest_get_type ()">poppler_dest_get_type</a> (void); -<a class="link" href="poppler-poppler-action.html#PopplerDest" title="PopplerDest">PopplerDest</a> * <a class="link" href="poppler-poppler-action.html#poppler-dest-copy" title="poppler_dest_copy ()">poppler_dest_copy</a> (<a class="link" href="poppler-poppler-action.html#PopplerDest" title="PopplerDest">PopplerDest</a> *dest); -void <a class="link" href="poppler-poppler-action.html#poppler-dest-free" title="poppler_dest_free ()">poppler_dest_free</a> (<a class="link" href="poppler-poppler-action.html#PopplerDest" title="PopplerDest">PopplerDest</a> *dest); -</pre> -</div> -<div class="refsect1" title="Description"> -<a name="poppler-poppler-action.description"></a><h2>Description</h2> -<p> -</p> -</div> -<div class="refsect1" title="Details"> -<a name="poppler-poppler-action.details"></a><h2>Details</h2> -<div class="refsect2" title="enum PopplerActionType"> -<a name="PopplerActionType"></a><h3>enum PopplerActionType</h3> -<pre class="programlisting">typedef enum -{ - POPPLER_ACTION_UNKNOWN, /* unknown action */ - POPPLER_ACTION_NONE, /* no action specified */ - POPPLER_ACTION_GOTO_DEST, /* go to destination */ - POPPLER_ACTION_GOTO_REMOTE, /* go to destination in new file */ - POPPLER_ACTION_LAUNCH, /* launch app (or open document) */ - POPPLER_ACTION_URI, /* URI */ - POPPLER_ACTION_NAMED, /* named action*/ - POPPLER_ACTION_MOVIE /* movie action */ -} PopplerActionType; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="enum PopplerDestType"> -<a name="PopplerDestType"></a><h3>enum PopplerDestType</h3> -<pre class="programlisting">typedef enum -{ - POPPLER_DEST_UNKNOWN, - POPPLER_DEST_XYZ, - POPPLER_DEST_FIT, - POPPLER_DEST_FITH, - POPPLER_DEST_FITV, - POPPLER_DEST_FITR, - POPPLER_DEST_FITB, - POPPLER_DEST_FITBH, - POPPLER_DEST_FITBV, - POPPLER_DEST_NAMED -} PopplerDestType; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerActionAny"> -<a name="PopplerActionAny"></a><h3>PopplerActionAny</h3> -<pre class="programlisting">typedef struct { - PopplerActionType type; - gchar *title; -} PopplerActionAny; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerActionGotoDest"> -<a name="PopplerActionGotoDest"></a><h3>PopplerActionGotoDest</h3> -<pre class="programlisting">typedef struct { - PopplerActionType type; - gchar *title; - - PopplerDest *dest; -} PopplerActionGotoDest; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerActionGotoRemote"> -<a name="PopplerActionGotoRemote"></a><h3>PopplerActionGotoRemote</h3> -<pre class="programlisting">typedef struct { - PopplerActionType type; - gchar *title; - - gchar *file_name; - PopplerDest *dest; -} PopplerActionGotoRemote; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerActionLaunch"> -<a name="PopplerActionLaunch"></a><h3>PopplerActionLaunch</h3> -<pre class="programlisting">typedef struct { - PopplerActionType type; - gchar *title; - - gchar *file_name; - gchar *params; -} PopplerActionLaunch; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerActionUri"> -<a name="PopplerActionUri"></a><h3>PopplerActionUri</h3> -<pre class="programlisting">typedef struct { - PopplerActionType type; - gchar *title; - - char *uri; -} PopplerActionUri; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerActionNamed"> -<a name="PopplerActionNamed"></a><h3>PopplerActionNamed</h3> -<pre class="programlisting">typedef struct { - PopplerActionType type; - gchar *title; - - gchar *named_dest; -} PopplerActionNamed; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerActionMovie"> -<a name="PopplerActionMovie"></a><h3>PopplerActionMovie</h3> -<pre class="programlisting">typedef struct { - PopplerActionType type; - gchar *title; -} PopplerActionMovie; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerDest"> -<a name="PopplerDest"></a><h3>PopplerDest</h3> -<pre class="programlisting">typedef struct { - PopplerDestType type; - - int page_num; - double left; - double bottom; - double right; - double top; - double zoom; - gchar *named_dest; - guint change_left : 1; - guint change_top : 1; - guint change_zoom : 1; -} PopplerDest; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="union PopplerAction"> -<a name="PopplerAction"></a><h3>union PopplerAction</h3> -<pre class="programlisting">union PopplerAction -{ - PopplerActionType type; - PopplerActionAny any; - PopplerActionGotoDest goto_dest; - PopplerActionGotoRemote goto_remote; - PopplerActionLaunch launch; - PopplerActionUri uri; - PopplerActionNamed named; - PopplerActionMovie movie; -}; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_ACTION"> -<a name="POPPLER-TYPE-ACTION--CAPS"></a><h3>POPPLER_TYPE_ACTION</h3> -<pre class="programlisting">#define POPPLER_TYPE_ACTION (poppler_action_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="POPPLER_ACTION()"> -<a name="POPPLER-ACTION--CAPS"></a><h3>POPPLER_ACTION()</h3> -<pre class="programlisting">#define POPPLER_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_ACTION, PopplerAction)) -</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>obj</code></em> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_action_get_type ()"> -<a name="poppler-action-get-type"></a><h3>poppler_action_get_type ()</h3> -<pre class="programlisting">GType poppler_action_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_action_copy ()"> -<a name="poppler-action-copy"></a><h3>poppler_action_copy ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction">PopplerAction</a> * poppler_action_copy (<a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction">PopplerAction</a> *action);</pre> -<p> -Copies <em class="parameter"><code>action</code></em>, creating an identical <a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction"><span class="type">PopplerAction</span></a>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction"><span class="type">PopplerAction</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new action identical to <em class="parameter"><code>action</code></em> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_action_free ()"> -<a name="poppler-action-free"></a><h3>poppler_action_free ()</h3> -<pre class="programlisting">void poppler_action_free (<a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction">PopplerAction</a> *action);</pre> -<p> -Frees <em class="parameter"><code>action</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction"><span class="type">PopplerAction</span></a> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_DEST"> -<a name="POPPLER-TYPE-DEST--CAPS"></a><h3>POPPLER_TYPE_DEST</h3> -<pre class="programlisting">#define POPPLER_TYPE_DEST (poppler_dest_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_dest_get_type ()"> -<a name="poppler-dest-get-type"></a><h3>poppler_dest_get_type ()</h3> -<pre class="programlisting">GType poppler_dest_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_dest_copy ()"> -<a name="poppler-dest-copy"></a><h3>poppler_dest_copy ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-action.html#PopplerDest" title="PopplerDest">PopplerDest</a> * poppler_dest_copy (<a class="link" href="poppler-poppler-action.html#PopplerDest" title="PopplerDest">PopplerDest</a> *dest);</pre> -<p> -Copies <em class="parameter"><code>dest</code></em>, creating an identical <a class="link" href="poppler-poppler-action.html#PopplerDest" title="PopplerDest"><span class="type">PopplerDest</span></a>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>dest</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-action.html#PopplerDest" title="PopplerDest"><span class="type">PopplerDest</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new destination identical to <em class="parameter"><code>dest</code></em> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_dest_free ()"> -<a name="poppler-dest-free"></a><h3>poppler_dest_free ()</h3> -<pre class="programlisting">void poppler_dest_free (<a class="link" href="poppler-poppler-action.html#PopplerDest" title="PopplerDest">PopplerDest</a> *dest);</pre> -<p> -Frees <em class="parameter"><code>dest</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>dest</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-action.html#PopplerDest" title="PopplerDest"><span class="type">PopplerDest</span></a> -</td> -</tr></tbody> -</table></div> -</div> -</div> -</div> -<div class="footer"> -<hr> - Generated by GTK-Doc V1.11</div> -</body> -</html> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-annot.html b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-annot.html deleted file mode 100644 index 4713634826d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-annot.html +++ /dev/null @@ -1,854 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>PopplerAnnot</title> -<meta name="generator" content="DocBook XSL Stylesheets V1.75.1"> -<link rel="home" href="index.html" title="Poppler Reference Manual"> -<link rel="up" href="ch01.html" title="Poppler"> -<link rel="prev" href="poppler-poppler-enums.html" title="poppler-enums"> -<link rel="next" href="poppler-poppler-layer.html" title="PopplerLayer"> -<meta name="generator" content="GTK-Doc V1.11 (XML mode)"> -<link rel="stylesheet" href="style.css" type="text/css"> -<link rel="chapter" href="ch01.html" title="Poppler"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> -<tr valign="middle"> -<td><a accesskey="p" href="poppler-poppler-enums.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> -<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> -<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> -<th width="100%" align="center">Poppler Reference Manual</th> -<td><a accesskey="n" href="poppler-poppler-layer.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> -</tr> -<tr><td colspan="5" class="shortcuts"> -<a href="#poppler-poppler-annot.synopsis" class="shortcut">Top</a> -  | - <a href="#poppler-poppler-annot.description" class="shortcut">Description</a> -</td></tr> -</table> -<div class="refentry" title="PopplerAnnot"> -<a name="poppler-poppler-annot"></a><div class="titlepage"></div> -<div class="refnamediv"><table width="100%"><tr> -<td valign="top"> -<h2><span class="refentrytitle"><a name="poppler-poppler-annot.top_of_page"></a>PopplerAnnot</span></h2> -<p>PopplerAnnot — Annotations</p> -</td> -<td valign="top" align="right"></td> -</tr></table></div> -<div class="refsynopsisdiv" title="Synopsis"> -<a name="poppler-poppler-annot.synopsis"></a><h2>Synopsis</h2> -<pre class="synopsis"> - <a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot">PopplerAnnot</a>; -PopplerAnnotCalloutLine * <a class="link" href="poppler-poppler-annot.html#poppler-annot-callout-line-copy" title="poppler_annot_callout_line_copy ()">poppler_annot_callout_line_copy</a> - (PopplerAnnotCalloutLine *callout); -void <a class="link" href="poppler-poppler-annot.html#poppler-annot-callout-line-free" title="poppler_annot_callout_line_free ()">poppler_annot_callout_line_free</a> (PopplerAnnotCalloutLine *callout); -GType <a class="link" href="poppler-poppler-annot.html#poppler-annot-callout-line-get-type" title="poppler_annot_callout_line_get_type ()">poppler_annot_callout_line_get_type</a> (void); -PopplerAnnotCalloutLine * <a class="link" href="poppler-poppler-annot.html#poppler-annot-callout-line-new" title="poppler_annot_callout_line_new ()">poppler_annot_callout_line_new</a> - (void); -GType <a class="link" href="poppler-poppler-annot.html#poppler-annot-external-data-type-get-type" title="poppler_annot_external_data_type_get_type ()">poppler_annot_external_data_type_get_type</a> - (void); -GType <a class="link" href="poppler-poppler-annot.html#poppler-annot-flag-get-type" title="poppler_annot_flag_get_type ()">poppler_annot_flag_get_type</a> (void); -PopplerAnnotCalloutLine * <a class="link" href="poppler-poppler-annot.html#poppler-annot-free-text-get-callout-line" title="poppler_annot_free_text_get_callout_line ()">poppler_annot_free_text_get_callout_line</a> - (PopplerAnnotFreeText *poppler_annot); -PopplerAnnotFreeTextQuadding <a class="link" href="poppler-poppler-annot.html#poppler-annot-free-text-get-quadding" title="poppler_annot_free_text_get_quadding ()">poppler_annot_free_text_get_quadding</a> - (PopplerAnnotFreeText *poppler_annot); -GType <a class="link" href="poppler-poppler-annot.html#poppler-annot-free-text-get-type" title="poppler_annot_free_text_get_type ()">poppler_annot_free_text_get_type</a> (void); -GType <a class="link" href="poppler-poppler-annot.html#poppler-annot-free-text-quadding-get-type" title="poppler_annot_free_text_quadding_get_type ()">poppler_annot_free_text_quadding_get_type</a> - (void); -PopplerAnnotType <a class="link" href="poppler-poppler-annot.html#poppler-annot-get-annot-type" title="poppler_annot_get_annot_type ()">poppler_annot_get_annot_type</a> (<a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot">PopplerAnnot</a> *poppler_annot); -PopplerColor * <a class="link" href="poppler-poppler-annot.html#poppler-annot-get-color" title="poppler_annot_get_color ()">poppler_annot_get_color</a> (<a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot">PopplerAnnot</a> *poppler_annot); -gchar * <a class="link" href="poppler-poppler-annot.html#poppler-annot-get-contents" title="poppler_annot_get_contents ()">poppler_annot_get_contents</a> (<a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot">PopplerAnnot</a> *poppler_annot); -PopplerAnnotFlag <a class="link" href="poppler-poppler-annot.html#poppler-annot-get-flags" title="poppler_annot_get_flags ()">poppler_annot_get_flags</a> (<a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot">PopplerAnnot</a> *poppler_annot); -gchar * <a class="link" href="poppler-poppler-annot.html#poppler-annot-get-modified" title="poppler_annot_get_modified ()">poppler_annot_get_modified</a> (<a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot">PopplerAnnot</a> *poppler_annot); -gchar * <a class="link" href="poppler-poppler-annot.html#poppler-annot-get-name" title="poppler_annot_get_name ()">poppler_annot_get_name</a> (<a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot">PopplerAnnot</a> *poppler_annot); -GType <a class="link" href="poppler-poppler-annot.html#poppler-annot-get-type" title="poppler_annot_get_type ()">poppler_annot_get_type</a> (void); -PopplerAnnotMapping * <a class="link" href="poppler-poppler-annot.html#poppler-annot-mapping-copy" title="poppler_annot_mapping_copy ()">poppler_annot_mapping_copy</a> (PopplerAnnotMapping *mapping); -void <a class="link" href="poppler-poppler-annot.html#poppler-annot-mapping-free" title="poppler_annot_mapping_free ()">poppler_annot_mapping_free</a> (PopplerAnnotMapping *mapping); -GType <a class="link" href="poppler-poppler-annot.html#poppler-annot-mapping-get-type" title="poppler_annot_mapping_get_type ()">poppler_annot_mapping_get_type</a> (void); -PopplerAnnotMapping * <a class="link" href="poppler-poppler-annot.html#poppler-annot-mapping-new" title="poppler_annot_mapping_new ()">poppler_annot_mapping_new</a> (void); -GDate * <a class="link" href="poppler-poppler-annot.html#poppler-annot-markup-get-date" title="poppler_annot_markup_get_date ()">poppler_annot_markup_get_date</a> (PopplerAnnotMarkup *poppler_annot); -PopplerAnnotExternalDataType <a class="link" href="poppler-poppler-annot.html#poppler-annot-markup-get-external-data" title="poppler_annot_markup_get_external_data ()">poppler_annot_markup_get_external_data</a> - (PopplerAnnotMarkup *poppler_annot); -gchar * <a class="link" href="poppler-poppler-annot.html#poppler-annot-markup-get-label" title="poppler_annot_markup_get_label ()">poppler_annot_markup_get_label</a> (PopplerAnnotMarkup *poppler_annot); -gdouble <a class="link" href="poppler-poppler-annot.html#poppler-annot-markup-get-opacity" title="poppler_annot_markup_get_opacity ()">poppler_annot_markup_get_opacity</a> (PopplerAnnotMarkup *poppler_annot); -gboolean <a class="link" href="poppler-poppler-annot.html#poppler-annot-markup-get-popup-is-open" title="poppler_annot_markup_get_popup_is_open ()">poppler_annot_markup_get_popup_is_open</a> - (PopplerAnnotMarkup *poppler_annot); -PopplerAnnotMarkupReplyType <a class="link" href="poppler-poppler-annot.html#poppler-annot-markup-get-reply-to" title="poppler_annot_markup_get_reply_to ()">poppler_annot_markup_get_reply_to</a> - (PopplerAnnotMarkup *poppler_annot); -gchar * <a class="link" href="poppler-poppler-annot.html#poppler-annot-markup-get-subject" title="poppler_annot_markup_get_subject ()">poppler_annot_markup_get_subject</a> (PopplerAnnotMarkup *poppler_annot); -GType <a class="link" href="poppler-poppler-annot.html#poppler-annot-markup-get-type" title="poppler_annot_markup_get_type ()">poppler_annot_markup_get_type</a> (void); -GType <a class="link" href="poppler-poppler-annot.html#poppler-annot-markup-reply-type-get-type" title="poppler_annot_markup_reply_type_get_type ()">poppler_annot_markup_reply_type_get_type</a> - (void); -gchar * <a class="link" href="poppler-poppler-annot.html#poppler-annot-text-get-icon" title="poppler_annot_text_get_icon ()">poppler_annot_text_get_icon</a> (PopplerAnnotText *poppler_annot); -gboolean <a class="link" href="poppler-poppler-annot.html#poppler-annot-text-get-is-open" title="poppler_annot_text_get_is_open ()">poppler_annot_text_get_is_open</a> (PopplerAnnotText *poppler_annot); -PopplerAnnotTextState <a class="link" href="poppler-poppler-annot.html#poppler-annot-text-get-state" title="poppler_annot_text_get_state ()">poppler_annot_text_get_state</a> (PopplerAnnotText *poppler_annot); -GType <a class="link" href="poppler-poppler-annot.html#poppler-annot-text-get-type" title="poppler_annot_text_get_type ()">poppler_annot_text_get_type</a> (void); -GType <a class="link" href="poppler-poppler-annot.html#poppler-annot-text-state-get-type" title="poppler_annot_text_state_get_type ()">poppler_annot_text_state_get_type</a> (void); -GType <a class="link" href="poppler-poppler-annot.html#poppler-annot-type-get-type" title="poppler_annot_type_get_type ()">poppler_annot_type_get_type</a> (void); -</pre> -</div> -<div class="refsect1" title="Description"> -<a name="poppler-poppler-annot.description"></a><h2>Description</h2> -<p> -</p> -</div> -<div class="refsect1" title="Details"> -<a name="poppler-poppler-annot.details"></a><h2>Details</h2> -<div class="refsect2" title="PopplerAnnot"> -<a name="PopplerAnnot"></a><h3>PopplerAnnot</h3> -<pre class="programlisting">typedef struct _PopplerAnnot PopplerAnnot;</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_annot_callout_line_copy ()"> -<a name="poppler-annot-callout-line-copy"></a><h3>poppler_annot_callout_line_copy ()</h3> -<pre class="programlisting">PopplerAnnotCalloutLine * poppler_annot_callout_line_copy - (PopplerAnnotCalloutLine *callout);</pre> -<p> -It does copy <em class="parameter"><code>callout</code></em> to a new <span class="type">PopplerAnnotCalloutLine</span>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>callout</code></em> :</span></p></td> -<td> the <span class="type">PopplerAnnotCalloutline</span> to be copied. -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new allocated <span class="type">PopplerAnnotCalloutLine</span> as exact copy of - <em class="parameter"><code>callout</code></em>, NULL in other case. It must be freed when done. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_callout_line_free ()"> -<a name="poppler-annot-callout-line-free"></a><h3>poppler_annot_callout_line_free ()</h3> -<pre class="programlisting">void poppler_annot_callout_line_free (PopplerAnnotCalloutLine *callout);</pre> -<p> -Frees the memory used by <span class="type">PopplerAnnotCalloutLine</span>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>callout</code></em> :</span></p></td> -<td> a <span class="type">PopplerAnnotCalloutLine</span> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_callout_line_get_type ()"> -<a name="poppler-annot-callout-line-get-type"></a><h3>poppler_annot_callout_line_get_type ()</h3> -<pre class="programlisting">GType poppler_annot_callout_line_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_callout_line_new ()"> -<a name="poppler-annot-callout-line-new"></a><h3>poppler_annot_callout_line_new ()</h3> -<pre class="programlisting">PopplerAnnotCalloutLine * poppler_annot_callout_line_new - (void);</pre> -<p> -Creates a new empty <span class="type">PopplerAnnotCalloutLine</span>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new allocated <span class="type">PopplerAnnotCalloutLine</span>, NULL in other case. - It must be freed when done. -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_external_data_type_get_type ()"> -<a name="poppler-annot-external-data-type-get-type"></a><h3>poppler_annot_external_data_type_get_type ()</h3> -<pre class="programlisting">GType poppler_annot_external_data_type_get_type - (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_flag_get_type ()"> -<a name="poppler-annot-flag-get-type"></a><h3>poppler_annot_flag_get_type ()</h3> -<pre class="programlisting">GType poppler_annot_flag_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_free_text_get_callout_line ()"> -<a name="poppler-annot-free-text-get-callout-line"></a><h3>poppler_annot_free_text_get_callout_line ()</h3> -<pre class="programlisting">PopplerAnnotCalloutLine * poppler_annot_free_text_get_callout_line - (PopplerAnnotFreeText *poppler_annot);</pre> -<p> -Retrieves a <span class="type">PopplerCalloutLine</span> of four or six numbers specifying a callout -line attached to the <em class="parameter"><code>poppler_annot</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <span class="type">PopplerAnnotFreeText</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new allocated <span class="type">PopplerCalloutLine</span> if the annot has a callout - line, NULL in other case. It must be freed with <code class="function">g_free()</code> when - done. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_free_text_get_quadding ()"> -<a name="poppler-annot-free-text-get-quadding"></a><h3>poppler_annot_free_text_get_quadding ()</h3> -<pre class="programlisting">PopplerAnnotFreeTextQuadding poppler_annot_free_text_get_quadding - (PopplerAnnotFreeText *poppler_annot);</pre> -<p> -Retrieves the justification of the text of <em class="parameter"><code>poppler_annot</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <span class="type">PopplerAnnotFreeText</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <span class="type">PopplerAnnotFreeTextQuadding</span> of <em class="parameter"><code>poppler_annot</code></em>. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_free_text_get_type ()"> -<a name="poppler-annot-free-text-get-type"></a><h3>poppler_annot_free_text_get_type ()</h3> -<pre class="programlisting">GType poppler_annot_free_text_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_free_text_quadding_get_type ()"> -<a name="poppler-annot-free-text-quadding-get-type"></a><h3>poppler_annot_free_text_quadding_get_type ()</h3> -<pre class="programlisting">GType poppler_annot_free_text_quadding_get_type - (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_get_annot_type ()"> -<a name="poppler-annot-get-annot-type"></a><h3>poppler_annot_get_annot_type ()</h3> -<pre class="programlisting">PopplerAnnotType poppler_annot_get_annot_type (<a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot">PopplerAnnot</a> *poppler_annot);</pre> -<p> -Gets the type of <em class="parameter"><code>poppler_annot</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot"><span class="type">PopplerAnnot</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <span class="type">PopplerAnnotType</span> of <em class="parameter"><code>poppler_annot</code></em>. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_get_color ()"> -<a name="poppler-annot-get-color"></a><h3>poppler_annot_get_color ()</h3> -<pre class="programlisting">PopplerColor * poppler_annot_get_color (<a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot">PopplerAnnot</a> *poppler_annot);</pre> -<p> -Retrieves the color of <em class="parameter"><code>poppler_annot</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot"><span class="type">PopplerAnnot</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new allocated <span class="type">PopplerColor</span> with the color values of - <em class="parameter"><code>poppler_annot</code></em>, or <code class="literal">NULL</code>. It must be freed with <code class="function">g_free()</code> when done. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_get_contents ()"> -<a name="poppler-annot-get-contents"></a><h3>poppler_annot_get_contents ()</h3> -<pre class="programlisting">gchar * poppler_annot_get_contents (<a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot">PopplerAnnot</a> *poppler_annot);</pre> -<p> -Retrieves the contents of <em class="parameter"><code>poppler_annot</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot"><span class="type">PopplerAnnot</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new allocated string with the contents of <em class="parameter"><code>poppler_annot</code></em>. It - must be freed with <code class="function">g_free()</code> when done. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_get_flags ()"> -<a name="poppler-annot-get-flags"></a><h3>poppler_annot_get_flags ()</h3> -<pre class="programlisting">PopplerAnnotFlag poppler_annot_get_flags (<a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot">PopplerAnnot</a> *poppler_annot);</pre> -<p> -Retrieves the flag field specifying various characteristics of the -<em class="parameter"><code>poppler_annot</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot"><span class="type">PopplerAnnot</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> the flag field of <em class="parameter"><code>poppler_annot</code></em>. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_get_modified ()"> -<a name="poppler-annot-get-modified"></a><h3>poppler_annot_get_modified ()</h3> -<pre class="programlisting">gchar * poppler_annot_get_modified (<a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot">PopplerAnnot</a> *poppler_annot);</pre> -<p> -Retrieves the last modification data of <em class="parameter"><code>poppler_annot</code></em>. The returned -string will be either a PDF format date or a text string. -See also #<code class="function">poppler_date_parse()</code></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot"><span class="type">PopplerAnnot</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new allocated string with the last modification data of - <em class="parameter"><code>poppler_annot</code></em>. It must be freed with <code class="function">g_free()</code> when done. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_get_name ()"> -<a name="poppler-annot-get-name"></a><h3>poppler_annot_get_name ()</h3> -<pre class="programlisting">gchar * poppler_annot_get_name (<a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot">PopplerAnnot</a> *poppler_annot);</pre> -<p> -Retrieves the name of <em class="parameter"><code>poppler_annot</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-annot.html#PopplerAnnot" title="PopplerAnnot"><span class="type">PopplerAnnot</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new allocated string with the name of <em class="parameter"><code>poppler_annot</code></em>. It must - be freed with <code class="function">g_free()</code> when done. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_get_type ()"> -<a name="poppler-annot-get-type"></a><h3>poppler_annot_get_type ()</h3> -<pre class="programlisting">GType poppler_annot_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_mapping_copy ()"> -<a name="poppler-annot-mapping-copy"></a><h3>poppler_annot_mapping_copy ()</h3> -<pre class="programlisting">PopplerAnnotMapping * poppler_annot_mapping_copy (PopplerAnnotMapping *mapping);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>mapping</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_mapping_free ()"> -<a name="poppler-annot-mapping-free"></a><h3>poppler_annot_mapping_free ()</h3> -<pre class="programlisting">void poppler_annot_mapping_free (PopplerAnnotMapping *mapping);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>mapping</code></em> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_mapping_get_type ()"> -<a name="poppler-annot-mapping-get-type"></a><h3>poppler_annot_mapping_get_type ()</h3> -<pre class="programlisting">GType poppler_annot_mapping_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_mapping_new ()"> -<a name="poppler-annot-mapping-new"></a><h3>poppler_annot_mapping_new ()</h3> -<pre class="programlisting">PopplerAnnotMapping * poppler_annot_mapping_new (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_markup_get_date ()"> -<a name="poppler-annot-markup-get-date"></a><h3>poppler_annot_markup_get_date ()</h3> -<pre class="programlisting">GDate * poppler_annot_markup_get_date (PopplerAnnotMarkup *poppler_annot);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_markup_get_external_data ()"> -<a name="poppler-annot-markup-get-external-data"></a><h3>poppler_annot_markup_get_external_data ()</h3> -<pre class="programlisting">PopplerAnnotExternalDataType poppler_annot_markup_get_external_data - (PopplerAnnotMarkup *poppler_annot);</pre> -<p> -Gets the external data type of <em class="parameter"><code>poppler_annot</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <span class="type">PopplerAnnotMarkup</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <span class="type">PopplerAnnotExternalDataType</span> of <em class="parameter"><code>poppler_annot</code></em>. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_markup_get_label ()"> -<a name="poppler-annot-markup-get-label"></a><h3>poppler_annot_markup_get_label ()</h3> -<pre class="programlisting">gchar * poppler_annot_markup_get_label (PopplerAnnotMarkup *poppler_annot);</pre> -<p> -Retrieves the label text of <em class="parameter"><code>poppler_annot</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <span class="type">PopplerAnnotMarkup</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> the label text of <em class="parameter"><code>poppler_annot</code></em>. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_markup_get_opacity ()"> -<a name="poppler-annot-markup-get-opacity"></a><h3>poppler_annot_markup_get_opacity ()</h3> -<pre class="programlisting">gdouble poppler_annot_markup_get_opacity (PopplerAnnotMarkup *poppler_annot);</pre> -<p> -Retrieves the opacity value of <em class="parameter"><code>poppler_annot</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <span class="type">PopplerAnnotMarkup</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> the opacity value of <em class="parameter"><code>poppler_annot</code></em>. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_markup_get_popup_is_open ()"> -<a name="poppler-annot-markup-get-popup-is-open"></a><h3>poppler_annot_markup_get_popup_is_open ()</h3> -<pre class="programlisting">gboolean poppler_annot_markup_get_popup_is_open - (PopplerAnnotMarkup *poppler_annot);</pre> -<p> -Retrieves the state of the popup annot related to <em class="parameter"><code>poppler_annot</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <span class="type">PopplerAnnotMarkup</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> the state of <em class="parameter"><code>poppler_annot</code></em>. <code class="literal">TRUE</code> if it's open, <code class="literal">FALSE</code> in - other case. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_markup_get_reply_to ()"> -<a name="poppler-annot-markup-get-reply-to"></a><h3>poppler_annot_markup_get_reply_to ()</h3> -<pre class="programlisting">PopplerAnnotMarkupReplyType poppler_annot_markup_get_reply_to - (PopplerAnnotMarkup *poppler_annot);</pre> -<p> -Gets the reply type of <em class="parameter"><code>poppler_annot</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <span class="type">PopplerAnnotMarkup</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <span class="type">PopplerAnnotMarkupReplyType</span> of <em class="parameter"><code>poppler_annot</code></em>. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_markup_get_subject ()"> -<a name="poppler-annot-markup-get-subject"></a><h3>poppler_annot_markup_get_subject ()</h3> -<pre class="programlisting">gchar * poppler_annot_markup_get_subject (PopplerAnnotMarkup *poppler_annot);</pre> -<p> -Retrives the subject text of <em class="parameter"><code>poppler_annot</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <span class="type">PopplerAnnotMarkup</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> the subject text of <em class="parameter"><code>poppler_annot</code></em>. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_markup_get_type ()"> -<a name="poppler-annot-markup-get-type"></a><h3>poppler_annot_markup_get_type ()</h3> -<pre class="programlisting">GType poppler_annot_markup_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_markup_reply_type_get_type ()"> -<a name="poppler-annot-markup-reply-type-get-type"></a><h3>poppler_annot_markup_reply_type_get_type ()</h3> -<pre class="programlisting">GType poppler_annot_markup_reply_type_get_type - (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_text_get_icon ()"> -<a name="poppler-annot-text-get-icon"></a><h3>poppler_annot_text_get_icon ()</h3> -<pre class="programlisting">gchar * poppler_annot_text_get_icon (PopplerAnnotText *poppler_annot);</pre> -<p> -Gets the icon type of <em class="parameter"><code>poppler_annot</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <span class="type">PopplerAnnotText</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <span class="type">PopplerAnnotTextIcon</span> of <em class="parameter"><code>poppler_annot</code></em>. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_text_get_is_open ()"> -<a name="poppler-annot-text-get-is-open"></a><h3>poppler_annot_text_get_is_open ()</h3> -<pre class="programlisting">gboolean poppler_annot_text_get_is_open (PopplerAnnotText *poppler_annot);</pre> -<p> -Retrieves the state of <em class="parameter"><code>poppler_annot</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <span class="type">PopplerAnnotText</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> the state of <em class="parameter"><code>poppler_annot</code></em>. <code class="literal">TRUE</code> if it's open, <code class="literal">FALSE</code> in - other case. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_text_get_state ()"> -<a name="poppler-annot-text-get-state"></a><h3>poppler_annot_text_get_state ()</h3> -<pre class="programlisting">PopplerAnnotTextState poppler_annot_text_get_state (PopplerAnnotText *poppler_annot);</pre> -<p> -Retrieves the state of <em class="parameter"><code>poppler_annot</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>poppler_annot</code></em> :</span></p></td> -<td> a <span class="type">PopplerAnnotText</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <span class="type">PopplerAnnotTextState</span> of <em class="parameter"><code>poppler_annot</code></em>. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_text_get_type ()"> -<a name="poppler-annot-text-get-type"></a><h3>poppler_annot_text_get_type ()</h3> -<pre class="programlisting">GType poppler_annot_text_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_text_state_get_type ()"> -<a name="poppler-annot-text-state-get-type"></a><h3>poppler_annot_text_state_get_type ()</h3> -<pre class="programlisting">GType poppler_annot_text_state_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_annot_type_get_type ()"> -<a name="poppler-annot-type-get-type"></a><h3>poppler_annot_type_get_type ()</h3> -<pre class="programlisting">GType poppler_annot_type_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -</div> -</div> -<div class="footer"> -<hr> - Generated by GTK-Doc V1.11</div> -</body> -</html> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-attachment.html b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-attachment.html deleted file mode 100644 index 25346664097..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-attachment.html +++ /dev/null @@ -1,205 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>PopplerAttachment</title> -<meta name="generator" content="DocBook XSL Stylesheets V1.75.1"> -<link rel="home" href="index.html" title="Poppler Reference Manual"> -<link rel="up" href="ch01.html" title="Poppler"> -<link rel="prev" href="poppler-poppler-action.html" title="PopplerAction"> -<link rel="next" href="poppler-poppler-form-field.html" title="PopplerFormField"> -<meta name="generator" content="GTK-Doc V1.11 (XML mode)"> -<link rel="stylesheet" href="style.css" type="text/css"> -<link rel="chapter" href="ch01.html" title="Poppler"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> -<tr valign="middle"> -<td><a accesskey="p" href="poppler-poppler-action.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> -<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> -<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> -<th width="100%" align="center">Poppler Reference Manual</th> -<td><a accesskey="n" href="poppler-poppler-form-field.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> -</tr> -<tr><td colspan="5" class="shortcuts"> -<a href="#poppler-poppler-attachment.synopsis" class="shortcut">Top</a> -  | - <a href="#poppler-poppler-attachment.description" class="shortcut">Description</a> -</td></tr> -</table> -<div class="refentry" title="PopplerAttachment"> -<a name="poppler-poppler-attachment"></a><div class="titlepage"></div> -<div class="refnamediv"><table width="100%"><tr> -<td valign="top"> -<h2><span class="refentrytitle"><a name="poppler-poppler-attachment.top_of_page"></a>PopplerAttachment</span></h2> -<p>PopplerAttachment</p> -</td> -<td valign="top" align="right"></td> -</tr></table></div> -<div class="refsynopsisdiv" title="Synopsis"> -<a name="poppler-poppler-attachment.synopsis"></a><h2>Synopsis</h2> -<a name="PopplerAttachment"></a><pre class="synopsis"> - <a class="link" href="poppler-poppler-attachment.html#PopplerAttachment-struct" title="PopplerAttachment">PopplerAttachment</a>; -gboolean <a class="link" href="poppler-poppler-attachment.html#poppler-attachment-save" title="poppler_attachment_save ()">poppler_attachment_save</a> (<a class="link" href="poppler-poppler-attachment.html#PopplerAttachment">PopplerAttachment</a> *attachment, - const char *filename, - GError **error); -gboolean <a class="link" href="poppler-poppler-attachment.html#poppler-attachment-save-to-callback" title="poppler_attachment_save_to_callback ()">poppler_attachment_save_to_callback</a> (<a class="link" href="poppler-poppler-attachment.html#PopplerAttachment">PopplerAttachment</a> *attachment, - <a class="link" href="poppler-poppler-attachment.html#PopplerAttachmentSaveFunc" title="PopplerAttachmentSaveFunc ()">PopplerAttachmentSaveFunc</a> save_func, - gpointer user_data, - GError **error); -gboolean (<a class="link" href="poppler-poppler-attachment.html#PopplerAttachmentSaveFunc" title="PopplerAttachmentSaveFunc ()">*PopplerAttachmentSaveFunc</a>) (const gchar *buf, - gsize count, - gpointer data, - GError **error); -</pre> -</div> -<div class="refsect1" title="Description"> -<a name="poppler-poppler-attachment.description"></a><h2>Description</h2> -<p> -</p> -</div> -<div class="refsect1" title="Details"> -<a name="poppler-poppler-attachment.details"></a><h2>Details</h2> -<div class="refsect2" title="PopplerAttachment"> -<a name="PopplerAttachment-struct"></a><h3>PopplerAttachment</h3> -<pre class="programlisting">typedef struct _PopplerAttachment PopplerAttachment;</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_attachment_save ()"> -<a name="poppler-attachment-save"></a><h3>poppler_attachment_save ()</h3> -<pre class="programlisting">gboolean poppler_attachment_save (<a class="link" href="poppler-poppler-attachment.html#PopplerAttachment">PopplerAttachment</a> *attachment, - const char *filename, - GError **error);</pre> -<p> -Saves <em class="parameter"><code>attachment</code></em> to a file indicated by <em class="parameter"><code>filename</code></em>. If <em class="parameter"><code>error</code></em> is set, <code class="literal">FALSE</code> -will be returned. Possible errors include those in the <span class="type">G_FILE_ERROR</span> domain -and whatever the save function generates.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>attachment</code></em> :</span></p></td> -<td> A <a class="link" href="poppler-poppler-attachment.html#PopplerAttachment"><span class="type">PopplerAttachment</span></a>. -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td> -<td> name of file to save -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td> -<td> return location for error, or <code class="literal">NULL</code>. -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code>, if the file successfully saved -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_attachment_save_to_callback ()"> -<a name="poppler-attachment-save-to-callback"></a><h3>poppler_attachment_save_to_callback ()</h3> -<pre class="programlisting">gboolean poppler_attachment_save_to_callback (<a class="link" href="poppler-poppler-attachment.html#PopplerAttachment">PopplerAttachment</a> *attachment, - <a class="link" href="poppler-poppler-attachment.html#PopplerAttachmentSaveFunc" title="PopplerAttachmentSaveFunc ()">PopplerAttachmentSaveFunc</a> save_func, - gpointer user_data, - GError **error);</pre> -<p> -Saves <em class="parameter"><code>attachment</code></em> by feeding the produced data to <em class="parameter"><code>save_func</code></em>. Can be used -when you want to store the attachment to something other than a file, such as -an in-memory buffer or a socket. If <em class="parameter"><code>error</code></em> is set, <code class="literal">FALSE</code> will be -returned. Possible errors include those in the <span class="type">G_FILE_ERROR</span> domain and -whatever the save function generates.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>attachment</code></em> :</span></p></td> -<td> A <a class="link" href="poppler-poppler-attachment.html#PopplerAttachment"><span class="type">PopplerAttachment</span></a>. -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>save_func</code></em> :</span></p></td> -<td> a function that is called to save each block of data that the save routine generates. -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td> -<td> user data to pass to the save function. -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td> -<td> return location for error, or <code class="literal">NULL</code>. -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code>, if the save successfully completed -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="PopplerAttachmentSaveFunc ()"> -<a name="PopplerAttachmentSaveFunc"></a><h3>PopplerAttachmentSaveFunc ()</h3> -<pre class="programlisting">gboolean (*PopplerAttachmentSaveFunc) (const gchar *buf, - gsize count, - gpointer data, - GError **error);</pre> -<p> -Specifies the type of the function passed to -<a class="link" href="poppler-poppler-attachment.html#poppler-attachment-save-to-callback" title="poppler_attachment_save_to_callback ()"><code class="function">poppler_attachment_save_to_callback()</code></a>. It is called once for each block of -bytes that is "written" by <a class="link" href="poppler-poppler-attachment.html#poppler-attachment-save-to-callback" title="poppler_attachment_save_to_callback ()"><code class="function">poppler_attachment_save_to_callback()</code></a>. If -successful it should return <code class="literal">TRUE</code>. If an error occurs it should set -<em class="parameter"><code>error</code></em> and return <code class="literal">FALSE</code>, in which case <a class="link" href="poppler-poppler-attachment.html#poppler-attachment-save-to-callback" title="poppler_attachment_save_to_callback ()"><code class="function">poppler_attachment_save_to_callback()</code></a> -will fail with the same error. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td> -<td>buffer containing bytes to be written. -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td> -<td>number of bytes in <em class="parameter"><code>buf</code></em>. -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td> -<td>A location to return an error. -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td> -<td>user data passed to <a class="link" href="poppler-poppler-attachment.html#poppler-attachment-save-to-callback" title="poppler_attachment_save_to_callback ()"><code class="function">poppler_attachment_save_to_callback()</code></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>%TRUE if successful, <code class="literal">FALSE</code> (with <em class="parameter"><code>error</code></em> set) if failed. -</td> -</tr> -</tbody> -</table></div> -</div> -</div> -</div> -<div class="footer"> -<hr> - Generated by GTK-Doc V1.11</div> -</body> -</html> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-document.html b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-document.html deleted file mode 100644 index 38ca0d4fa59..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-document.html +++ /dev/null @@ -1,1122 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>PopplerDocument</title> -<meta name="generator" content="DocBook XSL Stylesheets V1.75.1"> -<link rel="home" href="index.html" title="Poppler Reference Manual"> -<link rel="up" href="ch01.html" title="Poppler"> -<link rel="prev" href="poppler-poppler.html" title="poppler"> -<link rel="next" href="poppler-poppler-page.html" title="PopplerPage"> -<meta name="generator" content="GTK-Doc V1.11 (XML mode)"> -<link rel="stylesheet" href="style.css" type="text/css"> -<link rel="chapter" href="ch01.html" title="Poppler"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> -<tr valign="middle"> -<td><a accesskey="p" href="poppler-poppler.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> -<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> -<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> -<th width="100%" align="center">Poppler Reference Manual</th> -<td><a accesskey="n" href="poppler-poppler-page.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> -</tr> -<tr><td colspan="5" class="shortcuts"> -<a href="#poppler-poppler-document.synopsis" class="shortcut">Top</a> -  | - <a href="#poppler-poppler-document.description" class="shortcut">Description</a> -</td></tr> -</table> -<div class="refentry" title="PopplerDocument"> -<a name="poppler-poppler-document"></a><div class="titlepage"></div> -<div class="refnamediv"><table width="100%"><tr> -<td valign="top"> -<h2><span class="refentrytitle"><a name="poppler-poppler-document.top_of_page"></a>PopplerDocument</span></h2> -<p>PopplerDocument — Information about a document</p> -</td> -<td valign="top" align="right"></td> -</tr></table></div> -<div class="refsynopsisdiv" title="Synopsis"> -<a name="poppler-poppler-document.synopsis"></a><h2>Synopsis</h2> -<pre class="synopsis"> -enum <a class="link" href="poppler-poppler-document.html#PopplerPageLayout" title="enum PopplerPageLayout">PopplerPageLayout</a>; -enum <a class="link" href="poppler-poppler-document.html#PopplerPageMode" title="enum PopplerPageMode">PopplerPageMode</a>; -enum <a class="link" href="poppler-poppler-document.html#PopplerFontType" title="enum PopplerFontType">PopplerFontType</a>; -enum <a class="link" href="poppler-poppler-document.html#PopplerViewerPreferences" title="enum PopplerViewerPreferences">PopplerViewerPreferences</a>; -enum <a class="link" href="poppler-poppler-document.html#PopplerPermissions" title="enum PopplerPermissions">PopplerPermissions</a>; -<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> * <a class="link" href="poppler-poppler-document.html#poppler-document-new-from-file" title="poppler_document_new_from_file ()">poppler_document_new_from_file</a> (const char *uri, - const char *password, - GError **error); -<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> * <a class="link" href="poppler-poppler-document.html#poppler-document-new-from-data" title="poppler_document_new_from_data ()">poppler_document_new_from_data</a> (char *data, - int length, - const char *password, - GError **error); -gboolean <a class="link" href="poppler-poppler-document.html#poppler-document-save" title="poppler_document_save ()">poppler_document_save</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document, - const char *uri, - GError **error); -int <a class="link" href="poppler-poppler-document.html#poppler-document-get-n-pages" title="poppler_document_get_n_pages ()">poppler_document_get_n_pages</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document); -<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> * <a class="link" href="poppler-poppler-document.html#poppler-document-get-page" title="poppler_document_get_page ()">poppler_document_get_page</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document, - int index); -<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> * <a class="link" href="poppler-poppler-document.html#poppler-document-get-page-by-label" title="poppler_document_get_page_by_label ()">poppler_document_get_page_by_label</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document, - const char *label); -<a class="link" href="poppler-poppler-action.html#PopplerDest" title="PopplerDest">PopplerDest</a> * <a class="link" href="poppler-poppler-document.html#poppler-document-find-dest" title="poppler_document_find_dest ()">poppler_document_find_dest</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document, - const gchar *link_name); -gboolean <a class="link" href="poppler-poppler-document.html#poppler-document-has-attachments" title="poppler_document_has_attachments ()">poppler_document_has_attachments</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document); -GList * <a class="link" href="poppler-poppler-document.html#poppler-document-get-attachments" title="poppler_document_get_attachments ()">poppler_document_get_attachments</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document); -<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> * <a class="link" href="poppler-poppler-document.html#poppler-document-get-form-field" title="poppler_document_get_form_field ()">poppler_document_get_form_field</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document, - gint id); -GType <a class="link" href="poppler-poppler-document.html#poppler-index-iter-get-type" title="poppler_index_iter_get_type ()">poppler_index_iter_get_type</a> (void); -<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> * <a class="link" href="poppler-poppler-document.html#poppler-index-iter-new" title="poppler_index_iter_new ()">poppler_index_iter_new</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document); -<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> * <a class="link" href="poppler-poppler-document.html#poppler-index-iter-copy" title="poppler_index_iter_copy ()">poppler_index_iter_copy</a> (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter); -void <a class="link" href="poppler-poppler-document.html#poppler-index-iter-free" title="poppler_index_iter_free ()">poppler_index_iter_free</a> (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter); -<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> * <a class="link" href="poppler-poppler-document.html#poppler-index-iter-get-child" title="poppler_index_iter_get_child ()">poppler_index_iter_get_child</a> (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *parent); -gboolean <a class="link" href="poppler-poppler-document.html#poppler-index-iter-is-open" title="poppler_index_iter_is_open ()">poppler_index_iter_is_open</a> (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter); -<a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction">PopplerAction</a> * <a class="link" href="poppler-poppler-document.html#poppler-index-iter-get-action" title="poppler_index_iter_get_action ()">poppler_index_iter_get_action</a> (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter); -gboolean <a class="link" href="poppler-poppler-document.html#poppler-index-iter-next" title="poppler_index_iter_next ()">poppler_index_iter_next</a> (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter); -<a class="link" href="poppler-poppler.html#PopplerFontInfo" title="PopplerFontInfo">PopplerFontInfo</a> * <a class="link" href="poppler-poppler-document.html#poppler-font-info-new" title="poppler_font_info_new ()">poppler_font_info_new</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document); -gboolean <a class="link" href="poppler-poppler-document.html#poppler-font-info-scan" title="poppler_font_info_scan ()">poppler_font_info_scan</a> (<a class="link" href="poppler-poppler.html#PopplerFontInfo" title="PopplerFontInfo">PopplerFontInfo</a> *font_info, - int n_pages, - <a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> **iter); -void <a class="link" href="poppler-poppler-document.html#poppler-font-info-free" title="poppler_font_info_free ()">poppler_font_info_free</a> (<a class="link" href="poppler-poppler.html#PopplerFontInfo" title="PopplerFontInfo">PopplerFontInfo</a> *font_info); -GType <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-get-type" title="poppler_fonts_iter_get_type ()">poppler_fonts_iter_get_type</a> (void); -<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> * <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-copy" title="poppler_fonts_iter_copy ()">poppler_fonts_iter_copy</a> (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter); -void <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-free" title="poppler_fonts_iter_free ()">poppler_fonts_iter_free</a> (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter); -const char * <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-get-name" title="poppler_fonts_iter_get_name ()">poppler_fonts_iter_get_name</a> (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter); -const char * <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-get-full-name" title="poppler_fonts_iter_get_full_name ()">poppler_fonts_iter_get_full_name</a> (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter); -<a class="link" href="poppler-poppler-document.html#PopplerFontType" title="enum PopplerFontType">PopplerFontType</a> <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-get-font-type" title="poppler_fonts_iter_get_font_type ()">poppler_fonts_iter_get_font_type</a> (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter); -gboolean <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-is-embedded" title="poppler_fonts_iter_is_embedded ()">poppler_fonts_iter_is_embedded</a> (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter); -gboolean <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-is-subset" title="poppler_fonts_iter_is_subset ()">poppler_fonts_iter_is_subset</a> (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter); -gboolean <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-next" title="poppler_fonts_iter_next ()">poppler_fonts_iter_next</a> (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter); -<a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> * <a class="link" href="poppler-poppler-document.html#poppler-ps-file-new" title="poppler_ps_file_new ()">poppler_ps_file_new</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document, - const char *filename, - int first_page, - int n_pages); -void <a class="link" href="poppler-poppler-document.html#poppler-ps-file-set-paper-size" title="poppler_ps_file_set_paper_size ()">poppler_ps_file_set_paper_size</a> (<a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> *ps_file, - double width, - double height); -void <a class="link" href="poppler-poppler-document.html#poppler-ps-file-set-duplex" title="poppler_ps_file_set_duplex ()">poppler_ps_file_set_duplex</a> (<a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> *ps_file, - gboolean duplex); -void <a class="link" href="poppler-poppler-document.html#poppler-ps-file-free" title="poppler_ps_file_free ()">poppler_ps_file_free</a> (<a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> *ps_file); -</pre> -</div> -<div class="refsect1" title="Description"> -<a name="poppler-poppler-document.description"></a><h2>Description</h2> -<p> -The <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a> is an object used to refer to a main document. -</p> -</div> -<div class="refsect1" title="Details"> -<a name="poppler-poppler-document.details"></a><h2>Details</h2> -<div class="refsect2" title="enum PopplerPageLayout"> -<a name="PopplerPageLayout"></a><h3>enum PopplerPageLayout</h3> -<pre class="programlisting">typedef enum -{ - POPPLER_PAGE_LAYOUT_UNSET, - POPPLER_PAGE_LAYOUT_SINGLE_PAGE, - POPPLER_PAGE_LAYOUT_ONE_COLUMN, - POPPLER_PAGE_LAYOUT_TWO_COLUMN_LEFT, - POPPLER_PAGE_LAYOUT_TWO_COLUMN_RIGHT, - POPPLER_PAGE_LAYOUT_TWO_PAGE_LEFT, - POPPLER_PAGE_LAYOUT_TWO_PAGE_RIGHT -} PopplerPageLayout; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="enum PopplerPageMode"> -<a name="PopplerPageMode"></a><h3>enum PopplerPageMode</h3> -<pre class="programlisting">typedef enum -{ - POPPLER_PAGE_MODE_UNSET, - POPPLER_PAGE_MODE_NONE, - POPPLER_PAGE_MODE_USE_OUTLINES, - POPPLER_PAGE_MODE_USE_THUMBS, - POPPLER_PAGE_MODE_FULL_SCREEN, - POPPLER_PAGE_MODE_USE_OC, - POPPLER_PAGE_MODE_USE_ATTACHMENTS -} PopplerPageMode; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="enum PopplerFontType"> -<a name="PopplerFontType"></a><h3>enum PopplerFontType</h3> -<pre class="programlisting">typedef enum -{ - POPPLER_FONT_TYPE_UNKNOWN, - POPPLER_FONT_TYPE_TYPE1, - POPPLER_FONT_TYPE_TYPE1C, - POPPLER_FONT_TYPE_TYPE1COT, - POPPLER_FONT_TYPE_TYPE3, - POPPLER_FONT_TYPE_TRUETYPE, - POPPLER_FONT_TYPE_TRUETYPEOT, - POPPLER_FONT_TYPE_CID_TYPE0, - POPPLER_FONT_TYPE_CID_TYPE0C, - POPPLER_FONT_TYPE_CID_TYPE0COT, - POPPLER_FONT_TYPE_CID_TYPE2, - POPPLER_FONT_TYPE_CID_TYPE2OT -} PopplerFontType; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="enum PopplerViewerPreferences"> -<a name="PopplerViewerPreferences"></a><h3>enum PopplerViewerPreferences</h3> -<pre class="programlisting">typedef enum /*< flags >*/ -{ - POPPLER_VIEWER_PREFERENCES_UNSET = 0, - POPPLER_VIEWER_PREFERENCES_HIDE_TOOLBAR = 1 << 0, - POPPLER_VIEWER_PREFERENCES_HIDE_MENUBAR = 1 << 1, - POPPLER_VIEWER_PREFERENCES_HIDE_WINDOWUI = 1 << 2, - POPPLER_VIEWER_PREFERENCES_FIT_WINDOW = 1 << 3, - POPPLER_VIEWER_PREFERENCES_CENTER_WINDOW = 1 << 4, - POPPLER_VIEWER_PREFERENCES_DISPLAY_DOC_TITLE = 1 << 5, - POPPLER_VIEWER_PREFERENCES_DIRECTION_RTL = 1 << 6 -} PopplerViewerPreferences; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="enum PopplerPermissions"> -<a name="PopplerPermissions"></a><h3>enum PopplerPermissions</h3> -<pre class="programlisting">typedef enum /*< flags >*/ -{ - POPPLER_PERMISSIONS_OK_TO_PRINT = 1 << 0, - POPPLER_PERMISSIONS_OK_TO_MODIFY = 1 << 1, - POPPLER_PERMISSIONS_OK_TO_COPY = 1 << 2, - POPPLER_PERMISSIONS_OK_TO_ADD_NOTES = 1 << 3, - POPPLER_PERMISSIONS_OK_TO_FILL_FORM = 1 << 4, - POPPLER_PERMISSIONS_FULL = (POPPLER_PERMISSIONS_OK_TO_PRINT | POPPLER_PERMISSIONS_OK_TO_MODIFY | POPPLER_PERMISSIONS_OK_TO_COPY | POPPLER_PERMISSIONS_OK_TO_ADD_NOTES | POPPLER_PERMISSIONS_OK_TO_FILL_FORM) - -} PopplerPermissions; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_document_new_from_file ()"> -<a name="poppler-document-new-from-file"></a><h3>poppler_document_new_from_file ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> * poppler_document_new_from_file (const char *uri, - const char *password, - GError **error);</pre> -<p> -Creates a new <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>. If <code class="literal">NULL</code> is returned, then <em class="parameter"><code>error</code></em> will be -set. Possible errors include those in the <a class="link" href="poppler-poppler.html#POPPLER-ERROR--CAPS" title="POPPLER_ERROR"><span class="type">POPPLER_ERROR</span></a> and <span class="type">G_FILE_ERROR</span> -domains.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td> -<td> uri of the file to load -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>password</code></em> :</span></p></td> -<td> password to unlock the file with, or <code class="literal">NULL</code> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td> -<td> Return location for an error, or <code class="literal">NULL</code> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> A newly created <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>, or <code class="literal">NULL</code> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_document_new_from_data ()"> -<a name="poppler-document-new-from-data"></a><h3>poppler_document_new_from_data ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> * poppler_document_new_from_data (char *data, - int length, - const char *password, - GError **error);</pre> -<p> -Creates a new <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>. If <code class="literal">NULL</code> is returned, then <em class="parameter"><code>error</code></em> will be -set. Possible errors include those in the <a class="link" href="poppler-poppler.html#POPPLER-ERROR--CAPS" title="POPPLER_ERROR"><span class="type">POPPLER_ERROR</span></a> and <span class="type">G_FILE_ERROR</span> -domains.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td> -<td> the pdf data contained in a char array -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td> -<td> the length of <span class="type">data</span> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>password</code></em> :</span></p></td> -<td> password to unlock the file with, or <code class="literal">NULL</code> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td> -<td> Return location for an error, or <code class="literal">NULL</code> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> A newly created <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>, or <code class="literal">NULL</code> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_document_save ()"> -<a name="poppler-document-save"></a><h3>poppler_document_save ()</h3> -<pre class="programlisting">gboolean poppler_document_save (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document, - const char *uri, - GError **error);</pre> -<p> -Saves <em class="parameter"><code>document</code></em>. Any change made in the document such as -form fields filled by the user will be saved. -If <em class="parameter"><code>error</code></em> is set, <code class="literal">FALSE</code> will be returned. Possible errors -include those in the <span class="type">G_FILE_ERROR</span> domain.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td> -<td> uri of file to save -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td> -<td> return location for an error, or <code class="literal">NULL</code> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code>, if the document was successfully saved -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_document_get_n_pages ()"> -<a name="poppler-document-get-n-pages"></a><h3>poppler_document_get_n_pages ()</h3> -<pre class="programlisting">int poppler_document_get_n_pages (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document);</pre> -<p> -Returns the number of pages in a loaded document.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td> -<td> A <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> Number of pages -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_document_get_page ()"> -<a name="poppler-document-get-page"></a><h3>poppler_document_get_page ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> * poppler_document_get_page (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document, - int index);</pre> -<p> -Returns the <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> indexed at <em class="parameter"><code>index</code></em>. This object is owned by the -caller. -</p> -<p> -<a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a>s are indexed starting at 0.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td> -<td> A <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>index</code></em> :</span></p></td> -<td> a page index -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> The <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> at <em class="parameter"><code>index</code></em> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_document_get_page_by_label ()"> -<a name="poppler-document-get-page-by-label"></a><h3>poppler_document_get_page_by_label ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> * poppler_document_get_page_by_label (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document, - const char *label);</pre> -<p> -Returns the <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> reference by <em class="parameter"><code>label</code></em>. This object is owned by the -caller. <em class="parameter"><code>label</code></em> is a human-readable string representation of the page number, -and can be document specific. Typically, it is a value such as "iii" or "3". -</p> -<p> -By default, "1" refers to the first page.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td> -<td> A <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td> -<td> a page label -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> The <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> referenced by <em class="parameter"><code>label</code></em> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_document_find_dest ()"> -<a name="poppler-document-find-dest"></a><h3>poppler_document_find_dest ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-action.html#PopplerDest" title="PopplerDest">PopplerDest</a> * poppler_document_find_dest (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document, - const gchar *link_name);</pre> -<p> -Finds named destination <em class="parameter"><code>link_name</code></em> in <em class="parameter"><code>document</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td> -<td> A <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>link_name</code></em> :</span></p></td> -<td> a named destination -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> The <a class="link" href="poppler-poppler-action.html#PopplerDest" title="PopplerDest"><span class="type">PopplerDest</span></a> destination or <code class="literal">NULL</code> if -<em class="parameter"><code>link_name</code></em> is not a destination. Returned value must -be freed with <a class="link" href="poppler-poppler-action.html#poppler-dest-free" title="poppler_dest_free ()"><span class="type">poppler_dest_free</span></a> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_document_has_attachments ()"> -<a name="poppler-document-has-attachments"></a><h3>poppler_document_has_attachments ()</h3> -<pre class="programlisting">gboolean poppler_document_has_attachments (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document);</pre> -<p> -Returns <code class="literal">TRUE</code> of <em class="parameter"><code>document</code></em> has any attachments.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td> -<td> A <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code>, if <em class="parameter"><code>document</code></em> has attachments. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_document_get_attachments ()"> -<a name="poppler-document-get-attachments"></a><h3>poppler_document_get_attachments ()</h3> -<pre class="programlisting">GList * poppler_document_get_attachments (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document);</pre> -<p> -Returns a <span class="type">GList</span> containing <a class="link" href="poppler-poppler-attachment.html#PopplerAttachment"><span class="type">PopplerAttachment</span></a>s. These attachments -are unowned, and must be unreffed, and the list must be freed with -<code class="function">g_list_free()</code>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td> -<td> A <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a list of available attachments. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_document_get_form_field ()"> -<a name="poppler-document-get-form-field"></a><h3>poppler_document_get_form_field ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> * poppler_document_get_form_field (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document, - gint id);</pre> -<p> -Returns the <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> for the given <em class="parameter"><code>id</code></em>. It must be freed with -<code class="function">g_object_unref()</code></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td> -<td> an id of a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> or NULL if not found -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_index_iter_get_type ()"> -<a name="poppler-index-iter-get-type"></a><h3>poppler_index_iter_get_type ()</h3> -<pre class="programlisting">GType poppler_index_iter_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_index_iter_new ()"> -<a name="poppler-index-iter-new"></a><h3>poppler_index_iter_new ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> * poppler_index_iter_new (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document);</pre> -<p> -Returns the root <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a> for <em class="parameter"><code>document</code></em>, or <code class="literal">NULL</code>. This must be -freed with <a class="link" href="poppler-poppler-document.html#poppler-index-iter-free" title="poppler_index_iter_free ()"><code class="function">poppler_index_iter_free()</code></a>. -</p> -<p> -Certain documents have an index associated with them. This index can be used -to help the user navigate the document, and is similar to a table of -contents. Each node in the index will contain a <a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction"><span class="type">PopplerAction</span></a> that can be -displayed to the user — typically a <span class="type">POPPLER_ACTION_GOTO_DEST</span> or a -<span class="type">POPPLER_ACTION_URI</span>. -</p> -<p> -Here is a simple example of some code that walks the full index: -</p> -<p> -</p> -<div class="informalexample"><pre class="programlisting"> -static void -walk_index (PopplerIndexIter *iter) -{ - do - { - /* Get the the action and do something with it */ - PopplerIndexIter *child = poppler_index_iter_get_child (iter); - if (child) - walk_index (child); - poppler_index_iter_free (child); - } - while (poppler_index_iter_next (iter)); -} -... -{ - iter = poppler_index_iter_new (document); - walk_index (iter); - poppler_index_iter_free (iter); -} -</pre></div> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_index_iter_copy ()"> -<a name="poppler-index-iter-copy"></a><h3>poppler_index_iter_copy ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> * poppler_index_iter_copy (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter);</pre> -<p> -Creates a new <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a> as a copy of <em class="parameter"><code>iter</code></em>. This must be freed with -<a class="link" href="poppler-poppler-document.html#poppler-index-iter-free" title="poppler_index_iter_free ()"><code class="function">poppler_index_iter_free()</code></a>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_index_iter_free ()"> -<a name="poppler-index-iter-free"></a><h3>poppler_index_iter_free ()</h3> -<pre class="programlisting">void poppler_index_iter_free (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter);</pre> -<p> -Frees <em class="parameter"><code>iter</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_index_iter_get_child ()"> -<a name="poppler-index-iter-get-child"></a><h3>poppler_index_iter_get_child ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> * poppler_index_iter_get_child (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *parent);</pre> -<p> -Returns a newly created child of <em class="parameter"><code>parent</code></em>, or <code class="literal">NULL</code> if the iter has no child. -See <a class="link" href="poppler-poppler-document.html#poppler-index-iter-new" title="poppler_index_iter_new ()"><code class="function">poppler_index_iter_new()</code></a> for more information on this function.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_index_iter_is_open ()"> -<a name="poppler-index-iter-is-open"></a><h3>poppler_index_iter_is_open ()</h3> -<pre class="programlisting">gboolean poppler_index_iter_is_open (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter);</pre> -<p> -Returns whether this node should be expanded by default to the user. The -document can provide a hint as to how the document's index should be expanded -initially.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code>, if the document wants <em class="parameter"><code>iter</code></em> to be expanded -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_index_iter_get_action ()"> -<a name="poppler-index-iter-get-action"></a><h3>poppler_index_iter_get_action ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction">PopplerAction</a> * poppler_index_iter_get_action (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter);</pre> -<p> -Returns the <a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction"><span class="type">PopplerAction</span></a> associated with <em class="parameter"><code>iter</code></em>. It must be freed with -<a class="link" href="poppler-poppler-action.html#poppler-action-free" title="poppler_action_free ()"><code class="function">poppler_action_free()</code></a>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new <a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction"><span class="type">PopplerAction</span></a> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_index_iter_next ()"> -<a name="poppler-index-iter-next"></a><h3>poppler_index_iter_next ()</h3> -<pre class="programlisting">gboolean poppler_index_iter_next (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter);</pre> -<p> -Sets <em class="parameter"><code>iter</code></em> to point to the next action at the current level, if valid. See -<a class="link" href="poppler-poppler-document.html#poppler-index-iter-new" title="poppler_index_iter_new ()"><code class="function">poppler_index_iter_new()</code></a> for more information.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code>, if <em class="parameter"><code>iter</code></em> was set to the next action -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_font_info_new ()"> -<a name="poppler-font-info-new"></a><h3>poppler_font_info_new ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerFontInfo" title="PopplerFontInfo">PopplerFontInfo</a> * poppler_font_info_new (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_font_info_scan ()"> -<a name="poppler-font-info-scan"></a><h3>poppler_font_info_scan ()</h3> -<pre class="programlisting">gboolean poppler_font_info_scan (<a class="link" href="poppler-poppler.html#PopplerFontInfo" title="PopplerFontInfo">PopplerFontInfo</a> *font_info, - int n_pages, - <a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> **iter);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>font_info</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>n_pages</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_font_info_free ()"> -<a name="poppler-font-info-free"></a><h3>poppler_font_info_free ()</h3> -<pre class="programlisting">void poppler_font_info_free (<a class="link" href="poppler-poppler.html#PopplerFontInfo" title="PopplerFontInfo">PopplerFontInfo</a> *font_info);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>font_info</code></em> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_fonts_iter_get_type ()"> -<a name="poppler-fonts-iter-get-type"></a><h3>poppler_fonts_iter_get_type ()</h3> -<pre class="programlisting">GType poppler_fonts_iter_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_fonts_iter_copy ()"> -<a name="poppler-fonts-iter-copy"></a><h3>poppler_fonts_iter_copy ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> * poppler_fonts_iter_copy (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_fonts_iter_free ()"> -<a name="poppler-fonts-iter-free"></a><h3>poppler_fonts_iter_free ()</h3> -<pre class="programlisting">void poppler_fonts_iter_free (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_fonts_iter_get_name ()"> -<a name="poppler-fonts-iter-get-name"></a><h3>poppler_fonts_iter_get_name ()</h3> -<pre class="programlisting">const char * poppler_fonts_iter_get_name (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_fonts_iter_get_full_name ()"> -<a name="poppler-fonts-iter-get-full-name"></a><h3>poppler_fonts_iter_get_full_name ()</h3> -<pre class="programlisting">const char * poppler_fonts_iter_get_full_name (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_fonts_iter_get_font_type ()"> -<a name="poppler-fonts-iter-get-font-type"></a><h3>poppler_fonts_iter_get_font_type ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-document.html#PopplerFontType" title="enum PopplerFontType">PopplerFontType</a> poppler_fonts_iter_get_font_type (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_fonts_iter_is_embedded ()"> -<a name="poppler-fonts-iter-is-embedded"></a><h3>poppler_fonts_iter_is_embedded ()</h3> -<pre class="programlisting">gboolean poppler_fonts_iter_is_embedded (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_fonts_iter_is_subset ()"> -<a name="poppler-fonts-iter-is-subset"></a><h3>poppler_fonts_iter_is_subset ()</h3> -<pre class="programlisting">gboolean poppler_fonts_iter_is_subset (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_fonts_iter_next ()"> -<a name="poppler-fonts-iter-next"></a><h3>poppler_fonts_iter_next ()</h3> -<pre class="programlisting">gboolean poppler_fonts_iter_next (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_ps_file_new ()"> -<a name="poppler-ps-file-new"></a><h3>poppler_ps_file_new ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> * poppler_ps_file_new (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document, - const char *filename, - int first_page, - int n_pages);</pre> -<p> -Create a new postscript file to render to</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td> -<td> the path of the output filename -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>first_page</code></em> :</span></p></td> -<td> the first page to print -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>n_pages</code></em> :</span></p></td> -<td> the number of pages to print -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a PopplerPSFile -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_ps_file_set_paper_size ()"> -<a name="poppler-ps-file-set-paper-size"></a><h3>poppler_ps_file_set_paper_size ()</h3> -<pre class="programlisting">void poppler_ps_file_set_paper_size (<a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> *ps_file, - double width, - double height);</pre> -<p> -Set the output paper size. These values will end up in the -DocumentMedia, the BoundingBox DSC comments and other places in the -generated PostScript.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>ps_file</code></em> :</span></p></td> -<td> a PopplerPSFile which was not yet printed to. -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td> the paper width in 1/72 inch -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td> the paper height in 1/72 inch -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_ps_file_set_duplex ()"> -<a name="poppler-ps-file-set-duplex"></a><h3>poppler_ps_file_set_duplex ()</h3> -<pre class="programlisting">void poppler_ps_file_set_duplex (<a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> *ps_file, - gboolean duplex);</pre> -<p> -Enable or disable Duplex printing.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>ps_file</code></em> :</span></p></td> -<td> a PopplerPSFile which was not yet printed to -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>duplex</code></em> :</span></p></td> -<td> whether to force duplex printing (on printers which support this) -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_ps_file_free ()"> -<a name="poppler-ps-file-free"></a><h3>poppler_ps_file_free ()</h3> -<pre class="programlisting">void poppler_ps_file_free (<a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> *ps_file);</pre> -<p> -Frees <em class="parameter"><code>ps_file</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>ps_file</code></em> :</span></p></td> -<td> a PopplerPSFile -</td> -</tr></tbody> -</table></div> -</div> -</div> -</div> -<div class="footer"> -<hr> - Generated by GTK-Doc V1.11</div> -</body> -</html> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-enums.html b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-enums.html deleted file mode 100644 index ad430af2675..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-enums.html +++ /dev/null @@ -1,412 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>poppler-enums</title> -<meta name="generator" content="DocBook XSL Stylesheets V1.75.1"> -<link rel="home" href="index.html" title="Poppler Reference Manual"> -<link rel="up" href="ch01.html" title="Poppler"> -<link rel="prev" href="poppler-poppler-form-field.html" title="PopplerFormField"> -<link rel="next" href="poppler-poppler-annot.html" title="PopplerAnnot"> -<meta name="generator" content="GTK-Doc V1.11 (XML mode)"> -<link rel="stylesheet" href="style.css" type="text/css"> -<link rel="chapter" href="ch01.html" title="Poppler"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> -<tr valign="middle"> -<td><a accesskey="p" href="poppler-poppler-form-field.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> -<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> -<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> -<th width="100%" align="center">Poppler Reference Manual</th> -<td><a accesskey="n" href="poppler-poppler-annot.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> -</tr> -<tr><td colspan="5" class="shortcuts"> -<a href="#poppler-poppler-enums.synopsis" class="shortcut">Top</a> -  | - <a href="#poppler-poppler-enums.description" class="shortcut">Description</a> -</td></tr> -</table> -<div class="refentry" title="poppler-enums"> -<a name="poppler-poppler-enums"></a><div class="titlepage"></div> -<div class="refnamediv"><table width="100%"><tr> -<td valign="top"> -<h2><span class="refentrytitle"><a name="poppler-poppler-enums.top_of_page"></a>poppler-enums</span></h2> -<p>poppler-enums</p> -</td> -<td valign="top" align="right"></td> -</tr></table></div> -<div class="refsynopsisdiv" title="Synopsis"> -<a name="poppler-poppler-enums.synopsis"></a><h2>Synopsis</h2> -<pre class="synopsis"> -#define <a class="link" href="poppler-poppler-enums.html#POPPLER-TYPE-ACTION-TYPE--CAPS" title="POPPLER_TYPE_ACTION_TYPE">POPPLER_TYPE_ACTION_TYPE</a> -GType <a class="link" href="poppler-poppler-enums.html#poppler-action-type-get-type" title="poppler_action_type_get_type ()">poppler_action_type_get_type</a> (void); -#define <a class="link" href="poppler-poppler-enums.html#POPPLER-TYPE-DEST-TYPE--CAPS" title="POPPLER_TYPE_DEST_TYPE">POPPLER_TYPE_DEST_TYPE</a> -GType <a class="link" href="poppler-poppler-enums.html#poppler-dest-type-get-type" title="poppler_dest_type_get_type ()">poppler_dest_type_get_type</a> (void); -#define <a class="link" href="poppler-poppler-enums.html#POPPLER-TYPE-PAGE-LAYOUT--CAPS" title="POPPLER_TYPE_PAGE_LAYOUT">POPPLER_TYPE_PAGE_LAYOUT</a> -GType <a class="link" href="poppler-poppler-enums.html#poppler-page-layout-get-type" title="poppler_page_layout_get_type ()">poppler_page_layout_get_type</a> (void); -#define <a class="link" href="poppler-poppler-enums.html#POPPLER-TYPE-PAGE-MODE--CAPS" title="POPPLER_TYPE_PAGE_MODE">POPPLER_TYPE_PAGE_MODE</a> -GType <a class="link" href="poppler-poppler-enums.html#poppler-page-mode-get-type" title="poppler_page_mode_get_type ()">poppler_page_mode_get_type</a> (void); -#define <a class="link" href="poppler-poppler-enums.html#POPPLER-TYPE-FONT-TYPE--CAPS" title="POPPLER_TYPE_FONT_TYPE">POPPLER_TYPE_FONT_TYPE</a> -GType <a class="link" href="poppler-poppler-enums.html#poppler-font-type-get-type" title="poppler_font_type_get_type ()">poppler_font_type_get_type</a> (void); -#define <a class="link" href="poppler-poppler-enums.html#POPPLER-TYPE-VIEWER-PREFERENCES--CAPS" title="POPPLER_TYPE_VIEWER_PREFERENCES">POPPLER_TYPE_VIEWER_PREFERENCES</a> -GType <a class="link" href="poppler-poppler-enums.html#poppler-viewer-preferences-get-type" title="poppler_viewer_preferences_get_type ()">poppler_viewer_preferences_get_type</a> (void); -#define <a class="link" href="poppler-poppler-enums.html#POPPLER-TYPE-PERMISSIONS--CAPS" title="POPPLER_TYPE_PERMISSIONS">POPPLER_TYPE_PERMISSIONS</a> -GType <a class="link" href="poppler-poppler-enums.html#poppler-permissions-get-type" title="poppler_permissions_get_type ()">poppler_permissions_get_type</a> (void); -#define <a class="link" href="poppler-poppler-enums.html#POPPLER-TYPE-SELECTION-STYLE--CAPS" title="POPPLER_TYPE_SELECTION_STYLE">POPPLER_TYPE_SELECTION_STYLE</a> -GType <a class="link" href="poppler-poppler-enums.html#poppler-selection-style-get-type" title="poppler_selection_style_get_type ()">poppler_selection_style_get_type</a> (void); -#define <a class="link" href="poppler-poppler-enums.html#POPPLER-TYPE-PAGE-TRANSITION-TYPE--CAPS" title="POPPLER_TYPE_PAGE_TRANSITION_TYPE">POPPLER_TYPE_PAGE_TRANSITION_TYPE</a> -GType <a class="link" href="poppler-poppler-enums.html#poppler-page-transition-type-get-type" title="poppler_page_transition_type_get_type ()">poppler_page_transition_type_get_type</a> - (void); -#define <a class="link" href="poppler-poppler-enums.html#POPPLER-TYPE-PAGE-TRANSITION-ALIGNMENT--CAPS" title="POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT">POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT</a> -GType <a class="link" href="poppler-poppler-enums.html#poppler-page-transition-alignment-get-type" title="poppler_page_transition_alignment_get_type ()">poppler_page_transition_alignment_get_type</a> - (void); -#define <a class="link" href="poppler-poppler-enums.html#POPPLER-TYPE-PAGE-TRANSITION-DIRECTION--CAPS" title="POPPLER_TYPE_PAGE_TRANSITION_DIRECTION">POPPLER_TYPE_PAGE_TRANSITION_DIRECTION</a> -GType <a class="link" href="poppler-poppler-enums.html#poppler-page-transition-direction-get-type" title="poppler_page_transition_direction_get_type ()">poppler_page_transition_direction_get_type</a> - (void); -#define <a class="link" href="poppler-poppler-enums.html#POPPLER-TYPE-ERROR--CAPS" title="POPPLER_TYPE_ERROR">POPPLER_TYPE_ERROR</a> -GType <a class="link" href="poppler-poppler-enums.html#poppler-error-get-type" title="poppler_error_get_type ()">poppler_error_get_type</a> (void); -#define <a class="link" href="poppler-poppler-enums.html#POPPLER-TYPE-ORIENTATION--CAPS" title="POPPLER_TYPE_ORIENTATION">POPPLER_TYPE_ORIENTATION</a> -GType <a class="link" href="poppler-poppler-enums.html#poppler-orientation-get-type" title="poppler_orientation_get_type ()">poppler_orientation_get_type</a> (void); -#define <a class="link" href="poppler-poppler-enums.html#POPPLER-TYPE-BACKEND--CAPS" title="POPPLER_TYPE_BACKEND">POPPLER_TYPE_BACKEND</a> -GType <a class="link" href="poppler-poppler-enums.html#poppler-backend-get-type" title="poppler_backend_get_type ()">poppler_backend_get_type</a> (void); -</pre> -</div> -<div class="refsect1" title="Description"> -<a name="poppler-poppler-enums.description"></a><h2>Description</h2> -<p> -</p> -</div> -<div class="refsect1" title="Details"> -<a name="poppler-poppler-enums.details"></a><h2>Details</h2> -<div class="refsect2" title="POPPLER_TYPE_ACTION_TYPE"> -<a name="POPPLER-TYPE-ACTION-TYPE--CAPS"></a><h3>POPPLER_TYPE_ACTION_TYPE</h3> -<pre class="programlisting">#define POPPLER_TYPE_ACTION_TYPE (poppler_action_type_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_action_type_get_type ()"> -<a name="poppler-action-type-get-type"></a><h3>poppler_action_type_get_type ()</h3> -<pre class="programlisting">GType poppler_action_type_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_DEST_TYPE"> -<a name="POPPLER-TYPE-DEST-TYPE--CAPS"></a><h3>POPPLER_TYPE_DEST_TYPE</h3> -<pre class="programlisting">#define POPPLER_TYPE_DEST_TYPE (poppler_dest_type_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_dest_type_get_type ()"> -<a name="poppler-dest-type-get-type"></a><h3>poppler_dest_type_get_type ()</h3> -<pre class="programlisting">GType poppler_dest_type_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_PAGE_LAYOUT"> -<a name="POPPLER-TYPE-PAGE-LAYOUT--CAPS"></a><h3>POPPLER_TYPE_PAGE_LAYOUT</h3> -<pre class="programlisting">#define POPPLER_TYPE_PAGE_LAYOUT (poppler_page_layout_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_page_layout_get_type ()"> -<a name="poppler-page-layout-get-type"></a><h3>poppler_page_layout_get_type ()</h3> -<pre class="programlisting">GType poppler_page_layout_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_PAGE_MODE"> -<a name="POPPLER-TYPE-PAGE-MODE--CAPS"></a><h3>POPPLER_TYPE_PAGE_MODE</h3> -<pre class="programlisting">#define POPPLER_TYPE_PAGE_MODE (poppler_page_mode_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_page_mode_get_type ()"> -<a name="poppler-page-mode-get-type"></a><h3>poppler_page_mode_get_type ()</h3> -<pre class="programlisting">GType poppler_page_mode_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_FONT_TYPE"> -<a name="POPPLER-TYPE-FONT-TYPE--CAPS"></a><h3>POPPLER_TYPE_FONT_TYPE</h3> -<pre class="programlisting">#define POPPLER_TYPE_FONT_TYPE (poppler_font_type_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_font_type_get_type ()"> -<a name="poppler-font-type-get-type"></a><h3>poppler_font_type_get_type ()</h3> -<pre class="programlisting">GType poppler_font_type_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_VIEWER_PREFERENCES"> -<a name="POPPLER-TYPE-VIEWER-PREFERENCES--CAPS"></a><h3>POPPLER_TYPE_VIEWER_PREFERENCES</h3> -<pre class="programlisting">#define POPPLER_TYPE_VIEWER_PREFERENCES (poppler_viewer_preferences_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_viewer_preferences_get_type ()"> -<a name="poppler-viewer-preferences-get-type"></a><h3>poppler_viewer_preferences_get_type ()</h3> -<pre class="programlisting">GType poppler_viewer_preferences_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_PERMISSIONS"> -<a name="POPPLER-TYPE-PERMISSIONS--CAPS"></a><h3>POPPLER_TYPE_PERMISSIONS</h3> -<pre class="programlisting">#define POPPLER_TYPE_PERMISSIONS (poppler_permissions_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_permissions_get_type ()"> -<a name="poppler-permissions-get-type"></a><h3>poppler_permissions_get_type ()</h3> -<pre class="programlisting">GType poppler_permissions_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_SELECTION_STYLE"> -<a name="POPPLER-TYPE-SELECTION-STYLE--CAPS"></a><h3>POPPLER_TYPE_SELECTION_STYLE</h3> -<pre class="programlisting">#define POPPLER_TYPE_SELECTION_STYLE (poppler_selection_style_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_selection_style_get_type ()"> -<a name="poppler-selection-style-get-type"></a><h3>poppler_selection_style_get_type ()</h3> -<pre class="programlisting">GType poppler_selection_style_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_PAGE_TRANSITION_TYPE"> -<a name="POPPLER-TYPE-PAGE-TRANSITION-TYPE--CAPS"></a><h3>POPPLER_TYPE_PAGE_TRANSITION_TYPE</h3> -<pre class="programlisting">#define POPPLER_TYPE_PAGE_TRANSITION_TYPE (poppler_page_transition_type_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_page_transition_type_get_type ()"> -<a name="poppler-page-transition-type-get-type"></a><h3>poppler_page_transition_type_get_type ()</h3> -<pre class="programlisting">GType poppler_page_transition_type_get_type - (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT"> -<a name="POPPLER-TYPE-PAGE-TRANSITION-ALIGNMENT--CAPS"></a><h3>POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT</h3> -<pre class="programlisting">#define POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT (poppler_page_transition_alignment_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_page_transition_alignment_get_type ()"> -<a name="poppler-page-transition-alignment-get-type"></a><h3>poppler_page_transition_alignment_get_type ()</h3> -<pre class="programlisting">GType poppler_page_transition_alignment_get_type - (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_PAGE_TRANSITION_DIRECTION"> -<a name="POPPLER-TYPE-PAGE-TRANSITION-DIRECTION--CAPS"></a><h3>POPPLER_TYPE_PAGE_TRANSITION_DIRECTION</h3> -<pre class="programlisting">#define POPPLER_TYPE_PAGE_TRANSITION_DIRECTION (poppler_page_transition_direction_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_page_transition_direction_get_type ()"> -<a name="poppler-page-transition-direction-get-type"></a><h3>poppler_page_transition_direction_get_type ()</h3> -<pre class="programlisting">GType poppler_page_transition_direction_get_type - (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_ERROR"> -<a name="POPPLER-TYPE-ERROR--CAPS"></a><h3>POPPLER_TYPE_ERROR</h3> -<pre class="programlisting">#define POPPLER_TYPE_ERROR (poppler_error_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_error_get_type ()"> -<a name="poppler-error-get-type"></a><h3>poppler_error_get_type ()</h3> -<pre class="programlisting">GType poppler_error_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_ORIENTATION"> -<a name="POPPLER-TYPE-ORIENTATION--CAPS"></a><h3>POPPLER_TYPE_ORIENTATION</h3> -<pre class="programlisting">#define POPPLER_TYPE_ORIENTATION (poppler_orientation_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_orientation_get_type ()"> -<a name="poppler-orientation-get-type"></a><h3>poppler_orientation_get_type ()</h3> -<pre class="programlisting">GType poppler_orientation_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_BACKEND"> -<a name="POPPLER-TYPE-BACKEND--CAPS"></a><h3>POPPLER_TYPE_BACKEND</h3> -<pre class="programlisting">#define POPPLER_TYPE_BACKEND (poppler_backend_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_backend_get_type ()"> -<a name="poppler-backend-get-type"></a><h3>poppler_backend_get_type ()</h3> -<pre class="programlisting">GType poppler_backend_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -</div> -</div> -<div class="footer"> -<hr> - Generated by GTK-Doc V1.11</div> -</body> -</html> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-features.html b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-features.html deleted file mode 100644 index 26266a7b595..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-features.html +++ /dev/null @@ -1,143 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>Version and Features Information</title> -<meta name="generator" content="DocBook XSL Stylesheets V1.75.1"> -<link rel="home" href="index.html" title="Poppler Reference Manual"> -<link rel="up" href="ch01.html" title="Poppler"> -<link rel="prev" href="poppler-poppler-layer.html" title="PopplerLayer"> -<meta name="generator" content="GTK-Doc V1.11 (XML mode)"> -<link rel="stylesheet" href="style.css" type="text/css"> -<link rel="chapter" href="ch01.html" title="Poppler"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> -<tr valign="middle"> -<td><a accesskey="p" href="poppler-poppler-layer.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> -<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> -<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> -<th width="100%" align="center">Poppler Reference Manual</th> -<td> </td> -</tr> -<tr><td colspan="5" class="shortcuts"> -<a href="#poppler-poppler-features.synopsis" class="shortcut">Top</a> -  | - <a href="#poppler-poppler-features.description" class="shortcut">Description</a> -</td></tr> -</table> -<div class="refentry" title="Version and Features Information"> -<a name="poppler-poppler-features"></a><div class="titlepage"></div> -<div class="refnamediv"><table width="100%"><tr> -<td valign="top"> -<h2><span class="refentrytitle"><a name="poppler-poppler-features.top_of_page"></a>Version and Features Information</span></h2> -<p>Version and Features Information — Variables and functions to check the poppler version and features</p> -</td> -<td valign="top" align="right"></td> -</tr></table></div> -<div class="refsynopsisdiv" title="Synopsis"> -<a name="poppler-poppler-features.synopsis"></a><h2>Synopsis</h2> -<pre class="synopsis"> -#define <a class="link" href="poppler-poppler-features.html#POPPLER-HAS-CAIRO--CAPS" title="POPPLER_HAS_CAIRO">POPPLER_HAS_CAIRO</a> -#define <a class="link" href="poppler-poppler-features.html#POPPLER-WITH-GDK--CAPS" title="POPPLER_WITH_GDK">POPPLER_WITH_GDK</a> -#define <a class="link" href="poppler-poppler-features.html#POPPLER-MAJOR-VERSION--CAPS" title="POPPLER_MAJOR_VERSION">POPPLER_MAJOR_VERSION</a> -#define <a class="link" href="poppler-poppler-features.html#POPPLER-MINOR-VERSION--CAPS" title="POPPLER_MINOR_VERSION">POPPLER_MINOR_VERSION</a> -#define <a class="link" href="poppler-poppler-features.html#POPPLER-MICRO-VERSION--CAPS" title="POPPLER_MICRO_VERSION">POPPLER_MICRO_VERSION</a> -#define <a class="link" href="poppler-poppler-features.html#POPPLER-CHECK-VERSION--CAPS" title="POPPLER_CHECK_VERSION()">POPPLER_CHECK_VERSION</a> (major,minor,micro) -</pre> -</div> -<div class="refsect1" title="Description"> -<a name="poppler-poppler-features.description"></a><h2>Description</h2> -<p> -Poppler provides version information, and information about features -enabled at compile time. This is primarily useful in configure checks -for builds that have a configure script, or for allowing code to optionally -depend but not require a specific poppler version. -</p> -</div> -<div class="refsect1" title="Details"> -<a name="poppler-poppler-features.details"></a><h2>Details</h2> -<div class="refsect2" title="POPPLER_HAS_CAIRO"> -<a name="POPPLER-HAS-CAIRO--CAPS"></a><h3>POPPLER_HAS_CAIRO</h3> -<pre class="programlisting">#define POPPLER_HAS_CAIRO 1 -</pre> -<p> -Defined if poppler was compiled with cairo support. -</p> -</div> -<hr> -<div class="refsect2" title="POPPLER_WITH_GDK"> -<a name="POPPLER-WITH-GDK--CAPS"></a><h3>POPPLER_WITH_GDK</h3> -<pre class="programlisting">#define POPPLER_WITH_GDK 1 -</pre> -<p> -Defined if poppler was compiled with GDK support. -</p> -</div> -<hr> -<div class="refsect2" title="POPPLER_MAJOR_VERSION"> -<a name="POPPLER-MAJOR-VERSION--CAPS"></a><h3>POPPLER_MAJOR_VERSION</h3> -<pre class="programlisting">#define POPPLER_MAJOR_VERSION (0) -</pre> -<p> -The major version number of the poppler header files (e.g. in poppler version -0.1.2 this is 0.) -</p> -Since: 0.11</div> -<hr> -<div class="refsect2" title="POPPLER_MINOR_VERSION"> -<a name="POPPLER-MINOR-VERSION--CAPS"></a><h3>POPPLER_MINOR_VERSION</h3> -<pre class="programlisting">#define POPPLER_MINOR_VERSION (12) -</pre> -<p> -</p> -The major version number of the poppler header files (e.g. in poppler version -0.1.2 this is 1.) -Since: 0.11</div> -<hr> -<div class="refsect2" title="POPPLER_MICRO_VERSION"> -<a name="POPPLER-MICRO-VERSION--CAPS"></a><h3>POPPLER_MICRO_VERSION</h3> -<pre class="programlisting">#define POPPLER_MICRO_VERSION (4) -</pre> -<p> -The micro version number of the poppler header files (e.g. in poppler version -0.1.2 this is 2.) -</p> -Since: 0.11</div> -<hr> -<div class="refsect2" title="POPPLER_CHECK_VERSION()"> -<a name="POPPLER-CHECK-VERSION--CAPS"></a><h3>POPPLER_CHECK_VERSION()</h3> -<pre class="programlisting">#define POPPLER_CHECK_VERSION(major,minor,micro)</pre> -<p> -Returns <code class="literal">TRUE</code> if the version of the poppler header files is the same -as or newer than the passed-in version. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>major</code></em> :</span></p></td> -<td>major version (e.g. 0 for version 0.1.2) -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>minor</code></em> :</span></p></td> -<td>minor version (e.g. 1 for version 0.1.2) -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>micro</code></em> :</span></p></td> -<td>micro version (e.g. 2 for version 0.1.2) -Since: 0.11 -</td> -</tr> -</tbody> -</table></div> -</div> -</div> -</div> -<div class="footer"> -<hr> - Generated by GTK-Doc V1.11</div> -</body> -</html> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-form-field.html b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-form-field.html deleted file mode 100644 index 52b4cbe2fba..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-form-field.html +++ /dev/null @@ -1,871 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>PopplerFormField</title> -<meta name="generator" content="DocBook XSL Stylesheets V1.75.1"> -<link rel="home" href="index.html" title="Poppler Reference Manual"> -<link rel="up" href="ch01.html" title="Poppler"> -<link rel="prev" href="poppler-poppler-attachment.html" title="PopplerAttachment"> -<link rel="next" href="poppler-poppler-enums.html" title="poppler-enums"> -<meta name="generator" content="GTK-Doc V1.11 (XML mode)"> -<link rel="stylesheet" href="style.css" type="text/css"> -<link rel="chapter" href="ch01.html" title="Poppler"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> -<tr valign="middle"> -<td><a accesskey="p" href="poppler-poppler-attachment.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> -<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> -<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> -<th width="100%" align="center">Poppler Reference Manual</th> -<td><a accesskey="n" href="poppler-poppler-enums.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> -</tr> -<tr><td colspan="5" class="shortcuts"> -<a href="#poppler-poppler-form-field.synopsis" class="shortcut">Top</a> -  | - <a href="#poppler-poppler-form-field.description" class="shortcut">Description</a> -  | - <a href="#poppler-poppler-form-field.object-hierarchy" class="shortcut">Object Hierarchy</a> -</td></tr> -</table> -<div class="refentry" title="PopplerFormField"> -<a name="poppler-poppler-form-field"></a><div class="titlepage"></div> -<div class="refnamediv"><table width="100%"><tr> -<td valign="top"> -<h2><span class="refentrytitle"><a name="poppler-poppler-form-field.top_of_page"></a>PopplerFormField</span></h2> -<p>PopplerFormField</p> -</td> -<td valign="top" align="right"></td> -</tr></table></div> -<div class="refsynopsisdiv" title="Synopsis"> -<a name="poppler-poppler-form-field.synopsis"></a><h2>Synopsis</h2> -<a name="PopplerFormField"></a><pre class="synopsis"> - <a class="link" href="poppler-poppler-form-field.html#PopplerFormField-struct" title="PopplerFormField">PopplerFormField</a>; -enum <a class="link" href="poppler-poppler-form-field.html#PopplerFormButtonType" title="enum PopplerFormButtonType">PopplerFormButtonType</a>; -enum <a class="link" href="poppler-poppler-form-field.html#PopplerFormChoiceType" title="enum PopplerFormChoiceType">PopplerFormChoiceType</a>; -enum <a class="link" href="poppler-poppler-form-field.html#PopplerFormFieldType" title="enum PopplerFormFieldType">PopplerFormFieldType</a>; -enum <a class="link" href="poppler-poppler-form-field.html#PopplerFormTextType" title="enum PopplerFormTextType">PopplerFormTextType</a>; -gint <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-get-id" title="poppler_form_field_get_id ()">poppler_form_field_get_id</a> (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -<a class="link" href="poppler-poppler-form-field.html#PopplerFormFieldType" title="enum PopplerFormFieldType">PopplerFormFieldType</a> <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-get-field-type" title="poppler_form_field_get_field_type ()">poppler_form_field_get_field_type</a> (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -gboolean <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-is-read-only" title="poppler_form_field_is_read_only ()">poppler_form_field_is_read_only</a> (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -gdouble <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-get-font-size" title="poppler_form_field_get_font_size ()">poppler_form_field_get_font_size</a> (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -<a class="link" href="poppler-poppler-form-field.html#PopplerFormButtonType" title="enum PopplerFormButtonType">PopplerFormButtonType</a> <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-button-get-button-type" title="poppler_form_field_button_get_button_type ()">poppler_form_field_button_get_button_type</a> - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -gboolean <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-button-get-state" title="poppler_form_field_button_get_state ()">poppler_form_field_button_get_state</a> (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -void <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-button-set-state" title="poppler_form_field_button_set_state ()">poppler_form_field_button_set_state</a> (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field, - gboolean state); -gboolean <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-choice-can-select-multiple" title="poppler_form_field_choice_can_select_multiple ()">poppler_form_field_choice_can_select_multiple</a> - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -gboolean <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-choice-commit-on-change" title="poppler_form_field_choice_commit_on_change ()">poppler_form_field_choice_commit_on_change</a> - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -gboolean <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-choice-do-spell-check" title="poppler_form_field_choice_do_spell_check ()">poppler_form_field_choice_do_spell_check</a> - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -<a class="link" href="poppler-poppler-form-field.html#PopplerFormChoiceType" title="enum PopplerFormChoiceType">PopplerFormChoiceType</a> <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-choice-get-choice-type" title="poppler_form_field_choice_get_choice_type ()">poppler_form_field_choice_get_choice_type</a> - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -gchar * <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-choice-get-item" title="poppler_form_field_choice_get_item ()">poppler_form_field_choice_get_item</a> (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field, - gint index); -gint <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-choice-get-n-items" title="poppler_form_field_choice_get_n_items ()">poppler_form_field_choice_get_n_items</a> - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -gchar * <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-choice-get-text" title="poppler_form_field_choice_get_text ()">poppler_form_field_choice_get_text</a> (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -gboolean <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-choice-is-editable" title="poppler_form_field_choice_is_editable ()">poppler_form_field_choice_is_editable</a> - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -gboolean <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-choice-is-item-selected" title="poppler_form_field_choice_is_item_selected ()">poppler_form_field_choice_is_item_selected</a> - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field, - gint index); -void <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-choice-select-item" title="poppler_form_field_choice_select_item ()">poppler_form_field_choice_select_item</a> - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field, - gint index); -void <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-choice-set-text" title="poppler_form_field_choice_set_text ()">poppler_form_field_choice_set_text</a> (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field, - const gchar *text); -void <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-choice-toggle-item" title="poppler_form_field_choice_toggle_item ()">poppler_form_field_choice_toggle_item</a> - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field, - gint index); -void <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-choice-unselect-all" title="poppler_form_field_choice_unselect_all ()">poppler_form_field_choice_unselect_all</a> - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -gboolean <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-text-do-scroll" title="poppler_form_field_text_do_scroll ()">poppler_form_field_text_do_scroll</a> (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -gboolean <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-text-do-spell-check" title="poppler_form_field_text_do_spell_check ()">poppler_form_field_text_do_spell_check</a> - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -gint <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-text-get-max-len" title="poppler_form_field_text_get_max_len ()">poppler_form_field_text_get_max_len</a> (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -gchar * <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-text-get-text" title="poppler_form_field_text_get_text ()">poppler_form_field_text_get_text</a> (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -<a class="link" href="poppler-poppler-form-field.html#PopplerFormTextType" title="enum PopplerFormTextType">PopplerFormTextType</a> <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-text-get-text-type" title="poppler_form_field_text_get_text_type ()">poppler_form_field_text_get_text_type</a> - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -gboolean <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-text-is-password" title="poppler_form_field_text_is_password ()">poppler_form_field_text_is_password</a> (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -gboolean <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-text-is-rich-text" title="poppler_form_field_text_is_rich_text ()">poppler_form_field_text_is_rich_text</a> - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field); -void <a class="link" href="poppler-poppler-form-field.html#poppler-form-field-text-set-text" title="poppler_form_field_text_set_text ()">poppler_form_field_text_set_text</a> (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field, - const gchar *text); -</pre> -</div> -<div class="refsect1" title="Object Hierarchy"> -<a name="poppler-poppler-form-field.object-hierarchy"></a><h2>Object Hierarchy</h2> -<pre class="synopsis"> - GObject - +----PopplerFormField -</pre> -</div> -<div class="refsect1" title="Description"> -<a name="poppler-poppler-form-field.description"></a><h2>Description</h2> -<p> -</p> -</div> -<div class="refsect1" title="Details"> -<a name="poppler-poppler-form-field.details"></a><h2>Details</h2> -<div class="refsect2" title="PopplerFormField"> -<a name="PopplerFormField-struct"></a><h3>PopplerFormField</h3> -<pre class="programlisting">typedef struct _PopplerFormField PopplerFormField;</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="enum PopplerFormButtonType"> -<a name="PopplerFormButtonType"></a><h3>enum PopplerFormButtonType</h3> -<pre class="programlisting">typedef enum -{ - POPPLER_FORM_BUTTON_PUSH, - POPPLER_FORM_BUTTON_CHECK, - POPPLER_FORM_BUTTON_RADIO -} PopplerFormButtonType; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="enum PopplerFormChoiceType"> -<a name="PopplerFormChoiceType"></a><h3>enum PopplerFormChoiceType</h3> -<pre class="programlisting">typedef enum -{ - POPPLER_FORM_CHOICE_COMBO, - POPPLER_FORM_CHOICE_LIST -} PopplerFormChoiceType; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="enum PopplerFormFieldType"> -<a name="PopplerFormFieldType"></a><h3>enum PopplerFormFieldType</h3> -<pre class="programlisting">typedef enum -{ - POPPLER_FORM_FIELD_UNKNOWN, - POPPLER_FORM_FIELD_BUTTON, - POPPLER_FORM_FIELD_TEXT, - POPPLER_FORM_FIELD_CHOICE, - POPPLER_FORM_FIELD_SIGNATURE -} PopplerFormFieldType; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="enum PopplerFormTextType"> -<a name="PopplerFormTextType"></a><h3>enum PopplerFormTextType</h3> -<pre class="programlisting">typedef enum -{ - POPPLER_FORM_TEXT_NORMAL, - POPPLER_FORM_TEXT_MULTILINE, - POPPLER_FORM_TEXT_FILE_SELECT -} PopplerFormTextType; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_get_id ()"> -<a name="poppler-form-field-get-id"></a><h3>poppler_form_field_get_id ()</h3> -<pre class="programlisting">gint poppler_form_field_get_id (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Gets the id of <em class="parameter"><code>field</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> the id of <em class="parameter"><code>field</code></em> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_get_field_type ()"> -<a name="poppler-form-field-get-field-type"></a><h3>poppler_form_field_get_field_type ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-form-field.html#PopplerFormFieldType" title="enum PopplerFormFieldType">PopplerFormFieldType</a> poppler_form_field_get_field_type (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Gets the type of <em class="parameter"><code>field</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <a class="link" href="poppler-poppler-form-field.html#PopplerFormFieldType" title="enum PopplerFormFieldType"><span class="type">PopplerFormFieldType</span></a> of <em class="parameter"><code>field</code></em> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_is_read_only ()"> -<a name="poppler-form-field-is-read-only"></a><h3>poppler_form_field_is_read_only ()</h3> -<pre class="programlisting">gboolean poppler_form_field_is_read_only (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Checks whether <em class="parameter"><code>field</code></em> is read only</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code> if <em class="parameter"><code>field</code></em> is read only -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_get_font_size ()"> -<a name="poppler-form-field-get-font-size"></a><h3>poppler_form_field_get_font_size ()</h3> -<pre class="programlisting">gdouble poppler_form_field_get_font_size (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Gets the font size of <em class="parameter"><code>field</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> the font size of <em class="parameter"><code>field</code></em> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_button_get_button_type ()"> -<a name="poppler-form-field-button-get-button-type"></a><h3>poppler_form_field_button_get_button_type ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-form-field.html#PopplerFormButtonType" title="enum PopplerFormButtonType">PopplerFormButtonType</a> poppler_form_field_button_get_button_type - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Gets the button type of <em class="parameter"><code>field</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <a class="link" href="poppler-poppler-form-field.html#PopplerFormButtonType" title="enum PopplerFormButtonType"><span class="type">PopplerFormButtonType</span></a> of <em class="parameter"><code>field</code></em> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_button_get_state ()"> -<a name="poppler-form-field-button-get-state"></a><h3>poppler_form_field_button_get_state ()</h3> -<pre class="programlisting">gboolean poppler_form_field_button_get_state (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Queries a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> and returns its current state. Returns <code class="literal">TRUE</code> if -<em class="parameter"><code>field</code></em> is pressed in and <code class="literal">FALSE</code> if it is raised.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> current state of <em class="parameter"><code>field</code></em> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_button_set_state ()"> -<a name="poppler-form-field-button-set-state"></a><h3>poppler_form_field_button_set_state ()</h3> -<pre class="programlisting">void poppler_form_field_button_set_state (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field, - gboolean state);</pre> -<p> -Sets the status of <em class="parameter"><code>field</code></em>. Set to <code class="literal">TRUE</code> if you want the <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -to be 'pressed in', and <code class="literal">FALSE</code> to raise it.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td> -<td> <code class="literal">TRUE</code> or <code class="literal">FALSE</code> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_choice_can_select_multiple ()"> -<a name="poppler-form-field-choice-can-select-multiple"></a><h3>poppler_form_field_choice_can_select_multiple ()</h3> -<pre class="programlisting">gboolean poppler_form_field_choice_can_select_multiple - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Checks whether <em class="parameter"><code>field</code></em> allows multiple choices to be selected</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code> if <em class="parameter"><code>field</code></em> allows multiple choices to be selected -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_choice_commit_on_change ()"> -<a name="poppler-form-field-choice-commit-on-change"></a><h3>poppler_form_field_choice_commit_on_change ()</h3> -<pre class="programlisting">gboolean poppler_form_field_choice_commit_on_change - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_choice_do_spell_check ()"> -<a name="poppler-form-field-choice-do-spell-check"></a><h3>poppler_form_field_choice_do_spell_check ()</h3> -<pre class="programlisting">gboolean poppler_form_field_choice_do_spell_check - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Checks whether spell checking should be done for the contents of <em class="parameter"><code>field</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code> if spell checking should be done for <em class="parameter"><code>field</code></em> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_choice_get_choice_type ()"> -<a name="poppler-form-field-choice-get-choice-type"></a><h3>poppler_form_field_choice_get_choice_type ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-form-field.html#PopplerFormChoiceType" title="enum PopplerFormChoiceType">PopplerFormChoiceType</a> poppler_form_field_choice_get_choice_type - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Gets the choice type of <em class="parameter"><code>field</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <a class="link" href="poppler-poppler-form-field.html#PopplerFormChoiceType" title="enum PopplerFormChoiceType"><span class="type">PopplerFormChoiceType</span></a> of <em class="parameter"><code>field</code></em> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_choice_get_item ()"> -<a name="poppler-form-field-choice-get-item"></a><h3>poppler_form_field_choice_get_item ()</h3> -<pre class="programlisting">gchar * poppler_form_field_choice_get_item (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field, - gint index);</pre> -<p> -Returns the contents of the item on <em class="parameter"><code>field</code></em> at the given index</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>index</code></em> :</span></p></td> -<td> the index of the item -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new allocated string. It must be freed with <code class="function">g_free()</code> when done. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_choice_get_n_items ()"> -<a name="poppler-form-field-choice-get-n-items"></a><h3>poppler_form_field_choice_get_n_items ()</h3> -<pre class="programlisting">gint poppler_form_field_choice_get_n_items - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Returns the number of items on <em class="parameter"><code>field</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> the number of items on <em class="parameter"><code>field</code></em> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_choice_get_text ()"> -<a name="poppler-form-field-choice-get-text"></a><h3>poppler_form_field_choice_get_text ()</h3> -<pre class="programlisting">gchar * poppler_form_field_choice_get_text (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Retrieves the contents of <em class="parameter"><code>field</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new allocated string. It must be freed with <code class="function">g_free()</code> when done. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_choice_is_editable ()"> -<a name="poppler-form-field-choice-is-editable"></a><h3>poppler_form_field_choice_is_editable ()</h3> -<pre class="programlisting">gboolean poppler_form_field_choice_is_editable - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Checks whether <em class="parameter"><code>field</code></em> is editable</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code> if <em class="parameter"><code>field</code></em> is editable -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_choice_is_item_selected ()"> -<a name="poppler-form-field-choice-is-item-selected"></a><h3>poppler_form_field_choice_is_item_selected ()</h3> -<pre class="programlisting">gboolean poppler_form_field_choice_is_item_selected - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field, - gint index);</pre> -<p> -Checks whether the item at the given index on <em class="parameter"><code>field</code></em> is currently selected</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>index</code></em> :</span></p></td> -<td> the index of the item -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code> if item at <em class="parameter"><code>index</code></em> is currently selected -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_choice_select_item ()"> -<a name="poppler-form-field-choice-select-item"></a><h3>poppler_form_field_choice_select_item ()</h3> -<pre class="programlisting">void poppler_form_field_choice_select_item - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field, - gint index);</pre> -<p> -Selects the item at the given index on <em class="parameter"><code>field</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>index</code></em> :</span></p></td> -<td> the index of the item -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_choice_set_text ()"> -<a name="poppler-form-field-choice-set-text"></a><h3>poppler_form_field_choice_set_text ()</h3> -<pre class="programlisting">void poppler_form_field_choice_set_text (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field, - const gchar *text);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_choice_toggle_item ()"> -<a name="poppler-form-field-choice-toggle-item"></a><h3>poppler_form_field_choice_toggle_item ()</h3> -<pre class="programlisting">void poppler_form_field_choice_toggle_item - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field, - gint index);</pre> -<p> -Sets the text in <em class="parameter"><code>field</code></em> to the given value, replacing the current contents</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>index</code></em> :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_choice_unselect_all ()"> -<a name="poppler-form-field-choice-unselect-all"></a><h3>poppler_form_field_choice_unselect_all ()</h3> -<pre class="programlisting">void poppler_form_field_choice_unselect_all - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Unselects all the items on <em class="parameter"><code>field</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_text_do_scroll ()"> -<a name="poppler-form-field-text-do-scroll"></a><h3>poppler_form_field_text_do_scroll ()</h3> -<pre class="programlisting">gboolean poppler_form_field_text_do_scroll (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_text_do_spell_check ()"> -<a name="poppler-form-field-text-do-spell-check"></a><h3>poppler_form_field_text_do_spell_check ()</h3> -<pre class="programlisting">gboolean poppler_form_field_text_do_spell_check - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Checks whether spell checking should be done for the contents of <em class="parameter"><code>field</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code> if spell checking should be done for <em class="parameter"><code>field</code></em> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_text_get_max_len ()"> -<a name="poppler-form-field-text-get-max-len"></a><h3>poppler_form_field_text_get_max_len ()</h3> -<pre class="programlisting">gint poppler_form_field_text_get_max_len (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Retrieves the maximum allowed length of the text in <em class="parameter"><code>field</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> the maximum allowed number of characters in <em class="parameter"><code>field</code></em>, or -1 if there is no maximum. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_text_get_text ()"> -<a name="poppler-form-field-text-get-text"></a><h3>poppler_form_field_text_get_text ()</h3> -<pre class="programlisting">gchar * poppler_form_field_text_get_text (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Retrieves the contents of <em class="parameter"><code>field</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a new allocated string. It must be freed with <code class="function">g_free()</code> when done. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_text_get_text_type ()"> -<a name="poppler-form-field-text-get-text-type"></a><h3>poppler_form_field_text_get_text_type ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-form-field.html#PopplerFormTextType" title="enum PopplerFormTextType">PopplerFormTextType</a> poppler_form_field_text_get_text_type - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Gets the text type of <em class="parameter"><code>field</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <a class="link" href="poppler-poppler-form-field.html#PopplerFormTextType" title="enum PopplerFormTextType"><span class="type">PopplerFormTextType</span></a> of <em class="parameter"><code>field</code></em> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_text_is_password ()"> -<a name="poppler-form-field-text-is-password"></a><h3>poppler_form_field_text_is_password ()</h3> -<pre class="programlisting">gboolean poppler_form_field_text_is_password (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Checks whether content of <em class="parameter"><code>field</code></em> is a password and it must be hidden</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code> if the content of <em class="parameter"><code>field</code></em> is a password -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_text_is_rich_text ()"> -<a name="poppler-form-field-text-is-rich-text"></a><h3>poppler_form_field_text_is_rich_text ()</h3> -<pre class="programlisting">gboolean poppler_form_field_text_is_rich_text - (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field);</pre> -<p> -Checks whether the contents of <em class="parameter"><code>field</code></em> are rich text</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code> if the contents of <em class="parameter"><code>field</code></em> are rich text -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_text_set_text ()"> -<a name="poppler-form-field-text-set-text"></a><h3>poppler_form_field_text_set_text ()</h3> -<pre class="programlisting">void poppler_form_field_text_set_text (<a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> *field, - const gchar *text);</pre> -<p> -Sets the text in <em class="parameter"><code>field</code></em> to the given value, replacing the current contents.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td> -<td> the new text -</td> -</tr> -</tbody> -</table></div> -</div> -</div> -</div> -<div class="footer"> -<hr> - Generated by GTK-Doc V1.11</div> -</body> -</html> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-layer.html b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-layer.html deleted file mode 100644 index dbfff4938cc..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-layer.html +++ /dev/null @@ -1,214 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>PopplerLayer</title> -<meta name="generator" content="DocBook XSL Stylesheets V1.75.1"> -<link rel="home" href="index.html" title="Poppler Reference Manual"> -<link rel="up" href="ch01.html" title="Poppler"> -<link rel="prev" href="poppler-poppler-annot.html" title="PopplerAnnot"> -<link rel="next" href="poppler-poppler-features.html" title="Version and Features Information"> -<meta name="generator" content="GTK-Doc V1.11 (XML mode)"> -<link rel="stylesheet" href="style.css" type="text/css"> -<link rel="chapter" href="ch01.html" title="Poppler"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> -<tr valign="middle"> -<td><a accesskey="p" href="poppler-poppler-annot.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> -<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> -<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> -<th width="100%" align="center">Poppler Reference Manual</th> -<td><a accesskey="n" href="poppler-poppler-features.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> -</tr> -<tr><td colspan="5" class="shortcuts"> -<a href="#poppler-poppler-layer.synopsis" class="shortcut">Top</a> -  | - <a href="#poppler-poppler-layer.description" class="shortcut">Description</a> -</td></tr> -</table> -<div class="refentry" title="PopplerLayer"> -<a name="poppler-poppler-layer"></a><div class="titlepage"></div> -<div class="refnamediv"><table width="100%"><tr> -<td valign="top"> -<h2><span class="refentrytitle"><a name="poppler-poppler-layer.top_of_page"></a>PopplerLayer</span></h2> -<p>PopplerLayer</p> -</td> -<td valign="top" align="right"></td> -</tr></table></div> -<div class="refsynopsisdiv" title="Synopsis"> -<a name="poppler-poppler-layer.synopsis"></a><h2>Synopsis</h2> -<pre class="synopsis"> -GType <a class="link" href="poppler-poppler-layer.html#poppler-layer-get-type" title="poppler_layer_get_type ()">poppler_layer_get_type</a> (void); -const gchar * <a class="link" href="poppler-poppler-layer.html#poppler-layer-get-title" title="poppler_layer_get_title ()">poppler_layer_get_title</a> (PopplerLayer *layer); -gboolean <a class="link" href="poppler-poppler-layer.html#poppler-layer-is-visible" title="poppler_layer_is_visible ()">poppler_layer_is_visible</a> (PopplerLayer *layer); -void <a class="link" href="poppler-poppler-layer.html#poppler-layer-show" title="poppler_layer_show ()">poppler_layer_show</a> (PopplerLayer *layer); -void <a class="link" href="poppler-poppler-layer.html#poppler-layer-hide" title="poppler_layer_hide ()">poppler_layer_hide</a> (PopplerLayer *layer); -gboolean <a class="link" href="poppler-poppler-layer.html#poppler-layer-is-parent" title="poppler_layer_is_parent ()">poppler_layer_is_parent</a> (PopplerLayer *layer); -gint <a class="link" href="poppler-poppler-layer.html#poppler-layer-get-radio-button-group-id" title="poppler_layer_get_radio_button_group_id ()">poppler_layer_get_radio_button_group_id</a> - (PopplerLayer *layer); -</pre> -</div> -<div class="refsect1" title="Description"> -<a name="poppler-poppler-layer.description"></a><h2>Description</h2> -<p> -</p> -</div> -<div class="refsect1" title="Details"> -<a name="poppler-poppler-layer.details"></a><h2>Details</h2> -<div class="refsect2" title="poppler_layer_get_type ()"> -<a name="poppler-layer-get-type"></a><h3>poppler_layer_get_type ()</h3> -<pre class="programlisting">GType poppler_layer_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_layer_get_title ()"> -<a name="poppler-layer-get-title"></a><h3>poppler_layer_get_title ()</h3> -<pre class="programlisting">const gchar * poppler_layer_get_title (PopplerLayer *layer);</pre> -<p> -Returns the name of the layer suitable for -presentation as a title in a viewer's GUI</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>layer</code></em> :</span></p></td> -<td> a <span class="type">PopplerLayer</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a string containing the title of the layer -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_layer_is_visible ()"> -<a name="poppler-layer-is-visible"></a><h3>poppler_layer_is_visible ()</h3> -<pre class="programlisting">gboolean poppler_layer_is_visible (PopplerLayer *layer);</pre> -<p> -Returns whether <em class="parameter"><code>layer</code></em> is visible</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>layer</code></em> :</span></p></td> -<td> a <span class="type">PopplerLayer</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code> if <em class="parameter"><code>layer</code></em> is visible -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_layer_show ()"> -<a name="poppler-layer-show"></a><h3>poppler_layer_show ()</h3> -<pre class="programlisting">void poppler_layer_show (PopplerLayer *layer);</pre> -<p> -Shows <em class="parameter"><code>layer</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>layer</code></em> :</span></p></td> -<td> a <span class="type">PopplerLayer</span> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_layer_hide ()"> -<a name="poppler-layer-hide"></a><h3>poppler_layer_hide ()</h3> -<pre class="programlisting">void poppler_layer_hide (PopplerLayer *layer);</pre> -<p> -Hides <em class="parameter"><code>layer</code></em>. If <em class="parameter"><code>layer</code></em> is the parent of other nested layers, -such layers will be also hidden and will be blocked until <em class="parameter"><code>layer</code></em> -is shown again</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>layer</code></em> :</span></p></td> -<td> a <span class="type">PopplerLayer</span> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_layer_is_parent ()"> -<a name="poppler-layer-is-parent"></a><h3>poppler_layer_is_parent ()</h3> -<pre class="programlisting">gboolean poppler_layer_is_parent (PopplerLayer *layer);</pre> -<p> -Returns whether <em class="parameter"><code>layer</code></em> is parent of other nested layers.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>layer</code></em> :</span></p></td> -<td> a <span class="type">PopplerLayer</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code> if <em class="parameter"><code>layer</code></em> is a parent layer -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_layer_get_radio_button_group_id ()"> -<a name="poppler-layer-get-radio-button-group-id"></a><h3>poppler_layer_get_radio_button_group_id ()</h3> -<pre class="programlisting">gint poppler_layer_get_radio_button_group_id - (PopplerLayer *layer);</pre> -<p> -Returns the numeric ID the radio button group associated with <em class="parameter"><code>layer</code></em>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>layer</code></em> :</span></p></td> -<td> a <span class="type">PopplerLayer</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> the ID of the radio button group associated with <em class="parameter"><code>layer</code></em>, -or 0 if the layer is not associated to any radio button group -</td> -</tr> -</tbody> -</table></div> -</div> -</div> -</div> -<div class="footer"> -<hr> - Generated by GTK-Doc V1.11</div> -</body> -</html> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-page.html b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-page.html deleted file mode 100644 index bd565278b4f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler-page.html +++ /dev/null @@ -1,1258 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>PopplerPage</title> -<meta name="generator" content="DocBook XSL Stylesheets V1.75.1"> -<link rel="home" href="index.html" title="Poppler Reference Manual"> -<link rel="up" href="ch01.html" title="Poppler"> -<link rel="prev" href="poppler-poppler-document.html" title="PopplerDocument"> -<link rel="next" href="poppler-poppler-action.html" title="PopplerAction"> -<meta name="generator" content="GTK-Doc V1.11 (XML mode)"> -<link rel="stylesheet" href="style.css" type="text/css"> -<link rel="chapter" href="ch01.html" title="Poppler"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> -<tr valign="middle"> -<td><a accesskey="p" href="poppler-poppler-document.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> -<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> -<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> -<th width="100%" align="center">Poppler Reference Manual</th> -<td><a accesskey="n" href="poppler-poppler-action.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> -</tr> -<tr><td colspan="5" class="shortcuts"> -<a href="#poppler-poppler-page.synopsis" class="shortcut">Top</a> -  | - <a href="#poppler-poppler-page.description" class="shortcut">Description</a> -</td></tr> -</table> -<div class="refentry" title="PopplerPage"> -<a name="poppler-poppler-page"></a><div class="titlepage"></div> -<div class="refnamediv"><table width="100%"><tr> -<td valign="top"> -<h2><span class="refentrytitle"><a name="poppler-poppler-page.top_of_page"></a>PopplerPage</span></h2> -<p>PopplerPage — Information about a page in a document</p> -</td> -<td valign="top" align="right"></td> -</tr></table></div> -<div class="refsynopsisdiv" title="Synopsis"> -<a name="poppler-poppler-page.synopsis"></a><h2>Synopsis</h2> -<pre class="synopsis"> -void <a class="link" href="poppler-poppler-page.html#poppler-page-render" title="poppler_page_render ()">poppler_page_render</a> (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - cairo_t *cairo); -void <a class="link" href="poppler-poppler-page.html#poppler-page-render-to-pixbuf" title="poppler_page_render_to_pixbuf ()">poppler_page_render_to_pixbuf</a> (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - int src_x, - int src_y, - int src_width, - int src_height, - double scale, - int rotation, - GdkPixbuf *pixbuf); -void <a class="link" href="poppler-poppler-page.html#poppler-page-get-size" title="poppler_page_get_size ()">poppler_page_get_size</a> (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - double *width, - double *height); -int <a class="link" href="poppler-poppler-page.html#poppler-page-get-index" title="poppler_page_get_index ()">poppler_page_get_index</a> (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page); -cairo_surface_t * <a class="link" href="poppler-poppler-page.html#poppler-page-get-thumbnail" title="poppler_page_get_thumbnail ()">poppler_page_get_thumbnail</a> (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page); -gboolean <a class="link" href="poppler-poppler-page.html#poppler-page-get-thumbnail-size" title="poppler_page_get_thumbnail_size ()">poppler_page_get_thumbnail_size</a> (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - int *width, - int *height); -void <a class="link" href="poppler-poppler-page.html#poppler-page-render-to-ps" title="poppler_page_render_to_ps ()">poppler_page_render_to_ps</a> (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - <a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> *ps_file); -GList * <a class="link" href="poppler-poppler-page.html#poppler-page-find-text" title="poppler_page_find_text ()">poppler_page_find_text</a> (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - const char *text); -char * <a class="link" href="poppler-poppler-page.html#poppler-page-get-text" title="poppler_page_get_text ()">poppler_page_get_text</a> (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - <a class="link" href="poppler-poppler.html#PopplerSelectionStyle" title="enum PopplerSelectionStyle">PopplerSelectionStyle</a> style, - <a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> *rect); -double <a class="link" href="poppler-poppler-page.html#poppler-page-get-duration" title="poppler_page_get_duration ()">poppler_page_get_duration</a> (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page); -<a class="link" href="poppler-poppler-page.html#PopplerPageTransition" title="PopplerPageTransition">PopplerPageTransition</a> * <a class="link" href="poppler-poppler-page.html#poppler-page-get-transition" title="poppler_page_get_transition ()">poppler_page_get_transition</a> (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page); -GList * <a class="link" href="poppler-poppler-page.html#poppler-page-get-link-mapping" title="poppler_page_get_link_mapping ()">poppler_page_get_link_mapping</a> (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page); -void <a class="link" href="poppler-poppler-page.html#poppler-page-free-link-mapping" title="poppler_page_free_link_mapping ()">poppler_page_free_link_mapping</a> (GList *list); -GList * <a class="link" href="poppler-poppler-page.html#poppler-page-get-image-mapping" title="poppler_page_get_image_mapping ()">poppler_page_get_image_mapping</a> (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page); -void <a class="link" href="poppler-poppler-page.html#poppler-page-free-image-mapping" title="poppler_page_free_image_mapping ()">poppler_page_free_image_mapping</a> (GList *list); -GList * <a class="link" href="poppler-poppler-page.html#poppler-page-get-form-field-mapping" title="poppler_page_get_form_field_mapping ()">poppler_page_get_form_field_mapping</a> (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page); -void <a class="link" href="poppler-poppler-page.html#poppler-page-free-form-field-mapping" title="poppler_page_free_form_field_mapping ()">poppler_page_free_form_field_mapping</a> - (GList *list); -GList * <a class="link" href="poppler-poppler-page.html#poppler-page-get-selection-region" title="poppler_page_get_selection_region ()">poppler_page_get_selection_region</a> (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - gdouble scale, - <a class="link" href="poppler-poppler.html#PopplerSelectionStyle" title="enum PopplerSelectionStyle">PopplerSelectionStyle</a> style, - <a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> *selection); -void <a class="link" href="poppler-poppler-page.html#poppler-page-render-selection" title="poppler_page_render_selection ()">poppler_page_render_selection</a> (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - cairo_t *cairo, - <a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> *selection, - <a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> *old_selection, - <a class="link" href="poppler-poppler.html#PopplerSelectionStyle" title="enum PopplerSelectionStyle">PopplerSelectionStyle</a> style, - PopplerColor *glyph_color, - PopplerColor *background_color); -void <a class="link" href="poppler-poppler-page.html#poppler-page-render-selection-to-pixbuf" title="poppler_page_render_selection_to_pixbuf ()">poppler_page_render_selection_to_pixbuf</a> - (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - gdouble scale, - int rotation, - GdkPixbuf *pixbuf, - <a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> *selection, - <a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> *old_selection, - <a class="link" href="poppler-poppler.html#PopplerSelectionStyle" title="enum PopplerSelectionStyle">PopplerSelectionStyle</a> style, - GdkColor *glyph_color, - GdkColor *background_color); -#define <a class="link" href="poppler-poppler-page.html#POPPLER-TYPE-RECTANGLE--CAPS" title="POPPLER_TYPE_RECTANGLE">POPPLER_TYPE_RECTANGLE</a> - <a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a>; -GType <a class="link" href="poppler-poppler-page.html#poppler-rectangle-get-type" title="poppler_rectangle_get_type ()">poppler_rectangle_get_type</a> (void); -<a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> * <a class="link" href="poppler-poppler-page.html#poppler-rectangle-new" title="poppler_rectangle_new ()">poppler_rectangle_new</a> (void); -<a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> * <a class="link" href="poppler-poppler-page.html#poppler-rectangle-copy" title="poppler_rectangle_copy ()">poppler_rectangle_copy</a> (<a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> *rectangle); -void <a class="link" href="poppler-poppler-page.html#poppler-rectangle-free" title="poppler_rectangle_free ()">poppler_rectangle_free</a> (<a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> *rectangle); -#define <a class="link" href="poppler-poppler-page.html#POPPLER-TYPE-PAGE-TRANSITION--CAPS" title="POPPLER_TYPE_PAGE_TRANSITION">POPPLER_TYPE_PAGE_TRANSITION</a> - <a class="link" href="poppler-poppler-page.html#PopplerPageTransition" title="PopplerPageTransition">PopplerPageTransition</a>; -GType <a class="link" href="poppler-poppler-page.html#poppler-page-transition-get-type" title="poppler_page_transition_get_type ()">poppler_page_transition_get_type</a> (void); -<a class="link" href="poppler-poppler-page.html#PopplerPageTransition" title="PopplerPageTransition">PopplerPageTransition</a> * <a class="link" href="poppler-poppler-page.html#poppler-page-transition-new" title="poppler_page_transition_new ()">poppler_page_transition_new</a> (void); -<a class="link" href="poppler-poppler-page.html#PopplerPageTransition" title="PopplerPageTransition">PopplerPageTransition</a> * <a class="link" href="poppler-poppler-page.html#poppler-page-transition-copy" title="poppler_page_transition_copy ()">poppler_page_transition_copy</a> (<a class="link" href="poppler-poppler-page.html#PopplerPageTransition" title="PopplerPageTransition">PopplerPageTransition</a> *transition); -void <a class="link" href="poppler-poppler-page.html#poppler-page-transition-free" title="poppler_page_transition_free ()">poppler_page_transition_free</a> (<a class="link" href="poppler-poppler-page.html#PopplerPageTransition" title="PopplerPageTransition">PopplerPageTransition</a> *transition); -#define <a class="link" href="poppler-poppler-page.html#POPPLER-TYPE-LINK-MAPPING--CAPS" title="POPPLER_TYPE_LINK_MAPPING">POPPLER_TYPE_LINK_MAPPING</a> - <a class="link" href="poppler-poppler.html#PopplerLinkMapping" title="PopplerLinkMapping">PopplerLinkMapping</a>; -GType <a class="link" href="poppler-poppler-page.html#poppler-link-mapping-get-type" title="poppler_link_mapping_get_type ()">poppler_link_mapping_get_type</a> (void); -<a class="link" href="poppler-poppler.html#PopplerLinkMapping" title="PopplerLinkMapping">PopplerLinkMapping</a> * <a class="link" href="poppler-poppler-page.html#poppler-link-mapping-new" title="poppler_link_mapping_new ()">poppler_link_mapping_new</a> (void); -<a class="link" href="poppler-poppler.html#PopplerLinkMapping" title="PopplerLinkMapping">PopplerLinkMapping</a> * <a class="link" href="poppler-poppler-page.html#poppler-link-mapping-copy" title="poppler_link_mapping_copy ()">poppler_link_mapping_copy</a> (<a class="link" href="poppler-poppler.html#PopplerLinkMapping" title="PopplerLinkMapping">PopplerLinkMapping</a> *mapping); -void <a class="link" href="poppler-poppler-page.html#poppler-link-mapping-free" title="poppler_link_mapping_free ()">poppler_link_mapping_free</a> (<a class="link" href="poppler-poppler.html#PopplerLinkMapping" title="PopplerLinkMapping">PopplerLinkMapping</a> *mapping); -#define <a class="link" href="poppler-poppler-page.html#POPPLER-TYPE-IMAGE-MAPPING--CAPS" title="POPPLER_TYPE_IMAGE_MAPPING">POPPLER_TYPE_IMAGE_MAPPING</a> - <a class="link" href="poppler-poppler-page.html#PopplerImageMapping" title="PopplerImageMapping">PopplerImageMapping</a>; -GType <a class="link" href="poppler-poppler-page.html#poppler-image-mapping-get-type" title="poppler_image_mapping_get_type ()">poppler_image_mapping_get_type</a> (void); -<a class="link" href="poppler-poppler-page.html#PopplerImageMapping" title="PopplerImageMapping">PopplerImageMapping</a> * <a class="link" href="poppler-poppler-page.html#poppler-image-mapping-new" title="poppler_image_mapping_new ()">poppler_image_mapping_new</a> (void); -<a class="link" href="poppler-poppler-page.html#PopplerImageMapping" title="PopplerImageMapping">PopplerImageMapping</a> * <a class="link" href="poppler-poppler-page.html#poppler-image-mapping-copy" title="poppler_image_mapping_copy ()">poppler_image_mapping_copy</a> (<a class="link" href="poppler-poppler-page.html#PopplerImageMapping" title="PopplerImageMapping">PopplerImageMapping</a> *mapping); -void <a class="link" href="poppler-poppler-page.html#poppler-image-mapping-free" title="poppler_image_mapping_free ()">poppler_image_mapping_free</a> (<a class="link" href="poppler-poppler-page.html#PopplerImageMapping" title="PopplerImageMapping">PopplerImageMapping</a> *mapping); -#define <a class="link" href="poppler-poppler-page.html#POPPLER-TYPE-FORM-FIELD-MAPPING--CAPS" title="POPPLER_TYPE_FORM_FIELD_MAPPING">POPPLER_TYPE_FORM_FIELD_MAPPING</a> - <a class="link" href="poppler-poppler-page.html#PopplerFormFieldMapping" title="PopplerFormFieldMapping">PopplerFormFieldMapping</a>; -GType <a class="link" href="poppler-poppler-page.html#poppler-form-field-mapping-get-type" title="poppler_form_field_mapping_get_type ()">poppler_form_field_mapping_get_type</a> (void); -<a class="link" href="poppler-poppler-page.html#PopplerFormFieldMapping" title="PopplerFormFieldMapping">PopplerFormFieldMapping</a> * <a class="link" href="poppler-poppler-page.html#poppler-form-field-mapping-new" title="poppler_form_field_mapping_new ()">poppler_form_field_mapping_new</a> - (void); -<a class="link" href="poppler-poppler-page.html#PopplerFormFieldMapping" title="PopplerFormFieldMapping">PopplerFormFieldMapping</a> * <a class="link" href="poppler-poppler-page.html#poppler-form-field-mapping-copy" title="poppler_form_field_mapping_copy ()">poppler_form_field_mapping_copy</a> - (<a class="link" href="poppler-poppler-page.html#PopplerFormFieldMapping" title="PopplerFormFieldMapping">PopplerFormFieldMapping</a> *mapping); -void <a class="link" href="poppler-poppler-page.html#poppler-form-field-mapping-free" title="poppler_form_field_mapping_free ()">poppler_form_field_mapping_free</a> (<a class="link" href="poppler-poppler-page.html#PopplerFormFieldMapping" title="PopplerFormFieldMapping">PopplerFormFieldMapping</a> *mapping); -</pre> -</div> -<div class="refsect1" title="Description"> -<a name="poppler-poppler-page.description"></a><h2>Description</h2> -<p> -</p> -</div> -<div class="refsect1" title="Details"> -<a name="poppler-poppler-page.details"></a><h2>Details</h2> -<div class="refsect2" title="poppler_page_render ()"> -<a name="poppler-page-render"></a><h3>poppler_page_render ()</h3> -<pre class="programlisting">void poppler_page_render (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - cairo_t *cairo);</pre> -<p> -Render the page to the given cairo context. This function -is for rendering a page that will be displayed. If you want -to render a page that will be printed use -<code class="function">poppler_page_render_for_printing()</code> instead</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> the page to render from -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cairo</code></em> :</span></p></td> -<td> cairo context to render to -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_render_to_pixbuf ()"> -<a name="poppler-page-render-to-pixbuf"></a><h3>poppler_page_render_to_pixbuf ()</h3> -<pre class="programlisting">void poppler_page_render_to_pixbuf (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - int src_x, - int src_y, - int src_width, - int src_height, - double scale, - int rotation, - GdkPixbuf *pixbuf);</pre> -<p> -First scale the document to match the specified pixels per point, -then render the rectangle given by the upper left corner at -(src_x, src_y) and src_width and src_height. -This function is for rendering a page that will be displayed. -If you want to render a page that will be printed use -<code class="function">poppler_page_render_to_pixbuf_for_printing()</code> instead</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> the page to render from -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>src_x</code></em> :</span></p></td> -<td> x coordinate of upper left corner -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>src_y</code></em> :</span></p></td> -<td> y coordinate of upper left corner -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>src_width</code></em> :</span></p></td> -<td> width of rectangle to render -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>src_height</code></em> :</span></p></td> -<td> height of rectangle to render -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>scale</code></em> :</span></p></td> -<td> scale specified as pixels per point -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>rotation</code></em> :</span></p></td> -<td> rotate the document by the specified degree -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td> -<td> pixbuf to render into -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_get_size ()"> -<a name="poppler-page-get-size"></a><h3>poppler_page_get_size ()</h3> -<pre class="programlisting">void poppler_page_get_size (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - double *width, - double *height);</pre> -<p> -Gets the size of <em class="parameter"><code>page</code></em> at the current scale and rotation.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> A <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td> return location for the width of <em class="parameter"><code>page</code></em> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td> return location for the height of <em class="parameter"><code>page</code></em> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_get_index ()"> -<a name="poppler-page-get-index"></a><h3>poppler_page_get_index ()</h3> -<pre class="programlisting">int poppler_page_get_index (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page);</pre> -<p> -Returns the index of <em class="parameter"><code>page</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> index value of <em class="parameter"><code>page</code></em> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_get_thumbnail ()"> -<a name="poppler-page-get-thumbnail"></a><h3>poppler_page_get_thumbnail ()</h3> -<pre class="programlisting">cairo_surface_t * poppler_page_get_thumbnail (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page);</pre> -<p> -Get the embedded thumbnail for the specified page. If the document -doesn't have an embedded thumbnail for the page, this function -returns <code class="literal">NULL</code>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> the <span class="type">PopperPage</span> to get the thumbnail for -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> the tumbnail as a cairo_surface_t or <code class="literal">NULL</code> if the document -doesn't have a thumbnail for this page. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_get_thumbnail_size ()"> -<a name="poppler-page-get-thumbnail-size"></a><h3>poppler_page_get_thumbnail_size ()</h3> -<pre class="programlisting">gboolean poppler_page_get_thumbnail_size (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - int *width, - int *height);</pre> -<p> -Returns <code class="literal">TRUE</code> if <em class="parameter"><code>page</code></em> has a thumbnail associated with it. It also -fills in <em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em> with the width and height of the -thumbnail. The values of width and height are not changed if no -appropriate thumbnail exists.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> A <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td> return location for width -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td> return location for height -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> <code class="literal">TRUE</code>, if <em class="parameter"><code>page</code></em> has a thumbnail associated with it. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_render_to_ps ()"> -<a name="poppler-page-render-to-ps"></a><h3>poppler_page_render_to_ps ()</h3> -<pre class="programlisting">void poppler_page_render_to_ps (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - <a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> *ps_file);</pre> -<p> -Render the page on a postscript file</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>ps_file</code></em> :</span></p></td> -<td> the PopplerPSFile to render to -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_find_text ()"> -<a name="poppler-page-find-text"></a><h3>poppler_page_find_text ()</h3> -<pre class="programlisting">GList * poppler_page_find_text (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - const char *text);</pre> -<p> -A <span class="type">GList</span> of rectangles for each occurance of the text on the page. -The coordinates are in PDF points.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td> -<td> the text to search for (UTF-8 encoded) -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a <span class="type">GList</span> of PopplerRectangle, -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_get_text ()"> -<a name="poppler-page-get-text"></a><h3>poppler_page_get_text ()</h3> -<pre class="programlisting">char * poppler_page_get_text (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - <a class="link" href="poppler-poppler.html#PopplerSelectionStyle" title="enum PopplerSelectionStyle">PopplerSelectionStyle</a> style, - <a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> *rect);</pre> -<p> -Retrieves the contents of the specified <em class="parameter"><code>selection</code></em> as text.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>style</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerSelectionStyle" title="enum PopplerSelectionStyle"><span class="type">PopplerSelectionStyle</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>rect</code></em> :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a pointer to the contents of the <em class="parameter"><code>selection</code></em> - as a string -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_get_duration ()"> -<a name="poppler-page-get-duration"></a><h3>poppler_page_get_duration ()</h3> -<pre class="programlisting">double poppler_page_get_duration (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page);</pre> -<p> -Returns the duration of <em class="parameter"><code>page</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> duration in seconds of <em class="parameter"><code>page</code></em> or -1. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_get_transition ()"> -<a name="poppler-page-get-transition"></a><h3>poppler_page_get_transition ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-page.html#PopplerPageTransition" title="PopplerPageTransition">PopplerPageTransition</a> * poppler_page_get_transition (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page);</pre> -<p> -Returns the transition effect of <em class="parameter"><code>page</code></em></p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a <a class="link" href="poppler-poppler-page.html#PopplerPageTransition" title="PopplerPageTransition"><span class="type">PopplerPageTransition</span></a> or NULL. -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_get_link_mapping ()"> -<a name="poppler-page-get-link-mapping"></a><h3>poppler_page_get_link_mapping ()</h3> -<pre class="programlisting">GList * poppler_page_get_link_mapping (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page);</pre> -<p> -Returns a list of <a class="link" href="poppler-poppler.html#PopplerLinkMapping" title="PopplerLinkMapping"><span class="type">PopplerLinkMapping</span></a> items that map from a -location on <em class="parameter"><code>page</code></em> to a <a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction"><span class="type">PopplerAction</span></a>. This list must be freed -with <a class="link" href="poppler-poppler-page.html#poppler-page-free-link-mapping" title="poppler_page_free_link_mapping ()"><code class="function">poppler_page_free_link_mapping()</code></a> when done.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> A <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> A <span class="type">GList</span> of <a class="link" href="poppler-poppler.html#PopplerLinkMapping" title="PopplerLinkMapping"><span class="type">PopplerLinkMapping</span></a> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_free_link_mapping ()"> -<a name="poppler-page-free-link-mapping"></a><h3>poppler_page_free_link_mapping ()</h3> -<pre class="programlisting">void poppler_page_free_link_mapping (GList *list);</pre> -<p> -Frees a list of <a class="link" href="poppler-poppler.html#PopplerLinkMapping" title="PopplerLinkMapping"><span class="type">PopplerLinkMapping</span></a>s allocated by -<a class="link" href="poppler-poppler-page.html#poppler-page-get-link-mapping" title="poppler_page_get_link_mapping ()"><code class="function">poppler_page_get_link_mapping()</code></a>. It also frees the <a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction"><span class="type">PopplerAction</span></a>s -that each mapping contains, so if you want to keep them around, you need to -copy them with <a class="link" href="poppler-poppler-action.html#poppler-action-copy" title="poppler_action_copy ()"><code class="function">poppler_action_copy()</code></a>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td> -<td> A list of <a class="link" href="poppler-poppler.html#PopplerLinkMapping" title="PopplerLinkMapping"><span class="type">PopplerLinkMapping</span></a>s -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_get_image_mapping ()"> -<a name="poppler-page-get-image-mapping"></a><h3>poppler_page_get_image_mapping ()</h3> -<pre class="programlisting">GList * poppler_page_get_image_mapping (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page);</pre> -<p> -Returns a list of <a class="link" href="poppler-poppler-page.html#PopplerImageMapping" title="PopplerImageMapping"><span class="type">PopplerImageMapping</span></a> items that map from a -location on <em class="parameter"><code>page</code></em> to an image of the page. This list must be freed -with <a class="link" href="poppler-poppler-page.html#poppler-page-free-image-mapping" title="poppler_page_free_image_mapping ()"><code class="function">poppler_page_free_image_mapping()</code></a> when done.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> A <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> A <span class="type">GList</span> of <a class="link" href="poppler-poppler-page.html#PopplerImageMapping" title="PopplerImageMapping"><span class="type">PopplerImageMapping</span></a> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_free_image_mapping ()"> -<a name="poppler-page-free-image-mapping"></a><h3>poppler_page_free_image_mapping ()</h3> -<pre class="programlisting">void poppler_page_free_image_mapping (GList *list);</pre> -<p> -Frees a list of <a class="link" href="poppler-poppler-page.html#PopplerImageMapping" title="PopplerImageMapping"><span class="type">PopplerImageMapping</span></a>s allocated by -<a class="link" href="poppler-poppler-page.html#poppler-page-get-image-mapping" title="poppler_page_get_image_mapping ()"><code class="function">poppler_page_get_image_mapping()</code></a>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td> -<td> A list of <a class="link" href="poppler-poppler-page.html#PopplerImageMapping" title="PopplerImageMapping"><span class="type">PopplerImageMapping</span></a>s -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_get_form_field_mapping ()"> -<a name="poppler-page-get-form-field-mapping"></a><h3>poppler_page_get_form_field_mapping ()</h3> -<pre class="programlisting">GList * poppler_page_get_form_field_mapping (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page);</pre> -<p> -Returns a list of <a class="link" href="poppler-poppler-page.html#PopplerFormFieldMapping" title="PopplerFormFieldMapping"><span class="type">PopplerFormFieldMapping</span></a> items that map from a -location on <em class="parameter"><code>page</code></em> to a form field. This list must be freed -with <a class="link" href="poppler-poppler-page.html#poppler-page-free-form-field-mapping" title="poppler_page_free_form_field_mapping ()"><code class="function">poppler_page_free_form_field_mapping()</code></a> when done.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> A <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> A <span class="type">GList</span> of <a class="link" href="poppler-poppler-page.html#PopplerFormFieldMapping" title="PopplerFormFieldMapping"><span class="type">PopplerFormFieldMapping</span></a> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_free_form_field_mapping ()"> -<a name="poppler-page-free-form-field-mapping"></a><h3>poppler_page_free_form_field_mapping ()</h3> -<pre class="programlisting">void poppler_page_free_form_field_mapping - (GList *list);</pre> -<p> -Frees a list of <a class="link" href="poppler-poppler-page.html#PopplerFormFieldMapping" title="PopplerFormFieldMapping"><span class="type">PopplerFormFieldMapping</span></a>s allocated by -<a class="link" href="poppler-poppler-page.html#poppler-page-get-form-field-mapping" title="poppler_page_get_form_field_mapping ()"><code class="function">poppler_page_get_form_field_mapping()</code></a>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td> -<td> A list of <a class="link" href="poppler-poppler-page.html#PopplerFormFieldMapping" title="PopplerFormFieldMapping"><span class="type">PopplerFormFieldMapping</span></a>s -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_get_selection_region ()"> -<a name="poppler-page-get-selection-region"></a><h3>poppler_page_get_selection_region ()</h3> -<pre class="programlisting">GList * poppler_page_get_selection_region (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - gdouble scale, - <a class="link" href="poppler-poppler.html#PopplerSelectionStyle" title="enum PopplerSelectionStyle">PopplerSelectionStyle</a> style, - <a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> *selection);</pre> -<p> -Returns a region containing the area that would be rendered by -<a class="link" href="poppler-poppler-page.html#poppler-page-render-selection" title="poppler_page_render_selection ()"><code class="function">poppler_page_render_selection()</code></a> or -<a class="link" href="poppler-poppler-page.html#poppler-page-render-selection-to-pixbuf" title="poppler_page_render_selection_to_pixbuf ()"><code class="function">poppler_page_render_selection_to_pixbuf()</code></a> as a <span class="type">GList</span> of -<a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle"><span class="type">PopplerRectangle</span></a>. The returned list must be freed with -<code class="function">poppler_page_selection_region_free()</code>.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>scale</code></em> :</span></p></td> -<td> scale specified as pixels per point -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>style</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerSelectionStyle" title="enum PopplerSelectionStyle"><span class="type">PopplerSelectionStyle</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>selection</code></em> :</span></p></td> -<td> start and end point of selection as a rectangle -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> a <span class="type">GList</span> of <a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle"><span class="type">PopplerRectangle</span></a> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_render_selection ()"> -<a name="poppler-page-render-selection"></a><h3>poppler_page_render_selection ()</h3> -<pre class="programlisting">void poppler_page_render_selection (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - cairo_t *cairo, - <a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> *selection, - <a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> *old_selection, - <a class="link" href="poppler-poppler.html#PopplerSelectionStyle" title="enum PopplerSelectionStyle">PopplerSelectionStyle</a> style, - PopplerColor *glyph_color, - PopplerColor *background_color);</pre> -<p> -Render the selection specified by <em class="parameter"><code>selection</code></em> for <em class="parameter"><code>page</code></em> to -the given cairo context. The selection will be rendered, using -<em class="parameter"><code>glyph_color</code></em> for the glyphs and <em class="parameter"><code>background_color</code></em> for the selection -background. -</p> -<p> -If non-NULL, <em class="parameter"><code>old_selection</code></em> specifies the selection that is already -rendered to <em class="parameter"><code>cairo</code></em>, in which case this function will (some day) -only render the changed part of the selection.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> the <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> for which to render selection -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cairo</code></em> :</span></p></td> -<td> cairo context to render to -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>selection</code></em> :</span></p></td> -<td> start and end point of selection as a rectangle -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>old_selection</code></em> :</span></p></td> -<td> previous selection -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>style</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerSelectionStyle" title="enum PopplerSelectionStyle"><span class="type">PopplerSelectionStyle</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>glyph_color</code></em> :</span></p></td> -<td> color to use for drawing glyphs -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>background_color</code></em> :</span></p></td> -<td> color to use for the selection background -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_render_selection_to_pixbuf ()"> -<a name="poppler-page-render-selection-to-pixbuf"></a><h3>poppler_page_render_selection_to_pixbuf ()</h3> -<pre class="programlisting">void poppler_page_render_selection_to_pixbuf - (<a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> *page, - gdouble scale, - int rotation, - GdkPixbuf *pixbuf, - <a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> *selection, - <a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> *old_selection, - <a class="link" href="poppler-poppler.html#PopplerSelectionStyle" title="enum PopplerSelectionStyle">PopplerSelectionStyle</a> style, - GdkColor *glyph_color, - GdkColor *background_color);</pre> -<p> -Render the selection specified by <em class="parameter"><code>selection</code></em> for <em class="parameter"><code>page</code></em> into -<em class="parameter"><code>pixbuf</code></em>. The selection will be rendered at <em class="parameter"><code>scale</code></em>, using -<em class="parameter"><code>glyph_color</code></em> for the glyphs and <em class="parameter"><code>background_color</code></em> for the selection -background. -</p> -<p> -If non-NULL, <em class="parameter"><code>old_selection</code></em> specifies the selection that is already -rendered in <em class="parameter"><code>pixbuf</code></em>, in which case this function will (some day) -only render the changed part of the selection.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>page</code></em> :</span></p></td> -<td> the <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> for which to render selection -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>scale</code></em> :</span></p></td> -<td> scale specified as pixels per point -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>rotation</code></em> :</span></p></td> -<td> rotate the document by the specified degree -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td> -<td> pixbuf to render to -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>selection</code></em> :</span></p></td> -<td> start and end point of selection as a rectangle -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>old_selection</code></em> :</span></p></td> -<td> previous selection -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>style</code></em> :</span></p></td> -<td> a <a class="link" href="poppler-poppler.html#PopplerSelectionStyle" title="enum PopplerSelectionStyle"><span class="type">PopplerSelectionStyle</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>glyph_color</code></em> :</span></p></td> -<td> color to use for drawing glyphs -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>background_color</code></em> :</span></p></td> -<td> color to use for the selection background -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_RECTANGLE"> -<a name="POPPLER-TYPE-RECTANGLE--CAPS"></a><h3>POPPLER_TYPE_RECTANGLE</h3> -<pre class="programlisting">#define POPPLER_TYPE_RECTANGLE (poppler_rectangle_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerRectangle"> -<a name="PopplerRectangle"></a><h3>PopplerRectangle</h3> -<pre class="programlisting">typedef struct { - gdouble x1; - gdouble y1; - gdouble x2; - gdouble y2; -} PopplerRectangle; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_rectangle_get_type ()"> -<a name="poppler-rectangle-get-type"></a><h3>poppler_rectangle_get_type ()</h3> -<pre class="programlisting">GType poppler_rectangle_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_rectangle_new ()"> -<a name="poppler-rectangle-new"></a><h3>poppler_rectangle_new ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> * poppler_rectangle_new (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_rectangle_copy ()"> -<a name="poppler-rectangle-copy"></a><h3>poppler_rectangle_copy ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> * poppler_rectangle_copy (<a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> *rectangle);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>rectangle</code></em>Â :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_rectangle_free ()"> -<a name="poppler-rectangle-free"></a><h3>poppler_rectangle_free ()</h3> -<pre class="programlisting">void poppler_rectangle_free (<a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a> *rectangle);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>rectangle</code></em>Â :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_PAGE_TRANSITION"> -<a name="POPPLER-TYPE-PAGE-TRANSITION--CAPS"></a><h3>POPPLER_TYPE_PAGE_TRANSITION</h3> -<pre class="programlisting">#define POPPLER_TYPE_PAGE_TRANSITION (poppler_page_transition_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerPageTransition"> -<a name="PopplerPageTransition"></a><h3>PopplerPageTransition</h3> -<pre class="programlisting">typedef struct { - PopplerPageTransitionType type; - PopplerPageTransitionAlignment alignment; - PopplerPageTransitionDirection direction; - gint duration; - gint angle; - gdouble scale; - gboolean rectangular; -} PopplerPageTransition; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_page_transition_get_type ()"> -<a name="poppler-page-transition-get-type"></a><h3>poppler_page_transition_get_type ()</h3> -<pre class="programlisting">GType poppler_page_transition_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_transition_new ()"> -<a name="poppler-page-transition-new"></a><h3>poppler_page_transition_new ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-page.html#PopplerPageTransition" title="PopplerPageTransition">PopplerPageTransition</a> * poppler_page_transition_new (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_transition_copy ()"> -<a name="poppler-page-transition-copy"></a><h3>poppler_page_transition_copy ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-page.html#PopplerPageTransition" title="PopplerPageTransition">PopplerPageTransition</a> * poppler_page_transition_copy (<a class="link" href="poppler-poppler-page.html#PopplerPageTransition" title="PopplerPageTransition">PopplerPageTransition</a> *transition);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>transition</code></em>Â :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_page_transition_free ()"> -<a name="poppler-page-transition-free"></a><h3>poppler_page_transition_free ()</h3> -<pre class="programlisting">void poppler_page_transition_free (<a class="link" href="poppler-poppler-page.html#PopplerPageTransition" title="PopplerPageTransition">PopplerPageTransition</a> *transition);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>transition</code></em>Â :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_LINK_MAPPING"> -<a name="POPPLER-TYPE-LINK-MAPPING--CAPS"></a><h3>POPPLER_TYPE_LINK_MAPPING</h3> -<pre class="programlisting">#define POPPLER_TYPE_LINK_MAPPING (poppler_link_mapping_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerLinkMapping"> -<a name="PopplerLinkMapping"></a><h3>PopplerLinkMapping</h3> -<pre class="programlisting">typedef struct { - PopplerRectangle area; - PopplerAction *action; -} PopplerLinkMapping; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_link_mapping_get_type ()"> -<a name="poppler-link-mapping-get-type"></a><h3>poppler_link_mapping_get_type ()</h3> -<pre class="programlisting">GType poppler_link_mapping_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_link_mapping_new ()"> -<a name="poppler-link-mapping-new"></a><h3>poppler_link_mapping_new ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerLinkMapping" title="PopplerLinkMapping">PopplerLinkMapping</a> * poppler_link_mapping_new (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_link_mapping_copy ()"> -<a name="poppler-link-mapping-copy"></a><h3>poppler_link_mapping_copy ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerLinkMapping" title="PopplerLinkMapping">PopplerLinkMapping</a> * poppler_link_mapping_copy (<a class="link" href="poppler-poppler.html#PopplerLinkMapping" title="PopplerLinkMapping">PopplerLinkMapping</a> *mapping);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>mapping</code></em>Â :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_link_mapping_free ()"> -<a name="poppler-link-mapping-free"></a><h3>poppler_link_mapping_free ()</h3> -<pre class="programlisting">void poppler_link_mapping_free (<a class="link" href="poppler-poppler.html#PopplerLinkMapping" title="PopplerLinkMapping">PopplerLinkMapping</a> *mapping);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>mapping</code></em>Â :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_IMAGE_MAPPING"> -<a name="POPPLER-TYPE-IMAGE-MAPPING--CAPS"></a><h3>POPPLER_TYPE_IMAGE_MAPPING</h3> -<pre class="programlisting">#define POPPLER_TYPE_IMAGE_MAPPING (poppler_image_mapping_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerImageMapping"> -<a name="PopplerImageMapping"></a><h3>PopplerImageMapping</h3> -<pre class="programlisting">typedef struct { - PopplerRectangle area; - gint image_id; -} PopplerImageMapping; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_image_mapping_get_type ()"> -<a name="poppler-image-mapping-get-type"></a><h3>poppler_image_mapping_get_type ()</h3> -<pre class="programlisting">GType poppler_image_mapping_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_image_mapping_new ()"> -<a name="poppler-image-mapping-new"></a><h3>poppler_image_mapping_new ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-page.html#PopplerImageMapping" title="PopplerImageMapping">PopplerImageMapping</a> * poppler_image_mapping_new (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_image_mapping_copy ()"> -<a name="poppler-image-mapping-copy"></a><h3>poppler_image_mapping_copy ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-page.html#PopplerImageMapping" title="PopplerImageMapping">PopplerImageMapping</a> * poppler_image_mapping_copy (<a class="link" href="poppler-poppler-page.html#PopplerImageMapping" title="PopplerImageMapping">PopplerImageMapping</a> *mapping);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>mapping</code></em>Â :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_image_mapping_free ()"> -<a name="poppler-image-mapping-free"></a><h3>poppler_image_mapping_free ()</h3> -<pre class="programlisting">void poppler_image_mapping_free (<a class="link" href="poppler-poppler-page.html#PopplerImageMapping" title="PopplerImageMapping">PopplerImageMapping</a> *mapping);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>mapping</code></em>Â :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_TYPE_FORM_FIELD_MAPPING"> -<a name="POPPLER-TYPE-FORM-FIELD-MAPPING--CAPS"></a><h3>POPPLER_TYPE_FORM_FIELD_MAPPING</h3> -<pre class="programlisting">#define POPPLER_TYPE_FORM_FIELD_MAPPING (poppler_form_field_mapping_get_type ()) -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerFormFieldMapping"> -<a name="PopplerFormFieldMapping"></a><h3>PopplerFormFieldMapping</h3> -<pre class="programlisting">typedef struct { - PopplerRectangle area; - PopplerFormField *field; -} PopplerFormFieldMapping; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_mapping_get_type ()"> -<a name="poppler-form-field-mapping-get-type"></a><h3>poppler_form_field_mapping_get_type ()</h3> -<pre class="programlisting">GType poppler_form_field_mapping_get_type (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_mapping_new ()"> -<a name="poppler-form-field-mapping-new"></a><h3>poppler_form_field_mapping_new ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-page.html#PopplerFormFieldMapping" title="PopplerFormFieldMapping">PopplerFormFieldMapping</a> * poppler_form_field_mapping_new - (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_mapping_copy ()"> -<a name="poppler-form-field-mapping-copy"></a><h3>poppler_form_field_mapping_copy ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler-page.html#PopplerFormFieldMapping" title="PopplerFormFieldMapping">PopplerFormFieldMapping</a> * poppler_form_field_mapping_copy - (<a class="link" href="poppler-poppler-page.html#PopplerFormFieldMapping" title="PopplerFormFieldMapping">PopplerFormFieldMapping</a> *mapping);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>mapping</code></em>Â :</span></p></td> -<td> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_form_field_mapping_free ()"> -<a name="poppler-form-field-mapping-free"></a><h3>poppler_form_field_mapping_free ()</h3> -<pre class="programlisting">void poppler_form_field_mapping_free (<a class="link" href="poppler-poppler-page.html#PopplerFormFieldMapping" title="PopplerFormFieldMapping">PopplerFormFieldMapping</a> *mapping);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>mapping</code></em>Â :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -</div> -</div> -<div class="footer"> -<hr> - Generated by GTK-Doc V1.11</div> -</body> -</html> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler.html b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler.html deleted file mode 100644 index 4878a272010..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler-poppler.html +++ /dev/null @@ -1,483 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>poppler</title> -<meta name="generator" content="DocBook XSL Stylesheets V1.75.1"> -<link rel="home" href="index.html" title="Poppler Reference Manual"> -<link rel="up" href="ch01.html" title="Poppler"> -<link rel="prev" href="ch01.html" title="Poppler"> -<link rel="next" href="poppler-poppler-document.html" title="PopplerDocument"> -<meta name="generator" content="GTK-Doc V1.11 (XML mode)"> -<link rel="stylesheet" href="style.css" type="text/css"> -<link rel="chapter" href="ch01.html" title="Poppler"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> -<tr valign="middle"> -<td><a accesskey="p" href="ch01.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> -<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> -<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> -<th width="100%" align="center">Poppler Reference Manual</th> -<td><a accesskey="n" href="poppler-poppler-document.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> -</tr> -<tr><td colspan="5" class="shortcuts"> -<a href="#poppler-poppler.synopsis" class="shortcut">Top</a> - Â |Â - <a href="#poppler-poppler.description" class="shortcut">Description</a> - Â |Â - <a href="#poppler-poppler.object-hierarchy" class="shortcut">Object Hierarchy</a> - Â |Â - <a href="#poppler-poppler.properties" class="shortcut">Properties</a> -</td></tr> -</table> -<div class="refentry" title="poppler"> -<a name="poppler-poppler"></a><div class="titlepage"></div> -<div class="refnamediv"><table width="100%"><tr> -<td valign="top"> -<h2><span class="refentrytitle"><a name="poppler-poppler.top_of_page"></a>poppler</span></h2> -<p>poppler</p> -</td> -<td valign="top" align="right"></td> -</tr></table></div> -<div class="refsynopsisdiv" title="Synopsis"> -<a name="poppler-poppler.synopsis"></a><h2>Synopsis</h2> -<a name="PopplerDocument"></a><a name="PopplerPage"></a><pre class="synopsis"> -GQuark <a class="link" href="poppler-poppler.html#poppler-error-quark" title="poppler_error_quark ()">poppler_error_quark</a> (void); -#define <a class="link" href="poppler-poppler.html#POPPLER-ERROR--CAPS" title="POPPLER_ERROR">POPPLER_ERROR</a> -enum <a class="link" href="poppler-poppler.html#PopplerError" title="enum PopplerError">PopplerError</a>; -enum <a class="link" href="poppler-poppler.html#PopplerOrientation" title="enum PopplerOrientation">PopplerOrientation</a>; - <a class="link" href="poppler-poppler.html#PopplerDocument-struct" title="PopplerDocument">PopplerDocument</a>; - <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a>; - <a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a>; - <a class="link" href="poppler-poppler.html#PopplerRectangle" title="PopplerRectangle">PopplerRectangle</a>; -enum <a class="link" href="poppler-poppler.html#PopplerSelectionStyle" title="enum PopplerSelectionStyle">PopplerSelectionStyle</a>; -enum <a class="link" href="poppler-poppler.html#PopplerPageTransitionType" title="enum PopplerPageTransitionType">PopplerPageTransitionType</a>; -enum <a class="link" href="poppler-poppler.html#PopplerPageTransitionAlignment" title="enum PopplerPageTransitionAlignment">PopplerPageTransitionAlignment</a>; -enum <a class="link" href="poppler-poppler.html#PopplerPageTransitionDirection" title="enum PopplerPageTransitionDirection">PopplerPageTransitionDirection</a>; - <a class="link" href="poppler-poppler.html#PopplerLinkMapping" title="PopplerLinkMapping">PopplerLinkMapping</a>; - <a class="link" href="poppler-poppler.html#PopplerPage-struct" title="PopplerPage">PopplerPage</a>; - <a class="link" href="poppler-poppler.html#PopplerFontInfo" title="PopplerFontInfo">PopplerFontInfo</a>; - <a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a>; -enum <a class="link" href="poppler-poppler.html#PopplerBackend" title="enum PopplerBackend">PopplerBackend</a>; -<a class="link" href="poppler-poppler.html#PopplerBackend" title="enum PopplerBackend">PopplerBackend</a> <a class="link" href="poppler-poppler.html#poppler-get-backend" title="poppler_get_backend ()">poppler_get_backend</a> (void); -const char * <a class="link" href="poppler-poppler.html#poppler-get-version" title="poppler_get_version ()">poppler_get_version</a> (void); -</pre> -</div> -<div class="refsect1" title="Object Hierarchy"> -<a name="poppler-poppler.object-hierarchy"></a><h2>Object Hierarchy</h2> -<pre class="synopsis"> - GObject - +----PopplerDocument -</pre> -<pre class="synopsis"> - GObject - +----PopplerPage -</pre> -</div> -<div class="refsect1" title="Properties"> -<a name="poppler-poppler.properties"></a><h2>Properties</h2> -<pre class="synopsis"> - "<a class="link" href="poppler-poppler.html#PopplerDocument--author" title='The "author" property'>author</a>" gchar* : Read - "<a class="link" href="poppler-poppler.html#PopplerDocument--creation-date" title='The "creation-date" property'>creation-date</a>" gint : Read - "<a class="link" href="poppler-poppler.html#PopplerDocument--creator" title='The "creator" property'>creator</a>" gchar* : Read - "<a class="link" href="poppler-poppler.html#PopplerDocument--format" title='The "format" property'>format</a>" gchar* : Read - "<a class="link" href="poppler-poppler.html#PopplerDocument--format-major" title='The "format-major" property'>format-major</a>" guint : Read - "<a class="link" href="poppler-poppler.html#PopplerDocument--format-minor" title='The "format-minor" property'>format-minor</a>" guint : Read - "<a class="link" href="poppler-poppler.html#PopplerDocument--keywords" title='The "keywords" property'>keywords</a>" gchar* : Read - "<a class="link" href="poppler-poppler.html#PopplerDocument--linearized" title='The "linearized" property'>linearized</a>" gchar* : Read - "<a class="link" href="poppler-poppler.html#PopplerDocument--metadata" title='The "metadata" property'>metadata</a>" gchar* : Read - "<a class="link" href="poppler-poppler.html#PopplerDocument--mod-date" title='The "mod-date" property'>mod-date</a>" gint : Read - "<a class="link" href="poppler-poppler.html#PopplerDocument--page-layout" title='The "page-layout" property'>page-layout</a>" <a class="link" href="poppler-poppler-document.html#PopplerPageLayout" title="enum PopplerPageLayout">PopplerPageLayout</a> : Read - "<a class="link" href="poppler-poppler.html#PopplerDocument--page-mode" title='The "page-mode" property'>page-mode</a>" <a class="link" href="poppler-poppler-document.html#PopplerPageMode" title="enum PopplerPageMode">PopplerPageMode</a> : Read - "<a class="link" href="poppler-poppler.html#PopplerDocument--permissions" title='The "permissions" property'>permissions</a>" <a class="link" href="poppler-poppler-document.html#PopplerPermissions" title="enum PopplerPermissions">PopplerPermissions</a> : Read - "<a class="link" href="poppler-poppler.html#PopplerDocument--producer" title='The "producer" property'>producer</a>" gchar* : Read - "<a class="link" href="poppler-poppler.html#PopplerDocument--subject" title='The "subject" property'>subject</a>" gchar* : Read - "<a class="link" href="poppler-poppler.html#PopplerDocument--title" title='The "title" property'>title</a>" gchar* : Read - "<a class="link" href="poppler-poppler.html#PopplerDocument--viewer-preferences" title='The "viewer-preferences" property'>viewer-preferences</a>" <a class="link" href="poppler-poppler-document.html#PopplerViewerPreferences" title="enum PopplerViewerPreferences">PopplerViewerPreferences</a> : Read - "<a class="link" href="poppler-poppler.html#PopplerPage--label" title='The "label" property'>label</a>" gchar* : Read -</pre> -</div> -<div class="refsect1" title="Description"> -<a name="poppler-poppler.description"></a><h2>Description</h2> -<p> -</p> -</div> -<div class="refsect1" title="Details"> -<a name="poppler-poppler.details"></a><h2>Details</h2> -<div class="refsect2" title="poppler_error_quark ()"> -<a name="poppler-error-quark"></a><h3>poppler_error_quark ()</h3> -<pre class="programlisting">GQuark poppler_error_quark (void);</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="POPPLER_ERROR"> -<a name="POPPLER-ERROR--CAPS"></a><h3>POPPLER_ERROR</h3> -<pre class="programlisting">#define POPPLER_ERROR poppler_error_quark () -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="enum PopplerError"> -<a name="PopplerError"></a><h3>enum PopplerError</h3> -<pre class="programlisting">typedef enum -{ - POPPLER_ERROR_INVALID, - POPPLER_ERROR_ENCRYPTED, - POPPLER_ERROR_OPEN_FILE, - POPPLER_ERROR_BAD_CATALOG, - POPPLER_ERROR_DAMAGED -} PopplerError; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="enum PopplerOrientation"> -<a name="PopplerOrientation"></a><h3>enum PopplerOrientation</h3> -<pre class="programlisting">typedef enum -{ - POPPLER_ORIENTATION_PORTRAIT, - POPPLER_ORIENTATION_LANDSCAPE, - POPPLER_ORIENTATION_UPSIDEDOWN, - POPPLER_ORIENTATION_SEASCAPE -} PopplerOrientation; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerDocument"> -<a name="PopplerDocument-struct"></a><h3>PopplerDocument</h3> -<pre class="programlisting">typedef struct _PopplerDocument PopplerDocument;</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerIndexIter"> -<a name="PopplerIndexIter"></a><h3>PopplerIndexIter</h3> -<pre class="programlisting">typedef struct _PopplerIndexIter PopplerIndexIter;</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerFontsIter"> -<a name="PopplerFontsIter"></a><h3>PopplerFontsIter</h3> -<pre class="programlisting">typedef struct _PopplerFontsIter PopplerFontsIter;</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerRectangle"> -<a name="PopplerRectangle"></a><h3>PopplerRectangle</h3> -<pre class="programlisting">typedef struct { - gdouble x1; - gdouble y1; - gdouble x2; - gdouble y2; -} PopplerRectangle; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="enum PopplerSelectionStyle"> -<a name="PopplerSelectionStyle"></a><h3>enum PopplerSelectionStyle</h3> -<pre class="programlisting">typedef enum -{ - POPPLER_SELECTION_GLYPH, - POPPLER_SELECTION_WORD, - POPPLER_SELECTION_LINE -} PopplerSelectionStyle; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="enum PopplerPageTransitionType"> -<a name="PopplerPageTransitionType"></a><h3>enum PopplerPageTransitionType</h3> -<pre class="programlisting">typedef enum -{ - POPPLER_PAGE_TRANSITION_REPLACE, - POPPLER_PAGE_TRANSITION_SPLIT, - POPPLER_PAGE_TRANSITION_BLINDS, - POPPLER_PAGE_TRANSITION_BOX, - POPPLER_PAGE_TRANSITION_WIPE, - POPPLER_PAGE_TRANSITION_DISSOLVE, - POPPLER_PAGE_TRANSITION_GLITTER, - POPPLER_PAGE_TRANSITION_FLY, - POPPLER_PAGE_TRANSITION_PUSH, - POPPLER_PAGE_TRANSITION_COVER, - POPPLER_PAGE_TRANSITION_UNCOVER, - POPPLER_PAGE_TRANSITION_FADE -} PopplerPageTransitionType; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="enum PopplerPageTransitionAlignment"> -<a name="PopplerPageTransitionAlignment"></a><h3>enum PopplerPageTransitionAlignment</h3> -<pre class="programlisting">typedef enum -{ - POPPLER_PAGE_TRANSITION_HORIZONTAL, - POPPLER_PAGE_TRANSITION_VERTICAL -} PopplerPageTransitionAlignment; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="enum PopplerPageTransitionDirection"> -<a name="PopplerPageTransitionDirection"></a><h3>enum PopplerPageTransitionDirection</h3> -<pre class="programlisting">typedef enum -{ - POPPLER_PAGE_TRANSITION_INWARD, - POPPLER_PAGE_TRANSITION_OUTWARD -} PopplerPageTransitionDirection; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerLinkMapping"> -<a name="PopplerLinkMapping"></a><h3>PopplerLinkMapping</h3> -<pre class="programlisting">typedef struct { - PopplerRectangle area; - PopplerAction *action; -} PopplerLinkMapping; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerPage"> -<a name="PopplerPage-struct"></a><h3>PopplerPage</h3> -<pre class="programlisting">typedef struct _PopplerPage PopplerPage;</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerFontInfo"> -<a name="PopplerFontInfo"></a><h3>PopplerFontInfo</h3> -<pre class="programlisting">typedef struct { - GObject parent_instance; - PopplerDocument *document; - FontInfoScanner *scanner; -} PopplerFontInfo; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="PopplerPSFile"> -<a name="PopplerPSFile"></a><h3>PopplerPSFile</h3> -<pre class="programlisting">typedef struct { - GObject parent_instance; - - PopplerDocument *document; - PSOutputDev *out; - char *filename; - int first_page; - int last_page; - double paper_width; - double paper_height; - gboolean duplex; -} PopplerPSFile; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="enum PopplerBackend"> -<a name="PopplerBackend"></a><h3>enum PopplerBackend</h3> -<pre class="programlisting">typedef enum -{ - POPPLER_BACKEND_UNKNOWN, - POPPLER_BACKEND_SPLASH, - POPPLER_BACKEND_CAIRO -} PopplerBackend; -</pre> -<p> -</p> -</div> -<hr> -<div class="refsect2" title="poppler_get_backend ()"> -<a name="poppler-get-backend"></a><h3>poppler_get_backend ()</h3> -<pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerBackend" title="enum PopplerBackend">PopplerBackend</a> poppler_get_backend (void);</pre> -<p> -Returns the backend compiled into the poppler library.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> The backend used by poppler -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2" title="poppler_get_version ()"> -<a name="poppler-get-version"></a><h3>poppler_get_version ()</h3> -<pre class="programlisting">const char * poppler_get_version (void);</pre> -<p> -Returns the version of poppler in use. This result is not to be freed.</p> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>Â :</span></p></td> -<td> the version of poppler. -</td> -</tr></tbody> -</table></div> -</div> -</div> -<div class="refsect1" title="Property Details"> -<a name="poppler-poppler.property-details"></a><h2>Property Details</h2> -<div class="refsect2" title='The "author" property'> -<a name="PopplerDocument--author"></a><h3>The <code class="literal">"author"</code> property</h3> -<pre class="programlisting"> "author" gchar* : Read</pre> -<p>The author of the document.</p> -<p>Default value: NULL</p> -</div> -<hr> -<div class="refsect2" title='The "creation-date" property'> -<a name="PopplerDocument--creation-date"></a><h3>The <code class="literal">"creation-date"</code> property</h3> -<pre class="programlisting"> "creation-date" gint : Read</pre> -<p>The date and time the document was created.</p> -<p>Allowed values: >= 0</p> -<p>Default value: 0</p> -</div> -<hr> -<div class="refsect2" title='The "creator" property'> -<a name="PopplerDocument--creator"></a><h3>The <code class="literal">"creator"</code> property</h3> -<pre class="programlisting"> "creator" gchar* : Read</pre> -<p>The software that created the document.</p> -<p>Default value: NULL</p> -</div> -<hr> -<div class="refsect2" title='The "format" property'> -<a name="PopplerDocument--format"></a><h3>The <code class="literal">"format"</code> property</h3> -<pre class="programlisting"> "format" gchar* : Read</pre> -<p>The PDF version of the document.</p> -<p>Default value: NULL</p> -</div> -<hr> -<div class="refsect2" title='The "format-major" property'> -<a name="PopplerDocument--format-major"></a><h3>The <code class="literal">"format-major"</code> property</h3> -<pre class="programlisting"> "format-major" guint : Read</pre> -<p>The PDF major version number of the document.</p> -<p>Default value: 1</p> -</div> -<hr> -<div class="refsect2" title='The "format-minor" property'> -<a name="PopplerDocument--format-minor"></a><h3>The <code class="literal">"format-minor"</code> property</h3> -<pre class="programlisting"> "format-minor" guint : Read</pre> -<p>The PDF minor version number of the document.</p> -<p>Default value: 0</p> -</div> -<hr> -<div class="refsect2" title='The "keywords" property'> -<a name="PopplerDocument--keywords"></a><h3>The <code class="literal">"keywords"</code> property</h3> -<pre class="programlisting"> "keywords" gchar* : Read</pre> -<p>Keywords.</p> -<p>Default value: NULL</p> -</div> -<hr> -<div class="refsect2" title='The "linearized" property'> -<a name="PopplerDocument--linearized"></a><h3>The <code class="literal">"linearized"</code> property</h3> -<pre class="programlisting"> "linearized" gchar* : Read</pre> -<p>Is the document optimized for web viewing?.</p> -<p>Default value: NULL</p> -</div> -<hr> -<div class="refsect2" title='The "metadata" property'> -<a name="PopplerDocument--metadata"></a><h3>The <code class="literal">"metadata"</code> property</h3> -<pre class="programlisting"> "metadata" gchar* : Read</pre> -<p>Embedded XML metadata.</p> -<p>Default value: NULL</p> -</div> -<hr> -<div class="refsect2" title='The "mod-date" property'> -<a name="PopplerDocument--mod-date"></a><h3>The <code class="literal">"mod-date"</code> property</h3> -<pre class="programlisting"> "mod-date" gint : Read</pre> -<p>The date and time the document was modified.</p> -<p>Allowed values: >= 0</p> -<p>Default value: 0</p> -</div> -<hr> -<div class="refsect2" title='The "page-layout" property'> -<a name="PopplerDocument--page-layout"></a><h3>The <code class="literal">"page-layout"</code> property</h3> -<pre class="programlisting"> "page-layout" <a class="link" href="poppler-poppler-document.html#PopplerPageLayout" title="enum PopplerPageLayout">PopplerPageLayout</a> : Read</pre> -<p>Initial Page Layout.</p> -<p>Default value: POPPLER_PAGE_LAYOUT_UNSET</p> -</div> -<hr> -<div class="refsect2" title='The "page-mode" property'> -<a name="PopplerDocument--page-mode"></a><h3>The <code class="literal">"page-mode"</code> property</h3> -<pre class="programlisting"> "page-mode" <a class="link" href="poppler-poppler-document.html#PopplerPageMode" title="enum PopplerPageMode">PopplerPageMode</a> : Read</pre> -<p>Page Mode.</p> -<p>Default value: POPPLER_PAGE_MODE_UNSET</p> -</div> -<hr> -<div class="refsect2" title='The "permissions" property'> -<a name="PopplerDocument--permissions"></a><h3>The <code class="literal">"permissions"</code> property</h3> -<pre class="programlisting"> "permissions" <a class="link" href="poppler-poppler-document.html#PopplerPermissions" title="enum PopplerPermissions">PopplerPermissions</a> : Read</pre> -<p>Permissions.</p> -<p>Default value: POPPLER_PERMISSIONS_OK_TO_PRINT|POPPLER_PERMISSIONS_OK_TO_MODIFY|POPPLER_PERMISSIONS_OK_TO_COPY|POPPLER_PERMISSIONS_OK_TO_ADD_NOTES|POPPLER_PERMISSIONS_OK_TO_FILL_FORM</p> -</div> -<hr> -<div class="refsect2" title='The "producer" property'> -<a name="PopplerDocument--producer"></a><h3>The <code class="literal">"producer"</code> property</h3> -<pre class="programlisting"> "producer" gchar* : Read</pre> -<p>The software that converted the document.</p> -<p>Default value: NULL</p> -</div> -<hr> -<div class="refsect2" title='The "subject" property'> -<a name="PopplerDocument--subject"></a><h3>The <code class="literal">"subject"</code> property</h3> -<pre class="programlisting"> "subject" gchar* : Read</pre> -<p>Subjects the document touches.</p> -<p>Default value: NULL</p> -</div> -<hr> -<div class="refsect2" title='The "title" property'> -<a name="PopplerDocument--title"></a><h3>The <code class="literal">"title"</code> property</h3> -<pre class="programlisting"> "title" gchar* : Read</pre> -<p>The title of the document.</p> -<p>Default value: NULL</p> -</div> -<hr> -<div class="refsect2" title='The "viewer-preferences" property'> -<a name="PopplerDocument--viewer-preferences"></a><h3>The <code class="literal">"viewer-preferences"</code> property</h3> -<pre class="programlisting"> "viewer-preferences" <a class="link" href="poppler-poppler-document.html#PopplerViewerPreferences" title="enum PopplerViewerPreferences">PopplerViewerPreferences</a> : Read</pre> -<p>Viewer Preferences.</p> -</div> -<hr> -<div class="refsect2" title='The "label" property'> -<a name="PopplerPage--label"></a><h3>The <code class="literal">"label"</code> property</h3> -<pre class="programlisting"> "label" gchar* : Read</pre> -<p>The label of the page.</p> -<p>Default value: NULL</p> -</div> -</div> -</div> -<div class="footer"> -<hr> - Generated by GTK-Doc V1.11</div> -</body> -</html> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler.devhelp b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler.devhelp deleted file mode 100644 index 352257c08a1..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler.devhelp +++ /dev/null @@ -1,281 +0,0 @@ -<?xml version="1.0" encoding="utf-8" standalone="no"?> -<!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ""> -<book xmlns="http://www.devhelp.net/book" title="Poppler Reference Manual" link="index.html" author="" name="poppler"> - <chapters> - <sub name="Poppler" link="ch01.html"> - <sub name="poppler" link="poppler-poppler.html"/> - <sub name="PopplerDocument" link="poppler-poppler-document.html"/> - <sub name="PopplerPage" link="poppler-poppler-page.html"/> - <sub name="PopplerAction" link="poppler-poppler-action.html"/> - <sub name="PopplerAttachment" link="poppler-poppler-attachment.html"/> - <sub name="PopplerFormField" link="poppler-poppler-form-field.html"/> - <sub name="poppler-enums" link="poppler-poppler-enums.html"/> - <sub name="PopplerAnnot" link="poppler-poppler-annot.html"/> - <sub name="PopplerLayer" link="poppler-poppler-layer.html"/> - <sub name="Version and Features Information" link="poppler-poppler-features.html"/> - </sub> - </chapters> - <functions> - <function name="poppler_error_quark ()" link="poppler-poppler.html#poppler-error-quark"/> - <function name="POPPLER_ERROR" link="poppler-poppler.html#POPPLER-ERROR--CAPS"/> - <function name="enum PopplerError" link="poppler-poppler.html#PopplerError"/> - <function name="enum PopplerOrientation" link="poppler-poppler.html#PopplerOrientation"/> - <function name="PopplerDocument" link="poppler-poppler.html#PopplerDocument-struct"/> - <function name="PopplerIndexIter" link="poppler-poppler.html#PopplerIndexIter"/> - <function name="PopplerFontsIter" link="poppler-poppler.html#PopplerFontsIter"/> - <function name="PopplerRectangle" link="poppler-poppler.html#PopplerRectangle"/> - <function name="enum PopplerSelectionStyle" link="poppler-poppler.html#PopplerSelectionStyle"/> - <function name="enum PopplerPageTransitionType" link="poppler-poppler.html#PopplerPageTransitionType"/> - <function name="enum PopplerPageTransitionAlignment" link="poppler-poppler.html#PopplerPageTransitionAlignment"/> - <function name="enum PopplerPageTransitionDirection" link="poppler-poppler.html#PopplerPageTransitionDirection"/> - <function name="PopplerLinkMapping" link="poppler-poppler.html#PopplerLinkMapping"/> - <function name="PopplerPage" link="poppler-poppler.html#PopplerPage-struct"/> - <function name="PopplerFontInfo" link="poppler-poppler.html#PopplerFontInfo"/> - <function name="PopplerPSFile" link="poppler-poppler.html#PopplerPSFile"/> - <function name="enum PopplerBackend" link="poppler-poppler.html#PopplerBackend"/> - <function name="poppler_get_backend ()" link="poppler-poppler.html#poppler-get-backend"/> - <function name="poppler_get_version ()" link="poppler-poppler.html#poppler-get-version"/> - <function name="The "author" property" link="poppler-poppler.html#PopplerDocument--author"/> - <function name="The "creation-date" property" link="poppler-poppler.html#PopplerDocument--creation-date"/> - <function name="The "creator" property" link="poppler-poppler.html#PopplerDocument--creator"/> - <function name="The "format" property" link="poppler-poppler.html#PopplerDocument--format"/> - <function name="The "format-major" property" link="poppler-poppler.html#PopplerDocument--format-major"/> - <function name="The "format-minor" property" link="poppler-poppler.html#PopplerDocument--format-minor"/> - <function name="The "keywords" property" link="poppler-poppler.html#PopplerDocument--keywords"/> - <function name="The "linearized" property" link="poppler-poppler.html#PopplerDocument--linearized"/> - <function name="The "metadata" property" link="poppler-poppler.html#PopplerDocument--metadata"/> - <function name="The "mod-date" property" link="poppler-poppler.html#PopplerDocument--mod-date"/> - <function name="The "page-layout" property" link="poppler-poppler.html#PopplerDocument--page-layout"/> - <function name="The "page-mode" property" link="poppler-poppler.html#PopplerDocument--page-mode"/> - <function name="The "permissions" property" link="poppler-poppler.html#PopplerDocument--permissions"/> - <function name="The "producer" property" link="poppler-poppler.html#PopplerDocument--producer"/> - <function name="The "subject" property" link="poppler-poppler.html#PopplerDocument--subject"/> - <function name="The "title" property" link="poppler-poppler.html#PopplerDocument--title"/> - <function name="The "viewer-preferences" property" link="poppler-poppler.html#PopplerDocument--viewer-preferences"/> - <function name="The "label" property" link="poppler-poppler.html#PopplerPage--label"/> - <function name="enum PopplerPageLayout" link="poppler-poppler-document.html#PopplerPageLayout"/> - <function name="enum PopplerPageMode" link="poppler-poppler-document.html#PopplerPageMode"/> - <function name="enum PopplerFontType" link="poppler-poppler-document.html#PopplerFontType"/> - <function name="enum PopplerViewerPreferences" link="poppler-poppler-document.html#PopplerViewerPreferences"/> - <function name="enum PopplerPermissions" link="poppler-poppler-document.html#PopplerPermissions"/> - <function name="poppler_document_new_from_file ()" link="poppler-poppler-document.html#poppler-document-new-from-file"/> - <function name="poppler_document_new_from_data ()" link="poppler-poppler-document.html#poppler-document-new-from-data"/> - <function name="poppler_document_save ()" link="poppler-poppler-document.html#poppler-document-save"/> - <function name="poppler_document_get_n_pages ()" link="poppler-poppler-document.html#poppler-document-get-n-pages"/> - <function name="poppler_document_get_page ()" link="poppler-poppler-document.html#poppler-document-get-page"/> - <function name="poppler_document_get_page_by_label ()" link="poppler-poppler-document.html#poppler-document-get-page-by-label"/> - <function name="poppler_document_find_dest ()" link="poppler-poppler-document.html#poppler-document-find-dest"/> - <function name="poppler_document_has_attachments ()" link="poppler-poppler-document.html#poppler-document-has-attachments"/> - <function name="poppler_document_get_attachments ()" link="poppler-poppler-document.html#poppler-document-get-attachments"/> - <function name="poppler_document_get_form_field ()" link="poppler-poppler-document.html#poppler-document-get-form-field"/> - <function name="poppler_index_iter_get_type ()" link="poppler-poppler-document.html#poppler-index-iter-get-type"/> - <function name="poppler_index_iter_new ()" link="poppler-poppler-document.html#poppler-index-iter-new"/> - <function name="poppler_index_iter_copy ()" link="poppler-poppler-document.html#poppler-index-iter-copy"/> - <function name="poppler_index_iter_free ()" link="poppler-poppler-document.html#poppler-index-iter-free"/> - <function name="poppler_index_iter_get_child ()" link="poppler-poppler-document.html#poppler-index-iter-get-child"/> - <function name="poppler_index_iter_is_open ()" link="poppler-poppler-document.html#poppler-index-iter-is-open"/> - <function name="poppler_index_iter_get_action ()" link="poppler-poppler-document.html#poppler-index-iter-get-action"/> - <function name="poppler_index_iter_next ()" link="poppler-poppler-document.html#poppler-index-iter-next"/> - <function name="poppler_font_info_new ()" link="poppler-poppler-document.html#poppler-font-info-new"/> - <function name="poppler_font_info_scan ()" link="poppler-poppler-document.html#poppler-font-info-scan"/> - <function name="poppler_font_info_free ()" link="poppler-poppler-document.html#poppler-font-info-free"/> - <function name="poppler_fonts_iter_get_type ()" link="poppler-poppler-document.html#poppler-fonts-iter-get-type"/> - <function name="poppler_fonts_iter_copy ()" link="poppler-poppler-document.html#poppler-fonts-iter-copy"/> - <function name="poppler_fonts_iter_free ()" link="poppler-poppler-document.html#poppler-fonts-iter-free"/> - <function name="poppler_fonts_iter_get_name ()" link="poppler-poppler-document.html#poppler-fonts-iter-get-name"/> - <function name="poppler_fonts_iter_get_full_name ()" link="poppler-poppler-document.html#poppler-fonts-iter-get-full-name"/> - <function name="poppler_fonts_iter_get_font_type ()" link="poppler-poppler-document.html#poppler-fonts-iter-get-font-type"/> - <function name="poppler_fonts_iter_is_embedded ()" link="poppler-poppler-document.html#poppler-fonts-iter-is-embedded"/> - <function name="poppler_fonts_iter_is_subset ()" link="poppler-poppler-document.html#poppler-fonts-iter-is-subset"/> - <function name="poppler_fonts_iter_next ()" link="poppler-poppler-document.html#poppler-fonts-iter-next"/> - <function name="poppler_ps_file_new ()" link="poppler-poppler-document.html#poppler-ps-file-new"/> - <function name="poppler_ps_file_set_paper_size ()" link="poppler-poppler-document.html#poppler-ps-file-set-paper-size"/> - <function name="poppler_ps_file_set_duplex ()" link="poppler-poppler-document.html#poppler-ps-file-set-duplex"/> - <function name="poppler_ps_file_free ()" link="poppler-poppler-document.html#poppler-ps-file-free"/> - <function name="poppler_page_render ()" link="poppler-poppler-page.html#poppler-page-render"/> - <function name="poppler_page_render_to_pixbuf ()" link="poppler-poppler-page.html#poppler-page-render-to-pixbuf"/> - <function name="poppler_page_get_size ()" link="poppler-poppler-page.html#poppler-page-get-size"/> - <function name="poppler_page_get_index ()" link="poppler-poppler-page.html#poppler-page-get-index"/> - <function name="poppler_page_get_thumbnail ()" link="poppler-poppler-page.html#poppler-page-get-thumbnail"/> - <function name="poppler_page_get_thumbnail_size ()" link="poppler-poppler-page.html#poppler-page-get-thumbnail-size"/> - <function name="poppler_page_render_to_ps ()" link="poppler-poppler-page.html#poppler-page-render-to-ps"/> - <function name="poppler_page_find_text ()" link="poppler-poppler-page.html#poppler-page-find-text"/> - <function name="poppler_page_get_text ()" link="poppler-poppler-page.html#poppler-page-get-text"/> - <function name="poppler_page_get_duration ()" link="poppler-poppler-page.html#poppler-page-get-duration"/> - <function name="poppler_page_get_transition ()" link="poppler-poppler-page.html#poppler-page-get-transition"/> - <function name="poppler_page_get_link_mapping ()" link="poppler-poppler-page.html#poppler-page-get-link-mapping"/> - <function name="poppler_page_free_link_mapping ()" link="poppler-poppler-page.html#poppler-page-free-link-mapping"/> - <function name="poppler_page_get_image_mapping ()" link="poppler-poppler-page.html#poppler-page-get-image-mapping"/> - <function name="poppler_page_free_image_mapping ()" link="poppler-poppler-page.html#poppler-page-free-image-mapping"/> - <function name="poppler_page_get_form_field_mapping ()" link="poppler-poppler-page.html#poppler-page-get-form-field-mapping"/> - <function name="poppler_page_free_form_field_mapping ()" link="poppler-poppler-page.html#poppler-page-free-form-field-mapping"/> - <function name="poppler_page_get_selection_region ()" link="poppler-poppler-page.html#poppler-page-get-selection-region"/> - <function name="poppler_page_render_selection ()" link="poppler-poppler-page.html#poppler-page-render-selection"/> - <function name="poppler_page_render_selection_to_pixbuf ()" link="poppler-poppler-page.html#poppler-page-render-selection-to-pixbuf"/> - <function name="POPPLER_TYPE_RECTANGLE" link="poppler-poppler-page.html#POPPLER-TYPE-RECTANGLE--CAPS"/> - <function name="PopplerRectangle" link="poppler-poppler-page.html#PopplerRectangle"/> - <function name="poppler_rectangle_get_type ()" link="poppler-poppler-page.html#poppler-rectangle-get-type"/> - <function name="poppler_rectangle_new ()" link="poppler-poppler-page.html#poppler-rectangle-new"/> - <function name="poppler_rectangle_copy ()" link="poppler-poppler-page.html#poppler-rectangle-copy"/> - <function name="poppler_rectangle_free ()" link="poppler-poppler-page.html#poppler-rectangle-free"/> - <function name="POPPLER_TYPE_PAGE_TRANSITION" link="poppler-poppler-page.html#POPPLER-TYPE-PAGE-TRANSITION--CAPS"/> - <function name="PopplerPageTransition" link="poppler-poppler-page.html#PopplerPageTransition"/> - <function name="poppler_page_transition_get_type ()" link="poppler-poppler-page.html#poppler-page-transition-get-type"/> - <function name="poppler_page_transition_new ()" link="poppler-poppler-page.html#poppler-page-transition-new"/> - <function name="poppler_page_transition_copy ()" link="poppler-poppler-page.html#poppler-page-transition-copy"/> - <function name="poppler_page_transition_free ()" link="poppler-poppler-page.html#poppler-page-transition-free"/> - <function name="POPPLER_TYPE_LINK_MAPPING" link="poppler-poppler-page.html#POPPLER-TYPE-LINK-MAPPING--CAPS"/> - <function name="PopplerLinkMapping" link="poppler-poppler-page.html#PopplerLinkMapping"/> - <function name="poppler_link_mapping_get_type ()" link="poppler-poppler-page.html#poppler-link-mapping-get-type"/> - <function name="poppler_link_mapping_new ()" link="poppler-poppler-page.html#poppler-link-mapping-new"/> - <function name="poppler_link_mapping_copy ()" link="poppler-poppler-page.html#poppler-link-mapping-copy"/> - <function name="poppler_link_mapping_free ()" link="poppler-poppler-page.html#poppler-link-mapping-free"/> - <function name="POPPLER_TYPE_IMAGE_MAPPING" link="poppler-poppler-page.html#POPPLER-TYPE-IMAGE-MAPPING--CAPS"/> - <function name="PopplerImageMapping" link="poppler-poppler-page.html#PopplerImageMapping"/> - <function name="poppler_image_mapping_get_type ()" link="poppler-poppler-page.html#poppler-image-mapping-get-type"/> - <function name="poppler_image_mapping_new ()" link="poppler-poppler-page.html#poppler-image-mapping-new"/> - <function name="poppler_image_mapping_copy ()" link="poppler-poppler-page.html#poppler-image-mapping-copy"/> - <function name="poppler_image_mapping_free ()" link="poppler-poppler-page.html#poppler-image-mapping-free"/> - <function name="POPPLER_TYPE_FORM_FIELD_MAPPING" link="poppler-poppler-page.html#POPPLER-TYPE-FORM-FIELD-MAPPING--CAPS"/> - <function name="PopplerFormFieldMapping" link="poppler-poppler-page.html#PopplerFormFieldMapping"/> - <function name="poppler_form_field_mapping_get_type ()" link="poppler-poppler-page.html#poppler-form-field-mapping-get-type"/> - <function name="poppler_form_field_mapping_new ()" link="poppler-poppler-page.html#poppler-form-field-mapping-new"/> - <function name="poppler_form_field_mapping_copy ()" link="poppler-poppler-page.html#poppler-form-field-mapping-copy"/> - <function name="poppler_form_field_mapping_free ()" link="poppler-poppler-page.html#poppler-form-field-mapping-free"/> - <function name="enum PopplerActionType" link="poppler-poppler-action.html#PopplerActionType"/> - <function name="enum PopplerDestType" link="poppler-poppler-action.html#PopplerDestType"/> - <function name="PopplerActionAny" link="poppler-poppler-action.html#PopplerActionAny"/> - <function name="PopplerActionGotoDest" link="poppler-poppler-action.html#PopplerActionGotoDest"/> - <function name="PopplerActionGotoRemote" link="poppler-poppler-action.html#PopplerActionGotoRemote"/> - <function name="PopplerActionLaunch" link="poppler-poppler-action.html#PopplerActionLaunch"/> - <function name="PopplerActionUri" link="poppler-poppler-action.html#PopplerActionUri"/> - <function name="PopplerActionNamed" link="poppler-poppler-action.html#PopplerActionNamed"/> - <function name="PopplerActionMovie" link="poppler-poppler-action.html#PopplerActionMovie"/> - <function name="PopplerDest" link="poppler-poppler-action.html#PopplerDest"/> - <function name="union PopplerAction" link="poppler-poppler-action.html#PopplerAction"/> - <function name="POPPLER_TYPE_ACTION" link="poppler-poppler-action.html#POPPLER-TYPE-ACTION--CAPS"/> - <function name="POPPLER_ACTION()" link="poppler-poppler-action.html#POPPLER-ACTION--CAPS"/> - <function name="poppler_action_get_type ()" link="poppler-poppler-action.html#poppler-action-get-type"/> - <function name="poppler_action_copy ()" link="poppler-poppler-action.html#poppler-action-copy"/> - <function name="poppler_action_free ()" link="poppler-poppler-action.html#poppler-action-free"/> - <function name="POPPLER_TYPE_DEST" link="poppler-poppler-action.html#POPPLER-TYPE-DEST--CAPS"/> - <function name="poppler_dest_get_type ()" link="poppler-poppler-action.html#poppler-dest-get-type"/> - <function name="poppler_dest_copy ()" link="poppler-poppler-action.html#poppler-dest-copy"/> - <function name="poppler_dest_free ()" link="poppler-poppler-action.html#poppler-dest-free"/> - <function name="PopplerAttachment" link="poppler-poppler-attachment.html#PopplerAttachment-struct"/> - <function name="poppler_attachment_save ()" link="poppler-poppler-attachment.html#poppler-attachment-save"/> - <function name="poppler_attachment_save_to_callback ()" link="poppler-poppler-attachment.html#poppler-attachment-save-to-callback"/> - <function name="PopplerAttachmentSaveFunc ()" link="poppler-poppler-attachment.html#PopplerAttachmentSaveFunc"/> - <function name="PopplerFormField" link="poppler-poppler-form-field.html#PopplerFormField-struct"/> - <function name="enum PopplerFormButtonType" link="poppler-poppler-form-field.html#PopplerFormButtonType"/> - <function name="enum PopplerFormChoiceType" link="poppler-poppler-form-field.html#PopplerFormChoiceType"/> - <function name="enum PopplerFormFieldType" link="poppler-poppler-form-field.html#PopplerFormFieldType"/> - <function name="enum PopplerFormTextType" link="poppler-poppler-form-field.html#PopplerFormTextType"/> - <function name="poppler_form_field_get_id ()" link="poppler-poppler-form-field.html#poppler-form-field-get-id"/> - <function name="poppler_form_field_get_field_type ()" link="poppler-poppler-form-field.html#poppler-form-field-get-field-type"/> - <function name="poppler_form_field_is_read_only ()" link="poppler-poppler-form-field.html#poppler-form-field-is-read-only"/> - <function name="poppler_form_field_get_font_size ()" link="poppler-poppler-form-field.html#poppler-form-field-get-font-size"/> - <function name="poppler_form_field_button_get_button_type ()" link="poppler-poppler-form-field.html#poppler-form-field-button-get-button-type"/> - <function name="poppler_form_field_button_get_state ()" link="poppler-poppler-form-field.html#poppler-form-field-button-get-state"/> - <function name="poppler_form_field_button_set_state ()" link="poppler-poppler-form-field.html#poppler-form-field-button-set-state"/> - <function name="poppler_form_field_choice_can_select_multiple ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-can-select-multiple"/> - <function name="poppler_form_field_choice_commit_on_change ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-commit-on-change"/> - <function name="poppler_form_field_choice_do_spell_check ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-do-spell-check"/> - <function name="poppler_form_field_choice_get_choice_type ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-get-choice-type"/> - <function name="poppler_form_field_choice_get_item ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-get-item"/> - <function name="poppler_form_field_choice_get_n_items ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-get-n-items"/> - <function name="poppler_form_field_choice_get_text ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-get-text"/> - <function name="poppler_form_field_choice_is_editable ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-is-editable"/> - <function name="poppler_form_field_choice_is_item_selected ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-is-item-selected"/> - <function name="poppler_form_field_choice_select_item ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-select-item"/> - <function name="poppler_form_field_choice_set_text ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-set-text"/> - <function name="poppler_form_field_choice_toggle_item ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-toggle-item"/> - <function name="poppler_form_field_choice_unselect_all ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-unselect-all"/> - <function name="poppler_form_field_text_do_scroll ()" link="poppler-poppler-form-field.html#poppler-form-field-text-do-scroll"/> - <function name="poppler_form_field_text_do_spell_check ()" link="poppler-poppler-form-field.html#poppler-form-field-text-do-spell-check"/> - <function name="poppler_form_field_text_get_max_len ()" link="poppler-poppler-form-field.html#poppler-form-field-text-get-max-len"/> - <function name="poppler_form_field_text_get_text ()" link="poppler-poppler-form-field.html#poppler-form-field-text-get-text"/> - <function name="poppler_form_field_text_get_text_type ()" link="poppler-poppler-form-field.html#poppler-form-field-text-get-text-type"/> - <function name="poppler_form_field_text_is_password ()" link="poppler-poppler-form-field.html#poppler-form-field-text-is-password"/> - <function name="poppler_form_field_text_is_rich_text ()" link="poppler-poppler-form-field.html#poppler-form-field-text-is-rich-text"/> - <function name="poppler_form_field_text_set_text ()" link="poppler-poppler-form-field.html#poppler-form-field-text-set-text"/> - <function name="POPPLER_TYPE_ACTION_TYPE" link="poppler-poppler-enums.html#POPPLER-TYPE-ACTION-TYPE--CAPS"/> - <function name="poppler_action_type_get_type ()" link="poppler-poppler-enums.html#poppler-action-type-get-type"/> - <function name="POPPLER_TYPE_DEST_TYPE" link="poppler-poppler-enums.html#POPPLER-TYPE-DEST-TYPE--CAPS"/> - <function name="poppler_dest_type_get_type ()" link="poppler-poppler-enums.html#poppler-dest-type-get-type"/> - <function name="POPPLER_TYPE_PAGE_LAYOUT" link="poppler-poppler-enums.html#POPPLER-TYPE-PAGE-LAYOUT--CAPS"/> - <function name="poppler_page_layout_get_type ()" link="poppler-poppler-enums.html#poppler-page-layout-get-type"/> - <function name="POPPLER_TYPE_PAGE_MODE" link="poppler-poppler-enums.html#POPPLER-TYPE-PAGE-MODE--CAPS"/> - <function name="poppler_page_mode_get_type ()" link="poppler-poppler-enums.html#poppler-page-mode-get-type"/> - <function name="POPPLER_TYPE_FONT_TYPE" link="poppler-poppler-enums.html#POPPLER-TYPE-FONT-TYPE--CAPS"/> - <function name="poppler_font_type_get_type ()" link="poppler-poppler-enums.html#poppler-font-type-get-type"/> - <function name="POPPLER_TYPE_VIEWER_PREFERENCES" link="poppler-poppler-enums.html#POPPLER-TYPE-VIEWER-PREFERENCES--CAPS"/> - <function name="poppler_viewer_preferences_get_type ()" link="poppler-poppler-enums.html#poppler-viewer-preferences-get-type"/> - <function name="POPPLER_TYPE_PERMISSIONS" link="poppler-poppler-enums.html#POPPLER-TYPE-PERMISSIONS--CAPS"/> - <function name="poppler_permissions_get_type ()" link="poppler-poppler-enums.html#poppler-permissions-get-type"/> - <function name="POPPLER_TYPE_SELECTION_STYLE" link="poppler-poppler-enums.html#POPPLER-TYPE-SELECTION-STYLE--CAPS"/> - <function name="poppler_selection_style_get_type ()" link="poppler-poppler-enums.html#poppler-selection-style-get-type"/> - <function name="POPPLER_TYPE_PAGE_TRANSITION_TYPE" link="poppler-poppler-enums.html#POPPLER-TYPE-PAGE-TRANSITION-TYPE--CAPS"/> - <function name="poppler_page_transition_type_get_type ()" link="poppler-poppler-enums.html#poppler-page-transition-type-get-type"/> - <function name="POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT" link="poppler-poppler-enums.html#POPPLER-TYPE-PAGE-TRANSITION-ALIGNMENT--CAPS"/> - <function name="poppler_page_transition_alignment_get_type ()" link="poppler-poppler-enums.html#poppler-page-transition-alignment-get-type"/> - <function name="POPPLER_TYPE_PAGE_TRANSITION_DIRECTION" link="poppler-poppler-enums.html#POPPLER-TYPE-PAGE-TRANSITION-DIRECTION--CAPS"/> - <function name="poppler_page_transition_direction_get_type ()" link="poppler-poppler-enums.html#poppler-page-transition-direction-get-type"/> - <function name="POPPLER_TYPE_ERROR" link="poppler-poppler-enums.html#POPPLER-TYPE-ERROR--CAPS"/> - <function name="poppler_error_get_type ()" link="poppler-poppler-enums.html#poppler-error-get-type"/> - <function name="POPPLER_TYPE_ORIENTATION" link="poppler-poppler-enums.html#POPPLER-TYPE-ORIENTATION--CAPS"/> - <function name="poppler_orientation_get_type ()" link="poppler-poppler-enums.html#poppler-orientation-get-type"/> - <function name="POPPLER_TYPE_BACKEND" link="poppler-poppler-enums.html#POPPLER-TYPE-BACKEND--CAPS"/> - <function name="poppler_backend_get_type ()" link="poppler-poppler-enums.html#poppler-backend-get-type"/> - <function name="PopplerAnnot" link="poppler-poppler-annot.html#PopplerAnnot"/> - <function name="poppler_annot_callout_line_copy ()" link="poppler-poppler-annot.html#poppler-annot-callout-line-copy"/> - <function name="poppler_annot_callout_line_free ()" link="poppler-poppler-annot.html#poppler-annot-callout-line-free"/> - <function name="poppler_annot_callout_line_get_type ()" link="poppler-poppler-annot.html#poppler-annot-callout-line-get-type"/> - <function name="poppler_annot_callout_line_new ()" link="poppler-poppler-annot.html#poppler-annot-callout-line-new"/> - <function name="poppler_annot_external_data_type_get_type ()" link="poppler-poppler-annot.html#poppler-annot-external-data-type-get-type"/> - <function name="poppler_annot_flag_get_type ()" link="poppler-poppler-annot.html#poppler-annot-flag-get-type"/> - <function name="poppler_annot_free_text_get_callout_line ()" link="poppler-poppler-annot.html#poppler-annot-free-text-get-callout-line"/> - <function name="poppler_annot_free_text_get_quadding ()" link="poppler-poppler-annot.html#poppler-annot-free-text-get-quadding"/> - <function name="poppler_annot_free_text_get_type ()" link="poppler-poppler-annot.html#poppler-annot-free-text-get-type"/> - <function name="poppler_annot_free_text_quadding_get_type ()" link="poppler-poppler-annot.html#poppler-annot-free-text-quadding-get-type"/> - <function name="poppler_annot_get_annot_type ()" link="poppler-poppler-annot.html#poppler-annot-get-annot-type"/> - <function name="poppler_annot_get_color ()" link="poppler-poppler-annot.html#poppler-annot-get-color"/> - <function name="poppler_annot_get_contents ()" link="poppler-poppler-annot.html#poppler-annot-get-contents"/> - <function name="poppler_annot_get_flags ()" link="poppler-poppler-annot.html#poppler-annot-get-flags"/> - <function name="poppler_annot_get_modified ()" link="poppler-poppler-annot.html#poppler-annot-get-modified"/> - <function name="poppler_annot_get_name ()" link="poppler-poppler-annot.html#poppler-annot-get-name"/> - <function name="poppler_annot_get_type ()" link="poppler-poppler-annot.html#poppler-annot-get-type"/> - <function name="poppler_annot_mapping_copy ()" link="poppler-poppler-annot.html#poppler-annot-mapping-copy"/> - <function name="poppler_annot_mapping_free ()" link="poppler-poppler-annot.html#poppler-annot-mapping-free"/> - <function name="poppler_annot_mapping_get_type ()" link="poppler-poppler-annot.html#poppler-annot-mapping-get-type"/> - <function name="poppler_annot_mapping_new ()" link="poppler-poppler-annot.html#poppler-annot-mapping-new"/> - <function name="poppler_annot_markup_get_date ()" link="poppler-poppler-annot.html#poppler-annot-markup-get-date"/> - <function name="poppler_annot_markup_get_external_data ()" link="poppler-poppler-annot.html#poppler-annot-markup-get-external-data"/> - <function name="poppler_annot_markup_get_label ()" link="poppler-poppler-annot.html#poppler-annot-markup-get-label"/> - <function name="poppler_annot_markup_get_opacity ()" link="poppler-poppler-annot.html#poppler-annot-markup-get-opacity"/> - <function name="poppler_annot_markup_get_popup_is_open ()" link="poppler-poppler-annot.html#poppler-annot-markup-get-popup-is-open"/> - <function name="poppler_annot_markup_get_reply_to ()" link="poppler-poppler-annot.html#poppler-annot-markup-get-reply-to"/> - <function name="poppler_annot_markup_get_subject ()" link="poppler-poppler-annot.html#poppler-annot-markup-get-subject"/> - <function name="poppler_annot_markup_get_type ()" link="poppler-poppler-annot.html#poppler-annot-markup-get-type"/> - <function name="poppler_annot_markup_reply_type_get_type ()" link="poppler-poppler-annot.html#poppler-annot-markup-reply-type-get-type"/> - <function name="poppler_annot_text_get_icon ()" link="poppler-poppler-annot.html#poppler-annot-text-get-icon"/> - <function name="poppler_annot_text_get_is_open ()" link="poppler-poppler-annot.html#poppler-annot-text-get-is-open"/> - <function name="poppler_annot_text_get_state ()" link="poppler-poppler-annot.html#poppler-annot-text-get-state"/> - <function name="poppler_annot_text_get_type ()" link="poppler-poppler-annot.html#poppler-annot-text-get-type"/> - <function name="poppler_annot_text_state_get_type ()" link="poppler-poppler-annot.html#poppler-annot-text-state-get-type"/> - <function name="poppler_annot_type_get_type ()" link="poppler-poppler-annot.html#poppler-annot-type-get-type"/> - <function name="poppler_layer_get_type ()" link="poppler-poppler-layer.html#poppler-layer-get-type"/> - <function name="poppler_layer_get_title ()" link="poppler-poppler-layer.html#poppler-layer-get-title"/> - <function name="poppler_layer_is_visible ()" link="poppler-poppler-layer.html#poppler-layer-is-visible"/> - <function name="poppler_layer_show ()" link="poppler-poppler-layer.html#poppler-layer-show"/> - <function name="poppler_layer_hide ()" link="poppler-poppler-layer.html#poppler-layer-hide"/> - <function name="poppler_layer_is_parent ()" link="poppler-poppler-layer.html#poppler-layer-is-parent"/> - <function name="poppler_layer_get_radio_button_group_id ()" link="poppler-poppler-layer.html#poppler-layer-get-radio-button-group-id"/> - <function name="POPPLER_HAS_CAIRO" link="poppler-poppler-features.html#POPPLER-HAS-CAIRO--CAPS"/> - <function name="POPPLER_WITH_GDK" link="poppler-poppler-features.html#POPPLER-WITH-GDK--CAPS"/> - <function name="POPPLER_MAJOR_VERSION" link="poppler-poppler-features.html#POPPLER-MAJOR-VERSION--CAPS"/> - <function name="POPPLER_MINOR_VERSION" link="poppler-poppler-features.html#POPPLER-MINOR-VERSION--CAPS"/> - <function name="POPPLER_MICRO_VERSION" link="poppler-poppler-features.html#POPPLER-MICRO-VERSION--CAPS"/> - <function name="POPPLER_CHECK_VERSION()" link="poppler-poppler-features.html#POPPLER-CHECK-VERSION--CAPS"/> - </functions> -</book> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler.devhelp2 b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler.devhelp2 deleted file mode 100644 index 59f8efbb0a8..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/poppler.devhelp2 +++ /dev/null @@ -1,281 +0,0 @@ -<?xml version="1.0" encoding="utf-8" standalone="no"?> -<!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ""> -<book xmlns="http://www.devhelp.net/book" title="Poppler Reference Manual" link="index.html" author="" name="poppler" version="2" language="c"> - <chapters> - <sub name="Poppler" link="ch01.html"> - <sub name="poppler" link="poppler-poppler.html"/> - <sub name="PopplerDocument" link="poppler-poppler-document.html"/> - <sub name="PopplerPage" link="poppler-poppler-page.html"/> - <sub name="PopplerAction" link="poppler-poppler-action.html"/> - <sub name="PopplerAttachment" link="poppler-poppler-attachment.html"/> - <sub name="PopplerFormField" link="poppler-poppler-form-field.html"/> - <sub name="poppler-enums" link="poppler-poppler-enums.html"/> - <sub name="PopplerAnnot" link="poppler-poppler-annot.html"/> - <sub name="PopplerLayer" link="poppler-poppler-layer.html"/> - <sub name="Version and Features Information" link="poppler-poppler-features.html"/> - </sub> - </chapters> - <functions> - <keyword type="function" name="poppler_error_quark ()" link="poppler-poppler.html#poppler-error-quark"/> - <keyword type="macro" name="POPPLER_ERROR" link="poppler-poppler.html#POPPLER-ERROR--CAPS"/> - <keyword type="enum" name="enum PopplerError" link="poppler-poppler.html#PopplerError"/> - <keyword type="enum" name="enum PopplerOrientation" link="poppler-poppler.html#PopplerOrientation"/> - <keyword type="struct" name="PopplerDocument" link="poppler-poppler.html#PopplerDocument-struct"/> - <keyword type="struct" name="PopplerIndexIter" link="poppler-poppler.html#PopplerIndexIter"/> - <keyword type="struct" name="PopplerFontsIter" link="poppler-poppler.html#PopplerFontsIter"/> - <keyword type="struct" name="PopplerRectangle" link="poppler-poppler.html#PopplerRectangle"/> - <keyword type="enum" name="enum PopplerSelectionStyle" link="poppler-poppler.html#PopplerSelectionStyle"/> - <keyword type="enum" name="enum PopplerPageTransitionType" link="poppler-poppler.html#PopplerPageTransitionType"/> - <keyword type="enum" name="enum PopplerPageTransitionAlignment" link="poppler-poppler.html#PopplerPageTransitionAlignment"/> - <keyword type="enum" name="enum PopplerPageTransitionDirection" link="poppler-poppler.html#PopplerPageTransitionDirection"/> - <keyword type="struct" name="PopplerLinkMapping" link="poppler-poppler.html#PopplerLinkMapping"/> - <keyword type="struct" name="PopplerPage" link="poppler-poppler.html#PopplerPage-struct"/> - <keyword type="struct" name="PopplerFontInfo" link="poppler-poppler.html#PopplerFontInfo"/> - <keyword type="struct" name="PopplerPSFile" link="poppler-poppler.html#PopplerPSFile"/> - <keyword type="enum" name="enum PopplerBackend" link="poppler-poppler.html#PopplerBackend"/> - <keyword type="function" name="poppler_get_backend ()" link="poppler-poppler.html#poppler-get-backend"/> - <keyword type="function" name="poppler_get_version ()" link="poppler-poppler.html#poppler-get-version"/> - <keyword type="property" name="The "author" property" link="poppler-poppler.html#PopplerDocument--author"/> - <keyword type="property" name="The "creation-date" property" link="poppler-poppler.html#PopplerDocument--creation-date"/> - <keyword type="property" name="The "creator" property" link="poppler-poppler.html#PopplerDocument--creator"/> - <keyword type="property" name="The "format" property" link="poppler-poppler.html#PopplerDocument--format"/> - <keyword type="property" name="The "format-major" property" link="poppler-poppler.html#PopplerDocument--format-major"/> - <keyword type="property" name="The "format-minor" property" link="poppler-poppler.html#PopplerDocument--format-minor"/> - <keyword type="property" name="The "keywords" property" link="poppler-poppler.html#PopplerDocument--keywords"/> - <keyword type="property" name="The "linearized" property" link="poppler-poppler.html#PopplerDocument--linearized"/> - <keyword type="property" name="The "metadata" property" link="poppler-poppler.html#PopplerDocument--metadata"/> - <keyword type="property" name="The "mod-date" property" link="poppler-poppler.html#PopplerDocument--mod-date"/> - <keyword type="property" name="The "page-layout" property" link="poppler-poppler.html#PopplerDocument--page-layout"/> - <keyword type="property" name="The "page-mode" property" link="poppler-poppler.html#PopplerDocument--page-mode"/> - <keyword type="property" name="The "permissions" property" link="poppler-poppler.html#PopplerDocument--permissions"/> - <keyword type="property" name="The "producer" property" link="poppler-poppler.html#PopplerDocument--producer"/> - <keyword type="property" name="The "subject" property" link="poppler-poppler.html#PopplerDocument--subject"/> - <keyword type="property" name="The "title" property" link="poppler-poppler.html#PopplerDocument--title"/> - <keyword type="property" name="The "viewer-preferences" property" link="poppler-poppler.html#PopplerDocument--viewer-preferences"/> - <keyword type="property" name="The "label" property" link="poppler-poppler.html#PopplerPage--label"/> - <keyword type="enum" name="enum PopplerPageLayout" link="poppler-poppler-document.html#PopplerPageLayout"/> - <keyword type="enum" name="enum PopplerPageMode" link="poppler-poppler-document.html#PopplerPageMode"/> - <keyword type="enum" name="enum PopplerFontType" link="poppler-poppler-document.html#PopplerFontType"/> - <keyword type="enum" name="enum PopplerViewerPreferences" link="poppler-poppler-document.html#PopplerViewerPreferences"/> - <keyword type="enum" name="enum PopplerPermissions" link="poppler-poppler-document.html#PopplerPermissions"/> - <keyword type="function" name="poppler_document_new_from_file ()" link="poppler-poppler-document.html#poppler-document-new-from-file"/> - <keyword type="function" name="poppler_document_new_from_data ()" link="poppler-poppler-document.html#poppler-document-new-from-data"/> - <keyword type="function" name="poppler_document_save ()" link="poppler-poppler-document.html#poppler-document-save"/> - <keyword type="function" name="poppler_document_get_n_pages ()" link="poppler-poppler-document.html#poppler-document-get-n-pages"/> - <keyword type="function" name="poppler_document_get_page ()" link="poppler-poppler-document.html#poppler-document-get-page"/> - <keyword type="function" name="poppler_document_get_page_by_label ()" link="poppler-poppler-document.html#poppler-document-get-page-by-label"/> - <keyword type="function" name="poppler_document_find_dest ()" link="poppler-poppler-document.html#poppler-document-find-dest"/> - <keyword type="function" name="poppler_document_has_attachments ()" link="poppler-poppler-document.html#poppler-document-has-attachments"/> - <keyword type="function" name="poppler_document_get_attachments ()" link="poppler-poppler-document.html#poppler-document-get-attachments"/> - <keyword type="function" name="poppler_document_get_form_field ()" link="poppler-poppler-document.html#poppler-document-get-form-field"/> - <keyword type="function" name="poppler_index_iter_get_type ()" link="poppler-poppler-document.html#poppler-index-iter-get-type"/> - <keyword type="function" name="poppler_index_iter_new ()" link="poppler-poppler-document.html#poppler-index-iter-new"/> - <keyword type="function" name="poppler_index_iter_copy ()" link="poppler-poppler-document.html#poppler-index-iter-copy"/> - <keyword type="function" name="poppler_index_iter_free ()" link="poppler-poppler-document.html#poppler-index-iter-free"/> - <keyword type="function" name="poppler_index_iter_get_child ()" link="poppler-poppler-document.html#poppler-index-iter-get-child"/> - <keyword type="function" name="poppler_index_iter_is_open ()" link="poppler-poppler-document.html#poppler-index-iter-is-open"/> - <keyword type="function" name="poppler_index_iter_get_action ()" link="poppler-poppler-document.html#poppler-index-iter-get-action"/> - <keyword type="function" name="poppler_index_iter_next ()" link="poppler-poppler-document.html#poppler-index-iter-next"/> - <keyword type="function" name="poppler_font_info_new ()" link="poppler-poppler-document.html#poppler-font-info-new"/> - <keyword type="function" name="poppler_font_info_scan ()" link="poppler-poppler-document.html#poppler-font-info-scan"/> - <keyword type="function" name="poppler_font_info_free ()" link="poppler-poppler-document.html#poppler-font-info-free"/> - <keyword type="function" name="poppler_fonts_iter_get_type ()" link="poppler-poppler-document.html#poppler-fonts-iter-get-type"/> - <keyword type="function" name="poppler_fonts_iter_copy ()" link="poppler-poppler-document.html#poppler-fonts-iter-copy"/> - <keyword type="function" name="poppler_fonts_iter_free ()" link="poppler-poppler-document.html#poppler-fonts-iter-free"/> - <keyword type="function" name="poppler_fonts_iter_get_name ()" link="poppler-poppler-document.html#poppler-fonts-iter-get-name"/> - <keyword type="function" name="poppler_fonts_iter_get_full_name ()" link="poppler-poppler-document.html#poppler-fonts-iter-get-full-name"/> - <keyword type="function" name="poppler_fonts_iter_get_font_type ()" link="poppler-poppler-document.html#poppler-fonts-iter-get-font-type"/> - <keyword type="function" name="poppler_fonts_iter_is_embedded ()" link="poppler-poppler-document.html#poppler-fonts-iter-is-embedded"/> - <keyword type="function" name="poppler_fonts_iter_is_subset ()" link="poppler-poppler-document.html#poppler-fonts-iter-is-subset"/> - <keyword type="function" name="poppler_fonts_iter_next ()" link="poppler-poppler-document.html#poppler-fonts-iter-next"/> - <keyword type="function" name="poppler_ps_file_new ()" link="poppler-poppler-document.html#poppler-ps-file-new"/> - <keyword type="function" name="poppler_ps_file_set_paper_size ()" link="poppler-poppler-document.html#poppler-ps-file-set-paper-size"/> - <keyword type="function" name="poppler_ps_file_set_duplex ()" link="poppler-poppler-document.html#poppler-ps-file-set-duplex"/> - <keyword type="function" name="poppler_ps_file_free ()" link="poppler-poppler-document.html#poppler-ps-file-free"/> - <keyword type="function" name="poppler_page_render ()" link="poppler-poppler-page.html#poppler-page-render"/> - <keyword type="function" name="poppler_page_render_to_pixbuf ()" link="poppler-poppler-page.html#poppler-page-render-to-pixbuf"/> - <keyword type="function" name="poppler_page_get_size ()" link="poppler-poppler-page.html#poppler-page-get-size"/> - <keyword type="function" name="poppler_page_get_index ()" link="poppler-poppler-page.html#poppler-page-get-index"/> - <keyword type="function" name="poppler_page_get_thumbnail ()" link="poppler-poppler-page.html#poppler-page-get-thumbnail"/> - <keyword type="function" name="poppler_page_get_thumbnail_size ()" link="poppler-poppler-page.html#poppler-page-get-thumbnail-size"/> - <keyword type="function" name="poppler_page_render_to_ps ()" link="poppler-poppler-page.html#poppler-page-render-to-ps"/> - <keyword type="function" name="poppler_page_find_text ()" link="poppler-poppler-page.html#poppler-page-find-text"/> - <keyword type="function" name="poppler_page_get_text ()" link="poppler-poppler-page.html#poppler-page-get-text"/> - <keyword type="function" name="poppler_page_get_duration ()" link="poppler-poppler-page.html#poppler-page-get-duration"/> - <keyword type="function" name="poppler_page_get_transition ()" link="poppler-poppler-page.html#poppler-page-get-transition"/> - <keyword type="function" name="poppler_page_get_link_mapping ()" link="poppler-poppler-page.html#poppler-page-get-link-mapping"/> - <keyword type="function" name="poppler_page_free_link_mapping ()" link="poppler-poppler-page.html#poppler-page-free-link-mapping"/> - <keyword type="function" name="poppler_page_get_image_mapping ()" link="poppler-poppler-page.html#poppler-page-get-image-mapping"/> - <keyword type="function" name="poppler_page_free_image_mapping ()" link="poppler-poppler-page.html#poppler-page-free-image-mapping"/> - <keyword type="function" name="poppler_page_get_form_field_mapping ()" link="poppler-poppler-page.html#poppler-page-get-form-field-mapping"/> - <keyword type="function" name="poppler_page_free_form_field_mapping ()" link="poppler-poppler-page.html#poppler-page-free-form-field-mapping"/> - <keyword type="function" name="poppler_page_get_selection_region ()" link="poppler-poppler-page.html#poppler-page-get-selection-region"/> - <keyword type="function" name="poppler_page_render_selection ()" link="poppler-poppler-page.html#poppler-page-render-selection"/> - <keyword type="function" name="poppler_page_render_selection_to_pixbuf ()" link="poppler-poppler-page.html#poppler-page-render-selection-to-pixbuf"/> - <keyword type="macro" name="POPPLER_TYPE_RECTANGLE" link="poppler-poppler-page.html#POPPLER-TYPE-RECTANGLE--CAPS"/> - <keyword type="struct" name="PopplerRectangle" link="poppler-poppler-page.html#PopplerRectangle"/> - <keyword type="function" name="poppler_rectangle_get_type ()" link="poppler-poppler-page.html#poppler-rectangle-get-type"/> - <keyword type="function" name="poppler_rectangle_new ()" link="poppler-poppler-page.html#poppler-rectangle-new"/> - <keyword type="function" name="poppler_rectangle_copy ()" link="poppler-poppler-page.html#poppler-rectangle-copy"/> - <keyword type="function" name="poppler_rectangle_free ()" link="poppler-poppler-page.html#poppler-rectangle-free"/> - <keyword type="macro" name="POPPLER_TYPE_PAGE_TRANSITION" link="poppler-poppler-page.html#POPPLER-TYPE-PAGE-TRANSITION--CAPS"/> - <keyword type="struct" name="PopplerPageTransition" link="poppler-poppler-page.html#PopplerPageTransition"/> - <keyword type="function" name="poppler_page_transition_get_type ()" link="poppler-poppler-page.html#poppler-page-transition-get-type"/> - <keyword type="function" name="poppler_page_transition_new ()" link="poppler-poppler-page.html#poppler-page-transition-new"/> - <keyword type="function" name="poppler_page_transition_copy ()" link="poppler-poppler-page.html#poppler-page-transition-copy"/> - <keyword type="function" name="poppler_page_transition_free ()" link="poppler-poppler-page.html#poppler-page-transition-free"/> - <keyword type="macro" name="POPPLER_TYPE_LINK_MAPPING" link="poppler-poppler-page.html#POPPLER-TYPE-LINK-MAPPING--CAPS"/> - <keyword type="struct" name="PopplerLinkMapping" link="poppler-poppler-page.html#PopplerLinkMapping"/> - <keyword type="function" name="poppler_link_mapping_get_type ()" link="poppler-poppler-page.html#poppler-link-mapping-get-type"/> - <keyword type="function" name="poppler_link_mapping_new ()" link="poppler-poppler-page.html#poppler-link-mapping-new"/> - <keyword type="function" name="poppler_link_mapping_copy ()" link="poppler-poppler-page.html#poppler-link-mapping-copy"/> - <keyword type="function" name="poppler_link_mapping_free ()" link="poppler-poppler-page.html#poppler-link-mapping-free"/> - <keyword type="macro" name="POPPLER_TYPE_IMAGE_MAPPING" link="poppler-poppler-page.html#POPPLER-TYPE-IMAGE-MAPPING--CAPS"/> - <keyword type="struct" name="PopplerImageMapping" link="poppler-poppler-page.html#PopplerImageMapping"/> - <keyword type="function" name="poppler_image_mapping_get_type ()" link="poppler-poppler-page.html#poppler-image-mapping-get-type"/> - <keyword type="function" name="poppler_image_mapping_new ()" link="poppler-poppler-page.html#poppler-image-mapping-new"/> - <keyword type="function" name="poppler_image_mapping_copy ()" link="poppler-poppler-page.html#poppler-image-mapping-copy"/> - <keyword type="function" name="poppler_image_mapping_free ()" link="poppler-poppler-page.html#poppler-image-mapping-free"/> - <keyword type="macro" name="POPPLER_TYPE_FORM_FIELD_MAPPING" link="poppler-poppler-page.html#POPPLER-TYPE-FORM-FIELD-MAPPING--CAPS"/> - <keyword type="struct" name="PopplerFormFieldMapping" link="poppler-poppler-page.html#PopplerFormFieldMapping"/> - <keyword type="function" name="poppler_form_field_mapping_get_type ()" link="poppler-poppler-page.html#poppler-form-field-mapping-get-type"/> - <keyword type="function" name="poppler_form_field_mapping_new ()" link="poppler-poppler-page.html#poppler-form-field-mapping-new"/> - <keyword type="function" name="poppler_form_field_mapping_copy ()" link="poppler-poppler-page.html#poppler-form-field-mapping-copy"/> - <keyword type="function" name="poppler_form_field_mapping_free ()" link="poppler-poppler-page.html#poppler-form-field-mapping-free"/> - <keyword type="enum" name="enum PopplerActionType" link="poppler-poppler-action.html#PopplerActionType"/> - <keyword type="enum" name="enum PopplerDestType" link="poppler-poppler-action.html#PopplerDestType"/> - <keyword type="struct" name="PopplerActionAny" link="poppler-poppler-action.html#PopplerActionAny"/> - <keyword type="struct" name="PopplerActionGotoDest" link="poppler-poppler-action.html#PopplerActionGotoDest"/> - <keyword type="struct" name="PopplerActionGotoRemote" link="poppler-poppler-action.html#PopplerActionGotoRemote"/> - <keyword type="struct" name="PopplerActionLaunch" link="poppler-poppler-action.html#PopplerActionLaunch"/> - <keyword type="struct" name="PopplerActionUri" link="poppler-poppler-action.html#PopplerActionUri"/> - <keyword type="struct" name="PopplerActionNamed" link="poppler-poppler-action.html#PopplerActionNamed"/> - <keyword type="struct" name="PopplerActionMovie" link="poppler-poppler-action.html#PopplerActionMovie"/> - <keyword type="struct" name="PopplerDest" link="poppler-poppler-action.html#PopplerDest"/> - <keyword type="union" name="union PopplerAction" link="poppler-poppler-action.html#PopplerAction"/> - <keyword type="macro" name="POPPLER_TYPE_ACTION" link="poppler-poppler-action.html#POPPLER-TYPE-ACTION--CAPS"/> - <keyword type="macro" name="POPPLER_ACTION()" link="poppler-poppler-action.html#POPPLER-ACTION--CAPS"/> - <keyword type="function" name="poppler_action_get_type ()" link="poppler-poppler-action.html#poppler-action-get-type"/> - <keyword type="function" name="poppler_action_copy ()" link="poppler-poppler-action.html#poppler-action-copy"/> - <keyword type="function" name="poppler_action_free ()" link="poppler-poppler-action.html#poppler-action-free"/> - <keyword type="macro" name="POPPLER_TYPE_DEST" link="poppler-poppler-action.html#POPPLER-TYPE-DEST--CAPS"/> - <keyword type="function" name="poppler_dest_get_type ()" link="poppler-poppler-action.html#poppler-dest-get-type"/> - <keyword type="function" name="poppler_dest_copy ()" link="poppler-poppler-action.html#poppler-dest-copy"/> - <keyword type="function" name="poppler_dest_free ()" link="poppler-poppler-action.html#poppler-dest-free"/> - <keyword type="struct" name="PopplerAttachment" link="poppler-poppler-attachment.html#PopplerAttachment-struct"/> - <keyword type="function" name="poppler_attachment_save ()" link="poppler-poppler-attachment.html#poppler-attachment-save"/> - <keyword type="function" name="poppler_attachment_save_to_callback ()" link="poppler-poppler-attachment.html#poppler-attachment-save-to-callback"/> - <keyword type="function" name="PopplerAttachmentSaveFunc ()" link="poppler-poppler-attachment.html#PopplerAttachmentSaveFunc"/> - <keyword type="struct" name="PopplerFormField" link="poppler-poppler-form-field.html#PopplerFormField-struct"/> - <keyword type="enum" name="enum PopplerFormButtonType" link="poppler-poppler-form-field.html#PopplerFormButtonType"/> - <keyword type="enum" name="enum PopplerFormChoiceType" link="poppler-poppler-form-field.html#PopplerFormChoiceType"/> - <keyword type="enum" name="enum PopplerFormFieldType" link="poppler-poppler-form-field.html#PopplerFormFieldType"/> - <keyword type="enum" name="enum PopplerFormTextType" link="poppler-poppler-form-field.html#PopplerFormTextType"/> - <keyword type="function" name="poppler_form_field_get_id ()" link="poppler-poppler-form-field.html#poppler-form-field-get-id"/> - <keyword type="function" name="poppler_form_field_get_field_type ()" link="poppler-poppler-form-field.html#poppler-form-field-get-field-type"/> - <keyword type="function" name="poppler_form_field_is_read_only ()" link="poppler-poppler-form-field.html#poppler-form-field-is-read-only"/> - <keyword type="function" name="poppler_form_field_get_font_size ()" link="poppler-poppler-form-field.html#poppler-form-field-get-font-size"/> - <keyword type="function" name="poppler_form_field_button_get_button_type ()" link="poppler-poppler-form-field.html#poppler-form-field-button-get-button-type"/> - <keyword type="function" name="poppler_form_field_button_get_state ()" link="poppler-poppler-form-field.html#poppler-form-field-button-get-state"/> - <keyword type="function" name="poppler_form_field_button_set_state ()" link="poppler-poppler-form-field.html#poppler-form-field-button-set-state"/> - <keyword type="function" name="poppler_form_field_choice_can_select_multiple ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-can-select-multiple"/> - <keyword type="function" name="poppler_form_field_choice_commit_on_change ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-commit-on-change"/> - <keyword type="function" name="poppler_form_field_choice_do_spell_check ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-do-spell-check"/> - <keyword type="function" name="poppler_form_field_choice_get_choice_type ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-get-choice-type"/> - <keyword type="function" name="poppler_form_field_choice_get_item ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-get-item"/> - <keyword type="function" name="poppler_form_field_choice_get_n_items ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-get-n-items"/> - <keyword type="function" name="poppler_form_field_choice_get_text ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-get-text"/> - <keyword type="function" name="poppler_form_field_choice_is_editable ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-is-editable"/> - <keyword type="function" name="poppler_form_field_choice_is_item_selected ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-is-item-selected"/> - <keyword type="function" name="poppler_form_field_choice_select_item ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-select-item"/> - <keyword type="function" name="poppler_form_field_choice_set_text ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-set-text"/> - <keyword type="function" name="poppler_form_field_choice_toggle_item ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-toggle-item"/> - <keyword type="function" name="poppler_form_field_choice_unselect_all ()" link="poppler-poppler-form-field.html#poppler-form-field-choice-unselect-all"/> - <keyword type="function" name="poppler_form_field_text_do_scroll ()" link="poppler-poppler-form-field.html#poppler-form-field-text-do-scroll"/> - <keyword type="function" name="poppler_form_field_text_do_spell_check ()" link="poppler-poppler-form-field.html#poppler-form-field-text-do-spell-check"/> - <keyword type="function" name="poppler_form_field_text_get_max_len ()" link="poppler-poppler-form-field.html#poppler-form-field-text-get-max-len"/> - <keyword type="function" name="poppler_form_field_text_get_text ()" link="poppler-poppler-form-field.html#poppler-form-field-text-get-text"/> - <keyword type="function" name="poppler_form_field_text_get_text_type ()" link="poppler-poppler-form-field.html#poppler-form-field-text-get-text-type"/> - <keyword type="function" name="poppler_form_field_text_is_password ()" link="poppler-poppler-form-field.html#poppler-form-field-text-is-password"/> - <keyword type="function" name="poppler_form_field_text_is_rich_text ()" link="poppler-poppler-form-field.html#poppler-form-field-text-is-rich-text"/> - <keyword type="function" name="poppler_form_field_text_set_text ()" link="poppler-poppler-form-field.html#poppler-form-field-text-set-text"/> - <keyword type="macro" name="POPPLER_TYPE_ACTION_TYPE" link="poppler-poppler-enums.html#POPPLER-TYPE-ACTION-TYPE--CAPS"/> - <keyword type="function" name="poppler_action_type_get_type ()" link="poppler-poppler-enums.html#poppler-action-type-get-type"/> - <keyword type="macro" name="POPPLER_TYPE_DEST_TYPE" link="poppler-poppler-enums.html#POPPLER-TYPE-DEST-TYPE--CAPS"/> - <keyword type="function" name="poppler_dest_type_get_type ()" link="poppler-poppler-enums.html#poppler-dest-type-get-type"/> - <keyword type="macro" name="POPPLER_TYPE_PAGE_LAYOUT" link="poppler-poppler-enums.html#POPPLER-TYPE-PAGE-LAYOUT--CAPS"/> - <keyword type="function" name="poppler_page_layout_get_type ()" link="poppler-poppler-enums.html#poppler-page-layout-get-type"/> - <keyword type="macro" name="POPPLER_TYPE_PAGE_MODE" link="poppler-poppler-enums.html#POPPLER-TYPE-PAGE-MODE--CAPS"/> - <keyword type="function" name="poppler_page_mode_get_type ()" link="poppler-poppler-enums.html#poppler-page-mode-get-type"/> - <keyword type="macro" name="POPPLER_TYPE_FONT_TYPE" link="poppler-poppler-enums.html#POPPLER-TYPE-FONT-TYPE--CAPS"/> - <keyword type="function" name="poppler_font_type_get_type ()" link="poppler-poppler-enums.html#poppler-font-type-get-type"/> - <keyword type="macro" name="POPPLER_TYPE_VIEWER_PREFERENCES" link="poppler-poppler-enums.html#POPPLER-TYPE-VIEWER-PREFERENCES--CAPS"/> - <keyword type="function" name="poppler_viewer_preferences_get_type ()" link="poppler-poppler-enums.html#poppler-viewer-preferences-get-type"/> - <keyword type="macro" name="POPPLER_TYPE_PERMISSIONS" link="poppler-poppler-enums.html#POPPLER-TYPE-PERMISSIONS--CAPS"/> - <keyword type="function" name="poppler_permissions_get_type ()" link="poppler-poppler-enums.html#poppler-permissions-get-type"/> - <keyword type="macro" name="POPPLER_TYPE_SELECTION_STYLE" link="poppler-poppler-enums.html#POPPLER-TYPE-SELECTION-STYLE--CAPS"/> - <keyword type="function" name="poppler_selection_style_get_type ()" link="poppler-poppler-enums.html#poppler-selection-style-get-type"/> - <keyword type="macro" name="POPPLER_TYPE_PAGE_TRANSITION_TYPE" link="poppler-poppler-enums.html#POPPLER-TYPE-PAGE-TRANSITION-TYPE--CAPS"/> - <keyword type="function" name="poppler_page_transition_type_get_type ()" link="poppler-poppler-enums.html#poppler-page-transition-type-get-type"/> - <keyword type="macro" name="POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT" link="poppler-poppler-enums.html#POPPLER-TYPE-PAGE-TRANSITION-ALIGNMENT--CAPS"/> - <keyword type="function" name="poppler_page_transition_alignment_get_type ()" link="poppler-poppler-enums.html#poppler-page-transition-alignment-get-type"/> - <keyword type="macro" name="POPPLER_TYPE_PAGE_TRANSITION_DIRECTION" link="poppler-poppler-enums.html#POPPLER-TYPE-PAGE-TRANSITION-DIRECTION--CAPS"/> - <keyword type="function" name="poppler_page_transition_direction_get_type ()" link="poppler-poppler-enums.html#poppler-page-transition-direction-get-type"/> - <keyword type="macro" name="POPPLER_TYPE_ERROR" link="poppler-poppler-enums.html#POPPLER-TYPE-ERROR--CAPS"/> - <keyword type="function" name="poppler_error_get_type ()" link="poppler-poppler-enums.html#poppler-error-get-type"/> - <keyword type="macro" name="POPPLER_TYPE_ORIENTATION" link="poppler-poppler-enums.html#POPPLER-TYPE-ORIENTATION--CAPS"/> - <keyword type="function" name="poppler_orientation_get_type ()" link="poppler-poppler-enums.html#poppler-orientation-get-type"/> - <keyword type="macro" name="POPPLER_TYPE_BACKEND" link="poppler-poppler-enums.html#POPPLER-TYPE-BACKEND--CAPS"/> - <keyword type="function" name="poppler_backend_get_type ()" link="poppler-poppler-enums.html#poppler-backend-get-type"/> - <keyword type="struct" name="PopplerAnnot" link="poppler-poppler-annot.html#PopplerAnnot"/> - <keyword type="function" name="poppler_annot_callout_line_copy ()" link="poppler-poppler-annot.html#poppler-annot-callout-line-copy"/> - <keyword type="function" name="poppler_annot_callout_line_free ()" link="poppler-poppler-annot.html#poppler-annot-callout-line-free"/> - <keyword type="function" name="poppler_annot_callout_line_get_type ()" link="poppler-poppler-annot.html#poppler-annot-callout-line-get-type"/> - <keyword type="function" name="poppler_annot_callout_line_new ()" link="poppler-poppler-annot.html#poppler-annot-callout-line-new"/> - <keyword type="function" name="poppler_annot_external_data_type_get_type ()" link="poppler-poppler-annot.html#poppler-annot-external-data-type-get-type"/> - <keyword type="function" name="poppler_annot_flag_get_type ()" link="poppler-poppler-annot.html#poppler-annot-flag-get-type"/> - <keyword type="function" name="poppler_annot_free_text_get_callout_line ()" link="poppler-poppler-annot.html#poppler-annot-free-text-get-callout-line"/> - <keyword type="function" name="poppler_annot_free_text_get_quadding ()" link="poppler-poppler-annot.html#poppler-annot-free-text-get-quadding"/> - <keyword type="function" name="poppler_annot_free_text_get_type ()" link="poppler-poppler-annot.html#poppler-annot-free-text-get-type"/> - <keyword type="function" name="poppler_annot_free_text_quadding_get_type ()" link="poppler-poppler-annot.html#poppler-annot-free-text-quadding-get-type"/> - <keyword type="function" name="poppler_annot_get_annot_type ()" link="poppler-poppler-annot.html#poppler-annot-get-annot-type"/> - <keyword type="function" name="poppler_annot_get_color ()" link="poppler-poppler-annot.html#poppler-annot-get-color"/> - <keyword type="function" name="poppler_annot_get_contents ()" link="poppler-poppler-annot.html#poppler-annot-get-contents"/> - <keyword type="function" name="poppler_annot_get_flags ()" link="poppler-poppler-annot.html#poppler-annot-get-flags"/> - <keyword type="function" name="poppler_annot_get_modified ()" link="poppler-poppler-annot.html#poppler-annot-get-modified"/> - <keyword type="function" name="poppler_annot_get_name ()" link="poppler-poppler-annot.html#poppler-annot-get-name"/> - <keyword type="function" name="poppler_annot_get_type ()" link="poppler-poppler-annot.html#poppler-annot-get-type"/> - <keyword type="function" name="poppler_annot_mapping_copy ()" link="poppler-poppler-annot.html#poppler-annot-mapping-copy"/> - <keyword type="function" name="poppler_annot_mapping_free ()" link="poppler-poppler-annot.html#poppler-annot-mapping-free"/> - <keyword type="function" name="poppler_annot_mapping_get_type ()" link="poppler-poppler-annot.html#poppler-annot-mapping-get-type"/> - <keyword type="function" name="poppler_annot_mapping_new ()" link="poppler-poppler-annot.html#poppler-annot-mapping-new"/> - <keyword type="function" name="poppler_annot_markup_get_date ()" link="poppler-poppler-annot.html#poppler-annot-markup-get-date"/> - <keyword type="function" name="poppler_annot_markup_get_external_data ()" link="poppler-poppler-annot.html#poppler-annot-markup-get-external-data"/> - <keyword type="function" name="poppler_annot_markup_get_label ()" link="poppler-poppler-annot.html#poppler-annot-markup-get-label"/> - <keyword type="function" name="poppler_annot_markup_get_opacity ()" link="poppler-poppler-annot.html#poppler-annot-markup-get-opacity"/> - <keyword type="function" name="poppler_annot_markup_get_popup_is_open ()" link="poppler-poppler-annot.html#poppler-annot-markup-get-popup-is-open"/> - <keyword type="function" name="poppler_annot_markup_get_reply_to ()" link="poppler-poppler-annot.html#poppler-annot-markup-get-reply-to"/> - <keyword type="function" name="poppler_annot_markup_get_subject ()" link="poppler-poppler-annot.html#poppler-annot-markup-get-subject"/> - <keyword type="function" name="poppler_annot_markup_get_type ()" link="poppler-poppler-annot.html#poppler-annot-markup-get-type"/> - <keyword type="function" name="poppler_annot_markup_reply_type_get_type ()" link="poppler-poppler-annot.html#poppler-annot-markup-reply-type-get-type"/> - <keyword type="function" name="poppler_annot_text_get_icon ()" link="poppler-poppler-annot.html#poppler-annot-text-get-icon"/> - <keyword type="function" name="poppler_annot_text_get_is_open ()" link="poppler-poppler-annot.html#poppler-annot-text-get-is-open"/> - <keyword type="function" name="poppler_annot_text_get_state ()" link="poppler-poppler-annot.html#poppler-annot-text-get-state"/> - <keyword type="function" name="poppler_annot_text_get_type ()" link="poppler-poppler-annot.html#poppler-annot-text-get-type"/> - <keyword type="function" name="poppler_annot_text_state_get_type ()" link="poppler-poppler-annot.html#poppler-annot-text-state-get-type"/> - <keyword type="function" name="poppler_annot_type_get_type ()" link="poppler-poppler-annot.html#poppler-annot-type-get-type"/> - <keyword type="function" name="poppler_layer_get_type ()" link="poppler-poppler-layer.html#poppler-layer-get-type"/> - <keyword type="function" name="poppler_layer_get_title ()" link="poppler-poppler-layer.html#poppler-layer-get-title"/> - <keyword type="function" name="poppler_layer_is_visible ()" link="poppler-poppler-layer.html#poppler-layer-is-visible"/> - <keyword type="function" name="poppler_layer_show ()" link="poppler-poppler-layer.html#poppler-layer-show"/> - <keyword type="function" name="poppler_layer_hide ()" link="poppler-poppler-layer.html#poppler-layer-hide"/> - <keyword type="function" name="poppler_layer_is_parent ()" link="poppler-poppler-layer.html#poppler-layer-is-parent"/> - <keyword type="function" name="poppler_layer_get_radio_button_group_id ()" link="poppler-poppler-layer.html#poppler-layer-get-radio-button-group-id"/> - <keyword type="macro" name="POPPLER_HAS_CAIRO" link="poppler-poppler-features.html#POPPLER-HAS-CAIRO--CAPS"/> - <keyword type="macro" name="POPPLER_WITH_GDK" link="poppler-poppler-features.html#POPPLER-WITH-GDK--CAPS"/> - <keyword type="macro" name="POPPLER_MAJOR_VERSION" link="poppler-poppler-features.html#POPPLER-MAJOR-VERSION--CAPS"/> - <keyword type="macro" name="POPPLER_MINOR_VERSION" link="poppler-poppler-features.html#POPPLER-MINOR-VERSION--CAPS"/> - <keyword type="macro" name="POPPLER_MICRO_VERSION" link="poppler-poppler-features.html#POPPLER-MICRO-VERSION--CAPS"/> - <keyword type="macro" name="POPPLER_CHECK_VERSION()" link="poppler-poppler-features.html#POPPLER-CHECK-VERSION--CAPS"/> - </functions> -</book> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/right.png b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/right.png Binary files differdeleted file mode 100644 index 92832e3a456..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/right.png +++ /dev/null diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/style.css b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/style.css deleted file mode 100644 index bb44c280939..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/style.css +++ /dev/null @@ -1,167 +0,0 @@ -.synopsis, .classsynopsis -{ - background: #eeeeee; - border: solid 1px #aaaaaa; - padding: 0.5em; -} -.programlisting -{ - background: #eeeeff; - border: solid 1px #aaaaff; - padding: 0.5em; -} -.variablelist -{ - padding: 4px; - margin-left: 3em; -} -.variablelist td:first-child -{ - vertical-align: top; -} - -/* this is needed so that the local anchors are displayed below the naviagtion */ -@media screen { - sup a.footnote - { - position: relative; - top: 0em ! important; - } - div.refnamediv a[name], div.refsect1 a[name] - { - position: relative; - top: -4.5em; - } - table.navigation#top - { - background: #ffeeee; - border: solid 1px #ffaaaa; - margin-top: 0; - margin-bottom: 0; - position: fixed; - top: 0; - left: 0; - height: 2em; - z-index: 1; - } - .navigation a - { - color: #770000; - } - .navigation a:visited - { - color: #550000; - } - td.shortcuts - { - color: #770000; - font-size: 80%; - white-space: nowrap; - } - div.refentry, div.chapter, div.reference, div.part, div.book, div.glossary, div.sect1, div.appendix, div.preface - { - position: relative; - top: 3em; - z-index: 0; - } - div.glossary, div.index - { - position: relative; - top: 2em; - z-index: 0; - } - div.refnamediv - { - margin-top: 2em; - } - body - { - padding-bottom: 20em; - } -} -@media print { - table.navigation { - visibility: collapse; - display: none; - } - div.titlepage table.navigation { - visibility: visible; - display: table; - background: #ffeeee; - border: solid 1px #ffaaaa; - margin-top: 0; - margin-bottom: 0; - top: 0; - left: 0; - height: 2em; - } -} - -.navigation .title -{ - font-size: 200%; -} - - -div.gallery-float -{ - float: left; - padding: 10px; -} -div.gallery-float img -{ - border-style: none; -} -div.gallery-spacer -{ - clear: both; -} -a -{ - text-decoration: none; -} -a:hover -{ - text-decoration: underline; - color: #FF0000; -} - -div.table table -{ - border-collapse: collapse; - border-spacing: 0px; - border-style: solid; - border-color: #777777; - border-width: 1px; -} - -div.table table td, div.table table th -{ - border-style: solid; - border-color: #777777; - border-width: 1px; - padding: 3px; - vertical-align: top; -} - -div.table table th -{ - background-color: #eeeeee; -} - -hr -{ - color: #777777; - background: #777777; - border: 0; - height: 1px; - clear: both; -} - -.footer -{ - padding-top: 3.5em; - color: #777777; - text-align: center; - font-size: 80%; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/up.png b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/up.png Binary files differdeleted file mode 100644 index 85b3e2a2755..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/html/up.png +++ /dev/null diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/poppler-docs.sgml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/poppler-docs.sgml deleted file mode 100644 index 33dc2c4710d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/poppler-docs.sgml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude"> - <bookinfo> - <title>Poppler Reference Manual</title> - </bookinfo> - - <chapter> - <title>Poppler</title> - <xi:include href="xml/poppler.xml"/> - <xi:include href="xml/poppler-document.xml"/> - <xi:include href="xml/poppler-page.xml"/> - <xi:include href="xml/poppler-action.xml"/> - <xi:include href="xml/poppler-attachment.xml"/> - <xi:include href="xml/poppler-form-field.xml"/> - <xi:include href="xml/poppler-enums.xml"/> - <xi:include href="xml/poppler-annot.xml"/> - <xi:include href="xml/poppler-layer.xml"/> - <xi:include href="xml/poppler-features.xml"/> - </chapter> -</book> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/poppler-overrides.txt b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/poppler-overrides.txt deleted file mode 100644 index e69de29bb2d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/poppler-overrides.txt +++ /dev/null diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/poppler-sections.txt b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/poppler-sections.txt deleted file mode 100644 index 070fdc9d6b8..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/poppler-sections.txt +++ /dev/null @@ -1,320 +0,0 @@ -<SECTION> -<FILE>poppler-page</FILE> -poppler_page_render -poppler_page_render_to_pixbuf -poppler_page_get_size -poppler_page_get_index -poppler_page_get_thumbnail -poppler_page_get_thumbnail_size -poppler_page_render_to_ps -poppler_page_find_text -poppler_page_get_text -poppler_page_get_duration -poppler_page_get_transition -poppler_page_get_link_mapping -poppler_page_free_link_mapping -poppler_page_get_image_mapping -poppler_page_free_image_mapping -poppler_page_get_form_field_mapping -poppler_page_free_form_field_mapping -poppler_page_get_selection_region -poppler_page_render_selection -poppler_page_render_selection_to_pixbuf -POPPLER_TYPE_RECTANGLE -PopplerRectangle -poppler_rectangle_get_type -poppler_rectangle_new -poppler_rectangle_copy -poppler_rectangle_free -POPPLER_TYPE_PAGE_TRANSITION -PopplerPageTransition -poppler_page_transition_get_type -poppler_page_transition_new -poppler_page_transition_copy -poppler_page_transition_free -POPPLER_TYPE_LINK_MAPPING -PopplerLinkMapping -poppler_link_mapping_get_type -poppler_link_mapping_new -poppler_link_mapping_copy -poppler_link_mapping_free -POPPLER_TYPE_IMAGE_MAPPING -PopplerImageMapping -poppler_image_mapping_get_type -poppler_image_mapping_new -poppler_image_mapping_copy -poppler_image_mapping_free -POPPLER_TYPE_FORM_FIELD_MAPPING -PopplerFormFieldMapping -poppler_form_field_mapping_get_type -poppler_form_field_mapping_new -poppler_form_field_mapping_copy -poppler_form_field_mapping_free -<SUBSECTION Standard> -POPPLER_PAGE -POPPLER_IS_PAGE -POPPLER_TYPE_PAGE -poppler_page_get_type -</SECTION> - -<SECTION> -<FILE>poppler-document</FILE> -PopplerPageLayout -PopplerPageMode -PopplerFontType -PopplerViewerPreferences -PopplerPermissions -poppler_document_new_from_file -poppler_document_new_from_data -poppler_document_save -poppler_document_get_n_pages -poppler_document_get_page -poppler_document_get_page_by_label -poppler_document_find_dest -poppler_document_has_attachments -poppler_document_get_attachments -poppler_document_get_form_field -poppler_index_iter_get_type -poppler_index_iter_new -poppler_index_iter_copy -poppler_index_iter_free -poppler_index_iter_get_child -poppler_index_iter_is_open -poppler_index_iter_get_action -poppler_index_iter_next -poppler_font_info_new -poppler_font_info_scan -poppler_font_info_free -poppler_fonts_iter_get_type -poppler_fonts_iter_copy -poppler_fonts_iter_free -poppler_fonts_iter_get_name -poppler_fonts_iter_get_full_name -poppler_fonts_iter_get_font_type -poppler_fonts_iter_is_embedded -poppler_fonts_iter_is_subset -poppler_fonts_iter_next -poppler_ps_file_new -poppler_ps_file_set_paper_size -poppler_ps_file_set_duplex -poppler_ps_file_free -<SUBSECTION Standard> -POPPLER_DOCUMENT -POPPLER_IS_DOCUMENT -POPPLER_TYPE_DOCUMENT -poppler_document_get_type -</SECTION> - -<SECTION> -<FILE>poppler-action</FILE> -PopplerActionType -PopplerDestType -PopplerActionAny -PopplerActionGotoDest -PopplerActionGotoRemote -PopplerActionLaunch -PopplerActionUri -PopplerActionNamed -PopplerActionMovie -PopplerDest -PopplerAction -POPPLER_TYPE_ACTION -POPPLER_ACTION -poppler_action_get_type -poppler_action_copy -poppler_action_free -POPPLER_TYPE_DEST -poppler_dest_get_type -poppler_dest_copy -poppler_dest_free -</SECTION> - -<SECTION> -<FILE>poppler-attachment</FILE> -PopplerAttachment -poppler_attachment_save -poppler_attachment_save_to_callback -PopplerAttachmentSaveFunc -<SUBSECTION Standard> -POPPLER_ATTACHMENT -POPPLER_IS_ATTACHMENT -POPPLER_TYPE_ATTACHMENT -poppler_attachment_get_type -</SECTION> -</SECTION> - -<SECTION> -<FILE>poppler-form-field</FILE> -PopplerFormField -PopplerFormButtonType -PopplerFormChoiceType -PopplerFormFieldType -PopplerFormTextType -poppler_form_field_get_id -poppler_form_field_get_field_type -poppler_form_field_is_read_only -poppler_form_field_get_font_size -poppler_form_field_button_get_button_type -poppler_form_field_button_get_state -poppler_form_field_button_set_state -poppler_form_field_choice_can_select_multiple -poppler_form_field_choice_commit_on_change -poppler_form_field_choice_do_spell_check -poppler_form_field_choice_get_choice_type -poppler_form_field_choice_get_item -poppler_form_field_choice_get_n_items -poppler_form_field_choice_get_text -poppler_form_field_choice_is_editable -poppler_form_field_choice_is_item_selected -poppler_form_field_choice_select_item -poppler_form_field_choice_set_text -poppler_form_field_choice_toggle_item -poppler_form_field_choice_unselect_all -poppler_form_field_text_do_scroll -poppler_form_field_text_do_spell_check -poppler_form_field_text_get_max_len -poppler_form_field_text_get_text -poppler_form_field_text_get_text_type -poppler_form_field_text_is_password -poppler_form_field_text_is_rich_text -poppler_form_field_text_set_text - -<SUBSECTION Standard> -POPPLER_FORM_FIELD -POPPLER_IS_FORM_FIELD -POPPLER_TYPE_FORM_FIELD -poppler_form_field_get_type -</SECTION> - -<SECTION> -<FILE>poppler-enums</FILE> -POPPLER_TYPE_ACTION_TYPE -poppler_action_type_get_type -POPPLER_TYPE_DEST_TYPE -poppler_dest_type_get_type -POPPLER_TYPE_PAGE_LAYOUT -poppler_page_layout_get_type -POPPLER_TYPE_PAGE_MODE -poppler_page_mode_get_type -POPPLER_TYPE_FONT_TYPE -poppler_font_type_get_type -POPPLER_TYPE_VIEWER_PREFERENCES -poppler_viewer_preferences_get_type -POPPLER_TYPE_PERMISSIONS -poppler_permissions_get_type -POPPLER_TYPE_SELECTION_STYLE -poppler_selection_style_get_type -POPPLER_TYPE_PAGE_TRANSITION_TYPE -poppler_page_transition_type_get_type -POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT -poppler_page_transition_alignment_get_type -POPPLER_TYPE_PAGE_TRANSITION_DIRECTION -poppler_page_transition_direction_get_type -POPPLER_TYPE_ERROR -poppler_error_get_type -POPPLER_TYPE_ORIENTATION -poppler_orientation_get_type -POPPLER_TYPE_BACKEND -poppler_backend_get_type -</SECTION> - -<SECTION> -<FILE>poppler</FILE> -poppler_error_quark -POPPLER_ERROR -PopplerError -PopplerOrientation -PopplerDocument -PopplerIndexIter -PopplerFontsIter -PopplerRectangle -PopplerSelectionStyle -PopplerPageTransitionType -PopplerPageTransitionAlignment -PopplerPageTransitionDirection -PopplerLinkMapping -PopplerPage -PopplerFontInfo -PopplerPSFile -PopplerBackend -poppler_get_backend -poppler_get_version -</SECTION> - -<SECTION> -<FILE>poppler-private</FILE> -PopplerDocument -PopplerPSFile -PopplerFontInfo -PopplerPage -</SECTION> - -<SECTION> -<FILE>stamp-poppler-enums</FILE> -</SECTION> - -<SECTION> -<FILE>poppler-annot</FILE> -PopplerAnnot -poppler_annot_callout_line_copy -poppler_annot_callout_line_free -poppler_annot_callout_line_get_type -poppler_annot_callout_line_new -poppler_annot_external_data_type_get_type -poppler_annot_flag_get_type -poppler_annot_free_text_get_callout_line -poppler_annot_free_text_get_quadding -poppler_annot_free_text_get_type -poppler_annot_free_text_quadding_get_type -poppler_annot_get_annot_type -poppler_annot_get_color -poppler_annot_get_contents -poppler_annot_get_flags -poppler_annot_get_id -poppler_annot_get_modified -poppler_annot_get_name -poppler_annot_get_type -poppler_annot_mapping_copy -poppler_annot_mapping_free -poppler_annot_mapping_get_type -poppler_annot_mapping_new -poppler_annot_markup_get_date -poppler_annot_markup_get_external_data -poppler_annot_markup_get_label -poppler_annot_markup_get_opacity -poppler_annot_markup_get_popup_is_open -poppler_annot_markup_get_reply_to -poppler_annot_markup_get_subject -poppler_annot_markup_get_type -poppler_annot_markup_reply_type_get_type -poppler_annot_movie_get_movie -poppler_annot_movie_get_title -poppler_annot_movie_get_type -poppler_annot_text_get_icon -poppler_annot_text_get_is_open -poppler_annot_text_get_state -poppler_annot_text_get_type -poppler_annot_text_state_get_type -poppler_annot_type_get_type -</SECTION> - -<SECTION> -<FILE>poppler-layer</FILE> -poppler_layer_get_type -poppler_layer_get_title -poppler_layer_is_visible -poppler_layer_show -poppler_layer_hide -poppler_layer_is_parent -poppler_layer_get_radio_button_group_id -</SECTION> - -<SECTION> -<FILE>poppler-features</FILE> -POPPLER_HAS_CAIRO -POPPLER_WITH_GDK -POPPLER_MAJOR_VERSION -POPPLER_MINOR_VERSION -POPPLER_MICRO_VERSION -POPPLER_CHECK_VERSION -</SECTION> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/poppler.types b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/poppler.types deleted file mode 100644 index 4e4bc33be4e..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/poppler.types +++ /dev/null @@ -1,6 +0,0 @@ -#include <poppler.h> - -poppler_document_get_type -poppler_page_get_type -poppler_attachment_get_type -poppler_form_field_get_type diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-action.sgml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-action.sgml deleted file mode 100644 index f484bdedfea..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-action.sgml +++ /dev/null @@ -1,207 +0,0 @@ -<!-- ##### SECTION Title ##### --> -PopplerAction - -<!-- ##### SECTION Short_Description ##### --> -Action links - -<!-- ##### SECTION Long_Description ##### --> -<para> - -</para> - -<!-- ##### SECTION See_Also ##### --> -<para> - -</para> - -<!-- ##### SECTION Stability_Level ##### --> - - -<!-- ##### ENUM PopplerActionType ##### --> -<para> - -</para> - -@POPPLER_ACTION_UNKNOWN: -@POPPLER_ACTION_NONE: -@POPPLER_ACTION_GOTO_DEST: -@POPPLER_ACTION_GOTO_REMOTE: -@POPPLER_ACTION_LAUNCH: -@POPPLER_ACTION_URI: -@POPPLER_ACTION_NAMED: -@POPPLER_ACTION_MOVIE: - -<!-- ##### ENUM PopplerDestType ##### --> -<para> - -</para> - -@POPPLER_DEST_UNKNOWN: -@POPPLER_DEST_XYZ: -@POPPLER_DEST_FIT: -@POPPLER_DEST_FITH: -@POPPLER_DEST_FITV: -@POPPLER_DEST_FITR: -@POPPLER_DEST_FITB: -@POPPLER_DEST_FITBH: -@POPPLER_DEST_FITBV: -@POPPLER_DEST_NAMED: - -<!-- ##### STRUCT PopplerActionAny ##### --> -<para> - -</para> - -@type: -@title: - -<!-- ##### STRUCT PopplerActionGotoDest ##### --> -<para> - -</para> - -@type: -@title: -@dest: - -<!-- ##### STRUCT PopplerActionGotoRemote ##### --> -<para> - -</para> - -@type: -@title: -@file_name: -@dest: - -<!-- ##### STRUCT PopplerActionLaunch ##### --> -<para> - -</para> - -@type: -@title: -@file_name: -@params: - -<!-- ##### STRUCT PopplerActionUri ##### --> -<para> - -</para> - -@type: -@title: -@uri: - -<!-- ##### STRUCT PopplerActionNamed ##### --> -<para> - -</para> - -@type: -@title: -@named_dest: - -<!-- ##### STRUCT PopplerActionMovie ##### --> -<para> - -</para> - -@type: -@title: - -<!-- ##### STRUCT PopplerDest ##### --> -<para> - -</para> - -@type: -@page_num: -@left: -@bottom: -@right: -@top: -@zoom: -@named_dest: -@change_left: -@change_top: -@change_zoom: - -<!-- ##### UNION PopplerAction ##### --> -<para> - -</para> - - -<!-- ##### MACRO POPPLER_TYPE_ACTION ##### --> -<para> - -</para> - - - -<!-- ##### MACRO POPPLER_ACTION ##### --> -<para> - -</para> - -@obj: - - -<!-- ##### FUNCTION poppler_action_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_action_copy ##### --> -<para> - -</para> - -@action: -@Returns: - - -<!-- ##### FUNCTION poppler_action_free ##### --> -<para> - -</para> - -@action: - - -<!-- ##### MACRO POPPLER_TYPE_DEST ##### --> -<para> - -</para> - - - -<!-- ##### FUNCTION poppler_dest_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_dest_copy ##### --> -<para> - -</para> - -@dest: -@Returns: - - -<!-- ##### FUNCTION poppler_dest_free ##### --> -<para> - -</para> - -@dest: - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-annot.sgml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-annot.sgml deleted file mode 100644 index e7abcf7846b..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-annot.sgml +++ /dev/null @@ -1,333 +0,0 @@ -<!-- ##### SECTION Title ##### --> -PopplerAnnot - -<!-- ##### SECTION Short_Description ##### --> -Annotations - -<!-- ##### SECTION Long_Description ##### --> -<para> - -</para> - -<!-- ##### SECTION See_Also ##### --> -<para> - -</para> - -<!-- ##### SECTION Stability_Level ##### --> - - -<!-- ##### STRUCT PopplerAnnot ##### --> -<para> - -</para> - - -<!-- ##### FUNCTION poppler_annot_callout_line_copy ##### --> -<para> - -</para> - -@callout: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_callout_line_free ##### --> -<para> - -</para> - -@callout: - - -<!-- ##### FUNCTION poppler_annot_callout_line_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_annot_callout_line_new ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_annot_external_data_type_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_annot_flag_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_annot_free_text_get_callout_line ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_free_text_get_quadding ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_free_text_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_annot_free_text_quadding_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_annot_get_annot_type ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_get_color ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_get_contents ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_get_flags ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_get_modified ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_get_name ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_annot_mapping_copy ##### --> -<para> - -</para> - -@mapping: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_mapping_free ##### --> -<para> - -</para> - -@mapping: - - -<!-- ##### FUNCTION poppler_annot_mapping_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_annot_mapping_new ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_annot_markup_get_date ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_markup_get_external_data ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_markup_get_label ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_markup_get_opacity ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_markup_get_popup_is_open ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_markup_get_reply_to ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_markup_get_subject ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_markup_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_annot_markup_reply_type_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_annot_text_get_icon ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_text_get_is_open ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_text_get_state ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - - -<!-- ##### FUNCTION poppler_annot_text_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_annot_text_state_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_annot_type_get_type ##### --> -<para> - -</para> - -@Returns: - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-attachment.sgml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-attachment.sgml deleted file mode 100644 index 81dae971b7d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-attachment.sgml +++ /dev/null @@ -1,65 +0,0 @@ -<!-- ##### SECTION Title ##### --> -PopplerAttachment - -<!-- ##### SECTION Short_Description ##### --> - - -<!-- ##### SECTION Long_Description ##### --> -<para> - -</para> - -<!-- ##### SECTION See_Also ##### --> -<para> - -</para> - -<!-- ##### SECTION Stability_Level ##### --> - - -<!-- ##### STRUCT PopplerAttachment ##### --> -<para> - -</para> - - -<!-- ##### FUNCTION poppler_attachment_save ##### --> -<para> - -</para> - -@attachment: -@filename: -@error: -@Returns: - - -<!-- ##### FUNCTION poppler_attachment_save_to_callback ##### --> -<para> - -</para> - -@attachment: -@save_func: -@user_data: -@error: -@Returns: - - -<!-- ##### USER_FUNCTION PopplerAttachmentSaveFunc ##### --> -<para> -Specifies the type of the function passed to -poppler_attachment_save_to_callback(). It is called once for each block of -bytes that is "written" by poppler_attachment_save_to_callback(). If -successful it should return %TRUE. If an error occurs it should set -@error and return %FALSE, in which case poppler_attachment_save_to_callback() -will fail with the same error. -</para> - -@buf: buffer containing bytes to be written. -@count: number of bytes in @buf. -@data: A location to return an error. -@error: user data passed to poppler_attachment_save_to_callback() -@Returns: %TRUE if successful, %FALSE (with @error set) if failed. - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-attachment.sgml.sgml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-attachment.sgml.sgml deleted file mode 100644 index 89c27889931..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-attachment.sgml.sgml +++ /dev/null @@ -1,67 +0,0 @@ -<!-- ##### SECTION Title ##### --> -poppler-attachment.sgml - -<!-- ##### SECTION Short_Description ##### --> - - -<!-- ##### SECTION Long_Description ##### --> -<para> - -</para> - - -<!-- ##### SECTION See_Also ##### --> -<para> - -</para> - - -<!-- ##### SECTION Stability_Level ##### --> - - -<!-- ##### STRUCT PopplerAttachment ##### --> -<para> - -</para> - - -<!-- ##### FUNCTION poppler_attachment_save ##### --> -<para> - -</para> - -@attachment: -@filename: -@error: -@Returns: - - -<!-- ##### FUNCTION poppler_attachment_save_to_callback ##### --> -<para> - -</para> - -@attachment: -@save_func: -@user_data: -@error: -@Returns: - - -<!-- ##### USER_FUNCTION PopplerAttachmentSaveFunc ##### --> -<para> -Specifies the type of the function passed to -poppler_attachment_save_to_callback(). It is called once for each block of -bytes that is "written" by poppler_attachment_save_to_callback(). If -successful it should return %TRUE. If an error occurs it should set -@error and return %FALSE, in which case poppler_attachment_save_to_callback() -will fail with the same error. -</para> - -@buf: buffer containing bytes to be written. -@count: number of bytes in @buf. -@data: A location to return an error. -@error: user data passed to poppler_attachment_save_to_callback() -@Returns: %TRUE if successful, %FALSE (with @error set) if failed. - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-document.sgml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-document.sgml deleted file mode 100644 index a8ef11e8bcd..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-document.sgml +++ /dev/null @@ -1,405 +0,0 @@ -<!-- ##### SECTION Title ##### --> -PopplerDocument - -<!-- ##### SECTION Short_Description ##### --> -Information about a document - -<!-- ##### SECTION Long_Description ##### --> -<para> -The #PopplerDocument is an object used to refer to a main document. -</para> - -<!-- ##### SECTION See_Also ##### --> -<para> -</para> - -<!-- ##### SECTION Stability_Level ##### --> - - -<!-- ##### ENUM PopplerPageLayout ##### --> -<para> - -</para> - -@POPPLER_PAGE_LAYOUT_UNSET: -@POPPLER_PAGE_LAYOUT_SINGLE_PAGE: -@POPPLER_PAGE_LAYOUT_ONE_COLUMN: -@POPPLER_PAGE_LAYOUT_TWO_COLUMN_LEFT: -@POPPLER_PAGE_LAYOUT_TWO_COLUMN_RIGHT: -@POPPLER_PAGE_LAYOUT_TWO_PAGE_LEFT: -@POPPLER_PAGE_LAYOUT_TWO_PAGE_RIGHT: - -<!-- ##### ENUM PopplerPageMode ##### --> -<para> - -</para> - -@POPPLER_PAGE_MODE_UNSET: -@POPPLER_PAGE_MODE_NONE: -@POPPLER_PAGE_MODE_USE_OUTLINES: -@POPPLER_PAGE_MODE_USE_THUMBS: -@POPPLER_PAGE_MODE_FULL_SCREEN: -@POPPLER_PAGE_MODE_USE_OC: -@POPPLER_PAGE_MODE_USE_ATTACHMENTS: - -<!-- ##### ENUM PopplerFontType ##### --> -<para> - -</para> - -@POPPLER_FONT_TYPE_UNKNOWN: -@POPPLER_FONT_TYPE_TYPE1: -@POPPLER_FONT_TYPE_TYPE1C: -@POPPLER_FONT_TYPE_TYPE1COT: -@POPPLER_FONT_TYPE_TYPE3: -@POPPLER_FONT_TYPE_TRUETYPE: -@POPPLER_FONT_TYPE_TRUETYPEOT: -@POPPLER_FONT_TYPE_CID_TYPE0: -@POPPLER_FONT_TYPE_CID_TYPE0C: -@POPPLER_FONT_TYPE_CID_TYPE0COT: -@POPPLER_FONT_TYPE_CID_TYPE2: -@POPPLER_FONT_TYPE_CID_TYPE2OT: - -<!-- ##### ENUM PopplerViewerPreferences ##### --> -<para> - -</para> - -@POPPLER_VIEWER_PREFERENCES_UNSET: -@POPPLER_VIEWER_PREFERENCES_HIDE_TOOLBAR: -@POPPLER_VIEWER_PREFERENCES_HIDE_MENUBAR: -@POPPLER_VIEWER_PREFERENCES_HIDE_WINDOWUI: -@POPPLER_VIEWER_PREFERENCES_FIT_WINDOW: -@POPPLER_VIEWER_PREFERENCES_CENTER_WINDOW: -@POPPLER_VIEWER_PREFERENCES_DISPLAY_DOC_TITLE: -@POPPLER_VIEWER_PREFERENCES_DIRECTION_RTL: - -<!-- ##### ENUM PopplerPermissions ##### --> -<para> - -</para> - -@POPPLER_PERMISSIONS_OK_TO_PRINT: -@POPPLER_PERMISSIONS_OK_TO_MODIFY: -@POPPLER_PERMISSIONS_OK_TO_COPY: -@POPPLER_PERMISSIONS_OK_TO_ADD_NOTES: -@POPPLER_PERMISSIONS_OK_TO_FILL_FORM: -@POPPLER_PERMISSIONS_FULL: - -<!-- ##### FUNCTION poppler_document_new_from_file ##### --> -<para> - -</para> - -@uri: -@password: -@error: -@Returns: - - -<!-- ##### FUNCTION poppler_document_new_from_data ##### --> -<para> - -</para> - -@data: -@length: -@password: -@error: -@Returns: - - -<!-- ##### FUNCTION poppler_document_save ##### --> -<para> - -</para> - -@document: -@uri: -@error: -@Returns: - - -<!-- ##### FUNCTION poppler_document_get_n_pages ##### --> -<para> - -</para> - -@document: -@Returns: - - -<!-- ##### FUNCTION poppler_document_get_page ##### --> -<para> - -</para> - -@document: -@index: -@Returns: - - -<!-- ##### FUNCTION poppler_document_get_page_by_label ##### --> -<para> - -</para> - -@document: -@label: -@Returns: - - -<!-- ##### FUNCTION poppler_document_find_dest ##### --> -<para> - -</para> - -@document: -@link_name: -@Returns: - - -<!-- ##### FUNCTION poppler_document_has_attachments ##### --> -<para> - -</para> - -@document: -@Returns: - - -<!-- ##### FUNCTION poppler_document_get_attachments ##### --> -<para> - -</para> - -@document: -@Returns: - - -<!-- ##### FUNCTION poppler_document_get_form_field ##### --> -<para> - -</para> - -@document: -@id: -@Returns: - - -<!-- ##### FUNCTION poppler_index_iter_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_index_iter_new ##### --> -<para> - -</para> - -@document: -@Returns: - - -<!-- ##### FUNCTION poppler_index_iter_copy ##### --> -<para> - -</para> - -@iter: -@Returns: - - -<!-- ##### FUNCTION poppler_index_iter_free ##### --> -<para> - -</para> - -@iter: - - -<!-- ##### FUNCTION poppler_index_iter_get_child ##### --> -<para> - -</para> - -@parent: -@Returns: - - -<!-- ##### FUNCTION poppler_index_iter_is_open ##### --> -<para> - -</para> - -@iter: -@Returns: - - -<!-- ##### FUNCTION poppler_index_iter_get_action ##### --> -<para> - -</para> - -@iter: -@Returns: - - -<!-- ##### FUNCTION poppler_index_iter_next ##### --> -<para> - -</para> - -@iter: -@Returns: - - -<!-- ##### FUNCTION poppler_font_info_new ##### --> -<para> - -</para> - -@document: -@Returns: - - -<!-- ##### FUNCTION poppler_font_info_scan ##### --> -<para> - -</para> - -@font_info: -@n_pages: -@iter: -@Returns: - - -<!-- ##### FUNCTION poppler_font_info_free ##### --> -<para> - -</para> - -@font_info: - - -<!-- ##### FUNCTION poppler_fonts_iter_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_fonts_iter_copy ##### --> -<para> - -</para> - -@iter: -@Returns: - - -<!-- ##### FUNCTION poppler_fonts_iter_free ##### --> -<para> - -</para> - -@iter: - - -<!-- ##### FUNCTION poppler_fonts_iter_get_name ##### --> -<para> - -</para> - -@iter: -@Returns: - - -<!-- ##### FUNCTION poppler_fonts_iter_get_full_name ##### --> -<para> - -</para> - -@iter: -@Returns: - - -<!-- ##### FUNCTION poppler_fonts_iter_get_font_type ##### --> -<para> - -</para> - -@iter: -@Returns: - - -<!-- ##### FUNCTION poppler_fonts_iter_is_embedded ##### --> -<para> - -</para> - -@iter: -@Returns: - - -<!-- ##### FUNCTION poppler_fonts_iter_is_subset ##### --> -<para> - -</para> - -@iter: -@Returns: - - -<!-- ##### FUNCTION poppler_fonts_iter_next ##### --> -<para> - -</para> - -@iter: -@Returns: - - -<!-- ##### FUNCTION poppler_ps_file_new ##### --> -<para> - -</para> - -@document: -@filename: -@first_page: -@n_pages: -@Returns: - - -<!-- ##### FUNCTION poppler_ps_file_set_paper_size ##### --> -<para> - -</para> - -@ps_file: -@width: -@height: - - -<!-- ##### FUNCTION poppler_ps_file_set_duplex ##### --> -<para> - -</para> - -@ps_file: -@duplex: - - -<!-- ##### FUNCTION poppler_ps_file_free ##### --> -<para> - -</para> - -@ps_file: - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-enums.sgml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-enums.sgml deleted file mode 100644 index b7841d70661..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-enums.sgml +++ /dev/null @@ -1,229 +0,0 @@ -<!-- ##### SECTION Title ##### --> -poppler-enums - -<!-- ##### SECTION Short_Description ##### --> - - -<!-- ##### SECTION Long_Description ##### --> -<para> - -</para> - -<!-- ##### SECTION See_Also ##### --> -<para> - -</para> - -<!-- ##### SECTION Stability_Level ##### --> - - -<!-- ##### MACRO POPPLER_TYPE_ACTION_TYPE ##### --> -<para> - -</para> - - - -<!-- ##### FUNCTION poppler_action_type_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### MACRO POPPLER_TYPE_DEST_TYPE ##### --> -<para> - -</para> - - - -<!-- ##### FUNCTION poppler_dest_type_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### MACRO POPPLER_TYPE_PAGE_LAYOUT ##### --> -<para> - -</para> - - - -<!-- ##### FUNCTION poppler_page_layout_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### MACRO POPPLER_TYPE_PAGE_MODE ##### --> -<para> - -</para> - - - -<!-- ##### FUNCTION poppler_page_mode_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### MACRO POPPLER_TYPE_FONT_TYPE ##### --> -<para> - -</para> - - - -<!-- ##### FUNCTION poppler_font_type_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### MACRO POPPLER_TYPE_VIEWER_PREFERENCES ##### --> -<para> - -</para> - - - -<!-- ##### FUNCTION poppler_viewer_preferences_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### MACRO POPPLER_TYPE_PERMISSIONS ##### --> -<para> - -</para> - - - -<!-- ##### FUNCTION poppler_permissions_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### MACRO POPPLER_TYPE_SELECTION_STYLE ##### --> -<para> - -</para> - - - -<!-- ##### FUNCTION poppler_selection_style_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### MACRO POPPLER_TYPE_PAGE_TRANSITION_TYPE ##### --> -<para> - -</para> - - - -<!-- ##### FUNCTION poppler_page_transition_type_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### MACRO POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT ##### --> -<para> - -</para> - - - -<!-- ##### FUNCTION poppler_page_transition_alignment_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### MACRO POPPLER_TYPE_PAGE_TRANSITION_DIRECTION ##### --> -<para> - -</para> - - - -<!-- ##### FUNCTION poppler_page_transition_direction_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### MACRO POPPLER_TYPE_ERROR ##### --> -<para> - -</para> - - - -<!-- ##### FUNCTION poppler_error_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### MACRO POPPLER_TYPE_ORIENTATION ##### --> -<para> - -</para> - - - -<!-- ##### FUNCTION poppler_orientation_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### MACRO POPPLER_TYPE_BACKEND ##### --> -<para> - -</para> - - - -<!-- ##### FUNCTION poppler_backend_get_type ##### --> -<para> - -</para> - -@Returns: - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-features.sgml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-features.sgml deleted file mode 100644 index 22f90b0638b..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-features.sgml +++ /dev/null @@ -1,80 +0,0 @@ -<!-- ##### SECTION Title ##### --> -Version and Features Information - -<!-- ##### SECTION Short_Description ##### --> -Variables and functions to check the poppler version and features - -<!-- ##### SECTION Long_Description ##### --> -<para> -Poppler provides version information, and information about features -enabled at compile time. This is primarily useful in configure checks -for builds that have a configure script, or for allowing code to optionally -depend but not require a specific poppler version. -</para> - -<!-- ##### SECTION See_Also ##### --> -<para> - -</para> - -<!-- ##### SECTION Stability_Level ##### --> - - -<!-- ##### MACRO POPPLER_HAS_CAIRO ##### --> -<para> -Defined if poppler was compiled with cairo support. -</para> - - - -<!-- ##### MACRO POPPLER_WITH_GDK ##### --> -<para> -Defined if poppler was compiled with GDK support. -</para> - - - -<!-- ##### MACRO POPPLER_MAJOR_VERSION ##### --> -<para> -The major version number of the poppler header files (e.g. in poppler version -0.1.2 this is 0.) -</para> - -Since: 0.11 - - - -<!-- ##### MACRO POPPLER_MINOR_VERSION ##### --> -<para> - -</para> -The major version number of the poppler header files (e.g. in poppler version -0.1.2 this is 1.) - -Since: 0.11 - - - -<!-- ##### MACRO POPPLER_MICRO_VERSION ##### --> -<para> -The micro version number of the poppler header files (e.g. in poppler version -0.1.2 this is 2.) -</para> - -Since: 0.11 - - - -<!-- ##### MACRO POPPLER_CHECK_VERSION ##### --> -<para> -Returns %TRUE if the version of the poppler header files is the same -as or newer than the passed-in version. -</para> - -@major: major version (e.g. 0 for version 0.1.2) -@minor: minor version (e.g. 1 for version 0.1.2) -@micro: micro version (e.g. 2 for version 0.1.2) - -Since: 0.11 - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-form-field.sgml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-form-field.sgml deleted file mode 100644 index 38d0e9d2491..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-form-field.sgml +++ /dev/null @@ -1,315 +0,0 @@ -<!-- ##### SECTION Title ##### --> -PopplerFormField - -<!-- ##### SECTION Short_Description ##### --> - - -<!-- ##### SECTION Long_Description ##### --> -<para> - -</para> - -<!-- ##### SECTION See_Also ##### --> -<para> - -</para> - -<!-- ##### SECTION Stability_Level ##### --> - - -<!-- ##### STRUCT PopplerFormField ##### --> -<para> - -</para> - - -<!-- ##### ENUM PopplerFormButtonType ##### --> -<para> - -</para> - -@POPPLER_FORM_BUTTON_PUSH: -@POPPLER_FORM_BUTTON_CHECK: -@POPPLER_FORM_BUTTON_RADIO: - -<!-- ##### ENUM PopplerFormChoiceType ##### --> -<para> - -</para> - -@POPPLER_FORM_CHOICE_COMBO: -@POPPLER_FORM_CHOICE_LIST: - -<!-- ##### ENUM PopplerFormFieldType ##### --> -<para> - -</para> - -@POPPLER_FORM_FIELD_UNKNOWN: -@POPPLER_FORM_FIELD_BUTTON: -@POPPLER_FORM_FIELD_TEXT: -@POPPLER_FORM_FIELD_CHOICE: -@POPPLER_FORM_FIELD_SIGNATURE: - -<!-- ##### ENUM PopplerFormTextType ##### --> -<para> - -</para> - -@POPPLER_FORM_TEXT_NORMAL: -@POPPLER_FORM_TEXT_MULTILINE: -@POPPLER_FORM_TEXT_FILE_SELECT: - -<!-- ##### FUNCTION poppler_form_field_get_id ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_get_field_type ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_is_read_only ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_get_font_size ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_button_get_button_type ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_button_get_state ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_button_set_state ##### --> -<para> - -</para> - -@field: -@state: - - -<!-- ##### FUNCTION poppler_form_field_choice_can_select_multiple ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_choice_commit_on_change ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_choice_do_spell_check ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_choice_get_choice_type ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_choice_get_item ##### --> -<para> - -</para> - -@field: -@index: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_choice_get_n_items ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_choice_get_text ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_choice_is_editable ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_choice_is_item_selected ##### --> -<para> - -</para> - -@field: -@index: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_choice_select_item ##### --> -<para> - -</para> - -@field: -@index: - - -<!-- ##### FUNCTION poppler_form_field_choice_set_text ##### --> -<para> - -</para> - -@field: -@text: - - -<!-- ##### FUNCTION poppler_form_field_choice_toggle_item ##### --> -<para> - -</para> - -@field: -@index: - - -<!-- ##### FUNCTION poppler_form_field_choice_unselect_all ##### --> -<para> - -</para> - -@field: - - -<!-- ##### FUNCTION poppler_form_field_text_do_scroll ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_text_do_spell_check ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_text_get_max_len ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_text_get_text ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_text_get_text_type ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_text_is_password ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_text_is_rich_text ##### --> -<para> - -</para> - -@field: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_text_set_text ##### --> -<para> - -</para> - -@field: -@text: - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-layer.sgml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-layer.sgml deleted file mode 100644 index a2fe01c94ce..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-layer.sgml +++ /dev/null @@ -1,79 +0,0 @@ -<!-- ##### SECTION Title ##### --> -PopplerLayer - -<!-- ##### SECTION Short_Description ##### --> - - -<!-- ##### SECTION Long_Description ##### --> -<para> - -</para> - -<!-- ##### SECTION See_Also ##### --> -<para> - -</para> - -<!-- ##### SECTION Stability_Level ##### --> - - -<!-- ##### FUNCTION poppler_layer_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_layer_get_title ##### --> -<para> - -</para> - -@layer: -@Returns: - - -<!-- ##### FUNCTION poppler_layer_is_visible ##### --> -<para> - -</para> - -@layer: -@Returns: - - -<!-- ##### FUNCTION poppler_layer_show ##### --> -<para> - -</para> - -@layer: - - -<!-- ##### FUNCTION poppler_layer_hide ##### --> -<para> - -</para> - -@layer: - - -<!-- ##### FUNCTION poppler_layer_is_parent ##### --> -<para> - -</para> - -@layer: -@Returns: - - -<!-- ##### FUNCTION poppler_layer_get_radio_button_group_id ##### --> -<para> - -</para> - -@layer: -@Returns: - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-page.sgml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-page.sgml deleted file mode 100644 index a86293b55c8..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-page.sgml +++ /dev/null @@ -1,470 +0,0 @@ -<!-- ##### SECTION Title ##### --> -PopplerPage - -<!-- ##### SECTION Short_Description ##### --> -Information about a page in a document - -<!-- ##### SECTION Long_Description ##### --> -<para> - -</para> - -<!-- ##### SECTION See_Also ##### --> -<para> - -</para> - -<!-- ##### SECTION Stability_Level ##### --> - - -<!-- ##### FUNCTION poppler_page_render ##### --> -<para> - -</para> - -@page: -@cairo: - - -<!-- ##### FUNCTION poppler_page_render_to_pixbuf ##### --> -<para> - -</para> - -@page: -@src_x: -@src_y: -@src_width: -@src_height: -@scale: -@rotation: -@pixbuf: - - -<!-- ##### FUNCTION poppler_page_get_size ##### --> -<para> - -</para> - -@page: -@width: -@height: - - -<!-- ##### FUNCTION poppler_page_get_index ##### --> -<para> - -</para> - -@page: -@Returns: - - -<!-- ##### FUNCTION poppler_page_get_thumbnail ##### --> -<para> - -</para> - -@page: -@Returns: - - -<!-- ##### FUNCTION poppler_page_get_thumbnail_size ##### --> -<para> - -</para> - -@page: -@width: -@height: -@Returns: - - -<!-- ##### FUNCTION poppler_page_render_to_ps ##### --> -<para> - -</para> - -@page: -@ps_file: - - -<!-- ##### FUNCTION poppler_page_find_text ##### --> -<para> - -</para> - -@page: -@text: -@Returns: - - -<!-- ##### FUNCTION poppler_page_get_text ##### --> -<para> - -</para> - -@page: -@style: -@rect: -@Returns: - - -<!-- ##### FUNCTION poppler_page_get_duration ##### --> -<para> - -</para> - -@page: -@Returns: - - -<!-- ##### FUNCTION poppler_page_get_transition ##### --> -<para> - -</para> - -@page: -@Returns: - - -<!-- ##### FUNCTION poppler_page_get_link_mapping ##### --> -<para> - -</para> - -@page: -@Returns: - - -<!-- ##### FUNCTION poppler_page_free_link_mapping ##### --> -<para> - -</para> - -@list: - - -<!-- ##### FUNCTION poppler_page_get_image_mapping ##### --> -<para> - -</para> - -@page: -@Returns: - - -<!-- ##### FUNCTION poppler_page_free_image_mapping ##### --> -<para> - -</para> - -@list: - - -<!-- ##### FUNCTION poppler_page_get_form_field_mapping ##### --> -<para> - -</para> - -@page: -@Returns: - - -<!-- ##### FUNCTION poppler_page_free_form_field_mapping ##### --> -<para> - -</para> - -@list: - - -<!-- ##### FUNCTION poppler_page_get_selection_region ##### --> -<para> - -</para> - -@page: -@scale: -@style: -@selection: -@Returns: - - -<!-- ##### FUNCTION poppler_page_render_selection ##### --> -<para> - -</para> - -@page: -@cairo: -@selection: -@old_selection: -@style: -@glyph_color: -@background_color: - - -<!-- ##### FUNCTION poppler_page_render_selection_to_pixbuf ##### --> -<para> - -</para> - -@page: -@scale: -@rotation: -@pixbuf: -@selection: -@old_selection: -@style: -@glyph_color: -@background_color: - - -<!-- ##### MACRO POPPLER_TYPE_RECTANGLE ##### --> -<para> - -</para> - - - -<!-- ##### STRUCT PopplerRectangle ##### --> -<para> - -</para> - -@x1: -@y1: -@x2: -@y2: - -<!-- ##### FUNCTION poppler_rectangle_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_rectangle_new ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_rectangle_copy ##### --> -<para> - -</para> - -@rectangle: -@Returns: - - -<!-- ##### FUNCTION poppler_rectangle_free ##### --> -<para> - -</para> - -@rectangle: - - -<!-- ##### MACRO POPPLER_TYPE_PAGE_TRANSITION ##### --> -<para> - -</para> - - - -<!-- ##### STRUCT PopplerPageTransition ##### --> -<para> - -</para> - -@type: -@alignment: -@direction: -@duration: -@angle: -@scale: -@rectangular: - -<!-- ##### FUNCTION poppler_page_transition_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_page_transition_new ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_page_transition_copy ##### --> -<para> - -</para> - -@transition: -@Returns: - - -<!-- ##### FUNCTION poppler_page_transition_free ##### --> -<para> - -</para> - -@transition: - - -<!-- ##### MACRO POPPLER_TYPE_LINK_MAPPING ##### --> -<para> - -</para> - - - -<!-- ##### STRUCT PopplerLinkMapping ##### --> -<para> - -</para> - -@area: -@action: - -<!-- ##### FUNCTION poppler_link_mapping_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_link_mapping_new ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_link_mapping_copy ##### --> -<para> - -</para> - -@mapping: -@Returns: - - -<!-- ##### FUNCTION poppler_link_mapping_free ##### --> -<para> - -</para> - -@mapping: - - -<!-- ##### MACRO POPPLER_TYPE_IMAGE_MAPPING ##### --> -<para> - -</para> - - - -<!-- ##### STRUCT PopplerImageMapping ##### --> -<para> - -</para> - -@area: -@image_id: - -<!-- ##### FUNCTION poppler_image_mapping_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_image_mapping_new ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_image_mapping_copy ##### --> -<para> - -</para> - -@mapping: -@Returns: - - -<!-- ##### FUNCTION poppler_image_mapping_free ##### --> -<para> - -</para> - -@mapping: - - -<!-- ##### MACRO POPPLER_TYPE_FORM_FIELD_MAPPING ##### --> -<para> - -</para> - - - -<!-- ##### STRUCT PopplerFormFieldMapping ##### --> -<para> - -</para> - -@area: -@field: - -<!-- ##### FUNCTION poppler_form_field_mapping_get_type ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_mapping_new ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_mapping_copy ##### --> -<para> - -</para> - -@mapping: -@Returns: - - -<!-- ##### FUNCTION poppler_form_field_mapping_free ##### --> -<para> - -</para> - -@mapping: - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-private.sgml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-private.sgml deleted file mode 100644 index fb167da7141..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-private.sgml +++ /dev/null @@ -1,145 +0,0 @@ -<!-- ##### SECTION Title ##### --> -poppler-private - -<!-- ##### SECTION Short_Description ##### --> - - -<!-- ##### SECTION Long_Description ##### --> -<para> - -</para> - -<!-- ##### SECTION See_Also ##### --> -<para> - -</para> - -<!-- ##### SECTION Stability_Level ##### --> - - -<!-- ##### STRUCT PopplerDocument ##### --> -<para> - -</para> - - -<!-- ##### ARG PopplerDocument:author ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:creation-date ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:creator ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:format ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:format-major ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:format-minor ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:keywords ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:linearized ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:metadata ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:mod-date ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:page-layout ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:page-mode ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:permissions ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:producer ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:subject ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:title ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:viewer-preferences ##### --> -<para> - -</para> - -<!-- ##### STRUCT PopplerPSFile ##### --> -<para> - -</para> - -@parent_instance: -@document: -@out: -@filename: -@first_page: -@last_page: -@paper_width: -@paper_height: -@duplex: - -<!-- ##### STRUCT PopplerFontInfo ##### --> -<para> - -</para> - -@parent_instance: -@document: -@scanner: - -<!-- ##### STRUCT PopplerPage ##### --> -<para> - -</para> - - -<!-- ##### ARG PopplerPage:label ##### --> -<para> - -</para> - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-unused.sgml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-unused.sgml deleted file mode 100644 index de01a0629c1..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler-unused.sgml +++ /dev/null @@ -1,31 +0,0 @@ -<!-- ##### FUNCTION poppler_annot_get_id ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - -<!-- ##### FUNCTION poppler_annot_movie_get_movie ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - -<!-- ##### FUNCTION poppler_annot_movie_get_title ##### --> -<para> - -</para> - -@poppler_annot: -@Returns: - -<!-- ##### FUNCTION poppler_annot_movie_get_type ##### --> -<para> - -</para> - -@Returns: - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler.sgml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler.sgml deleted file mode 100644 index b399249d08c..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/poppler.sgml +++ /dev/null @@ -1,279 +0,0 @@ -<!-- ##### SECTION Title ##### --> -poppler - -<!-- ##### SECTION Short_Description ##### --> - - -<!-- ##### SECTION Long_Description ##### --> -<para> - -</para> - -<!-- ##### SECTION See_Also ##### --> -<para> - -</para> - -<!-- ##### SECTION Stability_Level ##### --> - - -<!-- ##### FUNCTION poppler_error_quark ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### MACRO POPPLER_ERROR ##### --> -<para> - -</para> - - - -<!-- ##### ENUM PopplerError ##### --> -<para> - -</para> - -@POPPLER_ERROR_INVALID: -@POPPLER_ERROR_ENCRYPTED: -@POPPLER_ERROR_OPEN_FILE: -@POPPLER_ERROR_BAD_CATALOG: -@POPPLER_ERROR_DAMAGED: - -<!-- ##### ENUM PopplerOrientation ##### --> -<para> - -</para> - -@POPPLER_ORIENTATION_PORTRAIT: -@POPPLER_ORIENTATION_LANDSCAPE: -@POPPLER_ORIENTATION_UPSIDEDOWN: -@POPPLER_ORIENTATION_SEASCAPE: - -<!-- ##### STRUCT PopplerDocument ##### --> -<para> - -</para> - - -<!-- ##### ARG PopplerDocument:author ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:creation-date ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:creator ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:format ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:format-major ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:format-minor ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:keywords ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:linearized ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:metadata ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:mod-date ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:page-layout ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:page-mode ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:permissions ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:producer ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:subject ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:title ##### --> -<para> - -</para> - -<!-- ##### ARG PopplerDocument:viewer-preferences ##### --> -<para> - -</para> - -<!-- ##### STRUCT PopplerIndexIter ##### --> -<para> - -</para> - - -<!-- ##### STRUCT PopplerFontsIter ##### --> -<para> - -</para> - - -<!-- ##### STRUCT PopplerRectangle ##### --> -<para> - -</para> - -@x1: -@y1: -@x2: -@y2: - -<!-- ##### ENUM PopplerSelectionStyle ##### --> -<para> - -</para> - -@POPPLER_SELECTION_GLYPH: -@POPPLER_SELECTION_WORD: -@POPPLER_SELECTION_LINE: - -<!-- ##### ENUM PopplerPageTransitionType ##### --> -<para> - -</para> - -@POPPLER_PAGE_TRANSITION_REPLACE: -@POPPLER_PAGE_TRANSITION_SPLIT: -@POPPLER_PAGE_TRANSITION_BLINDS: -@POPPLER_PAGE_TRANSITION_BOX: -@POPPLER_PAGE_TRANSITION_WIPE: -@POPPLER_PAGE_TRANSITION_DISSOLVE: -@POPPLER_PAGE_TRANSITION_GLITTER: -@POPPLER_PAGE_TRANSITION_FLY: -@POPPLER_PAGE_TRANSITION_PUSH: -@POPPLER_PAGE_TRANSITION_COVER: -@POPPLER_PAGE_TRANSITION_UNCOVER: -@POPPLER_PAGE_TRANSITION_FADE: - -<!-- ##### ENUM PopplerPageTransitionAlignment ##### --> -<para> - -</para> - -@POPPLER_PAGE_TRANSITION_HORIZONTAL: -@POPPLER_PAGE_TRANSITION_VERTICAL: - -<!-- ##### ENUM PopplerPageTransitionDirection ##### --> -<para> - -</para> - -@POPPLER_PAGE_TRANSITION_INWARD: -@POPPLER_PAGE_TRANSITION_OUTWARD: - -<!-- ##### STRUCT PopplerLinkMapping ##### --> -<para> - -</para> - -@area: -@action: - -<!-- ##### STRUCT PopplerPage ##### --> -<para> - -</para> - - -<!-- ##### ARG PopplerPage:label ##### --> -<para> - -</para> - -<!-- ##### STRUCT PopplerFontInfo ##### --> -<para> - -</para> - -@parent_instance: -@document: -@scanner: - -<!-- ##### STRUCT PopplerPSFile ##### --> -<para> - -</para> - -@parent_instance: -@document: -@out: -@filename: -@first_page: -@last_page: -@paper_width: -@paper_height: -@duplex: - -<!-- ##### ENUM PopplerBackend ##### --> -<para> - -</para> - -@POPPLER_BACKEND_UNKNOWN: -@POPPLER_BACKEND_SPLASH: -@POPPLER_BACKEND_CAIRO: - -<!-- ##### FUNCTION poppler_get_backend ##### --> -<para> - -</para> - -@Returns: - - -<!-- ##### FUNCTION poppler_get_version ##### --> -<para> - -</para> - -@Returns: - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/stamp-poppler-enums.sgml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/stamp-poppler-enums.sgml deleted file mode 100644 index 44a3c108aad..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/tmpl/stamp-poppler-enums.sgml +++ /dev/null @@ -1,19 +0,0 @@ -<!-- ##### SECTION Title ##### --> -stamp-poppler-enums - -<!-- ##### SECTION Short_Description ##### --> - - -<!-- ##### SECTION Long_Description ##### --> -<para> - -</para> - -<!-- ##### SECTION See_Also ##### --> -<para> - -</para> - -<!-- ##### SECTION Stability_Level ##### --> - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/api-index-deprecated.xml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/api-index-deprecated.xml deleted file mode 100644 index 113283526a9..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/api-index-deprecated.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE indexdiv PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<indexdiv> -</indexdiv> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/api-index-full.xml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/api-index-full.xml deleted file mode 100644 index 4a0e8e54a70..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/api-index-full.xml +++ /dev/null @@ -1,266 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE indexdiv PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<indexdiv> -<indexdiv><title>P</title> -<indexentry><primaryie linkends="PopplerAction"><link linkend="PopplerAction">PopplerAction</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerActionAny"><link linkend="PopplerActionAny">PopplerActionAny</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerActionGotoDest"><link linkend="PopplerActionGotoDest">PopplerActionGotoDest</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerActionGotoRemote"><link linkend="PopplerActionGotoRemote">PopplerActionGotoRemote</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerActionLaunch"><link linkend="PopplerActionLaunch">PopplerActionLaunch</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerActionMovie"><link linkend="PopplerActionMovie">PopplerActionMovie</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerActionNamed"><link linkend="PopplerActionNamed">PopplerActionNamed</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerActionType"><link linkend="PopplerActionType">PopplerActionType</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerActionUri"><link linkend="PopplerActionUri">PopplerActionUri</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerAnnot"><link linkend="PopplerAnnot">PopplerAnnot</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerAttachment-struct"><link linkend="PopplerAttachment">PopplerAttachment</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerAttachmentSaveFunc"><link linkend="PopplerAttachmentSaveFunc">PopplerAttachmentSaveFunc</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerBackend"><link linkend="PopplerBackend">PopplerBackend</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDest"><link linkend="PopplerDest">PopplerDest</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDestType"><link linkend="PopplerDestType">PopplerDestType</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument-struct"><link linkend="PopplerDocument">PopplerDocument</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--author"><link linkend="PopplerDocument--author">PopplerDocument:author</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--creation-date"><link linkend="PopplerDocument--creation-date">PopplerDocument:creation-date</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--creator"><link linkend="PopplerDocument--creator">PopplerDocument:creator</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--format"><link linkend="PopplerDocument--format">PopplerDocument:format</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--format-major"><link linkend="PopplerDocument--format-major">PopplerDocument:format-major</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--format-minor"><link linkend="PopplerDocument--format-minor">PopplerDocument:format-minor</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--keywords"><link linkend="PopplerDocument--keywords">PopplerDocument:keywords</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--linearized"><link linkend="PopplerDocument--linearized">PopplerDocument:linearized</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--metadata"><link linkend="PopplerDocument--metadata">PopplerDocument:metadata</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--mod-date"><link linkend="PopplerDocument--mod-date">PopplerDocument:mod-date</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--page-layout"><link linkend="PopplerDocument--page-layout">PopplerDocument:page-layout</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--page-mode"><link linkend="PopplerDocument--page-mode">PopplerDocument:page-mode</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--permissions"><link linkend="PopplerDocument--permissions">PopplerDocument:permissions</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--producer"><link linkend="PopplerDocument--producer">PopplerDocument:producer</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--subject"><link linkend="PopplerDocument--subject">PopplerDocument:subject</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--title"><link linkend="PopplerDocument--title">PopplerDocument:title</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerDocument--viewer-preferences"><link linkend="PopplerDocument--viewer-preferences">PopplerDocument:viewer-preferences</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerError"><link linkend="PopplerError">PopplerError</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerFontInfo"><link linkend="PopplerFontInfo">PopplerFontInfo</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerFontsIter"><link linkend="PopplerFontsIter">PopplerFontsIter</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerFontType"><link linkend="PopplerFontType">PopplerFontType</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerFormButtonType"><link linkend="PopplerFormButtonType">PopplerFormButtonType</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerFormChoiceType"><link linkend="PopplerFormChoiceType">PopplerFormChoiceType</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerFormField-struct"><link linkend="PopplerFormField">PopplerFormField</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerFormFieldMapping"><link linkend="PopplerFormFieldMapping">PopplerFormFieldMapping</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerFormFieldType"><link linkend="PopplerFormFieldType">PopplerFormFieldType</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerFormTextType"><link linkend="PopplerFormTextType">PopplerFormTextType</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerImageMapping"><link linkend="PopplerImageMapping">PopplerImageMapping</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerIndexIter"><link linkend="PopplerIndexIter">PopplerIndexIter</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerLinkMapping"><link linkend="PopplerLinkMapping">PopplerLinkMapping</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerOrientation"><link linkend="PopplerOrientation">PopplerOrientation</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerPage-struct"><link linkend="PopplerPage">PopplerPage</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerPage--label"><link linkend="PopplerPage--label">PopplerPage:label</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerPageLayout"><link linkend="PopplerPageLayout">PopplerPageLayout</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerPageMode"><link linkend="PopplerPageMode">PopplerPageMode</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerPageTransition"><link linkend="PopplerPageTransition">PopplerPageTransition</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerPageTransitionAlignment"><link linkend="PopplerPageTransitionAlignment">PopplerPageTransitionAlignment</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerPageTransitionDirection"><link linkend="PopplerPageTransitionDirection">PopplerPageTransitionDirection</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerPageTransitionType"><link linkend="PopplerPageTransitionType">PopplerPageTransitionType</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerPermissions"><link linkend="PopplerPermissions">PopplerPermissions</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerPSFile"><link linkend="PopplerPSFile">PopplerPSFile</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerRectangle"><link linkend="PopplerRectangle">PopplerRectangle</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerSelectionStyle"><link linkend="PopplerSelectionStyle">PopplerSelectionStyle</link></primaryie></indexentry> -<indexentry><primaryie linkends="PopplerViewerPreferences"><link linkend="PopplerViewerPreferences">PopplerViewerPreferences</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-ACTION--CAPS"><link linkend="POPPLER-ACTION--CAPS">POPPLER_ACTION</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-action-copy"><link linkend="poppler-action-copy">poppler_action_copy</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-action-free"><link linkend="poppler-action-free">poppler_action_free</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-action-get-type"><link linkend="poppler-action-get-type">poppler_action_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-action-type-get-type"><link linkend="poppler-action-type-get-type">poppler_action_type_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-callout-line-copy"><link linkend="poppler-annot-callout-line-copy">poppler_annot_callout_line_copy</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-callout-line-free"><link linkend="poppler-annot-callout-line-free">poppler_annot_callout_line_free</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-callout-line-get-type"><link linkend="poppler-annot-callout-line-get-type">poppler_annot_callout_line_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-callout-line-new"><link linkend="poppler-annot-callout-line-new">poppler_annot_callout_line_new</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-external-data-type-get-type"><link linkend="poppler-annot-external-data-type-get-type">poppler_annot_external_data_type_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-flag-get-type"><link linkend="poppler-annot-flag-get-type">poppler_annot_flag_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-free-text-get-callout-line"><link linkend="poppler-annot-free-text-get-callout-line">poppler_annot_free_text_get_callout_line</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-free-text-get-quadding"><link linkend="poppler-annot-free-text-get-quadding">poppler_annot_free_text_get_quadding</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-free-text-get-type"><link linkend="poppler-annot-free-text-get-type">poppler_annot_free_text_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-free-text-quadding-get-type"><link linkend="poppler-annot-free-text-quadding-get-type">poppler_annot_free_text_quadding_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-get-annot-type"><link linkend="poppler-annot-get-annot-type">poppler_annot_get_annot_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-get-color"><link linkend="poppler-annot-get-color">poppler_annot_get_color</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-get-contents"><link linkend="poppler-annot-get-contents">poppler_annot_get_contents</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-get-flags"><link linkend="poppler-annot-get-flags">poppler_annot_get_flags</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-get-modified"><link linkend="poppler-annot-get-modified">poppler_annot_get_modified</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-get-name"><link linkend="poppler-annot-get-name">poppler_annot_get_name</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-get-type"><link linkend="poppler-annot-get-type">poppler_annot_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-mapping-copy"><link linkend="poppler-annot-mapping-copy">poppler_annot_mapping_copy</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-mapping-free"><link linkend="poppler-annot-mapping-free">poppler_annot_mapping_free</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-mapping-get-type"><link linkend="poppler-annot-mapping-get-type">poppler_annot_mapping_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-mapping-new"><link linkend="poppler-annot-mapping-new">poppler_annot_mapping_new</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-markup-get-date"><link linkend="poppler-annot-markup-get-date">poppler_annot_markup_get_date</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-markup-get-external-data"><link linkend="poppler-annot-markup-get-external-data">poppler_annot_markup_get_external_data</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-markup-get-label"><link linkend="poppler-annot-markup-get-label">poppler_annot_markup_get_label</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-markup-get-opacity"><link linkend="poppler-annot-markup-get-opacity">poppler_annot_markup_get_opacity</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-markup-get-popup-is-open"><link linkend="poppler-annot-markup-get-popup-is-open">poppler_annot_markup_get_popup_is_open</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-markup-get-reply-to"><link linkend="poppler-annot-markup-get-reply-to">poppler_annot_markup_get_reply_to</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-markup-get-subject"><link linkend="poppler-annot-markup-get-subject">poppler_annot_markup_get_subject</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-markup-get-type"><link linkend="poppler-annot-markup-get-type">poppler_annot_markup_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-markup-reply-type-get-type"><link linkend="poppler-annot-markup-reply-type-get-type">poppler_annot_markup_reply_type_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-text-get-icon"><link linkend="poppler-annot-text-get-icon">poppler_annot_text_get_icon</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-text-get-is-open"><link linkend="poppler-annot-text-get-is-open">poppler_annot_text_get_is_open</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-text-get-state"><link linkend="poppler-annot-text-get-state">poppler_annot_text_get_state</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-text-get-type"><link linkend="poppler-annot-text-get-type">poppler_annot_text_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-text-state-get-type"><link linkend="poppler-annot-text-state-get-type">poppler_annot_text_state_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-annot-type-get-type"><link linkend="poppler-annot-type-get-type">poppler_annot_type_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-attachment-save"><link linkend="poppler-attachment-save">poppler_attachment_save</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-attachment-save-to-callback"><link linkend="poppler-attachment-save-to-callback">poppler_attachment_save_to_callback</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-backend-get-type"><link linkend="poppler-backend-get-type">poppler_backend_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-CHECK-VERSION--CAPS"><link linkend="POPPLER-CHECK-VERSION--CAPS">POPPLER_CHECK_VERSION</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-dest-copy"><link linkend="poppler-dest-copy">poppler_dest_copy</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-dest-free"><link linkend="poppler-dest-free">poppler_dest_free</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-dest-get-type"><link linkend="poppler-dest-get-type">poppler_dest_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-dest-type-get-type"><link linkend="poppler-dest-type-get-type">poppler_dest_type_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-document-find-dest"><link linkend="poppler-document-find-dest">poppler_document_find_dest</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-document-get-attachments"><link linkend="poppler-document-get-attachments">poppler_document_get_attachments</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-document-get-form-field"><link linkend="poppler-document-get-form-field">poppler_document_get_form_field</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-document-get-n-pages"><link linkend="poppler-document-get-n-pages">poppler_document_get_n_pages</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-document-get-page"><link linkend="poppler-document-get-page">poppler_document_get_page</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-document-get-page-by-label"><link linkend="poppler-document-get-page-by-label">poppler_document_get_page_by_label</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-document-has-attachments"><link linkend="poppler-document-has-attachments">poppler_document_has_attachments</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-document-new-from-data"><link linkend="poppler-document-new-from-data">poppler_document_new_from_data</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-document-new-from-file"><link linkend="poppler-document-new-from-file">poppler_document_new_from_file</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-document-save"><link linkend="poppler-document-save">poppler_document_save</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-ERROR--CAPS"><link linkend="POPPLER-ERROR--CAPS">POPPLER_ERROR</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-error-get-type"><link linkend="poppler-error-get-type">poppler_error_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-error-quark"><link linkend="poppler-error-quark">poppler_error_quark</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-fonts-iter-copy"><link linkend="poppler-fonts-iter-copy">poppler_fonts_iter_copy</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-fonts-iter-free"><link linkend="poppler-fonts-iter-free">poppler_fonts_iter_free</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-fonts-iter-get-font-type"><link linkend="poppler-fonts-iter-get-font-type">poppler_fonts_iter_get_font_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-fonts-iter-get-full-name"><link linkend="poppler-fonts-iter-get-full-name">poppler_fonts_iter_get_full_name</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-fonts-iter-get-name"><link linkend="poppler-fonts-iter-get-name">poppler_fonts_iter_get_name</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-fonts-iter-get-type"><link linkend="poppler-fonts-iter-get-type">poppler_fonts_iter_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-fonts-iter-is-embedded"><link linkend="poppler-fonts-iter-is-embedded">poppler_fonts_iter_is_embedded</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-fonts-iter-is-subset"><link linkend="poppler-fonts-iter-is-subset">poppler_fonts_iter_is_subset</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-fonts-iter-next"><link linkend="poppler-fonts-iter-next">poppler_fonts_iter_next</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-font-info-free"><link linkend="poppler-font-info-free">poppler_font_info_free</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-font-info-new"><link linkend="poppler-font-info-new">poppler_font_info_new</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-font-info-scan"><link linkend="poppler-font-info-scan">poppler_font_info_scan</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-font-type-get-type"><link linkend="poppler-font-type-get-type">poppler_font_type_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-button-get-button-type"><link linkend="poppler-form-field-button-get-button-type">poppler_form_field_button_get_button_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-button-get-state"><link linkend="poppler-form-field-button-get-state">poppler_form_field_button_get_state</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-button-set-state"><link linkend="poppler-form-field-button-set-state">poppler_form_field_button_set_state</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-choice-can-select-multiple"><link linkend="poppler-form-field-choice-can-select-multiple">poppler_form_field_choice_can_select_multiple</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-choice-commit-on-change"><link linkend="poppler-form-field-choice-commit-on-change">poppler_form_field_choice_commit_on_change</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-choice-do-spell-check"><link linkend="poppler-form-field-choice-do-spell-check">poppler_form_field_choice_do_spell_check</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-choice-get-choice-type"><link linkend="poppler-form-field-choice-get-choice-type">poppler_form_field_choice_get_choice_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-choice-get-item"><link linkend="poppler-form-field-choice-get-item">poppler_form_field_choice_get_item</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-choice-get-n-items"><link linkend="poppler-form-field-choice-get-n-items">poppler_form_field_choice_get_n_items</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-choice-get-text"><link linkend="poppler-form-field-choice-get-text">poppler_form_field_choice_get_text</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-choice-is-editable"><link linkend="poppler-form-field-choice-is-editable">poppler_form_field_choice_is_editable</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-choice-is-item-selected"><link linkend="poppler-form-field-choice-is-item-selected">poppler_form_field_choice_is_item_selected</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-choice-select-item"><link linkend="poppler-form-field-choice-select-item">poppler_form_field_choice_select_item</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-choice-set-text"><link linkend="poppler-form-field-choice-set-text">poppler_form_field_choice_set_text</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-choice-toggle-item"><link linkend="poppler-form-field-choice-toggle-item">poppler_form_field_choice_toggle_item</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-choice-unselect-all"><link linkend="poppler-form-field-choice-unselect-all">poppler_form_field_choice_unselect_all</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-get-field-type"><link linkend="poppler-form-field-get-field-type">poppler_form_field_get_field_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-get-font-size"><link linkend="poppler-form-field-get-font-size">poppler_form_field_get_font_size</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-get-id"><link linkend="poppler-form-field-get-id">poppler_form_field_get_id</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-is-read-only"><link linkend="poppler-form-field-is-read-only">poppler_form_field_is_read_only</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-mapping-copy"><link linkend="poppler-form-field-mapping-copy">poppler_form_field_mapping_copy</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-mapping-free"><link linkend="poppler-form-field-mapping-free">poppler_form_field_mapping_free</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-mapping-get-type"><link linkend="poppler-form-field-mapping-get-type">poppler_form_field_mapping_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-mapping-new"><link linkend="poppler-form-field-mapping-new">poppler_form_field_mapping_new</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-text-do-scroll"><link linkend="poppler-form-field-text-do-scroll">poppler_form_field_text_do_scroll</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-text-do-spell-check"><link linkend="poppler-form-field-text-do-spell-check">poppler_form_field_text_do_spell_check</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-text-get-max-len"><link linkend="poppler-form-field-text-get-max-len">poppler_form_field_text_get_max_len</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-text-get-text"><link linkend="poppler-form-field-text-get-text">poppler_form_field_text_get_text</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-text-get-text-type"><link linkend="poppler-form-field-text-get-text-type">poppler_form_field_text_get_text_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-text-is-password"><link linkend="poppler-form-field-text-is-password">poppler_form_field_text_is_password</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-text-is-rich-text"><link linkend="poppler-form-field-text-is-rich-text">poppler_form_field_text_is_rich_text</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-form-field-text-set-text"><link linkend="poppler-form-field-text-set-text">poppler_form_field_text_set_text</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-get-backend"><link linkend="poppler-get-backend">poppler_get_backend</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-get-version"><link linkend="poppler-get-version">poppler_get_version</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-HAS-CAIRO--CAPS"><link linkend="POPPLER-HAS-CAIRO--CAPS">POPPLER_HAS_CAIRO</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-image-mapping-copy"><link linkend="poppler-image-mapping-copy">poppler_image_mapping_copy</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-image-mapping-free"><link linkend="poppler-image-mapping-free">poppler_image_mapping_free</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-image-mapping-get-type"><link linkend="poppler-image-mapping-get-type">poppler_image_mapping_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-image-mapping-new"><link linkend="poppler-image-mapping-new">poppler_image_mapping_new</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-index-iter-copy"><link linkend="poppler-index-iter-copy">poppler_index_iter_copy</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-index-iter-free"><link linkend="poppler-index-iter-free">poppler_index_iter_free</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-index-iter-get-action"><link linkend="poppler-index-iter-get-action">poppler_index_iter_get_action</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-index-iter-get-child"><link linkend="poppler-index-iter-get-child">poppler_index_iter_get_child</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-index-iter-get-type"><link linkend="poppler-index-iter-get-type">poppler_index_iter_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-index-iter-is-open"><link linkend="poppler-index-iter-is-open">poppler_index_iter_is_open</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-index-iter-new"><link linkend="poppler-index-iter-new">poppler_index_iter_new</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-index-iter-next"><link linkend="poppler-index-iter-next">poppler_index_iter_next</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-layer-get-radio-button-group-id"><link linkend="poppler-layer-get-radio-button-group-id">poppler_layer_get_radio_button_group_id</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-layer-get-title"><link linkend="poppler-layer-get-title">poppler_layer_get_title</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-layer-get-type"><link linkend="poppler-layer-get-type">poppler_layer_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-layer-hide"><link linkend="poppler-layer-hide">poppler_layer_hide</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-layer-is-parent"><link linkend="poppler-layer-is-parent">poppler_layer_is_parent</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-layer-is-visible"><link linkend="poppler-layer-is-visible">poppler_layer_is_visible</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-layer-show"><link linkend="poppler-layer-show">poppler_layer_show</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-link-mapping-copy"><link linkend="poppler-link-mapping-copy">poppler_link_mapping_copy</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-link-mapping-free"><link linkend="poppler-link-mapping-free">poppler_link_mapping_free</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-link-mapping-get-type"><link linkend="poppler-link-mapping-get-type">poppler_link_mapping_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-link-mapping-new"><link linkend="poppler-link-mapping-new">poppler_link_mapping_new</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-MAJOR-VERSION--CAPS"><link linkend="POPPLER-MAJOR-VERSION--CAPS">POPPLER_MAJOR_VERSION</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-MICRO-VERSION--CAPS"><link linkend="POPPLER-MICRO-VERSION--CAPS">POPPLER_MICRO_VERSION</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-MINOR-VERSION--CAPS"><link linkend="POPPLER-MINOR-VERSION--CAPS">POPPLER_MINOR_VERSION</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-orientation-get-type"><link linkend="poppler-orientation-get-type">poppler_orientation_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-find-text"><link linkend="poppler-page-find-text">poppler_page_find_text</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-free-form-field-mapping"><link linkend="poppler-page-free-form-field-mapping">poppler_page_free_form_field_mapping</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-free-image-mapping"><link linkend="poppler-page-free-image-mapping">poppler_page_free_image_mapping</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-free-link-mapping"><link linkend="poppler-page-free-link-mapping">poppler_page_free_link_mapping</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-get-duration"><link linkend="poppler-page-get-duration">poppler_page_get_duration</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-get-form-field-mapping"><link linkend="poppler-page-get-form-field-mapping">poppler_page_get_form_field_mapping</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-get-image-mapping"><link linkend="poppler-page-get-image-mapping">poppler_page_get_image_mapping</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-get-index"><link linkend="poppler-page-get-index">poppler_page_get_index</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-get-link-mapping"><link linkend="poppler-page-get-link-mapping">poppler_page_get_link_mapping</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-get-selection-region"><link linkend="poppler-page-get-selection-region">poppler_page_get_selection_region</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-get-size"><link linkend="poppler-page-get-size">poppler_page_get_size</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-get-text"><link linkend="poppler-page-get-text">poppler_page_get_text</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-get-thumbnail"><link linkend="poppler-page-get-thumbnail">poppler_page_get_thumbnail</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-get-thumbnail-size"><link linkend="poppler-page-get-thumbnail-size">poppler_page_get_thumbnail_size</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-get-transition"><link linkend="poppler-page-get-transition">poppler_page_get_transition</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-layout-get-type"><link linkend="poppler-page-layout-get-type">poppler_page_layout_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-mode-get-type"><link linkend="poppler-page-mode-get-type">poppler_page_mode_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-render"><link linkend="poppler-page-render">poppler_page_render</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-render-selection"><link linkend="poppler-page-render-selection">poppler_page_render_selection</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-render-selection-to-pixbuf"><link linkend="poppler-page-render-selection-to-pixbuf">poppler_page_render_selection_to_pixbuf</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-render-to-pixbuf"><link linkend="poppler-page-render-to-pixbuf">poppler_page_render_to_pixbuf</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-render-to-ps"><link linkend="poppler-page-render-to-ps">poppler_page_render_to_ps</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-transition-alignment-get-type"><link linkend="poppler-page-transition-alignment-get-type">poppler_page_transition_alignment_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-transition-copy"><link linkend="poppler-page-transition-copy">poppler_page_transition_copy</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-transition-direction-get-type"><link linkend="poppler-page-transition-direction-get-type">poppler_page_transition_direction_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-transition-free"><link linkend="poppler-page-transition-free">poppler_page_transition_free</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-transition-get-type"><link linkend="poppler-page-transition-get-type">poppler_page_transition_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-transition-new"><link linkend="poppler-page-transition-new">poppler_page_transition_new</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-page-transition-type-get-type"><link linkend="poppler-page-transition-type-get-type">poppler_page_transition_type_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-permissions-get-type"><link linkend="poppler-permissions-get-type">poppler_permissions_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-ps-file-free"><link linkend="poppler-ps-file-free">poppler_ps_file_free</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-ps-file-new"><link linkend="poppler-ps-file-new">poppler_ps_file_new</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-ps-file-set-duplex"><link linkend="poppler-ps-file-set-duplex">poppler_ps_file_set_duplex</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-ps-file-set-paper-size"><link linkend="poppler-ps-file-set-paper-size">poppler_ps_file_set_paper_size</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-rectangle-copy"><link linkend="poppler-rectangle-copy">poppler_rectangle_copy</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-rectangle-free"><link linkend="poppler-rectangle-free">poppler_rectangle_free</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-rectangle-get-type"><link linkend="poppler-rectangle-get-type">poppler_rectangle_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-rectangle-new"><link linkend="poppler-rectangle-new">poppler_rectangle_new</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-selection-style-get-type"><link linkend="poppler-selection-style-get-type">poppler_selection_style_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-ACTION--CAPS"><link linkend="POPPLER-TYPE-ACTION--CAPS">POPPLER_TYPE_ACTION</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-ACTION-TYPE--CAPS"><link linkend="POPPLER-TYPE-ACTION-TYPE--CAPS">POPPLER_TYPE_ACTION_TYPE</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-BACKEND--CAPS"><link linkend="POPPLER-TYPE-BACKEND--CAPS">POPPLER_TYPE_BACKEND</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-DEST--CAPS"><link linkend="POPPLER-TYPE-DEST--CAPS">POPPLER_TYPE_DEST</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-DEST-TYPE--CAPS"><link linkend="POPPLER-TYPE-DEST-TYPE--CAPS">POPPLER_TYPE_DEST_TYPE</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-ERROR--CAPS"><link linkend="POPPLER-TYPE-ERROR--CAPS">POPPLER_TYPE_ERROR</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-FONT-TYPE--CAPS"><link linkend="POPPLER-TYPE-FONT-TYPE--CAPS">POPPLER_TYPE_FONT_TYPE</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-FORM-FIELD-MAPPING--CAPS"><link linkend="POPPLER-TYPE-FORM-FIELD-MAPPING--CAPS">POPPLER_TYPE_FORM_FIELD_MAPPING</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-IMAGE-MAPPING--CAPS"><link linkend="POPPLER-TYPE-IMAGE-MAPPING--CAPS">POPPLER_TYPE_IMAGE_MAPPING</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-LINK-MAPPING--CAPS"><link linkend="POPPLER-TYPE-LINK-MAPPING--CAPS">POPPLER_TYPE_LINK_MAPPING</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-ORIENTATION--CAPS"><link linkend="POPPLER-TYPE-ORIENTATION--CAPS">POPPLER_TYPE_ORIENTATION</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-PAGE-LAYOUT--CAPS"><link linkend="POPPLER-TYPE-PAGE-LAYOUT--CAPS">POPPLER_TYPE_PAGE_LAYOUT</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-PAGE-MODE--CAPS"><link linkend="POPPLER-TYPE-PAGE-MODE--CAPS">POPPLER_TYPE_PAGE_MODE</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-PAGE-TRANSITION--CAPS"><link linkend="POPPLER-TYPE-PAGE-TRANSITION--CAPS">POPPLER_TYPE_PAGE_TRANSITION</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-PAGE-TRANSITION-ALIGNMENT--CAPS"><link linkend="POPPLER-TYPE-PAGE-TRANSITION-ALIGNMENT--CAPS">POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-PAGE-TRANSITION-DIRECTION--CAPS"><link linkend="POPPLER-TYPE-PAGE-TRANSITION-DIRECTION--CAPS">POPPLER_TYPE_PAGE_TRANSITION_DIRECTION</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-PAGE-TRANSITION-TYPE--CAPS"><link linkend="POPPLER-TYPE-PAGE-TRANSITION-TYPE--CAPS">POPPLER_TYPE_PAGE_TRANSITION_TYPE</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-PERMISSIONS--CAPS"><link linkend="POPPLER-TYPE-PERMISSIONS--CAPS">POPPLER_TYPE_PERMISSIONS</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-RECTANGLE--CAPS"><link linkend="POPPLER-TYPE-RECTANGLE--CAPS">POPPLER_TYPE_RECTANGLE</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-SELECTION-STYLE--CAPS"><link linkend="POPPLER-TYPE-SELECTION-STYLE--CAPS">POPPLER_TYPE_SELECTION_STYLE</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-TYPE-VIEWER-PREFERENCES--CAPS"><link linkend="POPPLER-TYPE-VIEWER-PREFERENCES--CAPS">POPPLER_TYPE_VIEWER_PREFERENCES</link></primaryie></indexentry> -<indexentry><primaryie linkends="poppler-viewer-preferences-get-type"><link linkend="poppler-viewer-preferences-get-type">poppler_viewer_preferences_get_type</link></primaryie></indexentry> -<indexentry><primaryie linkends="POPPLER-WITH-GDK--CAPS"><link linkend="POPPLER-WITH-GDK--CAPS">POPPLER_WITH_GDK</link></primaryie></indexentry> -</indexdiv> -</indexdiv> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-action.xml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-action.xml deleted file mode 100644 index c4dfb6aa8da..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-action.xml +++ /dev/null @@ -1,295 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<refentry id="poppler-poppler-action"> -<refmeta> -<refentrytitle role="top_of_page" id="poppler-poppler-action.top_of_page">PopplerAction</refentrytitle> -<manvolnum>3</manvolnum> -<refmiscinfo>POPPLER Library</refmiscinfo> -</refmeta> - -<refnamediv> -<refname>PopplerAction</refname> -<refpurpose>Action links</refpurpose> -</refnamediv> - -<refsynopsisdiv id="poppler-poppler-action.synopsis" role="synopsis"> -<title role="synopsis.title">Synopsis</title> - -<synopsis> -enum <link linkend="PopplerActionType">PopplerActionType</link>; -enum <link linkend="PopplerDestType">PopplerDestType</link>; - <link linkend="PopplerActionAny">PopplerActionAny</link>; - <link linkend="PopplerActionGotoDest">PopplerActionGotoDest</link>; - <link linkend="PopplerActionGotoRemote">PopplerActionGotoRemote</link>; - <link linkend="PopplerActionLaunch">PopplerActionLaunch</link>; - <link linkend="PopplerActionUri">PopplerActionUri</link>; - <link linkend="PopplerActionNamed">PopplerActionNamed</link>; - <link linkend="PopplerActionMovie">PopplerActionMovie</link>; - <link linkend="PopplerDest">PopplerDest</link>; -union <link linkend="PopplerAction">PopplerAction</link>; -#define <link linkend="POPPLER-TYPE-ACTION--CAPS">POPPLER_TYPE_ACTION</link> -#define <link linkend="POPPLER-ACTION--CAPS">POPPLER_ACTION</link> (obj) -<link linkend="GType">GType</link> <link linkend="poppler-action-get-type">poppler_action_get_type</link> (void); -<link linkend="PopplerAction">PopplerAction</link> * <link linkend="poppler-action-copy">poppler_action_copy</link> (<link linkend="PopplerAction">PopplerAction</link> *action); -<link linkend="void">void</link> <link linkend="poppler-action-free">poppler_action_free</link> (<link linkend="PopplerAction">PopplerAction</link> *action); -#define <link linkend="POPPLER-TYPE-DEST--CAPS">POPPLER_TYPE_DEST</link> -<link linkend="GType">GType</link> <link linkend="poppler-dest-get-type">poppler_dest_get_type</link> (void); -<link linkend="PopplerDest">PopplerDest</link> * <link linkend="poppler-dest-copy">poppler_dest_copy</link> (<link linkend="PopplerDest">PopplerDest</link> *dest); -<link linkend="void">void</link> <link linkend="poppler-dest-free">poppler_dest_free</link> (<link linkend="PopplerDest">PopplerDest</link> *dest); -</synopsis> -</refsynopsisdiv> - - - - - - - - - -<refsect1 id="poppler-poppler-action.description" role="desc"> -<title role="desc.title">Description</title> -<para> -</para> -</refsect1> - -<refsect1 id="poppler-poppler-action.details" role="details"> -<title role="details.title">Details</title> -<refsect2 id="PopplerActionType" role="enum"> -<title>enum PopplerActionType</title> -<indexterm zone="PopplerActionType"><primary sortas="PopplerActionType">PopplerActionType</primary></indexterm><programlisting>typedef enum -{ - POPPLER_ACTION_UNKNOWN, /* unknown action */ - POPPLER_ACTION_NONE, /* no action specified */ - POPPLER_ACTION_GOTO_DEST, /* go to destination */ - POPPLER_ACTION_GOTO_REMOTE, /* go to destination in new file */ - POPPLER_ACTION_LAUNCH, /* launch app (or open document) */ - POPPLER_ACTION_URI, /* URI */ - POPPLER_ACTION_NAMED, /* named action*/ - POPPLER_ACTION_MOVIE /* movie action */ -} PopplerActionType; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerDestType" role="enum"> -<title>enum PopplerDestType</title> -<indexterm zone="PopplerDestType"><primary sortas="PopplerDestType">PopplerDestType</primary></indexterm><programlisting>typedef enum -{ - POPPLER_DEST_UNKNOWN, - POPPLER_DEST_XYZ, - POPPLER_DEST_FIT, - POPPLER_DEST_FITH, - POPPLER_DEST_FITV, - POPPLER_DEST_FITR, - POPPLER_DEST_FITB, - POPPLER_DEST_FITBH, - POPPLER_DEST_FITBV, - POPPLER_DEST_NAMED -} PopplerDestType; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerActionAny" role="struct"> -<title>PopplerActionAny</title> -<indexterm zone="PopplerActionAny"><primary sortas="PopplerActionAny">PopplerActionAny</primary></indexterm><programlisting>typedef struct { - PopplerActionType type; - gchar *title; -} PopplerActionAny; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerActionGotoDest" role="struct"> -<title>PopplerActionGotoDest</title> -<indexterm zone="PopplerActionGotoDest"><primary sortas="PopplerActionGotoDest">PopplerActionGotoDest</primary></indexterm><programlisting>typedef struct { - PopplerActionType type; - gchar *title; - - PopplerDest *dest; -} PopplerActionGotoDest; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerActionGotoRemote" role="struct"> -<title>PopplerActionGotoRemote</title> -<indexterm zone="PopplerActionGotoRemote"><primary sortas="PopplerActionGotoRemote">PopplerActionGotoRemote</primary></indexterm><programlisting>typedef struct { - PopplerActionType type; - gchar *title; - - gchar *file_name; - PopplerDest *dest; -} PopplerActionGotoRemote; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerActionLaunch" role="struct"> -<title>PopplerActionLaunch</title> -<indexterm zone="PopplerActionLaunch"><primary sortas="PopplerActionLaunch">PopplerActionLaunch</primary></indexterm><programlisting>typedef struct { - PopplerActionType type; - gchar *title; - - gchar *file_name; - gchar *params; -} PopplerActionLaunch; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerActionUri" role="struct"> -<title>PopplerActionUri</title> -<indexterm zone="PopplerActionUri"><primary sortas="PopplerActionUri">PopplerActionUri</primary></indexterm><programlisting>typedef struct { - PopplerActionType type; - gchar *title; - - char *uri; -} PopplerActionUri; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerActionNamed" role="struct"> -<title>PopplerActionNamed</title> -<indexterm zone="PopplerActionNamed"><primary sortas="PopplerActionNamed">PopplerActionNamed</primary></indexterm><programlisting>typedef struct { - PopplerActionType type; - gchar *title; - - gchar *named_dest; -} PopplerActionNamed; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerActionMovie" role="struct"> -<title>PopplerActionMovie</title> -<indexterm zone="PopplerActionMovie"><primary sortas="PopplerActionMovie">PopplerActionMovie</primary></indexterm><programlisting>typedef struct { - PopplerActionType type; - gchar *title; -} PopplerActionMovie; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerDest" role="struct"> -<title>PopplerDest</title> -<indexterm zone="PopplerDest"><primary sortas="PopplerDest">PopplerDest</primary></indexterm><programlisting>typedef struct { - PopplerDestType type; - - int page_num; - double left; - double bottom; - double right; - double top; - double zoom; - gchar *named_dest; - guint change_left : 1; - guint change_top : 1; - guint change_zoom : 1; -} PopplerDest; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerAction" role="union"> -<title>union PopplerAction</title> -<indexterm zone="PopplerAction"><primary sortas="PopplerAction">PopplerAction</primary></indexterm><programlisting>union PopplerAction -{ - PopplerActionType type; - PopplerActionAny any; - PopplerActionGotoDest goto_dest; - PopplerActionGotoRemote goto_remote; - PopplerActionLaunch launch; - PopplerActionUri uri; - PopplerActionNamed named; - PopplerActionMovie movie; -}; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="POPPLER-TYPE-ACTION--CAPS" role="macro"> -<title>POPPLER_TYPE_ACTION</title> -<indexterm zone="POPPLER-TYPE-ACTION--CAPS"><primary sortas="POPPLER_TYPE_ACTION">POPPLER_TYPE_ACTION</primary></indexterm><programlisting>#define POPPLER_TYPE_ACTION (poppler_action_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="POPPLER-ACTION--CAPS" role="macro"> -<title>POPPLER_ACTION()</title> -<indexterm zone="POPPLER-ACTION--CAPS"><primary sortas="POPPLER_ACTION">POPPLER_ACTION</primary></indexterm><programlisting>#define POPPLER_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_ACTION, PopplerAction)) -</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>obj</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-action-get-type" role="function"> -<title>poppler_action_get_type ()</title> -<indexterm zone="poppler-action-get-type"><primary sortas="poppler_action_get_type">poppler_action_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_action_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-action-copy" role="function"> -<title>poppler_action_copy ()</title> -<indexterm zone="poppler-action-copy"><primary sortas="poppler_action_copy">poppler_action_copy</primary></indexterm><programlisting><link linkend="PopplerAction">PopplerAction</link> * poppler_action_copy (<link linkend="PopplerAction">PopplerAction</link> *action);</programlisting> -<para> -Copies <parameter>action</parameter>, creating an identical <link linkend="PopplerAction"><type>PopplerAction</type></link>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>action</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAction"><type>PopplerAction</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new action identical to <parameter>action</parameter> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-action-free" role="function"> -<title>poppler_action_free ()</title> -<indexterm zone="poppler-action-free"><primary sortas="poppler_action_free">poppler_action_free</primary></indexterm><programlisting><link linkend="void">void</link> poppler_action_free (<link linkend="PopplerAction">PopplerAction</link> *action);</programlisting> -<para> -Frees <parameter>action</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>action</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAction"><type>PopplerAction</type></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-DEST--CAPS" role="macro"> -<title>POPPLER_TYPE_DEST</title> -<indexterm zone="POPPLER-TYPE-DEST--CAPS"><primary sortas="POPPLER_TYPE_DEST">POPPLER_TYPE_DEST</primary></indexterm><programlisting>#define POPPLER_TYPE_DEST (poppler_dest_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-dest-get-type" role="function"> -<title>poppler_dest_get_type ()</title> -<indexterm zone="poppler-dest-get-type"><primary sortas="poppler_dest_get_type">poppler_dest_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_dest_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-dest-copy" role="function"> -<title>poppler_dest_copy ()</title> -<indexterm zone="poppler-dest-copy"><primary sortas="poppler_dest_copy">poppler_dest_copy</primary></indexterm><programlisting><link linkend="PopplerDest">PopplerDest</link> * poppler_dest_copy (<link linkend="PopplerDest">PopplerDest</link> *dest);</programlisting> -<para> -Copies <parameter>dest</parameter>, creating an identical <link linkend="PopplerDest"><type>PopplerDest</type></link>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>dest</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerDest"><type>PopplerDest</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new destination identical to <parameter>dest</parameter> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-dest-free" role="function"> -<title>poppler_dest_free ()</title> -<indexterm zone="poppler-dest-free"><primary sortas="poppler_dest_free">poppler_dest_free</primary></indexterm><programlisting><link linkend="void">void</link> poppler_dest_free (<link linkend="PopplerDest">PopplerDest</link> *dest);</programlisting> -<para> -Frees <parameter>dest</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>dest</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerDest"><type>PopplerDest</type></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> - -</refsect1> - - - - -</refentry> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-annot.xml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-annot.xml deleted file mode 100644 index 555535b15c3..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-annot.xml +++ /dev/null @@ -1,511 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<refentry id="poppler-poppler-annot"> -<refmeta> -<refentrytitle role="top_of_page" id="poppler-poppler-annot.top_of_page">PopplerAnnot</refentrytitle> -<manvolnum>3</manvolnum> -<refmiscinfo>POPPLER Library</refmiscinfo> -</refmeta> - -<refnamediv> -<refname>PopplerAnnot</refname> -<refpurpose>Annotations</refpurpose> -</refnamediv> - -<refsynopsisdiv id="poppler-poppler-annot.synopsis" role="synopsis"> -<title role="synopsis.title">Synopsis</title> - -<synopsis> - <link linkend="PopplerAnnot">PopplerAnnot</link>; -<link linkend="PopplerAnnotCalloutLine">PopplerAnnotCalloutLine</link> * <link linkend="poppler-annot-callout-line-copy">poppler_annot_callout_line_copy</link> - (<link linkend="PopplerAnnotCalloutLine">PopplerAnnotCalloutLine</link> *callout); -<link linkend="void">void</link> <link linkend="poppler-annot-callout-line-free">poppler_annot_callout_line_free</link> (<link linkend="PopplerAnnotCalloutLine">PopplerAnnotCalloutLine</link> *callout); -<link linkend="GType">GType</link> <link linkend="poppler-annot-callout-line-get-type">poppler_annot_callout_line_get_type</link> (void); -<link linkend="PopplerAnnotCalloutLine">PopplerAnnotCalloutLine</link> * <link linkend="poppler-annot-callout-line-new">poppler_annot_callout_line_new</link> - (void); -<link linkend="GType">GType</link> <link linkend="poppler-annot-external-data-type-get-type">poppler_annot_external_data_type_get_type</link> - (void); -<link linkend="GType">GType</link> <link linkend="poppler-annot-flag-get-type">poppler_annot_flag_get_type</link> (void); -<link linkend="PopplerAnnotCalloutLine">PopplerAnnotCalloutLine</link> * <link linkend="poppler-annot-free-text-get-callout-line">poppler_annot_free_text_get_callout_line</link> - (<link linkend="PopplerAnnotFreeText">PopplerAnnotFreeText</link> *poppler_annot); -<link linkend="PopplerAnnotFreeTextQuadding">PopplerAnnotFreeTextQuadding</link> <link linkend="poppler-annot-free-text-get-quadding">poppler_annot_free_text_get_quadding</link> - (<link linkend="PopplerAnnotFreeText">PopplerAnnotFreeText</link> *poppler_annot); -<link linkend="GType">GType</link> <link linkend="poppler-annot-free-text-get-type">poppler_annot_free_text_get_type</link> (void); -<link linkend="GType">GType</link> <link linkend="poppler-annot-free-text-quadding-get-type">poppler_annot_free_text_quadding_get_type</link> - (void); -<link linkend="PopplerAnnotType">PopplerAnnotType</link> <link linkend="poppler-annot-get-annot-type">poppler_annot_get_annot_type</link> (<link linkend="PopplerAnnot">PopplerAnnot</link> *poppler_annot); -<link linkend="PopplerColor">PopplerColor</link> * <link linkend="poppler-annot-get-color">poppler_annot_get_color</link> (<link linkend="PopplerAnnot">PopplerAnnot</link> *poppler_annot); -<link linkend="gchar">gchar</link> * <link linkend="poppler-annot-get-contents">poppler_annot_get_contents</link> (<link linkend="PopplerAnnot">PopplerAnnot</link> *poppler_annot); -<link linkend="PopplerAnnotFlag">PopplerAnnotFlag</link> <link linkend="poppler-annot-get-flags">poppler_annot_get_flags</link> (<link linkend="PopplerAnnot">PopplerAnnot</link> *poppler_annot); -<link linkend="gchar">gchar</link> * <link linkend="poppler-annot-get-modified">poppler_annot_get_modified</link> (<link linkend="PopplerAnnot">PopplerAnnot</link> *poppler_annot); -<link linkend="gchar">gchar</link> * <link linkend="poppler-annot-get-name">poppler_annot_get_name</link> (<link linkend="PopplerAnnot">PopplerAnnot</link> *poppler_annot); -<link linkend="GType">GType</link> <link linkend="poppler-annot-get-type">poppler_annot_get_type</link> (void); -<link linkend="PopplerAnnotMapping">PopplerAnnotMapping</link> * <link linkend="poppler-annot-mapping-copy">poppler_annot_mapping_copy</link> (<link linkend="PopplerAnnotMapping">PopplerAnnotMapping</link> *mapping); -<link linkend="void">void</link> <link linkend="poppler-annot-mapping-free">poppler_annot_mapping_free</link> (<link linkend="PopplerAnnotMapping">PopplerAnnotMapping</link> *mapping); -<link linkend="GType">GType</link> <link linkend="poppler-annot-mapping-get-type">poppler_annot_mapping_get_type</link> (void); -<link linkend="PopplerAnnotMapping">PopplerAnnotMapping</link> * <link linkend="poppler-annot-mapping-new">poppler_annot_mapping_new</link> (void); -<link linkend="GDate">GDate</link> * <link linkend="poppler-annot-markup-get-date">poppler_annot_markup_get_date</link> (<link linkend="PopplerAnnotMarkup">PopplerAnnotMarkup</link> *poppler_annot); -<link linkend="PopplerAnnotExternalDataType">PopplerAnnotExternalDataType</link> <link linkend="poppler-annot-markup-get-external-data">poppler_annot_markup_get_external_data</link> - (<link linkend="PopplerAnnotMarkup">PopplerAnnotMarkup</link> *poppler_annot); -<link linkend="gchar">gchar</link> * <link linkend="poppler-annot-markup-get-label">poppler_annot_markup_get_label</link> (<link linkend="PopplerAnnotMarkup">PopplerAnnotMarkup</link> *poppler_annot); -<link linkend="gdouble">gdouble</link> <link linkend="poppler-annot-markup-get-opacity">poppler_annot_markup_get_opacity</link> (<link linkend="PopplerAnnotMarkup">PopplerAnnotMarkup</link> *poppler_annot); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-annot-markup-get-popup-is-open">poppler_annot_markup_get_popup_is_open</link> - (<link linkend="PopplerAnnotMarkup">PopplerAnnotMarkup</link> *poppler_annot); -<link linkend="PopplerAnnotMarkupReplyType">PopplerAnnotMarkupReplyType</link> <link linkend="poppler-annot-markup-get-reply-to">poppler_annot_markup_get_reply_to</link> - (<link linkend="PopplerAnnotMarkup">PopplerAnnotMarkup</link> *poppler_annot); -<link linkend="gchar">gchar</link> * <link linkend="poppler-annot-markup-get-subject">poppler_annot_markup_get_subject</link> (<link linkend="PopplerAnnotMarkup">PopplerAnnotMarkup</link> *poppler_annot); -<link linkend="GType">GType</link> <link linkend="poppler-annot-markup-get-type">poppler_annot_markup_get_type</link> (void); -<link linkend="GType">GType</link> <link linkend="poppler-annot-markup-reply-type-get-type">poppler_annot_markup_reply_type_get_type</link> - (void); -<link linkend="gchar">gchar</link> * <link linkend="poppler-annot-text-get-icon">poppler_annot_text_get_icon</link> (<link linkend="PopplerAnnotText">PopplerAnnotText</link> *poppler_annot); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-annot-text-get-is-open">poppler_annot_text_get_is_open</link> (<link linkend="PopplerAnnotText">PopplerAnnotText</link> *poppler_annot); -<link linkend="PopplerAnnotTextState">PopplerAnnotTextState</link> <link linkend="poppler-annot-text-get-state">poppler_annot_text_get_state</link> (<link linkend="PopplerAnnotText">PopplerAnnotText</link> *poppler_annot); -<link linkend="GType">GType</link> <link linkend="poppler-annot-text-get-type">poppler_annot_text_get_type</link> (void); -<link linkend="GType">GType</link> <link linkend="poppler-annot-text-state-get-type">poppler_annot_text_state_get_type</link> (void); -<link linkend="GType">GType</link> <link linkend="poppler-annot-type-get-type">poppler_annot_type_get_type</link> (void); -</synopsis> -</refsynopsisdiv> - - - - - - - - - -<refsect1 id="poppler-poppler-annot.description" role="desc"> -<title role="desc.title">Description</title> -<para> -</para> -</refsect1> - -<refsect1 id="poppler-poppler-annot.details" role="details"> -<title role="details.title">Details</title> -<refsect2 id="PopplerAnnot" role="struct"> -<title>PopplerAnnot</title> -<indexterm zone="PopplerAnnot"><primary sortas="PopplerAnnot">PopplerAnnot</primary></indexterm><programlisting>typedef struct _PopplerAnnot PopplerAnnot;</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-annot-callout-line-copy" role="function"> -<title>poppler_annot_callout_line_copy ()</title> -<indexterm zone="poppler-annot-callout-line-copy"><primary sortas="poppler_annot_callout_line_copy">poppler_annot_callout_line_copy</primary></indexterm><programlisting><link linkend="PopplerAnnotCalloutLine">PopplerAnnotCalloutLine</link> * poppler_annot_callout_line_copy - (<link linkend="PopplerAnnotCalloutLine">PopplerAnnotCalloutLine</link> *callout);</programlisting> -<para> -It does copy <parameter>callout</parameter> to a new <link linkend="PopplerAnnotCalloutLine"><type>PopplerAnnotCalloutLine</type></link>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>callout</parameter> :</term> -<listitem><simpara> the <link linkend="PopplerAnnotCalloutline"><type>PopplerAnnotCalloutline</type></link> to be copied. -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new allocated <link linkend="PopplerAnnotCalloutLine"><type>PopplerAnnotCalloutLine</type></link> as exact copy of - <parameter>callout</parameter>, NULL in other case. It must be freed when done. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-callout-line-free" role="function"> -<title>poppler_annot_callout_line_free ()</title> -<indexterm zone="poppler-annot-callout-line-free"><primary sortas="poppler_annot_callout_line_free">poppler_annot_callout_line_free</primary></indexterm><programlisting><link linkend="void">void</link> poppler_annot_callout_line_free (<link linkend="PopplerAnnotCalloutLine">PopplerAnnotCalloutLine</link> *callout);</programlisting> -<para> -Frees the memory used by <link linkend="PopplerAnnotCalloutLine"><type>PopplerAnnotCalloutLine</type></link>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>callout</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnotCalloutLine"><type>PopplerAnnotCalloutLine</type></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-callout-line-get-type" role="function"> -<title>poppler_annot_callout_line_get_type ()</title> -<indexterm zone="poppler-annot-callout-line-get-type"><primary sortas="poppler_annot_callout_line_get_type">poppler_annot_callout_line_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_annot_callout_line_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-callout-line-new" role="function"> -<title>poppler_annot_callout_line_new ()</title> -<indexterm zone="poppler-annot-callout-line-new"><primary sortas="poppler_annot_callout_line_new">poppler_annot_callout_line_new</primary></indexterm><programlisting><link linkend="PopplerAnnotCalloutLine">PopplerAnnotCalloutLine</link> * poppler_annot_callout_line_new - (void);</programlisting> -<para> -Creates a new empty <link linkend="PopplerAnnotCalloutLine"><type>PopplerAnnotCalloutLine</type></link>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new allocated <link linkend="PopplerAnnotCalloutLine"><type>PopplerAnnotCalloutLine</type></link>, NULL in other case. - It must be freed when done. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-external-data-type-get-type" role="function"> -<title>poppler_annot_external_data_type_get_type ()</title> -<indexterm zone="poppler-annot-external-data-type-get-type"><primary sortas="poppler_annot_external_data_type_get_type">poppler_annot_external_data_type_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_annot_external_data_type_get_type - (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-flag-get-type" role="function"> -<title>poppler_annot_flag_get_type ()</title> -<indexterm zone="poppler-annot-flag-get-type"><primary sortas="poppler_annot_flag_get_type">poppler_annot_flag_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_annot_flag_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-free-text-get-callout-line" role="function"> -<title>poppler_annot_free_text_get_callout_line ()</title> -<indexterm zone="poppler-annot-free-text-get-callout-line"><primary sortas="poppler_annot_free_text_get_callout_line">poppler_annot_free_text_get_callout_line</primary></indexterm><programlisting><link linkend="PopplerAnnotCalloutLine">PopplerAnnotCalloutLine</link> * poppler_annot_free_text_get_callout_line - (<link linkend="PopplerAnnotFreeText">PopplerAnnotFreeText</link> *poppler_annot);</programlisting> -<para> -Retrieves a <link linkend="PopplerCalloutLine"><type>PopplerCalloutLine</type></link> of four or six numbers specifying a callout -line attached to the <parameter>poppler_annot</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnotFreeText"><type>PopplerAnnotFreeText</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new allocated <link linkend="PopplerCalloutLine"><type>PopplerCalloutLine</type></link> if the annot has a callout - line, NULL in other case. It must be freed with <link linkend="g-free"><function>g_free()</function></link> when - done. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-free-text-get-quadding" role="function"> -<title>poppler_annot_free_text_get_quadding ()</title> -<indexterm zone="poppler-annot-free-text-get-quadding"><primary sortas="poppler_annot_free_text_get_quadding">poppler_annot_free_text_get_quadding</primary></indexterm><programlisting><link linkend="PopplerAnnotFreeTextQuadding">PopplerAnnotFreeTextQuadding</link> poppler_annot_free_text_get_quadding - (<link linkend="PopplerAnnotFreeText">PopplerAnnotFreeText</link> *poppler_annot);</programlisting> -<para> -Retrieves the justification of the text of <parameter>poppler_annot</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnotFreeText"><type>PopplerAnnotFreeText</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="PopplerAnnotFreeTextQuadding"><type>PopplerAnnotFreeTextQuadding</type></link> of <parameter>poppler_annot</parameter>. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-free-text-get-type" role="function"> -<title>poppler_annot_free_text_get_type ()</title> -<indexterm zone="poppler-annot-free-text-get-type"><primary sortas="poppler_annot_free_text_get_type">poppler_annot_free_text_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_annot_free_text_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-free-text-quadding-get-type" role="function"> -<title>poppler_annot_free_text_quadding_get_type ()</title> -<indexterm zone="poppler-annot-free-text-quadding-get-type"><primary sortas="poppler_annot_free_text_quadding_get_type">poppler_annot_free_text_quadding_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_annot_free_text_quadding_get_type - (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-get-annot-type" role="function"> -<title>poppler_annot_get_annot_type ()</title> -<indexterm zone="poppler-annot-get-annot-type"><primary sortas="poppler_annot_get_annot_type">poppler_annot_get_annot_type</primary></indexterm><programlisting><link linkend="PopplerAnnotType">PopplerAnnotType</link> poppler_annot_get_annot_type (<link linkend="PopplerAnnot">PopplerAnnot</link> *poppler_annot);</programlisting> -<para> -Gets the type of <parameter>poppler_annot</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnot"><type>PopplerAnnot</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="PopplerAnnotType"><type>PopplerAnnotType</type></link> of <parameter>poppler_annot</parameter>. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-get-color" role="function"> -<title>poppler_annot_get_color ()</title> -<indexterm zone="poppler-annot-get-color"><primary sortas="poppler_annot_get_color">poppler_annot_get_color</primary></indexterm><programlisting><link linkend="PopplerColor">PopplerColor</link> * poppler_annot_get_color (<link linkend="PopplerAnnot">PopplerAnnot</link> *poppler_annot);</programlisting> -<para> -Retrieves the color of <parameter>poppler_annot</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnot"><type>PopplerAnnot</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new allocated <link linkend="PopplerColor"><type>PopplerColor</type></link> with the color values of - <parameter>poppler_annot</parameter>, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>. It must be freed with <link linkend="g-free"><function>g_free()</function></link> when done. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-get-contents" role="function"> -<title>poppler_annot_get_contents ()</title> -<indexterm zone="poppler-annot-get-contents"><primary sortas="poppler_annot_get_contents">poppler_annot_get_contents</primary></indexterm><programlisting><link linkend="gchar">gchar</link> * poppler_annot_get_contents (<link linkend="PopplerAnnot">PopplerAnnot</link> *poppler_annot);</programlisting> -<para> -Retrieves the contents of <parameter>poppler_annot</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnot"><type>PopplerAnnot</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new allocated string with the contents of <parameter>poppler_annot</parameter>. It - must be freed with <link linkend="g-free"><function>g_free()</function></link> when done. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-get-flags" role="function"> -<title>poppler_annot_get_flags ()</title> -<indexterm zone="poppler-annot-get-flags"><primary sortas="poppler_annot_get_flags">poppler_annot_get_flags</primary></indexterm><programlisting><link linkend="PopplerAnnotFlag">PopplerAnnotFlag</link> poppler_annot_get_flags (<link linkend="PopplerAnnot">PopplerAnnot</link> *poppler_annot);</programlisting> -<para> -Retrieves the flag field specifying various characteristics of the -<parameter>poppler_annot</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnot"><type>PopplerAnnot</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the flag field of <parameter>poppler_annot</parameter>. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-get-modified" role="function"> -<title>poppler_annot_get_modified ()</title> -<indexterm zone="poppler-annot-get-modified"><primary sortas="poppler_annot_get_modified">poppler_annot_get_modified</primary></indexterm><programlisting><link linkend="gchar">gchar</link> * poppler_annot_get_modified (<link linkend="PopplerAnnot">PopplerAnnot</link> *poppler_annot);</programlisting> -<para> -Retrieves the last modification data of <parameter>poppler_annot</parameter>. The returned -string will be either a PDF format date or a text string. -See also #<link linkend="poppler-date-parse"><function>poppler_date_parse()</function></link></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnot"><type>PopplerAnnot</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new allocated string with the last modification data of - <parameter>poppler_annot</parameter>. It must be freed with <link linkend="g-free"><function>g_free()</function></link> when done. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-get-name" role="function"> -<title>poppler_annot_get_name ()</title> -<indexterm zone="poppler-annot-get-name"><primary sortas="poppler_annot_get_name">poppler_annot_get_name</primary></indexterm><programlisting><link linkend="gchar">gchar</link> * poppler_annot_get_name (<link linkend="PopplerAnnot">PopplerAnnot</link> *poppler_annot);</programlisting> -<para> -Retrieves the name of <parameter>poppler_annot</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnot"><type>PopplerAnnot</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new allocated string with the name of <parameter>poppler_annot</parameter>. It must - be freed with <link linkend="g-free"><function>g_free()</function></link> when done. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-get-type" role="function"> -<title>poppler_annot_get_type ()</title> -<indexterm zone="poppler-annot-get-type"><primary sortas="poppler_annot_get_type">poppler_annot_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_annot_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-mapping-copy" role="function"> -<title>poppler_annot_mapping_copy ()</title> -<indexterm zone="poppler-annot-mapping-copy"><primary sortas="poppler_annot_mapping_copy">poppler_annot_mapping_copy</primary></indexterm><programlisting><link linkend="PopplerAnnotMapping">PopplerAnnotMapping</link> * poppler_annot_mapping_copy (<link linkend="PopplerAnnotMapping">PopplerAnnotMapping</link> *mapping);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>mapping</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-mapping-free" role="function"> -<title>poppler_annot_mapping_free ()</title> -<indexterm zone="poppler-annot-mapping-free"><primary sortas="poppler_annot_mapping_free">poppler_annot_mapping_free</primary></indexterm><programlisting><link linkend="void">void</link> poppler_annot_mapping_free (<link linkend="PopplerAnnotMapping">PopplerAnnotMapping</link> *mapping);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>mapping</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-mapping-get-type" role="function"> -<title>poppler_annot_mapping_get_type ()</title> -<indexterm zone="poppler-annot-mapping-get-type"><primary sortas="poppler_annot_mapping_get_type">poppler_annot_mapping_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_annot_mapping_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-mapping-new" role="function"> -<title>poppler_annot_mapping_new ()</title> -<indexterm zone="poppler-annot-mapping-new"><primary sortas="poppler_annot_mapping_new">poppler_annot_mapping_new</primary></indexterm><programlisting><link linkend="PopplerAnnotMapping">PopplerAnnotMapping</link> * poppler_annot_mapping_new (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-markup-get-date" role="function"> -<title>poppler_annot_markup_get_date ()</title> -<indexterm zone="poppler-annot-markup-get-date"><primary sortas="poppler_annot_markup_get_date">poppler_annot_markup_get_date</primary></indexterm><programlisting><link linkend="GDate">GDate</link> * poppler_annot_markup_get_date (<link linkend="PopplerAnnotMarkup">PopplerAnnotMarkup</link> *poppler_annot);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-markup-get-external-data" role="function"> -<title>poppler_annot_markup_get_external_data ()</title> -<indexterm zone="poppler-annot-markup-get-external-data"><primary sortas="poppler_annot_markup_get_external_data">poppler_annot_markup_get_external_data</primary></indexterm><programlisting><link linkend="PopplerAnnotExternalDataType">PopplerAnnotExternalDataType</link> poppler_annot_markup_get_external_data - (<link linkend="PopplerAnnotMarkup">PopplerAnnotMarkup</link> *poppler_annot);</programlisting> -<para> -Gets the external data type of <parameter>poppler_annot</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnotMarkup"><type>PopplerAnnotMarkup</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="PopplerAnnotExternalDataType"><type>PopplerAnnotExternalDataType</type></link> of <parameter>poppler_annot</parameter>. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-markup-get-label" role="function"> -<title>poppler_annot_markup_get_label ()</title> -<indexterm zone="poppler-annot-markup-get-label"><primary sortas="poppler_annot_markup_get_label">poppler_annot_markup_get_label</primary></indexterm><programlisting><link linkend="gchar">gchar</link> * poppler_annot_markup_get_label (<link linkend="PopplerAnnotMarkup">PopplerAnnotMarkup</link> *poppler_annot);</programlisting> -<para> -Retrieves the label text of <parameter>poppler_annot</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnotMarkup"><type>PopplerAnnotMarkup</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the label text of <parameter>poppler_annot</parameter>. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-markup-get-opacity" role="function"> -<title>poppler_annot_markup_get_opacity ()</title> -<indexterm zone="poppler-annot-markup-get-opacity"><primary sortas="poppler_annot_markup_get_opacity">poppler_annot_markup_get_opacity</primary></indexterm><programlisting><link linkend="gdouble">gdouble</link> poppler_annot_markup_get_opacity (<link linkend="PopplerAnnotMarkup">PopplerAnnotMarkup</link> *poppler_annot);</programlisting> -<para> -Retrieves the opacity value of <parameter>poppler_annot</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnotMarkup"><type>PopplerAnnotMarkup</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the opacity value of <parameter>poppler_annot</parameter>. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-markup-get-popup-is-open" role="function"> -<title>poppler_annot_markup_get_popup_is_open ()</title> -<indexterm zone="poppler-annot-markup-get-popup-is-open"><primary sortas="poppler_annot_markup_get_popup_is_open">poppler_annot_markup_get_popup_is_open</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_annot_markup_get_popup_is_open - (<link linkend="PopplerAnnotMarkup">PopplerAnnotMarkup</link> *poppler_annot);</programlisting> -<para> -Retrieves the state of the popup annot related to <parameter>poppler_annot</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnotMarkup"><type>PopplerAnnotMarkup</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the state of <parameter>poppler_annot</parameter>. <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if it's open, <link linkend="FALSE--CAPS"><literal>FALSE</literal></link> in - other case. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-markup-get-reply-to" role="function"> -<title>poppler_annot_markup_get_reply_to ()</title> -<indexterm zone="poppler-annot-markup-get-reply-to"><primary sortas="poppler_annot_markup_get_reply_to">poppler_annot_markup_get_reply_to</primary></indexterm><programlisting><link linkend="PopplerAnnotMarkupReplyType">PopplerAnnotMarkupReplyType</link> poppler_annot_markup_get_reply_to - (<link linkend="PopplerAnnotMarkup">PopplerAnnotMarkup</link> *poppler_annot);</programlisting> -<para> -Gets the reply type of <parameter>poppler_annot</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnotMarkup"><type>PopplerAnnotMarkup</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="PopplerAnnotMarkupReplyType"><type>PopplerAnnotMarkupReplyType</type></link> of <parameter>poppler_annot</parameter>. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-markup-get-subject" role="function"> -<title>poppler_annot_markup_get_subject ()</title> -<indexterm zone="poppler-annot-markup-get-subject"><primary sortas="poppler_annot_markup_get_subject">poppler_annot_markup_get_subject</primary></indexterm><programlisting><link linkend="gchar">gchar</link> * poppler_annot_markup_get_subject (<link linkend="PopplerAnnotMarkup">PopplerAnnotMarkup</link> *poppler_annot);</programlisting> -<para> -Retrives the subject text of <parameter>poppler_annot</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnotMarkup"><type>PopplerAnnotMarkup</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the subject text of <parameter>poppler_annot</parameter>. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-markup-get-type" role="function"> -<title>poppler_annot_markup_get_type ()</title> -<indexterm zone="poppler-annot-markup-get-type"><primary sortas="poppler_annot_markup_get_type">poppler_annot_markup_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_annot_markup_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-markup-reply-type-get-type" role="function"> -<title>poppler_annot_markup_reply_type_get_type ()</title> -<indexterm zone="poppler-annot-markup-reply-type-get-type"><primary sortas="poppler_annot_markup_reply_type_get_type">poppler_annot_markup_reply_type_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_annot_markup_reply_type_get_type - (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-text-get-icon" role="function"> -<title>poppler_annot_text_get_icon ()</title> -<indexterm zone="poppler-annot-text-get-icon"><primary sortas="poppler_annot_text_get_icon">poppler_annot_text_get_icon</primary></indexterm><programlisting><link linkend="gchar">gchar</link> * poppler_annot_text_get_icon (<link linkend="PopplerAnnotText">PopplerAnnotText</link> *poppler_annot);</programlisting> -<para> -Gets the icon type of <parameter>poppler_annot</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnotText"><type>PopplerAnnotText</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="PopplerAnnotTextIcon"><type>PopplerAnnotTextIcon</type></link> of <parameter>poppler_annot</parameter>. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-text-get-is-open" role="function"> -<title>poppler_annot_text_get_is_open ()</title> -<indexterm zone="poppler-annot-text-get-is-open"><primary sortas="poppler_annot_text_get_is_open">poppler_annot_text_get_is_open</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_annot_text_get_is_open (<link linkend="PopplerAnnotText">PopplerAnnotText</link> *poppler_annot);</programlisting> -<para> -Retrieves the state of <parameter>poppler_annot</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnotText"><type>PopplerAnnotText</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the state of <parameter>poppler_annot</parameter>. <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if it's open, <link linkend="FALSE--CAPS"><literal>FALSE</literal></link> in - other case. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-text-get-state" role="function"> -<title>poppler_annot_text_get_state ()</title> -<indexterm zone="poppler-annot-text-get-state"><primary sortas="poppler_annot_text_get_state">poppler_annot_text_get_state</primary></indexterm><programlisting><link linkend="PopplerAnnotTextState">PopplerAnnotTextState</link> poppler_annot_text_get_state (<link linkend="PopplerAnnotText">PopplerAnnotText</link> *poppler_annot);</programlisting> -<para> -Retrieves the state of <parameter>poppler_annot</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>poppler_annot</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerAnnotText"><type>PopplerAnnotText</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="PopplerAnnotTextState"><type>PopplerAnnotTextState</type></link> of <parameter>poppler_annot</parameter>. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-text-get-type" role="function"> -<title>poppler_annot_text_get_type ()</title> -<indexterm zone="poppler-annot-text-get-type"><primary sortas="poppler_annot_text_get_type">poppler_annot_text_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_annot_text_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-text-state-get-type" role="function"> -<title>poppler_annot_text_state_get_type ()</title> -<indexterm zone="poppler-annot-text-state-get-type"><primary sortas="poppler_annot_text_state_get_type">poppler_annot_text_state_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_annot_text_state_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-annot-type-get-type" role="function"> -<title>poppler_annot_type_get_type ()</title> -<indexterm zone="poppler-annot-type-get-type"><primary sortas="poppler_annot_type_get_type">poppler_annot_type_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_annot_type_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> - -</refsect1> - - - - -</refentry> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-attachment.xml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-attachment.xml deleted file mode 100644 index 61aa9f8e4b6..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-attachment.xml +++ /dev/null @@ -1,143 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<refentry id="poppler-poppler-attachment"> -<refmeta> -<refentrytitle role="top_of_page" id="poppler-poppler-attachment.top_of_page">PopplerAttachment</refentrytitle> -<manvolnum>3</manvolnum> -<refmiscinfo>POPPLER Library</refmiscinfo> -</refmeta> - -<refnamediv> -<refname>PopplerAttachment</refname> -<refpurpose></refpurpose> -</refnamediv> - -<refsynopsisdiv id="poppler-poppler-attachment.synopsis" role="synopsis"> -<title role="synopsis.title">Synopsis</title> -<anchor id="PopplerAttachment"/> -<synopsis> - <link linkend="PopplerAttachment-struct">PopplerAttachment</link>; -<link linkend="gboolean">gboolean</link> <link linkend="poppler-attachment-save">poppler_attachment_save</link> (<link linkend="PopplerAttachment">PopplerAttachment</link> *attachment, - const <link linkend="char">char</link> *filename, - <link linkend="GError">GError</link> **error); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-attachment-save-to-callback">poppler_attachment_save_to_callback</link> (<link linkend="PopplerAttachment">PopplerAttachment</link> *attachment, - <link linkend="PopplerAttachmentSaveFunc">PopplerAttachmentSaveFunc</link> save_func, - <link linkend="gpointer">gpointer</link> user_data, - <link linkend="GError">GError</link> **error); -<link linkend="gboolean">gboolean</link> (<link linkend="PopplerAttachmentSaveFunc">*PopplerAttachmentSaveFunc</link>) (const <link linkend="gchar">gchar</link> *buf, - <link linkend="gsize">gsize</link> count, - <link linkend="gpointer">gpointer</link> data, - <link linkend="GError">GError</link> **error); -</synopsis> -</refsynopsisdiv> - - - - - - - - - -<refsect1 id="poppler-poppler-attachment.description" role="desc"> -<title role="desc.title">Description</title> -<para> -</para> -</refsect1> - -<refsect1 id="poppler-poppler-attachment.details" role="details"> -<title role="details.title">Details</title> -<refsect2 id="PopplerAttachment-struct" role="struct"> -<title>PopplerAttachment</title> -<indexterm zone="PopplerAttachment-struct"><primary sortas="PopplerAttachment">PopplerAttachment</primary></indexterm><programlisting>typedef struct _PopplerAttachment PopplerAttachment;</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-attachment-save" role="function"> -<title>poppler_attachment_save ()</title> -<indexterm zone="poppler-attachment-save"><primary sortas="poppler_attachment_save">poppler_attachment_save</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_attachment_save (<link linkend="PopplerAttachment">PopplerAttachment</link> *attachment, - const <link linkend="char">char</link> *filename, - <link linkend="GError">GError</link> **error);</programlisting> -<para> -Saves <parameter>attachment</parameter> to a file indicated by <parameter>filename</parameter>. If <parameter>error</parameter> is set, <link linkend="FALSE--CAPS"><literal>FALSE</literal></link> -will be returned. Possible errors include those in the <link linkend="G-FILE-ERROR--CAPS"><type>G_FILE_ERROR</type></link> domain -and whatever the save function generates.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>attachment</parameter> :</term> -<listitem><simpara> A <link linkend="PopplerAttachment"><type>PopplerAttachment</type></link>. -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>filename</parameter> :</term> -<listitem><simpara> name of file to save -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>error</parameter> :</term> -<listitem><simpara> return location for error, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>. -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>, if the file successfully saved -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-attachment-save-to-callback" role="function"> -<title>poppler_attachment_save_to_callback ()</title> -<indexterm zone="poppler-attachment-save-to-callback"><primary sortas="poppler_attachment_save_to_callback">poppler_attachment_save_to_callback</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_attachment_save_to_callback (<link linkend="PopplerAttachment">PopplerAttachment</link> *attachment, - <link linkend="PopplerAttachmentSaveFunc">PopplerAttachmentSaveFunc</link> save_func, - <link linkend="gpointer">gpointer</link> user_data, - <link linkend="GError">GError</link> **error);</programlisting> -<para> -Saves <parameter>attachment</parameter> by feeding the produced data to <parameter>save_func</parameter>. Can be used -when you want to store the attachment to something other than a file, such as -an in-memory buffer or a socket. If <parameter>error</parameter> is set, <link linkend="FALSE--CAPS"><literal>FALSE</literal></link> will be -returned. Possible errors include those in the <link linkend="G-FILE-ERROR--CAPS"><type>G_FILE_ERROR</type></link> domain and -whatever the save function generates.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>attachment</parameter> :</term> -<listitem><simpara> A <link linkend="PopplerAttachment"><type>PopplerAttachment</type></link>. -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>save_func</parameter> :</term> -<listitem><simpara> a function that is called to save each block of data that the save routine generates. -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>user_data</parameter> :</term> -<listitem><simpara> user data to pass to the save function. -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>error</parameter> :</term> -<listitem><simpara> return location for error, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>. -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>, if the save successfully completed -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="PopplerAttachmentSaveFunc" role="function"> -<title>PopplerAttachmentSaveFunc ()</title> -<indexterm zone="PopplerAttachmentSaveFunc"><primary sortas="PopplerAttachmentSaveFunc">PopplerAttachmentSaveFunc</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> (*PopplerAttachmentSaveFunc) (const <link linkend="gchar">gchar</link> *buf, - <link linkend="gsize">gsize</link> count, - <link linkend="gpointer">gpointer</link> data, - <link linkend="GError">GError</link> **error);</programlisting> -<para> -Specifies the type of the function passed to -<link linkend="poppler-attachment-save-to-callback"><function>poppler_attachment_save_to_callback()</function></link>. It is called once for each block of -bytes that is "written" by <link linkend="poppler-attachment-save-to-callback"><function>poppler_attachment_save_to_callback()</function></link>. If -successful it should return <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>. If an error occurs it should set -<parameter>error</parameter> and return <link linkend="FALSE--CAPS"><literal>FALSE</literal></link>, in which case <link linkend="poppler-attachment-save-to-callback"><function>poppler_attachment_save_to_callback()</function></link> -will fail with the same error. -</para><variablelist role="params"> -<varlistentry><term><parameter>buf</parameter> :</term> -<listitem><simpara>buffer containing bytes to be written. -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>count</parameter> :</term> -<listitem><simpara>number of bytes in <parameter>buf</parameter>. -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>data</parameter> :</term> -<listitem><simpara>A location to return an error. -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>error</parameter> :</term> -<listitem><simpara>user data passed to <link linkend="poppler-attachment-save-to-callback"><function>poppler_attachment_save_to_callback()</function></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>%TRUE if successful, <link linkend="FALSE--CAPS"><literal>FALSE</literal></link> (with <parameter>error</parameter> set) if failed. -</simpara></listitem></varlistentry> -</variablelist></refsect2> - -</refsect1> - - - - -</refentry> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-document.xml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-document.xml deleted file mode 100644 index 2da4c7686ed..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-document.xml +++ /dev/null @@ -1,722 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<refentry id="poppler-poppler-document"> -<refmeta> -<refentrytitle role="top_of_page" id="poppler-poppler-document.top_of_page">PopplerDocument</refentrytitle> -<manvolnum>3</manvolnum> -<refmiscinfo>POPPLER Library</refmiscinfo> -</refmeta> - -<refnamediv> -<refname>PopplerDocument</refname> -<refpurpose>Information about a document</refpurpose> -</refnamediv> - -<refsynopsisdiv id="poppler-poppler-document.synopsis" role="synopsis"> -<title role="synopsis.title">Synopsis</title> - -<synopsis> -enum <link linkend="PopplerPageLayout">PopplerPageLayout</link>; -enum <link linkend="PopplerPageMode">PopplerPageMode</link>; -enum <link linkend="PopplerFontType">PopplerFontType</link>; -enum <link linkend="PopplerViewerPreferences">PopplerViewerPreferences</link>; -enum <link linkend="PopplerPermissions">PopplerPermissions</link>; -<link linkend="PopplerDocument">PopplerDocument</link> * <link linkend="poppler-document-new-from-file">poppler_document_new_from_file</link> (const <link linkend="char">char</link> *uri, - const <link linkend="char">char</link> *password, - <link linkend="GError">GError</link> **error); -<link linkend="PopplerDocument">PopplerDocument</link> * <link linkend="poppler-document-new-from-data">poppler_document_new_from_data</link> (<link linkend="char">char</link> *data, - <link linkend="int">int</link> length, - const <link linkend="char">char</link> *password, - <link linkend="GError">GError</link> **error); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-document-save">poppler_document_save</link> (<link linkend="PopplerDocument">PopplerDocument</link> *document, - const <link linkend="char">char</link> *uri, - <link linkend="GError">GError</link> **error); -<link linkend="int">int</link> <link linkend="poppler-document-get-n-pages">poppler_document_get_n_pages</link> (<link linkend="PopplerDocument">PopplerDocument</link> *document); -<link linkend="PopplerPage">PopplerPage</link> * <link linkend="poppler-document-get-page">poppler_document_get_page</link> (<link linkend="PopplerDocument">PopplerDocument</link> *document, - <link linkend="int">int</link> index); -<link linkend="PopplerPage">PopplerPage</link> * <link linkend="poppler-document-get-page-by-label">poppler_document_get_page_by_label</link> (<link linkend="PopplerDocument">PopplerDocument</link> *document, - const <link linkend="char">char</link> *label); -<link linkend="PopplerDest">PopplerDest</link> * <link linkend="poppler-document-find-dest">poppler_document_find_dest</link> (<link linkend="PopplerDocument">PopplerDocument</link> *document, - const <link linkend="gchar">gchar</link> *link_name); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-document-has-attachments">poppler_document_has_attachments</link> (<link linkend="PopplerDocument">PopplerDocument</link> *document); -<link linkend="GList">GList</link> * <link linkend="poppler-document-get-attachments">poppler_document_get_attachments</link> (<link linkend="PopplerDocument">PopplerDocument</link> *document); -<link linkend="PopplerFormField">PopplerFormField</link> * <link linkend="poppler-document-get-form-field">poppler_document_get_form_field</link> (<link linkend="PopplerDocument">PopplerDocument</link> *document, - <link linkend="gint">gint</link> id); -<link linkend="GType">GType</link> <link linkend="poppler-index-iter-get-type">poppler_index_iter_get_type</link> (void); -<link linkend="PopplerIndexIter">PopplerIndexIter</link> * <link linkend="poppler-index-iter-new">poppler_index_iter_new</link> (<link linkend="PopplerDocument">PopplerDocument</link> *document); -<link linkend="PopplerIndexIter">PopplerIndexIter</link> * <link linkend="poppler-index-iter-copy">poppler_index_iter_copy</link> (<link linkend="PopplerIndexIter">PopplerIndexIter</link> *iter); -<link linkend="void">void</link> <link linkend="poppler-index-iter-free">poppler_index_iter_free</link> (<link linkend="PopplerIndexIter">PopplerIndexIter</link> *iter); -<link linkend="PopplerIndexIter">PopplerIndexIter</link> * <link linkend="poppler-index-iter-get-child">poppler_index_iter_get_child</link> (<link linkend="PopplerIndexIter">PopplerIndexIter</link> *parent); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-index-iter-is-open">poppler_index_iter_is_open</link> (<link linkend="PopplerIndexIter">PopplerIndexIter</link> *iter); -<link linkend="PopplerAction">PopplerAction</link> * <link linkend="poppler-index-iter-get-action">poppler_index_iter_get_action</link> (<link linkend="PopplerIndexIter">PopplerIndexIter</link> *iter); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-index-iter-next">poppler_index_iter_next</link> (<link linkend="PopplerIndexIter">PopplerIndexIter</link> *iter); -<link linkend="PopplerFontInfo">PopplerFontInfo</link> * <link linkend="poppler-font-info-new">poppler_font_info_new</link> (<link linkend="PopplerDocument">PopplerDocument</link> *document); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-font-info-scan">poppler_font_info_scan</link> (<link linkend="PopplerFontInfo">PopplerFontInfo</link> *font_info, - <link linkend="int">int</link> n_pages, - <link linkend="PopplerFontsIter">PopplerFontsIter</link> **iter); -<link linkend="void">void</link> <link linkend="poppler-font-info-free">poppler_font_info_free</link> (<link linkend="PopplerFontInfo">PopplerFontInfo</link> *font_info); -<link linkend="GType">GType</link> <link linkend="poppler-fonts-iter-get-type">poppler_fonts_iter_get_type</link> (void); -<link linkend="PopplerFontsIter">PopplerFontsIter</link> * <link linkend="poppler-fonts-iter-copy">poppler_fonts_iter_copy</link> (<link linkend="PopplerFontsIter">PopplerFontsIter</link> *iter); -<link linkend="void">void</link> <link linkend="poppler-fonts-iter-free">poppler_fonts_iter_free</link> (<link linkend="PopplerFontsIter">PopplerFontsIter</link> *iter); -const <link linkend="char">char</link> * <link linkend="poppler-fonts-iter-get-name">poppler_fonts_iter_get_name</link> (<link linkend="PopplerFontsIter">PopplerFontsIter</link> *iter); -const <link linkend="char">char</link> * <link linkend="poppler-fonts-iter-get-full-name">poppler_fonts_iter_get_full_name</link> (<link linkend="PopplerFontsIter">PopplerFontsIter</link> *iter); -<link linkend="PopplerFontType">PopplerFontType</link> <link linkend="poppler-fonts-iter-get-font-type">poppler_fonts_iter_get_font_type</link> (<link linkend="PopplerFontsIter">PopplerFontsIter</link> *iter); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-fonts-iter-is-embedded">poppler_fonts_iter_is_embedded</link> (<link linkend="PopplerFontsIter">PopplerFontsIter</link> *iter); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-fonts-iter-is-subset">poppler_fonts_iter_is_subset</link> (<link linkend="PopplerFontsIter">PopplerFontsIter</link> *iter); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-fonts-iter-next">poppler_fonts_iter_next</link> (<link linkend="PopplerFontsIter">PopplerFontsIter</link> *iter); -<link linkend="PopplerPSFile">PopplerPSFile</link> * <link linkend="poppler-ps-file-new">poppler_ps_file_new</link> (<link linkend="PopplerDocument">PopplerDocument</link> *document, - const <link linkend="char">char</link> *filename, - <link linkend="int">int</link> first_page, - <link linkend="int">int</link> n_pages); -<link linkend="void">void</link> <link linkend="poppler-ps-file-set-paper-size">poppler_ps_file_set_paper_size</link> (<link linkend="PopplerPSFile">PopplerPSFile</link> *ps_file, - <link linkend="double">double</link> width, - <link linkend="double">double</link> height); -<link linkend="void">void</link> <link linkend="poppler-ps-file-set-duplex">poppler_ps_file_set_duplex</link> (<link linkend="PopplerPSFile">PopplerPSFile</link> *ps_file, - <link linkend="gboolean">gboolean</link> duplex); -<link linkend="void">void</link> <link linkend="poppler-ps-file-free">poppler_ps_file_free</link> (<link linkend="PopplerPSFile">PopplerPSFile</link> *ps_file); -</synopsis> -</refsynopsisdiv> - - - - - - - - - -<refsect1 id="poppler-poppler-document.description" role="desc"> -<title role="desc.title">Description</title> -<para> -The <link linkend="PopplerDocument"><type>PopplerDocument</type></link> is an object used to refer to a main document. -</para> -</refsect1> - -<refsect1 id="poppler-poppler-document.details" role="details"> -<title role="details.title">Details</title> -<refsect2 id="PopplerPageLayout" role="enum"> -<title>enum PopplerPageLayout</title> -<indexterm zone="PopplerPageLayout"><primary sortas="PopplerPageLayout">PopplerPageLayout</primary></indexterm><programlisting>typedef enum -{ - POPPLER_PAGE_LAYOUT_UNSET, - POPPLER_PAGE_LAYOUT_SINGLE_PAGE, - POPPLER_PAGE_LAYOUT_ONE_COLUMN, - POPPLER_PAGE_LAYOUT_TWO_COLUMN_LEFT, - POPPLER_PAGE_LAYOUT_TWO_COLUMN_RIGHT, - POPPLER_PAGE_LAYOUT_TWO_PAGE_LEFT, - POPPLER_PAGE_LAYOUT_TWO_PAGE_RIGHT -} PopplerPageLayout; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerPageMode" role="enum"> -<title>enum PopplerPageMode</title> -<indexterm zone="PopplerPageMode"><primary sortas="PopplerPageMode">PopplerPageMode</primary></indexterm><programlisting>typedef enum -{ - POPPLER_PAGE_MODE_UNSET, - POPPLER_PAGE_MODE_NONE, - POPPLER_PAGE_MODE_USE_OUTLINES, - POPPLER_PAGE_MODE_USE_THUMBS, - POPPLER_PAGE_MODE_FULL_SCREEN, - POPPLER_PAGE_MODE_USE_OC, - POPPLER_PAGE_MODE_USE_ATTACHMENTS -} PopplerPageMode; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerFontType" role="enum"> -<title>enum PopplerFontType</title> -<indexterm zone="PopplerFontType"><primary sortas="PopplerFontType">PopplerFontType</primary></indexterm><programlisting>typedef enum -{ - POPPLER_FONT_TYPE_UNKNOWN, - POPPLER_FONT_TYPE_TYPE1, - POPPLER_FONT_TYPE_TYPE1C, - POPPLER_FONT_TYPE_TYPE1COT, - POPPLER_FONT_TYPE_TYPE3, - POPPLER_FONT_TYPE_TRUETYPE, - POPPLER_FONT_TYPE_TRUETYPEOT, - POPPLER_FONT_TYPE_CID_TYPE0, - POPPLER_FONT_TYPE_CID_TYPE0C, - POPPLER_FONT_TYPE_CID_TYPE0COT, - POPPLER_FONT_TYPE_CID_TYPE2, - POPPLER_FONT_TYPE_CID_TYPE2OT -} PopplerFontType; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerViewerPreferences" role="enum"> -<title>enum PopplerViewerPreferences</title> -<indexterm zone="PopplerViewerPreferences"><primary sortas="PopplerViewerPreferences">PopplerViewerPreferences</primary></indexterm><programlisting>typedef enum /*< flags >*/ -{ - POPPLER_VIEWER_PREFERENCES_UNSET = 0, - POPPLER_VIEWER_PREFERENCES_HIDE_TOOLBAR = 1 << 0, - POPPLER_VIEWER_PREFERENCES_HIDE_MENUBAR = 1 << 1, - POPPLER_VIEWER_PREFERENCES_HIDE_WINDOWUI = 1 << 2, - POPPLER_VIEWER_PREFERENCES_FIT_WINDOW = 1 << 3, - POPPLER_VIEWER_PREFERENCES_CENTER_WINDOW = 1 << 4, - POPPLER_VIEWER_PREFERENCES_DISPLAY_DOC_TITLE = 1 << 5, - POPPLER_VIEWER_PREFERENCES_DIRECTION_RTL = 1 << 6 -} PopplerViewerPreferences; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerPermissions" role="enum"> -<title>enum PopplerPermissions</title> -<indexterm zone="PopplerPermissions"><primary sortas="PopplerPermissions">PopplerPermissions</primary></indexterm><programlisting>typedef enum /*< flags >*/ -{ - POPPLER_PERMISSIONS_OK_TO_PRINT = 1 << 0, - POPPLER_PERMISSIONS_OK_TO_MODIFY = 1 << 1, - POPPLER_PERMISSIONS_OK_TO_COPY = 1 << 2, - POPPLER_PERMISSIONS_OK_TO_ADD_NOTES = 1 << 3, - POPPLER_PERMISSIONS_OK_TO_FILL_FORM = 1 << 4, - POPPLER_PERMISSIONS_FULL = (POPPLER_PERMISSIONS_OK_TO_PRINT | POPPLER_PERMISSIONS_OK_TO_MODIFY | POPPLER_PERMISSIONS_OK_TO_COPY | POPPLER_PERMISSIONS_OK_TO_ADD_NOTES | POPPLER_PERMISSIONS_OK_TO_FILL_FORM) - -} PopplerPermissions; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-document-new-from-file" role="function"> -<title>poppler_document_new_from_file ()</title> -<indexterm zone="poppler-document-new-from-file"><primary sortas="poppler_document_new_from_file">poppler_document_new_from_file</primary></indexterm><programlisting><link linkend="PopplerDocument">PopplerDocument</link> * poppler_document_new_from_file (const <link linkend="char">char</link> *uri, - const <link linkend="char">char</link> *password, - <link linkend="GError">GError</link> **error);</programlisting> -<para> -Creates a new <link linkend="PopplerDocument"><type>PopplerDocument</type></link>. If <link linkend="NULL--CAPS"><literal>NULL</literal></link> is returned, then <parameter>error</parameter> will be -set. Possible errors include those in the <link linkend="POPPLER-ERROR--CAPS"><type>POPPLER_ERROR</type></link> and <link linkend="G-FILE-ERROR--CAPS"><type>G_FILE_ERROR</type></link> -domains.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>uri</parameter> :</term> -<listitem><simpara> uri of the file to load -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>password</parameter> :</term> -<listitem><simpara> password to unlock the file with, or <link linkend="NULL--CAPS"><literal>NULL</literal></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>error</parameter> :</term> -<listitem><simpara> Return location for an error, or <link linkend="NULL--CAPS"><literal>NULL</literal></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> A newly created <link linkend="PopplerDocument"><type>PopplerDocument</type></link>, or <link linkend="NULL--CAPS"><literal>NULL</literal></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-document-new-from-data" role="function"> -<title>poppler_document_new_from_data ()</title> -<indexterm zone="poppler-document-new-from-data"><primary sortas="poppler_document_new_from_data">poppler_document_new_from_data</primary></indexterm><programlisting><link linkend="PopplerDocument">PopplerDocument</link> * poppler_document_new_from_data (<link linkend="char">char</link> *data, - <link linkend="int">int</link> length, - const <link linkend="char">char</link> *password, - <link linkend="GError">GError</link> **error);</programlisting> -<para> -Creates a new <link linkend="PopplerDocument"><type>PopplerDocument</type></link>. If <link linkend="NULL--CAPS"><literal>NULL</literal></link> is returned, then <parameter>error</parameter> will be -set. Possible errors include those in the <link linkend="POPPLER-ERROR--CAPS"><type>POPPLER_ERROR</type></link> and <link linkend="G-FILE-ERROR--CAPS"><type>G_FILE_ERROR</type></link> -domains.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>data</parameter> :</term> -<listitem><simpara> the pdf data contained in a char array -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>length</parameter> :</term> -<listitem><simpara> the length of <link linkend="data"><type>data</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>password</parameter> :</term> -<listitem><simpara> password to unlock the file with, or <link linkend="NULL--CAPS"><literal>NULL</literal></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>error</parameter> :</term> -<listitem><simpara> Return location for an error, or <link linkend="NULL--CAPS"><literal>NULL</literal></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> A newly created <link linkend="PopplerDocument"><type>PopplerDocument</type></link>, or <link linkend="NULL--CAPS"><literal>NULL</literal></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-document-save" role="function"> -<title>poppler_document_save ()</title> -<indexterm zone="poppler-document-save"><primary sortas="poppler_document_save">poppler_document_save</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_document_save (<link linkend="PopplerDocument">PopplerDocument</link> *document, - const <link linkend="char">char</link> *uri, - <link linkend="GError">GError</link> **error);</programlisting> -<para> -Saves <parameter>document</parameter>. Any change made in the document such as -form fields filled by the user will be saved. -If <parameter>error</parameter> is set, <link linkend="FALSE--CAPS"><literal>FALSE</literal></link> will be returned. Possible errors -include those in the <link linkend="G-FILE-ERROR--CAPS"><type>G_FILE_ERROR</type></link> domain.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>document</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerDocument"><type>PopplerDocument</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>uri</parameter> :</term> -<listitem><simpara> uri of file to save -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>error</parameter> :</term> -<listitem><simpara> return location for an error, or <link linkend="NULL--CAPS"><literal>NULL</literal></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>, if the document was successfully saved -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-document-get-n-pages" role="function"> -<title>poppler_document_get_n_pages ()</title> -<indexterm zone="poppler-document-get-n-pages"><primary sortas="poppler_document_get_n_pages">poppler_document_get_n_pages</primary></indexterm><programlisting><link linkend="int">int</link> poppler_document_get_n_pages (<link linkend="PopplerDocument">PopplerDocument</link> *document);</programlisting> -<para> -Returns the number of pages in a loaded document.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>document</parameter> :</term> -<listitem><simpara> A <link linkend="PopplerDocument"><type>PopplerDocument</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> Number of pages -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-document-get-page" role="function"> -<title>poppler_document_get_page ()</title> -<indexterm zone="poppler-document-get-page"><primary sortas="poppler_document_get_page">poppler_document_get_page</primary></indexterm><programlisting><link linkend="PopplerPage">PopplerPage</link> * poppler_document_get_page (<link linkend="PopplerDocument">PopplerDocument</link> *document, - <link linkend="int">int</link> index);</programlisting> -<para> -Returns the <link linkend="PopplerPage"><type>PopplerPage</type></link> indexed at <parameter>index</parameter>. This object is owned by the -caller. -</para> -<para> -<link linkend="PopplerPage"><type>PopplerPage</type></link><!-- -->s are indexed starting at 0.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>document</parameter> :</term> -<listitem><simpara> A <link linkend="PopplerDocument"><type>PopplerDocument</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>index</parameter> :</term> -<listitem><simpara> a page index -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> The <link linkend="PopplerPage"><type>PopplerPage</type></link> at <parameter>index</parameter> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-document-get-page-by-label" role="function"> -<title>poppler_document_get_page_by_label ()</title> -<indexterm zone="poppler-document-get-page-by-label"><primary sortas="poppler_document_get_page_by_label">poppler_document_get_page_by_label</primary></indexterm><programlisting><link linkend="PopplerPage">PopplerPage</link> * poppler_document_get_page_by_label (<link linkend="PopplerDocument">PopplerDocument</link> *document, - const <link linkend="char">char</link> *label);</programlisting> -<para> -Returns the <link linkend="PopplerPage"><type>PopplerPage</type></link> reference by <parameter>label</parameter>. This object is owned by the -caller. <parameter>label</parameter> is a human-readable string representation of the page number, -and can be document specific. Typically, it is a value such as "iii" or "3". -</para> -<para> -By default, "1" refers to the first page.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>document</parameter> :</term> -<listitem><simpara> A <link linkend="PopplerDocument"><type>PopplerDocument</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>label</parameter> :</term> -<listitem><simpara> a page label -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> The <link linkend="PopplerPage"><type>PopplerPage</type></link> referenced by <parameter>label</parameter> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-document-find-dest" role="function"> -<title>poppler_document_find_dest ()</title> -<indexterm zone="poppler-document-find-dest"><primary sortas="poppler_document_find_dest">poppler_document_find_dest</primary></indexterm><programlisting><link linkend="PopplerDest">PopplerDest</link> * poppler_document_find_dest (<link linkend="PopplerDocument">PopplerDocument</link> *document, - const <link linkend="gchar">gchar</link> *link_name);</programlisting> -<para> -Finds named destination <parameter>link_name</parameter> in <parameter>document</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>document</parameter> :</term> -<listitem><simpara> A <link linkend="PopplerDocument"><type>PopplerDocument</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>link_name</parameter> :</term> -<listitem><simpara> a named destination -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> The <link linkend="PopplerDest"><type>PopplerDest</type></link> destination or <link linkend="NULL--CAPS"><literal>NULL</literal></link> if -<parameter>link_name</parameter> is not a destination. Returned value must -be freed with <link linkend="poppler-dest-free"><type>poppler_dest_free</type></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-document-has-attachments" role="function"> -<title>poppler_document_has_attachments ()</title> -<indexterm zone="poppler-document-has-attachments"><primary sortas="poppler_document_has_attachments">poppler_document_has_attachments</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_document_has_attachments (<link linkend="PopplerDocument">PopplerDocument</link> *document);</programlisting> -<para> -Returns <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> of <parameter>document</parameter> has any attachments.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>document</parameter> :</term> -<listitem><simpara> A <link linkend="PopplerDocument"><type>PopplerDocument</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>, if <parameter>document</parameter> has attachments. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-document-get-attachments" role="function"> -<title>poppler_document_get_attachments ()</title> -<indexterm zone="poppler-document-get-attachments"><primary sortas="poppler_document_get_attachments">poppler_document_get_attachments</primary></indexterm><programlisting><link linkend="GList">GList</link> * poppler_document_get_attachments (<link linkend="PopplerDocument">PopplerDocument</link> *document);</programlisting> -<para> -Returns a <link linkend="GList"><type>GList</type></link> containing <link linkend="PopplerAttachment"><type>PopplerAttachment</type></link><!-- -->s. These attachments -are unowned, and must be unreffed, and the list must be freed with -<link linkend="g-list-free"><function>g_list_free()</function></link>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>document</parameter> :</term> -<listitem><simpara> A <link linkend="PopplerDocument"><type>PopplerDocument</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a list of available attachments. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-document-get-form-field" role="function"> -<title>poppler_document_get_form_field ()</title> -<indexterm zone="poppler-document-get-form-field"><primary sortas="poppler_document_get_form_field">poppler_document_get_form_field</primary></indexterm><programlisting><link linkend="PopplerFormField">PopplerFormField</link> * poppler_document_get_form_field (<link linkend="PopplerDocument">PopplerDocument</link> *document, - <link linkend="gint">gint</link> id);</programlisting> -<para> -Returns the <link linkend="PopplerFormField"><type>PopplerFormField</type></link> for the given <parameter>id</parameter>. It must be freed with -<link linkend="g-object-unref"><function>g_object_unref()</function></link></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>document</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerDocument"><type>PopplerDocument</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>id</parameter> :</term> -<listitem><simpara> an id of a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new <link linkend="PopplerFormField"><type>PopplerFormField</type></link> or NULL if not found -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-index-iter-get-type" role="function"> -<title>poppler_index_iter_get_type ()</title> -<indexterm zone="poppler-index-iter-get-type"><primary sortas="poppler_index_iter_get_type">poppler_index_iter_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_index_iter_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-index-iter-new" role="function"> -<title>poppler_index_iter_new ()</title> -<indexterm zone="poppler-index-iter-new"><primary sortas="poppler_index_iter_new">poppler_index_iter_new</primary></indexterm><programlisting><link linkend="PopplerIndexIter">PopplerIndexIter</link> * poppler_index_iter_new (<link linkend="PopplerDocument">PopplerDocument</link> *document);</programlisting> -<para> -Returns the root <link linkend="PopplerIndexIter"><type>PopplerIndexIter</type></link> for <parameter>document</parameter>, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>. This must be -freed with <link linkend="poppler-index-iter-free"><function>poppler_index_iter_free()</function></link>. -</para> -<para> -Certain documents have an index associated with them. This index can be used -to help the user navigate the document, and is similar to a table of -contents. Each node in the index will contain a <link linkend="PopplerAction"><type>PopplerAction</type></link> that can be -displayed to the user — typically a <link linkend="POPPLER-ACTION-GOTO-DEST--CAPS"><type>POPPLER_ACTION_GOTO_DEST</type></link> or a -<link linkend="POPPLER-ACTION-URI--CAPS"><type>POPPLER_ACTION_URI</type></link><!-- -->. -</para> -<para> -Here is a simple example of some code that walks the full index: -</para> -<para> -<informalexample><programlisting> -static void -walk_index (PopplerIndexIter *iter) -{ - do - { - /<!-- -->* Get the the action and do something with it *<!-- -->/ - PopplerIndexIter *child = poppler_index_iter_get_child (iter); - if (child) - walk_index (child); - poppler_index_iter_free (child); - } - while (poppler_index_iter_next (iter)); -} -... -{ - iter = poppler_index_iter_new (document); - walk_index (iter); - poppler_index_iter_free (iter); -} -</programlisting></informalexample></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>document</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerDocument"><type>PopplerDocument</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new <link linkend="PopplerIndexIter"><type>PopplerIndexIter</type></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-index-iter-copy" role="function"> -<title>poppler_index_iter_copy ()</title> -<indexterm zone="poppler-index-iter-copy"><primary sortas="poppler_index_iter_copy">poppler_index_iter_copy</primary></indexterm><programlisting><link linkend="PopplerIndexIter">PopplerIndexIter</link> * poppler_index_iter_copy (<link linkend="PopplerIndexIter">PopplerIndexIter</link> *iter);</programlisting> -<para> -Creates a new <link linkend="PopplerIndexIter"><type>PopplerIndexIter</type></link> as a copy of <parameter>iter</parameter>. This must be freed with -<link linkend="poppler-index-iter-free"><function>poppler_index_iter_free()</function></link>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>iter</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerIndexIter"><type>PopplerIndexIter</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new <link linkend="PopplerIndexIter"><type>PopplerIndexIter</type></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-index-iter-free" role="function"> -<title>poppler_index_iter_free ()</title> -<indexterm zone="poppler-index-iter-free"><primary sortas="poppler_index_iter_free">poppler_index_iter_free</primary></indexterm><programlisting><link linkend="void">void</link> poppler_index_iter_free (<link linkend="PopplerIndexIter">PopplerIndexIter</link> *iter);</programlisting> -<para> -Frees <parameter>iter</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>iter</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerIndexIter"><type>PopplerIndexIter</type></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-index-iter-get-child" role="function"> -<title>poppler_index_iter_get_child ()</title> -<indexterm zone="poppler-index-iter-get-child"><primary sortas="poppler_index_iter_get_child">poppler_index_iter_get_child</primary></indexterm><programlisting><link linkend="PopplerIndexIter">PopplerIndexIter</link> * poppler_index_iter_get_child (<link linkend="PopplerIndexIter">PopplerIndexIter</link> *parent);</programlisting> -<para> -Returns a newly created child of <parameter>parent</parameter>, or <link linkend="NULL--CAPS"><literal>NULL</literal></link> if the iter has no child. -See <link linkend="poppler-index-iter-new"><function>poppler_index_iter_new()</function></link> for more information on this function.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>parent</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerIndexIter"><type>PopplerIndexIter</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new <link linkend="PopplerIndexIter"><type>PopplerIndexIter</type></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-index-iter-is-open" role="function"> -<title>poppler_index_iter_is_open ()</title> -<indexterm zone="poppler-index-iter-is-open"><primary sortas="poppler_index_iter_is_open">poppler_index_iter_is_open</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_index_iter_is_open (<link linkend="PopplerIndexIter">PopplerIndexIter</link> *iter);</programlisting> -<para> -Returns whether this node should be expanded by default to the user. The -document can provide a hint as to how the document's index should be expanded -initially.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>iter</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerIndexIter"><type>PopplerIndexIter</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>, if the document wants <parameter>iter</parameter> to be expanded -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-index-iter-get-action" role="function"> -<title>poppler_index_iter_get_action ()</title> -<indexterm zone="poppler-index-iter-get-action"><primary sortas="poppler_index_iter_get_action">poppler_index_iter_get_action</primary></indexterm><programlisting><link linkend="PopplerAction">PopplerAction</link> * poppler_index_iter_get_action (<link linkend="PopplerIndexIter">PopplerIndexIter</link> *iter);</programlisting> -<para> -Returns the <link linkend="PopplerAction"><type>PopplerAction</type></link> associated with <parameter>iter</parameter>. It must be freed with -<link linkend="poppler-action-free"><function>poppler_action_free()</function></link>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>iter</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerIndexIter"><type>PopplerIndexIter</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new <link linkend="PopplerAction"><type>PopplerAction</type></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-index-iter-next" role="function"> -<title>poppler_index_iter_next ()</title> -<indexterm zone="poppler-index-iter-next"><primary sortas="poppler_index_iter_next">poppler_index_iter_next</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_index_iter_next (<link linkend="PopplerIndexIter">PopplerIndexIter</link> *iter);</programlisting> -<para> -Sets <parameter>iter</parameter> to point to the next action at the current level, if valid. See -<link linkend="poppler-index-iter-new"><function>poppler_index_iter_new()</function></link> for more information.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>iter</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerIndexIter"><type>PopplerIndexIter</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>, if <parameter>iter</parameter> was set to the next action -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-font-info-new" role="function"> -<title>poppler_font_info_new ()</title> -<indexterm zone="poppler-font-info-new"><primary sortas="poppler_font_info_new">poppler_font_info_new</primary></indexterm><programlisting><link linkend="PopplerFontInfo">PopplerFontInfo</link> * poppler_font_info_new (<link linkend="PopplerDocument">PopplerDocument</link> *document);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>document</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-font-info-scan" role="function"> -<title>poppler_font_info_scan ()</title> -<indexterm zone="poppler-font-info-scan"><primary sortas="poppler_font_info_scan">poppler_font_info_scan</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_font_info_scan (<link linkend="PopplerFontInfo">PopplerFontInfo</link> *font_info, - <link linkend="int">int</link> n_pages, - <link linkend="PopplerFontsIter">PopplerFontsIter</link> **iter);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>font_info</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>n_pages</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>iter</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-font-info-free" role="function"> -<title>poppler_font_info_free ()</title> -<indexterm zone="poppler-font-info-free"><primary sortas="poppler_font_info_free">poppler_font_info_free</primary></indexterm><programlisting><link linkend="void">void</link> poppler_font_info_free (<link linkend="PopplerFontInfo">PopplerFontInfo</link> *font_info);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>font_info</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-fonts-iter-get-type" role="function"> -<title>poppler_fonts_iter_get_type ()</title> -<indexterm zone="poppler-fonts-iter-get-type"><primary sortas="poppler_fonts_iter_get_type">poppler_fonts_iter_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_fonts_iter_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-fonts-iter-copy" role="function"> -<title>poppler_fonts_iter_copy ()</title> -<indexterm zone="poppler-fonts-iter-copy"><primary sortas="poppler_fonts_iter_copy">poppler_fonts_iter_copy</primary></indexterm><programlisting><link linkend="PopplerFontsIter">PopplerFontsIter</link> * poppler_fonts_iter_copy (<link linkend="PopplerFontsIter">PopplerFontsIter</link> *iter);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>iter</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-fonts-iter-free" role="function"> -<title>poppler_fonts_iter_free ()</title> -<indexterm zone="poppler-fonts-iter-free"><primary sortas="poppler_fonts_iter_free">poppler_fonts_iter_free</primary></indexterm><programlisting><link linkend="void">void</link> poppler_fonts_iter_free (<link linkend="PopplerFontsIter">PopplerFontsIter</link> *iter);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>iter</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-fonts-iter-get-name" role="function"> -<title>poppler_fonts_iter_get_name ()</title> -<indexterm zone="poppler-fonts-iter-get-name"><primary sortas="poppler_fonts_iter_get_name">poppler_fonts_iter_get_name</primary></indexterm><programlisting>const <link linkend="char">char</link> * poppler_fonts_iter_get_name (<link linkend="PopplerFontsIter">PopplerFontsIter</link> *iter);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>iter</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-fonts-iter-get-full-name" role="function"> -<title>poppler_fonts_iter_get_full_name ()</title> -<indexterm zone="poppler-fonts-iter-get-full-name"><primary sortas="poppler_fonts_iter_get_full_name">poppler_fonts_iter_get_full_name</primary></indexterm><programlisting>const <link linkend="char">char</link> * poppler_fonts_iter_get_full_name (<link linkend="PopplerFontsIter">PopplerFontsIter</link> *iter);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>iter</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-fonts-iter-get-font-type" role="function"> -<title>poppler_fonts_iter_get_font_type ()</title> -<indexterm zone="poppler-fonts-iter-get-font-type"><primary sortas="poppler_fonts_iter_get_font_type">poppler_fonts_iter_get_font_type</primary></indexterm><programlisting><link linkend="PopplerFontType">PopplerFontType</link> poppler_fonts_iter_get_font_type (<link linkend="PopplerFontsIter">PopplerFontsIter</link> *iter);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>iter</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-fonts-iter-is-embedded" role="function"> -<title>poppler_fonts_iter_is_embedded ()</title> -<indexterm zone="poppler-fonts-iter-is-embedded"><primary sortas="poppler_fonts_iter_is_embedded">poppler_fonts_iter_is_embedded</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_fonts_iter_is_embedded (<link linkend="PopplerFontsIter">PopplerFontsIter</link> *iter);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>iter</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-fonts-iter-is-subset" role="function"> -<title>poppler_fonts_iter_is_subset ()</title> -<indexterm zone="poppler-fonts-iter-is-subset"><primary sortas="poppler_fonts_iter_is_subset">poppler_fonts_iter_is_subset</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_fonts_iter_is_subset (<link linkend="PopplerFontsIter">PopplerFontsIter</link> *iter);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>iter</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-fonts-iter-next" role="function"> -<title>poppler_fonts_iter_next ()</title> -<indexterm zone="poppler-fonts-iter-next"><primary sortas="poppler_fonts_iter_next">poppler_fonts_iter_next</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_fonts_iter_next (<link linkend="PopplerFontsIter">PopplerFontsIter</link> *iter);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>iter</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-ps-file-new" role="function"> -<title>poppler_ps_file_new ()</title> -<indexterm zone="poppler-ps-file-new"><primary sortas="poppler_ps_file_new">poppler_ps_file_new</primary></indexterm><programlisting><link linkend="PopplerPSFile">PopplerPSFile</link> * poppler_ps_file_new (<link linkend="PopplerDocument">PopplerDocument</link> *document, - const <link linkend="char">char</link> *filename, - <link linkend="int">int</link> first_page, - <link linkend="int">int</link> n_pages);</programlisting> -<para> -Create a new postscript file to render to</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>document</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerDocument"><type>PopplerDocument</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>filename</parameter> :</term> -<listitem><simpara> the path of the output filename -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>first_page</parameter> :</term> -<listitem><simpara> the first page to print -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>n_pages</parameter> :</term> -<listitem><simpara> the number of pages to print -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a PopplerPSFile -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-ps-file-set-paper-size" role="function"> -<title>poppler_ps_file_set_paper_size ()</title> -<indexterm zone="poppler-ps-file-set-paper-size"><primary sortas="poppler_ps_file_set_paper_size">poppler_ps_file_set_paper_size</primary></indexterm><programlisting><link linkend="void">void</link> poppler_ps_file_set_paper_size (<link linkend="PopplerPSFile">PopplerPSFile</link> *ps_file, - <link linkend="double">double</link> width, - <link linkend="double">double</link> height);</programlisting> -<para> -Set the output paper size. These values will end up in the -DocumentMedia, the BoundingBox DSC comments and other places in the -generated PostScript.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>ps_file</parameter> :</term> -<listitem><simpara> a PopplerPSFile which was not yet printed to. -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>width</parameter> :</term> -<listitem><simpara> the paper width in 1/72 inch -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>height</parameter> :</term> -<listitem><simpara> the paper height in 1/72 inch -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-ps-file-set-duplex" role="function"> -<title>poppler_ps_file_set_duplex ()</title> -<indexterm zone="poppler-ps-file-set-duplex"><primary sortas="poppler_ps_file_set_duplex">poppler_ps_file_set_duplex</primary></indexterm><programlisting><link linkend="void">void</link> poppler_ps_file_set_duplex (<link linkend="PopplerPSFile">PopplerPSFile</link> *ps_file, - <link linkend="gboolean">gboolean</link> duplex);</programlisting> -<para> -Enable or disable Duplex printing.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>ps_file</parameter> :</term> -<listitem><simpara> a PopplerPSFile which was not yet printed to -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>duplex</parameter> :</term> -<listitem><simpara> whether to force duplex printing (on printers which support this) -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-ps-file-free" role="function"> -<title>poppler_ps_file_free ()</title> -<indexterm zone="poppler-ps-file-free"><primary sortas="poppler_ps_file_free">poppler_ps_file_free</primary></indexterm><programlisting><link linkend="void">void</link> poppler_ps_file_free (<link linkend="PopplerPSFile">PopplerPSFile</link> *ps_file);</programlisting> -<para> -Frees <parameter>ps_file</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>ps_file</parameter> :</term> -<listitem><simpara> a PopplerPSFile -</simpara></listitem></varlistentry> -</variablelist></refsect2> - -</refsect1> - - - - -</refentry> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-enums.xml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-enums.xml deleted file mode 100644 index cf0b0aa7d7a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-enums.xml +++ /dev/null @@ -1,275 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<refentry id="poppler-poppler-enums"> -<refmeta> -<refentrytitle role="top_of_page" id="poppler-poppler-enums.top_of_page">poppler-enums</refentrytitle> -<manvolnum>3</manvolnum> -<refmiscinfo>POPPLER Library</refmiscinfo> -</refmeta> - -<refnamediv> -<refname>poppler-enums</refname> -<refpurpose></refpurpose> -</refnamediv> - -<refsynopsisdiv id="poppler-poppler-enums.synopsis" role="synopsis"> -<title role="synopsis.title">Synopsis</title> - -<synopsis> -#define <link linkend="POPPLER-TYPE-ACTION-TYPE--CAPS">POPPLER_TYPE_ACTION_TYPE</link> -<link linkend="GType">GType</link> <link linkend="poppler-action-type-get-type">poppler_action_type_get_type</link> (void); -#define <link linkend="POPPLER-TYPE-DEST-TYPE--CAPS">POPPLER_TYPE_DEST_TYPE</link> -<link linkend="GType">GType</link> <link linkend="poppler-dest-type-get-type">poppler_dest_type_get_type</link> (void); -#define <link linkend="POPPLER-TYPE-PAGE-LAYOUT--CAPS">POPPLER_TYPE_PAGE_LAYOUT</link> -<link linkend="GType">GType</link> <link linkend="poppler-page-layout-get-type">poppler_page_layout_get_type</link> (void); -#define <link linkend="POPPLER-TYPE-PAGE-MODE--CAPS">POPPLER_TYPE_PAGE_MODE</link> -<link linkend="GType">GType</link> <link linkend="poppler-page-mode-get-type">poppler_page_mode_get_type</link> (void); -#define <link linkend="POPPLER-TYPE-FONT-TYPE--CAPS">POPPLER_TYPE_FONT_TYPE</link> -<link linkend="GType">GType</link> <link linkend="poppler-font-type-get-type">poppler_font_type_get_type</link> (void); -#define <link linkend="POPPLER-TYPE-VIEWER-PREFERENCES--CAPS">POPPLER_TYPE_VIEWER_PREFERENCES</link> -<link linkend="GType">GType</link> <link linkend="poppler-viewer-preferences-get-type">poppler_viewer_preferences_get_type</link> (void); -#define <link linkend="POPPLER-TYPE-PERMISSIONS--CAPS">POPPLER_TYPE_PERMISSIONS</link> -<link linkend="GType">GType</link> <link linkend="poppler-permissions-get-type">poppler_permissions_get_type</link> (void); -#define <link linkend="POPPLER-TYPE-SELECTION-STYLE--CAPS">POPPLER_TYPE_SELECTION_STYLE</link> -<link linkend="GType">GType</link> <link linkend="poppler-selection-style-get-type">poppler_selection_style_get_type</link> (void); -#define <link linkend="POPPLER-TYPE-PAGE-TRANSITION-TYPE--CAPS">POPPLER_TYPE_PAGE_TRANSITION_TYPE</link> -<link linkend="GType">GType</link> <link linkend="poppler-page-transition-type-get-type">poppler_page_transition_type_get_type</link> - (void); -#define <link linkend="POPPLER-TYPE-PAGE-TRANSITION-ALIGNMENT--CAPS">POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT</link> -<link linkend="GType">GType</link> <link linkend="poppler-page-transition-alignment-get-type">poppler_page_transition_alignment_get_type</link> - (void); -#define <link linkend="POPPLER-TYPE-PAGE-TRANSITION-DIRECTION--CAPS">POPPLER_TYPE_PAGE_TRANSITION_DIRECTION</link> -<link linkend="GType">GType</link> <link linkend="poppler-page-transition-direction-get-type">poppler_page_transition_direction_get_type</link> - (void); -#define <link linkend="POPPLER-TYPE-ERROR--CAPS">POPPLER_TYPE_ERROR</link> -<link linkend="GType">GType</link> <link linkend="poppler-error-get-type">poppler_error_get_type</link> (void); -#define <link linkend="POPPLER-TYPE-ORIENTATION--CAPS">POPPLER_TYPE_ORIENTATION</link> -<link linkend="GType">GType</link> <link linkend="poppler-orientation-get-type">poppler_orientation_get_type</link> (void); -#define <link linkend="POPPLER-TYPE-BACKEND--CAPS">POPPLER_TYPE_BACKEND</link> -<link linkend="GType">GType</link> <link linkend="poppler-backend-get-type">poppler_backend_get_type</link> (void); -</synopsis> -</refsynopsisdiv> - - - - - - - - - -<refsect1 id="poppler-poppler-enums.description" role="desc"> -<title role="desc.title">Description</title> -<para> -</para> -</refsect1> - -<refsect1 id="poppler-poppler-enums.details" role="details"> -<title role="details.title">Details</title> -<refsect2 id="POPPLER-TYPE-ACTION-TYPE--CAPS" role="macro"> -<title>POPPLER_TYPE_ACTION_TYPE</title> -<indexterm zone="POPPLER-TYPE-ACTION-TYPE--CAPS"><primary sortas="POPPLER_TYPE_ACTION_TYPE">POPPLER_TYPE_ACTION_TYPE</primary></indexterm><programlisting>#define POPPLER_TYPE_ACTION_TYPE (poppler_action_type_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-action-type-get-type" role="function"> -<title>poppler_action_type_get_type ()</title> -<indexterm zone="poppler-action-type-get-type"><primary sortas="poppler_action_type_get_type">poppler_action_type_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_action_type_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-DEST-TYPE--CAPS" role="macro"> -<title>POPPLER_TYPE_DEST_TYPE</title> -<indexterm zone="POPPLER-TYPE-DEST-TYPE--CAPS"><primary sortas="POPPLER_TYPE_DEST_TYPE">POPPLER_TYPE_DEST_TYPE</primary></indexterm><programlisting>#define POPPLER_TYPE_DEST_TYPE (poppler_dest_type_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-dest-type-get-type" role="function"> -<title>poppler_dest_type_get_type ()</title> -<indexterm zone="poppler-dest-type-get-type"><primary sortas="poppler_dest_type_get_type">poppler_dest_type_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_dest_type_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-PAGE-LAYOUT--CAPS" role="macro"> -<title>POPPLER_TYPE_PAGE_LAYOUT</title> -<indexterm zone="POPPLER-TYPE-PAGE-LAYOUT--CAPS"><primary sortas="POPPLER_TYPE_PAGE_LAYOUT">POPPLER_TYPE_PAGE_LAYOUT</primary></indexterm><programlisting>#define POPPLER_TYPE_PAGE_LAYOUT (poppler_page_layout_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-page-layout-get-type" role="function"> -<title>poppler_page_layout_get_type ()</title> -<indexterm zone="poppler-page-layout-get-type"><primary sortas="poppler_page_layout_get_type">poppler_page_layout_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_page_layout_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-PAGE-MODE--CAPS" role="macro"> -<title>POPPLER_TYPE_PAGE_MODE</title> -<indexterm zone="POPPLER-TYPE-PAGE-MODE--CAPS"><primary sortas="POPPLER_TYPE_PAGE_MODE">POPPLER_TYPE_PAGE_MODE</primary></indexterm><programlisting>#define POPPLER_TYPE_PAGE_MODE (poppler_page_mode_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-page-mode-get-type" role="function"> -<title>poppler_page_mode_get_type ()</title> -<indexterm zone="poppler-page-mode-get-type"><primary sortas="poppler_page_mode_get_type">poppler_page_mode_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_page_mode_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-FONT-TYPE--CAPS" role="macro"> -<title>POPPLER_TYPE_FONT_TYPE</title> -<indexterm zone="POPPLER-TYPE-FONT-TYPE--CAPS"><primary sortas="POPPLER_TYPE_FONT_TYPE">POPPLER_TYPE_FONT_TYPE</primary></indexterm><programlisting>#define POPPLER_TYPE_FONT_TYPE (poppler_font_type_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-font-type-get-type" role="function"> -<title>poppler_font_type_get_type ()</title> -<indexterm zone="poppler-font-type-get-type"><primary sortas="poppler_font_type_get_type">poppler_font_type_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_font_type_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-VIEWER-PREFERENCES--CAPS" role="macro"> -<title>POPPLER_TYPE_VIEWER_PREFERENCES</title> -<indexterm zone="POPPLER-TYPE-VIEWER-PREFERENCES--CAPS"><primary sortas="POPPLER_TYPE_VIEWER_PREFERENCES">POPPLER_TYPE_VIEWER_PREFERENCES</primary></indexterm><programlisting>#define POPPLER_TYPE_VIEWER_PREFERENCES (poppler_viewer_preferences_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-viewer-preferences-get-type" role="function"> -<title>poppler_viewer_preferences_get_type ()</title> -<indexterm zone="poppler-viewer-preferences-get-type"><primary sortas="poppler_viewer_preferences_get_type">poppler_viewer_preferences_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_viewer_preferences_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-PERMISSIONS--CAPS" role="macro"> -<title>POPPLER_TYPE_PERMISSIONS</title> -<indexterm zone="POPPLER-TYPE-PERMISSIONS--CAPS"><primary sortas="POPPLER_TYPE_PERMISSIONS">POPPLER_TYPE_PERMISSIONS</primary></indexterm><programlisting>#define POPPLER_TYPE_PERMISSIONS (poppler_permissions_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-permissions-get-type" role="function"> -<title>poppler_permissions_get_type ()</title> -<indexterm zone="poppler-permissions-get-type"><primary sortas="poppler_permissions_get_type">poppler_permissions_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_permissions_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-SELECTION-STYLE--CAPS" role="macro"> -<title>POPPLER_TYPE_SELECTION_STYLE</title> -<indexterm zone="POPPLER-TYPE-SELECTION-STYLE--CAPS"><primary sortas="POPPLER_TYPE_SELECTION_STYLE">POPPLER_TYPE_SELECTION_STYLE</primary></indexterm><programlisting>#define POPPLER_TYPE_SELECTION_STYLE (poppler_selection_style_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-selection-style-get-type" role="function"> -<title>poppler_selection_style_get_type ()</title> -<indexterm zone="poppler-selection-style-get-type"><primary sortas="poppler_selection_style_get_type">poppler_selection_style_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_selection_style_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-PAGE-TRANSITION-TYPE--CAPS" role="macro"> -<title>POPPLER_TYPE_PAGE_TRANSITION_TYPE</title> -<indexterm zone="POPPLER-TYPE-PAGE-TRANSITION-TYPE--CAPS"><primary sortas="POPPLER_TYPE_PAGE_TRANSITION_TYPE">POPPLER_TYPE_PAGE_TRANSITION_TYPE</primary></indexterm><programlisting>#define POPPLER_TYPE_PAGE_TRANSITION_TYPE (poppler_page_transition_type_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-page-transition-type-get-type" role="function"> -<title>poppler_page_transition_type_get_type ()</title> -<indexterm zone="poppler-page-transition-type-get-type"><primary sortas="poppler_page_transition_type_get_type">poppler_page_transition_type_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_page_transition_type_get_type - (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-PAGE-TRANSITION-ALIGNMENT--CAPS" role="macro"> -<title>POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT</title> -<indexterm zone="POPPLER-TYPE-PAGE-TRANSITION-ALIGNMENT--CAPS"><primary sortas="POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT">POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT</primary></indexterm><programlisting>#define POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT (poppler_page_transition_alignment_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-page-transition-alignment-get-type" role="function"> -<title>poppler_page_transition_alignment_get_type ()</title> -<indexterm zone="poppler-page-transition-alignment-get-type"><primary sortas="poppler_page_transition_alignment_get_type">poppler_page_transition_alignment_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_page_transition_alignment_get_type - (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-PAGE-TRANSITION-DIRECTION--CAPS" role="macro"> -<title>POPPLER_TYPE_PAGE_TRANSITION_DIRECTION</title> -<indexterm zone="POPPLER-TYPE-PAGE-TRANSITION-DIRECTION--CAPS"><primary sortas="POPPLER_TYPE_PAGE_TRANSITION_DIRECTION">POPPLER_TYPE_PAGE_TRANSITION_DIRECTION</primary></indexterm><programlisting>#define POPPLER_TYPE_PAGE_TRANSITION_DIRECTION (poppler_page_transition_direction_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-page-transition-direction-get-type" role="function"> -<title>poppler_page_transition_direction_get_type ()</title> -<indexterm zone="poppler-page-transition-direction-get-type"><primary sortas="poppler_page_transition_direction_get_type">poppler_page_transition_direction_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_page_transition_direction_get_type - (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-ERROR--CAPS" role="macro"> -<title>POPPLER_TYPE_ERROR</title> -<indexterm zone="POPPLER-TYPE-ERROR--CAPS"><primary sortas="POPPLER_TYPE_ERROR">POPPLER_TYPE_ERROR</primary></indexterm><programlisting>#define POPPLER_TYPE_ERROR (poppler_error_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-error-get-type" role="function"> -<title>poppler_error_get_type ()</title> -<indexterm zone="poppler-error-get-type"><primary sortas="poppler_error_get_type">poppler_error_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_error_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-ORIENTATION--CAPS" role="macro"> -<title>POPPLER_TYPE_ORIENTATION</title> -<indexterm zone="POPPLER-TYPE-ORIENTATION--CAPS"><primary sortas="POPPLER_TYPE_ORIENTATION">POPPLER_TYPE_ORIENTATION</primary></indexterm><programlisting>#define POPPLER_TYPE_ORIENTATION (poppler_orientation_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-orientation-get-type" role="function"> -<title>poppler_orientation_get_type ()</title> -<indexterm zone="poppler-orientation-get-type"><primary sortas="poppler_orientation_get_type">poppler_orientation_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_orientation_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-BACKEND--CAPS" role="macro"> -<title>POPPLER_TYPE_BACKEND</title> -<indexterm zone="POPPLER-TYPE-BACKEND--CAPS"><primary sortas="POPPLER_TYPE_BACKEND">POPPLER_TYPE_BACKEND</primary></indexterm><programlisting>#define POPPLER_TYPE_BACKEND (poppler_backend_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-backend-get-type" role="function"> -<title>poppler_backend_get_type ()</title> -<indexterm zone="poppler-backend-get-type"><primary sortas="poppler_backend_get_type">poppler_backend_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_backend_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> - -</refsect1> - - - - -</refentry> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-features.xml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-features.xml deleted file mode 100644 index 29b60abedb5..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-features.xml +++ /dev/null @@ -1,114 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<refentry id="poppler-poppler-features"> -<refmeta> -<refentrytitle role="top_of_page" id="poppler-poppler-features.top_of_page">Version and Features Information</refentrytitle> -<manvolnum>3</manvolnum> -<refmiscinfo>POPPLER Library</refmiscinfo> -</refmeta> - -<refnamediv> -<refname>Version and Features Information</refname> -<refpurpose>Variables and functions to check the poppler version and features</refpurpose> -</refnamediv> - -<refsynopsisdiv id="poppler-poppler-features.synopsis" role="synopsis"> -<title role="synopsis.title">Synopsis</title> - -<synopsis> -#define <link linkend="POPPLER-HAS-CAIRO--CAPS">POPPLER_HAS_CAIRO</link> -#define <link linkend="POPPLER-WITH-GDK--CAPS">POPPLER_WITH_GDK</link> -#define <link linkend="POPPLER-MAJOR-VERSION--CAPS">POPPLER_MAJOR_VERSION</link> -#define <link linkend="POPPLER-MINOR-VERSION--CAPS">POPPLER_MINOR_VERSION</link> -#define <link linkend="POPPLER-MICRO-VERSION--CAPS">POPPLER_MICRO_VERSION</link> -#define <link linkend="POPPLER-CHECK-VERSION--CAPS">POPPLER_CHECK_VERSION</link> (major,minor,micro) -</synopsis> -</refsynopsisdiv> - - - - - - - - - -<refsect1 id="poppler-poppler-features.description" role="desc"> -<title role="desc.title">Description</title> -<para> -Poppler provides version information, and information about features -enabled at compile time. This is primarily useful in configure checks -for builds that have a configure script, or for allowing code to optionally -depend but not require a specific poppler version. -</para> -</refsect1> - -<refsect1 id="poppler-poppler-features.details" role="details"> -<title role="details.title">Details</title> -<refsect2 id="POPPLER-HAS-CAIRO--CAPS" role="macro"> -<title>POPPLER_HAS_CAIRO</title> -<indexterm zone="POPPLER-HAS-CAIRO--CAPS"><primary sortas="POPPLER_HAS_CAIRO">POPPLER_HAS_CAIRO</primary></indexterm><programlisting>#define POPPLER_HAS_CAIRO 1 -</programlisting> -<para> -Defined if poppler was compiled with cairo support. -</para></refsect2> -<refsect2 id="POPPLER-WITH-GDK--CAPS" role="macro"> -<title>POPPLER_WITH_GDK</title> -<indexterm zone="POPPLER-WITH-GDK--CAPS"><primary sortas="POPPLER_WITH_GDK">POPPLER_WITH_GDK</primary></indexterm><programlisting>#define POPPLER_WITH_GDK 1 -</programlisting> -<para> -Defined if poppler was compiled with GDK support. -</para></refsect2> -<refsect2 id="POPPLER-MAJOR-VERSION--CAPS" role="macro"> -<title>POPPLER_MAJOR_VERSION</title> -<indexterm zone="POPPLER-MAJOR-VERSION--CAPS"><primary sortas="POPPLER_MAJOR_VERSION">POPPLER_MAJOR_VERSION</primary></indexterm><programlisting>#define POPPLER_MAJOR_VERSION (0) -</programlisting> -<para> -The major version number of the poppler header files (e.g. in poppler version -0.1.2 this is 0.) -</para> -Since: 0.11</refsect2> -<refsect2 id="POPPLER-MINOR-VERSION--CAPS" role="macro"> -<title>POPPLER_MINOR_VERSION</title> -<indexterm zone="POPPLER-MINOR-VERSION--CAPS"><primary sortas="POPPLER_MINOR_VERSION">POPPLER_MINOR_VERSION</primary></indexterm><programlisting>#define POPPLER_MINOR_VERSION (12) -</programlisting> -<para> -</para> -The major version number of the poppler header files (e.g. in poppler version -0.1.2 this is 1.) -Since: 0.11</refsect2> -<refsect2 id="POPPLER-MICRO-VERSION--CAPS" role="macro"> -<title>POPPLER_MICRO_VERSION</title> -<indexterm zone="POPPLER-MICRO-VERSION--CAPS"><primary sortas="POPPLER_MICRO_VERSION">POPPLER_MICRO_VERSION</primary></indexterm><programlisting>#define POPPLER_MICRO_VERSION (4) -</programlisting> -<para> -The micro version number of the poppler header files (e.g. in poppler version -0.1.2 this is 2.) -</para> -Since: 0.11</refsect2> -<refsect2 id="POPPLER-CHECK-VERSION--CAPS" role="macro"> -<title>POPPLER_CHECK_VERSION()</title> -<indexterm zone="POPPLER-CHECK-VERSION--CAPS"><primary sortas="POPPLER_CHECK_VERSION">POPPLER_CHECK_VERSION</primary></indexterm><programlisting>#define POPPLER_CHECK_VERSION(major,minor,micro)</programlisting> -<para> -Returns <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if the version of the poppler header files is the same -as or newer than the passed-in version. -</para><variablelist role="params"> -<varlistentry><term><parameter>major</parameter> :</term> -<listitem><simpara>major version (e.g. 0 for version 0.1.2) -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>minor</parameter> :</term> -<listitem><simpara>minor version (e.g. 1 for version 0.1.2) -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>micro</parameter> :</term> -<listitem><simpara>micro version (e.g. 2 for version 0.1.2) -Since: 0.11 -</simpara></listitem></varlistentry> -</variablelist></refsect2> - -</refsect1> - - - - -</refentry> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-form-field.xml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-form-field.xml deleted file mode 100644 index 13b1ae75032..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-form-field.xml +++ /dev/null @@ -1,546 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<refentry id="poppler-poppler-form-field"> -<refmeta> -<refentrytitle role="top_of_page" id="poppler-poppler-form-field.top_of_page">PopplerFormField</refentrytitle> -<manvolnum>3</manvolnum> -<refmiscinfo>POPPLER Library</refmiscinfo> -</refmeta> - -<refnamediv> -<refname>PopplerFormField</refname> -<refpurpose></refpurpose> -</refnamediv> - -<refsynopsisdiv id="poppler-poppler-form-field.synopsis" role="synopsis"> -<title role="synopsis.title">Synopsis</title> -<anchor id="PopplerFormField"/> -<synopsis> - <link linkend="PopplerFormField-struct">PopplerFormField</link>; -enum <link linkend="PopplerFormButtonType">PopplerFormButtonType</link>; -enum <link linkend="PopplerFormChoiceType">PopplerFormChoiceType</link>; -enum <link linkend="PopplerFormFieldType">PopplerFormFieldType</link>; -enum <link linkend="PopplerFormTextType">PopplerFormTextType</link>; -<link linkend="gint">gint</link> <link linkend="poppler-form-field-get-id">poppler_form_field_get_id</link> (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="PopplerFormFieldType">PopplerFormFieldType</link> <link linkend="poppler-form-field-get-field-type">poppler_form_field_get_field_type</link> (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-form-field-is-read-only">poppler_form_field_is_read_only</link> (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="gdouble">gdouble</link> <link linkend="poppler-form-field-get-font-size">poppler_form_field_get_font_size</link> (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="PopplerFormButtonType">PopplerFormButtonType</link> <link linkend="poppler-form-field-button-get-button-type">poppler_form_field_button_get_button_type</link> - (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-form-field-button-get-state">poppler_form_field_button_get_state</link> (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="void">void</link> <link linkend="poppler-form-field-button-set-state">poppler_form_field_button_set_state</link> (<link linkend="PopplerFormField">PopplerFormField</link> *field, - <link linkend="gboolean">gboolean</link> state); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-form-field-choice-can-select-multiple">poppler_form_field_choice_can_select_multiple</link> - (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-form-field-choice-commit-on-change">poppler_form_field_choice_commit_on_change</link> - (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-form-field-choice-do-spell-check">poppler_form_field_choice_do_spell_check</link> - (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="PopplerFormChoiceType">PopplerFormChoiceType</link> <link linkend="poppler-form-field-choice-get-choice-type">poppler_form_field_choice_get_choice_type</link> - (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="gchar">gchar</link> * <link linkend="poppler-form-field-choice-get-item">poppler_form_field_choice_get_item</link> (<link linkend="PopplerFormField">PopplerFormField</link> *field, - <link linkend="gint">gint</link> index); -<link linkend="gint">gint</link> <link linkend="poppler-form-field-choice-get-n-items">poppler_form_field_choice_get_n_items</link> - (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="gchar">gchar</link> * <link linkend="poppler-form-field-choice-get-text">poppler_form_field_choice_get_text</link> (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-form-field-choice-is-editable">poppler_form_field_choice_is_editable</link> - (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-form-field-choice-is-item-selected">poppler_form_field_choice_is_item_selected</link> - (<link linkend="PopplerFormField">PopplerFormField</link> *field, - <link linkend="gint">gint</link> index); -<link linkend="void">void</link> <link linkend="poppler-form-field-choice-select-item">poppler_form_field_choice_select_item</link> - (<link linkend="PopplerFormField">PopplerFormField</link> *field, - <link linkend="gint">gint</link> index); -<link linkend="void">void</link> <link linkend="poppler-form-field-choice-set-text">poppler_form_field_choice_set_text</link> (<link linkend="PopplerFormField">PopplerFormField</link> *field, - const <link linkend="gchar">gchar</link> *text); -<link linkend="void">void</link> <link linkend="poppler-form-field-choice-toggle-item">poppler_form_field_choice_toggle_item</link> - (<link linkend="PopplerFormField">PopplerFormField</link> *field, - <link linkend="gint">gint</link> index); -<link linkend="void">void</link> <link linkend="poppler-form-field-choice-unselect-all">poppler_form_field_choice_unselect_all</link> - (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-form-field-text-do-scroll">poppler_form_field_text_do_scroll</link> (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-form-field-text-do-spell-check">poppler_form_field_text_do_spell_check</link> - (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="gint">gint</link> <link linkend="poppler-form-field-text-get-max-len">poppler_form_field_text_get_max_len</link> (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="gchar">gchar</link> * <link linkend="poppler-form-field-text-get-text">poppler_form_field_text_get_text</link> (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="PopplerFormTextType">PopplerFormTextType</link> <link linkend="poppler-form-field-text-get-text-type">poppler_form_field_text_get_text_type</link> - (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-form-field-text-is-password">poppler_form_field_text_is_password</link> (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-form-field-text-is-rich-text">poppler_form_field_text_is_rich_text</link> - (<link linkend="PopplerFormField">PopplerFormField</link> *field); -<link linkend="void">void</link> <link linkend="poppler-form-field-text-set-text">poppler_form_field_text_set_text</link> (<link linkend="PopplerFormField">PopplerFormField</link> *field, - const <link linkend="gchar">gchar</link> *text); -</synopsis> -</refsynopsisdiv> - -<refsect1 id="poppler-poppler-form-field.object-hierarchy" role="object_hierarchy"> -<title role="object_hierarchy.title">Object Hierarchy</title> -<synopsis> - <link linkend="GObject">GObject</link> - +----PopplerFormField -</synopsis> -</refsect1> - - - - - - - - -<refsect1 id="poppler-poppler-form-field.description" role="desc"> -<title role="desc.title">Description</title> -<para> -</para> -</refsect1> - -<refsect1 id="poppler-poppler-form-field.details" role="details"> -<title role="details.title">Details</title> -<refsect2 id="PopplerFormField-struct" role="struct"> -<title>PopplerFormField</title> -<indexterm zone="PopplerFormField-struct"><primary sortas="PopplerFormField">PopplerFormField</primary></indexterm><programlisting>typedef struct _PopplerFormField PopplerFormField;</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerFormButtonType" role="enum"> -<title>enum PopplerFormButtonType</title> -<indexterm zone="PopplerFormButtonType"><primary sortas="PopplerFormButtonType">PopplerFormButtonType</primary></indexterm><programlisting>typedef enum -{ - POPPLER_FORM_BUTTON_PUSH, - POPPLER_FORM_BUTTON_CHECK, - POPPLER_FORM_BUTTON_RADIO -} PopplerFormButtonType; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerFormChoiceType" role="enum"> -<title>enum PopplerFormChoiceType</title> -<indexterm zone="PopplerFormChoiceType"><primary sortas="PopplerFormChoiceType">PopplerFormChoiceType</primary></indexterm><programlisting>typedef enum -{ - POPPLER_FORM_CHOICE_COMBO, - POPPLER_FORM_CHOICE_LIST -} PopplerFormChoiceType; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerFormFieldType" role="enum"> -<title>enum PopplerFormFieldType</title> -<indexterm zone="PopplerFormFieldType"><primary sortas="PopplerFormFieldType">PopplerFormFieldType</primary></indexterm><programlisting>typedef enum -{ - POPPLER_FORM_FIELD_UNKNOWN, - POPPLER_FORM_FIELD_BUTTON, - POPPLER_FORM_FIELD_TEXT, - POPPLER_FORM_FIELD_CHOICE, - POPPLER_FORM_FIELD_SIGNATURE -} PopplerFormFieldType; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerFormTextType" role="enum"> -<title>enum PopplerFormTextType</title> -<indexterm zone="PopplerFormTextType"><primary sortas="PopplerFormTextType">PopplerFormTextType</primary></indexterm><programlisting>typedef enum -{ - POPPLER_FORM_TEXT_NORMAL, - POPPLER_FORM_TEXT_MULTILINE, - POPPLER_FORM_TEXT_FILE_SELECT -} PopplerFormTextType; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-form-field-get-id" role="function"> -<title>poppler_form_field_get_id ()</title> -<indexterm zone="poppler-form-field-get-id"><primary sortas="poppler_form_field_get_id">poppler_form_field_get_id</primary></indexterm><programlisting><link linkend="gint">gint</link> poppler_form_field_get_id (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Gets the id of <parameter>field</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the id of <parameter>field</parameter> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-get-field-type" role="function"> -<title>poppler_form_field_get_field_type ()</title> -<indexterm zone="poppler-form-field-get-field-type"><primary sortas="poppler_form_field_get_field_type">poppler_form_field_get_field_type</primary></indexterm><programlisting><link linkend="PopplerFormFieldType">PopplerFormFieldType</link> poppler_form_field_get_field_type (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Gets the type of <parameter>field</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="PopplerFormFieldType"><type>PopplerFormFieldType</type></link> of <parameter>field</parameter> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-is-read-only" role="function"> -<title>poppler_form_field_is_read_only ()</title> -<indexterm zone="poppler-form-field-is-read-only"><primary sortas="poppler_form_field_is_read_only">poppler_form_field_is_read_only</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_form_field_is_read_only (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Checks whether <parameter>field</parameter> is read only</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if <parameter>field</parameter> is read only -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-get-font-size" role="function"> -<title>poppler_form_field_get_font_size ()</title> -<indexterm zone="poppler-form-field-get-font-size"><primary sortas="poppler_form_field_get_font_size">poppler_form_field_get_font_size</primary></indexterm><programlisting><link linkend="gdouble">gdouble</link> poppler_form_field_get_font_size (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Gets the font size of <parameter>field</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the font size of <parameter>field</parameter> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-button-get-button-type" role="function"> -<title>poppler_form_field_button_get_button_type ()</title> -<indexterm zone="poppler-form-field-button-get-button-type"><primary sortas="poppler_form_field_button_get_button_type">poppler_form_field_button_get_button_type</primary></indexterm><programlisting><link linkend="PopplerFormButtonType">PopplerFormButtonType</link> poppler_form_field_button_get_button_type - (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Gets the button type of <parameter>field</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="PopplerFormButtonType"><type>PopplerFormButtonType</type></link> of <parameter>field</parameter> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-button-get-state" role="function"> -<title>poppler_form_field_button_get_state ()</title> -<indexterm zone="poppler-form-field-button-get-state"><primary sortas="poppler_form_field_button_get_state">poppler_form_field_button_get_state</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_form_field_button_get_state (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Queries a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> and returns its current state. Returns <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if -<parameter>field</parameter> is pressed in and <link linkend="FALSE--CAPS"><literal>FALSE</literal></link> if it is raised.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> current state of <parameter>field</parameter> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-button-set-state" role="function"> -<title>poppler_form_field_button_set_state ()</title> -<indexterm zone="poppler-form-field-button-set-state"><primary sortas="poppler_form_field_button_set_state">poppler_form_field_button_set_state</primary></indexterm><programlisting><link linkend="void">void</link> poppler_form_field_button_set_state (<link linkend="PopplerFormField">PopplerFormField</link> *field, - <link linkend="gboolean">gboolean</link> state);</programlisting> -<para> -Sets the status of <parameter>field</parameter>. Set to <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if you want the <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -to be 'pressed in', and <link linkend="FALSE--CAPS"><literal>FALSE</literal></link> to raise it.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>state</parameter> :</term> -<listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> or <link linkend="FALSE--CAPS"><literal>FALSE</literal></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-choice-can-select-multiple" role="function"> -<title>poppler_form_field_choice_can_select_multiple ()</title> -<indexterm zone="poppler-form-field-choice-can-select-multiple"><primary sortas="poppler_form_field_choice_can_select_multiple">poppler_form_field_choice_can_select_multiple</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_form_field_choice_can_select_multiple - (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Checks whether <parameter>field</parameter> allows multiple choices to be selected</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if <parameter>field</parameter> allows multiple choices to be selected -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-choice-commit-on-change" role="function"> -<title>poppler_form_field_choice_commit_on_change ()</title> -<indexterm zone="poppler-form-field-choice-commit-on-change"><primary sortas="poppler_form_field_choice_commit_on_change">poppler_form_field_choice_commit_on_change</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_form_field_choice_commit_on_change - (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-choice-do-spell-check" role="function"> -<title>poppler_form_field_choice_do_spell_check ()</title> -<indexterm zone="poppler-form-field-choice-do-spell-check"><primary sortas="poppler_form_field_choice_do_spell_check">poppler_form_field_choice_do_spell_check</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_form_field_choice_do_spell_check - (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Checks whether spell checking should be done for the contents of <parameter>field</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if spell checking should be done for <parameter>field</parameter> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-choice-get-choice-type" role="function"> -<title>poppler_form_field_choice_get_choice_type ()</title> -<indexterm zone="poppler-form-field-choice-get-choice-type"><primary sortas="poppler_form_field_choice_get_choice_type">poppler_form_field_choice_get_choice_type</primary></indexterm><programlisting><link linkend="PopplerFormChoiceType">PopplerFormChoiceType</link> poppler_form_field_choice_get_choice_type - (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Gets the choice type of <parameter>field</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="PopplerFormChoiceType"><type>PopplerFormChoiceType</type></link> of <parameter>field</parameter> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-choice-get-item" role="function"> -<title>poppler_form_field_choice_get_item ()</title> -<indexterm zone="poppler-form-field-choice-get-item"><primary sortas="poppler_form_field_choice_get_item">poppler_form_field_choice_get_item</primary></indexterm><programlisting><link linkend="gchar">gchar</link> * poppler_form_field_choice_get_item (<link linkend="PopplerFormField">PopplerFormField</link> *field, - <link linkend="gint">gint</link> index);</programlisting> -<para> -Returns the contents of the item on <parameter>field</parameter> at the given index</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>index</parameter> :</term> -<listitem><simpara> the index of the item -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new allocated string. It must be freed with <link linkend="g-free"><function>g_free()</function></link> when done. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-choice-get-n-items" role="function"> -<title>poppler_form_field_choice_get_n_items ()</title> -<indexterm zone="poppler-form-field-choice-get-n-items"><primary sortas="poppler_form_field_choice_get_n_items">poppler_form_field_choice_get_n_items</primary></indexterm><programlisting><link linkend="gint">gint</link> poppler_form_field_choice_get_n_items - (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Returns the number of items on <parameter>field</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the number of items on <parameter>field</parameter> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-choice-get-text" role="function"> -<title>poppler_form_field_choice_get_text ()</title> -<indexterm zone="poppler-form-field-choice-get-text"><primary sortas="poppler_form_field_choice_get_text">poppler_form_field_choice_get_text</primary></indexterm><programlisting><link linkend="gchar">gchar</link> * poppler_form_field_choice_get_text (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Retrieves the contents of <parameter>field</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new allocated string. It must be freed with <link linkend="g-free"><function>g_free()</function></link> when done. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-choice-is-editable" role="function"> -<title>poppler_form_field_choice_is_editable ()</title> -<indexterm zone="poppler-form-field-choice-is-editable"><primary sortas="poppler_form_field_choice_is_editable">poppler_form_field_choice_is_editable</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_form_field_choice_is_editable - (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Checks whether <parameter>field</parameter> is editable</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if <parameter>field</parameter> is editable -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-choice-is-item-selected" role="function"> -<title>poppler_form_field_choice_is_item_selected ()</title> -<indexterm zone="poppler-form-field-choice-is-item-selected"><primary sortas="poppler_form_field_choice_is_item_selected">poppler_form_field_choice_is_item_selected</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_form_field_choice_is_item_selected - (<link linkend="PopplerFormField">PopplerFormField</link> *field, - <link linkend="gint">gint</link> index);</programlisting> -<para> -Checks whether the item at the given index on <parameter>field</parameter> is currently selected</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>index</parameter> :</term> -<listitem><simpara> the index of the item -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if item at <parameter>index</parameter> is currently selected -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-choice-select-item" role="function"> -<title>poppler_form_field_choice_select_item ()</title> -<indexterm zone="poppler-form-field-choice-select-item"><primary sortas="poppler_form_field_choice_select_item">poppler_form_field_choice_select_item</primary></indexterm><programlisting><link linkend="void">void</link> poppler_form_field_choice_select_item - (<link linkend="PopplerFormField">PopplerFormField</link> *field, - <link linkend="gint">gint</link> index);</programlisting> -<para> -Selects the item at the given index on <parameter>field</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>index</parameter> :</term> -<listitem><simpara> the index of the item -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-choice-set-text" role="function"> -<title>poppler_form_field_choice_set_text ()</title> -<indexterm zone="poppler-form-field-choice-set-text"><primary sortas="poppler_form_field_choice_set_text">poppler_form_field_choice_set_text</primary></indexterm><programlisting><link linkend="void">void</link> poppler_form_field_choice_set_text (<link linkend="PopplerFormField">PopplerFormField</link> *field, - const <link linkend="gchar">gchar</link> *text);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>text</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-choice-toggle-item" role="function"> -<title>poppler_form_field_choice_toggle_item ()</title> -<indexterm zone="poppler-form-field-choice-toggle-item"><primary sortas="poppler_form_field_choice_toggle_item">poppler_form_field_choice_toggle_item</primary></indexterm><programlisting><link linkend="void">void</link> poppler_form_field_choice_toggle_item - (<link linkend="PopplerFormField">PopplerFormField</link> *field, - <link linkend="gint">gint</link> index);</programlisting> -<para> -Sets the text in <parameter>field</parameter> to the given value, replacing the current contents</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>index</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-choice-unselect-all" role="function"> -<title>poppler_form_field_choice_unselect_all ()</title> -<indexterm zone="poppler-form-field-choice-unselect-all"><primary sortas="poppler_form_field_choice_unselect_all">poppler_form_field_choice_unselect_all</primary></indexterm><programlisting><link linkend="void">void</link> poppler_form_field_choice_unselect_all - (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Unselects all the items on <parameter>field</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-text-do-scroll" role="function"> -<title>poppler_form_field_text_do_scroll ()</title> -<indexterm zone="poppler-form-field-text-do-scroll"><primary sortas="poppler_form_field_text_do_scroll">poppler_form_field_text_do_scroll</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_form_field_text_do_scroll (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-text-do-spell-check" role="function"> -<title>poppler_form_field_text_do_spell_check ()</title> -<indexterm zone="poppler-form-field-text-do-spell-check"><primary sortas="poppler_form_field_text_do_spell_check">poppler_form_field_text_do_spell_check</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_form_field_text_do_spell_check - (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Checks whether spell checking should be done for the contents of <parameter>field</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if spell checking should be done for <parameter>field</parameter> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-text-get-max-len" role="function"> -<title>poppler_form_field_text_get_max_len ()</title> -<indexterm zone="poppler-form-field-text-get-max-len"><primary sortas="poppler_form_field_text_get_max_len">poppler_form_field_text_get_max_len</primary></indexterm><programlisting><link linkend="gint">gint</link> poppler_form_field_text_get_max_len (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Retrieves the maximum allowed length of the text in <parameter>field</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the maximum allowed number of characters in <parameter>field</parameter>, or -1 if there is no maximum. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-text-get-text" role="function"> -<title>poppler_form_field_text_get_text ()</title> -<indexterm zone="poppler-form-field-text-get-text"><primary sortas="poppler_form_field_text_get_text">poppler_form_field_text_get_text</primary></indexterm><programlisting><link linkend="gchar">gchar</link> * poppler_form_field_text_get_text (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Retrieves the contents of <parameter>field</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new allocated string. It must be freed with <link linkend="g-free"><function>g_free()</function></link> when done. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-text-get-text-type" role="function"> -<title>poppler_form_field_text_get_text_type ()</title> -<indexterm zone="poppler-form-field-text-get-text-type"><primary sortas="poppler_form_field_text_get_text_type">poppler_form_field_text_get_text_type</primary></indexterm><programlisting><link linkend="PopplerFormTextType">PopplerFormTextType</link> poppler_form_field_text_get_text_type - (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Gets the text type of <parameter>field</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="PopplerFormTextType"><type>PopplerFormTextType</type></link> of <parameter>field</parameter> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-text-is-password" role="function"> -<title>poppler_form_field_text_is_password ()</title> -<indexterm zone="poppler-form-field-text-is-password"><primary sortas="poppler_form_field_text_is_password">poppler_form_field_text_is_password</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_form_field_text_is_password (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Checks whether content of <parameter>field</parameter> is a password and it must be hidden</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if the content of <parameter>field</parameter> is a password -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-text-is-rich-text" role="function"> -<title>poppler_form_field_text_is_rich_text ()</title> -<indexterm zone="poppler-form-field-text-is-rich-text"><primary sortas="poppler_form_field_text_is_rich_text">poppler_form_field_text_is_rich_text</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_form_field_text_is_rich_text - (<link linkend="PopplerFormField">PopplerFormField</link> *field);</programlisting> -<para> -Checks whether the contents of <parameter>field</parameter> are rich text</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if the contents of <parameter>field</parameter> are rich text -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-text-set-text" role="function"> -<title>poppler_form_field_text_set_text ()</title> -<indexterm zone="poppler-form-field-text-set-text"><primary sortas="poppler_form_field_text_set_text">poppler_form_field_text_set_text</primary></indexterm><programlisting><link linkend="void">void</link> poppler_form_field_text_set_text (<link linkend="PopplerFormField">PopplerFormField</link> *field, - const <link linkend="gchar">gchar</link> *text);</programlisting> -<para> -Sets the text in <parameter>field</parameter> to the given value, replacing the current contents.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>field</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerFormField"><type>PopplerFormField</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>text</parameter> :</term> -<listitem><simpara> the new text -</simpara></listitem></varlistentry> -</variablelist></refsect2> - -</refsect1> - - - - -</refentry> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-layer.xml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-layer.xml deleted file mode 100644 index 672679654a0..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-layer.xml +++ /dev/null @@ -1,140 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<refentry id="poppler-poppler-layer"> -<refmeta> -<refentrytitle role="top_of_page" id="poppler-poppler-layer.top_of_page">PopplerLayer</refentrytitle> -<manvolnum>3</manvolnum> -<refmiscinfo>POPPLER Library</refmiscinfo> -</refmeta> - -<refnamediv> -<refname>PopplerLayer</refname> -<refpurpose></refpurpose> -</refnamediv> - -<refsynopsisdiv id="poppler-poppler-layer.synopsis" role="synopsis"> -<title role="synopsis.title">Synopsis</title> - -<synopsis> -<link linkend="GType">GType</link> <link linkend="poppler-layer-get-type">poppler_layer_get_type</link> (void); -const <link linkend="gchar">gchar</link> * <link linkend="poppler-layer-get-title">poppler_layer_get_title</link> (<link linkend="PopplerLayer">PopplerLayer</link> *layer); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-layer-is-visible">poppler_layer_is_visible</link> (<link linkend="PopplerLayer">PopplerLayer</link> *layer); -<link linkend="void">void</link> <link linkend="poppler-layer-show">poppler_layer_show</link> (<link linkend="PopplerLayer">PopplerLayer</link> *layer); -<link linkend="void">void</link> <link linkend="poppler-layer-hide">poppler_layer_hide</link> (<link linkend="PopplerLayer">PopplerLayer</link> *layer); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-layer-is-parent">poppler_layer_is_parent</link> (<link linkend="PopplerLayer">PopplerLayer</link> *layer); -<link linkend="gint">gint</link> <link linkend="poppler-layer-get-radio-button-group-id">poppler_layer_get_radio_button_group_id</link> - (<link linkend="PopplerLayer">PopplerLayer</link> *layer); -</synopsis> -</refsynopsisdiv> - - - - - - - - - -<refsect1 id="poppler-poppler-layer.description" role="desc"> -<title role="desc.title">Description</title> -<para> -</para> -</refsect1> - -<refsect1 id="poppler-poppler-layer.details" role="details"> -<title role="details.title">Details</title> -<refsect2 id="poppler-layer-get-type" role="function"> -<title>poppler_layer_get_type ()</title> -<indexterm zone="poppler-layer-get-type"><primary sortas="poppler_layer_get_type">poppler_layer_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_layer_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-layer-get-title" role="function"> -<title>poppler_layer_get_title ()</title> -<indexterm zone="poppler-layer-get-title"><primary sortas="poppler_layer_get_title">poppler_layer_get_title</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link> * poppler_layer_get_title (<link linkend="PopplerLayer">PopplerLayer</link> *layer);</programlisting> -<para> -Returns the name of the layer suitable for -presentation as a title in a viewer's GUI</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>layer</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerLayer"><type>PopplerLayer</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a string containing the title of the layer -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-layer-is-visible" role="function"> -<title>poppler_layer_is_visible ()</title> -<indexterm zone="poppler-layer-is-visible"><primary sortas="poppler_layer_is_visible">poppler_layer_is_visible</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_layer_is_visible (<link linkend="PopplerLayer">PopplerLayer</link> *layer);</programlisting> -<para> -Returns whether <parameter>layer</parameter> is visible</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>layer</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerLayer"><type>PopplerLayer</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if <parameter>layer</parameter> is visible -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-layer-show" role="function"> -<title>poppler_layer_show ()</title> -<indexterm zone="poppler-layer-show"><primary sortas="poppler_layer_show">poppler_layer_show</primary></indexterm><programlisting><link linkend="void">void</link> poppler_layer_show (<link linkend="PopplerLayer">PopplerLayer</link> *layer);</programlisting> -<para> -Shows <parameter>layer</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>layer</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerLayer"><type>PopplerLayer</type></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-layer-hide" role="function"> -<title>poppler_layer_hide ()</title> -<indexterm zone="poppler-layer-hide"><primary sortas="poppler_layer_hide">poppler_layer_hide</primary></indexterm><programlisting><link linkend="void">void</link> poppler_layer_hide (<link linkend="PopplerLayer">PopplerLayer</link> *layer);</programlisting> -<para> -Hides <parameter>layer</parameter>. If <parameter>layer</parameter> is the parent of other nested layers, -such layers will be also hidden and will be blocked until <parameter>layer</parameter> -is shown again</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>layer</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerLayer"><type>PopplerLayer</type></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-layer-is-parent" role="function"> -<title>poppler_layer_is_parent ()</title> -<indexterm zone="poppler-layer-is-parent"><primary sortas="poppler_layer_is_parent">poppler_layer_is_parent</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_layer_is_parent (<link linkend="PopplerLayer">PopplerLayer</link> *layer);</programlisting> -<para> -Returns whether <parameter>layer</parameter> is parent of other nested layers.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>layer</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerLayer"><type>PopplerLayer</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if <parameter>layer</parameter> is a parent layer -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-layer-get-radio-button-group-id" role="function"> -<title>poppler_layer_get_radio_button_group_id ()</title> -<indexterm zone="poppler-layer-get-radio-button-group-id"><primary sortas="poppler_layer_get_radio_button_group_id">poppler_layer_get_radio_button_group_id</primary></indexterm><programlisting><link linkend="gint">gint</link> poppler_layer_get_radio_button_group_id - (<link linkend="PopplerLayer">PopplerLayer</link> *layer);</programlisting> -<para> -Returns the numeric ID the radio button group associated with <parameter>layer</parameter>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>layer</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerLayer"><type>PopplerLayer</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the ID of the radio button group associated with <parameter>layer</parameter>, -or 0 if the layer is not associated to any radio button group -</simpara></listitem></varlistentry> -</variablelist></refsect2> - -</refsect1> - - - - -</refentry> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-page.xml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-page.xml deleted file mode 100644 index 9a7d5fdf88c..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-page.xml +++ /dev/null @@ -1,819 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<refentry id="poppler-poppler-page"> -<refmeta> -<refentrytitle role="top_of_page" id="poppler-poppler-page.top_of_page">PopplerPage</refentrytitle> -<manvolnum>3</manvolnum> -<refmiscinfo>POPPLER Library</refmiscinfo> -</refmeta> - -<refnamediv> -<refname>PopplerPage</refname> -<refpurpose>Information about a page in a document</refpurpose> -</refnamediv> - -<refsynopsisdiv id="poppler-poppler-page.synopsis" role="synopsis"> -<title role="synopsis.title">Synopsis</title> - -<synopsis> -<link linkend="void">void</link> <link linkend="poppler-page-render">poppler_page_render</link> (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="cairo-t">cairo_t</link> *cairo); -<link linkend="void">void</link> <link linkend="poppler-page-render-to-pixbuf">poppler_page_render_to_pixbuf</link> (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="int">int</link> src_x, - <link linkend="int">int</link> src_y, - <link linkend="int">int</link> src_width, - <link linkend="int">int</link> src_height, - <link linkend="double">double</link> scale, - <link linkend="int">int</link> rotation, - <link linkend="GdkPixbuf">GdkPixbuf</link> *pixbuf); -<link linkend="void">void</link> <link linkend="poppler-page-get-size">poppler_page_get_size</link> (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="double">double</link> *width, - <link linkend="double">double</link> *height); -<link linkend="int">int</link> <link linkend="poppler-page-get-index">poppler_page_get_index</link> (<link linkend="PopplerPage">PopplerPage</link> *page); -<link linkend="cairo-surface-t">cairo_surface_t</link> * <link linkend="poppler-page-get-thumbnail">poppler_page_get_thumbnail</link> (<link linkend="PopplerPage">PopplerPage</link> *page); -<link linkend="gboolean">gboolean</link> <link linkend="poppler-page-get-thumbnail-size">poppler_page_get_thumbnail_size</link> (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="int">int</link> *width, - <link linkend="int">int</link> *height); -<link linkend="void">void</link> <link linkend="poppler-page-render-to-ps">poppler_page_render_to_ps</link> (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="PopplerPSFile">PopplerPSFile</link> *ps_file); -<link linkend="GList">GList</link> * <link linkend="poppler-page-find-text">poppler_page_find_text</link> (<link linkend="PopplerPage">PopplerPage</link> *page, - const <link linkend="char">char</link> *text); -<link linkend="char">char</link> * <link linkend="poppler-page-get-text">poppler_page_get_text</link> (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="PopplerSelectionStyle">PopplerSelectionStyle</link> style, - <link linkend="PopplerRectangle">PopplerRectangle</link> *rect); -<link linkend="double">double</link> <link linkend="poppler-page-get-duration">poppler_page_get_duration</link> (<link linkend="PopplerPage">PopplerPage</link> *page); -<link linkend="PopplerPageTransition">PopplerPageTransition</link> * <link linkend="poppler-page-get-transition">poppler_page_get_transition</link> (<link linkend="PopplerPage">PopplerPage</link> *page); -<link linkend="GList">GList</link> * <link linkend="poppler-page-get-link-mapping">poppler_page_get_link_mapping</link> (<link linkend="PopplerPage">PopplerPage</link> *page); -<link linkend="void">void</link> <link linkend="poppler-page-free-link-mapping">poppler_page_free_link_mapping</link> (<link linkend="GList">GList</link> *list); -<link linkend="GList">GList</link> * <link linkend="poppler-page-get-image-mapping">poppler_page_get_image_mapping</link> (<link linkend="PopplerPage">PopplerPage</link> *page); -<link linkend="void">void</link> <link linkend="poppler-page-free-image-mapping">poppler_page_free_image_mapping</link> (<link linkend="GList">GList</link> *list); -<link linkend="GList">GList</link> * <link linkend="poppler-page-get-form-field-mapping">poppler_page_get_form_field_mapping</link> (<link linkend="PopplerPage">PopplerPage</link> *page); -<link linkend="void">void</link> <link linkend="poppler-page-free-form-field-mapping">poppler_page_free_form_field_mapping</link> - (<link linkend="GList">GList</link> *list); -<link linkend="GList">GList</link> * <link linkend="poppler-page-get-selection-region">poppler_page_get_selection_region</link> (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="gdouble">gdouble</link> scale, - <link linkend="PopplerSelectionStyle">PopplerSelectionStyle</link> style, - <link linkend="PopplerRectangle">PopplerRectangle</link> *selection); -<link linkend="void">void</link> <link linkend="poppler-page-render-selection">poppler_page_render_selection</link> (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="cairo-t">cairo_t</link> *cairo, - <link linkend="PopplerRectangle">PopplerRectangle</link> *selection, - <link linkend="PopplerRectangle">PopplerRectangle</link> *old_selection, - <link linkend="PopplerSelectionStyle">PopplerSelectionStyle</link> style, - <link linkend="PopplerColor">PopplerColor</link> *glyph_color, - <link linkend="PopplerColor">PopplerColor</link> *background_color); -<link linkend="void">void</link> <link linkend="poppler-page-render-selection-to-pixbuf">poppler_page_render_selection_to_pixbuf</link> - (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="gdouble">gdouble</link> scale, - <link linkend="int">int</link> rotation, - <link linkend="GdkPixbuf">GdkPixbuf</link> *pixbuf, - <link linkend="PopplerRectangle">PopplerRectangle</link> *selection, - <link linkend="PopplerRectangle">PopplerRectangle</link> *old_selection, - <link linkend="PopplerSelectionStyle">PopplerSelectionStyle</link> style, - <link linkend="GdkColor">GdkColor</link> *glyph_color, - <link linkend="GdkColor">GdkColor</link> *background_color); -#define <link linkend="POPPLER-TYPE-RECTANGLE--CAPS">POPPLER_TYPE_RECTANGLE</link> - <link linkend="PopplerRectangle">PopplerRectangle</link>; -<link linkend="GType">GType</link> <link linkend="poppler-rectangle-get-type">poppler_rectangle_get_type</link> (void); -<link linkend="PopplerRectangle">PopplerRectangle</link> * <link linkend="poppler-rectangle-new">poppler_rectangle_new</link> (void); -<link linkend="PopplerRectangle">PopplerRectangle</link> * <link linkend="poppler-rectangle-copy">poppler_rectangle_copy</link> (<link linkend="PopplerRectangle">PopplerRectangle</link> *rectangle); -<link linkend="void">void</link> <link linkend="poppler-rectangle-free">poppler_rectangle_free</link> (<link linkend="PopplerRectangle">PopplerRectangle</link> *rectangle); -#define <link linkend="POPPLER-TYPE-PAGE-TRANSITION--CAPS">POPPLER_TYPE_PAGE_TRANSITION</link> - <link linkend="PopplerPageTransition">PopplerPageTransition</link>; -<link linkend="GType">GType</link> <link linkend="poppler-page-transition-get-type">poppler_page_transition_get_type</link> (void); -<link linkend="PopplerPageTransition">PopplerPageTransition</link> * <link linkend="poppler-page-transition-new">poppler_page_transition_new</link> (void); -<link linkend="PopplerPageTransition">PopplerPageTransition</link> * <link linkend="poppler-page-transition-copy">poppler_page_transition_copy</link> (<link linkend="PopplerPageTransition">PopplerPageTransition</link> *transition); -<link linkend="void">void</link> <link linkend="poppler-page-transition-free">poppler_page_transition_free</link> (<link linkend="PopplerPageTransition">PopplerPageTransition</link> *transition); -#define <link linkend="POPPLER-TYPE-LINK-MAPPING--CAPS">POPPLER_TYPE_LINK_MAPPING</link> - <link linkend="PopplerLinkMapping">PopplerLinkMapping</link>; -<link linkend="GType">GType</link> <link linkend="poppler-link-mapping-get-type">poppler_link_mapping_get_type</link> (void); -<link linkend="PopplerLinkMapping">PopplerLinkMapping</link> * <link linkend="poppler-link-mapping-new">poppler_link_mapping_new</link> (void); -<link linkend="PopplerLinkMapping">PopplerLinkMapping</link> * <link linkend="poppler-link-mapping-copy">poppler_link_mapping_copy</link> (<link linkend="PopplerLinkMapping">PopplerLinkMapping</link> *mapping); -<link linkend="void">void</link> <link linkend="poppler-link-mapping-free">poppler_link_mapping_free</link> (<link linkend="PopplerLinkMapping">PopplerLinkMapping</link> *mapping); -#define <link linkend="POPPLER-TYPE-IMAGE-MAPPING--CAPS">POPPLER_TYPE_IMAGE_MAPPING</link> - <link linkend="PopplerImageMapping">PopplerImageMapping</link>; -<link linkend="GType">GType</link> <link linkend="poppler-image-mapping-get-type">poppler_image_mapping_get_type</link> (void); -<link linkend="PopplerImageMapping">PopplerImageMapping</link> * <link linkend="poppler-image-mapping-new">poppler_image_mapping_new</link> (void); -<link linkend="PopplerImageMapping">PopplerImageMapping</link> * <link linkend="poppler-image-mapping-copy">poppler_image_mapping_copy</link> (<link linkend="PopplerImageMapping">PopplerImageMapping</link> *mapping); -<link linkend="void">void</link> <link linkend="poppler-image-mapping-free">poppler_image_mapping_free</link> (<link linkend="PopplerImageMapping">PopplerImageMapping</link> *mapping); -#define <link linkend="POPPLER-TYPE-FORM-FIELD-MAPPING--CAPS">POPPLER_TYPE_FORM_FIELD_MAPPING</link> - <link linkend="PopplerFormFieldMapping">PopplerFormFieldMapping</link>; -<link linkend="GType">GType</link> <link linkend="poppler-form-field-mapping-get-type">poppler_form_field_mapping_get_type</link> (void); -<link linkend="PopplerFormFieldMapping">PopplerFormFieldMapping</link> * <link linkend="poppler-form-field-mapping-new">poppler_form_field_mapping_new</link> - (void); -<link linkend="PopplerFormFieldMapping">PopplerFormFieldMapping</link> * <link linkend="poppler-form-field-mapping-copy">poppler_form_field_mapping_copy</link> - (<link linkend="PopplerFormFieldMapping">PopplerFormFieldMapping</link> *mapping); -<link linkend="void">void</link> <link linkend="poppler-form-field-mapping-free">poppler_form_field_mapping_free</link> (<link linkend="PopplerFormFieldMapping">PopplerFormFieldMapping</link> *mapping); -</synopsis> -</refsynopsisdiv> - - - - - - - - - -<refsect1 id="poppler-poppler-page.description" role="desc"> -<title role="desc.title">Description</title> -<para> -</para> -</refsect1> - -<refsect1 id="poppler-poppler-page.details" role="details"> -<title role="details.title">Details</title> -<refsect2 id="poppler-page-render" role="function"> -<title>poppler_page_render ()</title> -<indexterm zone="poppler-page-render"><primary sortas="poppler_page_render">poppler_page_render</primary></indexterm><programlisting><link linkend="void">void</link> poppler_page_render (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="cairo-t">cairo_t</link> *cairo);</programlisting> -<para> -Render the page to the given cairo context. This function -is for rendering a page that will be displayed. If you want -to render a page that will be printed use -<link linkend="poppler-page-render-for-printing"><function>poppler_page_render_for_printing()</function></link> instead</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> the page to render from -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>cairo</parameter> :</term> -<listitem><simpara> cairo context to render to -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-render-to-pixbuf" role="function"> -<title>poppler_page_render_to_pixbuf ()</title> -<indexterm zone="poppler-page-render-to-pixbuf"><primary sortas="poppler_page_render_to_pixbuf">poppler_page_render_to_pixbuf</primary></indexterm><programlisting><link linkend="void">void</link> poppler_page_render_to_pixbuf (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="int">int</link> src_x, - <link linkend="int">int</link> src_y, - <link linkend="int">int</link> src_width, - <link linkend="int">int</link> src_height, - <link linkend="double">double</link> scale, - <link linkend="int">int</link> rotation, - <link linkend="GdkPixbuf">GdkPixbuf</link> *pixbuf);</programlisting> -<para> -First scale the document to match the specified pixels per point, -then render the rectangle given by the upper left corner at -(src_x, src_y) and src_width and src_height. -This function is for rendering a page that will be displayed. -If you want to render a page that will be printed use -<link linkend="poppler-page-render-to-pixbuf-for-printing"><function>poppler_page_render_to_pixbuf_for_printing()</function></link> instead</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> the page to render from -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>src_x</parameter> :</term> -<listitem><simpara> x coordinate of upper left corner -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>src_y</parameter> :</term> -<listitem><simpara> y coordinate of upper left corner -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>src_width</parameter> :</term> -<listitem><simpara> width of rectangle to render -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>src_height</parameter> :</term> -<listitem><simpara> height of rectangle to render -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>scale</parameter> :</term> -<listitem><simpara> scale specified as pixels per point -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>rotation</parameter> :</term> -<listitem><simpara> rotate the document by the specified degree -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>pixbuf</parameter> :</term> -<listitem><simpara> pixbuf to render into -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-get-size" role="function"> -<title>poppler_page_get_size ()</title> -<indexterm zone="poppler-page-get-size"><primary sortas="poppler_page_get_size">poppler_page_get_size</primary></indexterm><programlisting><link linkend="void">void</link> poppler_page_get_size (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="double">double</link> *width, - <link linkend="double">double</link> *height);</programlisting> -<para> -Gets the size of <parameter>page</parameter> at the current scale and rotation.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> A <link linkend="PopplerPage"><type>PopplerPage</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>width</parameter> :</term> -<listitem><simpara> return location for the width of <parameter>page</parameter> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>height</parameter> :</term> -<listitem><simpara> return location for the height of <parameter>page</parameter> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-get-index" role="function"> -<title>poppler_page_get_index ()</title> -<indexterm zone="poppler-page-get-index"><primary sortas="poppler_page_get_index">poppler_page_get_index</primary></indexterm><programlisting><link linkend="int">int</link> poppler_page_get_index (<link linkend="PopplerPage">PopplerPage</link> *page);</programlisting> -<para> -Returns the index of <parameter>page</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerPage"><type>PopplerPage</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> index value of <parameter>page</parameter> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-get-thumbnail" role="function"> -<title>poppler_page_get_thumbnail ()</title> -<indexterm zone="poppler-page-get-thumbnail"><primary sortas="poppler_page_get_thumbnail">poppler_page_get_thumbnail</primary></indexterm><programlisting><link linkend="cairo-surface-t">cairo_surface_t</link> * poppler_page_get_thumbnail (<link linkend="PopplerPage">PopplerPage</link> *page);</programlisting> -<para> -Get the embedded thumbnail for the specified page. If the document -doesn't have an embedded thumbnail for the page, this function -returns <link linkend="NULL--CAPS"><literal>NULL</literal></link>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> the <link linkend="PopperPage"><type>PopperPage</type></link> to get the thumbnail for -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the tumbnail as a cairo_surface_t or <link linkend="NULL--CAPS"><literal>NULL</literal></link> if the document -doesn't have a thumbnail for this page. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-get-thumbnail-size" role="function"> -<title>poppler_page_get_thumbnail_size ()</title> -<indexterm zone="poppler-page-get-thumbnail-size"><primary sortas="poppler_page_get_thumbnail_size">poppler_page_get_thumbnail_size</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> poppler_page_get_thumbnail_size (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="int">int</link> *width, - <link linkend="int">int</link> *height);</programlisting> -<para> -Returns <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if <parameter>page</parameter> has a thumbnail associated with it. It also -fills in <parameter>width</parameter> and <parameter>height</parameter> with the width and height of the -thumbnail. The values of width and height are not changed if no -appropriate thumbnail exists.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> A <link linkend="PopplerPage"><type>PopplerPage</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>width</parameter> :</term> -<listitem><simpara> return location for width -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>height</parameter> :</term> -<listitem><simpara> return location for height -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>, if <parameter>page</parameter> has a thumbnail associated with it. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-render-to-ps" role="function"> -<title>poppler_page_render_to_ps ()</title> -<indexterm zone="poppler-page-render-to-ps"><primary sortas="poppler_page_render_to_ps">poppler_page_render_to_ps</primary></indexterm><programlisting><link linkend="void">void</link> poppler_page_render_to_ps (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="PopplerPSFile">PopplerPSFile</link> *ps_file);</programlisting> -<para> -Render the page on a postscript file</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerPage"><type>PopplerPage</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>ps_file</parameter> :</term> -<listitem><simpara> the PopplerPSFile to render to -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-find-text" role="function"> -<title>poppler_page_find_text ()</title> -<indexterm zone="poppler-page-find-text"><primary sortas="poppler_page_find_text">poppler_page_find_text</primary></indexterm><programlisting><link linkend="GList">GList</link> * poppler_page_find_text (<link linkend="PopplerPage">PopplerPage</link> *page, - const <link linkend="char">char</link> *text);</programlisting> -<para> -A <link linkend="GList"><type>GList</type></link> of rectangles for each occurance of the text on the page. -The coordinates are in PDF points.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerPage"><type>PopplerPage</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>text</parameter> :</term> -<listitem><simpara> the text to search for (UTF-8 encoded) -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a <link linkend="GList"><type>GList</type></link> of PopplerRectangle, -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-get-text" role="function"> -<title>poppler_page_get_text ()</title> -<indexterm zone="poppler-page-get-text"><primary sortas="poppler_page_get_text">poppler_page_get_text</primary></indexterm><programlisting><link linkend="char">char</link> * poppler_page_get_text (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="PopplerSelectionStyle">PopplerSelectionStyle</link> style, - <link linkend="PopplerRectangle">PopplerRectangle</link> *rect);</programlisting> -<para> -Retrieves the contents of the specified <parameter>selection</parameter> as text.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerPage"><type>PopplerPage</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>style</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerSelectionStyle"><type>PopplerSelectionStyle</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>rect</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a pointer to the contents of the <parameter>selection</parameter> - as a string -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-get-duration" role="function"> -<title>poppler_page_get_duration ()</title> -<indexterm zone="poppler-page-get-duration"><primary sortas="poppler_page_get_duration">poppler_page_get_duration</primary></indexterm><programlisting><link linkend="double">double</link> poppler_page_get_duration (<link linkend="PopplerPage">PopplerPage</link> *page);</programlisting> -<para> -Returns the duration of <parameter>page</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerPage"><type>PopplerPage</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> duration in seconds of <parameter>page</parameter> or -1. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-get-transition" role="function"> -<title>poppler_page_get_transition ()</title> -<indexterm zone="poppler-page-get-transition"><primary sortas="poppler_page_get_transition">poppler_page_get_transition</primary></indexterm><programlisting><link linkend="PopplerPageTransition">PopplerPageTransition</link> * poppler_page_get_transition (<link linkend="PopplerPage">PopplerPage</link> *page);</programlisting> -<para> -Returns the transition effect of <parameter>page</parameter></para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerPage"><type>PopplerPage</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a <link linkend="PopplerPageTransition"><type>PopplerPageTransition</type></link> or NULL. -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-get-link-mapping" role="function"> -<title>poppler_page_get_link_mapping ()</title> -<indexterm zone="poppler-page-get-link-mapping"><primary sortas="poppler_page_get_link_mapping">poppler_page_get_link_mapping</primary></indexterm><programlisting><link linkend="GList">GList</link> * poppler_page_get_link_mapping (<link linkend="PopplerPage">PopplerPage</link> *page);</programlisting> -<para> -Returns a list of <link linkend="PopplerLinkMapping"><type>PopplerLinkMapping</type></link> items that map from a -location on <parameter>page</parameter> to a <link linkend="PopplerAction"><type>PopplerAction</type></link>. This list must be freed -with <link linkend="poppler-page-free-link-mapping"><function>poppler_page_free_link_mapping()</function></link> when done.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> A <link linkend="PopplerPage"><type>PopplerPage</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> A <link linkend="GList"><type>GList</type></link> of <link linkend="PopplerLinkMapping"><type>PopplerLinkMapping</type></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-free-link-mapping" role="function"> -<title>poppler_page_free_link_mapping ()</title> -<indexterm zone="poppler-page-free-link-mapping"><primary sortas="poppler_page_free_link_mapping">poppler_page_free_link_mapping</primary></indexterm><programlisting><link linkend="void">void</link> poppler_page_free_link_mapping (<link linkend="GList">GList</link> *list);</programlisting> -<para> -Frees a list of <link linkend="PopplerLinkMapping"><type>PopplerLinkMapping</type></link><!-- -->s allocated by -<link linkend="poppler-page-get-link-mapping"><function>poppler_page_get_link_mapping()</function></link>. It also frees the <link linkend="PopplerAction"><type>PopplerAction</type></link><!-- -->s -that each mapping contains, so if you want to keep them around, you need to -copy them with <link linkend="poppler-action-copy"><function>poppler_action_copy()</function></link>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>list</parameter> :</term> -<listitem><simpara> A list of <link linkend="PopplerLinkMapping"><type>PopplerLinkMapping</type></link><!-- -->s -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-get-image-mapping" role="function"> -<title>poppler_page_get_image_mapping ()</title> -<indexterm zone="poppler-page-get-image-mapping"><primary sortas="poppler_page_get_image_mapping">poppler_page_get_image_mapping</primary></indexterm><programlisting><link linkend="GList">GList</link> * poppler_page_get_image_mapping (<link linkend="PopplerPage">PopplerPage</link> *page);</programlisting> -<para> -Returns a list of <link linkend="PopplerImageMapping"><type>PopplerImageMapping</type></link> items that map from a -location on <parameter>page</parameter> to an image of the page. This list must be freed -with <link linkend="poppler-page-free-image-mapping"><function>poppler_page_free_image_mapping()</function></link> when done.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> A <link linkend="PopplerPage"><type>PopplerPage</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> A <link linkend="GList"><type>GList</type></link> of <link linkend="PopplerImageMapping"><type>PopplerImageMapping</type></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-free-image-mapping" role="function"> -<title>poppler_page_free_image_mapping ()</title> -<indexterm zone="poppler-page-free-image-mapping"><primary sortas="poppler_page_free_image_mapping">poppler_page_free_image_mapping</primary></indexterm><programlisting><link linkend="void">void</link> poppler_page_free_image_mapping (<link linkend="GList">GList</link> *list);</programlisting> -<para> -Frees a list of <link linkend="PopplerImageMapping"><type>PopplerImageMapping</type></link><!-- -->s allocated by -<link linkend="poppler-page-get-image-mapping"><function>poppler_page_get_image_mapping()</function></link>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>list</parameter> :</term> -<listitem><simpara> A list of <link linkend="PopplerImageMapping"><type>PopplerImageMapping</type></link><!-- -->s -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-get-form-field-mapping" role="function"> -<title>poppler_page_get_form_field_mapping ()</title> -<indexterm zone="poppler-page-get-form-field-mapping"><primary sortas="poppler_page_get_form_field_mapping">poppler_page_get_form_field_mapping</primary></indexterm><programlisting><link linkend="GList">GList</link> * poppler_page_get_form_field_mapping (<link linkend="PopplerPage">PopplerPage</link> *page);</programlisting> -<para> -Returns a list of <link linkend="PopplerFormFieldMapping"><type>PopplerFormFieldMapping</type></link> items that map from a -location on <parameter>page</parameter> to a form field. This list must be freed -with <link linkend="poppler-page-free-form-field-mapping"><function>poppler_page_free_form_field_mapping()</function></link> when done.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> A <link linkend="PopplerPage"><type>PopplerPage</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> A <link linkend="GList"><type>GList</type></link> of <link linkend="PopplerFormFieldMapping"><type>PopplerFormFieldMapping</type></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-free-form-field-mapping" role="function"> -<title>poppler_page_free_form_field_mapping ()</title> -<indexterm zone="poppler-page-free-form-field-mapping"><primary sortas="poppler_page_free_form_field_mapping">poppler_page_free_form_field_mapping</primary></indexterm><programlisting><link linkend="void">void</link> poppler_page_free_form_field_mapping - (<link linkend="GList">GList</link> *list);</programlisting> -<para> -Frees a list of <link linkend="PopplerFormFieldMapping"><type>PopplerFormFieldMapping</type></link><!-- -->s allocated by -<link linkend="poppler-page-get-form-field-mapping"><function>poppler_page_get_form_field_mapping()</function></link>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>list</parameter> :</term> -<listitem><simpara> A list of <link linkend="PopplerFormFieldMapping"><type>PopplerFormFieldMapping</type></link><!-- -->s -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-get-selection-region" role="function"> -<title>poppler_page_get_selection_region ()</title> -<indexterm zone="poppler-page-get-selection-region"><primary sortas="poppler_page_get_selection_region">poppler_page_get_selection_region</primary></indexterm><programlisting><link linkend="GList">GList</link> * poppler_page_get_selection_region (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="gdouble">gdouble</link> scale, - <link linkend="PopplerSelectionStyle">PopplerSelectionStyle</link> style, - <link linkend="PopplerRectangle">PopplerRectangle</link> *selection);</programlisting> -<para> -Returns a region containing the area that would be rendered by -<link linkend="poppler-page-render-selection"><function>poppler_page_render_selection()</function></link> or -<link linkend="poppler-page-render-selection-to-pixbuf"><function>poppler_page_render_selection_to_pixbuf()</function></link> as a <link linkend="GList"><type>GList</type></link> of -<link linkend="PopplerRectangle"><type>PopplerRectangle</type></link>. The returned list must be freed with -<link linkend="poppler-page-selection-region-free"><function>poppler_page_selection_region_free()</function></link>.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerPage"><type>PopplerPage</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>scale</parameter> :</term> -<listitem><simpara> scale specified as pixels per point -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>style</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerSelectionStyle"><type>PopplerSelectionStyle</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>selection</parameter> :</term> -<listitem><simpara> start and end point of selection as a rectangle -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a <link linkend="GList"><type>GList</type></link> of <link linkend="PopplerRectangle"><type>PopplerRectangle</type></link> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-render-selection" role="function"> -<title>poppler_page_render_selection ()</title> -<indexterm zone="poppler-page-render-selection"><primary sortas="poppler_page_render_selection">poppler_page_render_selection</primary></indexterm><programlisting><link linkend="void">void</link> poppler_page_render_selection (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="cairo-t">cairo_t</link> *cairo, - <link linkend="PopplerRectangle">PopplerRectangle</link> *selection, - <link linkend="PopplerRectangle">PopplerRectangle</link> *old_selection, - <link linkend="PopplerSelectionStyle">PopplerSelectionStyle</link> style, - <link linkend="PopplerColor">PopplerColor</link> *glyph_color, - <link linkend="PopplerColor">PopplerColor</link> *background_color);</programlisting> -<para> -Render the selection specified by <parameter>selection</parameter> for <parameter>page</parameter> to -the given cairo context. The selection will be rendered, using -<parameter>glyph_color</parameter> for the glyphs and <parameter>background_color</parameter> for the selection -background. -</para> -<para> -If non-NULL, <parameter>old_selection</parameter> specifies the selection that is already -rendered to <parameter>cairo</parameter>, in which case this function will (some day) -only render the changed part of the selection.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> the <link linkend="PopplerPage"><type>PopplerPage</type></link> for which to render selection -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>cairo</parameter> :</term> -<listitem><simpara> cairo context to render to -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>selection</parameter> :</term> -<listitem><simpara> start and end point of selection as a rectangle -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>old_selection</parameter> :</term> -<listitem><simpara> previous selection -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>style</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerSelectionStyle"><type>PopplerSelectionStyle</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>glyph_color</parameter> :</term> -<listitem><simpara> color to use for drawing glyphs -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>background_color</parameter> :</term> -<listitem><simpara> color to use for the selection background -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-render-selection-to-pixbuf" role="function"> -<title>poppler_page_render_selection_to_pixbuf ()</title> -<indexterm zone="poppler-page-render-selection-to-pixbuf"><primary sortas="poppler_page_render_selection_to_pixbuf">poppler_page_render_selection_to_pixbuf</primary></indexterm><programlisting><link linkend="void">void</link> poppler_page_render_selection_to_pixbuf - (<link linkend="PopplerPage">PopplerPage</link> *page, - <link linkend="gdouble">gdouble</link> scale, - <link linkend="int">int</link> rotation, - <link linkend="GdkPixbuf">GdkPixbuf</link> *pixbuf, - <link linkend="PopplerRectangle">PopplerRectangle</link> *selection, - <link linkend="PopplerRectangle">PopplerRectangle</link> *old_selection, - <link linkend="PopplerSelectionStyle">PopplerSelectionStyle</link> style, - <link linkend="GdkColor">GdkColor</link> *glyph_color, - <link linkend="GdkColor">GdkColor</link> *background_color);</programlisting> -<para> -Render the selection specified by <parameter>selection</parameter> for <parameter>page</parameter> into -<parameter>pixbuf</parameter>. The selection will be rendered at <parameter>scale</parameter>, using -<parameter>glyph_color</parameter> for the glyphs and <parameter>background_color</parameter> for the selection -background. -</para> -<para> -If non-NULL, <parameter>old_selection</parameter> specifies the selection that is already -rendered in <parameter>pixbuf</parameter>, in which case this function will (some day) -only render the changed part of the selection.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>page</parameter> :</term> -<listitem><simpara> the <link linkend="PopplerPage"><type>PopplerPage</type></link> for which to render selection -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>scale</parameter> :</term> -<listitem><simpara> scale specified as pixels per point -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>rotation</parameter> :</term> -<listitem><simpara> rotate the document by the specified degree -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>pixbuf</parameter> :</term> -<listitem><simpara> pixbuf to render to -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>selection</parameter> :</term> -<listitem><simpara> start and end point of selection as a rectangle -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>old_selection</parameter> :</term> -<listitem><simpara> previous selection -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>style</parameter> :</term> -<listitem><simpara> a <link linkend="PopplerSelectionStyle"><type>PopplerSelectionStyle</type></link> -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>glyph_color</parameter> :</term> -<listitem><simpara> color to use for drawing glyphs -</simpara></listitem></varlistentry> -<varlistentry><term><parameter>background_color</parameter> :</term> -<listitem><simpara> color to use for the selection background -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-RECTANGLE--CAPS" role="macro"> -<title>POPPLER_TYPE_RECTANGLE</title> -<indexterm zone="POPPLER-TYPE-RECTANGLE--CAPS"><primary sortas="POPPLER_TYPE_RECTANGLE">POPPLER_TYPE_RECTANGLE</primary></indexterm><programlisting>#define POPPLER_TYPE_RECTANGLE (poppler_rectangle_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerRectangle" role="struct"> -<title>PopplerRectangle</title> -<indexterm zone="PopplerRectangle"><primary sortas="PopplerRectangle">PopplerRectangle</primary></indexterm><programlisting>typedef struct { - gdouble x1; - gdouble y1; - gdouble x2; - gdouble y2; -} PopplerRectangle; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-rectangle-get-type" role="function"> -<title>poppler_rectangle_get_type ()</title> -<indexterm zone="poppler-rectangle-get-type"><primary sortas="poppler_rectangle_get_type">poppler_rectangle_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_rectangle_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-rectangle-new" role="function"> -<title>poppler_rectangle_new ()</title> -<indexterm zone="poppler-rectangle-new"><primary sortas="poppler_rectangle_new">poppler_rectangle_new</primary></indexterm><programlisting><link linkend="PopplerRectangle">PopplerRectangle</link> * poppler_rectangle_new (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-rectangle-copy" role="function"> -<title>poppler_rectangle_copy ()</title> -<indexterm zone="poppler-rectangle-copy"><primary sortas="poppler_rectangle_copy">poppler_rectangle_copy</primary></indexterm><programlisting><link linkend="PopplerRectangle">PopplerRectangle</link> * poppler_rectangle_copy (<link linkend="PopplerRectangle">PopplerRectangle</link> *rectangle);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>rectangle</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-rectangle-free" role="function"> -<title>poppler_rectangle_free ()</title> -<indexterm zone="poppler-rectangle-free"><primary sortas="poppler_rectangle_free">poppler_rectangle_free</primary></indexterm><programlisting><link linkend="void">void</link> poppler_rectangle_free (<link linkend="PopplerRectangle">PopplerRectangle</link> *rectangle);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>rectangle</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-PAGE-TRANSITION--CAPS" role="macro"> -<title>POPPLER_TYPE_PAGE_TRANSITION</title> -<indexterm zone="POPPLER-TYPE-PAGE-TRANSITION--CAPS"><primary sortas="POPPLER_TYPE_PAGE_TRANSITION">POPPLER_TYPE_PAGE_TRANSITION</primary></indexterm><programlisting>#define POPPLER_TYPE_PAGE_TRANSITION (poppler_page_transition_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerPageTransition" role="struct"> -<title>PopplerPageTransition</title> -<indexterm zone="PopplerPageTransition"><primary sortas="PopplerPageTransition">PopplerPageTransition</primary></indexterm><programlisting>typedef struct { - PopplerPageTransitionType type; - PopplerPageTransitionAlignment alignment; - PopplerPageTransitionDirection direction; - gint duration; - gint angle; - gdouble scale; - gboolean rectangular; -} PopplerPageTransition; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-page-transition-get-type" role="function"> -<title>poppler_page_transition_get_type ()</title> -<indexterm zone="poppler-page-transition-get-type"><primary sortas="poppler_page_transition_get_type">poppler_page_transition_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_page_transition_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-transition-new" role="function"> -<title>poppler_page_transition_new ()</title> -<indexterm zone="poppler-page-transition-new"><primary sortas="poppler_page_transition_new">poppler_page_transition_new</primary></indexterm><programlisting><link linkend="PopplerPageTransition">PopplerPageTransition</link> * poppler_page_transition_new (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-transition-copy" role="function"> -<title>poppler_page_transition_copy ()</title> -<indexterm zone="poppler-page-transition-copy"><primary sortas="poppler_page_transition_copy">poppler_page_transition_copy</primary></indexterm><programlisting><link linkend="PopplerPageTransition">PopplerPageTransition</link> * poppler_page_transition_copy (<link linkend="PopplerPageTransition">PopplerPageTransition</link> *transition);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>transition</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-page-transition-free" role="function"> -<title>poppler_page_transition_free ()</title> -<indexterm zone="poppler-page-transition-free"><primary sortas="poppler_page_transition_free">poppler_page_transition_free</primary></indexterm><programlisting><link linkend="void">void</link> poppler_page_transition_free (<link linkend="PopplerPageTransition">PopplerPageTransition</link> *transition);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>transition</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-LINK-MAPPING--CAPS" role="macro"> -<title>POPPLER_TYPE_LINK_MAPPING</title> -<indexterm zone="POPPLER-TYPE-LINK-MAPPING--CAPS"><primary sortas="POPPLER_TYPE_LINK_MAPPING">POPPLER_TYPE_LINK_MAPPING</primary></indexterm><programlisting>#define POPPLER_TYPE_LINK_MAPPING (poppler_link_mapping_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerLinkMapping" role="struct"> -<title>PopplerLinkMapping</title> -<indexterm zone="PopplerLinkMapping"><primary sortas="PopplerLinkMapping">PopplerLinkMapping</primary></indexterm><programlisting>typedef struct { - PopplerRectangle area; - PopplerAction *action; -} PopplerLinkMapping; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-link-mapping-get-type" role="function"> -<title>poppler_link_mapping_get_type ()</title> -<indexterm zone="poppler-link-mapping-get-type"><primary sortas="poppler_link_mapping_get_type">poppler_link_mapping_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_link_mapping_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-link-mapping-new" role="function"> -<title>poppler_link_mapping_new ()</title> -<indexterm zone="poppler-link-mapping-new"><primary sortas="poppler_link_mapping_new">poppler_link_mapping_new</primary></indexterm><programlisting><link linkend="PopplerLinkMapping">PopplerLinkMapping</link> * poppler_link_mapping_new (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-link-mapping-copy" role="function"> -<title>poppler_link_mapping_copy ()</title> -<indexterm zone="poppler-link-mapping-copy"><primary sortas="poppler_link_mapping_copy">poppler_link_mapping_copy</primary></indexterm><programlisting><link linkend="PopplerLinkMapping">PopplerLinkMapping</link> * poppler_link_mapping_copy (<link linkend="PopplerLinkMapping">PopplerLinkMapping</link> *mapping);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>mapping</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-link-mapping-free" role="function"> -<title>poppler_link_mapping_free ()</title> -<indexterm zone="poppler-link-mapping-free"><primary sortas="poppler_link_mapping_free">poppler_link_mapping_free</primary></indexterm><programlisting><link linkend="void">void</link> poppler_link_mapping_free (<link linkend="PopplerLinkMapping">PopplerLinkMapping</link> *mapping);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>mapping</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-IMAGE-MAPPING--CAPS" role="macro"> -<title>POPPLER_TYPE_IMAGE_MAPPING</title> -<indexterm zone="POPPLER-TYPE-IMAGE-MAPPING--CAPS"><primary sortas="POPPLER_TYPE_IMAGE_MAPPING">POPPLER_TYPE_IMAGE_MAPPING</primary></indexterm><programlisting>#define POPPLER_TYPE_IMAGE_MAPPING (poppler_image_mapping_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerImageMapping" role="struct"> -<title>PopplerImageMapping</title> -<indexterm zone="PopplerImageMapping"><primary sortas="PopplerImageMapping">PopplerImageMapping</primary></indexterm><programlisting>typedef struct { - PopplerRectangle area; - gint image_id; -} PopplerImageMapping; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-image-mapping-get-type" role="function"> -<title>poppler_image_mapping_get_type ()</title> -<indexterm zone="poppler-image-mapping-get-type"><primary sortas="poppler_image_mapping_get_type">poppler_image_mapping_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_image_mapping_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-image-mapping-new" role="function"> -<title>poppler_image_mapping_new ()</title> -<indexterm zone="poppler-image-mapping-new"><primary sortas="poppler_image_mapping_new">poppler_image_mapping_new</primary></indexterm><programlisting><link linkend="PopplerImageMapping">PopplerImageMapping</link> * poppler_image_mapping_new (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-image-mapping-copy" role="function"> -<title>poppler_image_mapping_copy ()</title> -<indexterm zone="poppler-image-mapping-copy"><primary sortas="poppler_image_mapping_copy">poppler_image_mapping_copy</primary></indexterm><programlisting><link linkend="PopplerImageMapping">PopplerImageMapping</link> * poppler_image_mapping_copy (<link linkend="PopplerImageMapping">PopplerImageMapping</link> *mapping);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>mapping</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-image-mapping-free" role="function"> -<title>poppler_image_mapping_free ()</title> -<indexterm zone="poppler-image-mapping-free"><primary sortas="poppler_image_mapping_free">poppler_image_mapping_free</primary></indexterm><programlisting><link linkend="void">void</link> poppler_image_mapping_free (<link linkend="PopplerImageMapping">PopplerImageMapping</link> *mapping);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>mapping</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-TYPE-FORM-FIELD-MAPPING--CAPS" role="macro"> -<title>POPPLER_TYPE_FORM_FIELD_MAPPING</title> -<indexterm zone="POPPLER-TYPE-FORM-FIELD-MAPPING--CAPS"><primary sortas="POPPLER_TYPE_FORM_FIELD_MAPPING">POPPLER_TYPE_FORM_FIELD_MAPPING</primary></indexterm><programlisting>#define POPPLER_TYPE_FORM_FIELD_MAPPING (poppler_form_field_mapping_get_type ()) -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerFormFieldMapping" role="struct"> -<title>PopplerFormFieldMapping</title> -<indexterm zone="PopplerFormFieldMapping"><primary sortas="PopplerFormFieldMapping">PopplerFormFieldMapping</primary></indexterm><programlisting>typedef struct { - PopplerRectangle area; - PopplerFormField *field; -} PopplerFormFieldMapping; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-form-field-mapping-get-type" role="function"> -<title>poppler_form_field_mapping_get_type ()</title> -<indexterm zone="poppler-form-field-mapping-get-type"><primary sortas="poppler_form_field_mapping_get_type">poppler_form_field_mapping_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link> poppler_form_field_mapping_get_type (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-mapping-new" role="function"> -<title>poppler_form_field_mapping_new ()</title> -<indexterm zone="poppler-form-field-mapping-new"><primary sortas="poppler_form_field_mapping_new">poppler_form_field_mapping_new</primary></indexterm><programlisting><link linkend="PopplerFormFieldMapping">PopplerFormFieldMapping</link> * poppler_form_field_mapping_new - (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-mapping-copy" role="function"> -<title>poppler_form_field_mapping_copy ()</title> -<indexterm zone="poppler-form-field-mapping-copy"><primary sortas="poppler_form_field_mapping_copy">poppler_form_field_mapping_copy</primary></indexterm><programlisting><link linkend="PopplerFormFieldMapping">PopplerFormFieldMapping</link> * poppler_form_field_mapping_copy - (<link linkend="PopplerFormFieldMapping">PopplerFormFieldMapping</link> *mapping);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>mapping</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-form-field-mapping-free" role="function"> -<title>poppler_form_field_mapping_free ()</title> -<indexterm zone="poppler-form-field-mapping-free"><primary sortas="poppler_form_field_mapping_free">poppler_form_field_mapping_free</primary></indexterm><programlisting><link linkend="void">void</link> poppler_form_field_mapping_free (<link linkend="PopplerFormFieldMapping">PopplerFormFieldMapping</link> *mapping);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><parameter>mapping</parameter> :</term> -<listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> - -</refsect1> - - - - -</refentry> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-private.xml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-private.xml deleted file mode 100644 index 71b5245f472..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler-private.xml +++ /dev/null @@ -1,196 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<refentry id="poppler-poppler-private"> -<refmeta> -<refentrytitle role="top_of_page" id="poppler-poppler-private.top_of_page">poppler-private</refentrytitle> -<manvolnum>3</manvolnum> -<refmiscinfo>POPPLER Library</refmiscinfo> -</refmeta> - -<refnamediv> -<refname>poppler-private</refname> -<refpurpose></refpurpose> -</refnamediv> - -<refsynopsisdiv id="poppler-poppler-private.synopsis" role="synopsis"> -<title role="synopsis.title">Synopsis</title> -<anchor id="PopplerDocument"/><anchor id="PopplerPage"/> -<synopsis> - <link linkend="PopplerDocument-struct">PopplerDocument</link>; - <link linkend="PopplerPSFile">PopplerPSFile</link>; - <link linkend="PopplerFontInfo">PopplerFontInfo</link>; - <link linkend="PopplerPage-struct">PopplerPage</link>; -</synopsis> -</refsynopsisdiv> - -<refsect1 id="poppler-poppler-private.object-hierarchy" role="object_hierarchy"> -<title role="object_hierarchy.title">Object Hierarchy</title> -<synopsis> - <link linkend="GObject">GObject</link> - +----PopplerDocument -</synopsis> -<synopsis> - <link linkend="GObject">GObject</link> - +----PopplerPage -</synopsis> -</refsect1> - - - - - -<refsect1 id="poppler-poppler-private.properties" role="properties"> -<title role="properties.title">Properties</title> -<synopsis> - "<link linkend="PopplerDocument--author">author</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--creation-date">creation-date</link>" <link linkend="gint">gint</link> : Read - "<link linkend="PopplerDocument--creator">creator</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--format">format</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--format-major">format-major</link>" <link linkend="guint">guint</link> : Read - "<link linkend="PopplerDocument--format-minor">format-minor</link>" <link linkend="guint">guint</link> : Read - "<link linkend="PopplerDocument--keywords">keywords</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--linearized">linearized</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--metadata">metadata</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--mod-date">mod-date</link>" <link linkend="gint">gint</link> : Read - "<link linkend="PopplerDocument--page-layout">page-layout</link>" <link linkend="PopplerPageLayout">PopplerPageLayout</link> : Read - "<link linkend="PopplerDocument--page-mode">page-mode</link>" <link linkend="PopplerPageMode">PopplerPageMode</link> : Read - "<link linkend="PopplerDocument--permissions">permissions</link>" <link linkend="PopplerPermissions">PopplerPermissions</link> : Read - "<link linkend="PopplerDocument--producer">producer</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--subject">subject</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--title">title</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--viewer-preferences">viewer-preferences</link>" <link linkend="PopplerViewerPreferences">PopplerViewerPreferences</link> : Read - "<link linkend="PopplerPage--label">label</link>" <link linkend="gchar">gchar</link>* : Read -</synopsis> -</refsect1> - - - -<refsect1 id="poppler-poppler-private.description" role="desc"> -<title role="desc.title">Description</title> -<para> -</para> -</refsect1> - -<refsect1 id="poppler-poppler-private.details" role="details"> -<title role="details.title">Details</title> -<refsect2 id="PopplerDocument-struct" role="struct"> -<title>PopplerDocument</title> -<indexterm zone="PopplerDocument-struct"><primary sortas="PopplerDocument">PopplerDocument</primary></indexterm><programlisting>typedef struct _PopplerDocument PopplerDocument;</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerPSFile" role="struct"> -<title>PopplerPSFile</title> -<indexterm zone="PopplerPSFile"><primary sortas="PopplerPSFile">PopplerPSFile</primary></indexterm><programlisting>typedef struct { - GObject parent_instance; - - PopplerDocument *document; - PSOutputDev *out; - char *filename; - int first_page; - int last_page; - double paper_width; - double paper_height; - gboolean duplex; -} PopplerPSFile; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerFontInfo" role="struct"> -<title>PopplerFontInfo</title> -<indexterm zone="PopplerFontInfo"><primary sortas="PopplerFontInfo">PopplerFontInfo</primary></indexterm><programlisting>typedef struct { - GObject parent_instance; - PopplerDocument *document; - FontInfoScanner *scanner; -} PopplerFontInfo; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerPage-struct" role="struct"> -<title>PopplerPage</title> -<indexterm zone="PopplerPage-struct"><primary sortas="PopplerPage">PopplerPage</primary></indexterm><programlisting>typedef struct _PopplerPage PopplerPage;</programlisting> -<para> -</para></refsect2> - -</refsect1> -<refsect1 id="poppler-poppler-private.property-details" role="property_details"> -<title role="property_details.title">Property Details</title> -<refsect2 id="PopplerDocument--author" role="property"><title>The <literal>"author"</literal> property</title> -<indexterm zone="PopplerDocument--author"><primary sortas="PopplerDocument:author">PopplerDocument:author</primary></indexterm><programlisting> "author" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>The author of the document.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--creation-date" role="property"><title>The <literal>"creation-date"</literal> property</title> -<indexterm zone="PopplerDocument--creation-date"><primary sortas="PopplerDocument:creation-date">PopplerDocument:creation-date</primary></indexterm><programlisting> "creation-date" <link linkend="gint">gint</link> : Read</programlisting> -<para>The date and time the document was created.</para><para>Allowed values: >= 0</para> -<para>Default value: 0</para> -</refsect2> -<refsect2 id="PopplerDocument--creator" role="property"><title>The <literal>"creator"</literal> property</title> -<indexterm zone="PopplerDocument--creator"><primary sortas="PopplerDocument:creator">PopplerDocument:creator</primary></indexterm><programlisting> "creator" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>The software that created the document.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--format" role="property"><title>The <literal>"format"</literal> property</title> -<indexterm zone="PopplerDocument--format"><primary sortas="PopplerDocument:format">PopplerDocument:format</primary></indexterm><programlisting> "format" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>The PDF version of the document.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--format-major" role="property"><title>The <literal>"format-major"</literal> property</title> -<indexterm zone="PopplerDocument--format-major"><primary sortas="PopplerDocument:format-major">PopplerDocument:format-major</primary></indexterm><programlisting> "format-major" <link linkend="guint">guint</link> : Read</programlisting> -<para>The PDF major version number of the document.</para><para>Default value: 1</para> -</refsect2> -<refsect2 id="PopplerDocument--format-minor" role="property"><title>The <literal>"format-minor"</literal> property</title> -<indexterm zone="PopplerDocument--format-minor"><primary sortas="PopplerDocument:format-minor">PopplerDocument:format-minor</primary></indexterm><programlisting> "format-minor" <link linkend="guint">guint</link> : Read</programlisting> -<para>The PDF minor version number of the document.</para><para>Default value: 0</para> -</refsect2> -<refsect2 id="PopplerDocument--keywords" role="property"><title>The <literal>"keywords"</literal> property</title> -<indexterm zone="PopplerDocument--keywords"><primary sortas="PopplerDocument:keywords">PopplerDocument:keywords</primary></indexterm><programlisting> "keywords" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>Keywords.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--linearized" role="property"><title>The <literal>"linearized"</literal> property</title> -<indexterm zone="PopplerDocument--linearized"><primary sortas="PopplerDocument:linearized">PopplerDocument:linearized</primary></indexterm><programlisting> "linearized" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>Is the document optimized for web viewing?.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--metadata" role="property"><title>The <literal>"metadata"</literal> property</title> -<indexterm zone="PopplerDocument--metadata"><primary sortas="PopplerDocument:metadata">PopplerDocument:metadata</primary></indexterm><programlisting> "metadata" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>Embedded XML metadata.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--mod-date" role="property"><title>The <literal>"mod-date"</literal> property</title> -<indexterm zone="PopplerDocument--mod-date"><primary sortas="PopplerDocument:mod-date">PopplerDocument:mod-date</primary></indexterm><programlisting> "mod-date" <link linkend="gint">gint</link> : Read</programlisting> -<para>The date and time the document was modified.</para><para>Allowed values: >= 0</para> -<para>Default value: 0</para> -</refsect2> -<refsect2 id="PopplerDocument--page-layout" role="property"><title>The <literal>"page-layout"</literal> property</title> -<indexterm zone="PopplerDocument--page-layout"><primary sortas="PopplerDocument:page-layout">PopplerDocument:page-layout</primary></indexterm><programlisting> "page-layout" <link linkend="PopplerPageLayout">PopplerPageLayout</link> : Read</programlisting> -<para>Initial Page Layout.</para><para>Default value: POPPLER_PAGE_LAYOUT_UNSET</para> -</refsect2> -<refsect2 id="PopplerDocument--page-mode" role="property"><title>The <literal>"page-mode"</literal> property</title> -<indexterm zone="PopplerDocument--page-mode"><primary sortas="PopplerDocument:page-mode">PopplerDocument:page-mode</primary></indexterm><programlisting> "page-mode" <link linkend="PopplerPageMode">PopplerPageMode</link> : Read</programlisting> -<para>Page Mode.</para><para>Default value: POPPLER_PAGE_MODE_UNSET</para> -</refsect2> -<refsect2 id="PopplerDocument--permissions" role="property"><title>The <literal>"permissions"</literal> property</title> -<indexterm zone="PopplerDocument--permissions"><primary sortas="PopplerDocument:permissions">PopplerDocument:permissions</primary></indexterm><programlisting> "permissions" <link linkend="PopplerPermissions">PopplerPermissions</link> : Read</programlisting> -<para>Permissions.</para><para>Default value: POPPLER_PERMISSIONS_OK_TO_PRINT|POPPLER_PERMISSIONS_OK_TO_MODIFY|POPPLER_PERMISSIONS_OK_TO_COPY|POPPLER_PERMISSIONS_OK_TO_ADD_NOTES|POPPLER_PERMISSIONS_OK_TO_FILL_FORM</para> -</refsect2> -<refsect2 id="PopplerDocument--producer" role="property"><title>The <literal>"producer"</literal> property</title> -<indexterm zone="PopplerDocument--producer"><primary sortas="PopplerDocument:producer">PopplerDocument:producer</primary></indexterm><programlisting> "producer" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>The software that converted the document.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--subject" role="property"><title>The <literal>"subject"</literal> property</title> -<indexterm zone="PopplerDocument--subject"><primary sortas="PopplerDocument:subject">PopplerDocument:subject</primary></indexterm><programlisting> "subject" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>Subjects the document touches.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--title" role="property"><title>The <literal>"title"</literal> property</title> -<indexterm zone="PopplerDocument--title"><primary sortas="PopplerDocument:title">PopplerDocument:title</primary></indexterm><programlisting> "title" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>The title of the document.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--viewer-preferences" role="property"><title>The <literal>"viewer-preferences"</literal> property</title> -<indexterm zone="PopplerDocument--viewer-preferences"><primary sortas="PopplerDocument:viewer-preferences">PopplerDocument:viewer-preferences</primary></indexterm><programlisting> "viewer-preferences" <link linkend="PopplerViewerPreferences">PopplerViewerPreferences</link> : Read</programlisting> -<para>Viewer Preferences.</para></refsect2> -<refsect2 id="PopplerPage--label" role="property"><title>The <literal>"label"</literal> property</title> -<indexterm zone="PopplerPage--label"><primary sortas="PopplerPage:label">PopplerPage:label</primary></indexterm><programlisting> "label" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>The label of the page.</para><para>Default value: NULL</para> -</refsect2> -</refsect1> - - - - -</refentry> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler.xml b/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler.xml deleted file mode 100644 index a347b370f90..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/reference/xml/poppler.xml +++ /dev/null @@ -1,362 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<refentry id="poppler-poppler"> -<refmeta> -<refentrytitle role="top_of_page" id="poppler-poppler.top_of_page">poppler</refentrytitle> -<manvolnum>3</manvolnum> -<refmiscinfo>POPPLER Library</refmiscinfo> -</refmeta> - -<refnamediv> -<refname>poppler</refname> -<refpurpose></refpurpose> -</refnamediv> - -<refsynopsisdiv id="poppler-poppler.synopsis" role="synopsis"> -<title role="synopsis.title">Synopsis</title> -<anchor id="PopplerDocument"/><anchor id="PopplerPage"/> -<synopsis> -<link linkend="GQuark">GQuark</link> <link linkend="poppler-error-quark">poppler_error_quark</link> (void); -#define <link linkend="POPPLER-ERROR--CAPS">POPPLER_ERROR</link> -enum <link linkend="PopplerError">PopplerError</link>; -enum <link linkend="PopplerOrientation">PopplerOrientation</link>; - <link linkend="PopplerDocument-struct">PopplerDocument</link>; - <link linkend="PopplerIndexIter">PopplerIndexIter</link>; - <link linkend="PopplerFontsIter">PopplerFontsIter</link>; - <link linkend="PopplerRectangle">PopplerRectangle</link>; -enum <link linkend="PopplerSelectionStyle">PopplerSelectionStyle</link>; -enum <link linkend="PopplerPageTransitionType">PopplerPageTransitionType</link>; -enum <link linkend="PopplerPageTransitionAlignment">PopplerPageTransitionAlignment</link>; -enum <link linkend="PopplerPageTransitionDirection">PopplerPageTransitionDirection</link>; - <link linkend="PopplerLinkMapping">PopplerLinkMapping</link>; - <link linkend="PopplerPage-struct">PopplerPage</link>; - <link linkend="PopplerFontInfo">PopplerFontInfo</link>; - <link linkend="PopplerPSFile">PopplerPSFile</link>; -enum <link linkend="PopplerBackend">PopplerBackend</link>; -<link linkend="PopplerBackend">PopplerBackend</link> <link linkend="poppler-get-backend">poppler_get_backend</link> (void); -const <link linkend="char">char</link> * <link linkend="poppler-get-version">poppler_get_version</link> (void); -</synopsis> -</refsynopsisdiv> - -<refsect1 id="poppler-poppler.object-hierarchy" role="object_hierarchy"> -<title role="object_hierarchy.title">Object Hierarchy</title> -<synopsis> - <link linkend="GObject">GObject</link> - +----PopplerDocument -</synopsis> -<synopsis> - <link linkend="GObject">GObject</link> - +----PopplerPage -</synopsis> -</refsect1> - - - - - -<refsect1 id="poppler-poppler.properties" role="properties"> -<title role="properties.title">Properties</title> -<synopsis> - "<link linkend="PopplerDocument--author">author</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--creation-date">creation-date</link>" <link linkend="gint">gint</link> : Read - "<link linkend="PopplerDocument--creator">creator</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--format">format</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--format-major">format-major</link>" <link linkend="guint">guint</link> : Read - "<link linkend="PopplerDocument--format-minor">format-minor</link>" <link linkend="guint">guint</link> : Read - "<link linkend="PopplerDocument--keywords">keywords</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--linearized">linearized</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--metadata">metadata</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--mod-date">mod-date</link>" <link linkend="gint">gint</link> : Read - "<link linkend="PopplerDocument--page-layout">page-layout</link>" <link linkend="PopplerPageLayout">PopplerPageLayout</link> : Read - "<link linkend="PopplerDocument--page-mode">page-mode</link>" <link linkend="PopplerPageMode">PopplerPageMode</link> : Read - "<link linkend="PopplerDocument--permissions">permissions</link>" <link linkend="PopplerPermissions">PopplerPermissions</link> : Read - "<link linkend="PopplerDocument--producer">producer</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--subject">subject</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--title">title</link>" <link linkend="gchar">gchar</link>* : Read - "<link linkend="PopplerDocument--viewer-preferences">viewer-preferences</link>" <link linkend="PopplerViewerPreferences">PopplerViewerPreferences</link> : Read - "<link linkend="PopplerPage--label">label</link>" <link linkend="gchar">gchar</link>* : Read -</synopsis> -</refsect1> - - - -<refsect1 id="poppler-poppler.description" role="desc"> -<title role="desc.title">Description</title> -<para> -</para> -</refsect1> - -<refsect1 id="poppler-poppler.details" role="details"> -<title role="details.title">Details</title> -<refsect2 id="poppler-error-quark" role="function"> -<title>poppler_error_quark ()</title> -<indexterm zone="poppler-error-quark"><primary sortas="poppler_error_quark">poppler_error_quark</primary></indexterm><programlisting><link linkend="GQuark">GQuark</link> poppler_error_quark (void);</programlisting> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="POPPLER-ERROR--CAPS" role="macro"> -<title>POPPLER_ERROR</title> -<indexterm zone="POPPLER-ERROR--CAPS"><primary sortas="POPPLER_ERROR">POPPLER_ERROR</primary></indexterm><programlisting>#define POPPLER_ERROR poppler_error_quark () -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerError" role="enum"> -<title>enum PopplerError</title> -<indexterm zone="PopplerError"><primary sortas="PopplerError">PopplerError</primary></indexterm><programlisting>typedef enum -{ - POPPLER_ERROR_INVALID, - POPPLER_ERROR_ENCRYPTED, - POPPLER_ERROR_OPEN_FILE, - POPPLER_ERROR_BAD_CATALOG, - POPPLER_ERROR_DAMAGED -} PopplerError; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerOrientation" role="enum"> -<title>enum PopplerOrientation</title> -<indexterm zone="PopplerOrientation"><primary sortas="PopplerOrientation">PopplerOrientation</primary></indexterm><programlisting>typedef enum -{ - POPPLER_ORIENTATION_PORTRAIT, - POPPLER_ORIENTATION_LANDSCAPE, - POPPLER_ORIENTATION_UPSIDEDOWN, - POPPLER_ORIENTATION_SEASCAPE -} PopplerOrientation; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerDocument-struct" role="struct"> -<title>PopplerDocument</title> -<indexterm zone="PopplerDocument-struct"><primary sortas="PopplerDocument">PopplerDocument</primary></indexterm><programlisting>typedef struct _PopplerDocument PopplerDocument;</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerIndexIter" role="struct"> -<title>PopplerIndexIter</title> -<indexterm zone="PopplerIndexIter"><primary sortas="PopplerIndexIter">PopplerIndexIter</primary></indexterm><programlisting>typedef struct _PopplerIndexIter PopplerIndexIter;</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerFontsIter" role="struct"> -<title>PopplerFontsIter</title> -<indexterm zone="PopplerFontsIter"><primary sortas="PopplerFontsIter">PopplerFontsIter</primary></indexterm><programlisting>typedef struct _PopplerFontsIter PopplerFontsIter;</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerRectangle" role="struct"> -<title>PopplerRectangle</title> -<indexterm zone="PopplerRectangle"><primary sortas="PopplerRectangle">PopplerRectangle</primary></indexterm><programlisting>typedef struct { - gdouble x1; - gdouble y1; - gdouble x2; - gdouble y2; -} PopplerRectangle; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerSelectionStyle" role="enum"> -<title>enum PopplerSelectionStyle</title> -<indexterm zone="PopplerSelectionStyle"><primary sortas="PopplerSelectionStyle">PopplerSelectionStyle</primary></indexterm><programlisting>typedef enum -{ - POPPLER_SELECTION_GLYPH, - POPPLER_SELECTION_WORD, - POPPLER_SELECTION_LINE -} PopplerSelectionStyle; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerPageTransitionType" role="enum"> -<title>enum PopplerPageTransitionType</title> -<indexterm zone="PopplerPageTransitionType"><primary sortas="PopplerPageTransitionType">PopplerPageTransitionType</primary></indexterm><programlisting>typedef enum -{ - POPPLER_PAGE_TRANSITION_REPLACE, - POPPLER_PAGE_TRANSITION_SPLIT, - POPPLER_PAGE_TRANSITION_BLINDS, - POPPLER_PAGE_TRANSITION_BOX, - POPPLER_PAGE_TRANSITION_WIPE, - POPPLER_PAGE_TRANSITION_DISSOLVE, - POPPLER_PAGE_TRANSITION_GLITTER, - POPPLER_PAGE_TRANSITION_FLY, - POPPLER_PAGE_TRANSITION_PUSH, - POPPLER_PAGE_TRANSITION_COVER, - POPPLER_PAGE_TRANSITION_UNCOVER, - POPPLER_PAGE_TRANSITION_FADE -} PopplerPageTransitionType; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerPageTransitionAlignment" role="enum"> -<title>enum PopplerPageTransitionAlignment</title> -<indexterm zone="PopplerPageTransitionAlignment"><primary sortas="PopplerPageTransitionAlignment">PopplerPageTransitionAlignment</primary></indexterm><programlisting>typedef enum -{ - POPPLER_PAGE_TRANSITION_HORIZONTAL, - POPPLER_PAGE_TRANSITION_VERTICAL -} PopplerPageTransitionAlignment; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerPageTransitionDirection" role="enum"> -<title>enum PopplerPageTransitionDirection</title> -<indexterm zone="PopplerPageTransitionDirection"><primary sortas="PopplerPageTransitionDirection">PopplerPageTransitionDirection</primary></indexterm><programlisting>typedef enum -{ - POPPLER_PAGE_TRANSITION_INWARD, - POPPLER_PAGE_TRANSITION_OUTWARD -} PopplerPageTransitionDirection; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerLinkMapping" role="struct"> -<title>PopplerLinkMapping</title> -<indexterm zone="PopplerLinkMapping"><primary sortas="PopplerLinkMapping">PopplerLinkMapping</primary></indexterm><programlisting>typedef struct { - PopplerRectangle area; - PopplerAction *action; -} PopplerLinkMapping; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerPage-struct" role="struct"> -<title>PopplerPage</title> -<indexterm zone="PopplerPage-struct"><primary sortas="PopplerPage">PopplerPage</primary></indexterm><programlisting>typedef struct _PopplerPage PopplerPage;</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerFontInfo" role="struct"> -<title>PopplerFontInfo</title> -<indexterm zone="PopplerFontInfo"><primary sortas="PopplerFontInfo">PopplerFontInfo</primary></indexterm><programlisting>typedef struct { - GObject parent_instance; - PopplerDocument *document; - FontInfoScanner *scanner; -} PopplerFontInfo; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerPSFile" role="struct"> -<title>PopplerPSFile</title> -<indexterm zone="PopplerPSFile"><primary sortas="PopplerPSFile">PopplerPSFile</primary></indexterm><programlisting>typedef struct { - GObject parent_instance; - - PopplerDocument *document; - PSOutputDev *out; - char *filename; - int first_page; - int last_page; - double paper_width; - double paper_height; - gboolean duplex; -} PopplerPSFile; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="PopplerBackend" role="enum"> -<title>enum PopplerBackend</title> -<indexterm zone="PopplerBackend"><primary sortas="PopplerBackend">PopplerBackend</primary></indexterm><programlisting>typedef enum -{ - POPPLER_BACKEND_UNKNOWN, - POPPLER_BACKEND_SPLASH, - POPPLER_BACKEND_CAIRO -} PopplerBackend; -</programlisting> -<para> -</para></refsect2> -<refsect2 id="poppler-get-backend" role="function"> -<title>poppler_get_backend ()</title> -<indexterm zone="poppler-get-backend"><primary sortas="poppler_get_backend">poppler_get_backend</primary></indexterm><programlisting><link linkend="PopplerBackend">PopplerBackend</link> poppler_get_backend (void);</programlisting> -<para> -Returns the backend compiled into the poppler library.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> The backend used by poppler -</simpara></listitem></varlistentry> -</variablelist></refsect2> -<refsect2 id="poppler-get-version" role="function"> -<title>poppler_get_version ()</title> -<indexterm zone="poppler-get-version"><primary sortas="poppler_get_version">poppler_get_version</primary></indexterm><programlisting>const <link linkend="char">char</link> * poppler_get_version (void);</programlisting> -<para> -Returns the version of poppler in use. This result is not to be freed.</para> -<para> -</para><variablelist role="params"> -<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the version of poppler. -</simpara></listitem></varlistentry> -</variablelist></refsect2> - -</refsect1> -<refsect1 id="poppler-poppler.property-details" role="property_details"> -<title role="property_details.title">Property Details</title> -<refsect2 id="PopplerDocument--author" role="property"><title>The <literal>"author"</literal> property</title> -<indexterm zone="PopplerDocument--author"><primary sortas="PopplerDocument:author">PopplerDocument:author</primary></indexterm><programlisting> "author" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>The author of the document.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--creation-date" role="property"><title>The <literal>"creation-date"</literal> property</title> -<indexterm zone="PopplerDocument--creation-date"><primary sortas="PopplerDocument:creation-date">PopplerDocument:creation-date</primary></indexterm><programlisting> "creation-date" <link linkend="gint">gint</link> : Read</programlisting> -<para>The date and time the document was created.</para><para>Allowed values: >= 0</para> -<para>Default value: 0</para> -</refsect2> -<refsect2 id="PopplerDocument--creator" role="property"><title>The <literal>"creator"</literal> property</title> -<indexterm zone="PopplerDocument--creator"><primary sortas="PopplerDocument:creator">PopplerDocument:creator</primary></indexterm><programlisting> "creator" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>The software that created the document.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--format" role="property"><title>The <literal>"format"</literal> property</title> -<indexterm zone="PopplerDocument--format"><primary sortas="PopplerDocument:format">PopplerDocument:format</primary></indexterm><programlisting> "format" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>The PDF version of the document.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--format-major" role="property"><title>The <literal>"format-major"</literal> property</title> -<indexterm zone="PopplerDocument--format-major"><primary sortas="PopplerDocument:format-major">PopplerDocument:format-major</primary></indexterm><programlisting> "format-major" <link linkend="guint">guint</link> : Read</programlisting> -<para>The PDF major version number of the document.</para><para>Default value: 1</para> -</refsect2> -<refsect2 id="PopplerDocument--format-minor" role="property"><title>The <literal>"format-minor"</literal> property</title> -<indexterm zone="PopplerDocument--format-minor"><primary sortas="PopplerDocument:format-minor">PopplerDocument:format-minor</primary></indexterm><programlisting> "format-minor" <link linkend="guint">guint</link> : Read</programlisting> -<para>The PDF minor version number of the document.</para><para>Default value: 0</para> -</refsect2> -<refsect2 id="PopplerDocument--keywords" role="property"><title>The <literal>"keywords"</literal> property</title> -<indexterm zone="PopplerDocument--keywords"><primary sortas="PopplerDocument:keywords">PopplerDocument:keywords</primary></indexterm><programlisting> "keywords" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>Keywords.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--linearized" role="property"><title>The <literal>"linearized"</literal> property</title> -<indexterm zone="PopplerDocument--linearized"><primary sortas="PopplerDocument:linearized">PopplerDocument:linearized</primary></indexterm><programlisting> "linearized" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>Is the document optimized for web viewing?.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--metadata" role="property"><title>The <literal>"metadata"</literal> property</title> -<indexterm zone="PopplerDocument--metadata"><primary sortas="PopplerDocument:metadata">PopplerDocument:metadata</primary></indexterm><programlisting> "metadata" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>Embedded XML metadata.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--mod-date" role="property"><title>The <literal>"mod-date"</literal> property</title> -<indexterm zone="PopplerDocument--mod-date"><primary sortas="PopplerDocument:mod-date">PopplerDocument:mod-date</primary></indexterm><programlisting> "mod-date" <link linkend="gint">gint</link> : Read</programlisting> -<para>The date and time the document was modified.</para><para>Allowed values: >= 0</para> -<para>Default value: 0</para> -</refsect2> -<refsect2 id="PopplerDocument--page-layout" role="property"><title>The <literal>"page-layout"</literal> property</title> -<indexterm zone="PopplerDocument--page-layout"><primary sortas="PopplerDocument:page-layout">PopplerDocument:page-layout</primary></indexterm><programlisting> "page-layout" <link linkend="PopplerPageLayout">PopplerPageLayout</link> : Read</programlisting> -<para>Initial Page Layout.</para><para>Default value: POPPLER_PAGE_LAYOUT_UNSET</para> -</refsect2> -<refsect2 id="PopplerDocument--page-mode" role="property"><title>The <literal>"page-mode"</literal> property</title> -<indexterm zone="PopplerDocument--page-mode"><primary sortas="PopplerDocument:page-mode">PopplerDocument:page-mode</primary></indexterm><programlisting> "page-mode" <link linkend="PopplerPageMode">PopplerPageMode</link> : Read</programlisting> -<para>Page Mode.</para><para>Default value: POPPLER_PAGE_MODE_UNSET</para> -</refsect2> -<refsect2 id="PopplerDocument--permissions" role="property"><title>The <literal>"permissions"</literal> property</title> -<indexterm zone="PopplerDocument--permissions"><primary sortas="PopplerDocument:permissions">PopplerDocument:permissions</primary></indexterm><programlisting> "permissions" <link linkend="PopplerPermissions">PopplerPermissions</link> : Read</programlisting> -<para>Permissions.</para><para>Default value: POPPLER_PERMISSIONS_OK_TO_PRINT|POPPLER_PERMISSIONS_OK_TO_MODIFY|POPPLER_PERMISSIONS_OK_TO_COPY|POPPLER_PERMISSIONS_OK_TO_ADD_NOTES|POPPLER_PERMISSIONS_OK_TO_FILL_FORM</para> -</refsect2> -<refsect2 id="PopplerDocument--producer" role="property"><title>The <literal>"producer"</literal> property</title> -<indexterm zone="PopplerDocument--producer"><primary sortas="PopplerDocument:producer">PopplerDocument:producer</primary></indexterm><programlisting> "producer" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>The software that converted the document.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--subject" role="property"><title>The <literal>"subject"</literal> property</title> -<indexterm zone="PopplerDocument--subject"><primary sortas="PopplerDocument:subject">PopplerDocument:subject</primary></indexterm><programlisting> "subject" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>Subjects the document touches.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--title" role="property"><title>The <literal>"title"</literal> property</title> -<indexterm zone="PopplerDocument--title"><primary sortas="PopplerDocument:title">PopplerDocument:title</primary></indexterm><programlisting> "title" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>The title of the document.</para><para>Default value: NULL</para> -</refsect2> -<refsect2 id="PopplerDocument--viewer-preferences" role="property"><title>The <literal>"viewer-preferences"</literal> property</title> -<indexterm zone="PopplerDocument--viewer-preferences"><primary sortas="PopplerDocument:viewer-preferences">PopplerDocument:viewer-preferences</primary></indexterm><programlisting> "viewer-preferences" <link linkend="PopplerViewerPreferences">PopplerViewerPreferences</link> : Read</programlisting> -<para>Viewer Preferences.</para></refsect2> -<refsect2 id="PopplerPage--label" role="property"><title>The <literal>"label"</literal> property</title> -<indexterm zone="PopplerPage--label"><primary sortas="PopplerPage:label">PopplerPage:label</primary></indexterm><programlisting> "label" <link linkend="gchar">gchar</link>* : Read</programlisting> -<para>The label of the page.</para><para>Default value: NULL</para> -</refsect2> -</refsect1> - - - - -</refentry> diff --git a/Build/source/libs/poppler/poppler-0.12.4/glib/test-poppler-glib.cc b/Build/source/libs/poppler/poppler-0.12.4/glib/test-poppler-glib.cc deleted file mode 100644 index e64000e8c2a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/glib/test-poppler-glib.cc +++ /dev/null @@ -1,665 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <time.h> -#include "config.h" -#include "poppler.h" - -#define FAIL(msg) \ - do { fprintf (stderr, "FAIL: %s\n", msg); exit (-1); } while (0) - -static gchar * -poppler_format_date (GTime utime) -{ - time_t time = (time_t) utime; - char s[256]; - const char *fmt_hack = "%c"; - size_t len; -#ifdef HAVE_LOCALTIME_R - struct tm t; - if (time == 0 || !localtime_r (&time, &t)) return NULL; - len = strftime (s, sizeof (s), fmt_hack, &t); -#else - struct tm *t; - if (time == 0 || !(t = localtime (&time)) ) return NULL; - len = strftime (s, sizeof (s), fmt_hack, t); -#endif - - if (len == 0 || s[0] == '\0') return NULL; - - return g_locale_to_utf8 (s, -1, NULL, NULL, NULL); -} - -static void -print_index (PopplerIndexIter *iter, gint deph) -{ - do - { - PopplerAction *action; - PopplerIndexIter *child; - int i; - - action = poppler_index_iter_get_action (iter); - for (i = 0; i < deph; i++) - g_print (" "); - g_print ("+ %s\n", action->any.title); - poppler_action_free (action); - child = poppler_index_iter_get_child (iter); - if (child) - print_index (child, deph + 1); - poppler_index_iter_free (child); - } - while (poppler_index_iter_next (iter)); -} - -static void -print_layers (PopplerLayersIter *iter, gint deph) -{ - do - { - PopplerLayersIter *child; - PopplerLayer *layer; - gint i; - - for (i = 0; i < deph; i++) - g_print (" "); - - layer = poppler_layers_iter_get_layer (iter); - if (layer) - { - g_print ("+ %s (%s)\n", poppler_layer_get_title (layer), - poppler_layer_is_visible (layer) ? - "Visible" : "Hidden"); - g_object_unref (layer); - } - - child = poppler_layers_iter_get_child (iter); - if (child) - { - gchar *title; - - title = poppler_layers_iter_get_title (iter); - if (title) - { - g_print ("+ %s\n", title); - g_free (title); - } - print_layers (child, deph + 1); - } - poppler_layers_iter_free (child); - } - while (poppler_layers_iter_next (iter)); -} - -static void -print_document_info (PopplerDocument *document) -{ - gchar *title, *format, *author, *subject, *keywords, *creator, *producer, *linearized; - GTime creation_date, mod_date; - gchar *strdate; - PopplerPageLayout layout; - PopplerPageMode mode; - PopplerViewerPreferences view_prefs; - PopplerPermissions permissions; - PopplerFontInfo *font_info; - PopplerFontsIter *fonts_iter; - PopplerIndexIter *index_iter; - GEnumValue *enum_value; - - g_object_get (document, - "title", &title, - "format", &format, - "author", &author, - "subject", &subject, - "keywords", &keywords, - "creation-date", &creation_date, - "mod-date", &mod_date, - "creator", &creator, - "producer", &producer, - "linearized", &linearized, - "page-mode", &mode, - "page-layout", &layout, - "viewer-preferences", &view_prefs, - "permissions", &permissions, - NULL); - - printf ("\t---------------------------------------------------------\n"); - printf ("\tDocument Metadata\n"); - printf ("\t---------------------------------------------------------\n"); - if (title) printf ("\ttitle:\t\t%s\n", title); - if (format) printf ("\tformat:\t\t%s\n", format); - if (author) printf ("\tauthor:\t\t%s\n", author); - if (subject) printf ("\tsubject:\t%s\n", subject); - if (keywords) printf ("\tkeywords:\t%s\n", keywords); - if (creator) printf ("\tcreator:\t%s\n", creator); - if (producer) printf ("\tproducer:\t%s\n", producer); - if (linearized) printf ("\tlinearized:\t%s\n", linearized); - - enum_value = g_enum_get_value ((GEnumClass *) g_type_class_peek (POPPLER_TYPE_PAGE_MODE), mode); - g_print ("\tpage mode:\t%s\n", enum_value->value_name); - enum_value = g_enum_get_value ((GEnumClass *) g_type_class_peek (POPPLER_TYPE_PAGE_LAYOUT), layout); - g_print ("\tpage layout:\t%s\n", enum_value->value_name); - - strdate = poppler_format_date (creation_date); - if (strdate) - { - g_print ("\tcreation date:\t%s\n", strdate); - g_free (strdate); - } - strdate = poppler_format_date (mod_date); - if (strdate) - { - g_print ("\tmodified date:\t%s\n", strdate); - g_free (strdate); - } - - g_print ("\tfonts:\n"); - font_info = poppler_font_info_new (document); - while (poppler_font_info_scan (font_info, 20, &fonts_iter)) { - if (fonts_iter) { - do { - g_print ("\t\t\t%s\n", poppler_fonts_iter_get_name (fonts_iter)); - } while (poppler_fonts_iter_next (fonts_iter)); - poppler_fonts_iter_free (fonts_iter); - } - } - g_object_unref (font_info); - - index_iter = poppler_index_iter_new (document); - if (index_iter) - { - g_print ("\tindex:\n"); - print_index (index_iter, 0); - poppler_index_iter_free (index_iter); - } - - printf ("\t---------------------------------------------------------\n"); - printf ("\tDocument Permissions\n"); - printf ("\t---------------------------------------------------------\n"); - - printf ("\tOk to Print: %s\n", - permissions & POPPLER_PERMISSIONS_OK_TO_PRINT ? "Yes" : "No"); - printf ("\tOk to Modify: %s\n", - permissions & POPPLER_PERMISSIONS_OK_TO_MODIFY ? "Yes" : "No"); - printf ("\tOk to Copy: %s\n", - permissions & POPPLER_PERMISSIONS_OK_TO_COPY ? "Yes" : "No"); - printf ("\tOk to Add Notes: %s\n", - permissions & POPPLER_PERMISSIONS_OK_TO_ADD_NOTES ? "Yes" : "No"); - printf ("\tOk to Fill Forms: %s\n", - permissions & POPPLER_PERMISSIONS_OK_TO_FILL_FORM ? "Yes" : "No"); - - printf ("\n"); - - /* FIXME: print out the view prefs when we support it */ - - g_free (title); - g_free (format); - g_free (author); - g_free (subject); - g_free (keywords); - g_free (creator); - g_free (producer); - g_free (linearized); -} - -static const gchar * -transition_effect_name (PopplerPageTransitionType type) -{ - switch (type) - { - case POPPLER_PAGE_TRANSITION_REPLACE: - return "Replace"; - case POPPLER_PAGE_TRANSITION_SPLIT: - return "Split"; - case POPPLER_PAGE_TRANSITION_BLINDS: - return "Blinds"; - case POPPLER_PAGE_TRANSITION_BOX: - return "Box"; - case POPPLER_PAGE_TRANSITION_WIPE: - return "Wipe"; - case POPPLER_PAGE_TRANSITION_DISSOLVE: - return "Dissolve"; - case POPPLER_PAGE_TRANSITION_GLITTER: - return "Glitter"; - case POPPLER_PAGE_TRANSITION_FLY: - return "Fly"; - case POPPLER_PAGE_TRANSITION_PUSH: - return "Push"; - case POPPLER_PAGE_TRANSITION_COVER: - return "Cover"; - case POPPLER_PAGE_TRANSITION_UNCOVER: - return "Uncover"; - case POPPLER_PAGE_TRANSITION_FADE: - return "Fade"; - } - - return "Unknown"; -} - -static void -print_page_transition (PopplerPageTransition *transition) -{ - printf ("\t\tEffect: %s\n", transition_effect_name (transition->type)); - printf ("\t\tAlignment: %s\n", - transition->alignment == POPPLER_PAGE_TRANSITION_HORIZONTAL ? - "Horizontal" : "Vertical"); - printf ("\t\tDirection: %s\n", - transition->direction == POPPLER_PAGE_TRANSITION_INWARD ? - "Inward" : "Outward"); - printf ("\t\tDuration: %d\n", transition->duration); - printf ("\t\tAngle: %d\n", transition->angle); - printf ("\t\tScale: %.2f\n", transition->scale); - printf ("\t\tRectangular: %s\n", transition->rectangular ? "Yes" : "No"); -} - -static void -form_field_text_print (PopplerFormField *field) -{ - PopplerFormTextType type; - gchar *text; - - type = poppler_form_field_text_get_text_type (field); - printf ("\t\tType:\t\tText\n"); - printf ("\t\tMultiline:\t%s\n", - type == POPPLER_FORM_TEXT_MULTILINE ? "Yes" : "No"); - printf ("\t\tFileSelect:\t%s\n", - type == POPPLER_FORM_TEXT_FILE_SELECT ? "Yes" : "No"); - printf ("\t\tDoSpellCheck:\t%s\n", - poppler_form_field_text_do_spell_check (field) ? "Yes" : "No"); - printf ("\t\tDoScroll:\t%s\n", - poppler_form_field_text_do_scroll (field) ? "Yes" : "No"); - printf ("\t\tIsRichText:\t%s\n", - poppler_form_field_text_is_rich_text (field) ? "Yes" : "No"); - printf ("\t\tPassword:\t%s\n", - poppler_form_field_text_is_password (field) ? "Yes" : "No"); - printf ("\t\tMaxLen:\t\t%d\n", poppler_form_field_text_get_max_len (field)); - text = poppler_form_field_text_get_text (field); - printf ("\t\tContent:\t%s\n", text ? text : ""); - g_free (text); -} - -static void -form_field_button_print (PopplerFormField *field) -{ - PopplerFormButtonType button_type; - const gchar *button_type_str; - - button_type = poppler_form_field_button_get_button_type (field); - - switch (button_type) - { - case POPPLER_FORM_BUTTON_PUSH: - button_type_str = "Push"; - break; - case POPPLER_FORM_BUTTON_CHECK: - button_type_str = "Check box"; - break; - case POPPLER_FORM_BUTTON_RADIO: - button_type_str = "Radio Button"; - break; - default: - g_assert_not_reached (); - } - - printf ("\t\tType:\t\tButton\n"); - printf ("\t\tButton type:\t%s\n", button_type_str); - if (button_type != POPPLER_FORM_BUTTON_PUSH) - printf ("\t\tState:\t\t%s\n", - poppler_form_field_button_get_state (field) ? "Active" : "Inactive"); -} - -static void -form_field_choice_print (PopplerFormField *field) -{ - gint i, n_items; - - printf ("\t\tType:\t\tChoice\n"); - printf ("\t\tSubType:\t%s\n", - poppler_form_field_choice_get_choice_type (field) == POPPLER_FORM_CHOICE_COMBO ? - "Combo" : "List"); - printf ("\t\tEditable:\t%s\n", - poppler_form_field_choice_is_editable (field) ? "Yes" : "No"); - printf ("\t\tCan select multiple: %s\n", - poppler_form_field_choice_can_select_multiple (field) ? "Yes" : "No"); - printf ("\t\tDoSpellCheck:\t%s\n", - poppler_form_field_choice_do_spell_check (field) ? "Yes" : "No"); - printf ("\t\tCommit on change: %s\n", - poppler_form_field_choice_commit_on_change (field) ? "Yes" : "No"); - - n_items = poppler_form_field_choice_get_n_items (field); - for (i = 0; i < n_items; i++) - { - gchar *item; - - item = poppler_form_field_choice_get_item (field, i); - printf ("\t\t\tItem %d: %s %s\n", i, item ? item : "", - poppler_form_field_choice_is_item_selected (field, i) ? - "(selected)" : ""); - g_free (item); - } -} - -static void -form_field_print (PopplerFormField *field) -{ - printf ("\t\tFont Size:\t%.2f\n", - poppler_form_field_get_font_size (field)); - printf ("\t\tReadOnly:\t%s\n", - poppler_form_field_is_read_only (field) ? "Yes" : "No"); - - switch (poppler_form_field_get_field_type (field)) - { - case POPPLER_FORM_FIELD_TEXT: - form_field_text_print (field); - break; - case POPPLER_FORM_FIELD_BUTTON: - form_field_button_print (field); - break; - case POPPLER_FORM_FIELD_CHOICE: - form_field_choice_print (field); - break; - default: - printf ("\t\tUnknown form field\n"); - } - printf ("\n"); -} - -static void -annot_print (PopplerAnnot *annot) -{ - GEnumValue *enum_value; - gchar *text; - - enum_value = g_enum_get_value ((GEnumClass *) g_type_class_ref (POPPLER_TYPE_ANNOT_TYPE), - poppler_annot_get_annot_type (annot)); - g_print ("\t\tType: %s\n", enum_value->value_name); - text = poppler_annot_get_contents (annot); - g_print ("\t\tContents: %s\n", text); - g_free (text); - printf ("\n"); -} - -int main (int argc, char *argv[]) -{ - PopplerDocument *document; - PopplerBackend backend; - PopplerPage *page; - PopplerPageTransition *transition; - PopplerFormField *field; - GEnumValue *enum_value; - char *label; - GError *error; - GdkPixbuf *pixbuf, *thumb; - double width, height; - GList *list, *l; - char *text; - double duration; - PopplerRectangle area; - gint num_images; - gint num_forms; - gint num_links; - gint num_annots; - gint form_id = 0; - PopplerLayersIter *layers_iter; - - if (argc != 3) - FAIL ("usage: test-poppler-glib file://FILE PAGE"); - - g_type_init (); - - g_print ("Poppler version %s\n", poppler_get_version ()); - backend = poppler_get_backend (); - enum_value = g_enum_get_value ((GEnumClass *) g_type_class_ref (POPPLER_TYPE_BACKEND), backend); - g_print ("Backend is %s\n", enum_value->value_name); - - error = NULL; - document = poppler_document_new_from_file (argv[1], NULL, &error); - if (document == NULL) - FAIL (error->message); - - print_document_info (document); - - page = poppler_document_get_page_by_label (document, argv[2]); - if (page == NULL) - FAIL ("page not found"); - - poppler_page_get_size (page, &width, &height); - printf ("\tpage size:\t%f inches by %f inches\n", width / 72, height / 72); - - duration = poppler_page_get_duration (page); - if (duration > 0) - printf ("\tpage duration:\t%f second(s)\n", duration); - else - printf ("\tpage duration:\tno duration for page\n"); - - transition = poppler_page_get_transition (page); - if (transition) { - printf ("\tpage transition:\n"); - print_page_transition (transition); - poppler_page_transition_free (transition); - } else { - printf ("\tpage transition:no transition effect for page\n"); - } - - thumb = poppler_page_get_thumbnail_pixbuf (page); - if (thumb != NULL) { - gdk_pixbuf_save (thumb, "thumb.png", "png", &error, NULL); - if (error != NULL) - FAIL (error->message); - else - printf ("\tthumbnail:\tsaved as thumb.png\n"); - g_object_unref (G_OBJECT (thumb)); - } - else - printf ("\tthumbnail:\tno thumbnail for page\n"); - - g_object_get (page, "label", &label, NULL); - printf ("\tpage label:\t%s\n", label); - g_free (label); - - pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, 220, 220); - gdk_pixbuf_fill (pixbuf, 0x00106000); - poppler_page_render_to_pixbuf (page, 100, 100, 200, 200, 1, 0, pixbuf); - - gdk_pixbuf_save (pixbuf, "slice.png", "png", &error, NULL); - printf ("\tslice:\t\tsaved 200x200 slice at (100, 100) as slice.png\n"); - if (error != NULL) { - FAIL (error->message); - g_error_free (error); - } - - g_object_unref (G_OBJECT (pixbuf)); - - list = poppler_page_get_link_mapping (page); - num_links = g_list_length (list); - if (num_links > 0) - printf ("\tFound %d links at positions:\n", num_links); - else - printf ("\tNo links found\n"); - - for (l = list; l != NULL; l = l->next) - { - PopplerLinkMapping *mapping = (PopplerLinkMapping *)l->data; - - printf ("\t\t(%f, %f) - (%f, %f)\n", - mapping->area.x1, - mapping->area.y1, - mapping->area.x2, - mapping->area.y2); - enum_value = g_enum_get_value ((GEnumClass *) g_type_class_ref (POPPLER_TYPE_ACTION_TYPE), - mapping->action->type); - g_print ("\t\t\tAction: %s (%d)\n", enum_value->value_name, mapping->action->type); - switch (mapping->action->type) - { - case POPPLER_ACTION_GOTO_DEST: - printf("\t\t\tDest title: %s\n", mapping->action->goto_dest.title); - printf("\t\t\tNamed dest: %s\n", mapping->action->goto_dest.dest->named_dest); - break; - default: - printf("\t\t\tDetails unimplemented for this action type\n"); - } - } - poppler_page_free_link_mapping (list); - - area.x1 = 0; - area.y1 = 0; - area.x2 = width; - area.y2 = height; - - text = poppler_page_get_text (page, POPPLER_SELECTION_GLYPH, &area); - if (text) - { - FILE *file = fopen ("dump.txt", "w"); - if (file) - { - fwrite (text, strlen (text), 1, file); - fclose (file); - } - g_free (text); - } - - list = poppler_page_find_text (page, "Bitwise"); - printf ("\n"); - printf ("\tFound text \"Bitwise\" at positions:\n"); - for (l = list; l != NULL; l = l->next) - { - PopplerRectangle *rect = (PopplerRectangle *)l->data; - - printf (" (%f,%f)-(%f,%f)\n", rect->x1, rect->y1, rect->x2, rect->y2); - } - - list = poppler_page_get_image_mapping (page); - num_images = g_list_length (list); - printf ("\n"); - if (num_images > 0) - printf ("\tFound %d images at positions:\n", num_images); - else - printf ("\tNo images found\n"); - for (l = list; l != NULL; l = l->next) - { - PopplerImageMapping *mapping; -#if defined (HAVE_CAIRO) - cairo_surface_t *image; -#endif - mapping = (PopplerImageMapping *)l->data; - printf ("\t\t(%f, %f) - (%f, %f)\n", - mapping->area.x1, - mapping->area.y1, - mapping->area.x2, - mapping->area.y2); -#if defined (HAVE_CAIRO) - image = poppler_page_get_image (page, mapping->image_id); - printf ("\t\tImage: %p\n", image); - cairo_surface_destroy (image); -#endif - } - poppler_page_free_image_mapping (list); - - list = poppler_page_get_form_field_mapping (page); - num_forms = g_list_length (list); - printf ("\n"); - if (num_forms > 0) - printf ("\tFound %d form fields at positions:\n", num_forms); - else - printf ("\tNo forms fields found\n"); - for (l = list; l != NULL; l = l->next) - { - PopplerFormFieldMapping *mapping; - - mapping = (PopplerFormFieldMapping *)l->data; - - form_id = poppler_form_field_get_id (mapping->field); - - printf ("\t\tId: %d: (%f, %f) - (%f, %f)\n", - form_id, - mapping->area.x1, - mapping->area.y1, - mapping->area.x2, - mapping->area.y2); - form_field_print (mapping->field); - } - poppler_page_free_form_field_mapping (list); - - if (num_forms > 0) - { - field = poppler_document_get_form_field (document, form_id); - printf ("\tForm field for id %d\n", form_id); - form_field_print (field); - g_object_unref (field); - } - - list = poppler_page_get_annot_mapping (page); - num_annots = g_list_length (list); - if (num_annots > 0) - printf ("\tFound %d annotations at positions:\n", num_annots); - else - printf ("\tNo annotations found\n"); - for (l = list; l != NULL; l = l->next) - { - PopplerAnnotMapping *mapping = (PopplerAnnotMapping *)l->data; - - printf ("\t\t(%f, %f) - (%f, %f)\n", - mapping->area.x1, - mapping->area.y1, - mapping->area.x2, - mapping->area.y2); - - annot_print (mapping->annot); - } - poppler_page_free_annot_mapping (list); - - if (poppler_document_has_attachments (document)) - { - int i = 0; - - g_print ("Attachments found:\n\n"); - - list = poppler_document_get_attachments (document); - for (l = list; l; l = l->next) - { - PopplerAttachment *attachment; - char *filename, *strdate; - - filename = g_strdup_printf ("/tmp/attach%d", i); - attachment = (PopplerAttachment *)l->data; - g_print ("\tname: %s\n", attachment->name); - g_print ("\tdescription: %s\n", attachment->description); - g_print ("\tsize: %" G_GSIZE_FORMAT "\n", attachment->size); - strdate = poppler_format_date (attachment->ctime); - if (strdate) - { - g_print ("\tcreation date: %s\n", strdate); - g_free (strdate); - } - strdate = poppler_format_date (attachment->mtime); - if (strdate) - { - g_print ("\tmodification date: %s\n", strdate); - g_free (strdate); - } - poppler_attachment_save (attachment, filename, NULL); - g_free (filename); - g_print ("\n"); - i++; - } - g_list_foreach (list, (GFunc) g_object_unref, NULL); - g_list_free (list); - } - else - g_print ("\tNo attachments found\n"); - - layers_iter = poppler_layers_iter_new (document); - if (layers_iter) - { - g_print ("\tLayers:\n"); - print_layers (layers_iter, 0); - poppler_layers_iter_free (layers_iter); - } - else - g_print ("\tNo layers found\n"); - - g_object_unref (G_OBJECT (page)); - g_object_unref (G_OBJECT (document)); - - return 0; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/goo/GooTimer.h b/Build/source/libs/poppler/poppler-0.12.4/goo/GooTimer.h index f03413c21e6..f03413c21e6 100755..100644 --- a/Build/source/libs/poppler/poppler-0.12.4/goo/GooTimer.h +++ b/Build/source/libs/poppler/poppler-0.12.4/goo/GooTimer.h diff --git a/Build/source/libs/poppler/poppler-0.12.4/goo/PNGWriter.h b/Build/source/libs/poppler/poppler-0.12.4/goo/PNGWriter.h index 0540bd7dfa2..b65c19ed9a5 100644 --- a/Build/source/libs/poppler/poppler-0.12.4/goo/PNGWriter.h +++ b/Build/source/libs/poppler/poppler-0.12.4/goo/PNGWriter.h @@ -40,4 +40,4 @@ class PNGWriter #endif -#endif
\ No newline at end of file +#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/install-sh b/Build/source/libs/poppler/poppler-0.12.4/install-sh deleted file mode 100755 index a5897de6ea7..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/install-sh +++ /dev/null @@ -1,519 +0,0 @@ -#!/bin/sh -# install - install a program, script, or datafile - -scriptversion=2006-12-25.00 - -# This originates from X11R5 (mit/util/scripts/install.sh), which was -# later released in X11R6 (xc/config/util/install.sh) with the -# following copyright and license. -# -# Copyright (C) 1994 X Consortium -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- -# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# -# Except as contained in this notice, the name of the X Consortium shall not -# be used in advertising or otherwise to promote the sale, use or other deal- -# ings in this Software without prior written authorization from the X Consor- -# tium. -# -# -# FSF changes to this file are in the public domain. -# -# Calling this script install-sh is preferred over install.sh, to prevent -# `make' implicit rules from creating a file called install from it -# when there is no Makefile. -# -# This script is compatible with the BSD install script, but was written -# from scratch. - -nl=' -' -IFS=" "" $nl" - -# set DOITPROG to echo to test this script - -# Don't use :- since 4.3BSD and earlier shells don't like it. -doit=${DOITPROG-} -if test -z "$doit"; then - doit_exec=exec -else - doit_exec=$doit -fi - -# Put in absolute file names if you don't have them in your path; -# or use environment vars. - -chgrpprog=${CHGRPPROG-chgrp} -chmodprog=${CHMODPROG-chmod} -chownprog=${CHOWNPROG-chown} -cmpprog=${CMPPROG-cmp} -cpprog=${CPPROG-cp} -mkdirprog=${MKDIRPROG-mkdir} -mvprog=${MVPROG-mv} -rmprog=${RMPROG-rm} -stripprog=${STRIPPROG-strip} - -posix_glob='?' -initialize_posix_glob=' - test "$posix_glob" != "?" || { - if (set -f) 2>/dev/null; then - posix_glob= - else - posix_glob=: - fi - } -' - -posix_mkdir= - -# Desired mode of installed file. -mode=0755 - -chgrpcmd= -chmodcmd=$chmodprog -chowncmd= -mvcmd=$mvprog -rmcmd="$rmprog -f" -stripcmd= - -src= -dst= -dir_arg= -dst_arg= - -copy_on_change=false -no_target_directory= - -usage="\ -Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE - or: $0 [OPTION]... SRCFILES... DIRECTORY - or: $0 [OPTION]... -t DIRECTORY SRCFILES... - or: $0 [OPTION]... -d DIRECTORIES... - -In the 1st form, copy SRCFILE to DSTFILE. -In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. -In the 4th, create DIRECTORIES. - -Options: - --help display this help and exit. - --version display version info and exit. - - -c (ignored) - -C install only if different (preserve the last data modification time) - -d create directories instead of installing files. - -g GROUP $chgrpprog installed files to GROUP. - -m MODE $chmodprog installed files to MODE. - -o USER $chownprog installed files to USER. - -s $stripprog installed files. - -t DIRECTORY install into DIRECTORY. - -T report an error if DSTFILE is a directory. - -Environment variables override the default commands: - CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG - RMPROG STRIPPROG -" - -while test $# -ne 0; do - case $1 in - -c) ;; - - -C) copy_on_change=true;; - - -d) dir_arg=true;; - - -g) chgrpcmd="$chgrpprog $2" - shift;; - - --help) echo "$usage"; exit $?;; - - -m) mode=$2 - case $mode in - *' '* | *' '* | *' -'* | *'*'* | *'?'* | *'['*) - echo "$0: invalid mode: $mode" >&2 - exit 1;; - esac - shift;; - - -o) chowncmd="$chownprog $2" - shift;; - - -s) stripcmd=$stripprog;; - - -t) dst_arg=$2 - shift;; - - -T) no_target_directory=true;; - - --version) echo "$0 $scriptversion"; exit $?;; - - --) shift - break;; - - -*) echo "$0: invalid option: $1" >&2 - exit 1;; - - *) break;; - esac - shift -done - -if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then - # When -d is used, all remaining arguments are directories to create. - # When -t is used, the destination is already specified. - # Otherwise, the last argument is the destination. Remove it from $@. - for arg - do - if test -n "$dst_arg"; then - # $@ is not empty: it contains at least $arg. - set fnord "$@" "$dst_arg" - shift # fnord - fi - shift # arg - dst_arg=$arg - done -fi - -if test $# -eq 0; then - if test -z "$dir_arg"; then - echo "$0: no input file specified." >&2 - exit 1 - fi - # It's OK to call `install-sh -d' without argument. - # This can happen when creating conditional directories. - exit 0 -fi - -if test -z "$dir_arg"; then - trap '(exit $?); exit' 1 2 13 15 - - # Set umask so as not to create temps with too-generous modes. - # However, 'strip' requires both read and write access to temps. - case $mode in - # Optimize common cases. - *644) cp_umask=133;; - *755) cp_umask=22;; - - *[0-7]) - if test -z "$stripcmd"; then - u_plus_rw= - else - u_plus_rw='% 200' - fi - cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; - *) - if test -z "$stripcmd"; then - u_plus_rw= - else - u_plus_rw=,u+rw - fi - cp_umask=$mode$u_plus_rw;; - esac -fi - -for src -do - # Protect names starting with `-'. - case $src in - -*) src=./$src;; - esac - - if test -n "$dir_arg"; then - dst=$src - dstdir=$dst - test -d "$dstdir" - dstdir_status=$? - else - - # Waiting for this to be detected by the "$cpprog $src $dsttmp" command - # might cause directories to be created, which would be especially bad - # if $src (and thus $dsttmp) contains '*'. - if test ! -f "$src" && test ! -d "$src"; then - echo "$0: $src does not exist." >&2 - exit 1 - fi - - if test -z "$dst_arg"; then - echo "$0: no destination specified." >&2 - exit 1 - fi - - dst=$dst_arg - # Protect names starting with `-'. - case $dst in - -*) dst=./$dst;; - esac - - # If destination is a directory, append the input filename; won't work - # if double slashes aren't ignored. - if test -d "$dst"; then - if test -n "$no_target_directory"; then - echo "$0: $dst_arg: Is a directory" >&2 - exit 1 - fi - dstdir=$dst - dst=$dstdir/`basename "$src"` - dstdir_status=0 - else - # Prefer dirname, but fall back on a substitute if dirname fails. - dstdir=` - (dirname "$dst") 2>/dev/null || - expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$dst" : 'X\(//\)[^/]' \| \ - X"$dst" : 'X\(//\)$' \| \ - X"$dst" : 'X\(/\)' \| . 2>/dev/null || - echo X"$dst" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q' - ` - - test -d "$dstdir" - dstdir_status=$? - fi - fi - - obsolete_mkdir_used=false - - if test $dstdir_status != 0; then - case $posix_mkdir in - '') - # Create intermediate dirs using mode 755 as modified by the umask. - # This is like FreeBSD 'install' as of 1997-10-28. - umask=`umask` - case $stripcmd.$umask in - # Optimize common cases. - *[2367][2367]) mkdir_umask=$umask;; - .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; - - *[0-7]) - mkdir_umask=`expr $umask + 22 \ - - $umask % 100 % 40 + $umask % 20 \ - - $umask % 10 % 4 + $umask % 2 - `;; - *) mkdir_umask=$umask,go-w;; - esac - - # With -d, create the new directory with the user-specified mode. - # Otherwise, rely on $mkdir_umask. - if test -n "$dir_arg"; then - mkdir_mode=-m$mode - else - mkdir_mode= - fi - - posix_mkdir=false - case $umask in - *[123567][0-7][0-7]) - # POSIX mkdir -p sets u+wx bits regardless of umask, which - # is incompatible with FreeBSD 'install' when (umask & 300) != 0. - ;; - *) - tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ - trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 - - if (umask $mkdir_umask && - exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 - then - if test -z "$dir_arg" || { - # Check for POSIX incompatibilities with -m. - # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or - # other-writeable bit of parent directory when it shouldn't. - # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. - ls_ld_tmpdir=`ls -ld "$tmpdir"` - case $ls_ld_tmpdir in - d????-?r-*) different_mode=700;; - d????-?--*) different_mode=755;; - *) false;; - esac && - $mkdirprog -m$different_mode -p -- "$tmpdir" && { - ls_ld_tmpdir_1=`ls -ld "$tmpdir"` - test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" - } - } - then posix_mkdir=: - fi - rmdir "$tmpdir/d" "$tmpdir" - else - # Remove any dirs left behind by ancient mkdir implementations. - rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null - fi - trap '' 0;; - esac;; - esac - - if - $posix_mkdir && ( - umask $mkdir_umask && - $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" - ) - then : - else - - # The umask is ridiculous, or mkdir does not conform to POSIX, - # or it failed possibly due to a race condition. Create the - # directory the slow way, step by step, checking for races as we go. - - case $dstdir in - /*) prefix='/';; - -*) prefix='./';; - *) prefix='';; - esac - - eval "$initialize_posix_glob" - - oIFS=$IFS - IFS=/ - $posix_glob set -f - set fnord $dstdir - shift - $posix_glob set +f - IFS=$oIFS - - prefixes= - - for d - do - test -z "$d" && continue - - prefix=$prefix$d - if test -d "$prefix"; then - prefixes= - else - if $posix_mkdir; then - (umask=$mkdir_umask && - $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break - # Don't fail if two instances are running concurrently. - test -d "$prefix" || exit 1 - else - case $prefix in - *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; - *) qprefix=$prefix;; - esac - prefixes="$prefixes '$qprefix'" - fi - fi - prefix=$prefix/ - done - - if test -n "$prefixes"; then - # Don't fail if two instances are running concurrently. - (umask $mkdir_umask && - eval "\$doit_exec \$mkdirprog $prefixes") || - test -d "$dstdir" || exit 1 - obsolete_mkdir_used=true - fi - fi - fi - - if test -n "$dir_arg"; then - { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && - { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && - { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || - test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 - else - - # Make a couple of temp file names in the proper directory. - dsttmp=$dstdir/_inst.$$_ - rmtmp=$dstdir/_rm.$$_ - - # Trap to clean up those temp files at exit. - trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 - - # Copy the file name to the temp name. - (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && - - # and set any options; do chmod last to preserve setuid bits. - # - # If any of these fail, we abort the whole thing. If we want to - # ignore errors from any of these, just make sure not to ignore - # errors from the above "$doit $cpprog $src $dsttmp" command. - # - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && - { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && - { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && - { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && - - # If -C, don't bother to copy if it wouldn't change the file. - if $copy_on_change && - old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && - new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && - - eval "$initialize_posix_glob" && - $posix_glob set -f && - set X $old && old=:$2:$4:$5:$6 && - set X $new && new=:$2:$4:$5:$6 && - $posix_glob set +f && - - test "$old" = "$new" && - $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 - then - rm -f "$dsttmp" - else - # Rename the file to the real destination. - $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || - - # The rename failed, perhaps because mv can't rename something else - # to itself, or perhaps because mv is so ancient that it does not - # support -f. - { - # Now remove or move aside any old file at destination location. - # We try this two ways since rm can't unlink itself on some - # systems and the destination file might be busy for other - # reasons. In this case, the final cleanup might fail but the new - # file should still install successfully. - { - test ! -f "$dst" || - $doit $rmcmd -f "$dst" 2>/dev/null || - { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && - { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } - } || - { echo "$0: cannot unlink or rename $dst" >&2 - (exit 1); exit 1 - } - } && - - # Now rename the file to the real destination. - $doit $mvcmd "$dsttmp" "$dst" - } - fi || exit 1 - - trap '' 0 - fi -done - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" -# End: diff --git a/Build/source/libs/poppler/poppler-0.12.4/ltmain.sh b/Build/source/libs/poppler/poppler-0.12.4/ltmain.sh deleted file mode 100755 index 3506ead396b..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/ltmain.sh +++ /dev/null @@ -1,8413 +0,0 @@ -# Generated from ltmain.m4sh. - -# ltmain.sh (GNU libtool) 2.2.6 -# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -# GNU Libtool is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# As a special exception to the GNU General Public License, -# if you distribute this file as part of a program or library that -# is built using GNU Libtool, you may include this file under the -# same distribution terms that you use for the rest of that program. -# -# GNU Libtool is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Libtool; see the file COPYING. If not, a copy -# can be downloaded from http://www.gnu.org/licenses/gpl.html, -# or obtained by writing to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -# Usage: $progname [OPTION]... [MODE-ARG]... -# -# Provide generalized library-building support services. -# -# --config show all configuration variables -# --debug enable verbose shell tracing -# -n, --dry-run display commands without modifying any files -# --features display basic configuration information and exit -# --mode=MODE use operation mode MODE -# --preserve-dup-deps don't remove duplicate dependency libraries -# --quiet, --silent don't print informational messages -# --tag=TAG use configuration variables from tag TAG -# -v, --verbose print informational messages (default) -# --version print version information -# -h, --help print short or long help message -# -# MODE must be one of the following: -# -# clean remove files from the build directory -# compile compile a source file into a libtool object -# execute automatically set library path, then run a program -# finish complete the installation of libtool libraries -# install install libraries or executables -# link create a library or an executable -# uninstall remove libraries from an installed directory -# -# MODE-ARGS vary depending on the MODE. -# Try `$progname --help --mode=MODE' for a more detailed description of MODE. -# -# When reporting a bug, please describe a test case to reproduce it and -# include the following information: -# -# host-triplet: $host -# shell: $SHELL -# compiler: $LTCC -# compiler flags: $LTCFLAGS -# linker: $LD (gnu? $with_gnu_ld) -# $progname: (GNU libtool) 2.2.6 Debian-2.2.6a-4 -# automake: $automake_version -# autoconf: $autoconf_version -# -# Report bugs to <bug-libtool@gnu.org>. - -PROGRAM=ltmain.sh -PACKAGE=libtool -VERSION="2.2.6 Debian-2.2.6a-4" -TIMESTAMP="" -package_revision=1.3012 - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac -fi -BIN_SH=xpg4; export BIN_SH # for Tru64 -DUALCASE=1; export DUALCASE # for MKS sh - -# NLS nuisances: We save the old values to restore during execute mode. -# Only set LANG and LC_ALL to C if already set. -# These must not be set unconditionally because not all systems understand -# e.g. LANG=C (notably SCO). -lt_user_locale= -lt_safe_locale= -for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES -do - eval "if test \"\${$lt_var+set}\" = set; then - save_$lt_var=\$$lt_var - $lt_var=C - export $lt_var - lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" - lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" - fi" -done - -$lt_unset CDPATH - - - - - -: ${CP="cp -f"} -: ${ECHO="echo"} -: ${EGREP="/bin/grep -E"} -: ${FGREP="/bin/grep -F"} -: ${GREP="/bin/grep"} -: ${LN_S="ln -s"} -: ${MAKE="make"} -: ${MKDIR="mkdir"} -: ${MV="mv -f"} -: ${RM="rm -f"} -: ${SED="/bin/sed"} -: ${SHELL="${CONFIG_SHELL-/bin/sh}"} -: ${Xsed="$SED -e 1s/^X//"} - -# Global variables: -EXIT_SUCCESS=0 -EXIT_FAILURE=1 -EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. -EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. - -exit_status=$EXIT_SUCCESS - -# Make sure IFS has a sensible default -lt_nl=' -' -IFS=" $lt_nl" - -dirname="s,/[^/]*$,," -basename="s,^.*/,," - -# func_dirname_and_basename file append nondir_replacement -# perform func_basename and func_dirname in a single function -# call: -# dirname: Compute the dirname of FILE. If nonempty, -# add APPEND to the result, otherwise set result -# to NONDIR_REPLACEMENT. -# value returned in "$func_dirname_result" -# basename: Compute filename of FILE. -# value retuned in "$func_basename_result" -# Implementation must be kept synchronized with func_dirname -# and func_basename. For efficiency, we do not delegate to -# those functions but instead duplicate the functionality here. -func_dirname_and_basename () -{ - # Extract subdirectory from the argument. - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` - if test "X$func_dirname_result" = "X${1}"; then - func_dirname_result="${3}" - else - func_dirname_result="$func_dirname_result${2}" - fi - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` -} - -# Generated shell functions inserted here. - -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh -# is ksh but when the shell is invoked as "sh" and the current value of -# the _XPG environment variable is not equal to 1 (one), the special -# positional parameter $0, within a function call, is the name of the -# function. -progpath="$0" - -# The name of this program: -# In the unlikely event $progname began with a '-', it would play havoc with -# func_echo (imagine progname=-n), so we prepend ./ in that case: -func_dirname_and_basename "$progpath" -progname=$func_basename_result -case $progname in - -*) progname=./$progname ;; -esac - -# Make sure we have an absolute path for reexecution: -case $progpath in - [\\/]*|[A-Za-z]:\\*) ;; - *[\\/]*) - progdir=$func_dirname_result - progdir=`cd "$progdir" && pwd` - progpath="$progdir/$progname" - ;; - *) - save_IFS="$IFS" - IFS=: - for progdir in $PATH; do - IFS="$save_IFS" - test -x "$progdir/$progname" && break - done - IFS="$save_IFS" - test -n "$progdir" || progdir=`pwd` - progpath="$progdir/$progname" - ;; -esac - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed="${SED}"' -e 1s/^X//' -sed_quote_subst='s/\([`"$\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\(["`\\]\)/\\\1/g' - -# Re-`\' parameter expansions in output of double_quote_subst that were -# `\'-ed in input to the same. If an odd number of `\' preceded a '$' -# in input to double_quote_subst, that '$' was protected from expansion. -# Since each input `\' is now two `\'s, look for any number of runs of -# four `\'s followed by two `\'s and then a '$'. `\' that '$'. -bs='\\' -bs2='\\\\' -bs4='\\\\\\\\' -dollar='\$' -sed_double_backslash="\ - s/$bs4/&\\ -/g - s/^$bs2$dollar/$bs&/ - s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g - s/\n//g" - -# Standard options: -opt_dry_run=false -opt_help=false -opt_quiet=false -opt_verbose=false -opt_warning=: - -# func_echo arg... -# Echo program name prefixed message, along with the current mode -# name if it has been set yet. -func_echo () -{ - $ECHO "$progname${mode+: }$mode: $*" -} - -# func_verbose arg... -# Echo program name prefixed message in verbose mode only. -func_verbose () -{ - $opt_verbose && func_echo ${1+"$@"} - - # A bug in bash halts the script if the last line of a function - # fails when set -e is in force, so we need another command to - # work around that: - : -} - -# func_error arg... -# Echo program name prefixed message to standard error. -func_error () -{ - $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 -} - -# func_warning arg... -# Echo program name prefixed warning message to standard error. -func_warning () -{ - $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 - - # bash bug again: - : -} - -# func_fatal_error arg... -# Echo program name prefixed message to standard error, and exit. -func_fatal_error () -{ - func_error ${1+"$@"} - exit $EXIT_FAILURE -} - -# func_fatal_help arg... -# Echo program name prefixed message to standard error, followed by -# a help hint, and exit. -func_fatal_help () -{ - func_error ${1+"$@"} - func_fatal_error "$help" -} -help="Try \`$progname --help' for more information." ## default - - -# func_grep expression filename -# Check whether EXPRESSION matches any line of FILENAME, without output. -func_grep () -{ - $GREP "$1" "$2" >/dev/null 2>&1 -} - - -# func_mkdir_p directory-path -# Make sure the entire path to DIRECTORY-PATH is available. -func_mkdir_p () -{ - my_directory_path="$1" - my_dir_list= - - if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then - - # Protect directory names starting with `-' - case $my_directory_path in - -*) my_directory_path="./$my_directory_path" ;; - esac - - # While some portion of DIR does not yet exist... - while test ! -d "$my_directory_path"; do - # ...make a list in topmost first order. Use a colon delimited - # list incase some portion of path contains whitespace. - my_dir_list="$my_directory_path:$my_dir_list" - - # If the last portion added has no slash in it, the list is done - case $my_directory_path in */*) ;; *) break ;; esac - - # ...otherwise throw away the child directory and loop - my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` - done - my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` - - save_mkdir_p_IFS="$IFS"; IFS=':' - for my_dir in $my_dir_list; do - IFS="$save_mkdir_p_IFS" - # mkdir can fail with a `File exist' error if two processes - # try to create one of the directories concurrently. Don't - # stop in that case! - $MKDIR "$my_dir" 2>/dev/null || : - done - IFS="$save_mkdir_p_IFS" - - # Bail out if we (or some other process) failed to create a directory. - test -d "$my_directory_path" || \ - func_fatal_error "Failed to create \`$1'" - fi -} - - -# func_mktempdir [string] -# Make a temporary directory that won't clash with other running -# libtool processes, and avoids race conditions if possible. If -# given, STRING is the basename for that directory. -func_mktempdir () -{ - my_template="${TMPDIR-/tmp}/${1-$progname}" - - if test "$opt_dry_run" = ":"; then - # Return a directory name, but don't create it in dry-run mode - my_tmpdir="${my_template}-$$" - else - - # If mktemp works, use that first and foremost - my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` - - if test ! -d "$my_tmpdir"; then - # Failing that, at least try and use $RANDOM to avoid a race - my_tmpdir="${my_template}-${RANDOM-0}$$" - - save_mktempdir_umask=`umask` - umask 0077 - $MKDIR "$my_tmpdir" - umask $save_mktempdir_umask - fi - - # If we're not in dry-run mode, bomb out on failure - test -d "$my_tmpdir" || \ - func_fatal_error "cannot create temporary directory \`$my_tmpdir'" - fi - - $ECHO "X$my_tmpdir" | $Xsed -} - - -# func_quote_for_eval arg -# Aesthetically quote ARG to be evaled later. -# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT -# is double-quoted, suitable for a subsequent eval, whereas -# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters -# which are still active within double quotes backslashified. -func_quote_for_eval () -{ - case $1 in - *[\\\`\"\$]*) - func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; - *) - func_quote_for_eval_unquoted_result="$1" ;; - esac - - case $func_quote_for_eval_unquoted_result in - # Double-quote args containing shell metacharacters to delay - # word splitting, command substitution and and variable - # expansion for a subsequent eval. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" - ;; - *) - func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" - esac -} - - -# func_quote_for_expand arg -# Aesthetically quote ARG to be evaled later; same as above, -# but do not quote variable references. -func_quote_for_expand () -{ - case $1 in - *[\\\`\"]*) - my_arg=`$ECHO "X$1" | $Xsed \ - -e "$double_quote_subst" -e "$sed_double_backslash"` ;; - *) - my_arg="$1" ;; - esac - - case $my_arg in - # Double-quote args containing shell metacharacters to delay - # word splitting and command substitution for a subsequent eval. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - my_arg="\"$my_arg\"" - ;; - esac - - func_quote_for_expand_result="$my_arg" -} - - -# func_show_eval cmd [fail_exp] -# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is -# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP -# is given, then evaluate it. -func_show_eval () -{ - my_cmd="$1" - my_fail_exp="${2-:}" - - ${opt_silent-false} || { - func_quote_for_expand "$my_cmd" - eval "func_echo $func_quote_for_expand_result" - } - - if ${opt_dry_run-false}; then :; else - eval "$my_cmd" - my_status=$? - if test "$my_status" -eq 0; then :; else - eval "(exit $my_status); $my_fail_exp" - fi - fi -} - - -# func_show_eval_locale cmd [fail_exp] -# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is -# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP -# is given, then evaluate it. Use the saved locale for evaluation. -func_show_eval_locale () -{ - my_cmd="$1" - my_fail_exp="${2-:}" - - ${opt_silent-false} || { - func_quote_for_expand "$my_cmd" - eval "func_echo $func_quote_for_expand_result" - } - - if ${opt_dry_run-false}; then :; else - eval "$lt_user_locale - $my_cmd" - my_status=$? - eval "$lt_safe_locale" - if test "$my_status" -eq 0; then :; else - eval "(exit $my_status); $my_fail_exp" - fi - fi -} - - - - - -# func_version -# Echo version message to standard output and exit. -func_version () -{ - $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { - s/^# // - s/^# *$// - s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ - p - }' < "$progpath" - exit $? -} - -# func_usage -# Echo short help message to standard output and exit. -func_usage () -{ - $SED -n '/^# Usage:/,/# -h/ { - s/^# // - s/^# *$// - s/\$progname/'$progname'/ - p - }' < "$progpath" - $ECHO - $ECHO "run \`$progname --help | more' for full usage" - exit $? -} - -# func_help -# Echo long help message to standard output and exit. -func_help () -{ - $SED -n '/^# Usage:/,/# Report bugs to/ { - s/^# // - s/^# *$// - s*\$progname*'$progname'* - s*\$host*'"$host"'* - s*\$SHELL*'"$SHELL"'* - s*\$LTCC*'"$LTCC"'* - s*\$LTCFLAGS*'"$LTCFLAGS"'* - s*\$LD*'"$LD"'* - s/\$with_gnu_ld/'"$with_gnu_ld"'/ - s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ - s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ - p - }' < "$progpath" - exit $? -} - -# func_missing_arg argname -# Echo program name prefixed message to standard error and set global -# exit_cmd. -func_missing_arg () -{ - func_error "missing argument for $1" - exit_cmd=exit -} - -exit_cmd=: - - - - - -# Check that we have a working $ECHO. -if test "X$1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X$1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then - # Yippee, $ECHO works! - : -else - # Restart under the correct shell, and then maybe $ECHO will work. - exec $SHELL "$progpath" --no-reexec ${1+"$@"} -fi - -if test "X$1" = X--fallback-echo; then - # used as fallback echo - shift - cat <<EOF -$* -EOF - exit $EXIT_SUCCESS -fi - -magic="%%%MAGIC variable%%%" -magic_exe="%%%MAGIC EXE variable%%%" - -# Global variables. -# $mode is unset -nonopt= -execute_dlfiles= -preserve_args= -lo2o="s/\\.lo\$/.${objext}/" -o2lo="s/\\.${objext}\$/.lo/" -extracted_archives= -extracted_serial=0 - -opt_dry_run=false -opt_duplicate_deps=false -opt_silent=false -opt_debug=: - -# If this variable is set in any of the actions, the command in it -# will be execed at the end. This prevents here-documents from being -# left over by shells. -exec_cmd= - -# func_fatal_configuration arg... -# Echo program name prefixed message to standard error, followed by -# a configuration failure hint, and exit. -func_fatal_configuration () -{ - func_error ${1+"$@"} - func_error "See the $PACKAGE documentation for more information." - func_fatal_error "Fatal configuration error." -} - - -# func_config -# Display the configuration for all the tags in this script. -func_config () -{ - re_begincf='^# ### BEGIN LIBTOOL' - re_endcf='^# ### END LIBTOOL' - - # Default configuration. - $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" - - # Now print the configurations for the tags. - for tagname in $taglist; do - $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" - done - - exit $? -} - -# func_features -# Display the features supported by this script. -func_features () -{ - $ECHO "host: $host" - if test "$build_libtool_libs" = yes; then - $ECHO "enable shared libraries" - else - $ECHO "disable shared libraries" - fi - if test "$build_old_libs" = yes; then - $ECHO "enable static libraries" - else - $ECHO "disable static libraries" - fi - - exit $? -} - -# func_enable_tag tagname -# Verify that TAGNAME is valid, and either flag an error and exit, or -# enable the TAGNAME tag. We also add TAGNAME to the global $taglist -# variable here. -func_enable_tag () -{ - # Global variable: - tagname="$1" - - re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" - re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" - sed_extractcf="/$re_begincf/,/$re_endcf/p" - - # Validate tagname. - case $tagname in - *[!-_A-Za-z0-9,/]*) - func_fatal_error "invalid tag name: $tagname" - ;; - esac - - # Don't test for the "default" C tag, as we know it's - # there but not specially marked. - case $tagname in - CC) ;; - *) - if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then - taglist="$taglist $tagname" - - # Evaluate the configuration. Be careful to quote the path - # and the sed script, to avoid splitting on whitespace, but - # also don't use non-portable quotes within backquotes within - # quotes we have to do it in 2 steps: - extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` - eval "$extractedcf" - else - func_error "ignoring unknown tag $tagname" - fi - ;; - esac -} - -# Parse options once, thoroughly. This comes as soon as possible in -# the script to make things like `libtool --version' happen quickly. -{ - - # Shorthand for --mode=foo, only valid as the first argument - case $1 in - clean|clea|cle|cl) - shift; set dummy --mode clean ${1+"$@"}; shift - ;; - compile|compil|compi|comp|com|co|c) - shift; set dummy --mode compile ${1+"$@"}; shift - ;; - execute|execut|execu|exec|exe|ex|e) - shift; set dummy --mode execute ${1+"$@"}; shift - ;; - finish|finis|fini|fin|fi|f) - shift; set dummy --mode finish ${1+"$@"}; shift - ;; - install|instal|insta|inst|ins|in|i) - shift; set dummy --mode install ${1+"$@"}; shift - ;; - link|lin|li|l) - shift; set dummy --mode link ${1+"$@"}; shift - ;; - uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) - shift; set dummy --mode uninstall ${1+"$@"}; shift - ;; - esac - - # Parse non-mode specific arguments: - while test "$#" -gt 0; do - opt="$1" - shift - - case $opt in - --config) func_config ;; - - --debug) preserve_args="$preserve_args $opt" - func_echo "enabling shell trace mode" - opt_debug='set -x' - $opt_debug - ;; - - -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break - execute_dlfiles="$execute_dlfiles $1" - shift - ;; - - --dry-run | -n) opt_dry_run=: ;; - --features) func_features ;; - --finish) mode="finish" ;; - - --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break - case $1 in - # Valid mode arguments: - clean) ;; - compile) ;; - execute) ;; - finish) ;; - install) ;; - link) ;; - relink) ;; - uninstall) ;; - - # Catch anything else as an error - *) func_error "invalid argument for $opt" - exit_cmd=exit - break - ;; - esac - - mode="$1" - shift - ;; - - --preserve-dup-deps) - opt_duplicate_deps=: ;; - - --quiet|--silent) preserve_args="$preserve_args $opt" - opt_silent=: - ;; - - --verbose| -v) preserve_args="$preserve_args $opt" - opt_silent=false - ;; - - --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break - preserve_args="$preserve_args $opt $1" - func_enable_tag "$1" # tagname is set here - shift - ;; - - # Separate optargs to long options: - -dlopen=*|--mode=*|--tag=*) - func_opt_split "$opt" - set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} - shift - ;; - - -\?|-h) func_usage ;; - --help) opt_help=: ;; - --version) func_version ;; - - -*) func_fatal_help "unrecognized option \`$opt'" ;; - - *) nonopt="$opt" - break - ;; - esac - done - - - case $host in - *cygwin* | *mingw* | *pw32* | *cegcc*) - # don't eliminate duplications in $postdeps and $predeps - opt_duplicate_compiler_generated_deps=: - ;; - *) - opt_duplicate_compiler_generated_deps=$opt_duplicate_deps - ;; - esac - - # Having warned about all mis-specified options, bail out if - # anything was wrong. - $exit_cmd $EXIT_FAILURE -} - -# func_check_version_match -# Ensure that we are using m4 macros, and libtool script from the same -# release of libtool. -func_check_version_match () -{ - if test "$package_revision" != "$macro_revision"; then - if test "$VERSION" != "$macro_version"; then - if test -z "$macro_version"; then - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the -$progname: definition of this LT_INIT comes from an older release. -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION -$progname: and run autoconf again. -_LT_EOF - else - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the -$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION -$progname: and run autoconf again. -_LT_EOF - fi - else - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, -$progname: but the definition of this LT_INIT comes from revision $macro_revision. -$progname: You should recreate aclocal.m4 with macros from revision $package_revision -$progname: of $PACKAGE $VERSION and run autoconf again. -_LT_EOF - fi - - exit $EXIT_MISMATCH - fi -} - - -## ----------- ## -## Main. ## -## ----------- ## - -$opt_help || { - # Sanity checks first: - func_check_version_match - - if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then - func_fatal_configuration "not configured to build any kind of library" - fi - - test -z "$mode" && func_fatal_error "error: you must specify a MODE." - - - # Darwin sucks - eval std_shrext=\"$shrext_cmds\" - - - # Only execute mode is allowed to have -dlopen flags. - if test -n "$execute_dlfiles" && test "$mode" != execute; then - func_error "unrecognized option \`-dlopen'" - $ECHO "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # Change the help message to a mode-specific one. - generic_help="$help" - help="Try \`$progname --help --mode=$mode' for more information." -} - - -# func_lalib_p file -# True iff FILE is a libtool `.la' library or `.lo' object file. -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_lalib_p () -{ - test -f "$1" && - $SED -e 4q "$1" 2>/dev/null \ - | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 -} - -# func_lalib_unsafe_p file -# True iff FILE is a libtool `.la' library or `.lo' object file. -# This function implements the same check as func_lalib_p without -# resorting to external programs. To this end, it redirects stdin and -# closes it afterwards, without saving the original file descriptor. -# As a safety measure, use it only where a negative result would be -# fatal anyway. Works if `file' does not exist. -func_lalib_unsafe_p () -{ - lalib_p=no - if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then - for lalib_p_l in 1 2 3 4 - do - read lalib_p_line - case "$lalib_p_line" in - \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; - esac - done - exec 0<&5 5<&- - fi - test "$lalib_p" = yes -} - -# func_ltwrapper_script_p file -# True iff FILE is a libtool wrapper script -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_ltwrapper_script_p () -{ - func_lalib_p "$1" -} - -# func_ltwrapper_executable_p file -# True iff FILE is a libtool wrapper executable -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_ltwrapper_executable_p () -{ - func_ltwrapper_exec_suffix= - case $1 in - *.exe) ;; - *) func_ltwrapper_exec_suffix=.exe ;; - esac - $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 -} - -# func_ltwrapper_scriptname file -# Assumes file is an ltwrapper_executable -# uses $file to determine the appropriate filename for a -# temporary ltwrapper_script. -func_ltwrapper_scriptname () -{ - func_ltwrapper_scriptname_result="" - if func_ltwrapper_executable_p "$1"; then - func_dirname_and_basename "$1" "" "." - func_stripname '' '.exe' "$func_basename_result" - func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" - fi -} - -# func_ltwrapper_p file -# True iff FILE is a libtool wrapper script or wrapper executable -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_ltwrapper_p () -{ - func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" -} - - -# func_execute_cmds commands fail_cmd -# Execute tilde-delimited COMMANDS. -# If FAIL_CMD is given, eval that upon failure. -# FAIL_CMD may read-access the current command in variable CMD! -func_execute_cmds () -{ - $opt_debug - save_ifs=$IFS; IFS='~' - for cmd in $1; do - IFS=$save_ifs - eval cmd=\"$cmd\" - func_show_eval "$cmd" "${2-:}" - done - IFS=$save_ifs -} - - -# func_source file -# Source FILE, adding directory component if necessary. -# Note that it is not necessary on cygwin/mingw to append a dot to -# FILE even if both FILE and FILE.exe exist: automatic-append-.exe -# behavior happens only for exec(3), not for open(2)! Also, sourcing -# `FILE.' does not work on cygwin managed mounts. -func_source () -{ - $opt_debug - case $1 in - */* | *\\*) . "$1" ;; - *) . "./$1" ;; - esac -} - - -# func_infer_tag arg -# Infer tagged configuration to use if any are available and -# if one wasn't chosen via the "--tag" command line option. -# Only attempt this if the compiler in the base compile -# command doesn't match the default compiler. -# arg is usually of the form 'gcc ...' -func_infer_tag () -{ - $opt_debug - if test -n "$available_tags" && test -z "$tagname"; then - CC_quoted= - for arg in $CC; do - func_quote_for_eval "$arg" - CC_quoted="$CC_quoted $func_quote_for_eval_result" - done - case $@ in - # Blanks in the command may have been stripped by the calling shell, - # but not from the CC environment variable when configure was run. - " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; - # Blanks at the start of $base_compile will cause this to fail - # if we don't check for them as well. - *) - for z in $available_tags; do - if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then - # Evaluate the configuration. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" - CC_quoted= - for arg in $CC; do - # Double-quote args containing other shell metacharacters. - func_quote_for_eval "$arg" - CC_quoted="$CC_quoted $func_quote_for_eval_result" - done - case "$@ " in - " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) - # The compiler in the base compile command matches - # the one in the tagged configuration. - # Assume this is the tagged configuration we want. - tagname=$z - break - ;; - esac - fi - done - # If $tagname still isn't set, then no tagged configuration - # was found and let the user know that the "--tag" command - # line option must be used. - if test -z "$tagname"; then - func_echo "unable to infer tagged configuration" - func_fatal_error "specify a tag with \`--tag'" -# else -# func_verbose "using $tagname tagged configuration" - fi - ;; - esac - fi -} - - - -# func_write_libtool_object output_name pic_name nonpic_name -# Create a libtool object file (analogous to a ".la" file), -# but don't create it if we're doing a dry run. -func_write_libtool_object () -{ - write_libobj=${1} - if test "$build_libtool_libs" = yes; then - write_lobj=\'${2}\' - else - write_lobj=none - fi - - if test "$build_old_libs" = yes; then - write_oldobj=\'${3}\' - else - write_oldobj=none - fi - - $opt_dry_run || { - cat >${write_libobj}T <<EOF -# $write_libobj - a libtool object file -# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# Name of the PIC object. -pic_object=$write_lobj - -# Name of the non-PIC object -non_pic_object=$write_oldobj - -EOF - $MV "${write_libobj}T" "${write_libobj}" - } -} - -# func_mode_compile arg... -func_mode_compile () -{ - $opt_debug - # Get the compilation command and the source file. - base_compile= - srcfile="$nonopt" # always keep a non-empty value in "srcfile" - suppress_opt=yes - suppress_output= - arg_mode=normal - libobj= - later= - pie_flag= - - for arg - do - case $arg_mode in - arg ) - # do not "continue". Instead, add this to base_compile - lastarg="$arg" - arg_mode=normal - ;; - - target ) - libobj="$arg" - arg_mode=normal - continue - ;; - - normal ) - # Accept any command-line options. - case $arg in - -o) - test -n "$libobj" && \ - func_fatal_error "you cannot specify \`-o' more than once" - arg_mode=target - continue - ;; - - -pie | -fpie | -fPIE) - pie_flag="$pie_flag $arg" - continue - ;; - - -shared | -static | -prefer-pic | -prefer-non-pic) - later="$later $arg" - continue - ;; - - -no-suppress) - suppress_opt=no - continue - ;; - - -Xcompiler) - arg_mode=arg # the next one goes into the "base_compile" arg list - continue # The current "srcfile" will either be retained or - ;; # replaced later. I would guess that would be a bug. - - -Wc,*) - func_stripname '-Wc,' '' "$arg" - args=$func_stripname_result - lastarg= - save_ifs="$IFS"; IFS=',' - for arg in $args; do - IFS="$save_ifs" - func_quote_for_eval "$arg" - lastarg="$lastarg $func_quote_for_eval_result" - done - IFS="$save_ifs" - func_stripname ' ' '' "$lastarg" - lastarg=$func_stripname_result - - # Add the arguments to base_compile. - base_compile="$base_compile $lastarg" - continue - ;; - - *) - # Accept the current argument as the source file. - # The previous "srcfile" becomes the current argument. - # - lastarg="$srcfile" - srcfile="$arg" - ;; - esac # case $arg - ;; - esac # case $arg_mode - - # Aesthetically quote the previous argument. - func_quote_for_eval "$lastarg" - base_compile="$base_compile $func_quote_for_eval_result" - done # for arg - - case $arg_mode in - arg) - func_fatal_error "you must specify an argument for -Xcompile" - ;; - target) - func_fatal_error "you must specify a target with \`-o'" - ;; - *) - # Get the name of the library object. - test -z "$libobj" && { - func_basename "$srcfile" - libobj="$func_basename_result" - } - ;; - esac - - # Recognize several different file suffixes. - # If the user specifies -o file.o, it is replaced with file.lo - case $libobj in - *.[cCFSifmso] | \ - *.ada | *.adb | *.ads | *.asm | \ - *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ - *.[fF][09]? | *.for | *.java | *.obj | *.sx) - func_xform "$libobj" - libobj=$func_xform_result - ;; - esac - - case $libobj in - *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; - *) - func_fatal_error "cannot determine name of library object from \`$libobj'" - ;; - esac - - func_infer_tag $base_compile - - for arg in $later; do - case $arg in - -shared) - test "$build_libtool_libs" != yes && \ - func_fatal_configuration "can not build a shared library" - build_old_libs=no - continue - ;; - - -static) - build_libtool_libs=no - build_old_libs=yes - continue - ;; - - -prefer-pic) - pic_mode=yes - continue - ;; - - -prefer-non-pic) - pic_mode=no - continue - ;; - esac - done - - func_quote_for_eval "$libobj" - test "X$libobj" != "X$func_quote_for_eval_result" \ - && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ - && func_warning "libobj name \`$libobj' may not contain shell special characters." - func_dirname_and_basename "$obj" "/" "" - objname="$func_basename_result" - xdir="$func_dirname_result" - lobj=${xdir}$objdir/$objname - - test -z "$base_compile" && \ - func_fatal_help "you must specify a compilation command" - - # Delete any leftover library objects. - if test "$build_old_libs" = yes; then - removelist="$obj $lobj $libobj ${libobj}T" - else - removelist="$lobj $libobj ${libobj}T" - fi - - # On Cygwin there's no "real" PIC flag so we must build both object types - case $host_os in - cygwin* | mingw* | pw32* | os2* | cegcc*) - pic_mode=default - ;; - esac - if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then - # non-PIC code in shared libraries is not supported - pic_mode=default - fi - - # Calculate the filename of the output object if compiler does - # not support -o with -c - if test "$compiler_c_o" = no; then - output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} - lockfile="$output_obj.lock" - else - output_obj= - need_locks=no - lockfile= - fi - - # Lock this critical section if it is needed - # We use this script file to make the link, it avoids creating a new file - if test "$need_locks" = yes; then - until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do - func_echo "Waiting for $lockfile to be removed" - sleep 2 - done - elif test "$need_locks" = warn; then - if test -f "$lockfile"; then - $ECHO "\ -*** ERROR, $lockfile exists and contains: -`cat $lockfile 2>/dev/null` - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $opt_dry_run || $RM $removelist - exit $EXIT_FAILURE - fi - removelist="$removelist $output_obj" - $ECHO "$srcfile" > "$lockfile" - fi - - $opt_dry_run || $RM $removelist - removelist="$removelist $lockfile" - trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 - - if test -n "$fix_srcfile_path"; then - eval srcfile=\"$fix_srcfile_path\" - fi - func_quote_for_eval "$srcfile" - qsrcfile=$func_quote_for_eval_result - - # Only build a PIC object if we are building libtool libraries. - if test "$build_libtool_libs" = yes; then - # Without this assignment, base_compile gets emptied. - fbsd_hideous_sh_bug=$base_compile - - if test "$pic_mode" != no; then - command="$base_compile $qsrcfile $pic_flag" - else - # Don't build PIC code - command="$base_compile $qsrcfile" - fi - - func_mkdir_p "$xdir$objdir" - - if test -z "$output_obj"; then - # Place PIC objects in $objdir - command="$command -o $lobj" - fi - - func_show_eval_locale "$command" \ - 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' - - if test "$need_locks" = warn && - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then - $ECHO "\ -*** ERROR, $lockfile contains: -`cat $lockfile 2>/dev/null` - -but it should contain: -$srcfile - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $opt_dry_run || $RM $removelist - exit $EXIT_FAILURE - fi - - # Just move the object if needed, then go on to compile the next one - if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then - func_show_eval '$MV "$output_obj" "$lobj"' \ - 'error=$?; $opt_dry_run || $RM $removelist; exit $error' - fi - - # Allow error messages only from the first compilation. - if test "$suppress_opt" = yes; then - suppress_output=' >/dev/null 2>&1' - fi - fi - - # Only build a position-dependent object if we build old libraries. - if test "$build_old_libs" = yes; then - if test "$pic_mode" != yes; then - # Don't build PIC code - command="$base_compile $qsrcfile$pie_flag" - else - command="$base_compile $qsrcfile $pic_flag" - fi - if test "$compiler_c_o" = yes; then - command="$command -o $obj" - fi - - # Suppress compiler output if we already did a PIC compilation. - command="$command$suppress_output" - func_show_eval_locale "$command" \ - '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' - - if test "$need_locks" = warn && - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then - $ECHO "\ -*** ERROR, $lockfile contains: -`cat $lockfile 2>/dev/null` - -but it should contain: -$srcfile - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $opt_dry_run || $RM $removelist - exit $EXIT_FAILURE - fi - - # Just move the object if needed - if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then - func_show_eval '$MV "$output_obj" "$obj"' \ - 'error=$?; $opt_dry_run || $RM $removelist; exit $error' - fi - fi - - $opt_dry_run || { - func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" - - # Unlock the critical section if it was locked - if test "$need_locks" != no; then - removelist=$lockfile - $RM "$lockfile" - fi - } - - exit $EXIT_SUCCESS -} - -$opt_help || { -test "$mode" = compile && func_mode_compile ${1+"$@"} -} - -func_mode_help () -{ - # We need to display help for each of the modes. - case $mode in - "") - # Generic help is extracted from the usage comments - # at the start of this file. - func_help - ;; - - clean) - $ECHO \ -"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... - -Remove files from the build directory. - -RM is the name of the program to use to delete files associated with each FILE -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed -to RM. - -If FILE is a libtool library, object or program, all the files associated -with it are deleted. Otherwise, only FILE itself is deleted using RM." - ;; - - compile) - $ECHO \ -"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE - -Compile a source file into a libtool library object. - -This mode accepts the following additional options: - - -o OUTPUT-FILE set the output file name to OUTPUT-FILE - -no-suppress do not suppress compiler output for multiple passes - -prefer-pic try to building PIC objects only - -prefer-non-pic try to building non-PIC objects only - -shared do not build a \`.o' file suitable for static linking - -static only build a \`.o' file suitable for static linking - -COMPILE-COMMAND is a command to be used in creating a \`standard' object file -from the given SOURCEFILE. - -The output file name is determined by removing the directory component from -SOURCEFILE, then substituting the C source code suffix \`.c' with the -library object suffix, \`.lo'." - ;; - - execute) - $ECHO \ -"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... - -Automatically set library path, then run a program. - -This mode accepts the following additional options: - - -dlopen FILE add the directory containing FILE to the library path - -This mode sets the library path environment variable according to \`-dlopen' -flags. - -If any of the ARGS are libtool executable wrappers, then they are translated -into their corresponding uninstalled binary, and any of their required library -directories are added to the library path. - -Then, COMMAND is executed, with ARGS as arguments." - ;; - - finish) - $ECHO \ -"Usage: $progname [OPTION]... --mode=finish [LIBDIR]... - -Complete the installation of libtool libraries. - -Each LIBDIR is a directory that contains libtool libraries. - -The commands that this mode executes may require superuser privileges. Use -the \`--dry-run' option if you just want to see what would be executed." - ;; - - install) - $ECHO \ -"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... - -Install executables or libraries. - -INSTALL-COMMAND is the installation command. The first component should be -either the \`install' or \`cp' program. - -The following components of INSTALL-COMMAND are treated specially: - - -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation - -The rest of the components are interpreted as arguments to that command (only -BSD-compatible install options are recognized)." - ;; - - link) - $ECHO \ -"Usage: $progname [OPTION]... --mode=link LINK-COMMAND... - -Link object files or libraries together to form another library, or to -create an executable program. - -LINK-COMMAND is a command using the C compiler that you would use to create -a program from several object files. - -The following components of LINK-COMMAND are treated specially: - - -all-static do not do any dynamic linking at all - -avoid-version do not add a version suffix if possible - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) - -export-symbols SYMFILE - try to export only the symbols listed in SYMFILE - -export-symbols-regex REGEX - try to export only the symbols matching REGEX - -LLIBDIR search LIBDIR for required installed libraries - -lNAME OUTPUT-FILE requires the installed library libNAME - -module build a library that can dlopened - -no-fast-install disable the fast-install mode - -no-install link a not-installable executable - -no-undefined declare that a library does not refer to external symbols - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects - -objectlist FILE Use a list of object files found in FILE to specify objects - -precious-files-regex REGEX - don't remove output files matching REGEX - -release RELEASE specify package release information - -rpath LIBDIR the created library will eventually be installed in LIBDIR - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries - -shared only do dynamic linking of libtool libraries - -shrext SUFFIX override the standard shared library file extension - -static do not do any dynamic linking of uninstalled libtool libraries - -static-libtool-libs - do not do any dynamic linking of libtool libraries - -version-info CURRENT[:REVISION[:AGE]] - specify library version info [each variable defaults to 0] - -weak LIBNAME declare that the target provides the LIBNAME interface - -All other options (arguments beginning with \`-') are ignored. - -Every other argument is treated as a filename. Files ending in \`.la' are -treated as uninstalled libtool libraries, other files are standard or library -object files. - -If the OUTPUT-FILE ends in \`.la', then a libtool library is created, -only library objects (\`.lo' files) may be specified, and \`-rpath' is -required, except when creating a convenience library. - -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created -using \`ar' and \`ranlib', or on Windows using \`lib'. - -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file -is created, otherwise an executable program is created." - ;; - - uninstall) - $ECHO \ -"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... - -Remove libraries from an installation directory. - -RM is the name of the program to use to delete files associated with each FILE -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed -to RM. - -If FILE is a libtool library, all the files associated with it are deleted. -Otherwise, only FILE itself is deleted using RM." - ;; - - *) - func_fatal_help "invalid operation mode \`$mode'" - ;; - esac - - $ECHO - $ECHO "Try \`$progname --help' for more information about other modes." - - exit $? -} - - # Now that we've collected a possible --mode arg, show help if necessary - $opt_help && func_mode_help - - -# func_mode_execute arg... -func_mode_execute () -{ - $opt_debug - # The first argument is the command name. - cmd="$nonopt" - test -z "$cmd" && \ - func_fatal_help "you must specify a COMMAND" - - # Handle -dlopen flags immediately. - for file in $execute_dlfiles; do - test -f "$file" \ - || func_fatal_help "\`$file' is not a file" - - dir= - case $file in - *.la) - # Check to see that this really is a libtool archive. - func_lalib_unsafe_p "$file" \ - || func_fatal_help "\`$lib' is not a valid libtool archive" - - # Read the libtool library. - dlname= - library_names= - func_source "$file" - - # Skip this library if it cannot be dlopened. - if test -z "$dlname"; then - # Warn if it was a shared library. - test -n "$library_names" && \ - func_warning "\`$file' was not linked with \`-export-dynamic'" - continue - fi - - func_dirname "$file" "" "." - dir="$func_dirname_result" - - if test -f "$dir/$objdir/$dlname"; then - dir="$dir/$objdir" - else - if test ! -f "$dir/$dlname"; then - func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" - fi - fi - ;; - - *.lo) - # Just add the directory containing the .lo file. - func_dirname "$file" "" "." - dir="$func_dirname_result" - ;; - - *) - func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" - continue - ;; - esac - - # Get the absolute pathname. - absdir=`cd "$dir" && pwd` - test -n "$absdir" && dir="$absdir" - - # Now add the directory to shlibpath_var. - if eval "test -z \"\$$shlibpath_var\""; then - eval "$shlibpath_var=\"\$dir\"" - else - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" - fi - done - - # This variable tells wrapper scripts just to set shlibpath_var - # rather than running their programs. - libtool_execute_magic="$magic" - - # Check if any of the arguments is a wrapper script. - args= - for file - do - case $file in - -*) ;; - *) - # Do a test to see if this is really a libtool program. - if func_ltwrapper_script_p "$file"; then - func_source "$file" - # Transform arg to wrapped name. - file="$progdir/$program" - elif func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - func_source "$func_ltwrapper_scriptname_result" - # Transform arg to wrapped name. - file="$progdir/$program" - fi - ;; - esac - # Quote arguments (to preserve shell metacharacters). - func_quote_for_eval "$file" - args="$args $func_quote_for_eval_result" - done - - if test "X$opt_dry_run" = Xfalse; then - if test -n "$shlibpath_var"; then - # Export the shlibpath_var. - eval "export $shlibpath_var" - fi - - # Restore saved environment variables - for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES - do - eval "if test \"\${save_$lt_var+set}\" = set; then - $lt_var=\$save_$lt_var; export $lt_var - else - $lt_unset $lt_var - fi" - done - - # Now prepare to actually exec the command. - exec_cmd="\$cmd$args" - else - # Display what would be done. - if test -n "$shlibpath_var"; then - eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" - $ECHO "export $shlibpath_var" - fi - $ECHO "$cmd$args" - exit $EXIT_SUCCESS - fi -} - -test "$mode" = execute && func_mode_execute ${1+"$@"} - - -# func_mode_finish arg... -func_mode_finish () -{ - $opt_debug - libdirs="$nonopt" - admincmds= - - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then - for dir - do - libdirs="$libdirs $dir" - done - - for libdir in $libdirs; do - if test -n "$finish_cmds"; then - # Do each command in the finish commands. - func_execute_cmds "$finish_cmds" 'admincmds="$admincmds -'"$cmd"'"' - fi - if test -n "$finish_eval"; then - # Do the single finish_eval. - eval cmds=\"$finish_eval\" - $opt_dry_run || eval "$cmds" || admincmds="$admincmds - $cmds" - fi - done - fi - - # Exit here if they wanted silent mode. - $opt_silent && exit $EXIT_SUCCESS - - $ECHO "X----------------------------------------------------------------------" | $Xsed - $ECHO "Libraries have been installed in:" - for libdir in $libdirs; do - $ECHO " $libdir" - done - $ECHO - $ECHO "If you ever happen to want to link against installed libraries" - $ECHO "in a given directory, LIBDIR, you must either use libtool, and" - $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" - $ECHO "flag during linking and do at least one of the following:" - if test -n "$shlibpath_var"; then - $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" - $ECHO " during execution" - fi - if test -n "$runpath_var"; then - $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" - $ECHO " during linking" - fi - if test -n "$hardcode_libdir_flag_spec"; then - libdir=LIBDIR - eval flag=\"$hardcode_libdir_flag_spec\" - - $ECHO " - use the \`$flag' linker flag" - fi - if test -n "$admincmds"; then - $ECHO " - have your system administrator run these commands:$admincmds" - fi - if test -f /etc/ld.so.conf; then - $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" - fi - $ECHO - - $ECHO "See any operating system documentation about shared libraries for" - case $host in - solaris2.[6789]|solaris2.1[0-9]) - $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" - $ECHO "pages." - ;; - *) - $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." - ;; - esac - $ECHO "X----------------------------------------------------------------------" | $Xsed - exit $EXIT_SUCCESS -} - -test "$mode" = finish && func_mode_finish ${1+"$@"} - - -# func_mode_install arg... -func_mode_install () -{ - $opt_debug - # There may be an optional sh(1) argument at the beginning of - # install_prog (especially on Windows NT). - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || - # Allow the use of GNU shtool's install command. - $ECHO "X$nonopt" | $GREP shtool >/dev/null; then - # Aesthetically quote it. - func_quote_for_eval "$nonopt" - install_prog="$func_quote_for_eval_result " - arg=$1 - shift - else - install_prog= - arg=$nonopt - fi - - # The real first argument should be the name of the installation program. - # Aesthetically quote it. - func_quote_for_eval "$arg" - install_prog="$install_prog$func_quote_for_eval_result" - - # We need to accept at least all the BSD install flags. - dest= - files= - opts= - prev= - install_type= - isdir=no - stripme= - for arg - do - if test -n "$dest"; then - files="$files $dest" - dest=$arg - continue - fi - - case $arg in - -d) isdir=yes ;; - -f) - case " $install_prog " in - *[\\\ /]cp\ *) ;; - *) prev=$arg ;; - esac - ;; - -g | -m | -o) - prev=$arg - ;; - -s) - stripme=" -s" - continue - ;; - -*) - ;; - *) - # If the previous option needed an argument, then skip it. - if test -n "$prev"; then - prev= - else - dest=$arg - continue - fi - ;; - esac - - # Aesthetically quote the argument. - func_quote_for_eval "$arg" - install_prog="$install_prog $func_quote_for_eval_result" - done - - test -z "$install_prog" && \ - func_fatal_help "you must specify an install program" - - test -n "$prev" && \ - func_fatal_help "the \`$prev' option requires an argument" - - if test -z "$files"; then - if test -z "$dest"; then - func_fatal_help "no file or destination specified" - else - func_fatal_help "you must specify a destination" - fi - fi - - # Strip any trailing slash from the destination. - func_stripname '' '/' "$dest" - dest=$func_stripname_result - - # Check to see that the destination is a directory. - test -d "$dest" && isdir=yes - if test "$isdir" = yes; then - destdir="$dest" - destname= - else - func_dirname_and_basename "$dest" "" "." - destdir="$func_dirname_result" - destname="$func_basename_result" - - # Not a directory, so check to see that there is only one file specified. - set dummy $files; shift - test "$#" -gt 1 && \ - func_fatal_help "\`$dest' is not a directory" - fi - case $destdir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - for file in $files; do - case $file in - *.lo) ;; - *) - func_fatal_help "\`$destdir' must be an absolute directory name" - ;; - esac - done - ;; - esac - - # This variable tells wrapper scripts just to set variables rather - # than running their programs. - libtool_install_magic="$magic" - - staticlibs= - future_libdirs= - current_libdirs= - for file in $files; do - - # Do each installation. - case $file in - *.$libext) - # Do the static libraries later. - staticlibs="$staticlibs $file" - ;; - - *.la) - # Check to see that this really is a libtool archive. - func_lalib_unsafe_p "$file" \ - || func_fatal_help "\`$file' is not a valid libtool archive" - - library_names= - old_library= - relink_command= - func_source "$file" - - # Add the libdir to current_libdirs if it is the destination. - if test "X$destdir" = "X$libdir"; then - case "$current_libdirs " in - *" $libdir "*) ;; - *) current_libdirs="$current_libdirs $libdir" ;; - esac - else - # Note the libdir as a future libdir. - case "$future_libdirs " in - *" $libdir "*) ;; - *) future_libdirs="$future_libdirs $libdir" ;; - esac - fi - - func_dirname "$file" "/" "" - dir="$func_dirname_result" - dir="$dir$objdir" - - if test -n "$relink_command"; then - # Determine the prefix the user has applied to our future dir. - inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` - - # Don't allow the user to place us outside of our expected - # location b/c this prevents finding dependent libraries that - # are installed to the same prefix. - # At present, this check doesn't affect windows .dll's that - # are installed into $libdir/../bin (currently, that works fine) - # but it's something to keep an eye on. - test "$inst_prefix_dir" = "$destdir" && \ - func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" - - if test -n "$inst_prefix_dir"; then - # Stick the inst_prefix_dir data into the link command. - relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` - else - relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` - fi - - func_warning "relinking \`$file'" - func_show_eval "$relink_command" \ - 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' - fi - - # See the names of the shared library. - set dummy $library_names; shift - if test -n "$1"; then - realname="$1" - shift - - srcname="$realname" - test -n "$relink_command" && srcname="$realname"T - - # Install the shared library and build the symlinks. - func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ - 'exit $?' - tstripme="$stripme" - case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - case $realname in - *.dll.a) - tstripme="" - ;; - esac - ;; - esac - if test -n "$tstripme" && test -n "$striplib"; then - func_show_eval "$striplib $destdir/$realname" 'exit $?' - fi - - if test "$#" -gt 0; then - # Delete the old symlinks, and create new ones. - # Try `ln -sf' first, because the `ln' binary might depend on - # the symlink we replace! Solaris /bin/ln does not understand -f, - # so we also need to try rm && ln -s. - for linkname - do - test "$linkname" != "$realname" \ - && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" - done - fi - - # Do each command in the postinstall commands. - lib="$destdir/$realname" - func_execute_cmds "$postinstall_cmds" 'exit $?' - fi - - # Install the pseudo-library for information purposes. - func_basename "$file" - name="$func_basename_result" - instname="$dir/$name"i - func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' - - # Maybe install the static library, too. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" - ;; - - *.lo) - # Install (i.e. copy) a libtool object. - - # Figure out destination file name, if it wasn't already specified. - if test -n "$destname"; then - destfile="$destdir/$destname" - else - func_basename "$file" - destfile="$func_basename_result" - destfile="$destdir/$destfile" - fi - - # Deduce the name of the destination old-style object file. - case $destfile in - *.lo) - func_lo2o "$destfile" - staticdest=$func_lo2o_result - ;; - *.$objext) - staticdest="$destfile" - destfile= - ;; - *) - func_fatal_help "cannot copy a libtool object to \`$destfile'" - ;; - esac - - # Install the libtool object if requested. - test -n "$destfile" && \ - func_show_eval "$install_prog $file $destfile" 'exit $?' - - # Install the old object if enabled. - if test "$build_old_libs" = yes; then - # Deduce the name of the old-style object file. - func_lo2o "$file" - staticobj=$func_lo2o_result - func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' - fi - exit $EXIT_SUCCESS - ;; - - *) - # Figure out destination file name, if it wasn't already specified. - if test -n "$destname"; then - destfile="$destdir/$destname" - else - func_basename "$file" - destfile="$func_basename_result" - destfile="$destdir/$destfile" - fi - - # If the file is missing, and there is a .exe on the end, strip it - # because it is most likely a libtool script we actually want to - # install - stripped_ext="" - case $file in - *.exe) - if test ! -f "$file"; then - func_stripname '' '.exe' "$file" - file=$func_stripname_result - stripped_ext=".exe" - fi - ;; - esac - - # Do a test to see if this is really a libtool program. - case $host in - *cygwin* | *mingw*) - if func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - wrapper=$func_ltwrapper_scriptname_result - else - func_stripname '' '.exe' "$file" - wrapper=$func_stripname_result - fi - ;; - *) - wrapper=$file - ;; - esac - if func_ltwrapper_script_p "$wrapper"; then - notinst_deplibs= - relink_command= - - func_source "$wrapper" - - # Check the variables that should have been set. - test -z "$generated_by_libtool_version" && \ - func_fatal_error "invalid libtool wrapper script \`$wrapper'" - - finalize=yes - for lib in $notinst_deplibs; do - # Check to see that each library is installed. - libdir= - if test -f "$lib"; then - func_source "$lib" - fi - libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test - if test -n "$libdir" && test ! -f "$libfile"; then - func_warning "\`$lib' has not been installed in \`$libdir'" - finalize=no - fi - done - - relink_command= - func_source "$wrapper" - - outputname= - if test "$fast_install" = no && test -n "$relink_command"; then - $opt_dry_run || { - if test "$finalize" = yes; then - tmpdir=`func_mktempdir` - func_basename "$file$stripped_ext" - file="$func_basename_result" - outputname="$tmpdir/$file" - # Replace the output file specification. - relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` - - $opt_silent || { - func_quote_for_expand "$relink_command" - eval "func_echo $func_quote_for_expand_result" - } - if eval "$relink_command"; then : - else - func_error "error: relink \`$file' with the above command before installing it" - $opt_dry_run || ${RM}r "$tmpdir" - continue - fi - file="$outputname" - else - func_warning "cannot relink \`$file'" - fi - } - else - # Install the binary that we compiled earlier. - file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` - fi - fi - - # remove .exe since cygwin /usr/bin/install will append another - # one anyway - case $install_prog,$host in - */usr/bin/install*,*cygwin*) - case $file:$destfile in - *.exe:*.exe) - # this is ok - ;; - *.exe:*) - destfile=$destfile.exe - ;; - *:*.exe) - func_stripname '' '.exe' "$destfile" - destfile=$func_stripname_result - ;; - esac - ;; - esac - func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' - $opt_dry_run || if test -n "$outputname"; then - ${RM}r "$tmpdir" - fi - ;; - esac - done - - for file in $staticlibs; do - func_basename "$file" - name="$func_basename_result" - - # Set up the ranlib parameters. - oldlib="$destdir/$name" - - func_show_eval "$install_prog \$file \$oldlib" 'exit $?' - - if test -n "$stripme" && test -n "$old_striplib"; then - func_show_eval "$old_striplib $oldlib" 'exit $?' - fi - - # Do each command in the postinstall commands. - func_execute_cmds "$old_postinstall_cmds" 'exit $?' - done - - test -n "$future_libdirs" && \ - func_warning "remember to run \`$progname --finish$future_libdirs'" - - if test -n "$current_libdirs"; then - # Maybe just do a dry run. - $opt_dry_run && current_libdirs=" -n$current_libdirs" - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' - else - exit $EXIT_SUCCESS - fi -} - -test "$mode" = install && func_mode_install ${1+"$@"} - - -# func_generate_dlsyms outputname originator pic_p -# Extract symbols from dlprefiles and create ${outputname}S.o with -# a dlpreopen symbol table. -func_generate_dlsyms () -{ - $opt_debug - my_outputname="$1" - my_originator="$2" - my_pic_p="${3-no}" - my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` - my_dlsyms= - - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - if test -n "$NM" && test -n "$global_symbol_pipe"; then - my_dlsyms="${my_outputname}S.c" - else - func_error "not configured to extract global symbols from dlpreopened files" - fi - fi - - if test -n "$my_dlsyms"; then - case $my_dlsyms in - "") ;; - *.c) - # Discover the nlist of each of the dlfiles. - nlist="$output_objdir/${my_outputname}.nm" - - func_show_eval "$RM $nlist ${nlist}S ${nlist}T" - - # Parse the name list into a source file. - func_verbose "creating $output_objdir/$my_dlsyms" - - $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ -/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ -/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ - -#ifdef __cplusplus -extern \"C\" { -#endif - -/* External symbol declarations for the compiler. */\ -" - - if test "$dlself" = yes; then - func_verbose "generating symbol list for \`$output'" - - $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" - - # Add our own program objects to the symbol list. - progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - for progfile in $progfiles; do - func_verbose "extracting global C symbols from \`$progfile'" - $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" - done - - if test -n "$exclude_expsyms"; then - $opt_dry_run || { - eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' - eval '$MV "$nlist"T "$nlist"' - } - fi - - if test -n "$export_symbols_regex"; then - $opt_dry_run || { - eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' - eval '$MV "$nlist"T "$nlist"' - } - fi - - # Prepare the list of exported symbols - if test -z "$export_symbols"; then - export_symbols="$output_objdir/$outputname.exp" - $opt_dry_run || { - $RM $export_symbols - eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' - case $host in - *cygwin* | *mingw* | *cegcc* ) - eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' - eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' - ;; - esac - } - else - $opt_dry_run || { - eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' - eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' - eval '$MV "$nlist"T "$nlist"' - case $host in - *cygwin | *mingw* | *cegcc* ) - eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' - eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' - ;; - esac - } - fi - fi - - for dlprefile in $dlprefiles; do - func_verbose "extracting global C symbols from \`$dlprefile'" - func_basename "$dlprefile" - name="$func_basename_result" - $opt_dry_run || { - eval '$ECHO ": $name " >> "$nlist"' - eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" - } - done - - $opt_dry_run || { - # Make sure we have at least an empty file. - test -f "$nlist" || : > "$nlist" - - if test -n "$exclude_expsyms"; then - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T - $MV "$nlist"T "$nlist" - fi - - # Try sorting and uniquifying the output. - if $GREP -v "^: " < "$nlist" | - if sort -k 3 </dev/null >/dev/null 2>&1; then - sort -k 3 - else - sort +2 - fi | - uniq > "$nlist"S; then - : - else - $GREP -v "^: " < "$nlist" > "$nlist"S - fi - - if test -f "$nlist"S; then - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' - else - $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" - fi - - $ECHO >> "$output_objdir/$my_dlsyms" "\ - -/* The mapping between symbol names and symbols. */ -typedef struct { - const char *name; - void *address; -} lt_dlsymlist; -" - case $host in - *cygwin* | *mingw* | *cegcc* ) - $ECHO >> "$output_objdir/$my_dlsyms" "\ -/* DATA imports from DLLs on WIN32 con't be const, because - runtime relocations are performed -- see ld's documentation - on pseudo-relocs. */" - lt_dlsym_const= ;; - *osf5*) - echo >> "$output_objdir/$my_dlsyms" "\ -/* This system does not cope well with relocations in const data */" - lt_dlsym_const= ;; - *) - lt_dlsym_const=const ;; - esac - - $ECHO >> "$output_objdir/$my_dlsyms" "\ -extern $lt_dlsym_const lt_dlsymlist -lt_${my_prefix}_LTX_preloaded_symbols[]; -$lt_dlsym_const lt_dlsymlist -lt_${my_prefix}_LTX_preloaded_symbols[] = -{\ - { \"$my_originator\", (void *) 0 }," - - case $need_lib_prefix in - no) - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" - ;; - *) - eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" - ;; - esac - $ECHO >> "$output_objdir/$my_dlsyms" "\ - {0, (void *) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt_${my_prefix}_LTX_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif\ -" - } # !$opt_dry_run - - pic_flag_for_symtable= - case "$compile_command " in - *" -static "*) ;; - *) - case $host in - # compiling the symbol table file with pic_flag works around - # a FreeBSD bug that causes programs to crash when -lm is - # linked before any other PIC object. But we must not use - # pic_flag when linking with -static. The problem exists in - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) - pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; - *-*-hpux*) - pic_flag_for_symtable=" $pic_flag" ;; - *) - if test "X$my_pic_p" != Xno; then - pic_flag_for_symtable=" $pic_flag" - fi - ;; - esac - ;; - esac - symtab_cflags= - for arg in $LTCFLAGS; do - case $arg in - -pie | -fpie | -fPIE) ;; - *) symtab_cflags="$symtab_cflags $arg" ;; - esac - done - - # Now compile the dynamic symbol file. - func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' - - # Clean up the generated files. - func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' - - # Transform the symbol file into the correct name. - symfileobj="$output_objdir/${my_outputname}S.$objext" - case $host in - *cygwin* | *mingw* | *cegcc* ) - if test -f "$output_objdir/$my_outputname.def"; then - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` - else - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` - fi - ;; - *) - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` - ;; - esac - ;; - *) - func_fatal_error "unknown suffix for \`$my_dlsyms'" - ;; - esac - else - # We keep going just in case the user didn't refer to - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe - # really was required. - - # Nullify the symbol file. - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` - fi -} - -# func_win32_libid arg -# return the library type of file 'arg' -# -# Need a lot of goo to handle *both* DLLs and import libs -# Has to be a shell function in order to 'eat' the argument -# that is supplied when $file_magic_command is called. -func_win32_libid () -{ - $opt_debug - win32_libid_type="unknown" - win32_fileres=`file -L $1 2>/dev/null` - case $win32_fileres in - *ar\ archive\ import\ library*) # definitely import - win32_libid_type="x86 archive import" - ;; - *ar\ archive*) # could be an import, or static - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | - $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then - win32_nmres=`eval $NM -f posix -A $1 | - $SED -n -e ' - 1,100{ - / I /{ - s,.*,import, - p - q - } - }'` - case $win32_nmres in - import*) win32_libid_type="x86 archive import";; - *) win32_libid_type="x86 archive static";; - esac - fi - ;; - *DLL*) - win32_libid_type="x86 DLL" - ;; - *executable*) # but shell scripts are "executable" too... - case $win32_fileres in - *MS\ Windows\ PE\ Intel*) - win32_libid_type="x86 DLL" - ;; - esac - ;; - esac - $ECHO "$win32_libid_type" -} - - - -# func_extract_an_archive dir oldlib -func_extract_an_archive () -{ - $opt_debug - f_ex_an_ar_dir="$1"; shift - f_ex_an_ar_oldlib="$1" - func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then - : - else - func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" - fi -} - - -# func_extract_archives gentop oldlib ... -func_extract_archives () -{ - $opt_debug - my_gentop="$1"; shift - my_oldlibs=${1+"$@"} - my_oldobjs="" - my_xlib="" - my_xabs="" - my_xdir="" - - for my_xlib in $my_oldlibs; do - # Extract the objects. - case $my_xlib in - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; - *) my_xabs=`pwd`"/$my_xlib" ;; - esac - func_basename "$my_xlib" - my_xlib="$func_basename_result" - my_xlib_u=$my_xlib - while :; do - case " $extracted_archives " in - *" $my_xlib_u "*) - func_arith $extracted_serial + 1 - extracted_serial=$func_arith_result - my_xlib_u=lt$extracted_serial-$my_xlib ;; - *) break ;; - esac - done - extracted_archives="$extracted_archives $my_xlib_u" - my_xdir="$my_gentop/$my_xlib_u" - - func_mkdir_p "$my_xdir" - - case $host in - *-darwin*) - func_verbose "Extracting $my_xabs" - # Do not bother doing anything if just a dry run - $opt_dry_run || { - darwin_orig_dir=`pwd` - cd $my_xdir || exit $? - darwin_archive=$my_xabs - darwin_curdir=`pwd` - darwin_base_archive=`basename "$darwin_archive"` - darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` - if test -n "$darwin_arches"; then - darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` - darwin_arch= - func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" - for darwin_arch in $darwin_arches ; do - func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" - $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" - func_extract_an_archive "`pwd`" "${darwin_base_archive}" - cd "$darwin_curdir" - $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" - done # $darwin_arches - ## Okay now we've a bunch of thin objects, gotta fatten them up :) - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` - darwin_file= - darwin_files= - for darwin_file in $darwin_filelist; do - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` - $LIPO -create -output "$darwin_file" $darwin_files - done # $darwin_filelist - $RM -rf unfat-$$ - cd "$darwin_orig_dir" - else - cd $darwin_orig_dir - func_extract_an_archive "$my_xdir" "$my_xabs" - fi # $darwin_arches - } # !$opt_dry_run - ;; - *) - func_extract_an_archive "$my_xdir" "$my_xabs" - ;; - esac - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` - done - - func_extract_archives_result="$my_oldobjs" -} - - - -# func_emit_wrapper_part1 [arg=no] -# -# Emit the first part of a libtool wrapper script on stdout. -# For more information, see the description associated with -# func_emit_wrapper(), below. -func_emit_wrapper_part1 () -{ - func_emit_wrapper_part1_arg1=no - if test -n "$1" ; then - func_emit_wrapper_part1_arg1=$1 - fi - - $ECHO "\ -#! $SHELL - -# $output - temporary wrapper script for $objdir/$outputname -# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION -# -# The $output program cannot be directly executed until all the libtool -# libraries that it depends on are installed. -# -# This wrapper script should never be moved out of the build directory. -# If it is, it will not operate correctly. - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='${SED} -e 1s/^X//' -sed_quote_subst='$sed_quote_subst' - -# Be Bourne compatible -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which - # is contrary to our usage. Disable this feature. - alias -g '\${1+\"\$@\"}'='\"\$@\"' - setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac -fi -BIN_SH=xpg4; export BIN_SH # for Tru64 -DUALCASE=1; export DUALCASE # for MKS sh - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -relink_command=\"$relink_command\" - -# This environment variable determines our operation mode. -if test \"\$libtool_install_magic\" = \"$magic\"; then - # install mode needs the following variables: - generated_by_libtool_version='$macro_version' - notinst_deplibs='$notinst_deplibs' -else - # When we are sourced in execute mode, \$file and \$ECHO are already set. - if test \"\$libtool_execute_magic\" != \"$magic\"; then - ECHO=\"$qecho\" - file=\"\$0\" - # Make sure echo works. - if test \"X\$1\" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift - elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then - # Yippee, \$ECHO works! - : - else - # Restart under the correct shell, and then maybe \$ECHO will work. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} - fi - fi\ -" - $ECHO "\ - - # Find the directory that this script lives in. - thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` - test \"x\$thisdir\" = \"x\$file\" && thisdir=. - - # Follow symbolic links until we get to the real thisdir. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` - while test -n \"\$file\"; do - destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` - - # If there was a directory component, then change thisdir. - if test \"x\$destdir\" != \"x\$file\"; then - case \"\$destdir\" in - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; - *) thisdir=\"\$thisdir/\$destdir\" ;; - esac - fi - - file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` - done -" -} -# end: func_emit_wrapper_part1 - -# func_emit_wrapper_part2 [arg=no] -# -# Emit the second part of a libtool wrapper script on stdout. -# For more information, see the description associated with -# func_emit_wrapper(), below. -func_emit_wrapper_part2 () -{ - func_emit_wrapper_part2_arg1=no - if test -n "$1" ; then - func_emit_wrapper_part2_arg1=$1 - fi - - $ECHO "\ - - # Usually 'no', except on cygwin/mingw when embedded into - # the cwrapper. - WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1 - if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then - # special case for '.' - if test \"\$thisdir\" = \".\"; then - thisdir=\`pwd\` - fi - # remove .libs from thisdir - case \"\$thisdir\" in - *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; - $objdir ) thisdir=. ;; - esac - fi - - # Try to get the absolute directory name. - absdir=\`cd \"\$thisdir\" && pwd\` - test -n \"\$absdir\" && thisdir=\"\$absdir\" -" - - if test "$fast_install" = yes; then - $ECHO "\ - program=lt-'$outputname'$exeext - progdir=\"\$thisdir/$objdir\" - - if test ! -f \"\$progdir/\$program\" || - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ - test \"X\$file\" != \"X\$progdir/\$program\"; }; then - - file=\"\$\$-\$program\" - - if test ! -d \"\$progdir\"; then - $MKDIR \"\$progdir\" - else - $RM \"\$progdir/\$file\" - fi" - - $ECHO "\ - - # relink executable if necessary - if test -n \"\$relink_command\"; then - if relink_command_output=\`eval \$relink_command 2>&1\`; then : - else - $ECHO \"\$relink_command_output\" >&2 - $RM \"\$progdir/\$file\" - exit 1 - fi - fi - - $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || - { $RM \"\$progdir/\$program\"; - $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } - $RM \"\$progdir/\$file\" - fi" - else - $ECHO "\ - program='$outputname' - progdir=\"\$thisdir/$objdir\" -" - fi - - $ECHO "\ - - if test -f \"\$progdir/\$program\"; then" - - # Export our shlibpath_var if we have one. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then - $ECHO "\ - # Add our own library path to $shlibpath_var - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" - - # Some systems cannot cope with colon-terminated $shlibpath_var - # The second colon is a workaround for a bug in BeOS R4 sed - $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` - - export $shlibpath_var -" - fi - - # fixup the dll searchpath if we need to. - if test -n "$dllsearchpath"; then - $ECHO "\ - # Add the dll search path components to the executable PATH - PATH=$dllsearchpath:\$PATH -" - fi - - $ECHO "\ - if test \"\$libtool_execute_magic\" != \"$magic\"; then - # Run the actual program with our arguments. -" - case $host in - # Backslashes separate directories on plain windows - *-*-mingw | *-*-os2* | *-cegcc*) - $ECHO "\ - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} -" - ;; - - *) - $ECHO "\ - exec \"\$progdir/\$program\" \${1+\"\$@\"} -" - ;; - esac - $ECHO "\ - \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 - exit 1 - fi - else - # The program doesn't exist. - \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 - \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 - $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 - exit 1 - fi -fi\ -" -} -# end: func_emit_wrapper_part2 - - -# func_emit_wrapper [arg=no] -# -# Emit a libtool wrapper script on stdout. -# Don't directly open a file because we may want to -# incorporate the script contents within a cygwin/mingw -# wrapper executable. Must ONLY be called from within -# func_mode_link because it depends on a number of variables -# set therein. -# -# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR -# variable will take. If 'yes', then the emitted script -# will assume that the directory in which it is stored is -# the $objdir directory. This is a cygwin/mingw-specific -# behavior. -func_emit_wrapper () -{ - func_emit_wrapper_arg1=no - if test -n "$1" ; then - func_emit_wrapper_arg1=$1 - fi - - # split this up so that func_emit_cwrapperexe_src - # can call each part independently. - func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" - func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" -} - - -# func_to_host_path arg -# -# Convert paths to host format when used with build tools. -# Intended for use with "native" mingw (where libtool itself -# is running under the msys shell), or in the following cross- -# build environments: -# $build $host -# mingw (msys) mingw [e.g. native] -# cygwin mingw -# *nix + wine mingw -# where wine is equipped with the `winepath' executable. -# In the native mingw case, the (msys) shell automatically -# converts paths for any non-msys applications it launches, -# but that facility isn't available from inside the cwrapper. -# Similar accommodations are necessary for $host mingw and -# $build cygwin. Calling this function does no harm for other -# $host/$build combinations not listed above. -# -# ARG is the path (on $build) that should be converted to -# the proper representation for $host. The result is stored -# in $func_to_host_path_result. -func_to_host_path () -{ - func_to_host_path_result="$1" - if test -n "$1" ; then - case $host in - *mingw* ) - lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' - case $build in - *mingw* ) # actually, msys - # awkward: cmd appends spaces to result - lt_sed_strip_trailing_spaces="s/[ ]*\$//" - func_to_host_path_tmp1=`( cmd //c echo "$1" |\ - $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` - func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ - $SED -e "$lt_sed_naive_backslashify"` - ;; - *cygwin* ) - func_to_host_path_tmp1=`cygpath -w "$1"` - func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ - $SED -e "$lt_sed_naive_backslashify"` - ;; - * ) - # Unfortunately, winepath does not exit with a non-zero - # error code, so we are forced to check the contents of - # stdout. On the other hand, if the command is not - # found, the shell will set an exit code of 127 and print - # *an error message* to stdout. So we must check for both - # error code of zero AND non-empty stdout, which explains - # the odd construction: - func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` - if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then - func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ - $SED -e "$lt_sed_naive_backslashify"` - else - # Allow warning below. - func_to_host_path_result="" - fi - ;; - esac - if test -z "$func_to_host_path_result" ; then - func_error "Could not determine host path corresponding to" - func_error " '$1'" - func_error "Continuing, but uninstalled executables may not work." - # Fallback: - func_to_host_path_result="$1" - fi - ;; - esac - fi -} -# end: func_to_host_path - -# func_to_host_pathlist arg -# -# Convert pathlists to host format when used with build tools. -# See func_to_host_path(), above. This function supports the -# following $build/$host combinations (but does no harm for -# combinations not listed here): -# $build $host -# mingw (msys) mingw [e.g. native] -# cygwin mingw -# *nix + wine mingw -# -# Path separators are also converted from $build format to -# $host format. If ARG begins or ends with a path separator -# character, it is preserved (but converted to $host format) -# on output. -# -# ARG is a pathlist (on $build) that should be converted to -# the proper representation on $host. The result is stored -# in $func_to_host_pathlist_result. -func_to_host_pathlist () -{ - func_to_host_pathlist_result="$1" - if test -n "$1" ; then - case $host in - *mingw* ) - lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' - # Remove leading and trailing path separator characters from - # ARG. msys behavior is inconsistent here, cygpath turns them - # into '.;' and ';.', and winepath ignores them completely. - func_to_host_pathlist_tmp2="$1" - # Once set for this call, this variable should not be - # reassigned. It is used in tha fallback case. - func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\ - $SED -e 's|^:*||' -e 's|:*$||'` - case $build in - *mingw* ) # Actually, msys. - # Awkward: cmd appends spaces to result. - lt_sed_strip_trailing_spaces="s/[ ]*\$//" - func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\ - $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` - func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ - $SED -e "$lt_sed_naive_backslashify"` - ;; - *cygwin* ) - func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"` - func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ - $SED -e "$lt_sed_naive_backslashify"` - ;; - * ) - # unfortunately, winepath doesn't convert pathlists - func_to_host_pathlist_result="" - func_to_host_pathlist_oldIFS=$IFS - IFS=: - for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do - IFS=$func_to_host_pathlist_oldIFS - if test -n "$func_to_host_pathlist_f" ; then - func_to_host_path "$func_to_host_pathlist_f" - if test -n "$func_to_host_path_result" ; then - if test -z "$func_to_host_pathlist_result" ; then - func_to_host_pathlist_result="$func_to_host_path_result" - else - func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result" - fi - fi - fi - IFS=: - done - IFS=$func_to_host_pathlist_oldIFS - ;; - esac - if test -z "$func_to_host_pathlist_result" ; then - func_error "Could not determine the host path(s) corresponding to" - func_error " '$1'" - func_error "Continuing, but uninstalled executables may not work." - # Fallback. This may break if $1 contains DOS-style drive - # specifications. The fix is not to complicate the expression - # below, but for the user to provide a working wine installation - # with winepath so that path translation in the cross-to-mingw - # case works properly. - lt_replace_pathsep_nix_to_dos="s|:|;|g" - func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ - $SED -e "$lt_replace_pathsep_nix_to_dos"` - fi - # Now, add the leading and trailing path separators back - case "$1" in - :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" - ;; - esac - case "$1" in - *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" - ;; - esac - ;; - esac - fi -} -# end: func_to_host_pathlist - -# func_emit_cwrapperexe_src -# emit the source code for a wrapper executable on stdout -# Must ONLY be called from within func_mode_link because -# it depends on a number of variable set therein. -func_emit_cwrapperexe_src () -{ - cat <<EOF - -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname - Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION - - The $output program cannot be directly executed until all the libtool - libraries that it depends on are installed. - - This wrapper executable should never be moved out of the build directory. - If it is, it will not operate correctly. - - Currently, it simply execs the wrapper *script* "$SHELL $output", - but could eventually absorb all of the scripts functionality and - exec $objdir/$outputname directly. -*/ -EOF - cat <<"EOF" -#include <stdio.h> -#include <stdlib.h> -#ifdef _MSC_VER -# include <direct.h> -# include <process.h> -# include <io.h> -# define setmode _setmode -#else -# include <unistd.h> -# include <stdint.h> -# ifdef __CYGWIN__ -# include <io.h> -# define HAVE_SETENV -# ifdef __STRICT_ANSI__ -char *realpath (const char *, char *); -int putenv (char *); -int setenv (const char *, const char *, int); -# endif -# endif -#endif -#include <malloc.h> -#include <stdarg.h> -#include <assert.h> -#include <string.h> -#include <ctype.h> -#include <errno.h> -#include <fcntl.h> -#include <sys/stat.h> - -#if defined(PATH_MAX) -# define LT_PATHMAX PATH_MAX -#elif defined(MAXPATHLEN) -# define LT_PATHMAX MAXPATHLEN -#else -# define LT_PATHMAX 1024 -#endif - -#ifndef S_IXOTH -# define S_IXOTH 0 -#endif -#ifndef S_IXGRP -# define S_IXGRP 0 -#endif - -#ifdef _MSC_VER -# define S_IXUSR _S_IEXEC -# define stat _stat -# ifndef _INTPTR_T_DEFINED -# define intptr_t int -# endif -#endif - -#ifndef DIR_SEPARATOR -# define DIR_SEPARATOR '/' -# define PATH_SEPARATOR ':' -#endif - -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ - defined (__OS2__) -# define HAVE_DOS_BASED_FILE_SYSTEM -# define FOPEN_WB "wb" -# ifndef DIR_SEPARATOR_2 -# define DIR_SEPARATOR_2 '\\' -# endif -# ifndef PATH_SEPARATOR_2 -# define PATH_SEPARATOR_2 ';' -# endif -#endif - -#ifndef DIR_SEPARATOR_2 -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) -#else /* DIR_SEPARATOR_2 */ -# define IS_DIR_SEPARATOR(ch) \ - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) -#endif /* DIR_SEPARATOR_2 */ - -#ifndef PATH_SEPARATOR_2 -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) -#else /* PATH_SEPARATOR_2 */ -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) -#endif /* PATH_SEPARATOR_2 */ - -#ifdef __CYGWIN__ -# define FOPEN_WB "wb" -#endif - -#ifndef FOPEN_WB -# define FOPEN_WB "w" -#endif -#ifndef _O_BINARY -# define _O_BINARY 0 -#endif - -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) -#define XFREE(stale) do { \ - if (stale) { free ((void *) stale); stale = 0; } \ -} while (0) - -#undef LTWRAPPER_DEBUGPRINTF -#if defined DEBUGWRAPPER -# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args -static void -ltwrapper_debugprintf (const char *fmt, ...) -{ - va_list args; - va_start (args, fmt); - (void) vfprintf (stderr, fmt, args); - va_end (args); -} -#else -# define LTWRAPPER_DEBUGPRINTF(args) -#endif - -const char *program_name = NULL; - -void *xmalloc (size_t num); -char *xstrdup (const char *string); -const char *base_name (const char *name); -char *find_executable (const char *wrapper); -char *chase_symlinks (const char *pathspec); -int make_executable (const char *path); -int check_executable (const char *path); -char *strendzap (char *str, const char *pat); -void lt_fatal (const char *message, ...); -void lt_setenv (const char *name, const char *value); -char *lt_extend_str (const char *orig_value, const char *add, int to_end); -void lt_opt_process_env_set (const char *arg); -void lt_opt_process_env_prepend (const char *arg); -void lt_opt_process_env_append (const char *arg); -int lt_split_name_value (const char *arg, char** name, char** value); -void lt_update_exe_path (const char *name, const char *value); -void lt_update_lib_path (const char *name, const char *value); - -static const char *script_text_part1 = -EOF - - func_emit_wrapper_part1 yes | - $SED -e 's/\([\\"]\)/\\\1/g' \ - -e 's/^/ "/' -e 's/$/\\n"/' - echo ";" - cat <<EOF - -static const char *script_text_part2 = -EOF - func_emit_wrapper_part2 yes | - $SED -e 's/\([\\"]\)/\\\1/g' \ - -e 's/^/ "/' -e 's/$/\\n"/' - echo ";" - - cat <<EOF -const char * MAGIC_EXE = "$magic_exe"; -const char * LIB_PATH_VARNAME = "$shlibpath_var"; -EOF - - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then - func_to_host_pathlist "$temp_rpath" - cat <<EOF -const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result"; -EOF - else - cat <<"EOF" -const char * LIB_PATH_VALUE = ""; -EOF - fi - - if test -n "$dllsearchpath"; then - func_to_host_pathlist "$dllsearchpath:" - cat <<EOF -const char * EXE_PATH_VARNAME = "PATH"; -const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result"; -EOF - else - cat <<"EOF" -const char * EXE_PATH_VARNAME = ""; -const char * EXE_PATH_VALUE = ""; -EOF - fi - - if test "$fast_install" = yes; then - cat <<EOF -const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */ -EOF - else - cat <<EOF -const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */ -EOF - fi - - - cat <<"EOF" - -#define LTWRAPPER_OPTION_PREFIX "--lt-" -#define LTWRAPPER_OPTION_PREFIX_LENGTH 5 - -static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH; -static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX; - -static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script"; - -static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7; -static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set"; - /* argument is putenv-style "foo=bar", value of foo is set to bar */ - -static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11; -static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend"; - /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */ - -static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10; -static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append"; - /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */ - -int -main (int argc, char *argv[]) -{ - char **newargz; - int newargc; - char *tmp_pathspec; - char *actual_cwrapper_path; - char *actual_cwrapper_name; - char *target_name; - char *lt_argv_zero; - intptr_t rval = 127; - - int i; - - program_name = (char *) xstrdup (base_name (argv[0])); - LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0])); - LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name)); - - /* very simple arg parsing; don't want to rely on getopt */ - for (i = 1; i < argc; i++) - { - if (strcmp (argv[i], dumpscript_opt) == 0) - { -EOF - case "$host" in - *mingw* | *cygwin* ) - # make stdout use "unix" line endings - echo " setmode(1,_O_BINARY);" - ;; - esac - - cat <<"EOF" - printf ("%s", script_text_part1); - printf ("%s", script_text_part2); - return 0; - } - } - - newargz = XMALLOC (char *, argc + 1); - tmp_pathspec = find_executable (argv[0]); - if (tmp_pathspec == NULL) - lt_fatal ("Couldn't find %s", argv[0]); - LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n", - tmp_pathspec)); - - actual_cwrapper_path = chase_symlinks (tmp_pathspec); - LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n", - actual_cwrapper_path)); - XFREE (tmp_pathspec); - - actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path)); - strendzap (actual_cwrapper_path, actual_cwrapper_name); - - /* wrapper name transforms */ - strendzap (actual_cwrapper_name, ".exe"); - tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1); - XFREE (actual_cwrapper_name); - actual_cwrapper_name = tmp_pathspec; - tmp_pathspec = 0; - - /* target_name transforms -- use actual target program name; might have lt- prefix */ - target_name = xstrdup (base_name (TARGET_PROGRAM_NAME)); - strendzap (target_name, ".exe"); - tmp_pathspec = lt_extend_str (target_name, ".exe", 1); - XFREE (target_name); - target_name = tmp_pathspec; - tmp_pathspec = 0; - - LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n", - target_name)); -EOF - - cat <<EOF - newargz[0] = - XMALLOC (char, (strlen (actual_cwrapper_path) + - strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1)); - strcpy (newargz[0], actual_cwrapper_path); - strcat (newargz[0], "$objdir"); - strcat (newargz[0], "/"); -EOF - - cat <<"EOF" - /* stop here, and copy so we don't have to do this twice */ - tmp_pathspec = xstrdup (newargz[0]); - - /* do NOT want the lt- prefix here, so use actual_cwrapper_name */ - strcat (newargz[0], actual_cwrapper_name); - - /* DO want the lt- prefix here if it exists, so use target_name */ - lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1); - XFREE (tmp_pathspec); - tmp_pathspec = NULL; -EOF - - case $host_os in - mingw*) - cat <<"EOF" - { - char* p; - while ((p = strchr (newargz[0], '\\')) != NULL) - { - *p = '/'; - } - while ((p = strchr (lt_argv_zero, '\\')) != NULL) - { - *p = '/'; - } - } -EOF - ;; - esac - - cat <<"EOF" - XFREE (target_name); - XFREE (actual_cwrapper_path); - XFREE (actual_cwrapper_name); - - lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */ - lt_setenv ("DUALCASE", "1"); /* for MSK sh */ - lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE); - lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE); - - newargc=0; - for (i = 1; i < argc; i++) - { - if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0) - { - if (argv[i][env_set_opt_len] == '=') - { - const char *p = argv[i] + env_set_opt_len + 1; - lt_opt_process_env_set (p); - } - else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc) - { - lt_opt_process_env_set (argv[++i]); /* don't copy */ - } - else - lt_fatal ("%s missing required argument", env_set_opt); - continue; - } - if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0) - { - if (argv[i][env_prepend_opt_len] == '=') - { - const char *p = argv[i] + env_prepend_opt_len + 1; - lt_opt_process_env_prepend (p); - } - else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc) - { - lt_opt_process_env_prepend (argv[++i]); /* don't copy */ - } - else - lt_fatal ("%s missing required argument", env_prepend_opt); - continue; - } - if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0) - { - if (argv[i][env_append_opt_len] == '=') - { - const char *p = argv[i] + env_append_opt_len + 1; - lt_opt_process_env_append (p); - } - else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc) - { - lt_opt_process_env_append (argv[++i]); /* don't copy */ - } - else - lt_fatal ("%s missing required argument", env_append_opt); - continue; - } - if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0) - { - /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX - namespace, but it is not one of the ones we know about and - have already dealt with, above (inluding dump-script), then - report an error. Otherwise, targets might begin to believe - they are allowed to use options in the LTWRAPPER_OPTION_PREFIX - namespace. The first time any user complains about this, we'll - need to make LTWRAPPER_OPTION_PREFIX a configure-time option - or a configure.ac-settable value. - */ - lt_fatal ("Unrecognized option in %s namespace: '%s'", - ltwrapper_option_prefix, argv[i]); - } - /* otherwise ... */ - newargz[++newargc] = xstrdup (argv[i]); - } - newargz[++newargc] = NULL; - - LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>"))); - for (i = 0; i < newargc; i++) - { - LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>"))); - } - -EOF - - case $host_os in - mingw*) - cat <<"EOF" - /* execv doesn't actually work on mingw as expected on unix */ - rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); - if (rval == -1) - { - /* failed to start process */ - LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); - return 127; - } - return rval; -EOF - ;; - *) - cat <<"EOF" - execv (lt_argv_zero, newargz); - return rval; /* =127, but avoids unused variable warning */ -EOF - ;; - esac - - cat <<"EOF" -} - -void * -xmalloc (size_t num) -{ - void *p = (void *) malloc (num); - if (!p) - lt_fatal ("Memory exhausted"); - - return p; -} - -char * -xstrdup (const char *string) -{ - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), - string) : NULL; -} - -const char * -base_name (const char *name) -{ - const char *base; - -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - /* Skip over the disk name in MSDOS pathnames. */ - if (isalpha ((unsigned char) name[0]) && name[1] == ':') - name += 2; -#endif - - for (base = name; *name; name++) - if (IS_DIR_SEPARATOR (*name)) - base = name + 1; - return base; -} - -int -check_executable (const char *path) -{ - struct stat st; - - LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", - path ? (*path ? path : "EMPTY!") : "NULL!")); - if ((!path) || (!*path)) - return 0; - - if ((stat (path, &st) >= 0) - && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) - return 1; - else - return 0; -} - -int -make_executable (const char *path) -{ - int rval = 0; - struct stat st; - - LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", - path ? (*path ? path : "EMPTY!") : "NULL!")); - if ((!path) || (!*path)) - return 0; - - if (stat (path, &st) >= 0) - { - rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); - } - return rval; -} - -/* Searches for the full path of the wrapper. Returns - newly allocated full path name if found, NULL otherwise - Does not chase symlinks, even on platforms that support them. -*/ -char * -find_executable (const char *wrapper) -{ - int has_slash = 0; - const char *p; - const char *p_next; - /* static buffer for getcwd */ - char tmp[LT_PATHMAX + 1]; - int tmp_len; - char *concat_name; - - LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", - wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); - - if ((wrapper == NULL) || (*wrapper == '\0')) - return NULL; - - /* Absolute path? */ -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') - { - concat_name = xstrdup (wrapper); - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - } - else - { -#endif - if (IS_DIR_SEPARATOR (wrapper[0])) - { - concat_name = xstrdup (wrapper); - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - } -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - } -#endif - - for (p = wrapper; *p; p++) - if (*p == '/') - { - has_slash = 1; - break; - } - if (!has_slash) - { - /* no slashes; search PATH */ - const char *path = getenv ("PATH"); - if (path != NULL) - { - for (p = path; *p; p = p_next) - { - const char *q; - size_t p_len; - for (q = p; *q; q++) - if (IS_PATH_SEPARATOR (*q)) - break; - p_len = q - p; - p_next = (*q == '\0' ? q : q + 1); - if (p_len == 0) - { - /* empty path: current directory */ - if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal ("getcwd failed"); - tmp_len = strlen (tmp); - concat_name = - XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); - memcpy (concat_name, tmp, tmp_len); - concat_name[tmp_len] = '/'; - strcpy (concat_name + tmp_len + 1, wrapper); - } - else - { - concat_name = - XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); - memcpy (concat_name, p, p_len); - concat_name[p_len] = '/'; - strcpy (concat_name + p_len + 1, wrapper); - } - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - } - } - /* not found in PATH; assume curdir */ - } - /* Relative path | not found in path: prepend cwd */ - if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal ("getcwd failed"); - tmp_len = strlen (tmp); - concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); - memcpy (concat_name, tmp, tmp_len); - concat_name[tmp_len] = '/'; - strcpy (concat_name + tmp_len + 1, wrapper); - - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - return NULL; -} - -char * -chase_symlinks (const char *pathspec) -{ -#ifndef S_ISLNK - return xstrdup (pathspec); -#else - char buf[LT_PATHMAX]; - struct stat s; - char *tmp_pathspec = xstrdup (pathspec); - char *p; - int has_symlinks = 0; - while (strlen (tmp_pathspec) && !has_symlinks) - { - LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", - tmp_pathspec)); - if (lstat (tmp_pathspec, &s) == 0) - { - if (S_ISLNK (s.st_mode) != 0) - { - has_symlinks = 1; - break; - } - - /* search backwards for last DIR_SEPARATOR */ - p = tmp_pathspec + strlen (tmp_pathspec) - 1; - while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) - p--; - if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) - { - /* no more DIR_SEPARATORS left */ - break; - } - *p = '\0'; - } - else - { - char *errstr = strerror (errno); - lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); - } - } - XFREE (tmp_pathspec); - - if (!has_symlinks) - { - return xstrdup (pathspec); - } - - tmp_pathspec = realpath (pathspec, buf); - if (tmp_pathspec == 0) - { - lt_fatal ("Could not follow symlinks for %s", pathspec); - } - return xstrdup (tmp_pathspec); -#endif -} - -char * -strendzap (char *str, const char *pat) -{ - size_t len, patlen; - - assert (str != NULL); - assert (pat != NULL); - - len = strlen (str); - patlen = strlen (pat); - - if (patlen <= len) - { - str += len - patlen; - if (strcmp (str, pat) == 0) - *str = '\0'; - } - return str; -} - -static void -lt_error_core (int exit_status, const char *mode, - const char *message, va_list ap) -{ - fprintf (stderr, "%s: %s: ", program_name, mode); - vfprintf (stderr, message, ap); - fprintf (stderr, ".\n"); - - if (exit_status >= 0) - exit (exit_status); -} - -void -lt_fatal (const char *message, ...) -{ - va_list ap; - va_start (ap, message); - lt_error_core (EXIT_FAILURE, "FATAL", message, ap); - va_end (ap); -} - -void -lt_setenv (const char *name, const char *value) -{ - LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", - (name ? name : "<NULL>"), - (value ? value : "<NULL>"))); - { -#ifdef HAVE_SETENV - /* always make a copy, for consistency with !HAVE_SETENV */ - char *str = xstrdup (value); - setenv (name, str, 1); -#else - int len = strlen (name) + 1 + strlen (value) + 1; - char *str = XMALLOC (char, len); - sprintf (str, "%s=%s", name, value); - if (putenv (str) != EXIT_SUCCESS) - { - XFREE (str); - } -#endif - } -} - -char * -lt_extend_str (const char *orig_value, const char *add, int to_end) -{ - char *new_value; - if (orig_value && *orig_value) - { - int orig_value_len = strlen (orig_value); - int add_len = strlen (add); - new_value = XMALLOC (char, add_len + orig_value_len + 1); - if (to_end) - { - strcpy (new_value, orig_value); - strcpy (new_value + orig_value_len, add); - } - else - { - strcpy (new_value, add); - strcpy (new_value + add_len, orig_value); - } - } - else - { - new_value = xstrdup (add); - } - return new_value; -} - -int -lt_split_name_value (const char *arg, char** name, char** value) -{ - const char *p; - int len; - if (!arg || !*arg) - return 1; - - p = strchr (arg, (int)'='); - - if (!p) - return 1; - - *value = xstrdup (++p); - - len = strlen (arg) - strlen (*value); - *name = XMALLOC (char, len); - strncpy (*name, arg, len-1); - (*name)[len - 1] = '\0'; - - return 0; -} - -void -lt_opt_process_env_set (const char *arg) -{ - char *name = NULL; - char *value = NULL; - - if (lt_split_name_value (arg, &name, &value) != 0) - { - XFREE (name); - XFREE (value); - lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg); - } - - lt_setenv (name, value); - XFREE (name); - XFREE (value); -} - -void -lt_opt_process_env_prepend (const char *arg) -{ - char *name = NULL; - char *value = NULL; - char *new_value = NULL; - - if (lt_split_name_value (arg, &name, &value) != 0) - { - XFREE (name); - XFREE (value); - lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg); - } - - new_value = lt_extend_str (getenv (name), value, 0); - lt_setenv (name, new_value); - XFREE (new_value); - XFREE (name); - XFREE (value); -} - -void -lt_opt_process_env_append (const char *arg) -{ - char *name = NULL; - char *value = NULL; - char *new_value = NULL; - - if (lt_split_name_value (arg, &name, &value) != 0) - { - XFREE (name); - XFREE (value); - lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg); - } - - new_value = lt_extend_str (getenv (name), value, 1); - lt_setenv (name, new_value); - XFREE (new_value); - XFREE (name); - XFREE (value); -} - -void -lt_update_exe_path (const char *name, const char *value) -{ - LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n", - (name ? name : "<NULL>"), - (value ? value : "<NULL>"))); - - if (name && *name && value && *value) - { - char *new_value = lt_extend_str (getenv (name), value, 0); - /* some systems can't cope with a ':'-terminated path #' */ - int len = strlen (new_value); - while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) - { - new_value[len-1] = '\0'; - } - lt_setenv (name, new_value); - XFREE (new_value); - } -} - -void -lt_update_lib_path (const char *name, const char *value) -{ - LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n", - (name ? name : "<NULL>"), - (value ? value : "<NULL>"))); - - if (name && *name && value && *value) - { - char *new_value = lt_extend_str (getenv (name), value, 0); - lt_setenv (name, new_value); - XFREE (new_value); - } -} - - -EOF -} -# end: func_emit_cwrapperexe_src - -# func_mode_link arg... -func_mode_link () -{ - $opt_debug - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - # It is impossible to link a dll without this setting, and - # we shouldn't force the makefile maintainer to figure out - # which system we are compiling for in order to pass an extra - # flag for every libtool invocation. - # allow_undefined=no - - # FIXME: Unfortunately, there are problems with the above when trying - # to make a dll which has undefined symbols, in which case not - # even a static library is built. For now, we need to specify - # -no-undefined on the libtool link line when we can be certain - # that all symbols are satisfied, otherwise we get a static library. - allow_undefined=yes - ;; - *) - allow_undefined=yes - ;; - esac - libtool_args=$nonopt - base_compile="$nonopt $@" - compile_command=$nonopt - finalize_command=$nonopt - - compile_rpath= - finalize_rpath= - compile_shlibpath= - finalize_shlibpath= - convenience= - old_convenience= - deplibs= - old_deplibs= - compiler_flags= - linker_flags= - dllsearchpath= - lib_search_path=`pwd` - inst_prefix_dir= - new_inherited_linker_flags= - - avoid_version=no - dlfiles= - dlprefiles= - dlself=no - export_dynamic=no - export_symbols= - export_symbols_regex= - generated= - libobjs= - ltlibs= - module=no - no_install=no - objs= - non_pic_objects= - precious_files_regex= - prefer_static_libs=no - preload=no - prev= - prevarg= - release= - rpath= - xrpath= - perm_rpath= - temp_rpath= - thread_safe=no - vinfo= - vinfo_number=no - weak_libs= - single_module="${wl}-single_module" - func_infer_tag $base_compile - - # We need to know -static, to get the right output filenames. - for arg - do - case $arg in - -shared) - test "$build_libtool_libs" != yes && \ - func_fatal_configuration "can not build a shared library" - build_old_libs=no - break - ;; - -all-static | -static | -static-libtool-libs) - case $arg in - -all-static) - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then - func_warning "complete static linking is impossible in this configuration" - fi - if test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - ;; - -static) - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=built - ;; - -static-libtool-libs) - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - ;; - esac - build_libtool_libs=no - build_old_libs=yes - break - ;; - esac - done - - # See if our shared archives depend on static archives. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes - - # Go through the arguments, transforming them on the way. - while test "$#" -gt 0; do - arg="$1" - shift - func_quote_for_eval "$arg" - qarg=$func_quote_for_eval_unquoted_result - func_append libtool_args " $func_quote_for_eval_result" - - # If the previous option needs an argument, assign it. - if test -n "$prev"; then - case $prev in - output) - func_append compile_command " @OUTPUT@" - func_append finalize_command " @OUTPUT@" - ;; - esac - - case $prev in - dlfiles|dlprefiles) - if test "$preload" = no; then - # Add the symbol object into the linking commands. - func_append compile_command " @SYMFILE@" - func_append finalize_command " @SYMFILE@" - preload=yes - fi - case $arg in - *.la | *.lo) ;; # We handle these cases below. - force) - if test "$dlself" = no; then - dlself=needless - export_dynamic=yes - fi - prev= - continue - ;; - self) - if test "$prev" = dlprefiles; then - dlself=yes - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then - dlself=yes - else - dlself=needless - export_dynamic=yes - fi - prev= - continue - ;; - *) - if test "$prev" = dlfiles; then - dlfiles="$dlfiles $arg" - else - dlprefiles="$dlprefiles $arg" - fi - prev= - continue - ;; - esac - ;; - expsyms) - export_symbols="$arg" - test -f "$arg" \ - || func_fatal_error "symbol file \`$arg' does not exist" - prev= - continue - ;; - expsyms_regex) - export_symbols_regex="$arg" - prev= - continue - ;; - framework) - case $host in - *-*-darwin*) - case "$deplibs " in - *" $qarg.ltframework "*) ;; - *) deplibs="$deplibs $qarg.ltframework" # this is fixed later - ;; - esac - ;; - esac - prev= - continue - ;; - inst_prefix) - inst_prefix_dir="$arg" - prev= - continue - ;; - objectlist) - if test -f "$arg"; then - save_arg=$arg - moreargs= - for fil in `cat "$save_arg"` - do -# moreargs="$moreargs $fil" - arg=$fil - # A libtool-controlled object. - - # Check to see that this really is a libtool object. - if func_lalib_unsafe_p "$arg"; then - pic_object= - non_pic_object= - - # Read the .lo file - func_source "$arg" - - if test -z "$pic_object" || - test -z "$non_pic_object" || - test "$pic_object" = none && - test "$non_pic_object" = none; then - func_fatal_error "cannot find name of object for \`$arg'" - fi - - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir="$func_dirname_result" - - if test "$pic_object" != none; then - # Prepend the subdirectory the object is found in. - pic_object="$xdir$pic_object" - - if test "$prev" = dlfiles; then - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then - dlfiles="$dlfiles $pic_object" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi - - # CHECK ME: I think I busted this. -Ossama - if test "$prev" = dlprefiles; then - # Preload the old-style object. - dlprefiles="$dlprefiles $pic_object" - prev= - fi - - # A PIC object. - func_append libobjs " $pic_object" - arg="$pic_object" - fi - - # Non-PIC object. - if test "$non_pic_object" != none; then - # Prepend the subdirectory the object is found in. - non_pic_object="$xdir$non_pic_object" - - # A standard non-PIC object - func_append non_pic_objects " $non_pic_object" - if test -z "$pic_object" || test "$pic_object" = none ; then - arg="$non_pic_object" - fi - else - # If the PIC object exists, use it instead. - # $xdir was prepended to $pic_object above. - non_pic_object="$pic_object" - func_append non_pic_objects " $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if $opt_dry_run; then - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir="$func_dirname_result" - - func_lo2o "$arg" - pic_object=$xdir$objdir/$func_lo2o_result - non_pic_object=$xdir$func_lo2o_result - func_append libobjs " $pic_object" - func_append non_pic_objects " $non_pic_object" - else - func_fatal_error "\`$arg' is not a valid libtool object" - fi - fi - done - else - func_fatal_error "link input file \`$arg' does not exist" - fi - arg=$save_arg - prev= - continue - ;; - precious_regex) - precious_files_regex="$arg" - prev= - continue - ;; - release) - release="-$arg" - prev= - continue - ;; - rpath | xrpath) - # We need an absolute path. - case $arg in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - func_fatal_error "only absolute run-paths are allowed" - ;; - esac - if test "$prev" = rpath; then - case "$rpath " in - *" $arg "*) ;; - *) rpath="$rpath $arg" ;; - esac - else - case "$xrpath " in - *" $arg "*) ;; - *) xrpath="$xrpath $arg" ;; - esac - fi - prev= - continue - ;; - shrext) - shrext_cmds="$arg" - prev= - continue - ;; - weak) - weak_libs="$weak_libs $arg" - prev= - continue - ;; - xcclinker) - linker_flags="$linker_flags $qarg" - compiler_flags="$compiler_flags $qarg" - prev= - func_append compile_command " $qarg" - func_append finalize_command " $qarg" - continue - ;; - xcompiler) - compiler_flags="$compiler_flags $qarg" - prev= - func_append compile_command " $qarg" - func_append finalize_command " $qarg" - continue - ;; - xlinker) - linker_flags="$linker_flags $qarg" - compiler_flags="$compiler_flags $wl$qarg" - prev= - func_append compile_command " $wl$qarg" - func_append finalize_command " $wl$qarg" - continue - ;; - *) - eval "$prev=\"\$arg\"" - prev= - continue - ;; - esac - fi # test -n "$prev" - - prevarg="$arg" - - case $arg in - -all-static) - if test -n "$link_static_flag"; then - # See comment for -static flag below, for more details. - func_append compile_command " $link_static_flag" - func_append finalize_command " $link_static_flag" - fi - continue - ;; - - -allow-undefined) - # FIXME: remove this flag sometime in the future. - func_fatal_error "\`-allow-undefined' must not be used because it is the default" - ;; - - -avoid-version) - avoid_version=yes - continue - ;; - - -dlopen) - prev=dlfiles - continue - ;; - - -dlpreopen) - prev=dlprefiles - continue - ;; - - -export-dynamic) - export_dynamic=yes - continue - ;; - - -export-symbols | -export-symbols-regex) - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then - func_fatal_error "more than one -exported-symbols argument is not allowed" - fi - if test "X$arg" = "X-export-symbols"; then - prev=expsyms - else - prev=expsyms_regex - fi - continue - ;; - - -framework) - prev=framework - continue - ;; - - -inst-prefix-dir) - prev=inst_prefix - continue - ;; - - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* - # so, if we see these flags be careful not to treat them like -L - -L[A-Z][A-Z]*:*) - case $with_gcc/$host in - no/*-*-irix* | /*-*-irix*) - func_append compile_command " $arg" - func_append finalize_command " $arg" - ;; - esac - continue - ;; - - -L*) - func_stripname '-L' '' "$arg" - dir=$func_stripname_result - if test -z "$dir"; then - if test "$#" -gt 0; then - func_fatal_error "require no space between \`-L' and \`$1'" - else - func_fatal_error "need path for \`-L' option" - fi - fi - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - absdir=`cd "$dir" && pwd` - test -z "$absdir" && \ - func_fatal_error "cannot determine absolute directory name of \`$dir'" - dir="$absdir" - ;; - esac - case "$deplibs " in - *" -L$dir "*) ;; - *) - deplibs="$deplibs -L$dir" - lib_search_path="$lib_search_path $dir" - ;; - esac - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$dir:"*) ;; - ::) dllsearchpath=$dir;; - *) dllsearchpath="$dllsearchpath:$dir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - ::) dllsearchpath=$testbindir;; - *) dllsearchpath="$dllsearchpath:$testbindir";; - esac - ;; - esac - continue - ;; - - -l*) - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) - # These systems don't actually have a C or math library (as such) - continue - ;; - *-*-os2*) - # These systems don't actually have a C library (as such) - test "X$arg" = "X-lc" && continue - ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc due to us having libc/libc_r. - test "X$arg" = "X-lc" && continue - ;; - *-*-rhapsody* | *-*-darwin1.[012]) - # Rhapsody C and math libraries are in the System framework - deplibs="$deplibs System.ltframework" - continue - ;; - *-*-sco3.2v5* | *-*-sco5v6*) - # Causes problems with __ctype - test "X$arg" = "X-lc" && continue - ;; - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) - # Compiler inserts libc in the correct place for threads to work - test "X$arg" = "X-lc" && continue - ;; - esac - elif test "X$arg" = "X-lc_r"; then - case $host in - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc_r directly, use -pthread flag. - continue - ;; - esac - fi - deplibs="$deplibs $arg" - continue - ;; - - -module) - module=yes - continue - ;; - - # Tru64 UNIX uses -model [arg] to determine the layout of C++ - # classes, name mangling, and exception handling. - # Darwin uses the -arch flag to determine output architecture. - -model|-arch|-isysroot) - compiler_flags="$compiler_flags $arg" - func_append compile_command " $arg" - func_append finalize_command " $arg" - prev=xcompiler - continue - ;; - - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) - compiler_flags="$compiler_flags $arg" - func_append compile_command " $arg" - func_append finalize_command " $arg" - case "$new_inherited_linker_flags " in - *" $arg "*) ;; - * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; - esac - continue - ;; - - -multi_module) - single_module="${wl}-multi_module" - continue - ;; - - -no-fast-install) - fast_install=no - continue - ;; - - -no-install) - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) - # The PATH hackery in wrapper scripts is required on Windows - # and Darwin in order for the loader to find any dlls it needs. - func_warning "\`-no-install' is ignored for $host" - func_warning "assuming \`-no-fast-install' instead" - fast_install=no - ;; - *) no_install=yes ;; - esac - continue - ;; - - -no-undefined) - allow_undefined=no - continue - ;; - - -objectlist) - prev=objectlist - continue - ;; - - -o) prev=output ;; - - -precious-files-regex) - prev=precious_regex - continue - ;; - - -release) - prev=release - continue - ;; - - -rpath) - prev=rpath - continue - ;; - - -R) - prev=xrpath - continue - ;; - - -R*) - func_stripname '-R' '' "$arg" - dir=$func_stripname_result - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - func_fatal_error "only absolute run-paths are allowed" - ;; - esac - case "$xrpath " in - *" $dir "*) ;; - *) xrpath="$xrpath $dir" ;; - esac - continue - ;; - - -shared) - # The effects of -shared are defined in a previous loop. - continue - ;; - - -shrext) - prev=shrext - continue - ;; - - -static | -static-libtool-libs) - # The effects of -static are defined in a previous loop. - # We used to do the same as -all-static on platforms that - # didn't have a PIC flag, but the assumption that the effects - # would be equivalent was wrong. It would break on at least - # Digital Unix and AIX. - continue - ;; - - -thread-safe) - thread_safe=yes - continue - ;; - - -version-info) - prev=vinfo - continue - ;; - - -version-number) - prev=vinfo - vinfo_number=yes - continue - ;; - - -weak) - prev=weak - continue - ;; - - -Wc,*) - func_stripname '-Wc,' '' "$arg" - args=$func_stripname_result - arg= - save_ifs="$IFS"; IFS=',' - for flag in $args; do - IFS="$save_ifs" - func_quote_for_eval "$flag" - arg="$arg $wl$func_quote_for_eval_result" - compiler_flags="$compiler_flags $func_quote_for_eval_result" - done - IFS="$save_ifs" - func_stripname ' ' '' "$arg" - arg=$func_stripname_result - ;; - - -Wl,*) - func_stripname '-Wl,' '' "$arg" - args=$func_stripname_result - arg= - save_ifs="$IFS"; IFS=',' - for flag in $args; do - IFS="$save_ifs" - func_quote_for_eval "$flag" - arg="$arg $wl$func_quote_for_eval_result" - compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" - linker_flags="$linker_flags $func_quote_for_eval_result" - done - IFS="$save_ifs" - func_stripname ' ' '' "$arg" - arg=$func_stripname_result - ;; - - -Xcompiler) - prev=xcompiler - continue - ;; - - -Xlinker) - prev=xlinker - continue - ;; - - -XCClinker) - prev=xcclinker - continue - ;; - - # -msg_* for osf cc - -msg_*) - func_quote_for_eval "$arg" - arg="$func_quote_for_eval_result" - ;; - - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler - # -r[0-9][0-9]* specifies the processor on the SGI compiler - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler - # +DA*, +DD* enable 64-bit mode on the HP compiler - # -q* pass through compiler args for the IBM compiler - # -m*, -t[45]*, -txscale* pass through architecture-specific - # compiler args for GCC - # -F/path gives path to uninstalled frameworks, gcc on darwin - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC - # @file GCC response files - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) - func_quote_for_eval "$arg" - arg="$func_quote_for_eval_result" - func_append compile_command " $arg" - func_append finalize_command " $arg" - compiler_flags="$compiler_flags $arg" - continue - ;; - - # Some other compiler flag. - -* | +*) - func_quote_for_eval "$arg" - arg="$func_quote_for_eval_result" - ;; - - *.$objext) - # A standard object. - objs="$objs $arg" - ;; - - *.lo) - # A libtool-controlled object. - - # Check to see that this really is a libtool object. - if func_lalib_unsafe_p "$arg"; then - pic_object= - non_pic_object= - - # Read the .lo file - func_source "$arg" - - if test -z "$pic_object" || - test -z "$non_pic_object" || - test "$pic_object" = none && - test "$non_pic_object" = none; then - func_fatal_error "cannot find name of object for \`$arg'" - fi - - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir="$func_dirname_result" - - if test "$pic_object" != none; then - # Prepend the subdirectory the object is found in. - pic_object="$xdir$pic_object" - - if test "$prev" = dlfiles; then - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then - dlfiles="$dlfiles $pic_object" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi - - # CHECK ME: I think I busted this. -Ossama - if test "$prev" = dlprefiles; then - # Preload the old-style object. - dlprefiles="$dlprefiles $pic_object" - prev= - fi - - # A PIC object. - func_append libobjs " $pic_object" - arg="$pic_object" - fi - - # Non-PIC object. - if test "$non_pic_object" != none; then - # Prepend the subdirectory the object is found in. - non_pic_object="$xdir$non_pic_object" - - # A standard non-PIC object - func_append non_pic_objects " $non_pic_object" - if test -z "$pic_object" || test "$pic_object" = none ; then - arg="$non_pic_object" - fi - else - # If the PIC object exists, use it instead. - # $xdir was prepended to $pic_object above. - non_pic_object="$pic_object" - func_append non_pic_objects " $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if $opt_dry_run; then - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir="$func_dirname_result" - - func_lo2o "$arg" - pic_object=$xdir$objdir/$func_lo2o_result - non_pic_object=$xdir$func_lo2o_result - func_append libobjs " $pic_object" - func_append non_pic_objects " $non_pic_object" - else - func_fatal_error "\`$arg' is not a valid libtool object" - fi - fi - ;; - - *.$libext) - # An archive. - deplibs="$deplibs $arg" - old_deplibs="$old_deplibs $arg" - continue - ;; - - *.la) - # A libtool-controlled library. - - if test "$prev" = dlfiles; then - # This library was specified with -dlopen. - dlfiles="$dlfiles $arg" - prev= - elif test "$prev" = dlprefiles; then - # The library was specified with -dlpreopen. - dlprefiles="$dlprefiles $arg" - prev= - else - deplibs="$deplibs $arg" - fi - continue - ;; - - # Some other compiler argument. - *) - # Unknown arguments in both finalize_command and compile_command need - # to be aesthetically quoted because they are evaled later. - func_quote_for_eval "$arg" - arg="$func_quote_for_eval_result" - ;; - esac # arg - - # Now actually substitute the argument into the commands. - if test -n "$arg"; then - func_append compile_command " $arg" - func_append finalize_command " $arg" - fi - done # argument parsing loop - - test -n "$prev" && \ - func_fatal_help "the \`$prevarg' option requires an argument" - - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then - eval arg=\"$export_dynamic_flag_spec\" - func_append compile_command " $arg" - func_append finalize_command " $arg" - fi - - oldlibs= - # calculate the name of the file, without its directory - func_basename "$output" - outputname="$func_basename_result" - libobjs_save="$libobjs" - - if test -n "$shlibpath_var"; then - # get the directories listed in $shlibpath_var - eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` - else - shlib_search_path= - fi - eval sys_lib_search_path=\"$sys_lib_search_path_spec\" - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" - - func_dirname "$output" "/" "" - output_objdir="$func_dirname_result$objdir" - # Create the object directory. - func_mkdir_p "$output_objdir" - - # Determine the type of output - case $output in - "") - func_fatal_help "you must specify an output file" - ;; - *.$libext) linkmode=oldlib ;; - *.lo | *.$objext) linkmode=obj ;; - *.la) linkmode=lib ;; - *) linkmode=prog ;; # Anything else should be a program. - esac - - specialdeplibs= - - libs= - # Find all interdependent deplibs by searching for libraries - # that are linked more than once (e.g. -la -lb -la) - for deplib in $deplibs; do - if $opt_duplicate_deps ; then - case "$libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - libs="$libs $deplib" - done - - if test "$linkmode" = lib; then - libs="$predeps $libs $compiler_lib_search_path $postdeps" - - # Compute libraries that are listed more than once in $predeps - # $postdeps and mark them as special (i.e., whose duplicates are - # not to be eliminated). - pre_post_deps= - if $opt_duplicate_compiler_generated_deps; then - for pre_post_dep in $predeps $postdeps; do - case "$pre_post_deps " in - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; - esac - pre_post_deps="$pre_post_deps $pre_post_dep" - done - fi - pre_post_deps= - fi - - deplibs= - newdependency_libs= - newlib_search_path= - need_relink=no # whether we're linking any uninstalled libtool libraries - notinst_deplibs= # not-installed libtool libraries - notinst_path= # paths that contain not-installed libtool libraries - - case $linkmode in - lib) - passes="conv dlpreopen link" - for file in $dlfiles $dlprefiles; do - case $file in - *.la) ;; - *) - func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" - ;; - esac - done - ;; - prog) - compile_deplibs= - finalize_deplibs= - alldeplibs=no - newdlfiles= - newdlprefiles= - passes="conv scan dlopen dlpreopen link" - ;; - *) passes="conv" - ;; - esac - - for pass in $passes; do - # The preopen pass in lib mode reverses $deplibs; put it back here - # so that -L comes before libs that need it for instance... - if test "$linkmode,$pass" = "lib,link"; then - ## FIXME: Find the place where the list is rebuilt in the wrong - ## order, and fix it there properly - tmp_deplibs= - for deplib in $deplibs; do - tmp_deplibs="$deplib $tmp_deplibs" - done - deplibs="$tmp_deplibs" - fi - - if test "$linkmode,$pass" = "lib,link" || - test "$linkmode,$pass" = "prog,scan"; then - libs="$deplibs" - deplibs= - fi - if test "$linkmode" = prog; then - case $pass in - dlopen) libs="$dlfiles" ;; - dlpreopen) libs="$dlprefiles" ;; - link) - libs="$deplibs %DEPLIBS%" - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" - ;; - esac - fi - if test "$linkmode,$pass" = "lib,dlpreopen"; then - # Collect and forward deplibs of preopened libtool libs - for lib in $dlprefiles; do - # Ignore non-libtool-libs - dependency_libs= - case $lib in - *.la) func_source "$lib" ;; - esac - - # Collect preopened libtool deplibs, except any this library - # has declared as weak libs - for deplib in $dependency_libs; do - deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` - case " $weak_libs " in - *" $deplib_base "*) ;; - *) deplibs="$deplibs $deplib" ;; - esac - done - done - libs="$dlprefiles" - fi - if test "$pass" = dlopen; then - # Collect dlpreopened libraries - save_deplibs="$deplibs" - deplibs= - fi - - for deplib in $libs; do - lib= - found=no - case $deplib in - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - compiler_flags="$compiler_flags $deplib" - if test "$linkmode" = lib ; then - case "$new_inherited_linker_flags " in - *" $deplib "*) ;; - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; - esac - fi - fi - continue - ;; - -l*) - if test "$linkmode" != lib && test "$linkmode" != prog; then - func_warning "\`-l' is ignored for archives/objects" - continue - fi - func_stripname '-l' '' "$deplib" - name=$func_stripname_result - if test "$linkmode" = lib; then - searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" - else - searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" - fi - for searchdir in $searchdirs; do - for search_ext in .la $std_shrext .so .a; do - # Search the libtool library - lib="$searchdir/lib${name}${search_ext}" - if test -f "$lib"; then - if test "$search_ext" = ".la"; then - found=yes - else - found=no - fi - break 2 - fi - done - done - if test "$found" != yes; then - # deplib doesn't seem to be a libtool library - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" - fi - continue - else # deplib is a libtool library - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, - # We need to do some special things here, and not later. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - case " $predeps $postdeps " in - *" $deplib "*) - if func_lalib_p "$lib"; then - library_names= - old_library= - func_source "$lib" - for l in $old_library $library_names; do - ll="$l" - done - if test "X$ll" = "X$old_library" ; then # only static version available - found=no - func_dirname "$lib" "" "." - ladir="$func_dirname_result" - lib=$ladir/$old_library - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" - fi - continue - fi - fi - ;; - *) ;; - esac - fi - fi - ;; # -l - *.ltframework) - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - if test "$linkmode" = lib ; then - case "$new_inherited_linker_flags " in - *" $deplib "*) ;; - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; - esac - fi - fi - continue - ;; - -L*) - case $linkmode in - lib) - deplibs="$deplib $deplibs" - test "$pass" = conv && continue - newdependency_libs="$deplib $newdependency_libs" - func_stripname '-L' '' "$deplib" - newlib_search_path="$newlib_search_path $func_stripname_result" - ;; - prog) - if test "$pass" = conv; then - deplibs="$deplib $deplibs" - continue - fi - if test "$pass" = scan; then - deplibs="$deplib $deplibs" - else - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - fi - func_stripname '-L' '' "$deplib" - newlib_search_path="$newlib_search_path $func_stripname_result" - ;; - *) - func_warning "\`-L' is ignored for archives/objects" - ;; - esac # linkmode - continue - ;; # -L - -R*) - if test "$pass" = link; then - func_stripname '-R' '' "$deplib" - dir=$func_stripname_result - # Make sure the xrpath contains only unique directories. - case "$xrpath " in - *" $dir "*) ;; - *) xrpath="$xrpath $dir" ;; - esac - fi - deplibs="$deplib $deplibs" - continue - ;; - *.la) lib="$deplib" ;; - *.$libext) - if test "$pass" = conv; then - deplibs="$deplib $deplibs" - continue - fi - case $linkmode in - lib) - # Linking convenience modules into shared libraries is allowed, - # but linking other static libraries is non-portable. - case " $dlpreconveniencelibs " in - *" $deplib "*) ;; - *) - valid_a_lib=no - case $deplibs_check_method in - match_pattern*) - set dummy $deplibs_check_method; shift - match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` - if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ - | $EGREP "$match_pattern_regex" > /dev/null; then - valid_a_lib=yes - fi - ;; - pass_all) - valid_a_lib=yes - ;; - esac - if test "$valid_a_lib" != yes; then - $ECHO - $ECHO "*** Warning: Trying to link with static lib archive $deplib." - $ECHO "*** I have the capability to make that library automatically link in when" - $ECHO "*** you link to this library. But I can only do this if you have a" - $ECHO "*** shared version of the library, which you do not appear to have" - $ECHO "*** because the file extensions .$libext of this argument makes me believe" - $ECHO "*** that it is just a static archive that I should not use here." - else - $ECHO - $ECHO "*** Warning: Linking the shared library $output against the" - $ECHO "*** static library $deplib is not portable!" - deplibs="$deplib $deplibs" - fi - ;; - esac - continue - ;; - prog) - if test "$pass" != link; then - deplibs="$deplib $deplibs" - else - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - fi - continue - ;; - esac # linkmode - ;; # *.$libext - *.lo | *.$objext) - if test "$pass" = conv; then - deplibs="$deplib $deplibs" - elif test "$linkmode" = prog; then - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then - # If there is no dlopen support or we're linking statically, - # we need to preload. - newdlprefiles="$newdlprefiles $deplib" - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - newdlfiles="$newdlfiles $deplib" - fi - fi - continue - ;; - %DEPLIBS%) - alldeplibs=yes - continue - ;; - esac # case $deplib - - if test "$found" = yes || test -f "$lib"; then : - else - func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" - fi - - # Check to see that this really is a libtool archive. - func_lalib_unsafe_p "$lib" \ - || func_fatal_error "\`$lib' is not a valid libtool archive" - - func_dirname "$lib" "" "." - ladir="$func_dirname_result" - - dlname= - dlopen= - dlpreopen= - libdir= - library_names= - old_library= - inherited_linker_flags= - # If the library was installed with an old release of libtool, - # it will not redefine variables installed, or shouldnotlink - installed=yes - shouldnotlink=no - avoidtemprpath= - - - # Read the .la file - func_source "$lib" - - # Convert "-framework foo" to "foo.ltframework" - if test -n "$inherited_linker_flags"; then - tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` - for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do - case " $new_inherited_linker_flags " in - *" $tmp_inherited_linker_flag "*) ;; - *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; - esac - done - fi - dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - if test "$linkmode,$pass" = "lib,link" || - test "$linkmode,$pass" = "prog,scan" || - { test "$linkmode" != prog && test "$linkmode" != lib; }; then - test -n "$dlopen" && dlfiles="$dlfiles $dlopen" - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" - fi - - if test "$pass" = conv; then - # Only check for convenience libraries - deplibs="$lib $deplibs" - if test -z "$libdir"; then - if test -z "$old_library"; then - func_fatal_error "cannot find name of link library for \`$lib'" - fi - # It is a libtool convenience library, so add in its objects. - convenience="$convenience $ladir/$objdir/$old_library" - old_convenience="$old_convenience $ladir/$objdir/$old_library" - tmp_libs= - for deplib in $dependency_libs; do - deplibs="$deplib $deplibs" - if $opt_duplicate_deps ; then - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - tmp_libs="$tmp_libs $deplib" - done - elif test "$linkmode" != prog && test "$linkmode" != lib; then - func_fatal_error "\`$lib' is not a convenience library" - fi - continue - fi # $pass = conv - - - # Get the name of the library we link against. - linklib= - for l in $old_library $library_names; do - linklib="$l" - done - if test -z "$linklib"; then - func_fatal_error "cannot find name of link library for \`$lib'" - fi - - # This library was specified with -dlopen. - if test "$pass" = dlopen; then - if test -z "$libdir"; then - func_fatal_error "cannot -dlopen a convenience library: \`$lib'" - fi - if test -z "$dlname" || - test "$dlopen_support" != yes || - test "$build_libtool_libs" = no; then - # If there is no dlname, no dlopen support or we're linking - # statically, we need to preload. We also need to preload any - # dependent libraries so libltdl's deplib preloader doesn't - # bomb out in the load deplibs phase. - dlprefiles="$dlprefiles $lib $dependency_libs" - else - newdlfiles="$newdlfiles $lib" - fi - continue - fi # $pass = dlopen - - # We need an absolute path. - case $ladir in - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; - *) - abs_ladir=`cd "$ladir" && pwd` - if test -z "$abs_ladir"; then - func_warning "cannot determine absolute directory name of \`$ladir'" - func_warning "passing it literally to the linker, although it might fail" - abs_ladir="$ladir" - fi - ;; - esac - func_basename "$lib" - laname="$func_basename_result" - - # Find the relevant object directory and library name. - if test "X$installed" = Xyes; then - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then - func_warning "library \`$lib' was moved." - dir="$ladir" - absdir="$abs_ladir" - libdir="$abs_ladir" - else - dir="$libdir" - absdir="$libdir" - fi - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes - else - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then - dir="$ladir" - absdir="$abs_ladir" - # Remove this search path later - notinst_path="$notinst_path $abs_ladir" - else - dir="$ladir/$objdir" - absdir="$abs_ladir/$objdir" - # Remove this search path later - notinst_path="$notinst_path $abs_ladir" - fi - fi # $installed = yes - func_stripname 'lib' '.la' "$laname" - name=$func_stripname_result - - # This library was specified with -dlpreopen. - if test "$pass" = dlpreopen; then - if test -z "$libdir" && test "$linkmode" = prog; then - func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" - fi - # Prefer using a static library (so that no silly _DYNAMIC symbols - # are required to link). - if test -n "$old_library"; then - newdlprefiles="$newdlprefiles $dir/$old_library" - # Keep a list of preopened convenience libraries to check - # that they are being used correctly in the link pass. - test -z "$libdir" && \ - dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" - # Otherwise, use the dlname, so that lt_dlopen finds it. - elif test -n "$dlname"; then - newdlprefiles="$newdlprefiles $dir/$dlname" - else - newdlprefiles="$newdlprefiles $dir/$linklib" - fi - fi # $pass = dlpreopen - - if test -z "$libdir"; then - # Link the convenience library - if test "$linkmode" = lib; then - deplibs="$dir/$old_library $deplibs" - elif test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$dir/$old_library $compile_deplibs" - finalize_deplibs="$dir/$old_library $finalize_deplibs" - else - deplibs="$lib $deplibs" # used for prog,scan pass - fi - continue - fi - - - if test "$linkmode" = prog && test "$pass" != link; then - newlib_search_path="$newlib_search_path $ladir" - deplibs="$lib $deplibs" - - linkalldeplibs=no - if test "$link_all_deplibs" != no || test -z "$library_names" || - test "$build_libtool_libs" = no; then - linkalldeplibs=yes - fi - - tmp_libs= - for deplib in $dependency_libs; do - case $deplib in - -L*) func_stripname '-L' '' "$deplib" - newlib_search_path="$newlib_search_path $func_stripname_result" - ;; - esac - # Need to link against all dependency_libs? - if test "$linkalldeplibs" = yes; then - deplibs="$deplib $deplibs" - else - # Need to hardcode shared library paths - # or/and link against static libraries - newdependency_libs="$deplib $newdependency_libs" - fi - if $opt_duplicate_deps ; then - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - tmp_libs="$tmp_libs $deplib" - done # for deplib - continue - fi # $linkmode = prog... - - if test "$linkmode,$pass" = "prog,link"; then - if test -n "$library_names" && - { { test "$prefer_static_libs" = no || - test "$prefer_static_libs,$installed" = "built,yes"; } || - test -z "$old_library"; }; then - # We need to hardcode the library path - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then - # Make sure the rpath contains only unique directories. - case "$temp_rpath:" in - *"$absdir:"*) ;; - *) temp_rpath="$temp_rpath$absdir:" ;; - esac - fi - - # Hardcode the library path. - # Skip directories that are in the system default run-time - # search path. - case " $sys_lib_dlsearch_path " in - *" $absdir "*) ;; - *) - case "$compile_rpath " in - *" $absdir "*) ;; - *) compile_rpath="$compile_rpath $absdir" - esac - ;; - esac - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" - esac - ;; - esac - fi # $linkmode,$pass = prog,link... - - if test "$alldeplibs" = yes && - { test "$deplibs_check_method" = pass_all || - { test "$build_libtool_libs" = yes && - test -n "$library_names"; }; }; then - # We only need to search for static libraries - continue - fi - fi - - link_static=no # Whether the deplib will be linked statically - use_static_libs=$prefer_static_libs - if test "$use_static_libs" = built && test "$installed" = yes; then - use_static_libs=no - fi - if test -n "$library_names" && - { test "$use_static_libs" = no || test -z "$old_library"; }; then - case $host in - *cygwin* | *mingw* | *cegcc*) - # No point in relinking DLLs because paths are not encoded - notinst_deplibs="$notinst_deplibs $lib" - need_relink=no - ;; - *) - if test "$installed" = no; then - notinst_deplibs="$notinst_deplibs $lib" - need_relink=yes - fi - ;; - esac - # This is a shared library - - # Warn about portability, can't link against -module's on some - # systems (darwin). Don't bleat about dlopened modules though! - dlopenmodule="" - for dlpremoduletest in $dlprefiles; do - if test "X$dlpremoduletest" = "X$lib"; then - dlopenmodule="$dlpremoduletest" - break - fi - done - if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then - $ECHO - if test "$linkmode" = prog; then - $ECHO "*** Warning: Linking the executable $output against the loadable module" - else - $ECHO "*** Warning: Linking the shared library $output against the loadable module" - fi - $ECHO "*** $linklib is not portable!" - fi - if test "$linkmode" = lib && - test "$hardcode_into_libs" = yes; then - # Hardcode the library path. - # Skip directories that are in the system default run-time - # search path. - case " $sys_lib_dlsearch_path " in - *" $absdir "*) ;; - *) - case "$compile_rpath " in - *" $absdir "*) ;; - *) compile_rpath="$compile_rpath $absdir" - esac - ;; - esac - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" - esac - ;; - esac - fi - - if test -n "$old_archive_from_expsyms_cmds"; then - # figure out the soname - set dummy $library_names - shift - realname="$1" - shift - libname=`eval "\\$ECHO \"$libname_spec\""` - # use dlname if we got it. it's perfectly good, no? - if test -n "$dlname"; then - soname="$dlname" - elif test -n "$soname_spec"; then - # bleh windows - case $host in - *cygwin* | mingw* | *cegcc*) - func_arith $current - $age - major=$func_arith_result - versuffix="-$major" - ;; - esac - eval soname=\"$soname_spec\" - else - soname="$realname" - fi - - # Make a new name for the extract_expsyms_cmds to use - soroot="$soname" - func_basename "$soroot" - soname="$func_basename_result" - func_stripname 'lib' '.dll' "$soname" - newlib=libimp-$func_stripname_result.a - - # If the library has no export list, then create one now - if test -f "$output_objdir/$soname-def"; then : - else - func_verbose "extracting exported symbol list from \`$soname'" - func_execute_cmds "$extract_expsyms_cmds" 'exit $?' - fi - - # Create $newlib - if test -f "$output_objdir/$newlib"; then :; else - func_verbose "generating import library for \`$soname'" - func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' - fi - # make sure the library variables are pointing to the new library - dir=$output_objdir - linklib=$newlib - fi # test -n "$old_archive_from_expsyms_cmds" - - if test "$linkmode" = prog || test "$mode" != relink; then - add_shlibpath= - add_dir= - add= - lib_linked=yes - case $hardcode_action in - immediate | unsupported) - if test "$hardcode_direct" = no; then - add="$dir/$linklib" - case $host in - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; - *-*-sysv4*uw2*) add_dir="-L$dir" ;; - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ - *-*-unixware7*) add_dir="-L$dir" ;; - *-*-darwin* ) - # if the lib is a (non-dlopened) module then we can not - # link against it, someone is ignoring the earlier warnings - if /usr/bin/file -L $add 2> /dev/null | - $GREP ": [^:]* bundle" >/dev/null ; then - if test "X$dlopenmodule" != "X$lib"; then - $ECHO "*** Warning: lib $linklib is a module, not a shared library" - if test -z "$old_library" ; then - $ECHO - $ECHO "*** And there doesn't seem to be a static archive available" - $ECHO "*** The link will probably fail, sorry" - else - add="$dir/$old_library" - fi - elif test -n "$old_library"; then - add="$dir/$old_library" - fi - fi - esac - elif test "$hardcode_minus_L" = no; then - case $host in - *-*-sunos*) add_shlibpath="$dir" ;; - esac - add_dir="-L$dir" - add="-l$name" - elif test "$hardcode_shlibpath_var" = no; then - add_shlibpath="$dir" - add="-l$name" - else - lib_linked=no - fi - ;; - relink) - if test "$hardcode_direct" = yes && - test "$hardcode_direct_absolute" = no; then - add="$dir/$linklib" - elif test "$hardcode_minus_L" = yes; then - add_dir="-L$dir" - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case $libdir in - [\\/]*) - add_dir="$add_dir -L$inst_prefix_dir$libdir" - ;; - esac - fi - add="-l$name" - elif test "$hardcode_shlibpath_var" = yes; then - add_shlibpath="$dir" - add="-l$name" - else - lib_linked=no - fi - ;; - *) lib_linked=no ;; - esac - - if test "$lib_linked" != yes; then - func_fatal_configuration "unsupported hardcode properties" - fi - - if test -n "$add_shlibpath"; then - case :$compile_shlibpath: in - *":$add_shlibpath:"*) ;; - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; - esac - fi - if test "$linkmode" = prog; then - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" - test -n "$add" && compile_deplibs="$add $compile_deplibs" - else - test -n "$add_dir" && deplibs="$add_dir $deplibs" - test -n "$add" && deplibs="$add $deplibs" - if test "$hardcode_direct" != yes && - test "$hardcode_minus_L" != yes && - test "$hardcode_shlibpath_var" = yes; then - case :$finalize_shlibpath: in - *":$libdir:"*) ;; - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; - esac - fi - fi - fi - - if test "$linkmode" = prog || test "$mode" = relink; then - add_shlibpath= - add_dir= - add= - # Finalize command for both is simple: just hardcode it. - if test "$hardcode_direct" = yes && - test "$hardcode_direct_absolute" = no; then - add="$libdir/$linklib" - elif test "$hardcode_minus_L" = yes; then - add_dir="-L$libdir" - add="-l$name" - elif test "$hardcode_shlibpath_var" = yes; then - case :$finalize_shlibpath: in - *":$libdir:"*) ;; - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; - esac - add="-l$name" - elif test "$hardcode_automatic" = yes; then - if test -n "$inst_prefix_dir" && - test -f "$inst_prefix_dir$libdir/$linklib" ; then - add="$inst_prefix_dir$libdir/$linklib" - else - add="$libdir/$linklib" - fi - else - # We cannot seem to hardcode it, guess we'll fake it. - add_dir="-L$libdir" - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case $libdir in - [\\/]*) - add_dir="$add_dir -L$inst_prefix_dir$libdir" - ;; - esac - fi - add="-l$name" - fi - - if test "$linkmode" = prog; then - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" - test -n "$add" && finalize_deplibs="$add $finalize_deplibs" - else - test -n "$add_dir" && deplibs="$add_dir $deplibs" - test -n "$add" && deplibs="$add $deplibs" - fi - fi - elif test "$linkmode" = prog; then - # Here we assume that one of hardcode_direct or hardcode_minus_L - # is not unsupported. This is valid on all known static and - # shared platforms. - if test "$hardcode_direct" != unsupported; then - test -n "$old_library" && linklib="$old_library" - compile_deplibs="$dir/$linklib $compile_deplibs" - finalize_deplibs="$dir/$linklib $finalize_deplibs" - else - compile_deplibs="-l$name -L$dir $compile_deplibs" - finalize_deplibs="-l$name -L$dir $finalize_deplibs" - fi - elif test "$build_libtool_libs" = yes; then - # Not a shared library - if test "$deplibs_check_method" != pass_all; then - # We're trying link a shared library against a static one - # but the system doesn't support it. - - # Just print a warning and add the library to dependency_libs so - # that the program can be linked against the static library. - $ECHO - $ECHO "*** Warning: This system can not link to static lib archive $lib." - $ECHO "*** I have the capability to make that library automatically link in when" - $ECHO "*** you link to this library. But I can only do this if you have a" - $ECHO "*** shared version of the library, which you do not appear to have." - if test "$module" = yes; then - $ECHO "*** But as you try to build a module library, libtool will still create " - $ECHO "*** a static module, that should work as long as the dlopening application" - $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime." - if test -z "$global_symbol_pipe"; then - $ECHO - $ECHO "*** However, this would only work if libtool was able to extract symbol" - $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" - $ECHO "*** not find such a program. So, this module is probably useless." - $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." - fi - if test "$build_old_libs" = no; then - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - fi - else - deplibs="$dir/$old_library $deplibs" - link_static=yes - fi - fi # link shared/static library? - - if test "$linkmode" = lib; then - if test -n "$dependency_libs" && - { test "$hardcode_into_libs" != yes || - test "$build_old_libs" = yes || - test "$link_static" = yes; }; then - # Extract -R from dependency_libs - temp_deplibs= - for libdir in $dependency_libs; do - case $libdir in - -R*) func_stripname '-R' '' "$libdir" - temp_xrpath=$func_stripname_result - case " $xrpath " in - *" $temp_xrpath "*) ;; - *) xrpath="$xrpath $temp_xrpath";; - esac;; - *) temp_deplibs="$temp_deplibs $libdir";; - esac - done - dependency_libs="$temp_deplibs" - fi - - newlib_search_path="$newlib_search_path $absdir" - # Link against this library - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" - # ... and its dependency_libs - tmp_libs= - for deplib in $dependency_libs; do - newdependency_libs="$deplib $newdependency_libs" - if $opt_duplicate_deps ; then - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - tmp_libs="$tmp_libs $deplib" - done - - if test "$link_all_deplibs" != no; then - # Add the search paths of all dependency libraries - for deplib in $dependency_libs; do - path= - case $deplib in - -L*) path="$deplib" ;; - *.la) - func_dirname "$deplib" "" "." - dir="$func_dirname_result" - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; - *) - absdir=`cd "$dir" && pwd` - if test -z "$absdir"; then - func_warning "cannot determine absolute directory name of \`$dir'" - absdir="$dir" - fi - ;; - esac - if $GREP "^installed=no" $deplib > /dev/null; then - case $host in - *-*-darwin*) - depdepl= - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` - if test -n "$deplibrary_names" ; then - for tmp in $deplibrary_names ; do - depdepl=$tmp - done - if test -f "$absdir/$objdir/$depdepl" ; then - depdepl="$absdir/$objdir/$depdepl" - darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` - if test -z "$darwin_install_name"; then - darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` - fi - compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" - linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" - path= - fi - fi - ;; - *) - path="-L$absdir/$objdir" - ;; - esac - else - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` - test -z "$libdir" && \ - func_fatal_error "\`$deplib' is not a valid libtool archive" - test "$absdir" != "$libdir" && \ - func_warning "\`$deplib' seems to be moved" - - path="-L$absdir" - fi - ;; - esac - case " $deplibs " in - *" $path "*) ;; - *) deplibs="$path $deplibs" ;; - esac - done - fi # link_all_deplibs != no - fi # linkmode = lib - done # for deplib in $libs - if test "$pass" = link; then - if test "$linkmode" = "prog"; then - compile_deplibs="$new_inherited_linker_flags $compile_deplibs" - finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" - else - compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - fi - fi - dependency_libs="$newdependency_libs" - if test "$pass" = dlpreopen; then - # Link the dlpreopened libraries before other libraries - for deplib in $save_deplibs; do - deplibs="$deplib $deplibs" - done - fi - if test "$pass" != dlopen; then - if test "$pass" != conv; then - # Make sure lib_search_path contains only unique directories. - lib_search_path= - for dir in $newlib_search_path; do - case "$lib_search_path " in - *" $dir "*) ;; - *) lib_search_path="$lib_search_path $dir" ;; - esac - done - newlib_search_path= - fi - - if test "$linkmode,$pass" != "prog,link"; then - vars="deplibs" - else - vars="compile_deplibs finalize_deplibs" - fi - for var in $vars dependency_libs; do - # Add libraries to $var in reverse order - eval tmp_libs=\"\$$var\" - new_libs= - for deplib in $tmp_libs; do - # FIXME: Pedantically, this is the right thing to do, so - # that some nasty dependency loop isn't accidentally - # broken: - #new_libs="$deplib $new_libs" - # Pragmatically, this seems to cause very few problems in - # practice: - case $deplib in - -L*) new_libs="$deplib $new_libs" ;; - -R*) ;; - *) - # And here is the reason: when a library appears more - # than once as an explicit dependence of a library, or - # is implicitly linked in more than once by the - # compiler, it is considered special, and multiple - # occurrences thereof are not removed. Compare this - # with having the same library being listed as a - # dependency of multiple other libraries: in this case, - # we know (pedantically, we assume) the library does not - # need to be listed more than once, so we keep only the - # last copy. This is not always right, but it is rare - # enough that we require users that really mean to play - # such unportable linking tricks to link the library - # using -Wl,-lname, so that libtool does not consider it - # for duplicate removal. - case " $specialdeplibs " in - *" $deplib "*) new_libs="$deplib $new_libs" ;; - *) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$deplib $new_libs" ;; - esac - ;; - esac - ;; - esac - done - tmp_libs= - for deplib in $new_libs; do - case $deplib in - -L*) - case " $tmp_libs " in - *" $deplib "*) ;; - *) tmp_libs="$tmp_libs $deplib" ;; - esac - ;; - *) tmp_libs="$tmp_libs $deplib" ;; - esac - done - eval $var=\"$tmp_libs\" - done # for var - fi - # Last step: remove runtime libs from dependency_libs - # (they stay in deplibs) - tmp_libs= - for i in $dependency_libs ; do - case " $predeps $postdeps $compiler_lib_search_path " in - *" $i "*) - i="" - ;; - esac - if test -n "$i" ; then - tmp_libs="$tmp_libs $i" - fi - done - dependency_libs=$tmp_libs - done # for pass - if test "$linkmode" = prog; then - dlfiles="$newdlfiles" - fi - if test "$linkmode" = prog || test "$linkmode" = lib; then - dlprefiles="$newdlprefiles" - fi - - case $linkmode in - oldlib) - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - func_warning "\`-dlopen' is ignored for archives" - fi - - case " $deplibs" in - *\ -l* | *\ -L*) - func_warning "\`-l' and \`-L' are ignored for archives" ;; - esac - - test -n "$rpath" && \ - func_warning "\`-rpath' is ignored for archives" - - test -n "$xrpath" && \ - func_warning "\`-R' is ignored for archives" - - test -n "$vinfo" && \ - func_warning "\`-version-info/-version-number' is ignored for archives" - - test -n "$release" && \ - func_warning "\`-release' is ignored for archives" - - test -n "$export_symbols$export_symbols_regex" && \ - func_warning "\`-export-symbols' is ignored for archives" - - # Now set the variables for building old libraries. - build_libtool_libs=no - oldlibs="$output" - objs="$objs$old_deplibs" - ;; - - lib) - # Make sure we only generate libraries of the form `libNAME.la'. - case $outputname in - lib*) - func_stripname 'lib' '.la' "$outputname" - name=$func_stripname_result - eval shared_ext=\"$shrext_cmds\" - eval libname=\"$libname_spec\" - ;; - *) - test "$module" = no && \ - func_fatal_help "libtool library \`$output' must begin with \`lib'" - - if test "$need_lib_prefix" != no; then - # Add the "lib" prefix for modules if required - func_stripname '' '.la' "$outputname" - name=$func_stripname_result - eval shared_ext=\"$shrext_cmds\" - eval libname=\"$libname_spec\" - else - func_stripname '' '.la' "$outputname" - libname=$func_stripname_result - fi - ;; - esac - - if test -n "$objs"; then - if test "$deplibs_check_method" != pass_all; then - func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" - else - $ECHO - $ECHO "*** Warning: Linking the shared library $output against the non-libtool" - $ECHO "*** objects $objs is not portable!" - libobjs="$libobjs $objs" - fi - fi - - test "$dlself" != no && \ - func_warning "\`-dlopen self' is ignored for libtool libraries" - - set dummy $rpath - shift - test "$#" -gt 1 && \ - func_warning "ignoring multiple \`-rpath's for a libtool library" - - install_libdir="$1" - - oldlibs= - if test -z "$rpath"; then - if test "$build_libtool_libs" = yes; then - # Building a libtool convenience library. - # Some compilers have problems with a `.al' extension so - # convenience libraries should have the same extension an - # archive normally would. - oldlibs="$output_objdir/$libname.$libext $oldlibs" - build_libtool_libs=convenience - build_old_libs=yes - fi - - test -n "$vinfo" && \ - func_warning "\`-version-info/-version-number' is ignored for convenience libraries" - - test -n "$release" && \ - func_warning "\`-release' is ignored for convenience libraries" - else - - # Parse the version information argument. - save_ifs="$IFS"; IFS=':' - set dummy $vinfo 0 0 0 - shift - IFS="$save_ifs" - - test -n "$7" && \ - func_fatal_help "too many parameters to \`-version-info'" - - # convert absolute version numbers to libtool ages - # this retains compatibility with .la files and attempts - # to make the code below a bit more comprehensible - - case $vinfo_number in - yes) - number_major="$1" - number_minor="$2" - number_revision="$3" - # - # There are really only two kinds -- those that - # use the current revision as the major version - # and those that subtract age and use age as - # a minor version. But, then there is irix - # which has an extra 1 added just for fun - # - case $version_type in - darwin|linux|osf|windows|none) - func_arith $number_major + $number_minor - current=$func_arith_result - age="$number_minor" - revision="$number_revision" - ;; - freebsd-aout|freebsd-elf|sunos) - current="$number_major" - revision="$number_minor" - age="0" - ;; - irix|nonstopux) - func_arith $number_major + $number_minor - current=$func_arith_result - age="$number_minor" - revision="$number_minor" - lt_irix_increment=no - ;; - *) - func_fatal_configuration "$modename: unknown library version type \`$version_type'" - ;; - esac - ;; - no) - current="$1" - revision="$2" - age="$3" - ;; - esac - - # Check that each of the things are valid numbers. - case $current in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - func_error "CURRENT \`$current' must be a nonnegative integer" - func_fatal_error "\`$vinfo' is not valid version information" - ;; - esac - - case $revision in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - func_error "REVISION \`$revision' must be a nonnegative integer" - func_fatal_error "\`$vinfo' is not valid version information" - ;; - esac - - case $age in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - func_error "AGE \`$age' must be a nonnegative integer" - func_fatal_error "\`$vinfo' is not valid version information" - ;; - esac - - if test "$age" -gt "$current"; then - func_error "AGE \`$age' is greater than the current interface number \`$current'" - func_fatal_error "\`$vinfo' is not valid version information" - fi - - # Calculate the version variables. - major= - versuffix= - verstring= - case $version_type in - none) ;; - - darwin) - # Like Linux, but with the current version available in - # verstring for coding it into the library header - func_arith $current - $age - major=.$func_arith_result - versuffix="$major.$age.$revision" - # Darwin ld doesn't like 0 for these options... - func_arith $current + 1 - minor_current=$func_arith_result - xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" - ;; - - freebsd-aout) - major=".$current" - versuffix=".$current.$revision"; - ;; - - freebsd-elf) - major=".$current" - versuffix=".$current" - ;; - - irix | nonstopux) - if test "X$lt_irix_increment" = "Xno"; then - func_arith $current - $age - else - func_arith $current - $age + 1 - fi - major=$func_arith_result - - case $version_type in - nonstopux) verstring_prefix=nonstopux ;; - *) verstring_prefix=sgi ;; - esac - verstring="$verstring_prefix$major.$revision" - - # Add in all the interfaces that we are compatible with. - loop=$revision - while test "$loop" -ne 0; do - func_arith $revision - $loop - iface=$func_arith_result - func_arith $loop - 1 - loop=$func_arith_result - verstring="$verstring_prefix$major.$iface:$verstring" - done - - # Before this point, $major must not contain `.'. - major=.$major - versuffix="$major.$revision" - ;; - - linux) - func_arith $current - $age - major=.$func_arith_result - versuffix="$major.$age.$revision" - ;; - - osf) - func_arith $current - $age - major=.$func_arith_result - versuffix=".$current.$age.$revision" - verstring="$current.$age.$revision" - - # Add in all the interfaces that we are compatible with. - loop=$age - while test "$loop" -ne 0; do - func_arith $current - $loop - iface=$func_arith_result - func_arith $loop - 1 - loop=$func_arith_result - verstring="$verstring:${iface}.0" - done - - # Make executables depend on our current version. - verstring="$verstring:${current}.0" - ;; - - qnx) - major=".$current" - versuffix=".$current" - ;; - - sunos) - major=".$current" - versuffix=".$current.$revision" - ;; - - windows) - # Use '-' rather than '.', since we only want one - # extension on DOS 8.3 filesystems. - func_arith $current - $age - major=$func_arith_result - versuffix="-$major" - ;; - - *) - func_fatal_configuration "unknown library version type \`$version_type'" - ;; - esac - - # Clear the version info if we defaulted, and they specified a release. - if test -z "$vinfo" && test -n "$release"; then - major= - case $version_type in - darwin) - # we can't check for "0.0" in archive_cmds due to quoting - # problems, so we reset it completely - verstring= - ;; - *) - verstring="0.0" - ;; - esac - if test "$need_version" = no; then - versuffix= - else - versuffix=".0.0" - fi - fi - - # Remove version info from name if versioning should be avoided - if test "$avoid_version" = yes && test "$need_version" = no; then - major= - versuffix= - verstring="" - fi - - # Check to see if the archive will have undefined symbols. - if test "$allow_undefined" = yes; then - if test "$allow_undefined_flag" = unsupported; then - func_warning "undefined symbols not allowed in $host shared libraries" - build_libtool_libs=no - build_old_libs=yes - fi - else - # Don't allow undefined symbols. - allow_undefined_flag="$no_undefined_flag" - fi - - fi - - func_generate_dlsyms "$libname" "$libname" "yes" - libobjs="$libobjs $symfileobj" - test "X$libobjs" = "X " && libobjs= - - if test "$mode" != relink; then - # Remove our outputs, but don't remove object files since they - # may have been created when compiling PIC objects. - removelist= - tempremovelist=`$ECHO "$output_objdir/*"` - for p in $tempremovelist; do - case $p in - *.$objext | *.gcno) - ;; - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) - if test "X$precious_files_regex" != "X"; then - if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 - then - continue - fi - fi - removelist="$removelist $p" - ;; - *) ;; - esac - done - test -n "$removelist" && \ - func_show_eval "${RM}r \$removelist" - fi - - # Now set the variables for building old libraries. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then - oldlibs="$oldlibs $output_objdir/$libname.$libext" - - # Transform .lo files to .o files. - oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` - fi - - # Eliminate all temporary directories. - #for path in $notinst_path; do - # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` - # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` - # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` - #done - - if test -n "$xrpath"; then - # If the user specified any rpath flags, then add them. - temp_xrpath= - for libdir in $xrpath; do - temp_xrpath="$temp_xrpath -R$libdir" - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" ;; - esac - done - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then - dependency_libs="$temp_xrpath $dependency_libs" - fi - fi - - # Make sure dlfiles contains only unique files that won't be dlpreopened - old_dlfiles="$dlfiles" - dlfiles= - for lib in $old_dlfiles; do - case " $dlprefiles $dlfiles " in - *" $lib "*) ;; - *) dlfiles="$dlfiles $lib" ;; - esac - done - - # Make sure dlprefiles contains only unique files - old_dlprefiles="$dlprefiles" - dlprefiles= - for lib in $old_dlprefiles; do - case "$dlprefiles " in - *" $lib "*) ;; - *) dlprefiles="$dlprefiles $lib" ;; - esac - done - - if test "$build_libtool_libs" = yes; then - if test -n "$rpath"; then - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) - # these systems don't actually have a c library (as such)! - ;; - *-*-rhapsody* | *-*-darwin1.[012]) - # Rhapsody C library is in the System framework - deplibs="$deplibs System.ltframework" - ;; - *-*-netbsd*) - # Don't link with libc until the a.out ld.so is fixed. - ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc due to us having libc/libc_r. - ;; - *-*-sco3.2v5* | *-*-sco5v6*) - # Causes problems with __ctype - ;; - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) - # Compiler inserts libc in the correct place for threads to work - ;; - *) - # Add libc to deplibs on all other systems if necessary. - if test "$build_libtool_need_lc" = "yes"; then - deplibs="$deplibs -lc" - fi - ;; - esac - fi - - # Transform deplibs into only deplibs that can be linked in shared. - name_save=$name - libname_save=$libname - release_save=$release - versuffix_save=$versuffix - major_save=$major - # I'm not sure if I'm treating the release correctly. I think - # release should show up in the -l (ie -lgmp5) so we don't want to - # add it in twice. Is that correct? - release="" - versuffix="" - major="" - newdeplibs= - droppeddeps=no - case $deplibs_check_method in - pass_all) - # Don't check for shared/static. Everything works. - # This might be a little naive. We might want to check - # whether the library exists or not. But this is on - # osf3 & osf4 and I'm not really sure... Just - # implementing what was already the behavior. - newdeplibs=$deplibs - ;; - test_compile) - # This code stresses the "libraries are programs" paradigm to its - # limits. Maybe even breaks it. We compile a program, linking it - # against the deplibs as a proxy for the library. Then we can check - # whether they linked in statically or dynamically with ldd. - $opt_dry_run || $RM conftest.c - cat > conftest.c <<EOF - int main() { return 0; } -EOF - $opt_dry_run || $RM conftest - if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then - ldd_output=`ldd conftest` - for i in $deplibs; do - case $i in - -l*) - func_stripname -l '' "$i" - name=$func_stripname_result - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - case " $predeps $postdeps " in - *" $i "*) - newdeplibs="$newdeplibs $i" - i="" - ;; - esac - fi - if test -n "$i" ; then - libname=`eval "\\$ECHO \"$libname_spec\""` - deplib_matches=`eval "\\$ECHO \"$library_names_spec\""` - set dummy $deplib_matches; shift - deplib_match=$1 - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then - newdeplibs="$newdeplibs $i" - else - droppeddeps=yes - $ECHO - $ECHO "*** Warning: dynamic linker does not accept needed library $i." - $ECHO "*** I have the capability to make that library automatically link in when" - $ECHO "*** you link to this library. But I can only do this if you have a" - $ECHO "*** shared version of the library, which I believe you do not have" - $ECHO "*** because a test_compile did reveal that the linker did not use it for" - $ECHO "*** its dynamic dependency list that programs get resolved with at runtime." - fi - fi - ;; - *) - newdeplibs="$newdeplibs $i" - ;; - esac - done - else - # Error occurred in the first compile. Let's try to salvage - # the situation: Compile a separate program for each library. - for i in $deplibs; do - case $i in - -l*) - func_stripname -l '' "$i" - name=$func_stripname_result - $opt_dry_run || $RM conftest - if $LTCC $LTCFLAGS -o conftest conftest.c $i; then - ldd_output=`ldd conftest` - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - case " $predeps $postdeps " in - *" $i "*) - newdeplibs="$newdeplibs $i" - i="" - ;; - esac - fi - if test -n "$i" ; then - libname=`eval "\\$ECHO \"$libname_spec\""` - deplib_matches=`eval "\\$ECHO \"$library_names_spec\""` - set dummy $deplib_matches; shift - deplib_match=$1 - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then - newdeplibs="$newdeplibs $i" - else - droppeddeps=yes - $ECHO - $ECHO "*** Warning: dynamic linker does not accept needed library $i." - $ECHO "*** I have the capability to make that library automatically link in when" - $ECHO "*** you link to this library. But I can only do this if you have a" - $ECHO "*** shared version of the library, which you do not appear to have" - $ECHO "*** because a test_compile did reveal that the linker did not use this one" - $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime." - fi - fi - else - droppeddeps=yes - $ECHO - $ECHO "*** Warning! Library $i is needed by this library but I was not able to" - $ECHO "*** make it link in! You will probably need to install it or some" - $ECHO "*** library that it depends on before this library will be fully" - $ECHO "*** functional. Installing it before continuing would be even better." - fi - ;; - *) - newdeplibs="$newdeplibs $i" - ;; - esac - done - fi - ;; - file_magic*) - set dummy $deplibs_check_method; shift - file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` - for a_deplib in $deplibs; do - case $a_deplib in - -l*) - func_stripname -l '' "$a_deplib" - name=$func_stripname_result - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - case " $predeps $postdeps " in - *" $a_deplib "*) - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - ;; - esac - fi - if test -n "$a_deplib" ; then - libname=`eval "\\$ECHO \"$libname_spec\""` - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do - potential_libs=`ls $i/$libname[.-]* 2>/dev/null` - for potent_lib in $potential_libs; do - # Follow soft links. - if ls -lLd "$potent_lib" 2>/dev/null | - $GREP " -> " >/dev/null; then - continue - fi - # The statement above tries to avoid entering an - # endless loop below, in case of cyclic links. - # We might still enter an endless loop, since a link - # loop can be closed while we follow links, - # but so what? - potlib="$potent_lib" - while test -h "$potlib" 2>/dev/null; do - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` - case $potliblink in - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; - *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; - esac - done - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | - $SED -e 10q | - $EGREP "$file_magic_regex" > /dev/null; then - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - break 2 - fi - done - done - fi - if test -n "$a_deplib" ; then - droppeddeps=yes - $ECHO - $ECHO "*** Warning: linker path does not have real file for library $a_deplib." - $ECHO "*** I have the capability to make that library automatically link in when" - $ECHO "*** you link to this library. But I can only do this if you have a" - $ECHO "*** shared version of the library, which you do not appear to have" - $ECHO "*** because I did check the linker path looking for a file starting" - if test -z "$potlib" ; then - $ECHO "*** with $libname but no candidates were found. (...for file magic test)" - else - $ECHO "*** with $libname and none of the candidates passed a file format test" - $ECHO "*** using a file magic. Last file checked: $potlib" - fi - fi - ;; - *) - # Add a -L argument. - newdeplibs="$newdeplibs $a_deplib" - ;; - esac - done # Gone through all deplibs. - ;; - match_pattern*) - set dummy $deplibs_check_method; shift - match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` - for a_deplib in $deplibs; do - case $a_deplib in - -l*) - func_stripname -l '' "$a_deplib" - name=$func_stripname_result - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - case " $predeps $postdeps " in - *" $a_deplib "*) - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - ;; - esac - fi - if test -n "$a_deplib" ; then - libname=`eval "\\$ECHO \"$libname_spec\""` - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do - potential_libs=`ls $i/$libname[.-]* 2>/dev/null` - for potent_lib in $potential_libs; do - potlib="$potent_lib" # see symlink-check above in file_magic test - if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ - $EGREP "$match_pattern_regex" > /dev/null; then - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - break 2 - fi - done - done - fi - if test -n "$a_deplib" ; then - droppeddeps=yes - $ECHO - $ECHO "*** Warning: linker path does not have real file for library $a_deplib." - $ECHO "*** I have the capability to make that library automatically link in when" - $ECHO "*** you link to this library. But I can only do this if you have a" - $ECHO "*** shared version of the library, which you do not appear to have" - $ECHO "*** because I did check the linker path looking for a file starting" - if test -z "$potlib" ; then - $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" - else - $ECHO "*** with $libname and none of the candidates passed a file format test" - $ECHO "*** using a regex pattern. Last file checked: $potlib" - fi - fi - ;; - *) - # Add a -L argument. - newdeplibs="$newdeplibs $a_deplib" - ;; - esac - done # Gone through all deplibs. - ;; - none | unknown | *) - newdeplibs="" - tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ - -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - for i in $predeps $postdeps ; do - # can't use Xsed below, because $i might contain '/' - tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` - done - fi - if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | - $GREP . >/dev/null; then - $ECHO - if test "X$deplibs_check_method" = "Xnone"; then - $ECHO "*** Warning: inter-library dependencies are not supported in this platform." - else - $ECHO "*** Warning: inter-library dependencies are not known to be supported." - fi - $ECHO "*** All declared inter-library dependencies are being dropped." - droppeddeps=yes - fi - ;; - esac - versuffix=$versuffix_save - major=$major_save - release=$release_save - libname=$libname_save - name=$name_save - - case $host in - *-*-rhapsody* | *-*-darwin1.[012]) - # On Rhapsody replace the C library with the System framework - newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` - ;; - esac - - if test "$droppeddeps" = yes; then - if test "$module" = yes; then - $ECHO - $ECHO "*** Warning: libtool could not satisfy all declared inter-library" - $ECHO "*** dependencies of module $libname. Therefore, libtool will create" - $ECHO "*** a static module, that should work as long as the dlopening" - $ECHO "*** application is linked with the -dlopen flag." - if test -z "$global_symbol_pipe"; then - $ECHO - $ECHO "*** However, this would only work if libtool was able to extract symbol" - $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" - $ECHO "*** not find such a program. So, this module is probably useless." - $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." - fi - if test "$build_old_libs" = no; then - oldlibs="$output_objdir/$libname.$libext" - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - else - $ECHO "*** The inter-library dependencies that have been dropped here will be" - $ECHO "*** automatically added whenever a program is linked with this library" - $ECHO "*** or is declared to -dlopen it." - - if test "$allow_undefined" = no; then - $ECHO - $ECHO "*** Since this library must not contain undefined symbols," - $ECHO "*** because either the platform does not support them or" - $ECHO "*** it was explicitly requested with -no-undefined," - $ECHO "*** libtool will only create a static version of it." - if test "$build_old_libs" = no; then - oldlibs="$output_objdir/$libname.$libext" - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - fi - fi - fi - # Done checking deplibs! - deplibs=$newdeplibs - fi - # Time to change all our "foo.ltframework" stuff back to "-framework foo" - case $host in - *-*-darwin*) - newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - ;; - esac - - # move library search paths that coincide with paths to not yet - # installed libraries to the beginning of the library search list - new_libs= - for path in $notinst_path; do - case " $new_libs " in - *" -L$path/$objdir "*) ;; - *) - case " $deplibs " in - *" -L$path/$objdir "*) - new_libs="$new_libs -L$path/$objdir" ;; - esac - ;; - esac - done - for deplib in $deplibs; do - case $deplib in - -L*) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$new_libs $deplib" ;; - esac - ;; - *) new_libs="$new_libs $deplib" ;; - esac - done - deplibs="$new_libs" - - # All the library-specific variables (install_libdir is set above). - library_names= - old_library= - dlname= - - # Test again, we may have decided not to build it any more - if test "$build_libtool_libs" = yes; then - if test "$hardcode_into_libs" = yes; then - # Hardcode the library paths - hardcode_libdirs= - dep_rpath= - rpath="$finalize_rpath" - test "$mode" != relink && rpath="$compile_rpath$rpath" - for libdir in $rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - dep_rpath="$dep_rpath $flag" - fi - elif test -n "$runpath_var"; then - case "$perm_rpath " in - *" $libdir "*) ;; - *) perm_rpath="$perm_rpath $libdir" ;; - esac - fi - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - if test -n "$hardcode_libdir_flag_spec_ld"; then - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" - else - eval dep_rpath=\"$hardcode_libdir_flag_spec\" - fi - fi - if test -n "$runpath_var" && test -n "$perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $perm_rpath; do - rpath="$rpath$dir:" - done - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" - fi - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" - fi - - shlibpath="$finalize_shlibpath" - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" - if test -n "$shlibpath"; then - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" - fi - - # Get the real and link names of the library. - eval shared_ext=\"$shrext_cmds\" - eval library_names=\"$library_names_spec\" - set dummy $library_names - shift - realname="$1" - shift - - if test -n "$soname_spec"; then - eval soname=\"$soname_spec\" - else - soname="$realname" - fi - if test -z "$dlname"; then - dlname=$soname - fi - - lib="$output_objdir/$realname" - linknames= - for link - do - linknames="$linknames $link" - done - - # Use standard objects if they are pic - test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - test "X$libobjs" = "X " && libobjs= - - delfiles= - if test -n "$export_symbols" && test -n "$include_expsyms"; then - $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" - export_symbols="$output_objdir/$libname.uexp" - delfiles="$delfiles $export_symbols" - fi - - orig_export_symbols= - case $host_os in - cygwin* | mingw* | cegcc*) - if test -n "$export_symbols" && test -z "$export_symbols_regex"; then - # exporting using user supplied symfile - if test "x`$SED 1q $export_symbols`" != xEXPORTS; then - # and it's NOT already a .def file. Must figure out - # which of the given symbols are data symbols and tag - # them as such. So, trigger use of export_symbols_cmds. - # export_symbols gets reassigned inside the "prepare - # the list of exported symbols" if statement, so the - # include_expsyms logic still works. - orig_export_symbols="$export_symbols" - export_symbols= - always_export_symbols=yes - fi - fi - ;; - esac - - # Prepare the list of exported symbols - if test -z "$export_symbols"; then - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then - func_verbose "generating symbol list for \`$libname.la'" - export_symbols="$output_objdir/$libname.exp" - $opt_dry_run || $RM $export_symbols - cmds=$export_symbols_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - func_len " $cmd" - len=$func_len_result - if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then - func_show_eval "$cmd" 'exit $?' - skipped_export=false - else - # The command line is too long to execute in one step. - func_verbose "using reloadable object file for export list..." - skipped_export=: - # Break out early, otherwise skipped_export may be - # set to false by a later but shorter cmd. - break - fi - done - IFS="$save_ifs" - if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then - func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' - func_show_eval '$MV "${export_symbols}T" "$export_symbols"' - fi - fi - fi - - if test -n "$export_symbols" && test -n "$include_expsyms"; then - tmp_export_symbols="$export_symbols" - test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" - $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' - fi - - if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then - # The given exports_symbols file has to be filtered, so filter it. - func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" - # FIXME: $output_objdir/$libname.filter potentially contains lots of - # 's' commands which not all seds can handle. GNU sed should be fine - # though. Also, the filter scales superlinearly with the number of - # global variables. join(1) would be nice here, but unfortunately - # isn't a blessed tool. - $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter - delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" - export_symbols=$output_objdir/$libname.def - $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols - fi - - tmp_deplibs= - for test_deplib in $deplibs; do - case " $convenience " in - *" $test_deplib "*) ;; - *) - tmp_deplibs="$tmp_deplibs $test_deplib" - ;; - esac - done - deplibs="$tmp_deplibs" - - if test -n "$convenience"; then - if test -n "$whole_archive_flag_spec" && - test "$compiler_needs_object" = yes && - test -z "$libobjs"; then - # extract the archives, so we have objects to list. - # TODO: could optimize this to just extract one archive. - whole_archive_flag_spec= - fi - if test -n "$whole_archive_flag_spec"; then - save_libobjs=$libobjs - eval libobjs=\"\$libobjs $whole_archive_flag_spec\" - test "X$libobjs" = "X " && libobjs= - else - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" - - func_extract_archives $gentop $convenience - libobjs="$libobjs $func_extract_archives_result" - test "X$libobjs" = "X " && libobjs= - fi - fi - - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then - eval flag=\"$thread_safe_flag_spec\" - linker_flags="$linker_flags $flag" - fi - - # Make a backup of the uninstalled library when relinking - if test "$mode" = relink; then - $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? - fi - - # Do each of the archive commands. - if test "$module" = yes && test -n "$module_cmds" ; then - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then - eval test_cmds=\"$module_expsym_cmds\" - cmds=$module_expsym_cmds - else - eval test_cmds=\"$module_cmds\" - cmds=$module_cmds - fi - else - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then - eval test_cmds=\"$archive_expsym_cmds\" - cmds=$archive_expsym_cmds - else - eval test_cmds=\"$archive_cmds\" - cmds=$archive_cmds - fi - fi - - if test "X$skipped_export" != "X:" && - func_len " $test_cmds" && - len=$func_len_result && - test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then - : - else - # The command line is too long to link in one step, link piecewise - # or, if using GNU ld and skipped_export is not :, use a linker - # script. - - # Save the value of $output and $libobjs because we want to - # use them later. If we have whole_archive_flag_spec, we - # want to use save_libobjs as it was before - # whole_archive_flag_spec was expanded, because we can't - # assume the linker understands whole_archive_flag_spec. - # This may have to be revisited, in case too many - # convenience libraries get linked in and end up exceeding - # the spec. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then - save_libobjs=$libobjs - fi - save_output=$output - output_la=`$ECHO "X$output" | $Xsed -e "$basename"` - - # Clear the reloadable object creation command queue and - # initialize k to one. - test_cmds= - concat_cmds= - objlist= - last_robj= - k=1 - - if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then - output=${output_objdir}/${output_la}.lnkscript - func_verbose "creating GNU ld script: $output" - $ECHO 'INPUT (' > $output - for obj in $save_libobjs - do - $ECHO "$obj" >> $output - done - $ECHO ')' >> $output - delfiles="$delfiles $output" - elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then - output=${output_objdir}/${output_la}.lnk - func_verbose "creating linker input file list: $output" - : > $output - set x $save_libobjs - shift - firstobj= - if test "$compiler_needs_object" = yes; then - firstobj="$1 " - shift - fi - for obj - do - $ECHO "$obj" >> $output - done - delfiles="$delfiles $output" - output=$firstobj\"$file_list_spec$output\" - else - if test -n "$save_libobjs"; then - func_verbose "creating reloadable object files..." - output=$output_objdir/$output_la-${k}.$objext - eval test_cmds=\"$reload_cmds\" - func_len " $test_cmds" - len0=$func_len_result - len=$len0 - - # Loop over the list of objects to be linked. - for obj in $save_libobjs - do - func_len " $obj" - func_arith $len + $func_len_result - len=$func_arith_result - if test "X$objlist" = X || - test "$len" -lt "$max_cmd_len"; then - func_append objlist " $obj" - else - # The command $test_cmds is almost too long, add a - # command to the queue. - if test "$k" -eq 1 ; then - # The first file doesn't have a previous command to add. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\" - else - # All subsequent reloadable object files will link in - # the last one created. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" - fi - last_robj=$output_objdir/$output_la-${k}.$objext - func_arith $k + 1 - k=$func_arith_result - output=$output_objdir/$output_la-${k}.$objext - objlist=$obj - func_len " $last_robj" - func_arith $len0 + $func_len_result - len=$func_arith_result - fi - done - # Handle the remaining objects by creating one last - # reloadable object file. All subsequent reloadable object - # files will link in the last one created. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" - if test -n "$last_robj"; then - eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" - fi - delfiles="$delfiles $output" - - else - output= - fi - - if ${skipped_export-false}; then - func_verbose "generating symbol list for \`$libname.la'" - export_symbols="$output_objdir/$libname.exp" - $opt_dry_run || $RM $export_symbols - libobjs=$output - # Append the command to create the export file. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" - if test -n "$last_robj"; then - eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" - fi - fi - - test -n "$save_libobjs" && - func_verbose "creating a temporary reloadable object file: $output" - - # Loop through the commands generated above and execute them. - save_ifs="$IFS"; IFS='~' - for cmd in $concat_cmds; do - IFS="$save_ifs" - $opt_silent || { - func_quote_for_expand "$cmd" - eval "func_echo $func_quote_for_expand_result" - } - $opt_dry_run || eval "$cmd" || { - lt_exit=$? - - # Restore the uninstalled library and exit - if test "$mode" = relink; then - ( cd "$output_objdir" && \ - $RM "${realname}T" && \ - $MV "${realname}U" "$realname" ) - fi - - exit $lt_exit - } - done - IFS="$save_ifs" - - if test -n "$export_symbols_regex" && ${skipped_export-false}; then - func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' - func_show_eval '$MV "${export_symbols}T" "$export_symbols"' - fi - fi - - if ${skipped_export-false}; then - if test -n "$export_symbols" && test -n "$include_expsyms"; then - tmp_export_symbols="$export_symbols" - test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" - $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' - fi - - if test -n "$orig_export_symbols"; then - # The given exports_symbols file has to be filtered, so filter it. - func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" - # FIXME: $output_objdir/$libname.filter potentially contains lots of - # 's' commands which not all seds can handle. GNU sed should be fine - # though. Also, the filter scales superlinearly with the number of - # global variables. join(1) would be nice here, but unfortunately - # isn't a blessed tool. - $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter - delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" - export_symbols=$output_objdir/$libname.def - $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols - fi - fi - - libobjs=$output - # Restore the value of output. - output=$save_output - - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then - eval libobjs=\"\$libobjs $whole_archive_flag_spec\" - test "X$libobjs" = "X " && libobjs= - fi - # Expand the library linking commands again to reset the - # value of $libobjs for piecewise linking. - - # Do each of the archive commands. - if test "$module" = yes && test -n "$module_cmds" ; then - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then - cmds=$module_expsym_cmds - else - cmds=$module_cmds - fi - else - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then - cmds=$archive_expsym_cmds - else - cmds=$archive_cmds - fi - fi - fi - - if test -n "$delfiles"; then - # Append the command to remove temporary files to $cmds. - eval cmds=\"\$cmds~\$RM $delfiles\" - fi - - # Add any objects from preloaded convenience libraries - if test -n "$dlprefiles"; then - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" - - func_extract_archives $gentop $dlprefiles - libobjs="$libobjs $func_extract_archives_result" - test "X$libobjs" = "X " && libobjs= - fi - - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $opt_silent || { - func_quote_for_expand "$cmd" - eval "func_echo $func_quote_for_expand_result" - } - $opt_dry_run || eval "$cmd" || { - lt_exit=$? - - # Restore the uninstalled library and exit - if test "$mode" = relink; then - ( cd "$output_objdir" && \ - $RM "${realname}T" && \ - $MV "${realname}U" "$realname" ) - fi - - exit $lt_exit - } - done - IFS="$save_ifs" - - # Restore the uninstalled library and exit - if test "$mode" = relink; then - $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? - - if test -n "$convenience"; then - if test -z "$whole_archive_flag_spec"; then - func_show_eval '${RM}r "$gentop"' - fi - fi - - exit $EXIT_SUCCESS - fi - - # Create links to the real library. - for linkname in $linknames; do - if test "$realname" != "$linkname"; then - func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' - fi - done - - # If -module or -export-dynamic was specified, set the dlname. - if test "$module" = yes || test "$export_dynamic" = yes; then - # On all known operating systems, these are identical. - dlname="$soname" - fi - fi - ;; - - obj) - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - func_warning "\`-dlopen' is ignored for objects" - fi - - case " $deplibs" in - *\ -l* | *\ -L*) - func_warning "\`-l' and \`-L' are ignored for objects" ;; - esac - - test -n "$rpath" && \ - func_warning "\`-rpath' is ignored for objects" - - test -n "$xrpath" && \ - func_warning "\`-R' is ignored for objects" - - test -n "$vinfo" && \ - func_warning "\`-version-info' is ignored for objects" - - test -n "$release" && \ - func_warning "\`-release' is ignored for objects" - - case $output in - *.lo) - test -n "$objs$old_deplibs" && \ - func_fatal_error "cannot build library object \`$output' from non-libtool objects" - - libobj=$output - func_lo2o "$libobj" - obj=$func_lo2o_result - ;; - *) - libobj= - obj="$output" - ;; - esac - - # Delete the old objects. - $opt_dry_run || $RM $obj $libobj - - # Objects from convenience libraries. This assumes - # single-version convenience libraries. Whenever we create - # different ones for PIC/non-PIC, this we'll have to duplicate - # the extraction. - reload_conv_objs= - gentop= - # reload_cmds runs $LD directly, so let us get rid of - # -Wl from whole_archive_flag_spec and hope we can get by with - # turning comma into space.. - wl= - - if test -n "$convenience"; then - if test -n "$whole_archive_flag_spec"; then - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" - reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` - else - gentop="$output_objdir/${obj}x" - generated="$generated $gentop" - - func_extract_archives $gentop $convenience - reload_conv_objs="$reload_objs $func_extract_archives_result" - fi - fi - - # Create the old-style object. - reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test - - output="$obj" - func_execute_cmds "$reload_cmds" 'exit $?' - - # Exit if we aren't doing a library object file. - if test -z "$libobj"; then - if test -n "$gentop"; then - func_show_eval '${RM}r "$gentop"' - fi - - exit $EXIT_SUCCESS - fi - - if test "$build_libtool_libs" != yes; then - if test -n "$gentop"; then - func_show_eval '${RM}r "$gentop"' - fi - - # Create an invalid libtool object if no PIC, so that we don't - # accidentally link it into a program. - # $show "echo timestamp > $libobj" - # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? - exit $EXIT_SUCCESS - fi - - if test -n "$pic_flag" || test "$pic_mode" != default; then - # Only do commands if we really have different PIC objects. - reload_objs="$libobjs $reload_conv_objs" - output="$libobj" - func_execute_cmds "$reload_cmds" 'exit $?' - fi - - if test -n "$gentop"; then - func_show_eval '${RM}r "$gentop"' - fi - - exit $EXIT_SUCCESS - ;; - - prog) - case $host in - *cygwin*) func_stripname '' '.exe' "$output" - output=$func_stripname_result.exe;; - esac - test -n "$vinfo" && \ - func_warning "\`-version-info' is ignored for programs" - - test -n "$release" && \ - func_warning "\`-release' is ignored for programs" - - test "$preload" = yes \ - && test "$dlopen_support" = unknown \ - && test "$dlopen_self" = unknown \ - && test "$dlopen_self_static" = unknown && \ - func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." - - case $host in - *-*-rhapsody* | *-*-darwin1.[012]) - # On Rhapsody replace the C library is the System framework - compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` - finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` - ;; - esac - - case $host in - *-*-darwin*) - # Don't allow lazy linking, it breaks C++ global constructors - # But is supposedly fixed on 10.4 or later (yay!). - if test "$tagname" = CXX ; then - case ${MACOSX_DEPLOYMENT_TARGET-10.0} in - 10.[0123]) - compile_command="$compile_command ${wl}-bind_at_load" - finalize_command="$finalize_command ${wl}-bind_at_load" - ;; - esac - fi - # Time to change all our "foo.ltframework" stuff back to "-framework foo" - compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - ;; - esac - - - # move library search paths that coincide with paths to not yet - # installed libraries to the beginning of the library search list - new_libs= - for path in $notinst_path; do - case " $new_libs " in - *" -L$path/$objdir "*) ;; - *) - case " $compile_deplibs " in - *" -L$path/$objdir "*) - new_libs="$new_libs -L$path/$objdir" ;; - esac - ;; - esac - done - for deplib in $compile_deplibs; do - case $deplib in - -L*) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$new_libs $deplib" ;; - esac - ;; - *) new_libs="$new_libs $deplib" ;; - esac - done - compile_deplibs="$new_libs" - - - compile_command="$compile_command $compile_deplibs" - finalize_command="$finalize_command $finalize_deplibs" - - if test -n "$rpath$xrpath"; then - # If the user specified any rpath flags, then add them. - for libdir in $rpath $xrpath; do - # This is the magic to use -rpath. - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" ;; - esac - done - fi - - # Now hardcode the library paths - rpath= - hardcode_libdirs= - for libdir in $compile_rpath $finalize_rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - rpath="$rpath $flag" - fi - elif test -n "$runpath_var"; then - case "$perm_rpath " in - *" $libdir "*) ;; - *) perm_rpath="$perm_rpath $libdir" ;; - esac - fi - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$libdir:"*) ;; - ::) dllsearchpath=$libdir;; - *) dllsearchpath="$dllsearchpath:$libdir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - ::) dllsearchpath=$testbindir;; - *) dllsearchpath="$dllsearchpath:$testbindir";; - esac - ;; - esac - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - eval rpath=\" $hardcode_libdir_flag_spec\" - fi - compile_rpath="$rpath" - - rpath= - hardcode_libdirs= - for libdir in $finalize_rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - rpath="$rpath $flag" - fi - elif test -n "$runpath_var"; then - case "$finalize_perm_rpath " in - *" $libdir "*) ;; - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; - esac - fi - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - eval rpath=\" $hardcode_libdir_flag_spec\" - fi - finalize_rpath="$rpath" - - if test -n "$libobjs" && test "$build_old_libs" = yes; then - # Transform all the library objects into standard objects. - compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - fi - - func_generate_dlsyms "$outputname" "@PROGRAM@" "no" - - # template prelinking step - if test -n "$prelink_cmds"; then - func_execute_cmds "$prelink_cmds" 'exit $?' - fi - - wrappers_required=yes - case $host in - *cygwin* | *mingw* ) - if test "$build_libtool_libs" != yes; then - wrappers_required=no - fi - ;; - *cegcc) - # Disable wrappers for cegcc, we are cross compiling anyway. - wrappers_required=no - ;; - *) - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then - wrappers_required=no - fi - ;; - esac - if test "$wrappers_required" = no; then - # Replace the output file specification. - compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` - link_command="$compile_command$compile_rpath" - - # We have no uninstalled library dependencies, so finalize right now. - exit_status=0 - func_show_eval "$link_command" 'exit_status=$?' - - # Delete the generated files. - if test -f "$output_objdir/${outputname}S.${objext}"; then - func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' - fi - - exit $exit_status - fi - - if test -n "$compile_shlibpath$finalize_shlibpath"; then - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" - fi - if test -n "$finalize_shlibpath"; then - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" - fi - - compile_var= - finalize_var= - if test -n "$runpath_var"; then - if test -n "$perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $perm_rpath; do - rpath="$rpath$dir:" - done - compile_var="$runpath_var=\"$rpath\$$runpath_var\" " - fi - if test -n "$finalize_perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $finalize_perm_rpath; do - rpath="$rpath$dir:" - done - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " - fi - fi - - if test "$no_install" = yes; then - # We don't need to create a wrapper script. - link_command="$compile_var$compile_command$compile_rpath" - # Replace the output file specification. - link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` - # Delete the old output file. - $opt_dry_run || $RM $output - # Link the executable and exit - func_show_eval "$link_command" 'exit $?' - exit $EXIT_SUCCESS - fi - - if test "$hardcode_action" = relink; then - # Fast installation is not supported - link_command="$compile_var$compile_command$compile_rpath" - relink_command="$finalize_var$finalize_command$finalize_rpath" - - func_warning "this platform does not like uninstalled shared libraries" - func_warning "\`$output' will be relinked during installation" - else - if test "$fast_install" != no; then - link_command="$finalize_var$compile_command$finalize_rpath" - if test "$fast_install" = yes; then - relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` - else - # fast_install is set to needless - relink_command= - fi - else - link_command="$compile_var$compile_command$compile_rpath" - relink_command="$finalize_var$finalize_command$finalize_rpath" - fi - fi - - # Replace the output file specification. - link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` - - # Delete the old output files. - $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname - - func_show_eval "$link_command" 'exit $?' - - # Now create the wrapper script. - func_verbose "creating $output" - - # Quote the relink command for shipping. - if test -n "$relink_command"; then - # Preserve any variables that may affect compiler behavior - for var in $variables_saved_for_relink; do - if eval test -z \"\${$var+set}\"; then - relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" - elif eval var_value=\$$var; test -z "$var_value"; then - relink_command="$var=; export $var; $relink_command" - else - func_quote_for_eval "$var_value" - relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" - fi - done - relink_command="(cd `pwd`; $relink_command)" - relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` - fi - - # Quote $ECHO for shipping. - if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then - case $progpath in - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; - esac - qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` - else - qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` - fi - - # Only actually do things if not in dry run mode. - $opt_dry_run || { - # win32 will think the script is a binary if it has - # a .exe suffix, so we strip it off here. - case $output in - *.exe) func_stripname '' '.exe' "$output" - output=$func_stripname_result ;; - esac - # test for cygwin because mv fails w/o .exe extensions - case $host in - *cygwin*) - exeext=.exe - func_stripname '' '.exe' "$outputname" - outputname=$func_stripname_result ;; - *) exeext= ;; - esac - case $host in - *cygwin* | *mingw* ) - func_dirname_and_basename "$output" "" "." - output_name=$func_basename_result - output_path=$func_dirname_result - cwrappersource="$output_path/$objdir/lt-$output_name.c" - cwrapper="$output_path/$output_name.exe" - $RM $cwrappersource $cwrapper - trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 - - func_emit_cwrapperexe_src > $cwrappersource - - # The wrapper executable is built using the $host compiler, - # because it contains $host paths and files. If cross- - # compiling, it, like the target executable, must be - # executed on the $host or under an emulation environment. - $opt_dry_run || { - $LTCC $LTCFLAGS -o $cwrapper $cwrappersource - $STRIP $cwrapper - } - - # Now, create the wrapper script for func_source use: - func_ltwrapper_scriptname $cwrapper - $RM $func_ltwrapper_scriptname_result - trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 - $opt_dry_run || { - # note: this script will not be executed, so do not chmod. - if test "x$build" = "x$host" ; then - $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result - else - func_emit_wrapper no > $func_ltwrapper_scriptname_result - fi - } - ;; - * ) - $RM $output - trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 - - func_emit_wrapper no > $output - chmod +x $output - ;; - esac - } - exit $EXIT_SUCCESS - ;; - esac - - # See if we need to build an old-fashioned archive. - for oldlib in $oldlibs; do - - if test "$build_libtool_libs" = convenience; then - oldobjs="$libobjs_save $symfileobj" - addlibs="$convenience" - build_libtool_libs=no - else - if test "$build_libtool_libs" = module; then - oldobjs="$libobjs_save" - build_libtool_libs=no - else - oldobjs="$old_deplibs $non_pic_objects" - if test "$preload" = yes && test -f "$symfileobj"; then - oldobjs="$oldobjs $symfileobj" - fi - fi - addlibs="$old_convenience" - fi - - if test -n "$addlibs"; then - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" - - func_extract_archives $gentop $addlibs - oldobjs="$oldobjs $func_extract_archives_result" - fi - - # Do each command in the archive commands. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then - cmds=$old_archive_from_new_cmds - else - - # Add any objects from preloaded convenience libraries - if test -n "$dlprefiles"; then - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" - - func_extract_archives $gentop $dlprefiles - oldobjs="$oldobjs $func_extract_archives_result" - fi - - # POSIX demands no paths to be encoded in archives. We have - # to avoid creating archives with duplicate basenames if we - # might have to extract them afterwards, e.g., when creating a - # static archive out of a convenience library, or when linking - # the entirety of a libtool archive into another (currently - # not supported by libtool). - if (for obj in $oldobjs - do - func_basename "$obj" - $ECHO "$func_basename_result" - done | sort | sort -uc >/dev/null 2>&1); then - : - else - $ECHO "copying selected object files to avoid basename conflicts..." - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" - func_mkdir_p "$gentop" - save_oldobjs=$oldobjs - oldobjs= - counter=1 - for obj in $save_oldobjs - do - func_basename "$obj" - objbase="$func_basename_result" - case " $oldobjs " in - " ") oldobjs=$obj ;; - *[\ /]"$objbase "*) - while :; do - # Make sure we don't pick an alternate name that also - # overlaps. - newobj=lt$counter-$objbase - func_arith $counter + 1 - counter=$func_arith_result - case " $oldobjs " in - *[\ /]"$newobj "*) ;; - *) if test ! -f "$gentop/$newobj"; then break; fi ;; - esac - done - func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" - oldobjs="$oldobjs $gentop/$newobj" - ;; - *) oldobjs="$oldobjs $obj" ;; - esac - done - fi - eval cmds=\"$old_archive_cmds\" - - func_len " $cmds" - len=$func_len_result - if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then - cmds=$old_archive_cmds - else - # the command line is too long to link in one step, link in parts - func_verbose "using piecewise archive linking..." - save_RANLIB=$RANLIB - RANLIB=: - objlist= - concat_cmds= - save_oldobjs=$oldobjs - oldobjs= - # Is there a better way of finding the last object in the list? - for obj in $save_oldobjs - do - last_oldobj=$obj - done - eval test_cmds=\"$old_archive_cmds\" - func_len " $test_cmds" - len0=$func_len_result - len=$len0 - for obj in $save_oldobjs - do - func_len " $obj" - func_arith $len + $func_len_result - len=$func_arith_result - func_append objlist " $obj" - if test "$len" -lt "$max_cmd_len"; then - : - else - # the above command should be used before it gets too long - oldobjs=$objlist - if test "$obj" = "$last_oldobj" ; then - RANLIB=$save_RANLIB - fi - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" - objlist= - len=$len0 - fi - done - RANLIB=$save_RANLIB - oldobjs=$objlist - if test "X$oldobjs" = "X" ; then - eval cmds=\"\$concat_cmds\" - else - eval cmds=\"\$concat_cmds~\$old_archive_cmds\" - fi - fi - fi - func_execute_cmds "$cmds" 'exit $?' - done - - test -n "$generated" && \ - func_show_eval "${RM}r$generated" - - # Now create the libtool archive. - case $output in - *.la) - old_library= - test "$build_old_libs" = yes && old_library="$libname.$libext" - func_verbose "creating $output" - - # Preserve any variables that may affect compiler behavior - for var in $variables_saved_for_relink; do - if eval test -z \"\${$var+set}\"; then - relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" - elif eval var_value=\$$var; test -z "$var_value"; then - relink_command="$var=; export $var; $relink_command" - else - func_quote_for_eval "$var_value" - relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" - fi - done - # Quote the link command for shipping. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" - relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` - if test "$hardcode_automatic" = yes ; then - relink_command= - fi - - # Only create the output if not a dry run. - $opt_dry_run || { - for installed in no yes; do - if test "$installed" = yes; then - if test -z "$install_libdir"; then - break - fi - output="$output_objdir/$outputname"i - # Replace all uninstalled libtool libraries with the installed ones - newdependency_libs= - for deplib in $dependency_libs; do - case $deplib in - *.la) - func_basename "$deplib" - name="$func_basename_result" - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` - test -z "$libdir" && \ - func_fatal_error "\`$deplib' is not a valid libtool archive" - newdependency_libs="$newdependency_libs $libdir/$name" - ;; - *) newdependency_libs="$newdependency_libs $deplib" ;; - esac - done - dependency_libs="$newdependency_libs" - newdlfiles= - - for lib in $dlfiles; do - case $lib in - *.la) - func_basename "$lib" - name="$func_basename_result" - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` - test -z "$libdir" && \ - func_fatal_error "\`$lib' is not a valid libtool archive" - newdlfiles="$newdlfiles $libdir/$name" - ;; - *) newdlfiles="$newdlfiles $lib" ;; - esac - done - dlfiles="$newdlfiles" - newdlprefiles= - for lib in $dlprefiles; do - case $lib in - *.la) - # Only pass preopened files to the pseudo-archive (for - # eventual linking with the app. that links it) if we - # didn't already link the preopened objects directly into - # the library: - func_basename "$lib" - name="$func_basename_result" - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` - test -z "$libdir" && \ - func_fatal_error "\`$lib' is not a valid libtool archive" - newdlprefiles="$newdlprefiles $libdir/$name" - ;; - esac - done - dlprefiles="$newdlprefiles" - else - newdlfiles= - for lib in $dlfiles; do - case $lib in - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; - *) abs=`pwd`"/$lib" ;; - esac - newdlfiles="$newdlfiles $abs" - done - dlfiles="$newdlfiles" - newdlprefiles= - for lib in $dlprefiles; do - case $lib in - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; - *) abs=`pwd`"/$lib" ;; - esac - newdlprefiles="$newdlprefiles $abs" - done - dlprefiles="$newdlprefiles" - fi - $RM $output - # place dlname in correct position for cygwin - tdlname=$dlname - case $host,$output,$installed,$module,$dlname in - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; - esac - $ECHO > $output "\ -# $outputname - a libtool library file -# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='$tdlname' - -# Names of this library. -library_names='$library_names' - -# The name of the static archive. -old_library='$old_library' - -# Linker flags that can not go in dependency_libs. -inherited_linker_flags='$new_inherited_linker_flags' - -# Libraries that this one depends upon. -dependency_libs='$dependency_libs' - -# Names of additional weak libraries provided by this library -weak_library_names='$weak_libs' - -# Version information for $libname. -current=$current -age=$age -revision=$revision - -# Is this an already installed library? -installed=$installed - -# Should we warn about portability when linking against -modules? -shouldnotlink=$module - -# Files to dlopen/dlpreopen -dlopen='$dlfiles' -dlpreopen='$dlprefiles' - -# Directory that this library needs to be installed in: -libdir='$install_libdir'" - if test "$installed" = no && test "$need_relink" = yes; then - $ECHO >> $output "\ -relink_command=\"$relink_command\"" - fi - done - } - - # Do a symbolic link so that the libtool archive can be found in - # LD_LIBRARY_PATH before the program is installed. - func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' - ;; - esac - exit $EXIT_SUCCESS -} - -{ test "$mode" = link || test "$mode" = relink; } && - func_mode_link ${1+"$@"} - - -# func_mode_uninstall arg... -func_mode_uninstall () -{ - $opt_debug - RM="$nonopt" - files= - rmforce= - exit_status=0 - - # This variable tells wrapper scripts just to set variables rather - # than running their programs. - libtool_install_magic="$magic" - - for arg - do - case $arg in - -f) RM="$RM $arg"; rmforce=yes ;; - -*) RM="$RM $arg" ;; - *) files="$files $arg" ;; - esac - done - - test -z "$RM" && \ - func_fatal_help "you must specify an RM program" - - rmdirs= - - origobjdir="$objdir" - for file in $files; do - func_dirname "$file" "" "." - dir="$func_dirname_result" - if test "X$dir" = X.; then - objdir="$origobjdir" - else - objdir="$dir/$origobjdir" - fi - func_basename "$file" - name="$func_basename_result" - test "$mode" = uninstall && objdir="$dir" - - # Remember objdir for removal later, being careful to avoid duplicates - if test "$mode" = clean; then - case " $rmdirs " in - *" $objdir "*) ;; - *) rmdirs="$rmdirs $objdir" ;; - esac - fi - - # Don't error if the file doesn't exist and rm -f was used. - if { test -L "$file"; } >/dev/null 2>&1 || - { test -h "$file"; } >/dev/null 2>&1 || - test -f "$file"; then - : - elif test -d "$file"; then - exit_status=1 - continue - elif test "$rmforce" = yes; then - continue - fi - - rmfiles="$file" - - case $name in - *.la) - # Possibly a libtool archive, so verify it. - if func_lalib_p "$file"; then - func_source $dir/$name - - # Delete the libtool libraries and symlinks. - for n in $library_names; do - rmfiles="$rmfiles $objdir/$n" - done - test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" - - case "$mode" in - clean) - case " $library_names " in - # " " in the beginning catches empty $dlname - *" $dlname "*) ;; - *) rmfiles="$rmfiles $objdir/$dlname" ;; - esac - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" - ;; - uninstall) - if test -n "$library_names"; then - # Do each command in the postuninstall commands. - func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' - fi - - if test -n "$old_library"; then - # Do each command in the old_postuninstall commands. - func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' - fi - # FIXME: should reinstall the best remaining shared library. - ;; - esac - fi - ;; - - *.lo) - # Possibly a libtool object, so verify it. - if func_lalib_p "$file"; then - - # Read the .lo file - func_source $dir/$name - - # Add PIC object to the list of files to remove. - if test -n "$pic_object" && - test "$pic_object" != none; then - rmfiles="$rmfiles $dir/$pic_object" - fi - - # Add non-PIC object to the list of files to remove. - if test -n "$non_pic_object" && - test "$non_pic_object" != none; then - rmfiles="$rmfiles $dir/$non_pic_object" - fi - fi - ;; - - *) - if test "$mode" = clean ; then - noexename=$name - case $file in - *.exe) - func_stripname '' '.exe' "$file" - file=$func_stripname_result - func_stripname '' '.exe' "$name" - noexename=$func_stripname_result - # $file with .exe has already been added to rmfiles, - # add $file without .exe - rmfiles="$rmfiles $file" - ;; - esac - # Do a test to see if this is a libtool program. - if func_ltwrapper_p "$file"; then - if func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - relink_command= - func_source $func_ltwrapper_scriptname_result - rmfiles="$rmfiles $func_ltwrapper_scriptname_result" - else - relink_command= - func_source $dir/$noexename - fi - - # note $name still contains .exe if it was in $file originally - # as does the version of $file that was added into $rmfiles - rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" - if test "$fast_install" = yes && test -n "$relink_command"; then - rmfiles="$rmfiles $objdir/lt-$name" - fi - if test "X$noexename" != "X$name" ; then - rmfiles="$rmfiles $objdir/lt-${noexename}.c" - fi - fi - fi - ;; - esac - func_show_eval "$RM $rmfiles" 'exit_status=1' - done - objdir="$origobjdir" - - # Try to remove the ${objdir}s in the directories where we deleted files - for dir in $rmdirs; do - if test -d "$dir"; then - func_show_eval "rmdir $dir >/dev/null 2>&1" - fi - done - - exit $exit_status -} - -{ test "$mode" = uninstall || test "$mode" = clean; } && - func_mode_uninstall ${1+"$@"} - -test -z "$mode" && { - help="$generic_help" - func_fatal_help "you must specify a MODE" -} - -test -z "$exec_cmd" && \ - func_fatal_help "invalid operation mode \`$mode'" - -if test -n "$exec_cmd"; then - eval exec "$exec_cmd" - exit $EXIT_FAILURE -fi - -exit $exit_status - - -# The TAGs below are defined such that we never get into a situation -# in which we disable both kinds of libraries. Given conflicting -# choices, we go for a static library, that is the most portable, -# since we can't tell whether shared libraries were disabled because -# the user asked for that or because the platform doesn't support -# them. This is particularly important on AIX, because we don't -# support having both static and shared libraries enabled at the same -# time on that platform, so we default to a shared-only configuration. -# If a disable-shared tag is given, we'll fallback to a static-only -# configuration. But we'll never go from static-only to shared-only. - -# ### BEGIN LIBTOOL TAG CONFIG: disable-shared -build_libtool_libs=no -build_old_libs=yes -# ### END LIBTOOL TAG CONFIG: disable-shared - -# ### BEGIN LIBTOOL TAG CONFIG: disable-static -build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` -# ### END LIBTOOL TAG CONFIG: disable-static - -# Local Variables: -# mode:shell-script -# sh-indentation:2 -# End: -# vi:sw=2 - diff --git a/Build/source/libs/poppler/poppler-0.12.4/m4/acx_pthread.m4 b/Build/source/libs/poppler/poppler-0.12.4/m4/acx_pthread.m4 deleted file mode 100644 index 7ac8ffddc5b..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/m4/acx_pthread.m4 +++ /dev/null @@ -1,280 +0,0 @@ -##### http://autoconf-archive.cryp.to/acx_pthread.html -# -# SYNOPSIS -# -# ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) -# -# DESCRIPTION -# -# This macro figures out how to build C programs using POSIX threads. -# It sets the PTHREAD_LIBS output variable to the threads library and -# linker flags, and the PTHREAD_CFLAGS output variable to any special -# C compiler flags that are needed. (The user can also force certain -# compiler flags/libs to be tested by setting these environment -# variables.) -# -# Also sets PTHREAD_CC to any special C compiler that is needed for -# multi-threaded programs (defaults to the value of CC otherwise). -# (This is necessary on AIX to use the special cc_r compiler alias.) -# -# NOTE: You are assumed to not only compile your program with these -# flags, but also link it with them as well. e.g. you should link -# with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS -# $LIBS -# -# If you are only building threads programs, you may wish to use -# these variables in your default LIBS, CFLAGS, and CC: -# -# LIBS="$PTHREAD_LIBS $LIBS" -# CFLAGS="$CFLAGS $PTHREAD_CFLAGS" -# CC="$PTHREAD_CC" -# -# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute -# constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to -# that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX). -# -# ACTION-IF-FOUND is a list of shell commands to run if a threads -# library is found, and ACTION-IF-NOT-FOUND is a list of commands to -# run it if it is not found. If ACTION-IF-FOUND is not specified, the -# default action will define HAVE_PTHREAD. -# -# Please let the authors know if this macro fails on any platform, or -# if you have any other suggestions or comments. This macro was based -# on work by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) -# (with help from M. Frigo), as well as ac_pthread and hb_pthread -# macros posted by Alejandro Forero Cuervo to the autoconf macro -# repository. We are also grateful for the helpful feedback of -# numerous users. -# -# LAST MODIFICATION -# -# 2006-05-29 -# -# COPYLEFT -# -# Copyright (c) 2006 Steven G. Johnson <stevenj@alum.mit.edu> -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 2 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. -# -# As a special exception, the respective Autoconf Macro's copyright -# owner gives unlimited permission to copy, distribute and modify the -# configure scripts that are the output of Autoconf when processing -# the Macro. You need not follow the terms of the GNU General Public -# License when using or distributing such scripts, even though -# portions of the text of the Macro appear in them. The GNU General -# Public License (GPL) does govern all other use of the material that -# constitutes the Autoconf Macro. -# -# This special exception to the GPL applies to versions of the -# Autoconf Macro released by the Autoconf Macro Archive. When you -# make and distribute a modified version of the Autoconf Macro, you -# may extend this special exception to the GPL to apply to your -# modified version as well. - -AC_DEFUN([ACX_PTHREAD], [ -AC_REQUIRE([AC_CANONICAL_HOST]) -AC_LANG_SAVE -AC_LANG_C -acx_pthread_ok=no - -# We used to check for pthread.h first, but this fails if pthread.h -# requires special compiler flags (e.g. on True64 or Sequent). -# It gets checked for in the link test anyway. - -# First of all, check if the user has set any of the PTHREAD_LIBS, -# etcetera environment variables, and if threads linking works using -# them: -if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - save_LIBS="$LIBS" - LIBS="$PTHREAD_LIBS $LIBS" - AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS]) - AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes) - AC_MSG_RESULT($acx_pthread_ok) - if test x"$acx_pthread_ok" = xno; then - PTHREAD_LIBS="" - PTHREAD_CFLAGS="" - fi - LIBS="$save_LIBS" - CFLAGS="$save_CFLAGS" -fi - -# We must check for the threads library under a number of different -# names; the ordering is very important because some systems -# (e.g. DEC) have both -lpthread and -lpthreads, where one of the -# libraries is broken (non-POSIX). - -# Create a list of thread flags to try. Items starting with a "-" are -# C compiler flags, and other items are library names, except for "none" -# which indicates that we try without any flags at all, and "pthread-config" -# which is a program returning the flags for the Pth emulation library. - -acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" - -# The ordering *is* (sometimes) important. Some notes on the -# individual items follow: - -# pthreads: AIX (must check this before -lpthread) -# none: in case threads are in libc; should be tried before -Kthread and -# other compiler flags to prevent continual compiler warnings -# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) -# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) -# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) -# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) -# -pthreads: Solaris/gcc -# -mthreads: Mingw32/gcc, Lynx/gcc -# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it -# doesn't hurt to check since this sometimes defines pthreads too; -# also defines -D_REENTRANT) -# ... -mt is also the pthreads flag for HP/aCC -# pthread: Linux, etcetera -# --thread-safe: KAI C++ -# pthread-config: use pthread-config program (for GNU Pth library) - -case "${host_cpu}-${host_os}" in - *solaris*) - - # On Solaris (at least, for some versions), libc contains stubbed - # (non-functional) versions of the pthreads routines, so link-based - # tests will erroneously succeed. (We need to link with -pthreads/-mt/ - # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather - # a function called by this macro, so we could check for that, but - # who knows whether they'll stub that too in a future libc.) So, - # we'll just look for -pthreads and -lpthread first: - - acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" - ;; -esac - -if test x"$acx_pthread_ok" = xno; then -for flag in $acx_pthread_flags; do - - case $flag in - none) - AC_MSG_CHECKING([whether pthreads work without any flags]) - ;; - - -*) - AC_MSG_CHECKING([whether pthreads work with $flag]) - PTHREAD_CFLAGS="$flag" - ;; - - pthread-config) - AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no) - if test x"$acx_pthread_config" = xno; then continue; fi - PTHREAD_CFLAGS="`pthread-config --cflags`" - PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" - ;; - - *) - AC_MSG_CHECKING([for the pthreads library -l$flag]) - PTHREAD_LIBS="-l$flag" - ;; - esac - - save_LIBS="$LIBS" - save_CFLAGS="$CFLAGS" - LIBS="$PTHREAD_LIBS $LIBS" - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - - # Check for various functions. We must include pthread.h, - # since some functions may be macros. (On the Sequent, we - # need a special flag -Kthread to make this header compile.) - # We check for pthread_join because it is in -lpthread on IRIX - # while pthread_create is in libc. We check for pthread_attr_init - # due to DEC craziness with -lpthreads. We check for - # pthread_cleanup_push because it is one of the few pthread - # functions on Solaris that doesn't have a non-functional libc stub. - # We try pthread_create on general principles. - AC_TRY_LINK([#include <pthread.h>], - [pthread_t th; pthread_join(th, 0); - pthread_attr_init(0); pthread_cleanup_push(0, 0); - pthread_create(0,0,0,0); pthread_cleanup_pop(0); ], - [acx_pthread_ok=yes]) - - LIBS="$save_LIBS" - CFLAGS="$save_CFLAGS" - - AC_MSG_RESULT($acx_pthread_ok) - if test "x$acx_pthread_ok" = xyes; then - break; - fi - - PTHREAD_LIBS="" - PTHREAD_CFLAGS="" -done -fi - -# Various other checks: -if test "x$acx_pthread_ok" = xyes; then - save_LIBS="$LIBS" - LIBS="$PTHREAD_LIBS $LIBS" - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - - # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. - AC_MSG_CHECKING([for joinable pthread attribute]) - attr_name=unknown - for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do - AC_TRY_LINK([#include <pthread.h>], [int attr=$attr; return attr;], - [attr_name=$attr; break]) - done - AC_MSG_RESULT($attr_name) - if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then - AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name, - [Define to necessary symbol if this constant - uses a non-standard name on your system.]) - fi - - AC_MSG_CHECKING([if more special flags are required for pthreads]) - flag=no - case "${host_cpu}-${host_os}" in - *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; - *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; - esac - AC_MSG_RESULT(${flag}) - if test "x$flag" != xno; then - PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" - fi - - LIBS="$save_LIBS" - CFLAGS="$save_CFLAGS" - - # More AIX lossage: must compile with xlc_r or cc_r - if test x"$GCC" != xyes; then - AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC}) - else - PTHREAD_CC=$CC - fi -else - PTHREAD_CC="$CC" -fi - -AC_SUBST(PTHREAD_LIBS) -AC_SUBST(PTHREAD_CFLAGS) -AC_SUBST(PTHREAD_CC) - -# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: -if test x"$acx_pthread_ok" = xyes; then - ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1]) - : -else - acx_pthread_ok=no - $2 -fi -AC_LANG_RESTORE -])dnl ACX_PTHREAD diff --git a/Build/source/libs/poppler/poppler-0.12.4/m4/define-dir.m4 b/Build/source/libs/poppler/poppler-0.12.4/m4/define-dir.m4 deleted file mode 100644 index 5e8c5ae138b..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/m4/define-dir.m4 +++ /dev/null @@ -1,34 +0,0 @@ -dnl @synopsis AC_DEFINE_DIR(VARNAME, DIR [, DESCRIPTION]) -dnl -dnl This macro sets VARNAME to the expansion of the DIR variable, -dnl taking care of fixing up ${prefix} and such. -dnl -dnl VARNAME is then offered as both an output variable and a C -dnl preprocessor symbol. -dnl -dnl Example: -dnl -dnl AC_DEFINE_DIR([DATADIR], [datadir], [Where data are placed to.]) -dnl -dnl @category Misc -dnl @author Stepan Kasal <kasal@ucw.cz> -dnl @author Andreas Schwab <schwab@suse.de> -dnl @author Guido Draheim <guidod@gmx.de> -dnl @author Alexandre Oliva -dnl @version 2005-07-29 -dnl @license AllPermissive - -AC_DEFUN([AC_DEFINE_DIR], [ - prefix_NONE= - exec_prefix_NONE= - test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix - test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix -dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn -dnl refers to ${prefix}. Thus we have to use `eval' twice. - eval ac_define_dir="\"[$]$2\"" - eval ac_define_dir="\"$ac_define_dir\"" - AC_SUBST($1, "$ac_define_dir") - AC_DEFINE_UNQUOTED($1, "$ac_define_dir", [$3]) - test "$prefix_NONE" && prefix=NONE - test "$exec_prefix_NONE" && exec_prefix=NONE -]) diff --git a/Build/source/libs/poppler/poppler-0.12.4/m4/gtk-doc.m4 b/Build/source/libs/poppler/poppler-0.12.4/m4/gtk-doc.m4 deleted file mode 100644 index bfdfa1da69a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/m4/gtk-doc.m4 +++ /dev/null @@ -1,39 +0,0 @@ -dnl -*- mode: autoconf -*- - -# serial 1 - -dnl Usage: -dnl GTK_DOC_CHECK([minimum-gtk-doc-version]) -AC_DEFUN([GTK_DOC_CHECK], -[ - AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first - AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first - dnl for overriding the documentation installation directory - AC_ARG_WITH([html-dir], - AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, - [with_html_dir='${datadir}/gtk-doc/html']) - HTML_DIR="$with_html_dir" - AC_SUBST([HTML_DIR]) - - dnl enable/disable documentation building - AC_ARG_ENABLE([gtk-doc], - AS_HELP_STRING([--enable-gtk-doc], - [use gtk-doc to build documentation [[default=no]]]),, - [enable_gtk_doc=no]) - - if test x$enable_gtk_doc = xyes; then - ifelse([$1],[], - [PKG_CHECK_EXISTS([gtk-doc],, - AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))], - [PKG_CHECK_EXISTS([gtk-doc >= $1],, - AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))]) - fi - - AC_MSG_CHECKING([whether to build gtk-doc documentation]) - AC_MSG_RESULT($enable_gtk_doc) - - AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,) - - AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes]) - AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"]) -]) diff --git a/Build/source/libs/poppler/poppler-0.12.4/m4/libjpeg.m4 b/Build/source/libs/poppler/poppler-0.12.4/m4/libjpeg.m4 deleted file mode 100644 index 505abc2712e..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/m4/libjpeg.m4 +++ /dev/null @@ -1,108 +0,0 @@ -dnl Based on Xpdf configure.in and evince configure.ac -dnl Based on kde acinclude.m4.in, LGPL Licensed - -AC_DEFUN([AC_FIND_FILE], -[ -$3=NO -for i in $2; -do - for j in $1; - do - echo "configure: __oline__: $i/$j" >&AC_FD_CC - if test -r "$i/$j"; then - echo "taking that" >&AC_FD_CC - $3=$i - break 2 - fi - done -done -]) - -AC_DEFUN([KDE_FIND_JPEG_HELPER], -[ -AC_MSG_CHECKING([for libjpeg$2]) -AC_CACHE_VAL(ac_cv_lib_jpeg_$1, -[ -ac_save_LIBS="$LIBS" -LIBS="$all_libraries $USER_LDFLAGS -ljpeg$2 -lm" -ac_save_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS $all_includes $USER_INCLUDES" -AC_TRY_LINK( -[ -#ifdef __cplusplus -extern "C" { -#endif -void jpeg_CreateDecompress(); -#ifdef __cplusplus -} -#endif -], -[jpeg_CreateDecompress();], - eval "ac_cv_lib_jpeg_$1=-ljpeg$2", - eval "ac_cv_lib_jpeg_$1=no") -LIBS="$ac_save_LIBS" -CFLAGS="$ac_save_CFLAGS" -]) - -if eval "test ! \"`echo $ac_cv_lib_jpeg_$1`\" = no"; then - enable_libjpeg=yes - LIBJPEG_LIBS="$ac_cv_lib_jpeg_$1" - AC_MSG_RESULT($ac_cv_lib_jpeg_$1) -else - AC_MSG_RESULT(no) - $3 -fi -]) - - -AC_DEFUN([POPPLER_FIND_JPEG], -[ -dnl first look for libraries -KDE_FIND_JPEG_HELPER(6b, 6b, - KDE_FIND_JPEG_HELPER(normal, [], - [ - LIBJPEG_LIBS= - ] - ) -) - -dnl then search the headers (can't use simply AC_TRY_xxx, as jpeglib.h -dnl requires system dependent includes loaded before it) -AC_CHECK_HEADER([jpeglib.h], [jpeg_incdir=yes], [jpeg_incdir=NO]) -test "x$jpeg_incdir" = xNO && jpeg_incdir= - -dnl if headers _and_ libraries are missing, this is no error, and we -dnl continue with a warning (the user will get no jpeg support) -dnl if only one is missing, it means a configuration error, but we still -dnl only warn -if test -n "$jpeg_incdir" && test -n "$LIBJPEG_LIBS" ; then - AC_DEFINE_UNQUOTED(ENABLE_LIBJPEG, 1, [Define if you have libjpeg]) -else - if test -n "$jpeg_incdir" || test -n "$LIBJPEG_LIBS" ; then - AC_MSG_WARN([ -There is an installation error in jpeg support. You seem to have only one -of either the headers _or_ the libraries installed. You may need to either -provide correct --with-extra-... options, or the development package of -libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/ -Disabling JPEG support. -]) - else - AC_MSG_WARN([libjpeg not found. disable JPEG support.]) - fi - jpeg_incdir= - enable_libjpeg=no - LIBJPEG_LIBS= -fi - -AC_SUBST(LIBJPEG_LIBS) -AH_VERBATIM(_AC_CHECK_JPEG, -[/* - * jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system - * headers and I'm too lazy to write a configure test as long as only - * unixware is related - */ -#ifdef _UNIXWARE -#define HAVE_BOOLEAN -#endif -]) -]) diff --git a/Build/source/libs/poppler/poppler-0.12.4/m4/libpng.m4 b/Build/source/libs/poppler/poppler-0.12.4/m4/libpng.m4 deleted file mode 100644 index 2633c13963a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/m4/libpng.m4 +++ /dev/null @@ -1,99 +0,0 @@ -dnl Based on Xpdf configure.in and evince configure.ac -dnl Based on kde acinclude.m4.in, LGPL Licensed - -AC_DEFUN([AC_FIND_FILE], -[ -$3=NO -for i in $2; -do - for j in $1; - do - echo "configure: __oline__: $i/$j" >&AC_FD_CC - if test -r "$i/$j"; then - echo "taking that" >&AC_FD_CC - $3=$i - break 2 - fi - done -done -]) - -AC_DEFUN([FIND_PNG_HELPER], -[ -AC_MSG_CHECKING([for libpng]) -AC_CACHE_VAL(ac_cv_lib_png, -[ -ac_save_LIBS="$LIBS" -LIBS="$all_libraries $USER_LDFLAGS -lpng -lm" -ac_save_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS $all_includes $USER_INCLUDES" -AC_TRY_LINK( -[ -#ifdef __cplusplus -extern "C" { -#endif -void png_access_version_number(); -#ifdef __cplusplus -} -#endif -], -[png_access_version_number();], - eval "ac_cv_lib_png=-lpng", - eval "ac_cv_lib_png=no") -LIBS="$ac_save_LIBS" -CFLAGS="$ac_save_CFLAGS" -]) - -if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then - enable_libpng=yes - LIBPNG_LIBS="$ac_cv_lib_png" - AC_MSG_RESULT($ac_cv_lib_png) -else - AC_MSG_RESULT(no) - $1 -fi -]) - - -AC_DEFUN([POPPLER_FIND_PNG], -[ -dnl first look for libraries -FIND_PNG_HELPER( - FIND_PNG_HELPER(normal, [], - [ - LIBPNG_LIBS= - ] - ) -) - -dnl then search the headers (can't use simply AC_TRY_xxx, as png.h -dnl requires system dependent includes loaded before it) -png_incdirs="`eval echo $includedir` /usr/include /usr/local/include " -AC_FIND_FILE(png.h, $png_incdirs, png_incdir) -test "x$png_incdir" = xNO && png_incdir= - -dnl if headers _and_ libraries are missing, this is no error, and we -dnl continue with a warning (the user will get no png support) -dnl if only one is missing, it means a configuration error, but we still -dnl only warn -if test -n "$png_incdir" && test -n "$LIBPNG_LIBS" ; then - AC_DEFINE_UNQUOTED(ENABLE_LIBPNG, 1, [Define if you have libpng]) -else - if test -n "$png_incdir" || test -n "$LIBPNG_LIBS" ; then - AC_MSG_WARN([ -There is an installation error in png support. You seem to have only one of -either the headers _or_ the libraries installed. You may need to either provide -correct --with-extra-... options, or the development package of libpng. You -can get a source package of libpng from http://www.libpng.org/pub/png/libpng.html -Disabling PNG support. -]) - else - AC_MSG_WARN([libpng not found. disable PNG support.]) - fi - png_incdir= - enable_libpng=no - LIBPNG_LIBS= -fi - -AC_SUBST(LIBPNG_LIBS) -]) diff --git a/Build/source/libs/poppler/poppler-0.12.4/m4/libtool.m4 b/Build/source/libs/poppler/poppler-0.12.4/m4/libtool.m4 deleted file mode 100644 index 1e7ea47c080..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/m4/libtool.m4 +++ /dev/null @@ -1,7376 +0,0 @@ -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, -# 2006, 2007, 2008 Free Software Foundation, Inc. -# Written by Gordon Matzigkeit, 1996 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -m4_define([_LT_COPYING], [dnl -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, -# 2006, 2007, 2008 Free Software Foundation, Inc. -# Written by Gordon Matzigkeit, 1996 -# -# This file is part of GNU Libtool. -# -# GNU Libtool is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 2 of -# the License, or (at your option) any later version. -# -# As a special exception to the GNU General Public License, -# if you distribute this file as part of a program or library that -# is built using GNU Libtool, you may include this file under the -# same distribution terms that you use for the rest of that program. -# -# GNU Libtool is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Libtool; see the file COPYING. If not, a copy -# can be downloaded from http://www.gnu.org/licenses/gpl.html, or -# obtained by writing to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -]) - -# serial 56 LT_INIT - - -# LT_PREREQ(VERSION) -# ------------------ -# Complain and exit if this libtool version is less that VERSION. -m4_defun([LT_PREREQ], -[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, - [m4_default([$3], - [m4_fatal([Libtool version $1 or higher is required], - 63)])], - [$2])]) - - -# _LT_CHECK_BUILDDIR -# ------------------ -# Complain if the absolute build directory name contains unusual characters -m4_defun([_LT_CHECK_BUILDDIR], -[case `pwd` in - *\ * | *\ *) - AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; -esac -]) - - -# LT_INIT([OPTIONS]) -# ------------------ -AC_DEFUN([LT_INIT], -[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT -AC_BEFORE([$0], [LT_LANG])dnl -AC_BEFORE([$0], [LT_OUTPUT])dnl -AC_BEFORE([$0], [LTDL_INIT])dnl -m4_require([_LT_CHECK_BUILDDIR])dnl - -dnl Autoconf doesn't catch unexpanded LT_ macros by default: -m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl -m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl -dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 -dnl unless we require an AC_DEFUNed macro: -AC_REQUIRE([LTOPTIONS_VERSION])dnl -AC_REQUIRE([LTSUGAR_VERSION])dnl -AC_REQUIRE([LTVERSION_VERSION])dnl -AC_REQUIRE([LTOBSOLETE_VERSION])dnl -m4_require([_LT_PROG_LTMAIN])dnl - -dnl Parse OPTIONS -_LT_SET_OPTIONS([$0], [$1]) - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ltmain" - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -AC_SUBST(LIBTOOL)dnl - -_LT_SETUP - -# Only expand once: -m4_define([LT_INIT]) -])# LT_INIT - -# Old names: -AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) -AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_PROG_LIBTOOL], []) -dnl AC_DEFUN([AM_PROG_LIBTOOL], []) - - -# _LT_CC_BASENAME(CC) -# ------------------- -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -m4_defun([_LT_CC_BASENAME], -[for cc_temp in $1""; do - case $cc_temp in - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` -]) - - -# _LT_FILEUTILS_DEFAULTS -# ---------------------- -# It is okay to use these file commands and assume they have been set -# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. -m4_defun([_LT_FILEUTILS_DEFAULTS], -[: ${CP="cp -f"} -: ${MV="mv -f"} -: ${RM="rm -f"} -])# _LT_FILEUTILS_DEFAULTS - - -# _LT_SETUP -# --------- -m4_defun([_LT_SETUP], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -_LT_DECL([], [host_alias], [0], [The host system])dnl -_LT_DECL([], [host], [0])dnl -_LT_DECL([], [host_os], [0])dnl -dnl -_LT_DECL([], [build_alias], [0], [The build system])dnl -_LT_DECL([], [build], [0])dnl -_LT_DECL([], [build_os], [0])dnl -dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([LT_PATH_LD])dnl -AC_REQUIRE([LT_PATH_NM])dnl -dnl -AC_REQUIRE([AC_PROG_LN_S])dnl -test -z "$LN_S" && LN_S="ln -s" -_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl -dnl -AC_REQUIRE([LT_CMD_MAX_LEN])dnl -_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl -_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl -dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_CHECK_SHELL_FEATURES])dnl -m4_require([_LT_CMD_RELOAD])dnl -m4_require([_LT_CHECK_MAGIC_METHOD])dnl -m4_require([_LT_CMD_OLD_ARCHIVE])dnl -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl - -_LT_CONFIG_LIBTOOL_INIT([ -# See if we are running on zsh, and set the options which allow our -# commands through without removal of \ escapes INIT. -if test -n "\${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST -fi -]) -if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST -fi - -_LT_CHECK_OBJDIR - -m4_require([_LT_TAG_COMPILER])dnl -_LT_PROG_ECHO_BACKSLASH - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\([["`\\]]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to delay expansion of an escaped single quote. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -# Global variables: -ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a - -with_gnu_ld="$lt_cv_prog_gnu_ld" - -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$LD" && LD=ld -test -z "$ac_objext" && ac_objext=o - -_LT_CC_BASENAME([$compiler]) - -# Only perform the check for file, if the check method requires it -test -z "$MAGIC_CMD" && MAGIC_CMD=file -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - _LT_PATH_MAGIC - fi - ;; -esac - -# Use C for the default configuration in the libtool script -LT_SUPPORTED_TAG([CC]) -_LT_LANG_C_CONFIG -_LT_LANG_DEFAULT_CONFIG -_LT_CONFIG_COMMANDS -])# _LT_SETUP - - -# _LT_PROG_LTMAIN -# --------------- -# Note that this code is called both from `configure', and `config.status' -# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, -# `config.status' has no value for ac_aux_dir unless we are using Automake, -# so we pass a copy along to make sure it has a sensible value anyway. -m4_defun([_LT_PROG_LTMAIN], -[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl -_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) -ltmain="$ac_aux_dir/ltmain.sh" -])# _LT_PROG_LTMAIN - - -## ------------------------------------- ## -## Accumulate code for creating libtool. ## -## ------------------------------------- ## - -# So that we can recreate a full libtool script including additional -# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS -# in macros and then make a single call at the end using the `libtool' -# label. - - -# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) -# ---------------------------------------- -# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. -m4_define([_LT_CONFIG_LIBTOOL_INIT], -[m4_ifval([$1], - [m4_append([_LT_OUTPUT_LIBTOOL_INIT], - [$1 -])])]) - -# Initialize. -m4_define([_LT_OUTPUT_LIBTOOL_INIT]) - - -# _LT_CONFIG_LIBTOOL([COMMANDS]) -# ------------------------------ -# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. -m4_define([_LT_CONFIG_LIBTOOL], -[m4_ifval([$1], - [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], - [$1 -])])]) - -# Initialize. -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) - - -# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) -# ----------------------------------------------------- -m4_defun([_LT_CONFIG_SAVE_COMMANDS], -[_LT_CONFIG_LIBTOOL([$1]) -_LT_CONFIG_LIBTOOL_INIT([$2]) -]) - - -# _LT_FORMAT_COMMENT([COMMENT]) -# ----------------------------- -# Add leading comment marks to the start of each line, and a trailing -# full-stop to the whole comment if one is not present already. -m4_define([_LT_FORMAT_COMMENT], -[m4_ifval([$1], [ -m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], - [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) -)]) - - - -## ------------------------ ## -## FIXME: Eliminate VARNAME ## -## ------------------------ ## - - -# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) -# ------------------------------------------------------------------- -# CONFIGNAME is the name given to the value in the libtool script. -# VARNAME is the (base) name used in the configure script. -# VALUE may be 0, 1 or 2 for a computed quote escaped value based on -# VARNAME. Any other value will be used directly. -m4_define([_LT_DECL], -[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], - [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], - [m4_ifval([$1], [$1], [$2])]) - lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) - m4_ifval([$4], - [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) - lt_dict_add_subkey([lt_decl_dict], [$2], - [tagged?], [m4_ifval([$5], [yes], [no])])]) -]) - - -# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) -# -------------------------------------------------------- -m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) - - -# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) -# ------------------------------------------------ -m4_define([lt_decl_tag_varnames], -[_lt_decl_filter([tagged?], [yes], $@)]) - - -# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) -# --------------------------------------------------------- -m4_define([_lt_decl_filter], -[m4_case([$#], - [0], [m4_fatal([$0: too few arguments: $#])], - [1], [m4_fatal([$0: too few arguments: $#: $1])], - [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], - [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], - [lt_dict_filter([lt_decl_dict], $@)])[]dnl -]) - - -# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) -# -------------------------------------------------- -m4_define([lt_decl_quote_varnames], -[_lt_decl_filter([value], [1], $@)]) - - -# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) -# --------------------------------------------------- -m4_define([lt_decl_dquote_varnames], -[_lt_decl_filter([value], [2], $@)]) - - -# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) -# --------------------------------------------------- -m4_define([lt_decl_varnames_tagged], -[m4_assert([$# <= 2])dnl -_$0(m4_quote(m4_default([$1], [[, ]])), - m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), - m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) -m4_define([_lt_decl_varnames_tagged], -[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) - - -# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) -# ------------------------------------------------ -m4_define([lt_decl_all_varnames], -[_$0(m4_quote(m4_default([$1], [[, ]])), - m4_if([$2], [], - m4_quote(lt_decl_varnames), - m4_quote(m4_shift($@))))[]dnl -]) -m4_define([_lt_decl_all_varnames], -[lt_join($@, lt_decl_varnames_tagged([$1], - lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl -]) - - -# _LT_CONFIG_STATUS_DECLARE([VARNAME]) -# ------------------------------------ -# Quote a variable value, and forward it to `config.status' so that its -# declaration there will have the same value as in `configure'. VARNAME -# must have a single quote delimited value for this to work. -m4_define([_LT_CONFIG_STATUS_DECLARE], -[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) - - -# _LT_CONFIG_STATUS_DECLARATIONS -# ------------------------------ -# We delimit libtool config variables with single quotes, so when -# we write them to config.status, we have to be sure to quote all -# embedded single quotes properly. In configure, this macro expands -# each variable declared with _LT_DECL (and _LT_TAGDECL) into: -# -# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' -m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], -[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), - [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) - - -# _LT_LIBTOOL_TAGS -# ---------------- -# Output comment and list of tags supported by the script -m4_defun([_LT_LIBTOOL_TAGS], -[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl -available_tags="_LT_TAGS"dnl -]) - - -# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) -# ----------------------------------- -# Extract the dictionary values for VARNAME (optionally with TAG) and -# expand to a commented shell variable setting: -# -# # Some comment about what VAR is for. -# visible_name=$lt_internal_name -m4_define([_LT_LIBTOOL_DECLARE], -[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], - [description])))[]dnl -m4_pushdef([_libtool_name], - m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl -m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), - [0], [_libtool_name=[$]$1], - [1], [_libtool_name=$lt_[]$1], - [2], [_libtool_name=$lt_[]$1], - [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl -m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl -]) - - -# _LT_LIBTOOL_CONFIG_VARS -# ----------------------- -# Produce commented declarations of non-tagged libtool config variables -# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' -# script. Tagged libtool config variables (even for the LIBTOOL CONFIG -# section) are produced by _LT_LIBTOOL_TAG_VARS. -m4_defun([_LT_LIBTOOL_CONFIG_VARS], -[m4_foreach([_lt_var], - m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) - - -# _LT_LIBTOOL_TAG_VARS(TAG) -# ------------------------- -m4_define([_LT_LIBTOOL_TAG_VARS], -[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) - - -# _LT_TAGVAR(VARNAME, [TAGNAME]) -# ------------------------------ -m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) - - -# _LT_CONFIG_COMMANDS -# ------------------- -# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of -# variables for single and double quote escaping we saved from calls -# to _LT_DECL, we can put quote escaped variables declarations -# into `config.status', and then the shell code to quote escape them in -# for loops in `config.status'. Finally, any additional code accumulated -# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. -m4_defun([_LT_CONFIG_COMMANDS], -[AC_PROVIDE_IFELSE([LT_OUTPUT], - dnl If the libtool generation code has been placed in $CONFIG_LT, - dnl instead of duplicating it all over again into config.status, - dnl then we will have config.status run $CONFIG_LT later, so it - dnl needs to know what name is stored there: - [AC_CONFIG_COMMANDS([libtool], - [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], - dnl If the libtool generation code is destined for config.status, - dnl expand the accumulated commands and init code now: - [AC_CONFIG_COMMANDS([libtool], - [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) -])#_LT_CONFIG_COMMANDS - - -# Initialize. -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], -[ - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -sed_quote_subst='$sed_quote_subst' -double_quote_subst='$double_quote_subst' -delay_variable_subst='$delay_variable_subst' -_LT_CONFIG_STATUS_DECLARATIONS -LTCC='$LTCC' -LTCFLAGS='$LTCFLAGS' -compiler='$compiler_DEFAULT' - -# Quote evaled strings. -for var in lt_decl_all_varnames([[ \ -]], lt_decl_quote_varnames); do - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in - *[[\\\\\\\`\\"\\\$]]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -# Double-quote double-evaled strings. -for var in lt_decl_all_varnames([[ \ -]], lt_decl_dquote_varnames); do - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in - *[[\\\\\\\`\\"\\\$]]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -# Fix-up fallback echo if it was mangled by the above quoting rules. -case \$lt_ECHO in -*'\\\[$]0 --fallback-echo"')dnl " - lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` - ;; -esac - -_LT_OUTPUT_LIBTOOL_INIT -]) - - -# LT_OUTPUT -# --------- -# This macro allows early generation of the libtool script (before -# AC_OUTPUT is called), incase it is used in configure for compilation -# tests. -AC_DEFUN([LT_OUTPUT], -[: ${CONFIG_LT=./config.lt} -AC_MSG_NOTICE([creating $CONFIG_LT]) -cat >"$CONFIG_LT" <<_LTEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate a libtool stub with the current configuration. - -lt_cl_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_LTEOF - -cat >>"$CONFIG_LT" <<\_LTEOF -AS_SHELL_SANITIZE -_AS_PREPARE - -exec AS_MESSAGE_FD>&1 -exec AS_MESSAGE_LOG_FD>>config.log -{ - echo - AS_BOX([Running $as_me.]) -} >&AS_MESSAGE_LOG_FD - -lt_cl_help="\ -\`$as_me' creates a local libtool stub from the current configuration, -for use in further configure time tests before the real libtool is -generated. - -Usage: $[0] [[OPTIONS]] - - -h, --help print this help, then exit - -V, --version print version number, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - -Report bugs to <bug-libtool@gnu.org>." - -lt_cl_version="\ -m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl -m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) -configured by $[0], generated by m4_PACKAGE_STRING. - -Copyright (C) 2008 Free Software Foundation, Inc. -This config.lt script is free software; the Free Software Foundation -gives unlimited permision to copy, distribute and modify it." - -while test $[#] != 0 -do - case $[1] in - --version | --v* | -V ) - echo "$lt_cl_version"; exit 0 ;; - --help | --h* | -h ) - echo "$lt_cl_help"; exit 0 ;; - --debug | --d* | -d ) - debug=: ;; - --quiet | --q* | --silent | --s* | -q ) - lt_cl_silent=: ;; - - -*) AC_MSG_ERROR([unrecognized option: $[1] -Try \`$[0] --help' for more information.]) ;; - - *) AC_MSG_ERROR([unrecognized argument: $[1] -Try \`$[0] --help' for more information.]) ;; - esac - shift -done - -if $lt_cl_silent; then - exec AS_MESSAGE_FD>/dev/null -fi -_LTEOF - -cat >>"$CONFIG_LT" <<_LTEOF -_LT_OUTPUT_LIBTOOL_COMMANDS_INIT -_LTEOF - -cat >>"$CONFIG_LT" <<\_LTEOF -AC_MSG_NOTICE([creating $ofile]) -_LT_OUTPUT_LIBTOOL_COMMANDS -AS_EXIT(0) -_LTEOF -chmod +x "$CONFIG_LT" - -# configure is writing to config.log, but config.lt does its own redirection, -# appending to config.log, which fails on DOS, as config.log is still kept -# open by configure. Here we exec the FD to /dev/null, effectively closing -# config.log, so it can be properly (re)opened and appended to by config.lt. -if test "$no_create" != yes; then - lt_cl_success=: - test "$silent" = yes && - lt_config_lt_args="$lt_config_lt_args --quiet" - exec AS_MESSAGE_LOG_FD>/dev/null - $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false - exec AS_MESSAGE_LOG_FD>>config.log - $lt_cl_success || AS_EXIT(1) -fi -])# LT_OUTPUT - - -# _LT_CONFIG(TAG) -# --------------- -# If TAG is the built-in tag, create an initial libtool script with a -# default configuration from the untagged config vars. Otherwise add code -# to config.status for appending the configuration named by TAG from the -# matching tagged config vars. -m4_defun([_LT_CONFIG], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -_LT_CONFIG_SAVE_COMMANDS([ - m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl - m4_if(_LT_TAG, [C], [ - # See if we are running on zsh, and set the options which allow our - # commands through without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - - cfgfile="${ofile}T" - trap "$RM \"$cfgfile\"; exit 1" 1 2 15 - $RM "$cfgfile" - - cat <<_LT_EOF >> "$cfgfile" -#! $SHELL - -# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -_LT_COPYING -_LT_LIBTOOL_TAGS - -# ### BEGIN LIBTOOL CONFIG -_LT_LIBTOOL_CONFIG_VARS -_LT_LIBTOOL_TAG_VARS -# ### END LIBTOOL CONFIG - -_LT_EOF - - case $host_os in - aix3*) - cat <<\_LT_EOF >> "$cfgfile" -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -_LT_EOF - ;; - esac - - _LT_PROG_LTMAIN - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ - || (rm -f "$cfgfile"; exit 1) - - _LT_PROG_XSI_SHELLFNS - - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ - || (rm -f "$cfgfile"; exit 1) - - mv -f "$cfgfile" "$ofile" || - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" -], -[cat <<_LT_EOF >> "$ofile" - -dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded -dnl in a comment (ie after a #). -# ### BEGIN LIBTOOL TAG CONFIG: $1 -_LT_LIBTOOL_TAG_VARS(_LT_TAG) -# ### END LIBTOOL TAG CONFIG: $1 -_LT_EOF -])dnl /m4_if -], -[m4_if([$1], [], [ - PACKAGE='$PACKAGE' - VERSION='$VERSION' - TIMESTAMP='$TIMESTAMP' - RM='$RM' - ofile='$ofile'], []) -])dnl /_LT_CONFIG_SAVE_COMMANDS -])# _LT_CONFIG - - -# LT_SUPPORTED_TAG(TAG) -# --------------------- -# Trace this macro to discover what tags are supported by the libtool -# --tag option, using: -# autoconf --trace 'LT_SUPPORTED_TAG:$1' -AC_DEFUN([LT_SUPPORTED_TAG], []) - - -# C support is built-in for now -m4_define([_LT_LANG_C_enabled], []) -m4_define([_LT_TAGS], []) - - -# LT_LANG(LANG) -# ------------- -# Enable libtool support for the given language if not already enabled. -AC_DEFUN([LT_LANG], -[AC_BEFORE([$0], [LT_OUTPUT])dnl -m4_case([$1], - [C], [_LT_LANG(C)], - [C++], [_LT_LANG(CXX)], - [Java], [_LT_LANG(GCJ)], - [Fortran 77], [_LT_LANG(F77)], - [Fortran], [_LT_LANG(FC)], - [Windows Resource], [_LT_LANG(RC)], - [m4_ifdef([_LT_LANG_]$1[_CONFIG], - [_LT_LANG($1)], - [m4_fatal([$0: unsupported language: "$1"])])])dnl -])# LT_LANG - - -# _LT_LANG(LANGNAME) -# ------------------ -m4_defun([_LT_LANG], -[m4_ifdef([_LT_LANG_]$1[_enabled], [], - [LT_SUPPORTED_TAG([$1])dnl - m4_append([_LT_TAGS], [$1 ])dnl - m4_define([_LT_LANG_]$1[_enabled], [])dnl - _LT_LANG_$1_CONFIG($1)])dnl -])# _LT_LANG - - -# _LT_LANG_DEFAULT_CONFIG -# ----------------------- -m4_defun([_LT_LANG_DEFAULT_CONFIG], -[AC_PROVIDE_IFELSE([AC_PROG_CXX], - [LT_LANG(CXX)], - [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) - -AC_PROVIDE_IFELSE([AC_PROG_F77], - [LT_LANG(F77)], - [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) - -AC_PROVIDE_IFELSE([AC_PROG_FC], - [LT_LANG(FC)], - [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) - -dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal -dnl pulling things in needlessly. -AC_PROVIDE_IFELSE([AC_PROG_GCJ], - [LT_LANG(GCJ)], - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], - [LT_LANG(GCJ)], - [AC_PROVIDE_IFELSE([LT_PROG_GCJ], - [LT_LANG(GCJ)], - [m4_ifdef([AC_PROG_GCJ], - [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) - m4_ifdef([A][M_PROG_GCJ], - [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) - m4_ifdef([LT_PROG_GCJ], - [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) - -AC_PROVIDE_IFELSE([LT_PROG_RC], - [LT_LANG(RC)], - [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) -])# _LT_LANG_DEFAULT_CONFIG - -# Obsolete macros: -AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) -AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) -AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) -AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_CXX], []) -dnl AC_DEFUN([AC_LIBTOOL_F77], []) -dnl AC_DEFUN([AC_LIBTOOL_FC], []) -dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) - - -# _LT_TAG_COMPILER -# ---------------- -m4_defun([_LT_TAG_COMPILER], -[AC_REQUIRE([AC_PROG_CC])dnl - -_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl -_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl -_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl -_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC -])# _LT_TAG_COMPILER - - -# _LT_COMPILER_BOILERPLATE -# ------------------------ -# Check for compiler boilerplate output or warnings with -# the simple compiler test code. -m4_defun([_LT_COMPILER_BOILERPLATE], -[m4_require([_LT_DECL_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$RM conftest* -])# _LT_COMPILER_BOILERPLATE - - -# _LT_LINKER_BOILERPLATE -# ---------------------- -# Check for linker boilerplate output or warnings with -# the simple link test code. -m4_defun([_LT_LINKER_BOILERPLATE], -[m4_require([_LT_DECL_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$RM -r conftest* -])# _LT_LINKER_BOILERPLATE - -# _LT_REQUIRED_DARWIN_CHECKS -# ------------------------- -m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ - case $host_os in - rhapsody* | darwin*) - AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) - AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) - AC_CHECK_TOOL([LIPO], [lipo], [:]) - AC_CHECK_TOOL([OTOOL], [otool], [:]) - AC_CHECK_TOOL([OTOOL64], [otool64], [:]) - _LT_DECL([], [DSYMUTIL], [1], - [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) - _LT_DECL([], [NMEDIT], [1], - [Tool to change global to local symbols on Mac OS X]) - _LT_DECL([], [LIPO], [1], - [Tool to manipulate fat objects and archives on Mac OS X]) - _LT_DECL([], [OTOOL], [1], - [ldd/readelf like tool for Mach-O binaries on Mac OS X]) - _LT_DECL([], [OTOOL64], [1], - [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) - - AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], - [lt_cv_apple_cc_single_mod=no - if test -z "${LT_MULTI_MODULE}"; then - # By default we will add the -single_module flag. You can override - # by either setting the environment variable LT_MULTI_MODULE - # non-empty at configure time, or by adding -multi_module to the - # link flags. - rm -rf libconftest.dylib* - echo "int foo(void){return 1;}" > conftest.c - echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ --dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ - -dynamiclib -Wl,-single_module conftest.c 2>conftest.err - _lt_result=$? - if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then - lt_cv_apple_cc_single_mod=yes - else - cat conftest.err >&AS_MESSAGE_LOG_FD - fi - rm -rf libconftest.dylib* - rm -f conftest.* - fi]) - AC_CACHE_CHECK([for -exported_symbols_list linker flag], - [lt_cv_ld_exported_symbols_list], - [lt_cv_ld_exported_symbols_list=no - save_LDFLAGS=$LDFLAGS - echo "_main" > conftest.sym - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], - [lt_cv_ld_exported_symbols_list=yes], - [lt_cv_ld_exported_symbols_list=no]) - LDFLAGS="$save_LDFLAGS" - ]) - case $host_os in - rhapsody* | darwin1.[[012]]) - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; - darwin1.*) - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - darwin*) # darwin 5.x on - # if running on 10.5 or later, the deployment target defaults - # to the OS version, if on x86, and 10.4, the deployment - # target defaults to 10.4. Don't you love it? - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; - 10.[[012]]*) - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - 10.*) - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; - esac - ;; - esac - if test "$lt_cv_apple_cc_single_mod" = "yes"; then - _lt_dar_single_mod='$single_module' - fi - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' - else - _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' - fi - if test "$DSYMUTIL" != ":"; then - _lt_dsymutil='~$DSYMUTIL $lib || :' - else - _lt_dsymutil= - fi - ;; - esac -]) - - -# _LT_DARWIN_LINKER_FEATURES -# -------------------------- -# Checks for linker and compiler features on darwin -m4_defun([_LT_DARWIN_LINKER_FEATURES], -[ - m4_require([_LT_REQUIRED_DARWIN_CHECKS]) - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_automatic, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_TAGVAR(whole_archive_flag_spec, $1)='' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" - case $cc_basename in - ifort*) _lt_dar_can_shared=yes ;; - *) _lt_dar_can_shared=$GCC ;; - esac - if test "$_lt_dar_can_shared" = "yes"; then - output_verbose_link_cmd=echo - _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" - _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" - _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" - _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" - m4_if([$1], [CXX], -[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then - _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" - _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" - fi -],[]) - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi -]) - -# _LT_SYS_MODULE_PATH_AIX -# ----------------------- -# Links a minimal program and checks the executable -# for the system default hardcoded library path. In most cases, -# this is /usr/lib:/lib, but when the MPI compilers are used -# the location of the communication and MPI libs are included too. -# If we don't find anything, use the default library path according -# to the aix ld manual. -m4_defun([_LT_SYS_MODULE_PATH_AIX], -[m4_require([_LT_DECL_SED])dnl -AC_LINK_IFELSE(AC_LANG_PROGRAM,[ -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi],[]) -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi -])# _LT_SYS_MODULE_PATH_AIX - - -# _LT_SHELL_INIT(ARG) -# ------------------- -m4_define([_LT_SHELL_INIT], -[ifdef([AC_DIVERSION_NOTICE], - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], - [AC_DIVERT_PUSH(NOTICE)]) -$1 -AC_DIVERT_POP -])# _LT_SHELL_INIT - - -# _LT_PROG_ECHO_BACKSLASH -# ----------------------- -# Add some code to the start of the generated configure script which -# will find an echo command which doesn't interpret backslashes. -m4_defun([_LT_PROG_ECHO_BACKSLASH], -[_LT_SHELL_INIT([ -# Check that we are running under the correct shell. -SHELL=${CONFIG_SHELL-/bin/sh} - -case X$lt_ECHO in -X*--fallback-echo) - # Remove one level of quotation (which was required for Make). - ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` - ;; -esac - -ECHO=${lt_ECHO-echo} -if test "X[$]1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X[$]1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then - # Yippee, $ECHO works! - : -else - # Restart under the correct shell. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} -fi - -if test "X[$]1" = X--fallback-echo; then - # used as fallback echo - shift - cat <<_LT_EOF -[$]* -_LT_EOF - exit 0 -fi - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -if test -z "$lt_ECHO"; then - if test "X${echo_test_string+set}" != Xset; then - # find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if { echo_test_string=`eval $cmd`; } 2>/dev/null && - { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null - then - break - fi - done - fi - - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : - else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. - - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do - IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - ECHO="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" - - if test "X$ECHO" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && - echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - ECHO='print -r' - elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} - else - # Try using printf. - ECHO='printf %s\n' - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - ECHO="$CONFIG_SHELL [$]0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - ECHO="$CONFIG_SHELL [$]0 --fallback-echo" - else - # maybe with a smaller string... - prev=: - - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do - if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null - then - break - fi - prev="$cmd" - done - - if test "$prev" != 'sed 50q "[$]0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} - else - # Oops. We lost completely, so just stick with echo. - ECHO=echo - fi - fi - fi - fi - fi -fi - -# Copy echo and quote the copy suitably for passing to libtool from -# the Makefile, instead of quoting the original, which is used later. -lt_ECHO=$ECHO -if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then - lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" -fi - -AC_SUBST(lt_ECHO) -]) -_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) -_LT_DECL([], [ECHO], [1], - [An echo program that does not interpret backslashes]) -])# _LT_PROG_ECHO_BACKSLASH - - -# _LT_ENABLE_LOCK -# --------------- -m4_defun([_LT_ENABLE_LOCK], -[AC_ARG_ENABLE([libtool-lock], - [AS_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|s390*-*tpf*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*|s390*-*tpf*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_LANG_PUSH(C) - AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) - AC_LANG_POP]) - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -sparc*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then - LD="${LD-ld} -64" - fi - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; -esac - -need_locks="$enable_libtool_lock" -])# _LT_ENABLE_LOCK - - -# _LT_CMD_OLD_ARCHIVE -# ------------------- -m4_defun([_LT_CMD_OLD_ARCHIVE], -[AC_CHECK_TOOL(AR, ar, false) -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -_LT_DECL([], [AR], [1], [The archiver]) -_LT_DECL([], [AR_FLAGS], [1]) - -AC_CHECK_TOOL(STRIP, strip, :) -test -z "$STRIP" && STRIP=: -_LT_DECL([], [STRIP], [1], [A symbol stripping program]) - -AC_CHECK_TOOL(RANLIB, ranlib, :) -test -z "$RANLIB" && RANLIB=: -_LT_DECL([], [RANLIB], [1], - [Commands used to install an old-style archive]) - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" -fi -_LT_DECL([], [old_postinstall_cmds], [2]) -_LT_DECL([], [old_postuninstall_cmds], [2]) -_LT_TAGDECL([], [old_archive_cmds], [2], - [Commands used to build an old-style archive]) -])# _LT_CMD_OLD_ARCHIVE - - -# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) -# ---------------------------------------------------------------- -# Check whether the given compiler option works -AC_DEFUN([_LT_COMPILER_OPTION], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_SED])dnl -AC_CACHE_CHECK([$1], [$2], - [$2=no - m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$3" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - fi - $RM conftest* -]) - -if test x"[$]$2" = xyes; then - m4_if([$5], , :, [$5]) -else - m4_if([$6], , :, [$6]) -fi -])# _LT_COMPILER_OPTION - -# Old name: -AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) - - -# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [ACTION-SUCCESS], [ACTION-FAILURE]) -# ---------------------------------------------------- -# Check whether the given linker option works -AC_DEFUN([_LT_LINKER_OPTION], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_SED])dnl -AC_CACHE_CHECK([$1], [$2], - [$2=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $3" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&AS_MESSAGE_LOG_FD - $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - else - $2=yes - fi - fi - $RM -r conftest* - LDFLAGS="$save_LDFLAGS" -]) - -if test x"[$]$2" = xyes; then - m4_if([$4], , :, [$4]) -else - m4_if([$5], , :, [$5]) -fi -])# _LT_LINKER_OPTION - -# Old name: -AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) - - -# LT_CMD_MAX_LEN -#--------------- -AC_DEFUN([LT_CMD_MAX_LEN], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -# find the maximum length of command line arguments -AC_MSG_CHECKING([the maximum length of command line arguments]) -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - # Make teststring a little bigger before we do anything with it. - # a 1K string should be a reasonable start. - for i in 1 2 3 4 5 6 7 8 ; do - teststring=$teststring$teststring - done - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - # If test is not a shell built-in, we'll probably end up computing a - # maximum length that is only half of the actual maximum length, but - # we can't tell. - while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ - = "XX$teststring$teststring"; } >/dev/null 2>&1 && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - # Only check the string length outside the loop. - lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` - teststring= - # Add a significant safety factor because C++ compilers can tack on - # massive amounts of additional arguments before passing them to the - # linker. It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac -]) -if test -n $lt_cv_sys_max_cmd_len ; then - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) -else - AC_MSG_RESULT(none) -fi -max_cmd_len=$lt_cv_sys_max_cmd_len -_LT_DECL([], [max_cmd_len], [0], - [What is the maximum length of a command?]) -])# LT_CMD_MAX_LEN - -# Old name: -AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) - - -# _LT_HEADER_DLFCN -# ---------------- -m4_defun([_LT_HEADER_DLFCN], -[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl -])# _LT_HEADER_DLFCN - - -# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) -# ---------------------------------------------------------------- -m4_defun([_LT_TRY_DLOPEN_SELF], -[m4_require([_LT_HEADER_DLFCN])dnl -if test "$cross_compiling" = yes; then : - [$4] -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext <<_LT_EOF -[#line __oline__ "configure" -#include "confdefs.h" - -#if HAVE_DLFCN_H -#include <dlfcn.h> -#endif - -#include <stdio.h> - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - return status; -}] -_LT_EOF - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) $1 ;; - x$lt_dlneed_uscore) $2 ;; - x$lt_dlunknown|x*) $3 ;; - esac - else : - # compilation failed - $3 - fi -fi -rm -fr conftest* -])# _LT_TRY_DLOPEN_SELF - - -# LT_SYS_DLOPEN_SELF -# ------------------ -AC_DEFUN([LT_SYS_DLOPEN_SELF], -[m4_require([_LT_HEADER_DLFCN])dnl -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32* | cegcc*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ]) - ;; - - *) - AC_CHECK_FUNC([shl_load], - [lt_cv_dlopen="shl_load"], - [AC_CHECK_LIB([dld], [shl_load], - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], - [AC_CHECK_FUNC([dlopen], - [lt_cv_dlopen="dlopen"], - [AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], - [AC_CHECK_LIB([svld], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], - [AC_CHECK_LIB([dld], [dld_link], - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) - ]) - ]) - ]) - ]) - ]) - ;; - esac - - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes - else - enable_dlopen=no - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS="$LDFLAGS" - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS="$LIBS" - LIBS="$lt_cv_dlopen_libs $LIBS" - - AC_CACHE_CHECK([whether a program can dlopen itself], - lt_cv_dlopen_self, [dnl - _LT_TRY_DLOPEN_SELF( - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) - ]) - - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], - lt_cv_dlopen_self_static, [dnl - _LT_TRY_DLOPEN_SELF( - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) - ]) - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi -_LT_DECL([dlopen_support], [enable_dlopen], [0], - [Whether dlopen is supported]) -_LT_DECL([dlopen_self], [enable_dlopen_self], [0], - [Whether dlopen of programs is supported]) -_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], - [Whether dlopen of statically linked programs is supported]) -])# LT_SYS_DLOPEN_SELF - -# Old name: -AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) - - -# _LT_COMPILER_C_O([TAGNAME]) -# --------------------------- -# Check to see if options -c and -o are simultaneously supported by compiler. -# This macro does not hard code the compiler like AC_PROG_CC_C_O. -m4_defun([_LT_COMPILER_C_O], -[m4_require([_LT_DECL_SED])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_TAG_COMPILER])dnl -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no - $RM -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - fi - fi - chmod u+w . 2>&AS_MESSAGE_LOG_FD - $RM conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files - $RM out/* && rmdir out - cd .. - $RM -r conftest - $RM conftest* -]) -_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], - [Does compiler simultaneously support -c and -o options?]) -])# _LT_COMPILER_C_O - - -# _LT_COMPILER_FILE_LOCKS([TAGNAME]) -# ---------------------------------- -# Check to see if we can do hard links to lock some files if needed -m4_defun([_LT_COMPILER_FILE_LOCKS], -[m4_require([_LT_ENABLE_LOCK])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -_LT_COMPILER_C_O([$1]) - -hard_links="nottested" -if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - AC_MSG_CHECKING([if we can lock with hard links]) - hard_links=yes - $RM conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - AC_MSG_RESULT([$hard_links]) - if test "$hard_links" = no; then - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) - need_locks=warn - fi -else - need_locks=no -fi -_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) -])# _LT_COMPILER_FILE_LOCKS - - -# _LT_CHECK_OBJDIR -# ---------------- -m4_defun([_LT_CHECK_OBJDIR], -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], -[rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null]) -objdir=$lt_cv_objdir -_LT_DECL([], [objdir], [0], - [The name of the directory that contains temporary libtool files])dnl -m4_pattern_allow([LT_OBJDIR])dnl -AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", - [Define to the sub-directory in which libtool stores uninstalled libraries.]) -])# _LT_CHECK_OBJDIR - - -# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) -# -------------------------------------- -# Check hardcoding attributes. -m4_defun([_LT_LINKER_HARDCODE_LIBPATH], -[AC_MSG_CHECKING([how to hardcode library paths into programs]) -_LT_TAGVAR(hardcode_action, $1)= -if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || - test -n "$_LT_TAGVAR(runpath_var, $1)" || - test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then - - # We can hardcode non-existent directories. - if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && - test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then - # Linking always hardcodes the temporary library directory. - _LT_TAGVAR(hardcode_action, $1)=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - _LT_TAGVAR(hardcode_action, $1)=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - _LT_TAGVAR(hardcode_action, $1)=unsupported -fi -AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) - -if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || - test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi -_LT_TAGDECL([], [hardcode_action], [0], - [How to hardcode a shared library path into an executable]) -])# _LT_LINKER_HARDCODE_LIBPATH - - -# _LT_CMD_STRIPLIB -# ---------------- -m4_defun([_LT_CMD_STRIPLIB], -[m4_require([_LT_DECL_EGREP]) -striplib= -old_striplib= -AC_MSG_CHECKING([whether stripping libraries is possible]) -if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - AC_MSG_RESULT([yes]) -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - fi - ;; - *) - AC_MSG_RESULT([no]) - ;; - esac -fi -_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) -_LT_DECL([], [striplib], [1]) -])# _LT_CMD_STRIPLIB - - -# _LT_SYS_DYNAMIC_LINKER([TAG]) -# ----------------------------- -# PORTME Fill in your ld.so characteristics -m4_defun([_LT_SYS_DYNAMIC_LINKER], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_OBJDUMP])dnl -m4_require([_LT_DECL_SED])dnl -AC_MSG_CHECKING([dynamic linker characteristics]) -m4_if([$1], - [], [ -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` - else - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path/$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" - else - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' -BEGIN {RS=" "; FS="/|\n";} { - lt_foo=""; - lt_count=0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo="/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[[lt_foo]]++; } - if (lt_freq[[lt_foo]] == 1) { print lt_foo; } -}'` - sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi]) -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix[[4-9]]*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[[01]] | aix4.[[01]].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib<name>.so - # instead of lib<name>.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - case $host_cpu in - powerpc) - # Since July 2007 AmigaOS4 officially supports .so libraries. - # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - ;; - m68k) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - esac - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[[45]]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname~ - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; - fi' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' -m4_if([$1], [],[ - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[[123]]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[[01]]* | freebsdelf3.[[01]]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[[3-9]]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # Some binutils ld are patched to set DT_RUNPATH - save_LDFLAGS=$LDFLAGS - save_libdir=$libdir - eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ - LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], - [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], - [shlibpath_overrides_runpath=yes])]) - LDFLAGS=$save_LDFLAGS - libdir=$save_libdir - - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsdelf*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='NetBSD ld.elf_so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -*nto* | *qnx*) - version_type=qnx - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='ldqnx.so' - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[[89]] | openbsd2.[[89]].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -tpf*) - # TPF is a cross-target only. Preferred cross-host = GNU/Linux. - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -AC_MSG_RESULT([$dynamic_linker]) -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then - sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" -fi -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then - sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" -fi - -_LT_DECL([], [variables_saved_for_relink], [1], - [Variables whose values should be saved in libtool wrapper scripts and - restored at link time]) -_LT_DECL([], [need_lib_prefix], [0], - [Do we need the "lib" prefix for modules?]) -_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) -_LT_DECL([], [version_type], [0], [Library versioning type]) -_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) -_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) -_LT_DECL([], [shlibpath_overrides_runpath], [0], - [Is shlibpath searched before the hard-coded library search path?]) -_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) -_LT_DECL([], [library_names_spec], [1], - [[List of archive names. First name is the real one, the rest are links. - The last name is the one that the linker finds with -lNAME]]) -_LT_DECL([], [soname_spec], [1], - [[The coded name of the library, if different from the real name]]) -_LT_DECL([], [postinstall_cmds], [2], - [Command to use after installation of a shared archive]) -_LT_DECL([], [postuninstall_cmds], [2], - [Command to use after uninstallation of a shared archive]) -_LT_DECL([], [finish_cmds], [2], - [Commands used to finish a libtool library installation in a directory]) -_LT_DECL([], [finish_eval], [1], - [[As "finish_cmds", except a single script fragment to be evaled but - not shown]]) -_LT_DECL([], [hardcode_into_libs], [0], - [Whether we should hardcode library paths into libraries]) -_LT_DECL([], [sys_lib_search_path_spec], [2], - [Compile-time system search path for libraries]) -_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], - [Run-time system search path for libraries]) -])# _LT_SYS_DYNAMIC_LINKER - - -# _LT_PATH_TOOL_PREFIX(TOOL) -# -------------------------- -# find a file program which can recognize shared library -AC_DEFUN([_LT_PATH_TOOL_PREFIX], -[m4_require([_LT_DECL_EGREP])dnl -AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, -[case $MAGIC_CMD in -[[\\/*] | ?:[\\/]*]) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR -dnl $ac_dummy forces splitting on constant user-supplied paths. -dnl POSIX.2 word splitting is done only on the output of word expansions, -dnl not every word. This closes a longstanding sh security hole. - ac_dummy="m4_if([$2], , $PATH, [$2])" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$1; then - lt_cv_path_MAGIC_CMD="$ac_dir/$1" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <<_LT_EOF 1>&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -_LT_EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac]) -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - AC_MSG_RESULT($MAGIC_CMD) -else - AC_MSG_RESULT(no) -fi -_LT_DECL([], [MAGIC_CMD], [0], - [Used to examine libraries when file_magic_cmd begins with "file"])dnl -])# _LT_PATH_TOOL_PREFIX - -# Old name: -AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) - - -# _LT_PATH_MAGIC -# -------------- -# find a file program which can recognize a shared library -m4_defun([_LT_PATH_MAGIC], -[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) - else - MAGIC_CMD=: - fi -fi -])# _LT_PATH_MAGIC - - -# LT_PATH_LD -# ---------- -# find the pathname to the GNU or non-GNU linker -AC_DEFUN([LT_PATH_LD], -[AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_DECL_EGREP])dnl - -AC_ARG_WITH([gnu-ld], - [AS_HELP_STRING([--with-gnu-ld], - [assume the C compiler uses GNU ld @<:@default=no@:>@])], - [test "$withval" = no || with_gnu_ld=yes], - [with_gnu_ld=no])dnl - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by $CC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]]* | ?:[[\\/]]*) - re_direlt='/[[^/]][[^/]]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(lt_cv_path_LD, -[if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break - ;; - *) - test "$with_gnu_ld" != yes && break - ;; - esac - fi - done - IFS="$lt_save_ifs" -else - lt_cv_path_LD="$LD" # Let the user override the test with a path. -fi]) -LD="$lt_cv_path_LD" -if test -n "$LD"; then - AC_MSG_RESULT($LD) -else - AC_MSG_RESULT(no) -fi -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) -_LT_PATH_LD_GNU -AC_SUBST([LD]) - -_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) -])# LT_PATH_LD - -# Old names: -AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) -AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AM_PROG_LD], []) -dnl AC_DEFUN([AC_PROG_LD], []) - - -# _LT_PATH_LD_GNU -#- -------------- -m4_defun([_LT_PATH_LD_GNU], -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, -[# I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 </dev/null` in -*GNU* | *'with BFD'*) - lt_cv_prog_gnu_ld=yes - ;; -*) - lt_cv_prog_gnu_ld=no - ;; -esac]) -with_gnu_ld=$lt_cv_prog_gnu_ld -])# _LT_PATH_LD_GNU - - -# _LT_CMD_RELOAD -# -------------- -# find reload flag for linker -# -- PORTME Some linkers may need a different reload flag. -m4_defun([_LT_CMD_RELOAD], -[AC_CACHE_CHECK([for $LD option to reload object files], - lt_cv_ld_reload_flag, - [lt_cv_ld_reload_flag='-r']) -reload_flag=$lt_cv_ld_reload_flag -case $reload_flag in -"" | " "*) ;; -*) reload_flag=" $reload_flag" ;; -esac -reload_cmds='$LD$reload_flag -o $output$reload_objs' -case $host_os in - darwin*) - if test "$GCC" = yes; then - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' - else - reload_cmds='$LD$reload_flag -o $output$reload_objs' - fi - ;; -esac -_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl -_LT_DECL([], [reload_cmds], [2])dnl -])# _LT_CMD_RELOAD - - -# _LT_CHECK_MAGIC_METHOD -# ---------------------- -# how to check for library dependencies -# -- PORTME fill in with the dynamic library characteristics -m4_defun([_LT_CHECK_MAGIC_METHOD], -[m4_require([_LT_DECL_EGREP]) -m4_require([_LT_DECL_OBJDUMP]) -AC_CACHE_CHECK([how to recognize dependent libraries], -lt_cv_deplibs_check_method, -[lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# `unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# which responds to the $file_magic_cmd with a given extended regex. -# If you have `file' or equivalent on your system and you're not sure -# whether `pass_all' will *always* work, you probably want this one. - -case $host_os in -aix[[4-9]]*) - lt_cv_deplibs_check_method=pass_all - ;; - -beos*) - lt_cv_deplibs_check_method=pass_all - ;; - -bsdi[[45]]*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - -cygwin*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - ;; - -mingw* | pw32*) - # Base MSYS/MinGW do not provide the 'file' command needed by - # func_win32_libid shell function, so use a weaker test based on 'objdump', - # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -cegcc) - # use the weaker test based on 'objdump'. See mingw*. - lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[[3-9]]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -*nto* | *qnx*) - lt_cv_deplibs_check_method=pass_all - ;; - -openbsd*) - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -tpf*) - lt_cv_deplibs_check_method=pass_all - ;; -esac -]) -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown - -_LT_DECL([], [deplibs_check_method], [1], - [Method to check whether dependent libraries are shared objects]) -_LT_DECL([], [file_magic_cmd], [1], - [Command to use when deplibs_check_method == "file_magic"]) -])# _LT_CHECK_MAGIC_METHOD - - -# LT_PATH_NM -# ---------- -# find the pathname to a BSD- or MS-compatible name lister -AC_DEFUN([LT_PATH_NM], -[AC_REQUIRE([AC_PROG_CC])dnl -AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, -[if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - tmp_nm="$ac_dir/$lt_tmp_nm" - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in - */dev/null* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS="$lt_save_ifs" - done - : ${lt_cv_path_NM=no} -fi]) -if test "$lt_cv_path_NM" != "no"; then - NM="$lt_cv_path_NM" -else - # Didn't find any BSD compatible name lister, look for dumpbin. - AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) - AC_SUBST([DUMPBIN]) - if test "$DUMPBIN" != ":"; then - NM="$DUMPBIN" - fi -fi -test -z "$NM" && NM=nm -AC_SUBST([NM]) -_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl - -AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], - [lt_cv_nm_interface="BSD nm" - echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$ac_compile" 2>conftest.err) - cat conftest.err >&AS_MESSAGE_LOG_FD - (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) - (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) - cat conftest.err >&AS_MESSAGE_LOG_FD - (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) - cat conftest.out >&AS_MESSAGE_LOG_FD - if $GREP 'External.*some_variable' conftest.out > /dev/null; then - lt_cv_nm_interface="MS dumpbin" - fi - rm -f conftest*]) -])# LT_PATH_NM - -# Old names: -AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) -AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AM_PROG_NM], []) -dnl AC_DEFUN([AC_PROG_NM], []) - - -# LT_LIB_M -# -------- -# check for math library -AC_DEFUN([LT_LIB_M], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -LIBM= -case $host in -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) - # These system don't have libm, or don't need it - ;; -*-ncr-sysv4.3*) - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") - ;; -*) - AC_CHECK_LIB(m, cos, LIBM="-lm") - ;; -esac -AC_SUBST([LIBM]) -])# LT_LIB_M - -# Old name: -AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_CHECK_LIBM], []) - - -# _LT_COMPILER_NO_RTTI([TAGNAME]) -# ------------------------------- -m4_defun([_LT_COMPILER_NO_RTTI], -[m4_require([_LT_TAG_COMPILER])dnl - -_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= - -if test "$GCC" = yes; then - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' - - _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], - lt_cv_prog_compiler_rtti_exceptions, - [-fno-rtti -fno-exceptions], [], - [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) -fi -_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], - [Compiler flag to turn off builtin functions]) -])# _LT_COMPILER_NO_RTTI - - -# _LT_CMD_GLOBAL_SYMBOLS -# ---------------------- -m4_defun([_LT_CMD_GLOBAL_SYMBOLS], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([LT_PATH_NM])dnl -AC_REQUIRE([LT_PATH_LD])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_TAG_COMPILER])dnl - -# Check for command to grab the raw symbol name followed by C symbol from nm. -AC_MSG_CHECKING([command to parse $NM output from $compiler object]) -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], -[ -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[[BCDEGRST]]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[[BCDT]]' - ;; -cygwin* | mingw* | pw32* | cegcc*) - symcode='[[ABCDGISTW]]' - ;; -hpux*) - if test "$host_cpu" = ia64; then - symcode='[[ABCDEGRST]]' - fi - ;; -irix* | nonstopux*) - symcode='[[BCDEGRST]]' - ;; -osf*) - symcode='[[BCDEGQRST]]' - ;; -solaris*) - symcode='[[BDRT]]' - ;; -sco3.2v5*) - symcode='[[DT]]' - ;; -sysv4.2uw2*) - symcode='[[DT]]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[[ABDT]]' - ;; -sysv4) - symcode='[[DFNSTU]]' - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[[ABCDGIRSTW]]' ;; -esac - -# Transform an extracted symbol line into a proper C declaration. -# Some systems (esp. on ia64) link data and code symbols differently, -# so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# Try without a prefix underscore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - if test "$lt_cv_nm_interface" = "MS dumpbin"; then - # Fake it for dumpbin and say T for any non-static function - # and D for any global variable. - # Also find C++ and __fastcall symbols from MSVC++, - # which start with @ or ?. - lt_cv_sys_global_symbol_pipe="$AWK ['"\ -" {last_section=section; section=\$ 3};"\ -" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ -" \$ 0!~/External *\|/{next};"\ -" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ -" {if(hide[section]) next};"\ -" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ -" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ -" s[1]~/^[@?]/{print s[1], s[1]; next};"\ -" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ -" ' prfx=^$ac_symprfx]" - else - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - fi - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext <<_LT_EOF -#ifdef __cplusplus -extern "C" { -#endif -char nm_test_var; -void nm_test_func(void); -void nm_test_func(void){} -#ifdef __cplusplus -} -#endif -int main(){nm_test_var='a';nm_test_func();return(0);} -_LT_EOF - - if AC_TRY_EVAL(ac_compile); then - # Now try to grab the symbols. - nlist=conftest.nm - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if $GREP ' nm_test_var$' "$nlist" >/dev/null; then - if $GREP ' nm_test_func$' "$nlist" >/dev/null; then - cat <<_LT_EOF > conftest.$ac_ext -#ifdef __cplusplus -extern "C" { -#endif - -_LT_EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' - - cat <<_LT_EOF >> conftest.$ac_ext - -/* The mapping between symbol names and symbols. */ -const struct { - const char *name; - void *address; -} -lt__PROGRAM__LTX_preloaded_symbols[[]] = -{ - { "@PROGRAM@", (void *) 0 }, -_LT_EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext - cat <<\_LT_EOF >> conftest.$ac_ext - {0, (void *) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt__PROGRAM__LTX_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif -_LT_EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_save_LIBS="$LIBS" - lt_save_CFLAGS="$CFLAGS" - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then - pipe_works=yes - fi - LIBS="$lt_save_LIBS" - CFLAGS="$lt_save_CFLAGS" - else - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD - fi - else - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD - cat conftest.$ac_ext >&5 - fi - rm -rf conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done -]) -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - AC_MSG_RESULT(failed) -else - AC_MSG_RESULT(ok) -fi - -_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], - [Take the output of nm and produce a listing of raw symbols and C names]) -_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], - [Transform the output of nm in a proper C declaration]) -_LT_DECL([global_symbol_to_c_name_address], - [lt_cv_sys_global_symbol_to_c_name_address], [1], - [Transform the output of nm in a C name address pair]) -_LT_DECL([global_symbol_to_c_name_address_lib_prefix], - [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], - [Transform the output of nm in a C name address pair when lib prefix is needed]) -]) # _LT_CMD_GLOBAL_SYMBOLS - - -# _LT_COMPILER_PIC([TAGNAME]) -# --------------------------- -m4_defun([_LT_COMPILER_PIC], -[m4_require([_LT_TAG_COMPILER])dnl -_LT_TAGVAR(lt_prog_compiler_wl, $1)= -_LT_TAGVAR(lt_prog_compiler_pic, $1)= -_LT_TAGVAR(lt_prog_compiler_static, $1)= - -AC_MSG_CHECKING([for $compiler option to produce PIC]) -m4_if([$1], [CXX], [ - # C++ specific cases for pic, static, wl, etc. - if test "$GXX" = yes; then - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - m68k) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - esac - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag - # sets the default TLS model and affects inlining. - case $host_cpu in - hppa*64*) - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - *qnx* | *nto*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - else - case $host_os in - aix[[4-9]]*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" - ;; - esac - ;; - dgux*) - case $cc_basename in - ec++*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - if test "$host_cpu" != ia64; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - fi - ;; - aCC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # KAI C++ Compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - ecpc* ) - # old Intel C++ for x86_64 which still supported -KPIC. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - icpc* ) - # Intel C++, used to be incompatible with GCC. - # ICC 10 doesn't accept -KPIC any more. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - xlc* | xlC*) - # IBM XL 8.0 on PPC - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd* | netbsdelf*-gnu) - ;; - *qnx* | *nto*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - cxx*) - # Digital/Compaq C++ - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - lcc*) - # Lucid - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - *) - ;; - esac - ;; - vxworks*) - ;; - *) - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -], -[ - if test "$GCC" = yes; then - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - m68k) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - esac - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag - # sets the default TLS model and affects inlining. - case $host_cpu in - hppa*64*) - # +Z the default - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - enable_shared=no - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - ;; - - hpux9* | hpux10* | hpux11*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC (with -KPIC) is the default. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - # old Intel for x86_64 which still supported -KPIC. - ecc*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - # icc used to be incompatible with GCC. - # ICC 10 doesn't accept -KPIC any more. - icc* | ifort*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - # Lahey Fortran 8.1. - lf95*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' - _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - ccc*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All Alpha code is PIC. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - xl*) - # IBM XL C 8.0/Fortran 10.1 on PPC - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='' - ;; - esac - ;; - esac - ;; - - newsos6) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - - osf3* | osf4* | osf5*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All OSF/1 code is PIC. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - rdos*) - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - solaris*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; - *) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; - esac - ;; - - sunos4*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - unicos*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - - uts4*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - *) - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -]) -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" - ;; -esac -AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) -_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], - [How to pass a linker flag through the compiler]) - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then - _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], - [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], - [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], - [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in - "" | " "*) ;; - *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; - esac], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) -fi -_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], - [Additional compiler flags for building library objects]) - -# -# Check to make sure the static flag actually works. -# -wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" -_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], - _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), - $lt_tmp_static_flag, - [], - [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) -_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], - [Compiler flag to prevent dynamic linking]) -])# _LT_COMPILER_PIC - - -# _LT_LINKER_SHLIBS([TAGNAME]) -# ---------------------------- -# See if the linker supports building shared libraries. -m4_defun([_LT_LINKER_SHLIBS], -[AC_REQUIRE([LT_PATH_LD])dnl -AC_REQUIRE([LT_PATH_NM])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl -m4_require([_LT_TAG_COMPILER])dnl -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) -m4_if([$1], [CXX], [ - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - case $host_os in - aix[[4-9]]*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' - else - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" - ;; - cygwin* | mingw* | cegcc*) - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' - ;; - linux* | k*bsd*-gnu) - _LT_TAGVAR(link_all_deplibs, $1)=no - ;; - *) - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] -], [ - runpath_var= - _LT_TAGVAR(allow_undefined_flag, $1)= - _LT_TAGVAR(always_export_symbols, $1)=no - _LT_TAGVAR(archive_cmds, $1)= - _LT_TAGVAR(archive_expsym_cmds, $1)= - _LT_TAGVAR(compiler_needs_object, $1)=no - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - _LT_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(hardcode_automatic, $1)=no - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= - _LT_TAGVAR(hardcode_libdir_separator, $1)= - _LT_TAGVAR(hardcode_minus_L, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_TAGVAR(inherit_rpath, $1)=no - _LT_TAGVAR(link_all_deplibs, $1)=unknown - _LT_TAGVAR(module_cmds, $1)= - _LT_TAGVAR(module_expsym_cmds, $1)= - _LT_TAGVAR(old_archive_from_new_cmds, $1)= - _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= - _LT_TAGVAR(thread_safe_flag_spec, $1)= - _LT_TAGVAR(whole_archive_flag_spec, $1)= - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - _LT_TAGVAR(include_expsyms, $1)= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - # Exclude shared library initialization/finalization symbols. -dnl Note also adjust exclude_expsyms for C++ above. - extract_expsyms_cmds= - - case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - linux* | k*bsd*-gnu) - _LT_TAGVAR(link_all_deplibs, $1)=no - ;; - esac - - _LT_TAGVAR(ld_shlibs, $1)=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - _LT_TAGVAR(whole_archive_flag_spec, $1)= - fi - supports_anon_versioning=no - case `$LD -v 2>&1` in - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix[[3-9]]*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - _LT_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -_LT_EOF - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='' - ;; - m68k) - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - ;; - - beos*) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=no - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - interix[[3-9]]*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | tpf* | k*bsd*-gnu) - tmp_diet=no - if test "$host_os" = linux-dietlibc; then - case $cc_basename in - diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) - esac - fi - if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ - && test "$tmp_diet" = no - then - tmp_addflag= - tmp_sharedflag='-shared' - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - lf95*) # Lahey Fortran 8.1 - _LT_TAGVAR(whole_archive_flag_spec, $1)= - tmp_sharedflag='--shared' ;; - xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) - tmp_sharedflag='-qmkshrobj' - tmp_addflag= ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' - _LT_TAGVAR(compiler_needs_object, $1)=yes - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - esac - _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test "x$supports_anon_versioning" = xyes; then - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - - case $cc_basename in - xlf*) - # IBM XL Fortran 10.1 on PPC cannot create shared libs itself - _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' - _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' - if test "x$supports_anon_versioning" = xyes; then - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' - fi - ;; - esac - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then - _LT_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) - _LT_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - sunos4*) - _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - - if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then - runpath_var= - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=yes - _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - _LT_TAGVAR(hardcode_direct, $1)=unsupported - fi - ;; - - aix[[4-9]]*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' - else - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - _LT_TAGVAR(archive_cmds, $1)='' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' - - if test "$GCC" = yes; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && - strings "$collect2name" | $GREP resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - _LT_TAGVAR(link_all_deplibs, $1)=no - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - _LT_TAGVAR(always_export_symbols, $1)=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - _LT_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an - # empty executable. - _LT_SYS_MODULE_PATH_AIX - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' - _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an - # empty executable. - _LT_SYS_MODULE_PATH_AIX - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - # This is similar to how AIX traditionally builds its shared libraries. - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='' - ;; - m68k) - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - ;; - - bsdi[[45]]*) - _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' - # FIXME: Should let the user specify the lib program. - _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' - _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - ;; - - darwin* | rhapsody*) - _LT_DARWIN_LINKER_FEATURES($1) - ;; - - dgux*) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - freebsd1*) - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - hpux9*) - if test "$GCC" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(hardcode_direct, $1)=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - # Try to use the -exported_symbol ld option, if it does not - # work, assume that -exports_file does not work either and - # implicitly export all symbols. - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" - AC_LINK_IFELSE(int foo(void) {}, - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' - ) - LDFLAGS="$save_LDFLAGS" - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(inherit_rpath, $1)=yes - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - newsos6) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *nto* | *qnx*) - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - else - case $host_os in - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - ;; - esac - fi - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - os2*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - else - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ - $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' - - # Both c and cxx compiler support -rpath directly - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - solaris*) - _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' - if test "$GCC" = yes; then - wlarc='${wl}' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - else - case `$CC -V 2>&1` in - *"Compilers 5.0"*) - wlarc='' - _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' - ;; - *) - wlarc='${wl}' - _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - ;; - esac - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - fi - ;; - esac - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4) - case $host_vendor in - sni) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' - _LT_TAGVAR(hardcode_direct, $1)=no - ;; - motorola) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4.3*) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - _LT_TAGVAR(ld_shlibs, $1)=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - - if test x$host_vendor = xsni; then - case $host in - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' - ;; - esac - fi - fi -]) -AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) -test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no - -_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld - -_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl -_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl -_LT_DECL([], [extract_expsyms_cmds], [2], - [The commands to extract the exported symbol list from a shared archive]) - -# -# Do we need to explicitly link libc? -# -case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in -x|xyes) - # Assume -lc should be added - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $_LT_TAGVAR(archive_cmds, $1) in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - AC_MSG_CHECKING([whether -lc should be explicitly linked in]) - $RM conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) - pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) - _LT_TAGVAR(allow_undefined_flag, $1)= - if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) - then - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - else - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - fi - _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $RM conftest* - AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) - ;; - esac - fi - ;; -esac - -_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], - [Whether or not to add -lc for building shared libraries]) -_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], - [enable_shared_with_static_runtimes], [0], - [Whether or not to disallow shared libs when runtime libs are static]) -_LT_TAGDECL([], [export_dynamic_flag_spec], [1], - [Compiler flag to allow reflexive dlopens]) -_LT_TAGDECL([], [whole_archive_flag_spec], [1], - [Compiler flag to generate shared objects directly from archives]) -_LT_TAGDECL([], [compiler_needs_object], [1], - [Whether the compiler copes with passing no objects directly]) -_LT_TAGDECL([], [old_archive_from_new_cmds], [2], - [Create an old-style archive from a shared archive]) -_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], - [Create a temporary old-style archive to link instead of a shared archive]) -_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) -_LT_TAGDECL([], [archive_expsym_cmds], [2]) -_LT_TAGDECL([], [module_cmds], [2], - [Commands used to build a loadable module if different from building - a shared archive.]) -_LT_TAGDECL([], [module_expsym_cmds], [2]) -_LT_TAGDECL([], [with_gnu_ld], [1], - [Whether we are building with GNU ld or not]) -_LT_TAGDECL([], [allow_undefined_flag], [1], - [Flag that allows shared libraries with undefined symbols to be built]) -_LT_TAGDECL([], [no_undefined_flag], [1], - [Flag that enforces no undefined symbols]) -_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], - [Flag to hardcode $libdir into a binary during linking. - This must work even if $libdir does not exist]) -_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], - [[If ld is used when linking, flag to hardcode $libdir into a binary - during linking. This must work even if $libdir does not exist]]) -_LT_TAGDECL([], [hardcode_libdir_separator], [1], - [Whether we need a single "-rpath" flag with a separated argument]) -_LT_TAGDECL([], [hardcode_direct], [0], - [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes - DIR into the resulting binary]) -_LT_TAGDECL([], [hardcode_direct_absolute], [0], - [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes - DIR into the resulting binary and the resulting library dependency is - "absolute", i.e impossible to change by setting ${shlibpath_var} if the - library is relocated]) -_LT_TAGDECL([], [hardcode_minus_L], [0], - [Set to "yes" if using the -LDIR flag during linking hardcodes DIR - into the resulting binary]) -_LT_TAGDECL([], [hardcode_shlibpath_var], [0], - [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR - into the resulting binary]) -_LT_TAGDECL([], [hardcode_automatic], [0], - [Set to "yes" if building a shared library automatically hardcodes DIR - into the library and all subsequent libraries and executables linked - against it]) -_LT_TAGDECL([], [inherit_rpath], [0], - [Set to yes if linker adds runtime paths of dependent libraries - to runtime path list]) -_LT_TAGDECL([], [link_all_deplibs], [0], - [Whether libtool must link a program against all its dependency libraries]) -_LT_TAGDECL([], [fix_srcfile_path], [1], - [Fix the shell variable $srcfile for the compiler]) -_LT_TAGDECL([], [always_export_symbols], [0], - [Set to "yes" if exported symbols are required]) -_LT_TAGDECL([], [export_symbols_cmds], [2], - [The commands to list exported symbols]) -_LT_TAGDECL([], [exclude_expsyms], [1], - [Symbols that should not be listed in the preloaded symbols]) -_LT_TAGDECL([], [include_expsyms], [1], - [Symbols that must always be exported]) -_LT_TAGDECL([], [prelink_cmds], [2], - [Commands necessary for linking programs (against libraries) with templates]) -_LT_TAGDECL([], [file_list_spec], [1], - [Specify filename containing input files]) -dnl FIXME: Not yet implemented -dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], -dnl [Compiler flag to generate thread safe objects]) -])# _LT_LINKER_SHLIBS - - -# _LT_LANG_C_CONFIG([TAG]) -# ------------------------ -# Ensure that the configuration variables for a C compiler are suitably -# defined. These variables are subsequently used by _LT_CONFIG to write -# the compiler configuration to `libtool'. -m4_defun([_LT_LANG_C_CONFIG], -[m4_require([_LT_DECL_EGREP])dnl -lt_save_CC="$CC" -AC_LANG_PUSH(C) - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - -_LT_TAG_COMPILER -# Save the default compiler, since it gets overwritten when the other -# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. -compiler_DEFAULT=$CC - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - _LT_COMPILER_NO_RTTI($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - LT_SYS_DLOPEN_SELF - _LT_CMD_STRIPLIB - - # Report which library types will actually be built - AC_MSG_CHECKING([if libtool supports shared libraries]) - AC_MSG_RESULT([$can_build_shared]) - - AC_MSG_CHECKING([whether to build shared libraries]) - test "$can_build_shared" = "no" && enable_shared=no - - # On AIX, shared libraries and static libraries use the same namespace, and - # are all built from PIC. - case $host_os in - aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - - aix[[4-9]]*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; - esac - AC_MSG_RESULT([$enable_shared]) - - AC_MSG_CHECKING([whether to build static libraries]) - # Make sure either enable_shared or enable_static is yes. - test "$enable_shared" = yes || enable_static=yes - AC_MSG_RESULT([$enable_static]) - - _LT_CONFIG($1) -fi -AC_LANG_POP -CC="$lt_save_CC" -])# _LT_LANG_C_CONFIG - - -# _LT_PROG_CXX -# ------------ -# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ -# compiler, we have our own version here. -m4_defun([_LT_PROG_CXX], -[ -pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) -AC_PROG_CXX -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - AC_PROG_CXXCPP -else - _lt_caught_CXX_error=yes -fi -popdef([AC_MSG_ERROR]) -])# _LT_PROG_CXX - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([_LT_PROG_CXX], []) - - -# _LT_LANG_CXX_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for a C++ compiler are suitably -# defined. These variables are subsequently used by _LT_CONFIG to write -# the compiler configuration to `libtool'. -m4_defun([_LT_LANG_CXX_CONFIG], -[AC_REQUIRE([_LT_PROG_CXX])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_EGREP])dnl - -AC_LANG_PUSH(C++) -_LT_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_TAGVAR(allow_undefined_flag, $1)= -_LT_TAGVAR(always_export_symbols, $1)=no -_LT_TAGVAR(archive_expsym_cmds, $1)= -_LT_TAGVAR(compiler_needs_object, $1)=no -_LT_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_TAGVAR(hardcode_direct, $1)=no -_LT_TAGVAR(hardcode_direct_absolute, $1)=no -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= -_LT_TAGVAR(hardcode_libdir_separator, $1)= -_LT_TAGVAR(hardcode_minus_L, $1)=no -_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported -_LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(inherit_rpath, $1)=no -_LT_TAGVAR(module_cmds, $1)= -_LT_TAGVAR(module_expsym_cmds, $1)= -_LT_TAGVAR(link_all_deplibs, $1)=unknown -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(no_undefined_flag, $1)= -_LT_TAGVAR(whole_archive_flag_spec, $1)= -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for C++ test sources. -ac_ext=cpp - -# Object file extension for compiled C++ test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# No sense in running all these tests if we already determined that -# the CXX compiler isn't working. Some variables (like enable_shared) -# are currently assumed to apply to all compilers on this platform, -# and will be corrupted by setting them based on a non-working compiler. -if test "$_lt_caught_CXX_error" != yes; then - # Code to be used in simple compile tests - lt_simple_compile_test_code="int some_variable = 0;" - - # Code to be used in simple link tests - lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' - - # ltmain only uses $CC for tagged configurations so make sure $CC is set. - _LT_TAG_COMPILER - - # save warnings/boilerplate of simple test code - _LT_COMPILER_BOILERPLATE - _LT_LINKER_BOILERPLATE - - # Allow CC to be a program name with arguments. - lt_save_CC=$CC - lt_save_LD=$LD - lt_save_GCC=$GCC - GCC=$GXX - lt_save_with_gnu_ld=$with_gnu_ld - lt_save_path_LD=$lt_cv_path_LD - if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx - else - $as_unset lt_cv_prog_gnu_ld - fi - if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX - else - $as_unset lt_cv_path_LD - fi - test -z "${LDCXX+set}" || LD=$LDCXX - CC=${CXX-"c++"} - compiler=$CC - _LT_TAGVAR(compiler, $1)=$CC - _LT_CC_BASENAME([$compiler]) - - if test -n "$compiler"; then - # We don't want -fno-exception when compiling C++ code, so set the - # no_builtin_flag separately - if test "$GXX" = yes; then - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' - else - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= - fi - - if test "$GXX" = yes; then - # Set up default GNU C++ configuration - - LT_PATH_LD - - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' - - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | - $GREP 'no-whole-archive' > /dev/null; then - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - _LT_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' - - else - GXX=no - with_gnu_ld=no - wlarc= - fi - - # PORTME: fill in a description of your system's C++ link characteristics - AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) - _LT_TAGVAR(ld_shlibs, $1)=yes - case $host_os in - aix3*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - aix[[4-9]]*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - _LT_TAGVAR(archive_cmds, $1)='' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' - - if test "$GXX" = yes; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && - strings "$collect2name" | $GREP resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)= - fi - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to - # export. - _LT_TAGVAR(always_export_symbols, $1)=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - _LT_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an empty - # executable. - _LT_SYS_MODULE_PATH_AIX - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' - _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an - # empty executable. - _LT_SYS_MODULE_PATH_AIX - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - # This is similar to how AIX traditionally builds its shared - # libraries. - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - beos*) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=no - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - darwin* | rhapsody*) - _LT_DARWIN_LINKER_FEATURES($1) - ;; - - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - freebsd[[12]]*) - # C++ shared libraries reported to be fairly broken before - # switch to ELF - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - freebsd-elf*) - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - ;; - - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - _LT_TAGVAR(ld_shlibs, $1)=yes - ;; - - gnu*) - ;; - - hpux9*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' - ;; - *) - if test "$GXX" = yes; then - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - interix[[3-9]]*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' - fi - fi - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - esac - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(inherit_rpath, $1)=yes - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc* | ecpc* ) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler - case `$CC -V` in - *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) - _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ - compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' - _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ - $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ - $RANLIB $oldlib' - _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - ;; - *) # Version 6 will use weak symbols - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - ;; - esac - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' - ;; - cxx*) - # Compaq C++ - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - - runpath_var=LD_RUN_PATH - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' - ;; - xl*) - # IBM XL 8.0 on PPC, with GNU ld - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - if test "x$supports_anon_versioning" = xyes; then - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' - _LT_TAGVAR(compiler_needs_object, $1)=yes - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - - lynxos*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - m88k*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - - *nto* | *qnx*) - _LT_TAGVAR(ld_shlibs, $1)=yes - ;; - - openbsd2*) - # C++ shared libraries are fairly broken - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - fi - output_verbose_link_cmd=echo - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - case $host in - osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; - *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; - esac - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - cxx*) - case $host in - osf3*) - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - ;; - *) - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ - $RM $lib.exp' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - ;; - esac - - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - case $host in - osf3*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - ;; - esac - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' - - else - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - psos*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_TAGVAR(archive_cmds_need_lc,$1)=yes - _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - ;; - esac - _LT_TAGVAR(link_all_deplibs, $1)=yes - - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - - # The C++ compiler must be used to create the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' - if $CC --version | $GREP -v '^2\.7' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' - fi - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - vxworks*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - - AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) - test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no - - _LT_TAGVAR(GCC, $1)="$GXX" - _LT_TAGVAR(LD, $1)="$LD" - - ## CAVEAT EMPTOR: - ## There is no encapsulation within the following macros, do not change - ## the running order or otherwise move them around unless you know exactly - ## what you are doing... - _LT_SYS_HIDDEN_LIBDEPS($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) - fi # test -n "$compiler" - - CC=$lt_save_CC - LDCXX=$LD - LD=$lt_save_LD - GCC=$lt_save_GCC - with_gnu_ld=$lt_save_with_gnu_ld - lt_cv_path_LDCXX=$lt_cv_path_LD - lt_cv_path_LD=$lt_save_path_LD - lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld - lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld -fi # test "$_lt_caught_CXX_error" != yes - -AC_LANG_POP -])# _LT_LANG_CXX_CONFIG - - -# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) -# --------------------------------- -# Figure out "hidden" library dependencies from verbose -# compiler output when linking a shared library. -# Parse the compiler output and extract the necessary -# objects, libraries and library flags. -m4_defun([_LT_SYS_HIDDEN_LIBDEPS], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -# Dependencies to place before and after the object being linked: -_LT_TAGVAR(predep_objects, $1)= -_LT_TAGVAR(postdep_objects, $1)= -_LT_TAGVAR(predeps, $1)= -_LT_TAGVAR(postdeps, $1)= -_LT_TAGVAR(compiler_lib_search_path, $1)= - -dnl we can't use the lt_simple_compile_test_code here, -dnl because it contains code intended for an executable, -dnl not a library. It's possible we should let each -dnl tag define a new lt_????_link_test_code variable, -dnl but it's only used here... -m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF -int a; -void foo (void) { a = 0; } -_LT_EOF -], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF -class Foo -{ -public: - Foo (void) { a = 0; } -private: - int a; -}; -_LT_EOF -], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF - subroutine foo - implicit none - integer*4 a - a=0 - return - end -_LT_EOF -], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF - subroutine foo - implicit none - integer a - a=0 - return - end -_LT_EOF -], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF -public class foo { - private int a; - public void bar (void) { - a = 0; - } -}; -_LT_EOF -]) -dnl Parse the compiler output and extract the necessary -dnl objects, libraries and library flags. -if AC_TRY_EVAL(ac_compile); then - # Parse the compiler output and extract the necessary - # objects, libraries and library flags. - - # Sentinel used to keep track of whether or not we are before - # the conftest object file. - pre_test_object_deps_done=no - - for p in `eval "$output_verbose_link_cmd"`; do - case $p in - - -L* | -R* | -l*) - # Some compilers place space between "-{L,R}" and the path. - # Remove the space. - if test $p = "-L" || - test $p = "-R"; then - prev=$p - continue - else - prev= - fi - - if test "$pre_test_object_deps_done" = no; then - case $p in - -L* | -R*) - # Internal compiler library paths should come after those - # provided the user. The postdeps already come after the - # user supplied libs so there is no need to process them. - if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then - _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" - else - _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" - fi - ;; - # The "-l" case would never come before the object being - # linked, so don't bother handling this case. - esac - else - if test -z "$_LT_TAGVAR(postdeps, $1)"; then - _LT_TAGVAR(postdeps, $1)="${prev}${p}" - else - _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" - fi - fi - ;; - - *.$objext) - # This assumes that the test object file only shows up - # once in the compiler output. - if test "$p" = "conftest.$objext"; then - pre_test_object_deps_done=yes - continue - fi - - if test "$pre_test_object_deps_done" = no; then - if test -z "$_LT_TAGVAR(predep_objects, $1)"; then - _LT_TAGVAR(predep_objects, $1)="$p" - else - _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" - fi - else - if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then - _LT_TAGVAR(postdep_objects, $1)="$p" - else - _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" - fi - fi - ;; - - *) ;; # Ignore the rest. - - esac - done - - # Clean up. - rm -f a.out a.exe -else - echo "libtool.m4: error: problem compiling $1 test program" -fi - -$RM -f confest.$objext - -# PORTME: override above test on systems where it is broken -m4_if([$1], [CXX], -[case $host_os in -interix[[3-9]]*) - # Interix 3.5 installs completely hosed .la files for C++, so rather than - # hack all around it, let's just trust "g++" to DTRT. - _LT_TAGVAR(predep_objects,$1)= - _LT_TAGVAR(postdep_objects,$1)= - _LT_TAGVAR(postdeps,$1)= - ;; - -linux*) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - - if test "$solaris_use_stlport4" != yes; then - _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' - fi - ;; - esac - ;; - -solaris*) - case $cc_basename in - CC*) - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - - # Adding this requires a known-good setup of shared libraries for - # Sun compiler versions before 5.6, else PIC objects from an old - # archive will be linked into the output, leading to subtle bugs. - if test "$solaris_use_stlport4" != yes; then - _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' - fi - ;; - esac - ;; -esac -]) - -case " $_LT_TAGVAR(postdeps, $1) " in -*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; -esac - _LT_TAGVAR(compiler_lib_search_dirs, $1)= -if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then - _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` -fi -_LT_TAGDECL([], [compiler_lib_search_dirs], [1], - [The directories searched by this compiler when creating a shared library]) -_LT_TAGDECL([], [predep_objects], [1], - [Dependencies to place before and after the objects being linked to - create a shared library]) -_LT_TAGDECL([], [postdep_objects], [1]) -_LT_TAGDECL([], [predeps], [1]) -_LT_TAGDECL([], [postdeps], [1]) -_LT_TAGDECL([], [compiler_lib_search_path], [1], - [The library search path used internally by the compiler when linking - a shared library]) -])# _LT_SYS_HIDDEN_LIBDEPS - - -# _LT_PROG_F77 -# ------------ -# Since AC_PROG_F77 is broken, in that it returns the empty string -# if there is no fortran compiler, we have our own version here. -m4_defun([_LT_PROG_F77], -[ -pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) -AC_PROG_F77 -if test -z "$F77" || test "X$F77" = "Xno"; then - _lt_disable_F77=yes -fi -popdef([AC_MSG_ERROR]) -])# _LT_PROG_F77 - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([_LT_PROG_F77], []) - - -# _LT_LANG_F77_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for a Fortran 77 compiler are -# suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to `libtool'. -m4_defun([_LT_LANG_F77_CONFIG], -[AC_REQUIRE([_LT_PROG_F77])dnl -AC_LANG_PUSH(Fortran 77) - -_LT_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_TAGVAR(allow_undefined_flag, $1)= -_LT_TAGVAR(always_export_symbols, $1)=no -_LT_TAGVAR(archive_expsym_cmds, $1)= -_LT_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_TAGVAR(hardcode_direct, $1)=no -_LT_TAGVAR(hardcode_direct_absolute, $1)=no -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= -_LT_TAGVAR(hardcode_libdir_separator, $1)= -_LT_TAGVAR(hardcode_minus_L, $1)=no -_LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(inherit_rpath, $1)=no -_LT_TAGVAR(module_cmds, $1)= -_LT_TAGVAR(module_expsym_cmds, $1)= -_LT_TAGVAR(link_all_deplibs, $1)=unknown -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(no_undefined_flag, $1)= -_LT_TAGVAR(whole_archive_flag_spec, $1)= -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for f77 test sources. -ac_ext=f - -# Object file extension for compiled f77 test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# No sense in running all these tests if we already determined that -# the F77 compiler isn't working. Some variables (like enable_shared) -# are currently assumed to apply to all compilers on this platform, -# and will be corrupted by setting them based on a non-working compiler. -if test "$_lt_disable_F77" != yes; then - # Code to be used in simple compile tests - lt_simple_compile_test_code="\ - subroutine t - return - end -" - - # Code to be used in simple link tests - lt_simple_link_test_code="\ - program t - end -" - - # ltmain only uses $CC for tagged configurations so make sure $CC is set. - _LT_TAG_COMPILER - - # save warnings/boilerplate of simple test code - _LT_COMPILER_BOILERPLATE - _LT_LINKER_BOILERPLATE - - # Allow CC to be a program name with arguments. - lt_save_CC="$CC" - lt_save_GCC=$GCC - CC=${F77-"f77"} - compiler=$CC - _LT_TAGVAR(compiler, $1)=$CC - _LT_CC_BASENAME([$compiler]) - GCC=$G77 - if test -n "$compiler"; then - AC_MSG_CHECKING([if libtool supports shared libraries]) - AC_MSG_RESULT([$can_build_shared]) - - AC_MSG_CHECKING([whether to build shared libraries]) - test "$can_build_shared" = "no" && enable_shared=no - - # On AIX, shared libraries and static libraries use the same namespace, and - # are all built from PIC. - case $host_os in - aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - aix[[4-9]]*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; - esac - AC_MSG_RESULT([$enable_shared]) - - AC_MSG_CHECKING([whether to build static libraries]) - # Make sure either enable_shared or enable_static is yes. - test "$enable_shared" = yes || enable_static=yes - AC_MSG_RESULT([$enable_static]) - - _LT_TAGVAR(GCC, $1)="$G77" - _LT_TAGVAR(LD, $1)="$LD" - - ## CAVEAT EMPTOR: - ## There is no encapsulation within the following macros, do not change - ## the running order or otherwise move them around unless you know exactly - ## what you are doing... - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) - fi # test -n "$compiler" - - GCC=$lt_save_GCC - CC="$lt_save_CC" -fi # test "$_lt_disable_F77" != yes - -AC_LANG_POP -])# _LT_LANG_F77_CONFIG - - -# _LT_PROG_FC -# ----------- -# Since AC_PROG_FC is broken, in that it returns the empty string -# if there is no fortran compiler, we have our own version here. -m4_defun([_LT_PROG_FC], -[ -pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) -AC_PROG_FC -if test -z "$FC" || test "X$FC" = "Xno"; then - _lt_disable_FC=yes -fi -popdef([AC_MSG_ERROR]) -])# _LT_PROG_FC - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([_LT_PROG_FC], []) - - -# _LT_LANG_FC_CONFIG([TAG]) -# ------------------------- -# Ensure that the configuration variables for a Fortran compiler are -# suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to `libtool'. -m4_defun([_LT_LANG_FC_CONFIG], -[AC_REQUIRE([_LT_PROG_FC])dnl -AC_LANG_PUSH(Fortran) - -_LT_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_TAGVAR(allow_undefined_flag, $1)= -_LT_TAGVAR(always_export_symbols, $1)=no -_LT_TAGVAR(archive_expsym_cmds, $1)= -_LT_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_TAGVAR(hardcode_direct, $1)=no -_LT_TAGVAR(hardcode_direct_absolute, $1)=no -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= -_LT_TAGVAR(hardcode_libdir_separator, $1)= -_LT_TAGVAR(hardcode_minus_L, $1)=no -_LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(inherit_rpath, $1)=no -_LT_TAGVAR(module_cmds, $1)= -_LT_TAGVAR(module_expsym_cmds, $1)= -_LT_TAGVAR(link_all_deplibs, $1)=unknown -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(no_undefined_flag, $1)= -_LT_TAGVAR(whole_archive_flag_spec, $1)= -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for fc test sources. -ac_ext=${ac_fc_srcext-f} - -# Object file extension for compiled fc test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# No sense in running all these tests if we already determined that -# the FC compiler isn't working. Some variables (like enable_shared) -# are currently assumed to apply to all compilers on this platform, -# and will be corrupted by setting them based on a non-working compiler. -if test "$_lt_disable_FC" != yes; then - # Code to be used in simple compile tests - lt_simple_compile_test_code="\ - subroutine t - return - end -" - - # Code to be used in simple link tests - lt_simple_link_test_code="\ - program t - end -" - - # ltmain only uses $CC for tagged configurations so make sure $CC is set. - _LT_TAG_COMPILER - - # save warnings/boilerplate of simple test code - _LT_COMPILER_BOILERPLATE - _LT_LINKER_BOILERPLATE - - # Allow CC to be a program name with arguments. - lt_save_CC="$CC" - lt_save_GCC=$GCC - CC=${FC-"f95"} - compiler=$CC - GCC=$ac_cv_fc_compiler_gnu - - _LT_TAGVAR(compiler, $1)=$CC - _LT_CC_BASENAME([$compiler]) - - if test -n "$compiler"; then - AC_MSG_CHECKING([if libtool supports shared libraries]) - AC_MSG_RESULT([$can_build_shared]) - - AC_MSG_CHECKING([whether to build shared libraries]) - test "$can_build_shared" = "no" && enable_shared=no - - # On AIX, shared libraries and static libraries use the same namespace, and - # are all built from PIC. - case $host_os in - aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - aix[[4-9]]*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; - esac - AC_MSG_RESULT([$enable_shared]) - - AC_MSG_CHECKING([whether to build static libraries]) - # Make sure either enable_shared or enable_static is yes. - test "$enable_shared" = yes || enable_static=yes - AC_MSG_RESULT([$enable_static]) - - _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" - _LT_TAGVAR(LD, $1)="$LD" - - ## CAVEAT EMPTOR: - ## There is no encapsulation within the following macros, do not change - ## the running order or otherwise move them around unless you know exactly - ## what you are doing... - _LT_SYS_HIDDEN_LIBDEPS($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) - fi # test -n "$compiler" - - GCC=$lt_save_GCC - CC="$lt_save_CC" -fi # test "$_lt_disable_FC" != yes - -AC_LANG_POP -])# _LT_LANG_FC_CONFIG - - -# _LT_LANG_GCJ_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for the GNU Java Compiler compiler -# are suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to `libtool'. -m4_defun([_LT_LANG_GCJ_CONFIG], -[AC_REQUIRE([LT_PROG_GCJ])dnl -AC_LANG_SAVE - -# Source file extension for Java test sources. -ac_ext=java - -# Object file extension for compiled Java test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" - -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_TAG_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -lt_save_GCC=$GCC -GCC=yes -CC=${GCJ-"gcj"} -compiler=$CC -_LT_TAGVAR(compiler, $1)=$CC -_LT_TAGVAR(LD, $1)="$LD" -_LT_CC_BASENAME([$compiler]) - -# GCJ did not exist at the time GCC didn't implicitly link libc in. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no - -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - _LT_COMPILER_NO_RTTI($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) -fi - -AC_LANG_RESTORE - -GCC=$lt_save_GCC -CC="$lt_save_CC" -])# _LT_LANG_GCJ_CONFIG - - -# _LT_LANG_RC_CONFIG([TAG]) -# ------------------------- -# Ensure that the configuration variables for the Windows resource compiler -# are suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to `libtool'. -m4_defun([_LT_LANG_RC_CONFIG], -[AC_REQUIRE([LT_PROG_RC])dnl -AC_LANG_SAVE - -# Source file extension for RC test sources. -ac_ext=rc - -# Object file extension for compiled RC test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' - -# Code to be used in simple link tests -lt_simple_link_test_code="$lt_simple_compile_test_code" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_TAG_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -lt_save_GCC=$GCC -GCC= -CC=${RC-"windres"} -compiler=$CC -_LT_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) -_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - -if test -n "$compiler"; then - : - _LT_CONFIG($1) -fi - -GCC=$lt_save_GCC -AC_LANG_RESTORE -CC="$lt_save_CC" -])# _LT_LANG_RC_CONFIG - - -# LT_PROG_GCJ -# ----------- -AC_DEFUN([LT_PROG_GCJ], -[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], - [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], - [AC_CHECK_TOOL(GCJ, gcj,) - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" - AC_SUBST(GCJFLAGS)])])[]dnl -]) - -# Old name: -AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([LT_AC_PROG_GCJ], []) - - -# LT_PROG_RC -# ---------- -AC_DEFUN([LT_PROG_RC], -[AC_CHECK_TOOL(RC, windres,) -]) - -# Old name: -AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([LT_AC_PROG_RC], []) - - -# _LT_DECL_EGREP -# -------------- -# If we don't have a new enough Autoconf to choose the best grep -# available, choose the one first in the user's PATH. -m4_defun([_LT_DECL_EGREP], -[AC_REQUIRE([AC_PROG_EGREP])dnl -AC_REQUIRE([AC_PROG_FGREP])dnl -test -z "$GREP" && GREP=grep -_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) -_LT_DECL([], [EGREP], [1], [An ERE matcher]) -_LT_DECL([], [FGREP], [1], [A literal string matcher]) -dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too -AC_SUBST([GREP]) -]) - - -# _LT_DECL_OBJDUMP -# -------------- -# If we don't have a new enough Autoconf to choose the best objdump -# available, choose the one first in the user's PATH. -m4_defun([_LT_DECL_OBJDUMP], -[AC_CHECK_TOOL(OBJDUMP, objdump, false) -test -z "$OBJDUMP" && OBJDUMP=objdump -_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) -AC_SUBST([OBJDUMP]) -]) - - -# _LT_DECL_SED -# ------------ -# Check for a fully-functional sed program, that truncates -# as few characters as possible. Prefer GNU sed if found. -m4_defun([_LT_DECL_SED], -[AC_PROG_SED -test -z "$SED" && SED=sed -Xsed="$SED -e 1s/^X//" -_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) -_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], - [Sed that helps us avoid accidentally triggering echo(1) options like -n]) -])# _LT_DECL_SED - -m4_ifndef([AC_PROG_SED], [ -############################################################ -# NOTE: This macro has been submitted for inclusion into # -# GNU Autoconf as AC_PROG_SED. When it is available in # -# a released version of Autoconf we should remove this # -# macro and use it instead. # -############################################################ - -m4_defun([AC_PROG_SED], -[AC_MSG_CHECKING([for a sed that does not truncate output]) -AC_CACHE_VAL(lt_cv_path_SED, -[# Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f $lt_ac_sed && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $lt_ac_count -gt 10 && break - lt_ac_count=`expr $lt_ac_count + 1` - if test $lt_ac_count -gt $lt_ac_max; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done -done -]) -SED=$lt_cv_path_SED -AC_SUBST([SED]) -AC_MSG_RESULT([$SED]) -])#AC_PROG_SED -])#m4_ifndef - -# Old name: -AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([LT_AC_PROG_SED], []) - - -# _LT_CHECK_SHELL_FEATURES -# ------------------------ -# Find out whether the shell is Bourne or XSI compatible, -# or has some other useful features. -m4_defun([_LT_CHECK_SHELL_FEATURES], -[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) -# Try some XSI features -xsi_shell=no -( _lt_dummy="a/b/c" - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ - = c,a/b,, \ - && eval 'test $(( 1 + 1 )) -eq 2 \ - && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ - && xsi_shell=yes -AC_MSG_RESULT([$xsi_shell]) -_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) - -AC_MSG_CHECKING([whether the shell understands "+="]) -lt_shell_append=no -( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ - >/dev/null 2>&1 \ - && lt_shell_append=yes -AC_MSG_RESULT([$lt_shell_append]) -_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) - -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - lt_unset=unset -else - lt_unset=false -fi -_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl - -# test EBCDIC or ASCII -case `echo X|tr X '\101'` in - A) # ASCII based system - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr - lt_SP2NL='tr \040 \012' - lt_NL2SP='tr \015\012 \040\040' - ;; - *) # EBCDIC based system - lt_SP2NL='tr \100 \n' - lt_NL2SP='tr \r\n \100\100' - ;; -esac -_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl -_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl -])# _LT_CHECK_SHELL_FEATURES - - -# _LT_PROG_XSI_SHELLFNS -# --------------------- -# Bourne and XSI compatible variants of some useful shell functions. -m4_defun([_LT_PROG_XSI_SHELLFNS], -[case $xsi_shell in - yes) - cat << \_LT_EOF >> "$cfgfile" - -# func_dirname file append nondir_replacement -# Compute the dirname of FILE. If nonempty, add APPEND to the result, -# otherwise set result to NONDIR_REPLACEMENT. -func_dirname () -{ - case ${1} in - */*) func_dirname_result="${1%/*}${2}" ;; - * ) func_dirname_result="${3}" ;; - esac -} - -# func_basename file -func_basename () -{ - func_basename_result="${1##*/}" -} - -# func_dirname_and_basename file append nondir_replacement -# perform func_basename and func_dirname in a single function -# call: -# dirname: Compute the dirname of FILE. If nonempty, -# add APPEND to the result, otherwise set result -# to NONDIR_REPLACEMENT. -# value returned in "$func_dirname_result" -# basename: Compute filename of FILE. -# value retuned in "$func_basename_result" -# Implementation must be kept synchronized with func_dirname -# and func_basename. For efficiency, we do not delegate to -# those functions but instead duplicate the functionality here. -func_dirname_and_basename () -{ - case ${1} in - */*) func_dirname_result="${1%/*}${2}" ;; - * ) func_dirname_result="${3}" ;; - esac - func_basename_result="${1##*/}" -} - -# func_stripname prefix suffix name -# strip PREFIX and SUFFIX off of NAME. -# PREFIX and SUFFIX must not contain globbing or regex special -# characters, hashes, percent signs, but SUFFIX may contain a leading -# dot (in which case that matches only a dot). -func_stripname () -{ - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are - # positional parameters, so assign one to ordinary parameter first. - func_stripname_result=${3} - func_stripname_result=${func_stripname_result#"${1}"} - func_stripname_result=${func_stripname_result%"${2}"} -} - -# func_opt_split -func_opt_split () -{ - func_opt_split_opt=${1%%=*} - func_opt_split_arg=${1#*=} -} - -# func_lo2o object -func_lo2o () -{ - case ${1} in - *.lo) func_lo2o_result=${1%.lo}.${objext} ;; - *) func_lo2o_result=${1} ;; - esac -} - -# func_xform libobj-or-source -func_xform () -{ - func_xform_result=${1%.*}.lo -} - -# func_arith arithmetic-term... -func_arith () -{ - func_arith_result=$(( $[*] )) -} - -# func_len string -# STRING may not start with a hyphen. -func_len () -{ - func_len_result=${#1} -} - -_LT_EOF - ;; - *) # Bourne compatible functions. - cat << \_LT_EOF >> "$cfgfile" - -# func_dirname file append nondir_replacement -# Compute the dirname of FILE. If nonempty, add APPEND to the result, -# otherwise set result to NONDIR_REPLACEMENT. -func_dirname () -{ - # Extract subdirectory from the argument. - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` - if test "X$func_dirname_result" = "X${1}"; then - func_dirname_result="${3}" - else - func_dirname_result="$func_dirname_result${2}" - fi -} - -# func_basename file -func_basename () -{ - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` -} - -dnl func_dirname_and_basename -dnl A portable version of this function is already defined in general.m4sh -dnl so there is no need for it here. - -# func_stripname prefix suffix name -# strip PREFIX and SUFFIX off of NAME. -# PREFIX and SUFFIX must not contain globbing or regex special -# characters, hashes, percent signs, but SUFFIX may contain a leading -# dot (in which case that matches only a dot). -# func_strip_suffix prefix name -func_stripname () -{ - case ${2} in - .*) func_stripname_result=`$ECHO "X${3}" \ - | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; - *) func_stripname_result=`$ECHO "X${3}" \ - | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; - esac -} - -# sed scripts: -my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' -my_sed_long_arg='1s/^-[[^=]]*=//' - -# func_opt_split -func_opt_split () -{ - func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` - func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` -} - -# func_lo2o object -func_lo2o () -{ - func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` -} - -# func_xform libobj-or-source -func_xform () -{ - func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` -} - -# func_arith arithmetic-term... -func_arith () -{ - func_arith_result=`expr "$[@]"` -} - -# func_len string -# STRING may not start with a hyphen. -func_len () -{ - func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` -} - -_LT_EOF -esac - -case $lt_shell_append in - yes) - cat << \_LT_EOF >> "$cfgfile" - -# func_append var value -# Append VALUE to the end of shell variable VAR. -func_append () -{ - eval "$[1]+=\$[2]" -} -_LT_EOF - ;; - *) - cat << \_LT_EOF >> "$cfgfile" - -# func_append var value -# Append VALUE to the end of shell variable VAR. -func_append () -{ - eval "$[1]=\$$[1]\$[2]" -} - -_LT_EOF - ;; - esac -]) diff --git a/Build/source/libs/poppler/poppler-0.12.4/m4/ltoptions.m4 b/Build/source/libs/poppler/poppler-0.12.4/m4/ltoptions.m4 deleted file mode 100644 index 34151a3ba62..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/m4/ltoptions.m4 +++ /dev/null @@ -1,368 +0,0 @@ -# Helper functions for option handling. -*- Autoconf -*- -# -# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. -# Written by Gary V. Vaughan, 2004 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# serial 6 ltoptions.m4 - -# This is to help aclocal find these macros, as it can't see m4_define. -AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) - - -# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) -# ------------------------------------------ -m4_define([_LT_MANGLE_OPTION], -[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) - - -# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) -# --------------------------------------- -# Set option OPTION-NAME for macro MACRO-NAME, and if there is a -# matching handler defined, dispatch to it. Other OPTION-NAMEs are -# saved as a flag. -m4_define([_LT_SET_OPTION], -[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl -m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), - _LT_MANGLE_DEFUN([$1], [$2]), - [m4_warning([Unknown $1 option `$2'])])[]dnl -]) - - -# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) -# ------------------------------------------------------------ -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -m4_define([_LT_IF_OPTION], -[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) - - -# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) -# ------------------------------------------------------- -# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME -# are set. -m4_define([_LT_UNLESS_OPTIONS], -[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), - [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), - [m4_define([$0_found])])])[]dnl -m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 -])[]dnl -]) - - -# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) -# ---------------------------------------- -# OPTION-LIST is a space-separated list of Libtool options associated -# with MACRO-NAME. If any OPTION has a matching handler declared with -# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about -# the unknown option and exit. -m4_defun([_LT_SET_OPTIONS], -[# Set options -m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), - [_LT_SET_OPTION([$1], _LT_Option)]) - -m4_if([$1],[LT_INIT],[ - dnl - dnl Simply set some default values (i.e off) if boolean options were not - dnl specified: - _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no - ]) - _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no - ]) - dnl - dnl If no reference was made to various pairs of opposing options, then - dnl we run the default mode handler for the pair. For example, if neither - dnl `shared' nor `disable-shared' was passed, we enable building of shared - dnl archives by default: - _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) - _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) - _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) - _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], - [_LT_ENABLE_FAST_INSTALL]) - ]) -])# _LT_SET_OPTIONS - - -## --------------------------------- ## -## Macros to handle LT_INIT options. ## -## --------------------------------- ## - -# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) -# ----------------------------------------- -m4_define([_LT_MANGLE_DEFUN], -[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) - - -# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) -# ----------------------------------------------- -m4_define([LT_OPTION_DEFINE], -[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl -])# LT_OPTION_DEFINE - - -# dlopen -# ------ -LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes -]) - -AU_DEFUN([AC_LIBTOOL_DLOPEN], -[_LT_SET_OPTION([LT_INIT], [dlopen]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you -put the `dlopen' option into LT_INIT's first parameter.]) -]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) - - -# win32-dll -# --------- -# Declare package support for building win32 dll's. -LT_OPTION_DEFINE([LT_INIT], [win32-dll], -[enable_win32_dll=yes - -case $host in -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) - ;; -esac - -test -z "$AS" && AS=as -_LT_DECL([], [AS], [0], [Assembler program])dnl - -test -z "$DLLTOOL" && DLLTOOL=dlltool -_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl - -test -z "$OBJDUMP" && OBJDUMP=objdump -_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl -])# win32-dll - -AU_DEFUN([AC_LIBTOOL_WIN32_DLL], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -_LT_SET_OPTION([LT_INIT], [win32-dll]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you -put the `win32-dll' option into LT_INIT's first parameter.]) -]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) - - -# _LT_ENABLE_SHARED([DEFAULT]) -# ---------------------------- -# implement the --enable-shared flag, and supports the `shared' and -# `disable-shared' LT_INIT options. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -m4_define([_LT_ENABLE_SHARED], -[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl -AC_ARG_ENABLE([shared], - [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], - [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) - - _LT_DECL([build_libtool_libs], [enable_shared], [0], - [Whether or not to build shared libraries]) -])# _LT_ENABLE_SHARED - -LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) -LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) - -# Old names: -AC_DEFUN([AC_ENABLE_SHARED], -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) -]) - -AC_DEFUN([AC_DISABLE_SHARED], -[_LT_SET_OPTION([LT_INIT], [disable-shared]) -]) - -AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) -AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AM_ENABLE_SHARED], []) -dnl AC_DEFUN([AM_DISABLE_SHARED], []) - - - -# _LT_ENABLE_STATIC([DEFAULT]) -# ---------------------------- -# implement the --enable-static flag, and support the `static' and -# `disable-static' LT_INIT options. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -m4_define([_LT_ENABLE_STATIC], -[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl -AC_ARG_ENABLE([static], - [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], - [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_static=]_LT_ENABLE_STATIC_DEFAULT) - - _LT_DECL([build_old_libs], [enable_static], [0], - [Whether or not to build static libraries]) -])# _LT_ENABLE_STATIC - -LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) -LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) - -# Old names: -AC_DEFUN([AC_ENABLE_STATIC], -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) -]) - -AC_DEFUN([AC_DISABLE_STATIC], -[_LT_SET_OPTION([LT_INIT], [disable-static]) -]) - -AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) -AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AM_ENABLE_STATIC], []) -dnl AC_DEFUN([AM_DISABLE_STATIC], []) - - - -# _LT_ENABLE_FAST_INSTALL([DEFAULT]) -# ---------------------------------- -# implement the --enable-fast-install flag, and support the `fast-install' -# and `disable-fast-install' LT_INIT options. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -m4_define([_LT_ENABLE_FAST_INSTALL], -[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl -AC_ARG_ENABLE([fast-install], - [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], - [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) - -_LT_DECL([fast_install], [enable_fast_install], [0], - [Whether or not to optimize for fast installation])dnl -])# _LT_ENABLE_FAST_INSTALL - -LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) -LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) - -# Old names: -AU_DEFUN([AC_ENABLE_FAST_INSTALL], -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you put -the `fast-install' option into LT_INIT's first parameter.]) -]) - -AU_DEFUN([AC_DISABLE_FAST_INSTALL], -[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you put -the `disable-fast-install' option into LT_INIT's first parameter.]) -]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) -dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) - - -# _LT_WITH_PIC([MODE]) -# -------------------- -# implement the --with-pic flag, and support the `pic-only' and `no-pic' -# LT_INIT options. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'. -m4_define([_LT_WITH_PIC], -[AC_ARG_WITH([pic], - [AS_HELP_STRING([--with-pic], - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], - [pic_mode="$withval"], - [pic_mode=default]) - -test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) - -_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl -])# _LT_WITH_PIC - -LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) -LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) - -# Old name: -AU_DEFUN([AC_LIBTOOL_PICMODE], -[_LT_SET_OPTION([LT_INIT], [pic-only]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you -put the `pic-only' option into LT_INIT's first parameter.]) -]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) - -## ----------------- ## -## LTDL_INIT Options ## -## ----------------- ## - -m4_define([_LTDL_MODE], []) -LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], - [m4_define([_LTDL_MODE], [nonrecursive])]) -LT_OPTION_DEFINE([LTDL_INIT], [recursive], - [m4_define([_LTDL_MODE], [recursive])]) -LT_OPTION_DEFINE([LTDL_INIT], [subproject], - [m4_define([_LTDL_MODE], [subproject])]) - -m4_define([_LTDL_TYPE], []) -LT_OPTION_DEFINE([LTDL_INIT], [installable], - [m4_define([_LTDL_TYPE], [installable])]) -LT_OPTION_DEFINE([LTDL_INIT], [convenience], - [m4_define([_LTDL_TYPE], [convenience])]) diff --git a/Build/source/libs/poppler/poppler-0.12.4/m4/ltsugar.m4 b/Build/source/libs/poppler/poppler-0.12.4/m4/ltsugar.m4 deleted file mode 100644 index 9000a057d31..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/m4/ltsugar.m4 +++ /dev/null @@ -1,123 +0,0 @@ -# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- -# -# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. -# Written by Gary V. Vaughan, 2004 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# serial 6 ltsugar.m4 - -# This is to help aclocal find these macros, as it can't see m4_define. -AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) - - -# lt_join(SEP, ARG1, [ARG2...]) -# ----------------------------- -# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their -# associated separator. -# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier -# versions in m4sugar had bugs. -m4_define([lt_join], -[m4_if([$#], [1], [], - [$#], [2], [[$2]], - [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) -m4_define([_lt_join], -[m4_if([$#$2], [2], [], - [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) - - -# lt_car(LIST) -# lt_cdr(LIST) -# ------------ -# Manipulate m4 lists. -# These macros are necessary as long as will still need to support -# Autoconf-2.59 which quotes differently. -m4_define([lt_car], [[$1]]) -m4_define([lt_cdr], -[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], - [$#], 1, [], - [m4_dquote(m4_shift($@))])]) -m4_define([lt_unquote], $1) - - -# lt_append(MACRO-NAME, STRING, [SEPARATOR]) -# ------------------------------------------ -# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. -# Note that neither SEPARATOR nor STRING are expanded; they are appended -# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). -# No SEPARATOR is output if MACRO-NAME was previously undefined (different -# than defined and empty). -# -# This macro is needed until we can rely on Autoconf 2.62, since earlier -# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. -m4_define([lt_append], -[m4_define([$1], - m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) - - - -# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) -# ---------------------------------------------------------- -# Produce a SEP delimited list of all paired combinations of elements of -# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list -# has the form PREFIXmINFIXSUFFIXn. -# Needed until we can rely on m4_combine added in Autoconf 2.62. -m4_define([lt_combine], -[m4_if(m4_eval([$# > 3]), [1], - [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl -[[m4_foreach([_Lt_prefix], [$2], - [m4_foreach([_Lt_suffix], - ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, - [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) - - -# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) -# ----------------------------------------------------------------------- -# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited -# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. -m4_define([lt_if_append_uniq], -[m4_ifdef([$1], - [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], - [lt_append([$1], [$2], [$3])$4], - [$5])], - [lt_append([$1], [$2], [$3])$4])]) - - -# lt_dict_add(DICT, KEY, VALUE) -# ----------------------------- -m4_define([lt_dict_add], -[m4_define([$1($2)], [$3])]) - - -# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) -# -------------------------------------------- -m4_define([lt_dict_add_subkey], -[m4_define([$1($2:$3)], [$4])]) - - -# lt_dict_fetch(DICT, KEY, [SUBKEY]) -# ---------------------------------- -m4_define([lt_dict_fetch], -[m4_ifval([$3], - m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), - m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) - - -# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) -# ----------------------------------------------------------------- -m4_define([lt_if_dict_fetch], -[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], - [$5], - [$6])]) - - -# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) -# -------------------------------------------------------------- -m4_define([lt_dict_filter], -[m4_if([$5], [], [], - [lt_join(m4_quote(m4_default([$4], [[, ]])), - lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), - [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl -]) diff --git a/Build/source/libs/poppler/poppler-0.12.4/m4/ltversion.m4 b/Build/source/libs/poppler/poppler-0.12.4/m4/ltversion.m4 deleted file mode 100644 index b8e154fe6e1..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/m4/ltversion.m4 +++ /dev/null @@ -1,23 +0,0 @@ -# ltversion.m4 -- version numbers -*- Autoconf -*- -# -# Copyright (C) 2004 Free Software Foundation, Inc. -# Written by Scott James Remnant, 2004 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# Generated from ltversion.in. - -# serial 3012 ltversion.m4 -# This file is part of GNU Libtool - -m4_define([LT_PACKAGE_VERSION], [2.2.6]) -m4_define([LT_PACKAGE_REVISION], [1.3012]) - -AC_DEFUN([LTVERSION_VERSION], -[macro_version='2.2.6' -macro_revision='1.3012' -_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) -_LT_DECL(, macro_revision, 0) -]) diff --git a/Build/source/libs/poppler/poppler-0.12.4/m4/lt~obsolete.m4 b/Build/source/libs/poppler/poppler-0.12.4/m4/lt~obsolete.m4 deleted file mode 100644 index 637bb2066c4..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/m4/lt~obsolete.m4 +++ /dev/null @@ -1,92 +0,0 @@ -# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- -# -# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. -# Written by Scott James Remnant, 2004. -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# serial 4 lt~obsolete.m4 - -# These exist entirely to fool aclocal when bootstrapping libtool. -# -# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) -# which have later been changed to m4_define as they aren't part of the -# exported API, or moved to Autoconf or Automake where they belong. -# -# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN -# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us -# using a macro with the same name in our local m4/libtool.m4 it'll -# pull the old libtool.m4 in (it doesn't see our shiny new m4_define -# and doesn't know about Autoconf macros at all.) -# -# So we provide this file, which has a silly filename so it's always -# included after everything else. This provides aclocal with the -# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything -# because those macros already exist, or will be overwritten later. -# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. -# -# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. -# Yes, that means every name once taken will need to remain here until -# we give up compatibility with versions before 1.7, at which point -# we need to keep only those names which we still refer to. - -# This is to help aclocal find these macros, as it can't see m4_define. -AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) - -m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) -m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) -m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) -m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) -m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) -m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) -m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) -m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) -m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) -m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) -m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) -m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) -m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) -m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) -m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) -m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) -m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) -m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) -m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) -m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) -m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) -m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) -m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) -m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) -m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) -m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) -m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) -m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) -m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) -m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) -m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) -m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) -m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) -m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) -m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) -m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) -m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) -m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) -m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) -m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) -m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) -m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) -m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) -m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) -m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) -m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) -m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) -m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) -m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) -m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) -m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) -m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) -m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) -m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) diff --git a/Build/source/libs/poppler/poppler-0.12.4/m4/qt.m4 b/Build/source/libs/poppler/poppler-0.12.4/m4/qt.m4 deleted file mode 100644 index 8de2628ca22..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/m4/qt.m4 +++ /dev/null @@ -1,101 +0,0 @@ -# POPPLER_FIND_QT(VARIABLE-PREFIX, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -# -# Check whether the Qt libraries are available. Adapted from -# OpenOffice.org configure.in -# -# -------------------------------------------------------------- -AC_DEFUN([POPPLER_FIND_QT], -[ -dnl Search paths for Qt -if test "$build_cpu" != "x86_64" ; then - qt_incdirs="$QTINC /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/lib/qt3/include /usr/lib/qt/include /usr/share/qt3/include" - qt_libdirs="$QTLIB /usr/local/qt/lib /usr/lib/qt /usr/lib /usr/X11R6/lib/X11/qt /usr/X11R6/lib/qt /usr/lib/qt3/lib /usr/lib/qt/lib /usr/share/qt3/lib" -else - qt_incdirs="$QTINC /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/lib64/qt3/include /usr/lib64/qt/include /usr/share/qt3/include /usr/lib/qt3/include /usr/lib/qt/include" - qt_libdirs="$QTLIB /usr/local/qt/lib64 /usr/lib64/qt /usr/lib64 /usr/X11R6/lib64/X11/qt /usr/X11R6/lib64/qt /usr/lib64/qt3/lib64 /usr/lib64/qt/lib64 /usr/share/qt3/lib64 /usr/local/qt/lib /usr/lib/qt /usr/lib /usr/X11R6/lib/X11/qt /usr/X11R6/lib/qt /usr/lib/qt3/lib /usr/lib/qt/lib /usr/share/qt3/lib" -fi -if test -n "$QTDIR" ; then - qt_incdirs="$QTDIR/include $qt_incdirs" - if test "$build_cpu" != "x86_64" ; then - qt_libdirs="$QTDIR/lib $qt_libdirs" - else - qt_libdirs="$QTDIR/lib64 $QTDIR/lib $qt_libdirs" - fi -fi - -dnl What to test -qt_test_include="qstyle.h" -qt_test_la_library="libqt-mt.la" -qt_test_library="libqt-mt.so" - -dnl Check for Qt headers -AC_MSG_CHECKING([for Qt headers]) -qt_incdir="no" -for it in $qt_incdirs ; do - if test -r "$it/$qt_test_include" ; then - qt_incdir="$it" - break - fi -done -AC_MSG_RESULT([$qt_incdir]) - -dnl Check for Qt libraries -AC_MSG_CHECKING([for Qt libraries]) -qt_libdir="no" -for qt_check in $qt_libdirs ; do - if test -r "$qt_check/$qt_test_la_library" ; then - qt_libdir="$qt_check" - break - fi - - if test -r "$qt_check/$qt_test_library" ; then - qt_libdir="$qt_check" - break - fi -done -AC_MSG_RESULT([$qt_libdir]) - -if test "x$qt_libdir" != "xno" ; then - if test "x$qt_incdir" != "xno" ; then - have_qt=yes - fi -fi - -if test "x$have_qt" = "xyes"; then - AC_LANG_PUSH([C++]) - pthread_needed=no - - save_LDFLAGS=$LDFLAGS - save_CXXFLAGS=$CXXFLAGS - save_LIBS=$LIBS - CXXFLAGS="$CXXFLAGS -I$qt_incdir" - LIBS="$LIBS -L$qt_libdir -lqt-mt" - AC_MSG_CHECKING([if Qt needs -pthread]) - AC_TRY_LINK([#include <qt.h>], [QString s;], [pthread_needed=no], [pthread_needed=yes]) - if test "x$pthread_needed" = "xyes"; then - LDFLAGS="$LDFLAGS -pthread" - AC_TRY_LINK([#include <qt.h>], [QString s;], [pthread_needed=yes], [pthread_needed=no]) - fi - AC_MSG_RESULT([$pthread_needed]) - LDFLAGS=$save_LDFLAGS - CXXFLAGS=$save_CXXFLAGS - LIBS=$save_LIBS - - AC_LANG_POP - - qtpthread='' - if test "x$pthread_needed" = "xyes"; then - qtpthread="-pthread" - fi - - $1[]_CXXFLAGS="-I$qt_incdir" - $1[]_LIBS="$qtpthread -L$qt_libdir -lqt-mt" - ifelse([$2], , :, [$2]) -else - ifelse([$3], , [AC_MSG_FAILURE(dnl -[Qt development libraries not found])], - [$3]) -fi -]) - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/missing b/Build/source/libs/poppler/poppler-0.12.4/missing deleted file mode 100755 index 28055d2ae6f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/missing +++ /dev/null @@ -1,376 +0,0 @@ -#! /bin/sh -# Common stub for a few missing GNU programs while installing. - -scriptversion=2009-04-28.21; # UTC - -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, -# 2008, 2009 Free Software Foundation, Inc. -# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -if test $# -eq 0; then - echo 1>&2 "Try \`$0 --help' for more information" - exit 1 -fi - -run=: -sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' -sed_minuso='s/.* -o \([^ ]*\).*/\1/p' - -# In the cases where this matters, `missing' is being run in the -# srcdir already. -if test -f configure.ac; then - configure_ac=configure.ac -else - configure_ac=configure.in -fi - -msg="missing on your system" - -case $1 in ---run) - # Try to run requested program, and just exit if it succeeds. - run= - shift - "$@" && exit 0 - # Exit code 63 means version mismatch. This often happens - # when the user try to use an ancient version of a tool on - # a file that requires a minimum version. In this case we - # we should proceed has if the program had been absent, or - # if --run hadn't been passed. - if test $? = 63; then - run=: - msg="probably too old" - fi - ;; - - -h|--h|--he|--hel|--help) - echo "\ -$0 [OPTION]... PROGRAM [ARGUMENT]... - -Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an -error status if there is no known handling for PROGRAM. - -Options: - -h, --help display this help and exit - -v, --version output version information and exit - --run try to run the given command, and emulate it if it fails - -Supported PROGRAM values: - aclocal touch file \`aclocal.m4' - autoconf touch file \`configure' - autoheader touch file \`config.h.in' - autom4te touch the output file, or create a stub one - automake touch all \`Makefile.in' files - bison create \`y.tab.[ch]', if possible, from existing .[ch] - flex create \`lex.yy.c', if possible, from existing .c - help2man touch the output file - lex create \`lex.yy.c', if possible, from existing .c - makeinfo touch the output file - tar try tar, gnutar, gtar, then tar without non-portable flags - yacc create \`y.tab.[ch]', if possible, from existing .[ch] - -Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and -\`g' are ignored when checking the name. - -Send bug reports to <bug-automake@gnu.org>." - exit $? - ;; - - -v|--v|--ve|--ver|--vers|--versi|--versio|--version) - echo "missing $scriptversion (GNU Automake)" - exit $? - ;; - - -*) - echo 1>&2 "$0: Unknown \`$1' option" - echo 1>&2 "Try \`$0 --help' for more information" - exit 1 - ;; - -esac - -# normalize program name to check for. -program=`echo "$1" | sed ' - s/^gnu-//; t - s/^gnu//; t - s/^g//; t'` - -# Now exit if we have it, but it failed. Also exit now if we -# don't have it and --version was passed (most likely to detect -# the program). This is about non-GNU programs, so use $1 not -# $program. -case $1 in - lex*|yacc*) - # Not GNU programs, they don't have --version. - ;; - - tar*) - if test -n "$run"; then - echo 1>&2 "ERROR: \`tar' requires --run" - exit 1 - elif test "x$2" = "x--version" || test "x$2" = "x--help"; then - exit 1 - fi - ;; - - *) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - elif test "x$2" = "x--version" || test "x$2" = "x--help"; then - # Could not run --version or --help. This is probably someone - # running `$TOOL --version' or `$TOOL --help' to check whether - # $TOOL exists and not knowing $TOOL uses missing. - exit 1 - fi - ;; -esac - -# If it does not exist, or fails to run (possibly an outdated version), -# try to emulate it. -case $program in - aclocal*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`acinclude.m4' or \`${configure_ac}'. You might want - to install the \`Automake' and \`Perl' packages. Grab them from - any GNU archive site." - touch aclocal.m4 - ;; - - autoconf*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`${configure_ac}'. You might want to install the - \`Autoconf' and \`GNU m4' packages. Grab them from any GNU - archive site." - touch configure - ;; - - autoheader*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`acconfig.h' or \`${configure_ac}'. You might want - to install the \`Autoconf' and \`GNU m4' packages. Grab them - from any GNU archive site." - files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` - test -z "$files" && files="config.h" - touch_files= - for f in $files; do - case $f in - *:*) touch_files="$touch_files "`echo "$f" | - sed -e 's/^[^:]*://' -e 's/:.*//'`;; - *) touch_files="$touch_files $f.in";; - esac - done - touch $touch_files - ;; - - automake*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. - You might want to install the \`Automake' and \`Perl' packages. - Grab them from any GNU archive site." - find . -type f -name Makefile.am -print | - sed 's/\.am$/.in/' | - while read f; do touch "$f"; done - ;; - - autom4te*) - echo 1>&2 "\ -WARNING: \`$1' is needed, but is $msg. - You might have modified some files without having the - proper tools for further handling them. - You can get \`$1' as part of \`Autoconf' from any GNU - archive site." - - file=`echo "$*" | sed -n "$sed_output"` - test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` - if test -f "$file"; then - touch $file - else - test -z "$file" || exec >$file - echo "#! /bin/sh" - echo "# Created by GNU Automake missing as a replacement of" - echo "# $ $@" - echo "exit 0" - chmod +x $file - exit 1 - fi - ;; - - bison*|yacc*) - echo 1>&2 "\ -WARNING: \`$1' $msg. You should only need it if - you modified a \`.y' file. You may need the \`Bison' package - in order for those modifications to take effect. You can get - \`Bison' from any GNU archive site." - rm -f y.tab.c y.tab.h - if test $# -ne 1; then - eval LASTARG="\${$#}" - case $LASTARG in - *.y) - SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` - if test -f "$SRCFILE"; then - cp "$SRCFILE" y.tab.c - fi - SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` - if test -f "$SRCFILE"; then - cp "$SRCFILE" y.tab.h - fi - ;; - esac - fi - if test ! -f y.tab.h; then - echo >y.tab.h - fi - if test ! -f y.tab.c; then - echo 'main() { return 0; }' >y.tab.c - fi - ;; - - lex*|flex*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a \`.l' file. You may need the \`Flex' package - in order for those modifications to take effect. You can get - \`Flex' from any GNU archive site." - rm -f lex.yy.c - if test $# -ne 1; then - eval LASTARG="\${$#}" - case $LASTARG in - *.l) - SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` - if test -f "$SRCFILE"; then - cp "$SRCFILE" lex.yy.c - fi - ;; - esac - fi - if test ! -f lex.yy.c; then - echo 'main() { return 0; }' >lex.yy.c - fi - ;; - - help2man*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a dependency of a manual page. You may need the - \`Help2man' package in order for those modifications to take - effect. You can get \`Help2man' from any GNU archive site." - - file=`echo "$*" | sed -n "$sed_output"` - test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` - if test -f "$file"; then - touch $file - else - test -z "$file" || exec >$file - echo ".ab help2man is required to generate this page" - exit $? - fi - ;; - - makeinfo*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified a \`.texi' or \`.texinfo' file, or any other file - indirectly affecting the aspect of the manual. The spurious - call might also be the consequence of using a buggy \`make' (AIX, - DU, IRIX). You might want to install the \`Texinfo' package or - the \`GNU make' package. Grab either from any GNU archive site." - # The file to touch is that specified with -o ... - file=`echo "$*" | sed -n "$sed_output"` - test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` - if test -z "$file"; then - # ... or it is the one specified with @setfilename ... - infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` - file=`sed -n ' - /^@setfilename/{ - s/.* \([^ ]*\) *$/\1/ - p - q - }' $infile` - # ... or it is derived from the source name (dir/f.texi becomes f.info) - test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info - fi - # If the file does not exist, the user really needs makeinfo; - # let's fail without touching anything. - test -f $file || exit 1 - touch $file - ;; - - tar*) - shift - - # We have already tried tar in the generic part. - # Look for gnutar/gtar before invocation to avoid ugly error - # messages. - if (gnutar --version > /dev/null 2>&1); then - gnutar "$@" && exit 0 - fi - if (gtar --version > /dev/null 2>&1); then - gtar "$@" && exit 0 - fi - firstarg="$1" - if shift; then - case $firstarg in - *o*) - firstarg=`echo "$firstarg" | sed s/o//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - case $firstarg in - *h*) - firstarg=`echo "$firstarg" | sed s/h//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - fi - - echo 1>&2 "\ -WARNING: I can't seem to be able to run \`tar' with the given arguments. - You may want to install GNU tar or Free paxutils, or check the - command line arguments." - exit 1 - ;; - - *) - echo 1>&2 "\ -WARNING: \`$1' is needed, and is $msg. - You might have modified some files without having the - proper tools for further handling them. Check the \`README' file, - it often tells you about the needed prerequisites for installing - this package. You may also peek at any GNU archive site, in case - some other package would contain this missing \`$1' program." - exit 1 - ;; -esac - -exit 0 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff --git a/Build/source/libs/poppler/poppler-0.12.4/poppler/Movie.cc b/Build/source/libs/poppler/poppler-0.12.4/poppler/Movie.cc index e29c64e7946..92d4d322274 100644 --- a/Build/source/libs/poppler/poppler-0.12.4/poppler/Movie.cc +++ b/Build/source/libs/poppler/poppler-0.12.4/poppler/Movie.cc @@ -227,7 +227,7 @@ void MovieParameters::parseMediaPlayParameters(Object* obj) { if (tmp.dictLookup("S", &oname)->isName()) { char* name = oname.getName(); if (!strcmp(name, "F")) - duration.units = -1; // infinity + duration.units = (Gulong)(-1); // infinity else if (!strcmp(name, "T")) { if (tmp.dictLookup("T", &ddict)->isDict()) { if (ddict.dictLookup("V", &tmp2)->isNum()) { diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt/CMakeLists.txt b/Build/source/libs/poppler/poppler-0.12.4/qt/CMakeLists.txt deleted file mode 100644 index 7f4d233f391..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt/CMakeLists.txt +++ /dev/null @@ -1,34 +0,0 @@ -add_definitions(${QT3_DEFINITIONS}) - -include_directories( - ${CMAKE_CURRENT_SOURCE_DIR} - ${QT3_INCLUDE_DIR} -) - -set(poppler_qt_SRCS - poppler-document.cc - poppler-fontinfo.cc - poppler-link.cc - poppler-page.cc - poppler-page-transition.cc - poppler-private.cc -) -add_library(poppler-qt SHARED ${poppler_qt_SRCS}) -set_target_properties(poppler-qt PROPERTIES VERSION 2.0.0 SOVERSION 2) -target_link_libraries(poppler-qt poppler ${QT3_LIBRARIES}) -install(TARGETS poppler-qt RUNTIME DESTINATION bin LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX}) - -install(FILES - poppler-qt.h - poppler-page-transition.h - poppler-link-qt3.h - DESTINATION include/poppler/qt3) - - -set(test_poppler_qt_SOURCES - test-poppler-qt.cpp -) -poppler_add_test(test-poppler-qt BUILD_QT3_TESTS ${test_poppler_qt_SOURCES}) -target_link_libraries(test-poppler-qt poppler-qt) - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt/Makefile.am b/Build/source/libs/poppler/poppler-0.12.4/qt/Makefile.am deleted file mode 100644 index df0115cedac..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt/Makefile.am +++ /dev/null @@ -1,48 +0,0 @@ -INCLUDES = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/poppler \ - $(cairo_includes) \ - $(POPPLER_QT_CXXFLAGS) \ - $(FREETYPE_CFLAGS) \ - $(FONTCONFIG_CFLAGS) - - -poppler_includedir = $(includedir)/poppler/qt3 -poppler_include_HEADERS = \ - poppler-qt.h \ - poppler-page-transition.h \ - poppler-link-qt3.h - -lib_LTLIBRARIES = libpoppler-qt.la -libpoppler_qt_la_SOURCES = \ - poppler-document.cc \ - poppler-fontinfo.cc \ - poppler-link.cc \ - poppler-page.cc \ - poppler-page-transition.cc \ - poppler-page-transition-private.h \ - poppler-private.cc \ - poppler-private.h - -libpoppler_qt_la_LIBADD = \ - $(top_builddir)/poppler/libpoppler.la \ - $(POPPLER_QT_LIBS) \ - $(FREETYPE_LIBS) \ - $(FONTCONFIG_LIBS) - -libpoppler_qt_la_LDFLAGS = -version-info 2:0:0 @create_shared_lib@ - -if BUILD_SPLASH_OUTPUT - -noinst_PROGRAMS = test-poppler-qt - -endif - -test_poppler_qt_SOURCES = \ - test-poppler-qt.cpp - -test_poppler_qt_LDADD = \ - $(top_builddir)/poppler/libpoppler.la \ - libpoppler-qt.la \ - $(POPPLER_QT_LIBS) \ - $(FREETYPE_LIBS) diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt/Makefile.in b/Build/source/libs/poppler/poppler-0.12.4/qt/Makefile.in deleted file mode 100644 index 5b8c7c6a76f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt/Makefile.in +++ /dev/null @@ -1,742 +0,0 @@ -# Makefile.in generated by automake 1.11 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - - - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -@BUILD_SPLASH_OUTPUT_TRUE@noinst_PROGRAMS = test-poppler-qt$(EXEEXT) -subdir = qt -DIST_COMMON = $(poppler_include_HEADERS) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ - $(top_srcdir)/m4/define-dir.m4 $(top_srcdir)/m4/gtk-doc.m4 \ - $(top_srcdir)/m4/libjpeg.m4 $(top_srcdir)/m4/libpng.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/qt.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h \ - $(top_builddir)/poppler/poppler-config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__installdirs = "$(DESTDIR)$(libdir)" \ - "$(DESTDIR)$(poppler_includedir)" -LTLIBRARIES = $(lib_LTLIBRARIES) -am__DEPENDENCIES_1 = -libpoppler_qt_la_DEPENDENCIES = $(top_builddir)/poppler/libpoppler.la \ - $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) -am_libpoppler_qt_la_OBJECTS = poppler-document.lo poppler-fontinfo.lo \ - poppler-link.lo poppler-page.lo poppler-page-transition.lo \ - poppler-private.lo -libpoppler_qt_la_OBJECTS = $(am_libpoppler_qt_la_OBJECTS) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) -am__v_lt_0 = --silent -libpoppler_qt_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ - $(AM_CXXFLAGS) $(CXXFLAGS) $(libpoppler_qt_la_LDFLAGS) \ - $(LDFLAGS) -o $@ -PROGRAMS = $(noinst_PROGRAMS) -am_test_poppler_qt_OBJECTS = test-poppler-qt.$(OBJEXT) -test_poppler_qt_OBJECTS = $(am_test_poppler_qt_OBJECTS) -test_poppler_qt_DEPENDENCIES = $(top_builddir)/poppler/libpoppler.la \ - libpoppler-qt.la $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/poppler -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -AM_V_CXX = $(am__v_CXX_$(V)) -am__v_CXX_ = $(am__v_CXX_$(AM_DEFAULT_VERBOSITY)) -am__v_CXX_0 = @echo " CXX " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CXXLD = $(am__v_CXXLD_$(V)) -am__v_CXXLD_ = $(am__v_CXXLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CXXLD_0 = @echo " CXXLD " $@; -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_$(V)) -am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) -am__v_CC_0 = @echo " CC " $@; -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_$(V)) -am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CCLD_0 = @echo " CCLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -SOURCES = $(libpoppler_qt_la_SOURCES) $(test_poppler_qt_SOURCES) -DIST_SOURCES = $(libpoppler_qt_la_SOURCES) $(test_poppler_qt_SOURCES) -HEADERS = $(poppler_include_HEADERS) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ABIWORD_CFLAGS = @ABIWORD_CFLAGS@ -ABIWORD_LIBS = @ABIWORD_LIBS@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAIRO_CFLAGS = @CAIRO_CFLAGS@ -CAIRO_FEATURE = @CAIRO_FEATURE@ -CAIRO_LIBS = @CAIRO_LIBS@ -CAIRO_REQ = @CAIRO_REQ@ -CAIRO_VERSION = @CAIRO_VERSION@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ -FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ -FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ -FREETYPE_CONFIG = @FREETYPE_CONFIG@ -FREETYPE_LIBS = @FREETYPE_LIBS@ -GDK_CFLAGS = @GDK_CFLAGS@ -GDK_FEATURE = @GDK_FEATURE@ -GDK_LIBS = @GDK_LIBS@ -GLIB_MKENUMS = @GLIB_MKENUMS@ -GREP = @GREP@ -GTKDOC_CHECK = @GTKDOC_CHECK@ -GTK_TEST_CFLAGS = @GTK_TEST_CFLAGS@ -GTK_TEST_LIBS = @GTK_TEST_LIBS@ -HTML_DIR = @HTML_DIR@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LCMS_CFLAGS = @LCMS_CFLAGS@ -LCMS_LIBS = @LCMS_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBJPEG_LIBS = @LIBJPEG_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOPENJPEG_LIBS = @LIBOPENJPEG_LIBS@ -LIBPNG_LIBS = @LIBPNG_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -MOCQT4 = @MOCQT4@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PC_REQUIRES = @PC_REQUIRES@ -PC_REQUIRES_PRIVATE = @PC_REQUIRES_PRIVATE@ -PKG_CONFIG = @PKG_CONFIG@ -POPPLER_DATADIR = @POPPLER_DATADIR@ -POPPLER_GLIB_CFLAGS = @POPPLER_GLIB_CFLAGS@ -POPPLER_GLIB_DISABLE_DEPRECATED = @POPPLER_GLIB_DISABLE_DEPRECATED@ -POPPLER_GLIB_DISABLE_SINGLE_INCLUDES = @POPPLER_GLIB_DISABLE_SINGLE_INCLUDES@ -POPPLER_GLIB_LIBS = @POPPLER_GLIB_LIBS@ -POPPLER_MAJOR_VERSION = @POPPLER_MAJOR_VERSION@ -POPPLER_MICRO_VERSION = @POPPLER_MICRO_VERSION@ -POPPLER_MINOR_VERSION = @POPPLER_MINOR_VERSION@ -POPPLER_QT4_CFLAGS = @POPPLER_QT4_CFLAGS@ -POPPLER_QT4_CXXFLAGS = @POPPLER_QT4_CXXFLAGS@ -POPPLER_QT4_LIBS = @POPPLER_QT4_LIBS@ -POPPLER_QT4_TEST_CFLAGS = @POPPLER_QT4_TEST_CFLAGS@ -POPPLER_QT4_TEST_LIBS = @POPPLER_QT4_TEST_LIBS@ -POPPLER_QT_CXXFLAGS = @POPPLER_QT_CXXFLAGS@ -POPPLER_QT_LIBS = @POPPLER_QT_LIBS@ -PTHREAD_CC = @PTHREAD_CC@ -PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ -PTHREAD_LIBS = @PTHREAD_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZLIB_LIBS = @ZLIB_LIBS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -acx_pthread_config = @acx_pthread_config@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -auto_import_flags = @auto_import_flags@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -create_shared_lib = @create_shared_lib@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -win32_libs = @win32_libs@ -INCLUDES = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/poppler \ - $(cairo_includes) \ - $(POPPLER_QT_CXXFLAGS) \ - $(FREETYPE_CFLAGS) \ - $(FONTCONFIG_CFLAGS) - -poppler_includedir = $(includedir)/poppler/qt3 -poppler_include_HEADERS = \ - poppler-qt.h \ - poppler-page-transition.h \ - poppler-link-qt3.h - -lib_LTLIBRARIES = libpoppler-qt.la -libpoppler_qt_la_SOURCES = \ - poppler-document.cc \ - poppler-fontinfo.cc \ - poppler-link.cc \ - poppler-page.cc \ - poppler-page-transition.cc \ - poppler-page-transition-private.h \ - poppler-private.cc \ - poppler-private.h - -libpoppler_qt_la_LIBADD = \ - $(top_builddir)/poppler/libpoppler.la \ - $(POPPLER_QT_LIBS) \ - $(FREETYPE_LIBS) \ - $(FONTCONFIG_LIBS) - -libpoppler_qt_la_LDFLAGS = -version-info 2:0:0 @create_shared_lib@ -test_poppler_qt_SOURCES = \ - test-poppler-qt.cpp - -test_poppler_qt_LDADD = \ - $(top_builddir)/poppler/libpoppler.la \ - libpoppler-qt.la \ - $(POPPLER_QT_LIBS) \ - $(FREETYPE_LIBS) - -all: all-am - -.SUFFIXES: -.SUFFIXES: .cc .cpp .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign qt/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign qt/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): -install-libLTLIBRARIES: $(lib_LTLIBRARIES) - @$(NORMAL_INSTALL) - test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ - list2=; for p in $$list; do \ - if test -f $$p; then \ - list2="$$list2 $$p"; \ - else :; fi; \ - done; \ - test -z "$$list2" || { \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ - } - -uninstall-libLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ - done - -clean-libLTLIBRARIES: - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -libpoppler-qt.la: $(libpoppler_qt_la_OBJECTS) $(libpoppler_qt_la_DEPENDENCIES) - $(AM_V_CXXLD)$(libpoppler_qt_la_LINK) -rpath $(libdir) $(libpoppler_qt_la_OBJECTS) $(libpoppler_qt_la_LIBADD) $(LIBS) - -clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list -test-poppler-qt$(EXEEXT): $(test_poppler_qt_OBJECTS) $(test_poppler_qt_DEPENDENCIES) - @rm -f test-poppler-qt$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(test_poppler_qt_OBJECTS) $(test_poppler_qt_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-document.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-fontinfo.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-link.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-page-transition.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-page.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-private.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-poppler-qt.Po@am__quote@ - -.cc.o: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< - -.cc.obj: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.cc.lo: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< - -.cpp.o: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< - -.cpp.obj: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.cpp.lo: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-poppler_includeHEADERS: $(poppler_include_HEADERS) - @$(NORMAL_INSTALL) - test -z "$(poppler_includedir)" || $(MKDIR_P) "$(DESTDIR)$(poppler_includedir)" - @list='$(poppler_include_HEADERS)'; test -n "$(poppler_includedir)" || list=; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(poppler_includedir)'"; \ - $(INSTALL_HEADER) $$files "$(DESTDIR)$(poppler_includedir)" || exit $$?; \ - done - -uninstall-poppler_includeHEADERS: - @$(NORMAL_UNINSTALL) - @list='$(poppler_include_HEADERS)'; test -n "$(poppler_includedir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '$(DESTDIR)$(poppler_includedir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(poppler_includedir)" && rm -f $$files - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) -installdirs: - for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(poppler_includedir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ - clean-noinstPROGRAMS mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-poppler_includeHEADERS - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: install-libLTLIBRARIES - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-libLTLIBRARIES \ - uninstall-poppler_includeHEADERS - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ - clean-libLTLIBRARIES clean-libtool clean-noinstPROGRAMS ctags \ - distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-libLTLIBRARIES install-man install-pdf \ - install-pdf-am install-poppler_includeHEADERS install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \ - uninstall-am uninstall-libLTLIBRARIES \ - uninstall-poppler_includeHEADERS - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-document.cc b/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-document.cc deleted file mode 100644 index bade1d12230..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-document.cc +++ /dev/null @@ -1,332 +0,0 @@ -/* poppler-document.cc: qt interface to poppler - * Copyright (C) 2005, Net Integration Technologies, Inc. - * Copyright (C) 2005-2009, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2006, Stefan Kebekus <stefan.kebekus@math.uni-koeln.de> - * Copyright (C) 2006, Wilfried Huss <Wilfried.Huss@gmx.at> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <poppler-qt.h> -#include <qfile.h> -#include <GlobalParams.h> -#include <Outline.h> -#include <PDFDoc.h> -#include <PSOutputDev.h> -#include <Catalog.h> -#include <ErrorCodes.h> -#include <SplashOutputDev.h> -#include <splash/SplashBitmap.h> -#include <DateInfo.h> -#include "poppler-private.h" - -namespace Poppler { - -Document *Document::load(const QString &filePath) -{ - if (!globalParams) { - globalParams = new GlobalParams(); - } - - DocumentData *doc = new DocumentData(new GooString(QFile::encodeName(filePath)), NULL); - Document *pdoc; - if (doc->doc.isOk() || doc->doc.getErrorCode() == errEncrypted) { - pdoc = new Document(doc); - if (doc->doc.getErrorCode() == errEncrypted) - pdoc->data->locked = true; - else - pdoc->data->locked = false; - pdoc->data->m_fontInfoScanner = new FontInfoScanner(&(doc->doc)); - return pdoc; - } - else - return NULL; -} - -Document::Document(DocumentData *dataA) -{ - data = dataA; -} - -Document::~Document() -{ - delete data; -} - -bool Document::isLocked() const -{ - return data->locked; -} - -bool Document::unlock(const QCString &password) -{ - if (data->locked) { - /* racier then it needs to be */ - GooString *filename = new GooString(data->doc.getFileName()); - GooString *pwd = new GooString(password.data()); - DocumentData *doc2 = new DocumentData(filename, pwd); - delete pwd; - if (!doc2->doc.isOk()) { - delete doc2; - } else { - delete data; - data = doc2; - data->locked = false; - data->m_fontInfoScanner = new FontInfoScanner(&(data->doc)); - } - } - return data->locked; -} - -Document::PageMode Document::getPageMode(void) const -{ - switch (data->doc.getCatalog()->getPageMode()) { - case Catalog::pageModeNone: - return UseNone; - case Catalog::pageModeOutlines: - return UseOutlines; - case Catalog::pageModeThumbs: - return UseThumbs; - case Catalog::pageModeFullScreen: - return FullScreen; - case Catalog::pageModeOC: - return UseOC; - default: - return UseNone; - } -} - -int Document::getNumPages() const -{ - return data->doc.getNumPages(); -} - -QValueList<FontInfo> Document::fonts() const -{ - QValueList<FontInfo> ourList; - scanForFonts(getNumPages(), &ourList); - return ourList; -} - -bool Document::scanForFonts( int numPages, QValueList<FontInfo> *fontList ) const -{ - GooList *items = data->m_fontInfoScanner->scan( numPages ); - - if ( NULL == items ) - return false; - - for ( int i = 0; i < items->getLength(); ++i ) { - QString fontName; - if (((::FontInfo*)items->get(i))->getName()) - fontName = ((::FontInfo*)items->get(i))->getName()->getCString(); - - FontInfo font(fontName, - ((::FontInfo*)items->get(i))->getEmbedded(), - ((::FontInfo*)items->get(i))->getSubset(), - (Poppler::FontInfo::Type)((::FontInfo*)items->get(i))->getType()); - fontList->append(font); - } - deleteGooList(items, ::FontInfo); - return true; -} - -/* borrowed from kpdf */ -QString Document::getInfo( const QString & type ) const -{ - // [Albert] Code adapted from pdfinfo.cc on xpdf - Object info; - if ( data->locked ) - return NULL; - - data->doc.getDocInfo( &info ); - if ( !info.isDict() ) - return NULL; - - QString result; - Object obj; - GooString *s1; - GBool isUnicode; - Unicode u; - int i; - Dict *infoDict = info.getDict(); - - if ( infoDict->lookup( (char*)type.latin1(), &obj )->isString() ) - { - s1 = obj.getString(); - if ( ( s1->getChar(0) & 0xff ) == 0xfe && ( s1->getChar(1) & 0xff ) == 0xff ) - { - isUnicode = gTrue; - i = 2; - } - else - { - isUnicode = gFalse; - i = 0; - } - while ( i < obj.getString()->getLength() ) - { - if ( isUnicode ) - { - u = ( ( s1->getChar(i) & 0xff ) << 8 ) | ( s1->getChar(i+1) & 0xff ); - i += 2; - } - else - { - u = s1->getChar(i) & 0xff; - ++i; - } - result += unicodeToQString( &u, 1 ); - } - obj.free(); - info.free(); - return result; - } - obj.free(); - info.free(); - return NULL; -} - -/* borrowed from kpdf */ -QDateTime Document::getDate( const QString & type ) const -{ - // [Albert] Code adapted from pdfinfo.cc on xpdf - if ( data->locked ) - return QDateTime(); - - Object info; - data->doc.getDocInfo( &info ); - if ( !info.isDict() ) { - info.free(); - return QDateTime(); - } - - Object obj; - int year, mon, day, hour, min, sec, tz_hour, tz_minute; - char tz; - Dict *infoDict = info.getDict(); - QString result; - - if ( infoDict->lookup( (char*)type.latin1(), &obj )->isString() ) - { - QString s = UnicodeParsedString(obj.getString()); - // TODO do something with the timezone information - if ( parseDateString( s.latin1(), &year, &mon, &day, &hour, &min, &sec, &tz, &tz_hour, &tz_minute ) ) - { - QDate d( year, mon, day ); //CHECK: it was mon-1, Jan->0 (??) - QTime t( hour, min, sec ); - if ( d.isValid() && t.isValid() ) { - obj.free(); - info.free(); - return QDateTime( d, t ); - } - } - } - obj.free(); - info.free(); - return QDateTime(); -} - -bool Document::isEncrypted() const -{ - return data->doc.isEncrypted(); -} - -bool Document::isLinearized() const -{ - return data->doc.isLinearized(); -} - -bool Document::okToPrint() const -{ - return data->doc.okToPrint(); -} - -bool Document::okToChange() const -{ - return data->doc.okToChange(); -} - -bool Document::okToCopy() const -{ - return data->doc.okToCopy(); -} - -bool Document::okToAddNotes() const -{ - return data->doc.okToAddNotes(); -} - -double Document::getPDFVersion() const -{ - return data->doc.getPDFMajorVersion () + data->doc.getPDFMinorVersion() / 10.0; -} - -void Document::getPdfVersion(int *major, int *minor) const -{ - if (major) - *major = data->doc.getPDFMajorVersion(); - if (minor) - *minor = data->doc.getPDFMinorVersion(); -} - -QDomDocument *Document::toc() const -{ - Outline * outline = data->doc.getOutline(); - if ( !outline ) - return NULL; - - GooList * items = outline->getItems(); - if ( !items || items->getLength() < 1 ) - return NULL; - - QDomDocument *toc = new QDomDocument(); - if ( items->getLength() > 0 ) - data->addTocChildren( toc, toc, items ); - - return toc; -} - -LinkDestination *Document::linkDestination( const QString &name ) -{ - GooString * namedDest = QStringToGooString( name ); - LinkDestinationData ldd(NULL, namedDest, data); - LinkDestination *ld = new LinkDestination(ldd); - delete namedDest; - return ld; -} - -bool Document::print(const QString &fileName, QValueList<int> pageList, double hDPI, double vDPI, int rotate) -{ - return print(fileName, pageList, hDPI, vDPI, rotate, -1, -1); -} - -bool Document::print(const QString &file, QValueList<int> pageList, double hDPI, double vDPI, int rotate, int paperWidth, int paperHeight) -{ - PSOutputDev *psOut = new PSOutputDev(file.latin1(), data->doc.getXRef(), data->doc.getCatalog(), NULL, 1, data->doc.getNumPages(), psModePS, paperWidth, paperHeight); - - if (psOut->isOk()) { - QValueList<int>::iterator it; - for (it = pageList.begin(); it != pageList.end(); ++it ) - data->doc.displayPage(psOut, *it, hDPI, vDPI, rotate, gFalse, gTrue, gTrue); - - delete psOut; - return true; - } else { - delete psOut; - return false; - } -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-fontinfo.cc b/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-fontinfo.cc deleted file mode 100644 index 6eb9d26f161..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-fontinfo.cc +++ /dev/null @@ -1,83 +0,0 @@ -/* poppler-qt.h: qt interface to poppler - * Copyright (C) 2005, Albert Astals Cid <aacid@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-qt.h" - -namespace Poppler { - -class FontInfoData -{ - public: - QString fontName; - bool isEmbedded; - bool isSubset; - FontInfo::Type type; -}; - -FontInfo::FontInfo( const QString &fontName, const bool isEmbedded, const bool isSubset, Type type ) -{ - data = new FontInfoData(); - data->fontName = fontName; - data->isEmbedded = isEmbedded; - data->isSubset = isSubset; - data->type = type; -} - -FontInfo::FontInfo( const FontInfo &fi ) -{ - data = new FontInfoData(); - data->fontName = fi.data->fontName; - data->isEmbedded = fi.data->isEmbedded; - data->isSubset = fi.data->isSubset; - data->type = fi.data->type; -} - -FontInfo::FontInfo() -{ - data = new FontInfoData(); - data->isEmbedded = false; - data->isSubset = false; - data->type = unknown; -} - -FontInfo::~FontInfo() -{ - delete data; -} - -const QString &FontInfo::name() const -{ - return data->fontName; -} - -bool FontInfo::isEmbedded() const -{ - return data->isEmbedded; -} - -bool FontInfo::isSubset() const -{ - return data->isSubset; -} - -FontInfo::Type FontInfo::type() const -{ - return data->type; -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-link-qt3.h b/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-link-qt3.h deleted file mode 100644 index 82127207ca9..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-link-qt3.h +++ /dev/null @@ -1,188 +0,0 @@ -/* poppler-link.h: qt interface to poppler - * Copyright (C) 2006, Albert Astals Cid <aacid@kde.org> - * Adapting code from - * Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef _POPPLER_LINK_H_ -#define _POPPLER_LINK_H_ - -#include <qstring.h> -#include <qrect.h> - -namespace Poppler { - -class LinkDestinationData; - -class LinkDestination -{ - public: - enum Kind - { - destXYZ = 1, - destFit = 2, - destFitH = 3, - destFitV = 4, - destFitR = 5, - destFitB = 6, - destFitBH = 7, - destFitBV = 8 - }; - - LinkDestination(const LinkDestinationData &data); - LinkDestination(const QString &description); - - // Accessors. - Kind kind() const; - int pageNumber() const; - double left() const; - double bottom() const; - double right() const; - double top() const; - double zoom() const; - bool isChangeLeft() const; - bool isChangeTop() const; - bool isChangeZoom() const; - - QString toString() const; - - private: - Kind m_kind; // destination type - int m_pageNum; // page number - double m_left, m_bottom; // position - double m_right, m_top; - double m_zoom; // zoom factor - bool m_changeLeft, m_changeTop; // for destXYZ links, which position - bool m_changeZoom; // components to change -}; - -/** - * @short Encapsulates data that describes a link. - * - * This is the base class for links. It makes mandatory for inherited - * widgets to reimplement the 'linkType' method and return the type of - * the link described by the reimplemented class. - */ -class Link -{ - public: - Link( const QRect &linkArea ); - - // get link type (inherited classes mustreturn an unique identifier) - enum LinkType { None, Goto, Execute, Browse, Action, Movie }; - virtual LinkType linkType() const; - - // virtual destructor - virtual ~Link(); - - QRect linkArea() const; - - private: - QRect m_linkArea; -}; - - -/** Goto: a viewport and maybe a reference to an external filename **/ -class LinkGoto : public Link -{ - public: - LinkGoto( const QRect &linkArea, QString extFileName, const LinkDestination & destination ); - - // query for goto parameters - bool isExternal() const; - const QString & fileName() const; - const LinkDestination & destination() const; - LinkType linkType() const; - - private: - QString m_extFileName; - LinkDestination m_destination; -}; - -/** Execute: filename and parameters to execute **/ -class LinkExecute : public Link -{ - public: - // query for filename / parameters - const QString & fileName() const; - const QString & parameters() const; - - // create a Link_Execute - LinkExecute( const QRect &linkArea, const QString & file, const QString & params ); - LinkType linkType() const; - - private: - QString m_fileName; - QString m_parameters; -}; - -/** Browse: an URL to open, ranging from 'http://' to 'mailto:' etc.. **/ -class LinkBrowse : public Link -{ - public: - // query for URL - const QString & url() const; - - // create a Link_Browse - LinkBrowse( const QRect &linkArea, const QString &url ); - LinkType linkType() const; - - private: - QString m_url; -}; - -/** Action: contains an action to perform on document / viewer **/ -class LinkAction : public Link -{ - public: - // define types of actions - enum ActionType { PageFirst = 1, - PagePrev = 2, - PageNext = 3, - PageLast = 4, - HistoryBack = 5, - HistoryForward = 6, - Quit = 7, - Presentation = 8, - EndPresentation = 9, - Find = 10, - GoToPage = 11, - Close = 12 }; - - // query for action type - ActionType actionType() const; - - // create a Link_Action - LinkAction( const QRect &linkArea, ActionType actionType ); - LinkType linkType() const; - - private: - ActionType m_type; -}; - -/** Movie: Not yet defined -> think renaming to 'Media' link **/ -class LinkMovie : public Link -// TODO this (Movie link) -{ - public: - LinkMovie( const QRect &linkArea ); - LinkType linkType() const; -}; - -} - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-link.cc b/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-link.cc deleted file mode 100644 index af6d6452713..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-link.cc +++ /dev/null @@ -1,267 +0,0 @@ -/* poppler-link.cc: qt interface to poppler - * Copyright (C) 2006, 2008 Albert Astals Cid - * Adapting code from - * Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <poppler-qt.h> -#include <poppler-private.h> - -#include <qstringlist.h> - -#include <Link.h> - -namespace Poppler { - - LinkDestination::LinkDestination(const LinkDestinationData &data) - { - bool deleteDest = false; - LinkDest *ld = data.ld; - - if ( data.namedDest && !ld ) - { - deleteDest = true; - ld = data.doc->doc.findDest( data.namedDest ); - } - - if (!ld) return; - - if (ld->getKind() == ::destXYZ) m_kind = destXYZ; - else if (ld->getKind() == ::destFit) m_kind = destFit; - else if (ld->getKind() == ::destFitH) m_kind = destFitH; - else if (ld->getKind() == ::destFitV) m_kind = destFitV; - else if (ld->getKind() == ::destFitR) m_kind = destFitR; - else if (ld->getKind() == ::destFitB) m_kind = destFitB; - else if (ld->getKind() == ::destFitBH) m_kind = destFitBH; - else if (ld->getKind() == ::destFitBV) m_kind = destFitBV; - - if ( !ld->isPageRef() ) m_pageNum = ld->getPageNum(); - else - { - Ref ref = ld->getPageRef(); - m_pageNum = data.doc->doc.findPage( ref.num, ref.gen ); - } - double left = ld->getLeft(); - double bottom = ld->getBottom(); - double right = ld->getRight(); - double top = ld->getTop(); - m_zoom = ld->getZoom(); - m_changeLeft = ld->getChangeLeft(); - m_changeTop = ld->getChangeTop(); - m_changeZoom = ld->getChangeZoom(); - - int leftAux = 0, topAux = 0, rightAux = 0, bottomAux = 0; - -#if defined(HAVE_SPLASH) - SplashOutputDev *sod = data.doc->getOutputDev(); - sod->cvtUserToDev( left, top, &leftAux, &topAux ); - sod->cvtUserToDev( right, bottom, &rightAux, &bottomAux ); -#endif - - m_left = leftAux; - m_top = topAux; - m_right = rightAux; - m_bottom = bottomAux; - - if (deleteDest) delete ld; - } - - LinkDestination::LinkDestination(const QString &description) - { - QStringList tokens = QStringList::split(';', description); - m_kind = static_cast<Kind>(tokens[0].toInt()); - m_pageNum = tokens[1].toInt(); - m_left = tokens[2].toDouble(); - m_bottom = tokens[3].toDouble(); - m_right = tokens[4].toDouble(); - m_top = tokens[5].toDouble(); - m_zoom = tokens[6].toDouble(); - m_changeLeft = static_cast<bool>(tokens[7].toInt()); - m_changeTop = static_cast<bool>(tokens[8].toInt()); - m_changeZoom = static_cast<bool>(tokens[9].toInt()); - } - - LinkDestination::Kind LinkDestination::kind() const - { - return m_kind; - } - - int LinkDestination::pageNumber() const - { - return m_pageNum; - } - - double LinkDestination::left() const - { - return m_left; - } - - double LinkDestination::bottom() const - { - return m_bottom; - } - - double LinkDestination::right() const - { - return m_right; - } - - double LinkDestination::top() const - { - return m_top; - } - - double LinkDestination::zoom() const - { - return m_zoom; - } - - bool LinkDestination::isChangeLeft() const - { - return m_changeLeft; - } - - bool LinkDestination::isChangeTop() const - { - return m_changeTop; - } - - bool LinkDestination::isChangeZoom() const - { - return m_changeZoom; - } - - QString LinkDestination::toString() const - { - QString s = QString::number( (Q_INT8)m_kind ); - s += ";" + QString::number( m_pageNum ); - s += ";" + QString::number( m_left ); - s += ";" + QString::number( m_bottom ); - s += ";" + QString::number( m_right ); - s += ";" + QString::number( m_top ); - s += ";" + QString::number( m_zoom ); - s += ";" + QString::number( (Q_INT8)m_changeLeft ); - s += ";" + QString::number( (Q_INT8)m_changeTop ); - s += ";" + QString::number( (Q_INT8)m_changeZoom ); - return s; - } - - - // Link - Link::~Link() - { - } - - Link::Link(const QRect &linkArea) : m_linkArea(linkArea) - { - } - - Link::LinkType Link::linkType() const - { - return None; - } - - QRect Link::linkArea() const - { - return m_linkArea; - } - - // LinkGoto - LinkGoto::LinkGoto( const QRect &linkArea, QString extFileName, const LinkDestination & destination ) : Link(linkArea), m_extFileName(extFileName), m_destination(destination) - { - } - - bool LinkGoto::isExternal() const - { - return !m_extFileName.isEmpty(); - } - - const QString &LinkGoto::fileName() const - { - return m_extFileName; - } - - const LinkDestination &LinkGoto::destination() const - { - return m_destination; - } - - Link::LinkType LinkGoto::linkType() const - { - return Goto; - } - - // LinkExecute - LinkExecute::LinkExecute( const QRect &linkArea, const QString & file, const QString & params ) : Link(linkArea), m_fileName(file), m_parameters(params) - { - } - - const QString & LinkExecute::fileName() const - { - return m_fileName; - } - const QString & LinkExecute::parameters() const - { - return m_parameters; - } - - Link::LinkType LinkExecute::linkType() const - { - return Execute; - } - - // LinkBrowse - LinkBrowse::LinkBrowse( const QRect &linkArea, const QString &url ) : Link(linkArea), m_url(url) - { - } - - const QString & LinkBrowse::url() const - { - return m_url; - } - - Link::LinkType LinkBrowse::linkType() const - { - return Browse; - } - - // LinkAction - LinkAction::LinkAction( const QRect &linkArea, ActionType actionType ) : Link(linkArea), m_type(actionType) - { - } - - LinkAction::ActionType LinkAction::actionType() const - { - return m_type; - } - - Link::LinkType LinkAction::linkType() const - { - return Action; - } - - // LinkMovie - LinkMovie::LinkMovie( const QRect &linkArea ) : Link(linkArea) - { - } - - Link::LinkType LinkMovie::linkType() const - { - return Movie; - } - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-page-transition-private.h b/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-page-transition-private.h deleted file mode 100644 index 63febb09619..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-page-transition-private.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2005, Albert Astals Cid - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -class Object; - -namespace Poppler { - -class PageTransitionParams { - public: - Object *dictObj; -}; - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-page-transition.cc b/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-page-transition.cc deleted file mode 100644 index cde8818d67b..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-page-transition.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* PageTransition.cc - * Copyright (C) 2005, Net Integration Technologies, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "PageTransition.h" -#include "poppler-page-transition.h" -#include "poppler-page-transition-private.h" - -namespace Poppler { - -class PageTransitionData -{ - public: - PageTransitionData(Object *trans) - { - pt = new ::PageTransition(trans); - } - - PageTransitionData(const PageTransitionData &ptd) - { - pt = new ::PageTransition(*ptd.pt); - } - - ~PageTransitionData() - { - delete pt; - } - - ::PageTransition *pt; -}; - -PageTransition::PageTransition(const PageTransitionParams ¶ms) -{ - data = new PageTransitionData(params.dictObj); -} - -PageTransition::PageTransition(const PageTransition &pt) -{ - data = new PageTransitionData(*pt.data); -} - -PageTransition::~PageTransition() -{ - delete data; -} - -PageTransition::Type PageTransition::type() const -{ - return (Poppler::PageTransition::Type)data->pt->getType(); -} - -int PageTransition::duration() const -{ - return data->pt->getDuration(); -} - -PageTransition::Alignment PageTransition::alignment() const -{ - return (Poppler::PageTransition::Alignment)data->pt->getAlignment(); -} - -PageTransition::Direction PageTransition::direction() const -{ - return (Poppler::PageTransition::Direction)data->pt->getDirection(); -} - -int PageTransition::angle() const -{ - return data->pt->getAngle(); -} - -double PageTransition::scale() const -{ - return data->pt->getScale(); -} -bool PageTransition::isRectangular() const -{ - return data->pt->isRectangular(); -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-page-transition.h b/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-page-transition.h deleted file mode 100644 index 53002ff9117..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-page-transition.h +++ /dev/null @@ -1,146 +0,0 @@ -/* PageTransition.h - * Copyright (C) 2005, Net Integration Technologies, Inc. - * Copyright (C) 2005, Brad Hards <bradh@frogmouth.net> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __PAGETRANSITION_X_H__ -#define __PAGETRANSITION_X_H__ - -namespace Poppler { - -class PageTransitionParams; -class PageTransitionData; - -/** - \brief Describes how a PDF file viewer shall perform the transition - from one page to another - - In PDF files there is a way to specify if the viewer shall use - certain effects to perform the transition from one page to - another. This feature can be used, e.g., in a PDF-based beamer - presentation. - - This utility class represents the transition effect, and can be - used to extract the information from a PDF object. -*/ - - -class PageTransition { - public: - - /** \brief transition effect that shall be used - */ - // if changed remember to keep in sync with PageTransition.h enum - enum Type { - Replace = 0, - Split, - Blinds, - Box, - Wipe, - Dissolve, - Glitter, - Fly, - Push, - Cover, - Uncover, - Fade - }; - - /** \brief alignment of the transition effect that shall be used - */ - // if changed remember to keep in sync with PageTransition.h enum - enum Alignment { - Horizontal = 0, - Vertical - }; - - /** \brief direction of the transition effect that shall be used - */ - // if changed remember to keep in sync with PageTransition.h enum - enum Direction { - Inward = 0, - Outward - }; - - /** \brief Construct a new PageTransition object from a page dictionary. - - Users of the library will rarely need to construct a - PageTransition object themselves. Instead, the method - Poppler::Page::transition() can be used to find out if a certain - transition effect is specified. - - @warning In case or error, this method will print an error message to stderr, - and construct a default object. - - @param params an object whose dictionary will be read and - parsed. This must be a valid object, whose dictionaries are - accessed by the constructor. The object is only accessed by this - constructor, and may be deleted after the constructor returns. - */ - PageTransition(const PageTransitionParams ¶ms); - - /** \brief copy constructor */ - PageTransition(const PageTransition &pt); - - /** - Destructor - */ - ~PageTransition(); - - /** - \brief Get type of the transition. - */ - Type type() const; - - /** - \brief Get duration of the transition in seconds. - */ - int duration() const; - - /** - \brief Get dimension in which the transition effect occurs. - */ - Alignment alignment() const; - - /** - \brief Get direction of motion of the transition effect. - */ - Direction direction() const; - - /** - \brief Get direction in which the transition effect moves. - */ - int angle() const; - - /** - \brief Get starting or ending scale. - */ - double scale() const; - - /** - \brief Returns true if the area to be flown is rectangular and - opaque. - */ - bool isRectangular() const; - - private: - PageTransitionData *data; -}; - -} - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-page.cc b/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-page.cc deleted file mode 100644 index 50c28aa6065..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-page.cc +++ /dev/null @@ -1,361 +0,0 @@ -/* poppler-page.cc: qt interface to poppler - * Copyright (C) 2005, Net Integration Technologies, Inc. - * Copyright (C) 2005-2006, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2005, Tobias Koening <tokoe@kde.org> - * Copyright (C) 2005, Stefan Kebekus <stefan.kebekus@math.uni-koeln.de> - * Copyright (C) 2006, Wilfried Huss <Wilfried.Huss@gmx.at> - * Copyright (C) 2006, Jerry Epplin <jepplin@globalvelocity.com> - * Copyright (C) 2007, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <poppler-qt.h> -#include <qfile.h> -#include <qimage.h> -#include <config.h> -#include <GlobalParams.h> -#include <PDFDoc.h> -#include <Catalog.h> -#include <ErrorCodes.h> -#include <TextOutputDev.h> -#include <Link.h> -#if defined(HAVE_SPLASH) -#include <SplashOutputDev.h> -#include <splash/SplashBitmap.h> -#endif - -#include "poppler-private.h" -#include "poppler-page-transition-private.h" - -namespace Poppler { - -class PageData { - public: - const Document *doc; - int index; - PageTransition *transition; -}; - -Page::Page(const Document *doc, int index) { - data = new PageData(); - data->index = index; - data->doc = doc; - data->transition = 0; -} - -Page::~Page() -{ - delete data->transition; - delete data; -} - -void Page::renderToPixmap(QPixmap **q, int x, int y, int w, int h, bool doLinks) const -{ - renderToPixmap(q, x, y, w, h, 72.0, 72.0, doLinks); -} - -void Page::renderToPixmap(QPixmap **q, int x, int y, int w, int h, double xres, double yres, bool doLinks) const -{ - QImage img = renderToImage(xres, yres, doLinks); - *q = new QPixmap( img ); -} - -QImage Page::renderToImage(double xres, double yres, bool doLinks) const -{ -#if defined(HAVE_SPLASH) - SplashOutputDev *output_dev; - SplashBitmap *bitmap; - SplashColorPtr color_ptr; - output_dev = data->doc->data->getOutputDev(); - - data->doc->data->doc.displayPageSlice(output_dev, data->index + 1, xres, yres, - 0, false, true, false, -1, -1, -1, -1); - bitmap = output_dev->getBitmap (); - color_ptr = bitmap->getDataPtr (); - int bw = output_dev->getBitmap()->getWidth(); - int bh = output_dev->getBitmap()->getHeight(); - SplashColorPtr dataPtr = output_dev->getBitmap()->getDataPtr(); - - if (QImage::BigEndian == QImage::systemByteOrder()) - { - uchar c; - int count = bw * bh * 4; - for (int k = 0; k < count; k += 4) - { - c = dataPtr[k]; - dataPtr[k] = dataPtr[k+3]; - dataPtr[k+3] = c; - - c = dataPtr[k+1]; - dataPtr[k+1] = dataPtr[k+2]; - dataPtr[k+2] = c; - } - } - - // construct a qimage SHARING the raw bitmap data in memory - QImage img( dataPtr, bw, bh, 32, 0, 0, QImage::IgnoreEndian ); - img = img.copy(); - // unload underlying xpdf bitmap - output_dev->startPage( 0, NULL ); - - return img; -#else - (void)xres; - (void)xres; - (void)doLinks; - - return QImage(); -#endif -} - -QString Page::getText(const Rectangle &r) const -{ - TextOutputDev *output_dev; - GooString *s; - PDFRectangle *rect; - QString result; - ::Page *p; - - output_dev = new TextOutputDev(0, gFalse, gFalse, gFalse); - data->doc->data->doc.displayPageSlice(output_dev, data->index + 1, 72, 72, - 0, false, false, false, -1, -1, -1, -1); - p = data->doc->data->doc.getCatalog()->getPage(data->index + 1); - if (r.isNull()) - { - rect = p->getCropBox(); - s = output_dev->getText(rect->x1, rect->y1, rect->x2, rect->y2); - } - else - { - double height, y1, y2; - height = p->getCropHeight(); - y1 = height - r.m_y2; - y2 = height - r.m_y1; - s = output_dev->getText(r.m_x1, y1, r.m_x2, y2); - } - - result = QString::fromUtf8(s->getCString()); - - delete output_dev; - delete s; - return result; -} - -QValueList<TextBox*> Page::textList() const -{ - TextOutputDev *output_dev; - - QValueList<TextBox*> output_list; - - output_dev = new TextOutputDev(0, gFalse, gFalse, gFalse); - - data->doc->data->doc.displayPageSlice(output_dev, data->index + 1, 72, 72, - 0, false, false, false, -1, -1, -1, -1); - - TextWordList *word_list = output_dev->makeWordList(); - - if (!word_list) { - delete output_dev; - return output_list; - } - - for (int i = 0; i < word_list->getLength(); i++) { - TextWord *word = word_list->get(i); - GooString *word_str = word->getText(); - QString string = QString::fromUtf8(word_str->getCString()); - delete word_str; - double xMin, yMin, xMax, yMax; - word->getBBox(&xMin, &yMin, &xMax, &yMax); - - TextBox* text_box = new TextBox(string, Rectangle(xMin, yMin, xMax, yMax)); - - output_list.append(text_box); - } - - delete word_list; - delete output_dev; - - return output_list; -} - -PageTransition *Page::getTransition() const -{ - if (!data->transition) - { - Object o; - PageTransitionParams params; - params.dictObj = data->doc->data->doc.getCatalog()->getPage(data->index + 1)->getTrans(&o); - data->transition = new PageTransition(params); - o.free(); - } - return data->transition; -} - -QSize Page::pageSize() const -{ - ::Page *p; - - p = data->doc->data->doc.getCatalog()->getPage(data->index + 1); - if ( ( Page::Landscape == orientation() ) || (Page::Seascape == orientation() ) ) { - return QSize( (int)p->getCropHeight(), (int)p->getCropWidth() ); - } else { - return QSize( (int)p->getCropWidth(), (int)p->getCropHeight() ); - } -} - -Page::Orientation Page::orientation() const -{ - ::Page *p = data->doc->data->doc.getCatalog()->getPage(data->index + 1); - - int rotation = p->getRotate(); - switch (rotation) { - case 90: - return Page::Landscape; - break; - case 180: - return Page::UpsideDown; - break; - case 270: - return Page::Seascape; - break; - default: - return Page::Portrait; - } -} - -QValueList<Link*> Page::links() const -{ - QValueList<Link*> popplerLinks; - -#if defined(HAVE_SPLASH) - Links *xpdfLinks = data->doc->data->doc.getLinks(data->index + 1); - for (int i = 0; i < xpdfLinks->getNumLinks(); ++i) - { - ::Link *xpdfLink = xpdfLinks->getLink(i); - - double left, top, right, bottom; - int leftAux, topAux, rightAux, bottomAux; - xpdfLink->getRect( &left, &top, &right, &bottom ); - QRect linkArea; - - data->doc->data->m_outputDev->cvtUserToDev( left, top, &leftAux, &topAux ); - data->doc->data->m_outputDev->cvtUserToDev( right, bottom, &rightAux, &bottomAux ); - linkArea.setLeft(leftAux); - linkArea.setTop(topAux); - linkArea.setRight(rightAux); - linkArea.setBottom(bottomAux); - - if (!xpdfLink->isOk()) continue; - - Link *popplerLink = NULL; - ::LinkAction *a = xpdfLink->getAction(); - if ( a ) - { - switch ( a->getKind() ) - { - case actionGoTo: - { - LinkGoTo * g = (LinkGoTo *) a; - // create link: no ext file, namedDest, object pointer - popplerLink = new LinkGoto( linkArea, QString::null, LinkDestination( LinkDestinationData(g->getDest(), g->getNamedDest(), data->doc->data ) ) ); - } - break; - - case actionGoToR: - { - LinkGoToR * g = (LinkGoToR *) a; - // copy link file - const QString fileName = UnicodeParsedString( g->getFileName() ); - // ceate link: fileName, namedDest, object pointer - popplerLink = new LinkGoto( linkArea, fileName, LinkDestination( LinkDestinationData(g->getDest(), g->getNamedDest(), data->doc->data ) ) ); - } - break; - - case actionLaunch: - { - LinkLaunch * e = (LinkLaunch *)a; - GooString * p = e->getParams(); - popplerLink = new LinkExecute( linkArea, e->getFileName()->getCString(), p ? p->getCString() : 0 ); - } - break; - - case actionNamed: - { - const char * name = ((LinkNamed *)a)->getName()->getCString(); - if ( !strcmp( name, "NextPage" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::PageNext ); - else if ( !strcmp( name, "PrevPage" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::PagePrev ); - else if ( !strcmp( name, "FirstPage" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::PageFirst ); - else if ( !strcmp( name, "LastPage" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::PageLast ); - else if ( !strcmp( name, "GoBack" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::HistoryBack ); - else if ( !strcmp( name, "GoForward" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::HistoryForward ); - else if ( !strcmp( name, "Quit" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::Quit ); - else if ( !strcmp( name, "GoToPage" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::GoToPage ); - else if ( !strcmp( name, "Find" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::Find ); - else if ( !strcmp( name, "FullScreen" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::Presentation ); - else if ( !strcmp( name, "Close" ) ) - { - // acroread closes the document always, doesnt care whether - // its presentation mode or not - // popplerLink = new LinkAction( linkArea, LinkAction::EndPresentation ); - popplerLink = new LinkAction( linkArea, LinkAction::Close ); - } - else - { - // TODO - } - } - break; - - case actionURI: - { - popplerLink = new LinkBrowse( linkArea, ((LinkURI *)a)->getURI()->getCString() ); - } - break; - - case actionMovie: - case actionSound: - case actionRendition: - case actionJavaScript: - break; - - case actionUnknown: - break; - } - } - - if (popplerLink) - { - popplerLinks.append(popplerLink); - } - } - - delete xpdfLinks; -#endif - - return popplerLinks; -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-private.cc b/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-private.cc deleted file mode 100644 index 2388a1b5216..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-private.cc +++ /dev/null @@ -1,147 +0,0 @@ -/* poppler-private.h: qt interface to poppler - * Copyright (C) 2005, Net Integration Technologies, Inc. - * Copyright (C) 2005-2008, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2006, Kristian Høgsberg <krh@bitplanet.net> - * Copyright (C) 2006, Wilfried Huss <Wilfried.Huss@gmx.at> - * Copyright (C) 2007, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-private.h" -#include "poppler-link-qt3.h" - -#include <qstring.h> - -#include <Outline.h> -#include <Link.h> - -namespace Poppler { - -/* borrowed from kpdf */ -QString unicodeToQString(Unicode* u, int len) -{ - QString ret; - ret.setLength(len); - QChar* qch = (QChar*) ret.unicode(); - for (;len;--len) - *qch++ = (QChar) *u++; - return ret; -} - -QString UnicodeParsedString(GooString *s1) -{ - GBool isUnicode; - int i; - Unicode u; - QString result; - if ( ( s1->getChar(0) & 0xff ) == 0xfe && ( s1->getChar(1) & 0xff ) == 0xff ) - { - isUnicode = gTrue; - i = 2; - } - else - { - isUnicode = gFalse; - i = 0; - } - while ( i < s1->getLength() ) - { - if ( isUnicode ) - { - u = ( ( s1->getChar(i) & 0xff ) << 8 ) | ( s1->getChar(i+1) & 0xff ); - i += 2; - } - else - { - u = s1->getChar(i) & 0xff; - ++i; - } - result += unicodeToQString( &u, 1 ); - } - return result; -} - -GooString *QStringToGooString(const QString &s) -{ - int len = s.length(); - char *cstring = (char *)gmallocn(s.length(), sizeof(char)); - for (int i = 0; i < len; ++i) - cstring[i] = s.at(i).unicode(); - GooString *ret = new GooString(cstring, len); - gfree(cstring); - return ret; -} - - -void DocumentData::addTocChildren( QDomDocument * docSyn, QDomNode * parent, GooList * items ) -{ - int numItems = items->getLength(); - for ( int i = 0; i < numItems; ++i ) - { - // iterate over every object in 'items' - OutlineItem * outlineItem = (OutlineItem *)items->get( i ); - - // 1. create element using outlineItem's title as tagName - QString name; - Unicode * uniChar = outlineItem->getTitle(); - int titleLength = outlineItem->getTitleLength(); - name = unicodeToQString(uniChar, titleLength); - if ( name.isEmpty() ) - continue; - - QDomElement item = docSyn->createElement( name ); - parent->appendChild( item ); - - // 2. find the page the link refers to - ::LinkAction * a = outlineItem->getAction(); - if ( a && ( a->getKind() == actionGoTo || a->getKind() == actionGoToR ) ) - { - // page number is contained/referenced in a LinkGoTo - LinkGoTo * g = static_cast< LinkGoTo * >( a ); - LinkDest * destination = g->getDest(); - if ( !destination && g->getNamedDest() ) - { - // no 'destination' but an internal 'named reference'. we could - // get the destination for the page now, but it's VERY time consuming, - // so better storing the reference and provide the viewport on demand - GooString *s = g->getNamedDest(); - QChar *charArray = new QChar[s->getLength()]; - for (int i = 0; i < s->getLength(); ++i) charArray[i] = QChar(s->getCString()[i]); - QString aux(charArray, s->getLength()); - item.setAttribute( "DestinationName", aux ); - delete[] charArray; - } - else if ( destination && destination->isOk() ) - { - LinkDestinationData ldd(destination, NULL, this); - item.setAttribute( "Destination", LinkDestination(ldd).toString() ); - } - if ( a->getKind() == actionGoToR ) - { - LinkGoToR * g2 = static_cast< LinkGoToR * >( a ); - item.setAttribute( "ExternalFileName", g2->getFileName()->getCString() ); - } - } - - // 3. recursively descend over children - outlineItem->open(); - GooList * children = outlineItem->getKids(); - if ( children ) - addTocChildren( docSyn, &item, children ); - } -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-private.h b/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-private.h deleted file mode 100644 index 4351d686642..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-private.h +++ /dev/null @@ -1,92 +0,0 @@ -/* poppler-private.h: qt interface to poppler - * Copyright (C) 2005, Net Integration Technologies, Inc. - * Copyright (C) 2005-2008, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2006, Kristian Høgsberg <krh@bitplanet.net> - * Copyright (C) 2006, Wilfried Huss <Wilfried.Huss@gmx.at> - * Copyright (C) 2007, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <qdom.h> - -#include <config.h> -#include <Object.h> -#include <PDFDoc.h> -#include <FontInfo.h> -#if defined(HAVE_SPLASH) -#include <SplashOutputDev.h> -#else -class SplashOutputDev; -#endif - -namespace Poppler { - -class DocumentData; - -QString unicodeToQString(Unicode* u, int len); - -QString UnicodeParsedString(GooString *s1); - -GooString *QStringToGooString(const QString &s); - -class LinkDestinationData { - public: - LinkDestinationData( LinkDest *l, GooString *nd, Poppler::DocumentData *pdfdoc ) : ld(l), namedDest(nd), doc(pdfdoc) - { - } - - LinkDest *ld; - GooString *namedDest; - Poppler::DocumentData *doc; -}; - -class DocumentData { - public: - DocumentData(GooString *filePath, GooString *password) : doc(filePath,password), m_fontInfoScanner(0), m_outputDev(0) {} - - ~DocumentData() - { -#if defined(HAVE_SPLASH) - delete m_outputDev; -#endif - delete m_fontInfoScanner; - } - - SplashOutputDev *getOutputDev() - { -#if defined(HAVE_SPLASH) - if (!m_outputDev) - { - SplashColor white; - white[0] = 255; - white[1] = 255; - white[2] = 255; - m_outputDev = new SplashOutputDev(splashModeXBGR8, 4, gFalse, white); - m_outputDev->startDoc(doc.getXRef()); - } -#endif - return m_outputDev; - } - - void addTocChildren( QDomDocument * docSyn, QDomNode * parent, GooList * items ); - - class PDFDoc doc; - bool locked; - FontInfoScanner *m_fontInfoScanner; - SplashOutputDev *m_outputDev; -}; - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-qt.h b/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-qt.h deleted file mode 100644 index a6b1e6ec14e..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt/poppler-qt.h +++ /dev/null @@ -1,310 +0,0 @@ -/* poppler-qt.h: qt interface to poppler - * Copyright (C) 2005, Net Integration Technologies, Inc. - * Copyright (C) 2005, Tobias Koening <tokoe@kde.org> - * Copyright (C) 2005-2007, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2005-2006, Stefan Kebekus <stefan.kebekus@math.uni-koeln.de> - * Copyright (C) 2006, Wilfried Huss <Wilfried.Huss@gmx.at> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __POPPLER_QT_H__ -#define __POPPLER_QT_H__ - -#include "poppler-link-qt3.h" -#include "poppler-page-transition.h" - -#include <qcstring.h> -#include <qdatetime.h> -#include <qdom.h> -#include <qpixmap.h> - -namespace Poppler { - -class Document; -class Page; - -/* A rectangle on a page, with coordinates in PDF points. */ -class Rectangle -{ - public: - Rectangle(double x1 = 0, double y1 = 0, double x2 = 0, double y2 = 0) : - m_x1(x1), m_y1(y1), m_x2(x2), m_y2(y2) {} - bool isNull() const { return m_x1 == 0 && m_y1 == 0 && m_x2 == 0 && m_y2 == 0; } - - double m_x1; - double m_y1; - double m_x2; - double m_y2; -}; - -class TextBox -{ - public: - TextBox(const QString& text, const Rectangle &bBox) : - m_text(text), m_bBox(bBox) {}; - - QString getText() const { return m_text; }; - Rectangle getBoundingBox() const { return m_bBox; }; - - private: - QString m_text; - Rectangle m_bBox; -}; - - -/** - Container class for information about a font within a PDF document -*/ -class FontInfoData; -class FontInfo { -public: - enum Type { - unknown, - Type1, - Type1C, - Type1COT, - Type3, - TrueType, - TrueTypeOT, - CIDType0, - CIDType0C, - CIDType0COT, - CIDTrueType, - CIDTrueTypeOT - }; - - /** - Create a new font information container - */ - FontInfo( const QString &fontName, const bool isEmbedded, - const bool isSubset, Type type ); - - FontInfo(); - - FontInfo( const FontInfo &fi ); - - ~FontInfo(); - - /** - The name of the font. Can be QString::null if the font has no name - */ - const QString &name() const; - - /** - Whether the font is embedded in the file, or not - - \return true if the font is embedded - */ - bool isEmbedded() const; - - /** - Whether the font provided is only a subset of the full - font or not. This only has meaning if the font is embedded. - - \return true if the font is only a subset - */ - bool isSubset() const; - - /** - The type of font encoding - */ - Type type() const; - - const QString &typeName() const; - -private: - FontInfoData *data; -}; - -class PageData; -class Page { - friend class Document; - public: - ~Page(); - void renderToPixmap(QPixmap **q, int x, int y, int w, int h, double xres, double yres, bool doLinks = false) const; - - /** - This is a convenience function that is equivalent to - renderToPixmap() with xres and yres set to 72.0. We keep it - only for binary compatibility - - \sa renderToImage() - */ - void renderToPixmap(QPixmap **q, int x, int y, int w, int h, bool doLinks = false) const; - - /** - \brief Render the page to a QImage using the Splash renderer - - This method can be used to render the page to a QImage. It - uses the "Splash" rendering engine. - - \param xres horizontal resolution of the graphics device, - in dots per inch (defaults to 72 dpi) - - \param yres vertical resolution of the graphics device, in - dots per inch (defaults to 72 dpi) - - \returns a QImage of the page. - - \sa renderToPixmap() - */ - QImage renderToImage(double xres = 72.0, double yres = 72.0, bool doLinks = false) const; - - /** - * Returns the size of the page in points - **/ - QSize pageSize() const; - - /** - * Returns the text that is inside the Rectangle r - * If r is a null Rectangle all text of the page is given - **/ - QString getText(const Rectangle &r) const; - - QValueList<TextBox*> textList() const; - - /** - * Returns the transition of this page - **/ - PageTransition *getTransition() const; - - enum Orientation { - Landscape, - Portrait, - Seascape, - UpsideDown - }; - - /** - * The orientation of the page - **/ - Orientation orientation() const; - - /** - Gets the links of the page once it has been rendered if doLinks was true - */ - QValueList<Link*> links() const; - - private: - Page(const Document *doc, int index); - PageData *data; -}; - -class DocumentData; - -class Document { - friend class Page; - -public: - enum PageMode { - UseNone, - UseOutlines, - UseThumbs, - FullScreen, - UseOC - }; - - static Document *load(const QString & filePath); - - Page *getPage(int index) const{ return new Page(this, index); } - - int getNumPages() const; - - PageMode getPageMode() const; - - bool unlock(const QCString &password); - - bool isLocked() const; - - QDateTime getDate( const QString & data ) const; - QString getInfo( const QString & data ) const; - bool isEncrypted() const; - bool isLinearized() const; - bool okToPrint() const; - bool okToChange() const; - bool okToCopy() const; - bool okToAddNotes() const; - double getPDFVersion() const; - /** - The version of the PDF specification that the document - conforms to - - \param major an optional pointer to a variable where store the - "major" number of the version - \param minor an optional pointer to a variable where store the - "minor" number of the version - - \since 0.12 - */ - void getPdfVersion(int *major, int *minor) const; - - bool print(const QString &fileName, QValueList<int> pageList, double hDPI, double vDPI, int rotate); - - // If you are using QPrinter you can get paper size doing - // QPrinter dummy(QPrinter::PrinterResolution); - // dummy.setFullPage(true); - // dummy.setPageSize(thePageSizeYouWant); - // QPaintDeviceMetrics metrics(&dummy); - // int width = metrics.width(); - // int height = metrics.height(); - bool print(const QString &fileName, QValueList<int> pageList, double hDPI, double vDPI, int rotate, int paperWidth, int paperHeight); - - /** - The fonts within the PDF document. - - \note this can take a very long time to run with a large - document. You may wish to use the call below if you have more - than say 20 pages - */ - QValueList<FontInfo> fonts() const; - - /** - \overload - - \param numPages the number of pages to scan - \param fontList pointer to the list where the font information - should be placed - - \return false if the end of the document has been reached - */ - bool scanForFonts( int numPages, QValueList<FontInfo> *fontList ) const; - - /** - Gets the TOC of the Document, it is application responsabiliy to delete - it when no longer needed - - * In the tree the tag name is the 'screen' name of the entry. A tag can have - * attributes. Here follows the list of tag attributes with meaning: - * - Destination: A string description of the referred destination - * - DestinationName: A 'named reference' to the viewport that must be converted - * using linkDestination( *destination_name* ) - * - ExternalFileName: A link to a external filename - - \returns NULL if the Document does not have TOC - */ - QDomDocument *toc() const; - - LinkDestination *linkDestination( const QString &name ); - - ~Document(); - -private: - DocumentData *data; - Document(DocumentData *dataA); -}; - -} -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt/test-poppler-qt.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt/test-poppler-qt.cpp deleted file mode 100644 index d97954b8ba7..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt/test-poppler-qt.cpp +++ /dev/null @@ -1,122 +0,0 @@ -#include <qapplication.h> -#include <qpainter.h> -#include <qpixmap.h> -#include <qwidget.h> -#include <qlabel.h> -#include <qmessagebox.h> -#include <qfile.h> -#include <ctype.h> -#include <poppler-qt.h> -#include <stdlib.h> - -class PDFDisplay : public QWidget // picture display widget -{ -public: - PDFDisplay( Poppler::Document *d ); - ~PDFDisplay(); -protected: - void paintEvent( QPaintEvent * ); - void keyPressEvent( QKeyEvent * ); -private: - void display(); - - int currentPage; - QPixmap *pixmap; - Poppler::Document *doc; -}; - -PDFDisplay::PDFDisplay( Poppler::Document *d ) -{ - doc = d; - pixmap = 0; - currentPage = 0; - display(); -} - -PDFDisplay::~PDFDisplay() -{ - delete doc; - delete pixmap; -} - -void PDFDisplay::paintEvent( QPaintEvent *e ) -{ - QPainter paint( this ); // paint widget - if (pixmap) - paint.drawPixmap(0, 0, *pixmap); -} - -void PDFDisplay::keyPressEvent( QKeyEvent *e ) -{ - if (e->key() == Qt::Key_Down) - { - if (currentPage + 1 < doc->getNumPages()) - { - currentPage++; - display(); - } - } - else if (e->key() == Qt::Key_Up) - { - if (currentPage > 0) - { - currentPage--; - display(); - } - } -} - -void PDFDisplay::display() -{ - if (doc) { - Poppler::Page *page = doc->getPage(currentPage); - if (page) { - delete pixmap; - page->renderToPixmap(&pixmap, -1, -1, -1, -1); - delete page; - update(); - } - } else { - printf("doc not loaded\n"); - } -} - -int main( int argc, char **argv ) -{ - QApplication a( argc, argv ); // QApplication required! - - if ( argc < 2 || (argc == 3 && strcmp(argv[2], "-extract") != 0) || argc > 3) - { - // use argument as file name - printf("usage: test-poppler-qt filename [-extract]\n"); - exit(1); - } - - Poppler::Document *doc = Poppler::Document::load(argv[1]); - if (!doc) - { - printf("doc not loaded\n"); - exit(1); - } - - if (argc == 2) - { - PDFDisplay test( doc ); // create picture display - a.setMainWidget( &test); // set main widget - test.setCaption("Poppler-Qt Test"); - test.show(); // show it - - return a.exec(); // start event loop - } - else - { - Poppler::Page *page = doc->getPage(0); - - QLabel *l = new QLabel(page->getText(Poppler::Rectangle()), 0); - l->show(); - a.setMainWidget(l); // set main widget - delete page; - delete doc; - return a.exec(); - } -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/CMakeLists.txt b/Build/source/libs/poppler/poppler-0.12.4/qt4/CMakeLists.txt deleted file mode 100644 index a364abf1976..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/CMakeLists.txt +++ /dev/null @@ -1,3 +0,0 @@ -add_subdirectory(src) -add_subdirectory(tests) -add_subdirectory(demos) diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/Makefile.am b/Build/source/libs/poppler/poppler-0.12.4/qt4/Makefile.am deleted file mode 100644 index 69a10cb1409..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src tests demos diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/Makefile.in b/Build/source/libs/poppler/poppler-0.12.4/qt4/Makefile.in deleted file mode 100644 index e1c181cb0dd..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/Makefile.in +++ /dev/null @@ -1,628 +0,0 @@ -# Makefile.in generated by automake 1.11 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = qt4 -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ - $(top_srcdir)/m4/define-dir.m4 $(top_srcdir)/m4/gtk-doc.m4 \ - $(top_srcdir)/m4/libjpeg.m4 $(top_srcdir)/m4/libpng.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/qt.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h \ - $(top_builddir)/poppler/poppler-config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -SOURCES = -DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-dvi-recursive install-exec-recursive \ - install-html-recursive install-info-recursive \ - install-pdf-recursive install-ps-recursive install-recursive \ - installcheck-recursive installdirs-recursive pdf-recursive \ - ps-recursive uninstall-recursive -RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ - distclean-recursive maintainer-clean-recursive -AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ - $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ - distdir -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -am__relativize = \ - dir0=`pwd`; \ - sed_first='s,^\([^/]*\)/.*$$,\1,'; \ - sed_rest='s,^[^/]*/*,,'; \ - sed_last='s,^.*/\([^/]*\)$$,\1,'; \ - sed_butlast='s,/*[^/]*$$,,'; \ - while test -n "$$dir1"; do \ - first=`echo "$$dir1" | sed -e "$$sed_first"`; \ - if test "$$first" != "."; then \ - if test "$$first" = ".."; then \ - dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ - dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ - else \ - first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ - if test "$$first2" = "$$first"; then \ - dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ - else \ - dir2="../$$dir2"; \ - fi; \ - dir0="$$dir0"/"$$first"; \ - fi; \ - fi; \ - dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ - done; \ - reldir="$$dir2" -ABIWORD_CFLAGS = @ABIWORD_CFLAGS@ -ABIWORD_LIBS = @ABIWORD_LIBS@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAIRO_CFLAGS = @CAIRO_CFLAGS@ -CAIRO_FEATURE = @CAIRO_FEATURE@ -CAIRO_LIBS = @CAIRO_LIBS@ -CAIRO_REQ = @CAIRO_REQ@ -CAIRO_VERSION = @CAIRO_VERSION@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ -FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ -FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ -FREETYPE_CONFIG = @FREETYPE_CONFIG@ -FREETYPE_LIBS = @FREETYPE_LIBS@ -GDK_CFLAGS = @GDK_CFLAGS@ -GDK_FEATURE = @GDK_FEATURE@ -GDK_LIBS = @GDK_LIBS@ -GLIB_MKENUMS = @GLIB_MKENUMS@ -GREP = @GREP@ -GTKDOC_CHECK = @GTKDOC_CHECK@ -GTK_TEST_CFLAGS = @GTK_TEST_CFLAGS@ -GTK_TEST_LIBS = @GTK_TEST_LIBS@ -HTML_DIR = @HTML_DIR@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LCMS_CFLAGS = @LCMS_CFLAGS@ -LCMS_LIBS = @LCMS_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBJPEG_LIBS = @LIBJPEG_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOPENJPEG_LIBS = @LIBOPENJPEG_LIBS@ -LIBPNG_LIBS = @LIBPNG_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -MOCQT4 = @MOCQT4@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PC_REQUIRES = @PC_REQUIRES@ -PC_REQUIRES_PRIVATE = @PC_REQUIRES_PRIVATE@ -PKG_CONFIG = @PKG_CONFIG@ -POPPLER_DATADIR = @POPPLER_DATADIR@ -POPPLER_GLIB_CFLAGS = @POPPLER_GLIB_CFLAGS@ -POPPLER_GLIB_DISABLE_DEPRECATED = @POPPLER_GLIB_DISABLE_DEPRECATED@ -POPPLER_GLIB_DISABLE_SINGLE_INCLUDES = @POPPLER_GLIB_DISABLE_SINGLE_INCLUDES@ -POPPLER_GLIB_LIBS = @POPPLER_GLIB_LIBS@ -POPPLER_MAJOR_VERSION = @POPPLER_MAJOR_VERSION@ -POPPLER_MICRO_VERSION = @POPPLER_MICRO_VERSION@ -POPPLER_MINOR_VERSION = @POPPLER_MINOR_VERSION@ -POPPLER_QT4_CFLAGS = @POPPLER_QT4_CFLAGS@ -POPPLER_QT4_CXXFLAGS = @POPPLER_QT4_CXXFLAGS@ -POPPLER_QT4_LIBS = @POPPLER_QT4_LIBS@ -POPPLER_QT4_TEST_CFLAGS = @POPPLER_QT4_TEST_CFLAGS@ -POPPLER_QT4_TEST_LIBS = @POPPLER_QT4_TEST_LIBS@ -POPPLER_QT_CXXFLAGS = @POPPLER_QT_CXXFLAGS@ -POPPLER_QT_LIBS = @POPPLER_QT_LIBS@ -PTHREAD_CC = @PTHREAD_CC@ -PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ -PTHREAD_LIBS = @PTHREAD_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZLIB_LIBS = @ZLIB_LIBS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -acx_pthread_config = @acx_pthread_config@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -auto_import_flags = @auto_import_flags@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -create_shared_lib = @create_shared_lib@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -win32_libs = @win32_libs@ -SUBDIRS = src tests demos -all: all-recursive - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign qt4/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign qt4/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -$(RECURSIVE_CLEAN_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done - @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(MKDIR_P) "$(distdir)/$$subdir" \ - || exit 1; \ - fi; \ - done - @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ - $(am__relativize); \ - new_distdir=$$reldir; \ - dir1=$$subdir; dir2="$(top_distdir)"; \ - $(am__relativize); \ - new_top_distdir=$$reldir; \ - echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ - echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ - ($(am__cd) $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$new_top_distdir" \ - distdir="$$new_distdir" \ - am__remove_distdir=: \ - am__skip_length_check=: \ - am__skip_mode_fix=: \ - distdir) \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-recursive -all-am: Makefile -installdirs: installdirs-recursive -installdirs-am: -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-recursive - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-recursive - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -html-am: - -info: info-recursive - -info-am: - -install-data-am: - -install-dvi: install-dvi-recursive - -install-dvi-am: - -install-exec-am: - -install-html: install-html-recursive - -install-html-am: - -install-info: install-info-recursive - -install-info-am: - -install-man: - -install-pdf: install-pdf-recursive - -install-pdf-am: - -install-ps: install-ps-recursive - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: - -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ - install-am install-strip tags-recursive - -.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ - all all-am check check-am clean clean-generic clean-libtool \ - ctags ctags-recursive distclean distclean-generic \ - distclean-libtool distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ - uninstall uninstall-am - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/CMakeLists.txt b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/CMakeLists.txt deleted file mode 100644 index 76accf819f2..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/CMakeLists.txt +++ /dev/null @@ -1,28 +0,0 @@ -add_definitions(${QT4_DEFINITIONS}) - -include_directories( - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/../src - ${CMAKE_CURRENT_BINARY_DIR} - ${QT4_INCLUDE_DIR} -) - -set(poppler_qt4viewer_SRCS - abstractinfodock.cpp - documentobserver.cpp - embeddedfiles.cpp - fonts.cpp - info.cpp - main_viewer.cpp - metadata.cpp - navigationtoolbar.cpp - optcontent.cpp - pageview.cpp - permissions.cpp - thumbnails.cpp - toc.cpp - viewer.cpp -) -qt4_automoc(${poppler_qt4viewer_SRCS}) -poppler_add_test(poppler_qt4viewer BUILD_QT4_TESTS ${poppler_qt4viewer_SRCS}) -target_link_libraries(poppler_qt4viewer poppler-qt4) diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/Makefile.am b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/Makefile.am deleted file mode 100644 index c3f636c6e86..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/Makefile.am +++ /dev/null @@ -1,68 +0,0 @@ -INCLUDES = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/poppler \ - -I$(top_srcdir)/qt4/src \ - -I$(top_srcdir)/qt \ - $(FONTCONFIG_CFLAGS) \ - $(POPPLER_QT4_CFLAGS) - -LDADDS = \ - $(top_builddir)/poppler/libpoppler.la \ - $(top_builddir)/qt4/src/libpoppler-qt4.la \ - $(FONTCONFIG_LIBS) \ - $(POPPLER_QT4_LIBS) - -SUFFIXES: .moc - -# This rule lets GNU make create any *.moc from the equivalent *.h -.h.moc: - $(AM_V_GEN) $(MOCQT4) -i $< -o $@ - -noinst_PROGRAMS = poppler_qt4viewer - -poppler_qt4viewer_SOURCES = \ - abstractinfodock.cpp \ - abstractinfodock.h \ - documentobserver.cpp \ - documentobserver.h \ - embeddedfiles.cpp \ - embeddedfiles.h \ - fonts.cpp \ - fonts.h \ - info.cpp \ - info.h \ - main_viewer.cpp \ - metadata.cpp \ - metadata.h \ - navigationtoolbar.cpp \ - navigationtoolbar.h \ - optcontent.cpp \ - optcontent.h \ - pageview.cpp \ - pageview.h \ - permissions.cpp \ - permissions.h \ - thumbnails.cpp \ - thumbnails.h \ - toc.cpp \ - toc.h \ - viewer.cpp \ - viewer.h - -abstractinfodock.$(OBJEXT): abstractinfodock.moc -embeddedfiles.$(OBJEXT): embeddedfiles.moc -fonts.$(OBJEXT): fonts.moc -info.$(OBJEXT): info.moc -metadata.$(OBJEXT): metadata.moc -navigationtoolbar.$(OBJEXT): navigationtoolbar.moc -optcontent.$(OBJEXT): optcontent.moc -pageview.$(OBJEXT): pageview.moc -permissions.$(OBJEXT): permissions.moc -thumbnails.$(OBJEXT): thumbnails.moc -toc.$(OBJEXT): toc.moc -viewer.$(OBJEXT): viewer.moc - -poppler_qt4viewer_LDADD = $(LDADDS) - -clean-generic: - rm -f *.moc diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/Makefile.in b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/Makefile.in deleted file mode 100644 index cb1d49a9110..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/Makefile.in +++ /dev/null @@ -1,656 +0,0 @@ -# Makefile.in generated by automake 1.11 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -noinst_PROGRAMS = poppler_qt4viewer$(EXEEXT) -subdir = qt4/demos -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ - $(top_srcdir)/m4/define-dir.m4 $(top_srcdir)/m4/gtk-doc.m4 \ - $(top_srcdir)/m4/libjpeg.m4 $(top_srcdir)/m4/libpng.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/qt.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h \ - $(top_builddir)/poppler/poppler-config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -PROGRAMS = $(noinst_PROGRAMS) -am_poppler_qt4viewer_OBJECTS = abstractinfodock.$(OBJEXT) \ - documentobserver.$(OBJEXT) embeddedfiles.$(OBJEXT) \ - fonts.$(OBJEXT) info.$(OBJEXT) main_viewer.$(OBJEXT) \ - metadata.$(OBJEXT) navigationtoolbar.$(OBJEXT) \ - optcontent.$(OBJEXT) pageview.$(OBJEXT) permissions.$(OBJEXT) \ - thumbnails.$(OBJEXT) toc.$(OBJEXT) viewer.$(OBJEXT) -poppler_qt4viewer_OBJECTS = $(am_poppler_qt4viewer_OBJECTS) -am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = $(top_builddir)/poppler/libpoppler.la \ - $(top_builddir)/qt4/src/libpoppler-qt4.la \ - $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) -poppler_qt4viewer_DEPENDENCIES = $(am__DEPENDENCIES_2) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) -am__v_lt_0 = --silent -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/poppler -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -AM_V_CXX = $(am__v_CXX_$(V)) -am__v_CXX_ = $(am__v_CXX_$(AM_DEFAULT_VERBOSITY)) -am__v_CXX_0 = @echo " CXX " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CXXLD = $(am__v_CXXLD_$(V)) -am__v_CXXLD_ = $(am__v_CXXLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CXXLD_0 = @echo " CXXLD " $@; -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_$(V)) -am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) -am__v_CC_0 = @echo " CC " $@; -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_$(V)) -am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CCLD_0 = @echo " CCLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -SOURCES = $(poppler_qt4viewer_SOURCES) -DIST_SOURCES = $(poppler_qt4viewer_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ABIWORD_CFLAGS = @ABIWORD_CFLAGS@ -ABIWORD_LIBS = @ABIWORD_LIBS@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAIRO_CFLAGS = @CAIRO_CFLAGS@ -CAIRO_FEATURE = @CAIRO_FEATURE@ -CAIRO_LIBS = @CAIRO_LIBS@ -CAIRO_REQ = @CAIRO_REQ@ -CAIRO_VERSION = @CAIRO_VERSION@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ -FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ -FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ -FREETYPE_CONFIG = @FREETYPE_CONFIG@ -FREETYPE_LIBS = @FREETYPE_LIBS@ -GDK_CFLAGS = @GDK_CFLAGS@ -GDK_FEATURE = @GDK_FEATURE@ -GDK_LIBS = @GDK_LIBS@ -GLIB_MKENUMS = @GLIB_MKENUMS@ -GREP = @GREP@ -GTKDOC_CHECK = @GTKDOC_CHECK@ -GTK_TEST_CFLAGS = @GTK_TEST_CFLAGS@ -GTK_TEST_LIBS = @GTK_TEST_LIBS@ -HTML_DIR = @HTML_DIR@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LCMS_CFLAGS = @LCMS_CFLAGS@ -LCMS_LIBS = @LCMS_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBJPEG_LIBS = @LIBJPEG_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOPENJPEG_LIBS = @LIBOPENJPEG_LIBS@ -LIBPNG_LIBS = @LIBPNG_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -MOCQT4 = @MOCQT4@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PC_REQUIRES = @PC_REQUIRES@ -PC_REQUIRES_PRIVATE = @PC_REQUIRES_PRIVATE@ -PKG_CONFIG = @PKG_CONFIG@ -POPPLER_DATADIR = @POPPLER_DATADIR@ -POPPLER_GLIB_CFLAGS = @POPPLER_GLIB_CFLAGS@ -POPPLER_GLIB_DISABLE_DEPRECATED = @POPPLER_GLIB_DISABLE_DEPRECATED@ -POPPLER_GLIB_DISABLE_SINGLE_INCLUDES = @POPPLER_GLIB_DISABLE_SINGLE_INCLUDES@ -POPPLER_GLIB_LIBS = @POPPLER_GLIB_LIBS@ -POPPLER_MAJOR_VERSION = @POPPLER_MAJOR_VERSION@ -POPPLER_MICRO_VERSION = @POPPLER_MICRO_VERSION@ -POPPLER_MINOR_VERSION = @POPPLER_MINOR_VERSION@ -POPPLER_QT4_CFLAGS = @POPPLER_QT4_CFLAGS@ -POPPLER_QT4_CXXFLAGS = @POPPLER_QT4_CXXFLAGS@ -POPPLER_QT4_LIBS = @POPPLER_QT4_LIBS@ -POPPLER_QT4_TEST_CFLAGS = @POPPLER_QT4_TEST_CFLAGS@ -POPPLER_QT4_TEST_LIBS = @POPPLER_QT4_TEST_LIBS@ -POPPLER_QT_CXXFLAGS = @POPPLER_QT_CXXFLAGS@ -POPPLER_QT_LIBS = @POPPLER_QT_LIBS@ -PTHREAD_CC = @PTHREAD_CC@ -PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ -PTHREAD_LIBS = @PTHREAD_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZLIB_LIBS = @ZLIB_LIBS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -acx_pthread_config = @acx_pthread_config@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -auto_import_flags = @auto_import_flags@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -create_shared_lib = @create_shared_lib@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -win32_libs = @win32_libs@ -INCLUDES = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/poppler \ - -I$(top_srcdir)/qt4/src \ - -I$(top_srcdir)/qt \ - $(FONTCONFIG_CFLAGS) \ - $(POPPLER_QT4_CFLAGS) - -LDADDS = \ - $(top_builddir)/poppler/libpoppler.la \ - $(top_builddir)/qt4/src/libpoppler-qt4.la \ - $(FONTCONFIG_LIBS) \ - $(POPPLER_QT4_LIBS) - -poppler_qt4viewer_SOURCES = \ - abstractinfodock.cpp \ - abstractinfodock.h \ - documentobserver.cpp \ - documentobserver.h \ - embeddedfiles.cpp \ - embeddedfiles.h \ - fonts.cpp \ - fonts.h \ - info.cpp \ - info.h \ - main_viewer.cpp \ - metadata.cpp \ - metadata.h \ - navigationtoolbar.cpp \ - navigationtoolbar.h \ - optcontent.cpp \ - optcontent.h \ - pageview.cpp \ - pageview.h \ - permissions.cpp \ - permissions.h \ - thumbnails.cpp \ - thumbnails.h \ - toc.cpp \ - toc.h \ - viewer.cpp \ - viewer.h - -poppler_qt4viewer_LDADD = $(LDADDS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .cpp .h .lo .moc .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign qt4/demos/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign qt4/demos/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list -poppler_qt4viewer$(EXEEXT): $(poppler_qt4viewer_OBJECTS) $(poppler_qt4viewer_DEPENDENCIES) - @rm -f poppler_qt4viewer$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(poppler_qt4viewer_OBJECTS) $(poppler_qt4viewer_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/abstractinfodock.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/documentobserver.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/embeddedfiles.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fonts.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/info.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main_viewer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/metadata.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/navigationtoolbar.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optcontent.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pageview.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/permissions.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/thumbnails.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/toc.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/viewer.Po@am__quote@ - -.cpp.o: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< - -.cpp.obj: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.cpp.lo: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-noinstPROGRAMS ctags distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ - pdf pdf-am ps ps-am tags uninstall uninstall-am - - -SUFFIXES: .moc - -# This rule lets GNU make create any *.moc from the equivalent *.h -.h.moc: - $(AM_V_GEN) $(MOCQT4) -i $< -o $@ - -abstractinfodock.$(OBJEXT): abstractinfodock.moc -embeddedfiles.$(OBJEXT): embeddedfiles.moc -fonts.$(OBJEXT): fonts.moc -info.$(OBJEXT): info.moc -metadata.$(OBJEXT): metadata.moc -navigationtoolbar.$(OBJEXT): navigationtoolbar.moc -optcontent.$(OBJEXT): optcontent.moc -pageview.$(OBJEXT): pageview.moc -permissions.$(OBJEXT): permissions.moc -thumbnails.$(OBJEXT): thumbnails.moc -toc.$(OBJEXT): toc.moc -viewer.$(OBJEXT): viewer.moc - -clean-generic: - rm -f *.moc - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/abstractinfodock.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/abstractinfodock.cpp deleted file mode 100644 index 7b306d828e1..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/abstractinfodock.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "fonts.h" - -AbstractInfoDock::AbstractInfoDock(QWidget *parent) - : QDockWidget(parent), m_filled(false) -{ - connect(this, SIGNAL(visibilityChanged(bool)), SLOT(slotVisibilityChanged(bool))); -} - -AbstractInfoDock::~AbstractInfoDock() -{ -} - -void AbstractInfoDock::documentLoaded() -{ - if (!isHidden()) { - fillInfo(); - m_filled = true; - } -} - -void AbstractInfoDock::documentClosed() -{ - m_filled = false; -} - -void AbstractInfoDock::pageChanged(int page) -{ - Q_UNUSED(page) -} - -void AbstractInfoDock::slotVisibilityChanged(bool visible) -{ - if (visible && document() && !m_filled) { - fillInfo(); - m_filled = true; - } -} - -#include "abstractinfodock.moc" diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/abstractinfodock.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/abstractinfodock.h deleted file mode 100644 index 2593325a8cb..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/abstractinfodock.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef ABSTRACTINFODOCK_H -#define ABSTRACTINFODOCK_H - -#include <QtGui/QDockWidget> - -#include "documentobserver.h" - -class AbstractInfoDock : public QDockWidget, public DocumentObserver -{ - Q_OBJECT - -public: - AbstractInfoDock(QWidget *parent = 0); - ~AbstractInfoDock(); - - /*virtual*/ void documentLoaded(); - /*virtual*/ void documentClosed(); - /*virtual*/ void pageChanged(int page); - -protected: - virtual void fillInfo() = 0; - -private Q_SLOTS: - void slotVisibilityChanged(bool visible); - -private: - bool m_filled; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/documentobserver.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/documentobserver.cpp deleted file mode 100644 index e5c283db54a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/documentobserver.cpp +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "documentobserver.h" - -#include "viewer.h" - -DocumentObserver::DocumentObserver() - : m_viewer(0) -{ -} - -DocumentObserver::~DocumentObserver() -{ -} - -Poppler::Document* DocumentObserver::document() const -{ - return m_viewer->m_doc; -} - -void DocumentObserver::setPage(int page) -{ - m_viewer->setPage(page); -} - -int DocumentObserver::page() const -{ - return m_viewer->page(); -} - -void DocumentObserver::reloadPage() -{ - m_viewer->setPage(m_viewer->page()); -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/documentobserver.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/documentobserver.h deleted file mode 100644 index 38fe204336f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/documentobserver.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef DOCUMENTOBSERVER_H -#define DOCUMENTOBSERVER_H - -class PdfViewer; -namespace Poppler { -class Document; -} - -class DocumentObserver -{ -friend class PdfViewer; - -public: - virtual ~DocumentObserver(); - - virtual void documentLoaded() = 0; - virtual void documentClosed() = 0; - virtual void pageChanged(int page) = 0; - -protected: - DocumentObserver(); - - Poppler::Document* document() const; - void setPage(int page); - int page() const; - void reloadPage(); - -private: - PdfViewer *m_viewer; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/embeddedfiles.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/embeddedfiles.cpp deleted file mode 100644 index 22f9da7af65..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/embeddedfiles.cpp +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "embeddedfiles.h" - -#include <poppler-qt4.h> - -#include <QtGui/QTableWidget> - -EmbeddedFilesDock::EmbeddedFilesDock(QWidget *parent) - : AbstractInfoDock(parent) -{ - m_table = new QTableWidget(this); - setWidget(m_table); - setWindowTitle(tr("Embedded files")); - m_table->setColumnCount(6); - m_table->setHorizontalHeaderLabels( - QStringList() << tr("Name") << tr("Description") << tr("Size") << tr("Creation date") - << tr("Modification date") << tr("Checksum")); - m_table->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel); -} - -EmbeddedFilesDock::~EmbeddedFilesDock() -{ -} - -void EmbeddedFilesDock::fillInfo() -{ - m_table->setHorizontalHeaderLabels( - QStringList() << tr("Name") << tr("Description") << tr("Size") << tr("Creation date") - << tr("Modification date") << tr("Checksum")); - if (!document()->hasEmbeddedFiles()) { - m_table->setItem(0, 0, new QTableWidgetItem(tr("No files"))); - return; - } - - const QList<Poppler::EmbeddedFile*> files = document()->embeddedFiles(); - m_table->setRowCount(files.count()); - int i = 0; - Q_FOREACH(Poppler::EmbeddedFile *file, files) { - m_table->setItem(i, 0, new QTableWidgetItem(file->name())); - m_table->setItem(i, 1, new QTableWidgetItem(file->description())); - m_table->setItem(i, 2, new QTableWidgetItem(QString::number(file->size()))); - m_table->setItem(i, 3, new QTableWidgetItem(file->createDate().toString(Qt::SystemLocaleDate))); - m_table->setItem(i, 4, new QTableWidgetItem(file->modDate().toString(Qt::SystemLocaleDate))); - const QByteArray checksum = file->checksum(); - const QString checksumString = !checksum.isEmpty() ? QString::fromAscii(checksum.toHex()) : QString::fromLatin1("n/a"); - m_table->setItem(i, 5, new QTableWidgetItem(checksumString)); - ++i; - } -} - -void EmbeddedFilesDock::documentLoaded() -{ - if ( document()->pageMode() == Poppler::Document::UseAttach ) { - show(); - } -} - -void EmbeddedFilesDock::documentClosed() -{ - m_table->clear(); - m_table->setRowCount(0); - AbstractInfoDock::documentClosed(); -} - -#include "embeddedfiles.moc" diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/embeddedfiles.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/embeddedfiles.h deleted file mode 100644 index 7cd60397d68..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/embeddedfiles.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef ATTACHMENTS_H -#define ATTACHMENTS_H - -#include "abstractinfodock.h" - -class QTableWidget; - -class EmbeddedFilesDock : public AbstractInfoDock -{ - Q_OBJECT - -public: - EmbeddedFilesDock(QWidget *parent = 0); - ~EmbeddedFilesDock(); - - virtual void documentLoaded(); - /*virtual*/ void documentClosed(); - -protected: - /*virtual*/ void fillInfo(); - -private: - QTableWidget *m_table; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/fonts.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/fonts.cpp deleted file mode 100644 index bd342bd28bc..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/fonts.cpp +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "fonts.h" - -#include <poppler-qt4.h> - -#include <QtGui/QTableWidget> - -static QString yesNoStatement(bool value) -{ - return value ? QString::fromLatin1("yes") : QString::fromLatin1("no"); -} - -FontsDock::FontsDock(QWidget *parent) - : AbstractInfoDock(parent) -{ - m_table = new QTableWidget(this); - setWidget(m_table); - setWindowTitle(tr("Fonts")); - m_table->setColumnCount(5); - m_table->setHorizontalHeaderLabels(QStringList() << tr("Name") << tr("Type") << tr("Embedded") << tr("Subset") << tr("File")); - m_table->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel); -} - -FontsDock::~FontsDock() -{ -} - -void FontsDock::fillInfo() -{ - const QList<Poppler::FontInfo> fonts = document()->fonts(); - m_table->setHorizontalHeaderLabels(QStringList() << tr("Name") << tr("Type") << tr("Embedded") << tr("Subset") << tr("File")); - m_table->setRowCount(fonts.count()); - int i = 0; - Q_FOREACH(const Poppler::FontInfo &font, fonts) { - if (font.name().isNull()) { - m_table->setItem(i, 0, new QTableWidgetItem(QString::fromLatin1("[none]"))); - } else { - m_table->setItem(i, 0, new QTableWidgetItem(font.name())); - } - m_table->setItem(i, 1, new QTableWidgetItem(font.typeName())); - m_table->setItem(i, 2, new QTableWidgetItem(yesNoStatement(font.isEmbedded()))); - m_table->setItem(i, 3, new QTableWidgetItem(yesNoStatement(font.isSubset()))); - m_table->setItem(i, 4, new QTableWidgetItem(font.file())); - ++i; - } -} - -void FontsDock::documentClosed() -{ - m_table->clear(); - m_table->setRowCount(0); - AbstractInfoDock::documentClosed(); -} - -#include "fonts.moc" diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/fonts.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/fonts.h deleted file mode 100644 index 81afa579314..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/fonts.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef FONTS_H -#define FONTS_H - -#include "abstractinfodock.h" - -class QTableWidget; - -class FontsDock : public AbstractInfoDock -{ - Q_OBJECT - -public: - FontsDock(QWidget *parent = 0); - ~FontsDock(); - - /*virtual*/ void documentClosed(); - -protected: - /*virtual*/ void fillInfo(); - -private: - QTableWidget *m_table; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/info.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/info.cpp deleted file mode 100644 index 6491e0e4b3e..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/info.cpp +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "info.h" - -#include <poppler-qt4.h> - -#include <QtGui/QTableWidget> - -InfoDock::InfoDock(QWidget *parent) - : AbstractInfoDock(parent) -{ - m_table = new QTableWidget(this); - setWidget(m_table); - setWindowTitle(tr("Information")); - m_table->setColumnCount(2); - m_table->setHorizontalHeaderLabels(QStringList() << tr("Key") << tr("Value")); - m_table->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel); -} - -InfoDock::~InfoDock() -{ -} - -void InfoDock::fillInfo() -{ - QStringList keys = document()->infoKeys(); - m_table->setHorizontalHeaderLabels(QStringList() << tr("Key") << tr("Value")); - m_table->setRowCount(keys.count()); - QStringList dateKeys; - dateKeys << QString::fromLatin1("CreationDate"); - dateKeys << QString::fromLatin1("ModDate"); - int i = 0; - Q_FOREACH(const QString &date, dateKeys) { - const int id = keys.indexOf(date); - if (id != -1) { - m_table->setItem(i, 0, new QTableWidgetItem(date)); - m_table->setItem(i, 1, new QTableWidgetItem(document()->date(date).toString(Qt::SystemLocaleDate))); - ++i; - keys.removeAt(id); - } - } - Q_FOREACH(const QString &key, keys) { - m_table->setItem(i, 0, new QTableWidgetItem(key)); - m_table->setItem(i, 1, new QTableWidgetItem(document()->info(key))); - ++i; - } -} - -void InfoDock::documentClosed() -{ - m_table->clear(); - m_table->setRowCount(0); - AbstractInfoDock::documentClosed(); -} - -#include "info.moc" diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/info.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/info.h deleted file mode 100644 index d294b430dc6..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/info.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef INFO_H -#define INFO_H - -#include "abstractinfodock.h" - -class QTableWidget; - -class InfoDock : public AbstractInfoDock -{ - Q_OBJECT - -public: - InfoDock(QWidget *parent = 0); - ~InfoDock(); - - /*virtual*/ void documentClosed(); - -protected: - /*virtual*/ void fillInfo(); - -private: - QTableWidget *m_table; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/main_viewer.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/main_viewer.cpp deleted file mode 100644 index 3f7080f27ee..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/main_viewer.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "viewer.h" - -#include <QtGui/QApplication> - -int main(int argc, char *argv[]) -{ - QApplication app(argc, argv); - const QStringList args = QCoreApplication::arguments(); - PdfViewer *viewer = new PdfViewer(); - viewer->show(); - if (args.count() > 1) { - viewer->loadDocument(args.at(1)); - } - return app.exec(); -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/metadata.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/metadata.cpp deleted file mode 100644 index e5c7111d552..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/metadata.cpp +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "metadata.h" - -#include <poppler-qt4.h> - -#include <QtGui/QTextEdit> - -MetadataDock::MetadataDock(QWidget *parent) - : AbstractInfoDock(parent) -{ - m_edit = new QTextEdit(this); - setWidget(m_edit); - setWindowTitle(tr("Metadata")); - m_edit->setAcceptRichText(false); - m_edit->setReadOnly(true); -} - -MetadataDock::~MetadataDock() -{ -} - -void MetadataDock::fillInfo() -{ - m_edit->setPlainText(document()->metadata()); -} - -void MetadataDock::documentClosed() -{ - m_edit->clear(); - AbstractInfoDock::documentClosed(); -} - -#include "metadata.moc" diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/metadata.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/metadata.h deleted file mode 100644 index 6f1507a6e99..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/metadata.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef METADATA_H -#define METADATA_H - -#include "abstractinfodock.h" - -class QTextEdit; - -class MetadataDock : public AbstractInfoDock -{ - Q_OBJECT - -public: - MetadataDock(QWidget *parent = 0); - ~MetadataDock(); - - /*virtual*/ void documentClosed(); - -protected: - /*virtual*/ void fillInfo(); - -private: - QTextEdit *m_edit; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/navigationtoolbar.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/navigationtoolbar.cpp deleted file mode 100644 index e9ebafabe94..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/navigationtoolbar.cpp +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright (C) 2008-2009, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "navigationtoolbar.h" - -#include <poppler-qt4.h> - -#include <QtGui/QAction> -#include <QtGui/QComboBox> - -NavigationToolBar::NavigationToolBar(QWidget *parent) - : QToolBar(parent) -{ - m_firstAct = addAction(tr("First"), this, SLOT(slotGoFirst())); - m_prevAct = addAction(tr("Previous"), this, SLOT(slotGoPrev())); - m_pageCombo = new QComboBox(this); - connect(m_pageCombo, SIGNAL(activated(int)), this, SLOT(slotComboActivated(int))); - addWidget(m_pageCombo); - m_nextAct = addAction(tr("Next"), this, SLOT(slotGoNext())); - m_lastAct = addAction(tr("Last"), this, SLOT(slotGoLast())); - - addSeparator(); - - m_zoomCombo = new QComboBox(this); - m_zoomCombo->setEditable(true); - m_zoomCombo->addItem(tr("10%")); - m_zoomCombo->addItem(tr("25%")); - m_zoomCombo->addItem(tr("33%")); - m_zoomCombo->addItem(tr("50%")); - m_zoomCombo->addItem(tr("66%")); - m_zoomCombo->addItem(tr("75%")); - m_zoomCombo->addItem(tr("100%")); - m_zoomCombo->addItem(tr("125%")); - m_zoomCombo->addItem(tr("150%")); - m_zoomCombo->addItem(tr("200%")); - m_zoomCombo->addItem(tr("300%")); - m_zoomCombo->addItem(tr("400%")); - m_zoomCombo->setCurrentIndex(6); // "100%" - connect(m_zoomCombo, SIGNAL(currentIndexChanged(QString)), this, SLOT(slotZoomComboChanged(QString))); - addWidget(m_zoomCombo); - - documentClosed(); -} - -NavigationToolBar::~NavigationToolBar() -{ -} - -void NavigationToolBar::documentLoaded() -{ - const int pageCount = document()->numPages(); - for (int i = 0; i < pageCount; ++i) { - m_pageCombo->addItem(QString::number(i + 1)); - } - m_pageCombo->setEnabled(true); -} - -void NavigationToolBar::documentClosed() -{ - m_firstAct->setEnabled(false); - m_prevAct->setEnabled(false); - m_nextAct->setEnabled(false); - m_lastAct->setEnabled(false); - m_pageCombo->clear(); - m_pageCombo->setEnabled(false); -} - -void NavigationToolBar::pageChanged(int page) -{ - const int pageCount = document()->numPages(); - m_firstAct->setEnabled(page > 0); - m_prevAct->setEnabled(page > 0); - m_nextAct->setEnabled(page < (pageCount - 1)); - m_lastAct->setEnabled(page < (pageCount - 1)); - m_pageCombo->setCurrentIndex(page); -} - -void NavigationToolBar::slotGoFirst() -{ - setPage(0); -} - -void NavigationToolBar::slotGoPrev() -{ - setPage(page() - 1); -} - -void NavigationToolBar::slotGoNext() -{ - setPage(page() + 1); -} - -void NavigationToolBar::slotGoLast() -{ - setPage(document()->numPages() - 1); -} - -void NavigationToolBar::slotComboActivated(int index) -{ - setPage(index); -} - -void NavigationToolBar::slotZoomComboChanged(const QString &_text) -{ - QString text = _text; - text.remove(QLatin1Char('%')); - bool ok = false; - int value = text.toInt(&ok); - if (ok && value >= 10) { - emit zoomChanged(qreal(value) / 100); - } -} - -#include "navigationtoolbar.moc" diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/navigationtoolbar.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/navigationtoolbar.h deleted file mode 100644 index 3469f01b0c4..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/navigationtoolbar.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2008-2009, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef NAVIGATIONTOOLBAR_H -#define NAVIGATIONTOOLBAR_H - -#include <QtGui/QToolBar> - -#include "documentobserver.h" - -class QAction; -class QComboBox; - -class NavigationToolBar : public QToolBar, public DocumentObserver -{ - Q_OBJECT - -public: - NavigationToolBar(QWidget *parent = 0); - ~NavigationToolBar(); - - /*virtual*/ void documentLoaded(); - /*virtual*/ void documentClosed(); - /*virtual*/ void pageChanged(int page); - -Q_SIGNALS: - void zoomChanged(qreal value); - -private Q_SLOTS: - void slotGoFirst(); - void slotGoPrev(); - void slotGoNext(); - void slotGoLast(); - void slotComboActivated(int index); - void slotZoomComboChanged(const QString &text); - -private: - QAction *m_firstAct; - QAction *m_prevAct; - QComboBox *m_pageCombo; - QAction *m_nextAct; - QAction *m_lastAct; - QComboBox *m_zoomCombo; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/optcontent.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/optcontent.cpp deleted file mode 100644 index 0c1015b9c17..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/optcontent.cpp +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "optcontent.h" - -#include <poppler-qt4.h> - -#include <QtGui/QTreeView> - -OptContentDock::OptContentDock(QWidget *parent) - : AbstractInfoDock(parent) -{ - m_view = new QTreeView(this); - setWidget(m_view); - setWindowTitle(tr("Optional content")); - m_view->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel); -} - -OptContentDock::~OptContentDock() -{ -} - - -void OptContentDock::documentLoaded() -{ - AbstractInfoDock::documentLoaded(); - if ( document()->pageMode() == Poppler::Document::UseOC ) { - show(); - } -} - -void OptContentDock::fillInfo() -{ - if (!document()->hasOptionalContent()) { - return; - } - - m_view->setModel(document()->optionalContentModel()); - connect(m_view->model(), SIGNAL(dataChanged(QModelIndex, QModelIndex)), this, SLOT(reloadImage())); - m_view->expandToDepth(1); -} - -void OptContentDock::documentClosed() -{ - m_view->setModel(0); - AbstractInfoDock::documentClosed(); -} - -void OptContentDock::reloadImage() -{ - reloadPage(); -} - -#include "optcontent.moc" diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/optcontent.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/optcontent.h deleted file mode 100644 index b933f5cd5d1..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/optcontent.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef OPTCONTENT_H -#define OPTCONTENT_H - -#include "abstractinfodock.h" - -class QTreeView; - -class OptContentDock : public AbstractInfoDock -{ - Q_OBJECT - -public: - OptContentDock(QWidget *parent = 0); - ~OptContentDock(); - - /*virtual*/ void documentLoaded(); - /*virtual*/ void documentClosed(); - -protected: - /*virtual*/ void fillInfo(); - -private Q_SLOTS: - void reloadImage(); - -private: - QTreeView *m_view; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/pageview.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/pageview.cpp deleted file mode 100644 index 734dacb1ff0..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/pageview.cpp +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2008-2009, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "pageview.h" - -#include <poppler-qt4.h> - -#include <QtGui/QApplication> -#include <QtGui/QDesktopWidget> -#include <QtGui/QImage> -#include <QtGui/QLabel> -#include <QtGui/QPixmap> - -PageView::PageView(QWidget *parent) - : QScrollArea(parent) - , m_zoom(1.0) - , m_dpiX(QApplication::desktop()->physicalDpiX()) - , m_dpiY(QApplication::desktop()->physicalDpiY()) -{ - m_imageLabel = new QLabel(this); - m_imageLabel->resize(0, 0); - setWidget(m_imageLabel); -} - -PageView::~PageView() -{ -} - -void PageView::documentLoaded() -{ -} - -void PageView::documentClosed() -{ - m_imageLabel->clear(); - m_imageLabel->resize(0, 0); -} - -void PageView::pageChanged(int page) -{ - Poppler::Page *popplerPage = document()->page(page); - const double resX = m_dpiX * m_zoom; - const double resY = m_dpiY * m_zoom; - QImage image = popplerPage->renderToImage(resX, resY); - if (!image.isNull()) { - m_imageLabel->resize(image.size()); - m_imageLabel->setPixmap(QPixmap::fromImage(image)); - } else { - m_imageLabel->resize(0, 0); - m_imageLabel->setPixmap(QPixmap()); - } - delete popplerPage; -} - -void PageView::slotZoomChanged(qreal value) -{ - m_zoom = value; - if (!document()) { - return; - } - reloadPage(); -} - -#include "pageview.moc" diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/pageview.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/pageview.h deleted file mode 100644 index 2f7ad61bcd8..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/pageview.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2008-2009, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef PAGEVIEW_H -#define PAGEVIEW_H - -#include <QtGui/QScrollArea> - -#include "documentobserver.h" - -class QLabel; - -class PageView : public QScrollArea, public DocumentObserver -{ - Q_OBJECT - -public: - PageView(QWidget *parent = 0); - ~PageView(); - - /*virtual*/ void documentLoaded(); - /*virtual*/ void documentClosed(); - /*virtual*/ void pageChanged(int page); - -private Q_SLOTS: - void slotZoomChanged(qreal value); - -private: - QLabel *m_imageLabel; - qreal m_zoom; - int m_dpiX; - int m_dpiY; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/permissions.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/permissions.cpp deleted file mode 100644 index 38205b2ea4d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/permissions.cpp +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (C) 2008-2009, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "permissions.h" - -#include <poppler-qt4.h> - -#include <QtGui/QListWidget> - -PermissionsDock::PermissionsDock(QWidget *parent) - : AbstractInfoDock(parent) -{ - m_table = new QListWidget(this); - setWidget(m_table); - setWindowTitle(tr("Permissions")); - m_table->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel); -} - -PermissionsDock::~PermissionsDock() -{ -} - -void PermissionsDock::fillInfo() -{ -#define ADD_ROW(title, function) \ -do { \ - QListWidgetItem *item = new QListWidgetItem(); \ - item->setFlags(item->flags() & ~Qt::ItemIsEnabled); \ - item->setText(title); \ - item->setCheckState(document()->function() ? Qt::Checked : Qt::Unchecked); \ - m_table->addItem(item); \ -} while (0) - ADD_ROW("Print", okToPrint); - ADD_ROW("PrintHiRes", okToPrintHighRes); - ADD_ROW("Change", okToChange); - ADD_ROW("Copy", okToCopy); - ADD_ROW("Add Notes", okToAddNotes); - ADD_ROW("Fill Forms", okToFillForm); - ADD_ROW("Create Forms", okToCreateFormFields); - ADD_ROW("Extract for accessibility", okToExtractForAccessibility); - ADD_ROW("Assemble", okToAssemble); -#undef ADD_ROW -} - -void PermissionsDock::documentClosed() -{ - m_table->clear(); - AbstractInfoDock::documentClosed(); -} - -#include "permissions.moc" diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/permissions.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/permissions.h deleted file mode 100644 index 13bcbbf0687..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/permissions.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2008-2009, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef PERMISSIONS_H -#define PERMISSIONS_H - -#include "abstractinfodock.h" - -class QListWidget; - -class PermissionsDock : public AbstractInfoDock -{ - Q_OBJECT - -public: - PermissionsDock(QWidget *parent = 0); - ~PermissionsDock(); - - /*virtual*/ void documentClosed(); - -protected: - /*virtual*/ void fillInfo(); - -private: - QListWidget *m_table; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/thumbnails.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/thumbnails.cpp deleted file mode 100644 index 07b19ca752d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/thumbnails.cpp +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2009, Shawn Rutledge <shawn.t.rutledge@gmail.com> - * Copyright (C) 2009, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "thumbnails.h" - -#include <poppler-qt4.h> - -#include <QtGui/QListWidget> - -static const int PageRole = Qt::UserRole + 1; - -ThumbnailsDock::ThumbnailsDock(QWidget *parent) - : AbstractInfoDock(parent) -{ - m_list = new QListWidget(this); - setWidget(m_list); - setWindowTitle(tr("Thumbnails")); - m_list->setViewMode(QListView::ListMode); - m_list->setMovement(QListView::Static); - m_list->setVerticalScrollMode(QListView::ScrollPerPixel); - connect(m_list, SIGNAL(itemActivated(QListWidgetItem*)), - this, SLOT(slotItemActivated(QListWidgetItem*))); -} - -ThumbnailsDock::~ThumbnailsDock() -{ -} - -void ThumbnailsDock::fillInfo() -{ - const int num = document()->numPages(); - QSize maxSize; - for (int i = 0; i < num; ++i) { - const Poppler::Page *page = document()->page(i); - const QImage image = page->thumbnail(); - if (!image.isNull()) { - QListWidgetItem *item = new QListWidgetItem(); - item->setText(QString::number(i + 1)); - item->setData(Qt::DecorationRole, QPixmap::fromImage(image)); - item->setData(PageRole, i); - m_list->addItem(item); - maxSize.setWidth(qMax(maxSize.width(), image.width())); - maxSize.setHeight(qMax(maxSize.height(), image.height())); - } - delete page; - } - if (num > 0) { - m_list->setGridSize(maxSize); - m_list->setIconSize(maxSize); - } -} - -void ThumbnailsDock::documentClosed() -{ - m_list->clear(); - AbstractInfoDock::documentClosed(); -} - -void ThumbnailsDock::slotItemActivated(QListWidgetItem *item) -{ - if (!item) { - return; - } - - setPage(item->data(PageRole).toInt()); -} - -#include "thumbnails.moc" diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/thumbnails.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/thumbnails.h deleted file mode 100644 index 076d5aee406..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/thumbnails.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2009, Shawn Rutledge <shawn.t.rutledge@gmail.com> - * Copyright (C) 2009, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef THUMBNAILS_H -#define THUMBNAILS_H - -#include "abstractinfodock.h" - -class QListWidget; -class QListWidgetItem; - -class ThumbnailsDock : public AbstractInfoDock -{ - Q_OBJECT - -public: - ThumbnailsDock(QWidget *parent = 0); - ~ThumbnailsDock(); - - /*virtual*/ void documentClosed(); - -protected: - /*virtual*/ void fillInfo(); - -private Q_SLOTS: - void slotItemActivated(QListWidgetItem *item); - -private: - QListWidget *m_list; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/toc.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/toc.cpp deleted file mode 100644 index bf3e5cbb300..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/toc.cpp +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "toc.h" - -#include <poppler-qt4.h> - -#include <QtGui/QHeaderView> -#include <QtGui/QTreeWidget> - -static void fillToc(const QDomNode &parent, QTreeWidget *tree, QTreeWidgetItem *parentItem) -{ - QTreeWidgetItem *newitem = 0; - for (QDomNode node = parent.firstChild(); !node.isNull(); node = node.nextSibling()) { - QDomElement e = node.toElement(); - - if (!parentItem) { - newitem = new QTreeWidgetItem(tree, newitem); - } else { - newitem = new QTreeWidgetItem(parentItem, newitem); - } - newitem->setText(0, e.tagName()); - - bool isOpen = false; - if (e.hasAttribute(QString::fromLatin1("Open"))) { - isOpen = QVariant(e.attribute(QString::fromLatin1("Open"))).toBool(); - } - if (isOpen) { - tree->expandItem(newitem); - } - - if (e.hasChildNodes()) { - fillToc(node, tree, newitem); - } - } -} - - -TocDock::TocDock(QWidget *parent) - : AbstractInfoDock(parent) -{ - m_tree = new QTreeWidget(this); - setWidget(m_tree); - m_tree->setAlternatingRowColors(true); - m_tree->header()->hide(); - setWindowTitle(tr("TOC")); - m_tree->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel); -} - -TocDock::~TocDock() -{ -} - -void TocDock::fillInfo() -{ - const QDomDocument *toc = document()->toc(); - if (toc) { - fillToc(*toc, m_tree, 0); - } else { - QTreeWidgetItem *item = new QTreeWidgetItem(); - item->setText(0, tr("No TOC")); - item->setFlags(item->flags() & ~Qt::ItemIsEnabled); - m_tree->addTopLevelItem(item); - } -} - -void TocDock::documentClosed() -{ - m_tree->clear(); - AbstractInfoDock::documentClosed(); -} - -#include "toc.moc" diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/toc.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/toc.h deleted file mode 100644 index bbc9082770e..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/toc.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef TOC_H -#define TOC_H - -#include "abstractinfodock.h" - -class QTreeWidget; - -class TocDock : public AbstractInfoDock -{ - Q_OBJECT - -public: - TocDock(QWidget *parent = 0); - ~TocDock(); - - /*virtual*/ void documentClosed(); - -protected: - /*virtual*/ void fillInfo(); - -private: - QTreeWidget *m_tree; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/viewer.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/viewer.cpp deleted file mode 100644 index 0201eea386f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/viewer.cpp +++ /dev/null @@ -1,317 +0,0 @@ -/* - * Copyright (C) 2008-2009, Pino Toscano <pino@kde.org> - * Copyright (C) 2008, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2009, Shawn Rutledge <shawn.t.rutledge@gmail.com> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "viewer.h" - -#include "embeddedfiles.h" -#include "fonts.h" -#include "info.h" -#include "metadata.h" -#include "navigationtoolbar.h" -#include "optcontent.h" -#include "pageview.h" -#include "permissions.h" -#include "thumbnails.h" -#include "toc.h" - -#include <poppler-qt4.h> - -#include <QtCore/QDir> -#include <QtGui/QAction> -#include <QtGui/QApplication> -#include <QtGui/QFileDialog> -#include <QtGui/QInputDialog> -#include <QtGui/QMenu> -#include <QtGui/QMenuBar> -#include <QtGui/QMessageBox> - -PdfViewer::PdfViewer() - : QMainWindow(), m_currentPage(0), m_doc(0) -{ - setWindowTitle(tr("Poppler-Qt4 Demo")); - - // setup the menus - QMenu *fileMenu = menuBar()->addMenu(tr("&File")); - m_fileOpenAct = fileMenu->addAction(tr("&Open"), this, SLOT(slotOpenFile())); - m_fileOpenAct->setShortcut(Qt::CTRL + Qt::Key_O); - fileMenu->addSeparator(); - m_fileSaveCopyAct = fileMenu->addAction(tr("&Save a Copy..."), this, SLOT(slotSaveCopy())); - m_fileSaveCopyAct->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_S); - m_fileSaveCopyAct->setEnabled(false); - fileMenu->addSeparator(); - QAction *act = fileMenu->addAction(tr("&Quit"), qApp, SLOT(closeAllWindows())); - act->setShortcut(Qt::CTRL + Qt::Key_Q); - - QMenu *viewMenu = menuBar()->addMenu(tr("&View")); - - QMenu *settingsMenu = menuBar()->addMenu(tr("&Settings")); - m_settingsTextAAAct = settingsMenu->addAction(tr("Text Antialias")); - m_settingsTextAAAct->setCheckable(true); - connect(m_settingsTextAAAct, SIGNAL(toggled(bool)), this, SLOT(slotToggleTextAA(bool))); - m_settingsGfxAAAct = settingsMenu->addAction(tr("Graphics Antialias")); - m_settingsGfxAAAct->setCheckable(true); - connect(m_settingsGfxAAAct, SIGNAL(toggled(bool)), this, SLOT(slotToggleGfxAA(bool))); - QMenu *settingsRenderMenu = settingsMenu->addMenu(tr("Render Backend")); - m_settingsRenderBackendGrp = new QActionGroup(settingsRenderMenu); - m_settingsRenderBackendGrp->setExclusive(true); - act = settingsRenderMenu->addAction(tr("Splash")); - act->setCheckable(true); - act->setChecked(true); - act->setData(qVariantFromValue(0)); - m_settingsRenderBackendGrp->addAction(act); - act = settingsRenderMenu->addAction(tr("Arthur")); - act->setCheckable(true); - act->setData(qVariantFromValue(1)); - m_settingsRenderBackendGrp->addAction(act); - connect(m_settingsRenderBackendGrp, SIGNAL(triggered(QAction*)), - this, SLOT(slotRenderBackend(QAction*))); - - QMenu *helpMenu = menuBar()->addMenu(tr("&Help")); - act = helpMenu->addAction(tr("&About"), this, SLOT(slotAbout())); - act = helpMenu->addAction(tr("About &Qt"), this, SLOT(slotAboutQt())); - - NavigationToolBar *navbar = new NavigationToolBar(this); - addToolBar(navbar); - m_observers.append(navbar); - - PageView *view = new PageView(this); - setCentralWidget(view); - m_observers.append(view); - - InfoDock *infoDock = new InfoDock(this); - addDockWidget(Qt::LeftDockWidgetArea, infoDock); - infoDock->hide(); - viewMenu->addAction(infoDock->toggleViewAction()); - m_observers.append(infoDock); - - TocDock *tocDock = new TocDock(this); - addDockWidget(Qt::LeftDockWidgetArea, tocDock); - tocDock->hide(); - viewMenu->addAction(tocDock->toggleViewAction()); - m_observers.append(tocDock); - - FontsDock *fontsDock = new FontsDock(this); - addDockWidget(Qt::LeftDockWidgetArea, fontsDock); - fontsDock->hide(); - viewMenu->addAction(fontsDock->toggleViewAction()); - m_observers.append(fontsDock); - - PermissionsDock *permissionsDock = new PermissionsDock(this); - addDockWidget(Qt::LeftDockWidgetArea, permissionsDock); - permissionsDock->hide(); - viewMenu->addAction(permissionsDock->toggleViewAction()); - m_observers.append(permissionsDock); - - ThumbnailsDock *thumbnailsDock = new ThumbnailsDock(this); - addDockWidget(Qt::LeftDockWidgetArea, thumbnailsDock); - thumbnailsDock->hide(); - viewMenu->addAction(thumbnailsDock->toggleViewAction()); - m_observers.append(thumbnailsDock); - - EmbeddedFilesDock *embfilesDock = new EmbeddedFilesDock(this); - addDockWidget(Qt::BottomDockWidgetArea, embfilesDock); - embfilesDock->hide(); - viewMenu->addAction(embfilesDock->toggleViewAction()); - m_observers.append(embfilesDock); - - MetadataDock *metadataDock = new MetadataDock(this); - addDockWidget(Qt::BottomDockWidgetArea, metadataDock); - metadataDock->hide(); - viewMenu->addAction(metadataDock->toggleViewAction()); - m_observers.append(metadataDock); - - OptContentDock *optContentDock = new OptContentDock(this); - addDockWidget(Qt::LeftDockWidgetArea, optContentDock); - optContentDock->hide(); - viewMenu->addAction(optContentDock->toggleViewAction()); - m_observers.append(optContentDock); - - Q_FOREACH(DocumentObserver *obs, m_observers) { - obs->m_viewer = this; - } - - connect(navbar, SIGNAL(zoomChanged(qreal)), view, SLOT(slotZoomChanged(qreal))); - - // activate AA by default - m_settingsTextAAAct->setChecked(true); - m_settingsGfxAAAct->setChecked(true); -} - -PdfViewer::~PdfViewer() -{ - closeDocument(); -} - -QSize PdfViewer::sizeHint() const -{ - return QSize(500, 600); -} - -void PdfViewer::loadDocument(const QString &file) -{ - Poppler::Document *newdoc = Poppler::Document::load(file); - if (!newdoc) { - QMessageBox msgbox(QMessageBox::Critical, tr("Open Error"), tr("Cannot open:\n") + file, - QMessageBox::Ok, this); - msgbox.exec(); - return; - } - - while (newdoc->isLocked()) { - bool ok = true; - QString password = QInputDialog::getText(this, tr("Document Password"), - tr("Please insert the password of the document:"), - QLineEdit::Password, QString(), &ok); - if (!ok) { - delete newdoc; - return; - } - newdoc->unlock(password.toLatin1(), password.toLatin1()); - } - - closeDocument(); - - m_doc = newdoc; - - m_doc->setRenderHint(Poppler::Document::TextAntialiasing, m_settingsTextAAAct->isChecked()); - m_doc->setRenderHint(Poppler::Document::Antialiasing, m_settingsGfxAAAct->isChecked()); - m_doc->setRenderBackend((Poppler::Document::RenderBackend)m_settingsRenderBackendGrp->checkedAction()->data().toInt()); - - Q_FOREACH(DocumentObserver *obs, m_observers) { - obs->documentLoaded(); - obs->pageChanged(0); - } - - m_fileSaveCopyAct->setEnabled(true); -} - -void PdfViewer::closeDocument() -{ - if (!m_doc) { - return; - } - - Q_FOREACH(DocumentObserver *obs, m_observers) { - obs->documentClosed(); - } - - m_currentPage = 0; - delete m_doc; - m_doc = 0; - - m_fileSaveCopyAct->setEnabled(false); -} - -void PdfViewer::slotOpenFile() -{ - QString fileName = QFileDialog::getOpenFileName(this, tr("Open PDF Document"), QDir::homePath(), tr("PDF Documents (*.pdf)")); - if (fileName.isEmpty()) { - return; - } - - loadDocument(fileName); -} - -void PdfViewer::slotSaveCopy() -{ - if (!m_doc) { - return; - } - - QString fileName = QFileDialog::getSaveFileName(this, tr("Save Copy"), QDir::homePath(), tr("PDF Documents (*.pdf)")); - if (fileName.isEmpty()) { - return; - } - - Poppler::PDFConverter *converter = m_doc->pdfConverter(); - converter->setOutputFileName(fileName); - converter->setPDFOptions(converter->pdfOptions() & ~Poppler::PDFConverter::WithChanges); - if (!converter->convert()) { - QMessageBox msgbox(QMessageBox::Critical, tr("Save Error"), tr("Cannot export to:\n%1").arg(fileName), - QMessageBox::Ok, this); - } - delete converter; -} - -void PdfViewer::slotAbout() -{ - const QString text("This is a demo of the Poppler-Qt4 library."); - QMessageBox::about(this, QString::fromLatin1("About Poppler-Qt4 Demo"), text); -} - -void PdfViewer::slotAboutQt() -{ - QMessageBox::aboutQt(this); -} - -void PdfViewer::slotToggleTextAA(bool value) -{ - if (!m_doc) { - return; - } - - m_doc->setRenderHint(Poppler::Document::TextAntialiasing, value); - - Q_FOREACH(DocumentObserver *obs, m_observers) { - obs->pageChanged(m_currentPage); - } -} - -void PdfViewer::slotToggleGfxAA(bool value) -{ - if (!m_doc) { - return; - } - - m_doc->setRenderHint(Poppler::Document::Antialiasing, value); - - Q_FOREACH(DocumentObserver *obs, m_observers) { - obs->pageChanged(m_currentPage); - } -} - -void PdfViewer::slotRenderBackend(QAction *act) -{ - if (!m_doc || !act) { - return; - } - - m_doc->setRenderBackend((Poppler::Document::RenderBackend)act->data().toInt()); - - Q_FOREACH(DocumentObserver *obs, m_observers) { - obs->pageChanged(m_currentPage); - } -} - -void PdfViewer::setPage(int page) -{ - Q_FOREACH(DocumentObserver *obs, m_observers) { - obs->pageChanged(page); - } - - m_currentPage = page; -} - -int PdfViewer::page() const -{ - return m_currentPage; -} - -#include "viewer.moc" diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/viewer.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/viewer.h deleted file mode 100644 index 5e0eaaffc28..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/demos/viewer.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef PDFVIEWER_H -#define PDFVIEWER_H - -#include <QtGui/QMainWindow> - -class QAction; -class QActionGroup; -class QLabel; -class DocumentObserver; -namespace Poppler { -class Document; -} - -class PdfViewer : public QMainWindow -{ - Q_OBJECT - - friend class DocumentObserver; - -public: - PdfViewer(); - ~PdfViewer(); - - /*virtual*/ QSize sizeHint() const; - - void loadDocument(const QString &file); - void closeDocument(); - -private Q_SLOTS: - void slotOpenFile(); - void slotSaveCopy(); - void slotAbout(); - void slotAboutQt(); - void slotToggleTextAA(bool value); - void slotToggleGfxAA(bool value); - void slotRenderBackend(QAction *act); - -private: - void setPage(int page); - int page() const; - - int m_currentPage; - - QAction *m_fileOpenAct; - QAction *m_fileSaveCopyAct; - QAction *m_settingsTextAAAct; - QAction *m_settingsGfxAAAct; - QActionGroup *m_settingsRenderBackendGrp; - - QList<DocumentObserver *> m_observers; - - Poppler::Document *m_doc; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/CMakeLists.txt b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/CMakeLists.txt deleted file mode 100644 index f6c7b160d01..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/CMakeLists.txt +++ /dev/null @@ -1,52 +0,0 @@ -add_definitions(${QT4_DEFINITIONS}) - -include_directories( - ${CMAKE_CURRENT_SOURCE_DIR} - ${QT4_INCLUDE_DIR} - ${CMAKE_CURRENT_BINARY_DIR} -) - -set(poppler_qt4_SRCS - poppler-annotation.cc - poppler-document.cc - poppler-embeddedfile.cc - poppler-fontinfo.cc - poppler-form.cc - poppler-link.cc - poppler-link-extractor.cc - poppler-movie.cc - poppler-optcontent.cc - poppler-page.cc - poppler-base-converter.cc - poppler-pdf-converter.cc - poppler-private.cc - poppler-ps-converter.cc - poppler-qiodeviceoutstream.cc - poppler-sound.cc - poppler-textbox.cc - poppler-page-transition.cc -) -if (ENABLE_SPLASH) - set(poppler_qt4_SRCS ${poppler_qt4_SRCS} - ${CMAKE_SOURCE_DIR}/poppler/ArthurOutputDev.cc - ) -endif (ENABLE_SPLASH) -qt4_automoc(${poppler_qt4_SRCS}) -add_library(poppler-qt4 SHARED ${poppler_qt4_SRCS}) -set_target_properties(poppler-qt4 PROPERTIES VERSION 3.2.0 SOVERSION 3) -target_link_libraries(poppler-qt4 poppler ${QT4_QTCORE_LIBRARY} ${QT4_QTGUI_LIBRARY} ${QT4_QTXML_LIBRARY}) -if(MSVC) -target_link_libraries(poppler-qt4 poppler ${poppler_LIBS}) -endif(MSVC) -install(TARGETS poppler-qt4 RUNTIME DESTINATION bin LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX}) - -install(FILES - poppler-qt4.h - poppler-link.h - poppler-annotation.h - poppler-form.h - poppler-optcontent.h - poppler-export.h - poppler-page-transition.h - DESTINATION include/poppler/qt4) - diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/Makefile.am b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/Makefile.am deleted file mode 100644 index 7e982e7f1f0..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/Makefile.am +++ /dev/null @@ -1,73 +0,0 @@ -INCLUDES = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/poppler \ - -I$(top_srcdir)/qt \ - $(FONTCONFIG_CFLAGS) \ - $(POPPLER_QT4_CFLAGS) - -SUFFIXES: .moc - -poppler_includedir = $(includedir)/poppler/qt4 - -poppler_include_HEADERS = \ - poppler-qt4.h \ - poppler-link.h \ - poppler-annotation.h \ - poppler-form.h \ - poppler-optcontent.h \ - poppler-export.h \ - poppler-page-transition.h \ - poppler-page-transition-private.h - -lib_LTLIBRARIES = libpoppler-qt4.la - -libpoppler_qt4_la_SOURCES = \ - poppler-document.cc \ - poppler-page.cc \ - poppler-fontinfo.cc \ - poppler-embeddedfile.cc \ - poppler-textbox.cc \ - poppler-link.cc \ - poppler-annotation.cc \ - poppler-link-extractor.cc \ - poppler-optcontent.cc \ - poppler-optcontent.h \ - poppler-page-transition.cc \ - poppler-sound.cc \ - poppler-form.cc \ - poppler-base-converter.cc \ - poppler-ps-converter.cc \ - poppler-pdf-converter.cc \ - poppler-qiodeviceoutstream.cc \ - poppler-private.cc \ - poppler-movie.cc \ - poppler-annotation-helper.h \ - poppler-page-private.h \ - poppler-link-extractor-private.h \ - poppler-annotation-private.h \ - poppler-converter-private.h \ - poppler-qiodeviceoutstream-private.h \ - poppler-optcontent-private.h \ - poppler-export.h \ - poppler-private.h - -libpoppler_qt4_la_LIBADD = \ - $(top_builddir)/poppler/libpoppler.la \ - $(FONTCONFIG_LIBS) \ - $(POPPLER_QT4_LIBS) - -if BUILD_SPLASH_OUTPUT -libpoppler_qt4_la_LIBADD += \ - $(top_builddir)/poppler/libpoppler-arthur.la -endif - -libpoppler_qt4_la_LDFLAGS = -version-info 5:0:2 @create_shared_lib@ - -# This rule lets GNU make create any *.moc from the equivalent *.h -.h.moc: - $(AM_V_GEN) $(MOCQT4) -i $< -o $@ - -poppler-optcontent.lo: poppler-optcontent.moc - -clean-generic: - rm -f *.moc diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/Makefile.in b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/Makefile.in deleted file mode 100644 index bd25cacbaf5..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/Makefile.in +++ /dev/null @@ -1,737 +0,0 @@ -# Makefile.in generated by automake 1.11 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -@BUILD_SPLASH_OUTPUT_TRUE@am__append_1 = \ -@BUILD_SPLASH_OUTPUT_TRUE@ $(top_builddir)/poppler/libpoppler-arthur.la - -subdir = qt4/src -DIST_COMMON = $(poppler_include_HEADERS) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ - $(top_srcdir)/m4/define-dir.m4 $(top_srcdir)/m4/gtk-doc.m4 \ - $(top_srcdir)/m4/libjpeg.m4 $(top_srcdir)/m4/libpng.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/qt.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h \ - $(top_builddir)/poppler/poppler-config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__installdirs = "$(DESTDIR)$(libdir)" \ - "$(DESTDIR)$(poppler_includedir)" -LTLIBRARIES = $(lib_LTLIBRARIES) -am__DEPENDENCIES_1 = -libpoppler_qt4_la_DEPENDENCIES = \ - $(top_builddir)/poppler/libpoppler.la $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) $(am__append_1) -am_libpoppler_qt4_la_OBJECTS = poppler-document.lo poppler-page.lo \ - poppler-fontinfo.lo poppler-embeddedfile.lo poppler-textbox.lo \ - poppler-link.lo poppler-annotation.lo \ - poppler-link-extractor.lo poppler-optcontent.lo \ - poppler-page-transition.lo poppler-sound.lo poppler-form.lo \ - poppler-base-converter.lo poppler-ps-converter.lo \ - poppler-pdf-converter.lo poppler-qiodeviceoutstream.lo \ - poppler-private.lo poppler-movie.lo -libpoppler_qt4_la_OBJECTS = $(am_libpoppler_qt4_la_OBJECTS) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) -am__v_lt_0 = --silent -libpoppler_qt4_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ - $(AM_CXXFLAGS) $(CXXFLAGS) $(libpoppler_qt4_la_LDFLAGS) \ - $(LDFLAGS) -o $@ -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/poppler -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -AM_V_CXX = $(am__v_CXX_$(V)) -am__v_CXX_ = $(am__v_CXX_$(AM_DEFAULT_VERBOSITY)) -am__v_CXX_0 = @echo " CXX " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CXXLD = $(am__v_CXXLD_$(V)) -am__v_CXXLD_ = $(am__v_CXXLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CXXLD_0 = @echo " CXXLD " $@; -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_$(V)) -am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) -am__v_CC_0 = @echo " CC " $@; -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_$(V)) -am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CCLD_0 = @echo " CCLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -SOURCES = $(libpoppler_qt4_la_SOURCES) -DIST_SOURCES = $(libpoppler_qt4_la_SOURCES) -HEADERS = $(poppler_include_HEADERS) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ABIWORD_CFLAGS = @ABIWORD_CFLAGS@ -ABIWORD_LIBS = @ABIWORD_LIBS@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAIRO_CFLAGS = @CAIRO_CFLAGS@ -CAIRO_FEATURE = @CAIRO_FEATURE@ -CAIRO_LIBS = @CAIRO_LIBS@ -CAIRO_REQ = @CAIRO_REQ@ -CAIRO_VERSION = @CAIRO_VERSION@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ -FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ -FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ -FREETYPE_CONFIG = @FREETYPE_CONFIG@ -FREETYPE_LIBS = @FREETYPE_LIBS@ -GDK_CFLAGS = @GDK_CFLAGS@ -GDK_FEATURE = @GDK_FEATURE@ -GDK_LIBS = @GDK_LIBS@ -GLIB_MKENUMS = @GLIB_MKENUMS@ -GREP = @GREP@ -GTKDOC_CHECK = @GTKDOC_CHECK@ -GTK_TEST_CFLAGS = @GTK_TEST_CFLAGS@ -GTK_TEST_LIBS = @GTK_TEST_LIBS@ -HTML_DIR = @HTML_DIR@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LCMS_CFLAGS = @LCMS_CFLAGS@ -LCMS_LIBS = @LCMS_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBJPEG_LIBS = @LIBJPEG_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOPENJPEG_LIBS = @LIBOPENJPEG_LIBS@ -LIBPNG_LIBS = @LIBPNG_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -MOCQT4 = @MOCQT4@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PC_REQUIRES = @PC_REQUIRES@ -PC_REQUIRES_PRIVATE = @PC_REQUIRES_PRIVATE@ -PKG_CONFIG = @PKG_CONFIG@ -POPPLER_DATADIR = @POPPLER_DATADIR@ -POPPLER_GLIB_CFLAGS = @POPPLER_GLIB_CFLAGS@ -POPPLER_GLIB_DISABLE_DEPRECATED = @POPPLER_GLIB_DISABLE_DEPRECATED@ -POPPLER_GLIB_DISABLE_SINGLE_INCLUDES = @POPPLER_GLIB_DISABLE_SINGLE_INCLUDES@ -POPPLER_GLIB_LIBS = @POPPLER_GLIB_LIBS@ -POPPLER_MAJOR_VERSION = @POPPLER_MAJOR_VERSION@ -POPPLER_MICRO_VERSION = @POPPLER_MICRO_VERSION@ -POPPLER_MINOR_VERSION = @POPPLER_MINOR_VERSION@ -POPPLER_QT4_CFLAGS = @POPPLER_QT4_CFLAGS@ -POPPLER_QT4_CXXFLAGS = @POPPLER_QT4_CXXFLAGS@ -POPPLER_QT4_LIBS = @POPPLER_QT4_LIBS@ -POPPLER_QT4_TEST_CFLAGS = @POPPLER_QT4_TEST_CFLAGS@ -POPPLER_QT4_TEST_LIBS = @POPPLER_QT4_TEST_LIBS@ -POPPLER_QT_CXXFLAGS = @POPPLER_QT_CXXFLAGS@ -POPPLER_QT_LIBS = @POPPLER_QT_LIBS@ -PTHREAD_CC = @PTHREAD_CC@ -PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ -PTHREAD_LIBS = @PTHREAD_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZLIB_LIBS = @ZLIB_LIBS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -acx_pthread_config = @acx_pthread_config@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -auto_import_flags = @auto_import_flags@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -create_shared_lib = @create_shared_lib@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -win32_libs = @win32_libs@ -INCLUDES = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/poppler \ - -I$(top_srcdir)/qt \ - $(FONTCONFIG_CFLAGS) \ - $(POPPLER_QT4_CFLAGS) - -poppler_includedir = $(includedir)/poppler/qt4 -poppler_include_HEADERS = \ - poppler-qt4.h \ - poppler-link.h \ - poppler-annotation.h \ - poppler-form.h \ - poppler-optcontent.h \ - poppler-export.h \ - poppler-page-transition.h \ - poppler-page-transition-private.h - -lib_LTLIBRARIES = libpoppler-qt4.la -libpoppler_qt4_la_SOURCES = \ - poppler-document.cc \ - poppler-page.cc \ - poppler-fontinfo.cc \ - poppler-embeddedfile.cc \ - poppler-textbox.cc \ - poppler-link.cc \ - poppler-annotation.cc \ - poppler-link-extractor.cc \ - poppler-optcontent.cc \ - poppler-optcontent.h \ - poppler-page-transition.cc \ - poppler-sound.cc \ - poppler-form.cc \ - poppler-base-converter.cc \ - poppler-ps-converter.cc \ - poppler-pdf-converter.cc \ - poppler-qiodeviceoutstream.cc \ - poppler-private.cc \ - poppler-movie.cc \ - poppler-annotation-helper.h \ - poppler-page-private.h \ - poppler-link-extractor-private.h \ - poppler-annotation-private.h \ - poppler-converter-private.h \ - poppler-qiodeviceoutstream-private.h \ - poppler-optcontent-private.h \ - poppler-export.h \ - poppler-private.h - -libpoppler_qt4_la_LIBADD = $(top_builddir)/poppler/libpoppler.la \ - $(FONTCONFIG_LIBS) $(POPPLER_QT4_LIBS) $(am__append_1) -libpoppler_qt4_la_LDFLAGS = -version-info 5:0:2 @create_shared_lib@ -all: all-am - -.SUFFIXES: -.SUFFIXES: .cc .h .lo .moc .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign qt4/src/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign qt4/src/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): -install-libLTLIBRARIES: $(lib_LTLIBRARIES) - @$(NORMAL_INSTALL) - test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ - list2=; for p in $$list; do \ - if test -f $$p; then \ - list2="$$list2 $$p"; \ - else :; fi; \ - done; \ - test -z "$$list2" || { \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ - } - -uninstall-libLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ - done - -clean-libLTLIBRARIES: - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -libpoppler-qt4.la: $(libpoppler_qt4_la_OBJECTS) $(libpoppler_qt4_la_DEPENDENCIES) - $(AM_V_CXXLD)$(libpoppler_qt4_la_LINK) -rpath $(libdir) $(libpoppler_qt4_la_OBJECTS) $(libpoppler_qt4_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-annotation.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-base-converter.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-document.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-embeddedfile.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-fontinfo.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-form.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-link-extractor.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-link.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-movie.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-optcontent.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-page-transition.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-page.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-pdf-converter.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-private.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-ps-converter.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-qiodeviceoutstream.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-sound.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-textbox.Plo@am__quote@ - -.cc.o: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< - -.cc.obj: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.cc.lo: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-poppler_includeHEADERS: $(poppler_include_HEADERS) - @$(NORMAL_INSTALL) - test -z "$(poppler_includedir)" || $(MKDIR_P) "$(DESTDIR)$(poppler_includedir)" - @list='$(poppler_include_HEADERS)'; test -n "$(poppler_includedir)" || list=; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(poppler_includedir)'"; \ - $(INSTALL_HEADER) $$files "$(DESTDIR)$(poppler_includedir)" || exit $$?; \ - done - -uninstall-poppler_includeHEADERS: - @$(NORMAL_UNINSTALL) - @list='$(poppler_include_HEADERS)'; test -n "$(poppler_includedir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '$(DESTDIR)$(poppler_includedir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(poppler_includedir)" && rm -f $$files - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) $(HEADERS) -installdirs: - for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(poppler_includedir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-poppler_includeHEADERS - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: install-libLTLIBRARIES - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-libLTLIBRARIES \ - uninstall-poppler_includeHEADERS - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ - clean-libLTLIBRARIES clean-libtool ctags distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am \ - install-libLTLIBRARIES install-man install-pdf install-pdf-am \ - install-poppler_includeHEADERS install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ - pdf pdf-am ps ps-am tags uninstall uninstall-am \ - uninstall-libLTLIBRARIES uninstall-poppler_includeHEADERS - - -SUFFIXES: .moc - -# This rule lets GNU make create any *.moc from the equivalent *.h -.h.moc: - $(AM_V_GEN) $(MOCQT4) -i $< -o $@ - -poppler-optcontent.lo: poppler-optcontent.moc - -clean-generic: - rm -f *.moc - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-annotation-helper.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-annotation-helper.h deleted file mode 100644 index f5d17eb95db..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-annotation-helper.h +++ /dev/null @@ -1,208 +0,0 @@ -/* poppler-annotation-helper.h: qt interface to poppler - * Copyright (C) 2006, 2008, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * Adapting code from - * Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <QtCore/QDebug> - -class QColor; - -class AnnotColor; - -namespace Poppler { - -class XPDFReader -{ - public: - // find named symbol and parse it - static inline void lookupName( Dict *, char *, QString & dest ); - static inline void lookupString( Dict *, char *, QString & dest ); - static inline void lookupBool( Dict *, char *, bool & dest ); - static inline void lookupInt( Dict *, char *, int & dest ); - static inline void lookupNum( Dict *, char *, double & dest ); - static inline int lookupNumArray( Dict *, char *, double * dest, int len ); - static inline void lookupColor( Dict *, char *, QColor & color ); - static inline void lookupIntRef( Dict *, char *, int & dest ); - static inline void lookupDate( Dict *, char *, QDateTime & dest ); - // transform from user coords to normalized ones using the matrix M - static inline void transform( double * M, double x, double y, QPointF &res ); -}; - -void XPDFReader::lookupName( Dict * dict, char * type, QString & dest ) -{ - Object nameObj; - dict->lookup( type, &nameObj ); - if ( nameObj.isNull() ) - return; - if ( nameObj.isName() ) - dest = nameObj.getName(); - else - qDebug() << type << " is not Name." << endl; - nameObj.free(); -} - -void XPDFReader::lookupString( Dict * dict, char * type, QString & dest ) -{ - Object stringObj; - dict->lookup( type, &stringObj ); - if ( stringObj.isNull() ) - return; - if ( stringObj.isString() ) - dest = stringObj.getString()->getCString(); - else - qDebug() << type << " is not String." << endl; - stringObj.free(); -} - -void XPDFReader::lookupBool( Dict * dict, char * type, bool & dest ) -{ - Object boolObj; - dict->lookup( type, &boolObj ); - if ( boolObj.isNull() ) - return; - if ( boolObj.isBool() ) - dest = boolObj.getBool() == gTrue; - else - qDebug() << type << " is not Bool." << endl; - boolObj.free(); -} - -void XPDFReader::lookupInt( Dict * dict, char * type, int & dest ) -{ - Object intObj; - dict->lookup( type, &intObj ); - if ( intObj.isNull() ) - return; - if ( intObj.isInt() ) - dest = intObj.getInt(); - else - qDebug() << type << " is not Int." << endl; - intObj.free(); -} - -void XPDFReader::lookupNum( Dict * dict, char * type, double & dest ) -{ - Object numObj; - dict->lookup( type, &numObj ); - if ( numObj.isNull() ) - return; - if ( numObj.isNum() ) - dest = numObj.getNum(); - else - qDebug() << type << " is not Num." << endl; - numObj.free(); -} - -int XPDFReader::lookupNumArray( Dict * dict, char * type, double * dest, int len ) -{ - Object arrObj; - dict->lookup( type, &arrObj ); - if ( arrObj.isNull() ) - return 0; - Object numObj; - if ( arrObj.isArray() ) - { - len = qMin( len, arrObj.arrayGetLength() ); - for ( int i = 0; i < len; i++ ) - { - dest[i] = arrObj.arrayGet( i, &numObj )->getNum(); - numObj.free(); - } - } - else - { - len = 0; - qDebug() << type << "is not Array." << endl; - } - arrObj.free(); - return len; -} - -void XPDFReader::lookupColor( Dict * dict, char * type, QColor & dest ) -{ - double c[3]; - if ( XPDFReader::lookupNumArray( dict, type, c, 3 ) == 3 ) - dest = QColor( (int)(c[0]*255.0), (int)(c[1]*255.0), (int)(c[2]*255.0)); -} - -void XPDFReader::lookupIntRef( Dict * dict, char * type, int & dest ) -{ - Object refObj; - dict->lookupNF( type, &refObj ); - if ( refObj.isNull() ) - return; - if ( refObj.isRef() ) - dest = refObj.getRefNum(); - else - qDebug() << type << " is not Ref." << endl; - refObj.free(); -} - -void XPDFReader::lookupDate( Dict * dict, char * type, QDateTime & dest ) -{ - Object dateObj; - dict->lookup( type, &dateObj ); - if ( dateObj.isNull() ) - return; - if ( dateObj.isString() ) - { - dest = convertDate( dateObj.getString()->getCString() ); - } - else - qDebug() << type << " is not Date" << endl; - dateObj.free(); -} - -void XPDFReader::transform( double * M, double x, double y, QPointF &res ) -{ - res.setX( M[0] * x + M[2] * y + M[4] ); - res.setY( M[1] * x + M[3] * y + M[5] ); -} - -/** @short Helper classes for CROSSDEPS resolving and DS conversion. */ -struct ResolveRevision -{ - int prevAnnotationID; // ID of the annotation to be reparended - int nextAnnotationID; // (only needed for speeding up resolving) - Annotation * nextAnnotation; // annotation that will act as parent - Annotation::RevScope nextScope; // scope of revision (Reply) - Annotation::RevType nextType; // type of revision (None) -}; - -struct ResolveWindow -{ - AnnotPopup * popup; // the (maybe shared) window - Annotation * annotation; // annotation having the popup window -}; - -struct PostProcessText // this handles a special pdf case conversion -{ - Annotation * textAnnotation; // a popup text annotation (not FreeText) - bool opened; // pdf property to convert to window flags -}; - -struct PopupWindow -{ - Annotation * dummyAnnotation; // window properties (in pdf as Annotation) - bool shown; // converted to Annotation::Hidden flag -}; - -QColor convertAnnotColor( AnnotColor *color ); - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-annotation-private.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-annotation-private.h deleted file mode 100644 index b428347f60c..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-annotation-private.h +++ /dev/null @@ -1,49 +0,0 @@ -/* poppler-link-extractor-private.h: qt interface to poppler - * Copyright (C) 2007, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef _POPPLER_ANNOTATION_PRIVATE_H_ -#define _POPPLER_ANNOTATION_PRIVATE_H_ - -#include "poppler-annotation.h" - -namespace Poppler -{ - -class AnnotationPrivate -{ - public: - AnnotationPrivate(); - virtual ~AnnotationPrivate(); - - /* properties: contents related */ - QString author; - QString contents; - QString uniqueName; - QDateTime modDate; // before or equal to currentDateTime() - QDateTime creationDate; // before or equal to modifyDate - - /* properties: look/interaction related */ - int flags; - QRectF boundary; - - QLinkedList< Annotation::Revision > revisions; -}; - -} - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-annotation.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-annotation.cc deleted file mode 100644 index 22f1e6a637f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-annotation.cc +++ /dev/null @@ -1,2062 +0,0 @@ -/* poppler-annotation.cc: qt interface to poppler - * Copyright (C) 2006, 2009 Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2006, 2008 Pino Toscano <pino@kde.org> - * Adapting code from - * Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -// qt/kde includes -#include <QtXml/QDomElement> -#include <QtGui/QColor> - -// local includes -#include "poppler-annotation.h" -#include "poppler-link.h" -#include "poppler-qt4.h" -#include "poppler-annotation-private.h" - -// poppler includes -#include <Page.h> -#include <Annot.h> - -namespace Poppler { - -//BEGIN AnnotationUtils implementation -Annotation * AnnotationUtils::createAnnotation( const QDomElement & annElement ) -{ - // safety check on annotation element - if ( !annElement.hasAttribute( "type" ) ) - return 0; - - // build annotation of given type - Annotation * annotation = 0; - int typeNumber = annElement.attribute( "type" ).toInt(); - switch ( typeNumber ) - { - case Annotation::AText: - annotation = new TextAnnotation( annElement ); - break; - case Annotation::ALine: - annotation = new LineAnnotation( annElement ); - break; - case Annotation::AGeom: - annotation = new GeomAnnotation( annElement ); - break; - case Annotation::AHighlight: - annotation = new HighlightAnnotation( annElement ); - break; - case Annotation::AStamp: - annotation = new StampAnnotation( annElement ); - break; - case Annotation::AInk: - annotation = new InkAnnotation( annElement ); - break; - case Annotation::ACaret: - annotation = new CaretAnnotation( annElement ); - break; - } - - // return created annotation - return annotation; -} - -void AnnotationUtils::storeAnnotation( const Annotation * ann, QDomElement & annElement, - QDomDocument & document ) -{ - // save annotation's type as element's attribute - annElement.setAttribute( "type", (uint)ann->subType() ); - - // append all annotation data as children of this node - ann->store( annElement, document ); -} - -QDomElement AnnotationUtils::findChildElement( const QDomNode & parentNode, - const QString & name ) -{ - // loop through the whole children and return a 'name' named element - QDomNode subNode = parentNode.firstChild(); - while( subNode.isElement() ) - { - QDomElement element = subNode.toElement(); - if ( element.tagName() == name ) - return element; - subNode = subNode.nextSibling(); - } - // if the name can't be found, return a dummy null element - return QDomElement(); -} -//END AnnotationUtils implementation - - -//BEGIN Annotation implementation -AnnotationPrivate::AnnotationPrivate() - : flags( 0 ) -{ -} - -AnnotationPrivate::~AnnotationPrivate() -{ -} - - -Annotation::Style::Style() - : opacity( 1.0 ), width( 1.0 ), style( Solid ), xCorners( 0.0 ), - yCorners( 0.0 ), marks( 3 ), spaces( 0 ), effect( NoEffect ), - effectIntensity( 1.0 ) {} - -Annotation::Window::Window() - : flags( -1 ), width( 0 ), height( 0 ) {} - -Annotation::Revision::Revision() - : annotation( 0 ), scope( Reply ), type( None ) {} - -Annotation::Annotation( AnnotationPrivate &dd ) - : d_ptr( &dd ) -{ -} - -Annotation::~Annotation() -{ - Q_D( Annotation ); - // delete all children revisions - QLinkedList< Annotation::Revision >::iterator it = d->revisions.begin(), end = d->revisions.end(); - for ( ; it != end; ++it ) - delete (*it).annotation; - - delete d_ptr; -} - -Annotation::Annotation( AnnotationPrivate &dd, const QDomNode &annNode ) - : d_ptr( &dd ) -{ - Q_D( Annotation ); - // get the [base] element of the annotation node - QDomElement e = AnnotationUtils::findChildElement( annNode, "base" ); - if ( e.isNull() ) - return; - - // parse -contents- attributes - if ( e.hasAttribute( "author" ) ) - d->author = e.attribute( "author" ); - if ( e.hasAttribute( "contents" ) ) - d->contents = e.attribute( "contents" ); - if ( e.hasAttribute( "uniqueName" ) ) - d->uniqueName = e.attribute( "uniqueName" ); - if ( e.hasAttribute( "modifyDate" ) ) - d->modDate = QDateTime::fromString( e.attribute( "modifyDate" ) ); - if ( e.hasAttribute( "creationDate" ) ) - d->creationDate = QDateTime::fromString( e.attribute( "creationDate" ) ); - - // parse -other- attributes - if ( e.hasAttribute( "flags" ) ) - d->flags = e.attribute( "flags" ).toInt(); - if ( e.hasAttribute( "color" ) ) - style.color = QColor( e.attribute( "color" ) ); - if ( e.hasAttribute( "opacity" ) ) - style.opacity = e.attribute( "opacity" ).toDouble(); - - // parse -the-subnodes- (describing Style, Window, Revision(s) structures) - // Note: all subnodes if present must be 'attributes complete' - QDomNode eSubNode = e.firstChild(); - while ( eSubNode.isElement() ) - { - QDomElement ee = eSubNode.toElement(); - eSubNode = eSubNode.nextSibling(); - - // parse boundary - if ( ee.tagName() == "boundary" ) - { - d->boundary.setLeft(ee.attribute( "l" ).toDouble()); - d->boundary.setTop(ee.attribute( "t" ).toDouble()); - d->boundary.setRight(ee.attribute( "r" ).toDouble()); - d->boundary.setBottom(ee.attribute( "b" ).toDouble()); - } - // parse penStyle if not default - else if ( ee.tagName() == "penStyle" ) - { - style.width = ee.attribute( "width" ).toDouble(); - style.style = (LineStyle)ee.attribute( "style" ).toInt(); - style.xCorners = ee.attribute( "xcr" ).toDouble(); - style.yCorners = ee.attribute( "ycr" ).toDouble(); - style.marks = ee.attribute( "marks" ).toInt(); - style.spaces = ee.attribute( "spaces" ).toInt(); - } - // parse effectStyle if not default - else if ( ee.tagName() == "penEffect" ) - { - style.effect = (LineEffect)ee.attribute( "effect" ).toInt(); - style.effectIntensity = ee.attribute( "intensity" ).toDouble(); - } - // parse window if present - else if ( ee.tagName() == "window" ) - { - window.flags = ee.attribute( "flags" ).toInt(); - window.topLeft.setX(ee.attribute( "top" ).toDouble()); - window.topLeft.setY(ee.attribute( "left" ).toDouble()); - window.width = ee.attribute( "width" ).toInt(); - window.height = ee.attribute( "height" ).toInt(); - window.title = ee.attribute( "title" ); - window.summary = ee.attribute( "summary" ); - // parse window subnodes - QDomNode winNode = ee.firstChild(); - for ( ; winNode.isElement(); winNode = winNode.nextSibling() ) - { - QDomElement winElement = winNode.toElement(); - if ( winElement.tagName() == "text" ) - window.text = winElement.firstChild().toCDATASection().data(); - } - } - } - - // get the [revisions] element of the annotation node - QDomNode revNode = annNode.firstChild(); - for ( ; revNode.isElement(); revNode = revNode.nextSibling() ) - { - QDomElement revElement = revNode.toElement(); - if ( revElement.tagName() != "revision" ) - continue; - - // compile the Revision structure crating annotation - Revision rev; - rev.scope = (RevScope)revElement.attribute( "revScope" ).toInt(); - rev.type = (RevType)revElement.attribute( "revType" ).toInt(); - rev.annotation = AnnotationUtils::createAnnotation( revElement ); - - // if annotation is valid, add revision to internal list - if ( rev.annotation ) - d->revisions.append( rev ); - } -} - -void Annotation::store( QDomNode & annNode, QDomDocument & document ) const -{ - Q_D( const Annotation ); - // create [base] element of the annotation node - QDomElement e = document.createElement( "base" ); - annNode.appendChild( e ); - - // store -contents- attributes - if ( !d->author.isEmpty() ) - e.setAttribute( "author", d->author ); - if ( !d->contents.isEmpty() ) - e.setAttribute( "contents", d->contents ); - if ( !d->uniqueName.isEmpty() ) - e.setAttribute( "uniqueName", d->uniqueName ); - if ( d->modDate.isValid() ) - e.setAttribute( "modifyDate", d->modDate.toString() ); - if ( d->creationDate.isValid() ) - e.setAttribute( "creationDate", d->creationDate.toString() ); - - // store -other- attributes - if ( d->flags ) - e.setAttribute( "flags", d->flags ); - if ( style.color.isValid() && style.color != Qt::black ) - e.setAttribute( "color", style.color.name() ); - if ( style.opacity != 1.0 ) - e.setAttribute( "opacity", QString::number( style.opacity ) ); - - // Sub-Node-1 - boundary - QDomElement bE = document.createElement( "boundary" ); - e.appendChild( bE ); - bE.setAttribute( "l", QString::number( (double)d->boundary.left() ) ); - bE.setAttribute( "t", QString::number( (double)d->boundary.top() ) ); - bE.setAttribute( "r", QString::number( (double)d->boundary.right() ) ); - bE.setAttribute( "b", QString::number( (double)d->boundary.bottom() ) ); - - // Sub-Node-2 - penStyle - if ( style.width != 1 || style.style != Solid || style.xCorners != 0 || - style.yCorners != 0.0 || style.marks != 3 || style.spaces != 0 ) - { - QDomElement psE = document.createElement( "penStyle" ); - e.appendChild( psE ); - psE.setAttribute( "width", QString::number( style.width ) ); - psE.setAttribute( "style", (int)style.style ); - psE.setAttribute( "xcr", QString::number( style.xCorners ) ); - psE.setAttribute( "ycr", QString::number( style.yCorners ) ); - psE.setAttribute( "marks", style.marks ); - psE.setAttribute( "spaces", style.spaces ); - } - - // Sub-Node-3 - penEffect - if ( style.effect != NoEffect || style.effectIntensity != 1.0 ) - { - QDomElement peE = document.createElement( "penEffect" ); - e.appendChild( peE ); - peE.setAttribute( "effect", (int)style.effect ); - peE.setAttribute( "intensity", QString::number( style.effectIntensity ) ); - } - - // Sub-Node-4 - window - if ( window.flags != -1 || !window.title.isEmpty() || - !window.summary.isEmpty() || !window.text.isEmpty() ) - { - QDomElement wE = document.createElement( "window" ); - e.appendChild( wE ); - wE.setAttribute( "flags", window.flags ); - wE.setAttribute( "top", QString::number( window.topLeft.x() ) ); - wE.setAttribute( "left", QString::number( window.topLeft.y() ) ); - wE.setAttribute( "width", window.width ); - wE.setAttribute( "height", window.height ); - wE.setAttribute( "title", window.title ); - wE.setAttribute( "summary", window.summary ); - // store window.text as a subnode, because we need escaped data - if ( !window.text.isEmpty() ) - { - QDomElement escapedText = document.createElement( "text" ); - wE.appendChild( escapedText ); - QDomCDATASection textCData = document.createCDATASection( window.text ); - escapedText.appendChild( textCData ); - } - } - - // create [revision] element of the annotation node (if any) - if ( d->revisions.isEmpty() ) - return; - - // add all revisions as children of revisions element - QLinkedList< Revision >::const_iterator it = d->revisions.begin(), end = d->revisions.end(); - for ( ; it != end; ++it ) - { - // create revision element - const Revision & revision = *it; - QDomElement r = document.createElement( "revision" ); - annNode.appendChild( r ); - // set element attributes - r.setAttribute( "revScope", (int)revision.scope ); - r.setAttribute( "revType", (int)revision.type ); - // use revision as the annotation element, so fill it up - AnnotationUtils::storeAnnotation( revision.annotation, r, document ); - } -} - -QString Annotation::author() const -{ - Q_D( const Annotation ); - return d->author; -} - -void Annotation::setAuthor( const QString &author ) -{ - Q_D( Annotation ); - d->author = author; -} - -QString Annotation::contents() const -{ - Q_D( const Annotation ); - return d->contents; -} - -void Annotation::setContents( const QString &contents ) -{ - Q_D( Annotation ); - d->contents = contents; -} - -QString Annotation::uniqueName() const -{ - Q_D( const Annotation ); - return d->uniqueName; -} - -void Annotation::setUniqueName( const QString &uniqueName ) -{ - Q_D( Annotation ); - d->uniqueName = uniqueName; -} - -QDateTime Annotation::modificationDate() const -{ - Q_D( const Annotation ); - return d->modDate; -} - -void Annotation::setModificationDate( const QDateTime &date ) -{ - Q_D( Annotation ); - d->modDate = date; -} - -QDateTime Annotation::creationDate() const -{ - Q_D( const Annotation ); - return d->creationDate; -} - -void Annotation::setCreationDate( const QDateTime &date ) -{ - Q_D( Annotation ); - d->creationDate = date; -} - -int Annotation::flags() const -{ - Q_D( const Annotation ); - return d->flags; -} - -void Annotation::setFlags( int flags ) -{ - Q_D( Annotation ); - d->flags = flags; -} - -QRectF Annotation::boundary() const -{ - Q_D( const Annotation ); - return d->boundary; -} - -void Annotation::setBoundary( const QRectF &boundary ) -{ - Q_D( Annotation ); - d->boundary = boundary; -} - -QLinkedList< Annotation::Revision >& Annotation::revisions() -{ - Q_D( Annotation ); - return d->revisions; -} - -const QLinkedList< Annotation::Revision >& Annotation::revisions() const -{ - Q_D( const Annotation ); - return d->revisions; -} - -//END AnnotationUtils implementation - - -/** TextAnnotation [Annotation] */ -class TextAnnotationPrivate : public AnnotationPrivate -{ - public: - TextAnnotationPrivate(); - - // data fields - TextAnnotation::TextType textType; - QString textIcon; - QFont textFont; - int inplaceAlign; // 0:left, 1:center, 2:right - QString inplaceText; // overrides contents - QPointF inplaceCallout[3]; - TextAnnotation::InplaceIntent inplaceIntent; -}; - -TextAnnotationPrivate::TextAnnotationPrivate() - : AnnotationPrivate(), textType( TextAnnotation::Linked ), - textIcon( "Note" ), inplaceAlign( 0 ), - inplaceIntent( TextAnnotation::Unknown ) -{ -} - -TextAnnotation::TextAnnotation() - : Annotation( *new TextAnnotationPrivate() ) -{} - -TextAnnotation::TextAnnotation( const QDomNode & node ) - : Annotation( *new TextAnnotationPrivate, node ) -{ - Q_D( TextAnnotation ); - - // loop through the whole children looking for a 'text' element - QDomNode subNode = node.firstChild(); - while( subNode.isElement() ) - { - QDomElement e = subNode.toElement(); - subNode = subNode.nextSibling(); - if ( e.tagName() != "text" ) - continue; - - // parse the attributes - if ( e.hasAttribute( "type" ) ) - d->textType = (TextAnnotation::TextType)e.attribute( "type" ).toInt(); - if ( e.hasAttribute( "icon" ) ) - d->textIcon = e.attribute( "icon" ); - if ( e.hasAttribute( "font" ) ) - d->textFont.fromString( e.attribute( "font" ) ); - if ( e.hasAttribute( "align" ) ) - d->inplaceAlign = e.attribute( "align" ).toInt(); - if ( e.hasAttribute( "intent" ) ) - d->inplaceIntent = (TextAnnotation::InplaceIntent)e.attribute( "intent" ).toInt(); - - // parse the subnodes - QDomNode eSubNode = e.firstChild(); - while ( eSubNode.isElement() ) - { - QDomElement ee = eSubNode.toElement(); - eSubNode = eSubNode.nextSibling(); - - if ( ee.tagName() == "escapedText" ) - { - d->inplaceText = ee.firstChild().toCDATASection().data(); - } - else if ( ee.tagName() == "callout" ) - { - d->inplaceCallout[0].setX(ee.attribute( "ax" ).toDouble()); - d->inplaceCallout[0].setY(ee.attribute( "ay" ).toDouble()); - d->inplaceCallout[1].setX(ee.attribute( "bx" ).toDouble()); - d->inplaceCallout[1].setY(ee.attribute( "by" ).toDouble()); - d->inplaceCallout[2].setX(ee.attribute( "cx" ).toDouble()); - d->inplaceCallout[2].setY(ee.attribute( "cy" ).toDouble()); - } - } - - // loading complete - break; - } -} - -TextAnnotation::~TextAnnotation() -{ -} - -void TextAnnotation::store( QDomNode & node, QDomDocument & document ) const -{ - Q_D( const TextAnnotation ); - - // recurse to parent objects storing properties - Annotation::store( node, document ); - - // create [text] element - QDomElement textElement = document.createElement( "text" ); - node.appendChild( textElement ); - - // store the optional attributes - if ( d->textType != Linked ) - textElement.setAttribute( "type", (int)d->textType ); - if ( d->textIcon != "Comment" ) - textElement.setAttribute( "icon", d->textIcon ); - if ( d->inplaceAlign ) - textElement.setAttribute( "align", d->inplaceAlign ); - if ( d->inplaceIntent != Unknown ) - textElement.setAttribute( "intent", (int)d->inplaceIntent ); - - textElement.setAttribute( "font", d->textFont.toString() ); - - // Sub-Node-1 - escapedText - if ( !d->inplaceText.isEmpty() ) - { - QDomElement escapedText = document.createElement( "escapedText" ); - textElement.appendChild( escapedText ); - QDomCDATASection textCData = document.createCDATASection( d->inplaceText ); - escapedText.appendChild( textCData ); - } - - // Sub-Node-2 - callout - if ( d->inplaceCallout[0].x() != 0.0 ) - { - QDomElement calloutElement = document.createElement( "callout" ); - textElement.appendChild( calloutElement ); - calloutElement.setAttribute( "ax", QString::number( d->inplaceCallout[0].x() ) ); - calloutElement.setAttribute( "ay", QString::number( d->inplaceCallout[0].y() ) ); - calloutElement.setAttribute( "bx", QString::number( d->inplaceCallout[1].x() ) ); - calloutElement.setAttribute( "by", QString::number( d->inplaceCallout[1].y() ) ); - calloutElement.setAttribute( "cx", QString::number( d->inplaceCallout[2].x() ) ); - calloutElement.setAttribute( "cy", QString::number( d->inplaceCallout[2].y() ) ); - } -} - -Annotation::SubType TextAnnotation::subType() const -{ - return AText; -} - -TextAnnotation::TextType TextAnnotation::textType() const -{ - Q_D( const TextAnnotation ); - return d->textType; -} - -void TextAnnotation::setTextType( TextAnnotation::TextType type ) -{ - Q_D( TextAnnotation ); - d->textType = type; -} - -QString TextAnnotation::textIcon() const -{ - Q_D( const TextAnnotation ); - return d->textIcon; -} - -void TextAnnotation::setTextIcon( const QString &icon ) -{ - Q_D( TextAnnotation ); - d->textIcon = icon; -} - -QFont TextAnnotation::textFont() const -{ - Q_D( const TextAnnotation ); - return d->textFont; -} - -void TextAnnotation::setTextFont( const QFont &font ) -{ - Q_D( TextAnnotation ); - d->textFont = font; -} - -int TextAnnotation::inplaceAlign() const -{ - Q_D( const TextAnnotation ); - return d->inplaceAlign; -} - -void TextAnnotation::setInplaceAlign( int align ) -{ - Q_D( TextAnnotation ); - d->inplaceAlign = align; -} - -QString TextAnnotation::inplaceText() const -{ - Q_D( const TextAnnotation ); - return d->inplaceText; -} - -void TextAnnotation::setInplaceText( const QString &text ) -{ - Q_D( TextAnnotation ); - d->inplaceText = text; -} - -QPointF TextAnnotation::calloutPoint( int id ) const -{ - if ( id < 0 || id >= 3 ) - return QPointF(); - - Q_D( const TextAnnotation ); - return d->inplaceCallout[id]; -} - -void TextAnnotation::setCalloutPoint( int id, const QPointF &point ) -{ - if ( id < 0 || id >= 3 ) - return; - - Q_D( TextAnnotation ); - d->inplaceCallout[id] = point; -} - -TextAnnotation::InplaceIntent TextAnnotation::inplaceIntent() const -{ - Q_D( const TextAnnotation ); - return d->inplaceIntent; -} - -void TextAnnotation::setInplaceIntent( TextAnnotation::InplaceIntent intent ) -{ - Q_D( TextAnnotation ); - d->inplaceIntent = intent; -} - - -/** LineAnnotation [Annotation] */ -class LineAnnotationPrivate : public AnnotationPrivate -{ - public: - LineAnnotationPrivate(); - - // data fields (note uses border for rendering style) - QLinkedList<QPointF> linePoints; - LineAnnotation::TermStyle lineStartStyle; - LineAnnotation::TermStyle lineEndStyle; - bool lineClosed : 1; // (if true draw close shape) - bool lineShowCaption : 1; - QColor lineInnerColor; - double lineLeadingFwdPt; - double lineLeadingBackPt; - LineAnnotation::LineIntent lineIntent; -}; - -LineAnnotationPrivate::LineAnnotationPrivate() - : AnnotationPrivate(), lineStartStyle( LineAnnotation::None ), - lineEndStyle( LineAnnotation::None ), lineClosed( false ), - lineShowCaption( false ), lineLeadingFwdPt( 0 ), lineLeadingBackPt( 0 ), - lineIntent( LineAnnotation::Unknown ) -{ -} - -LineAnnotation::LineAnnotation() - : Annotation( *new LineAnnotationPrivate() ) -{} - -LineAnnotation::LineAnnotation( const QDomNode & node ) - : Annotation( *new LineAnnotationPrivate(), node ) -{ - Q_D( LineAnnotation ); - - // loop through the whole children looking for a 'line' element - QDomNode subNode = node.firstChild(); - while( subNode.isElement() ) - { - QDomElement e = subNode.toElement(); - subNode = subNode.nextSibling(); - if ( e.tagName() != "line" ) - continue; - - // parse the attributes - if ( e.hasAttribute( "startStyle" ) ) - d->lineStartStyle = (LineAnnotation::TermStyle)e.attribute( "startStyle" ).toInt(); - if ( e.hasAttribute( "endStyle" ) ) - d->lineEndStyle = (LineAnnotation::TermStyle)e.attribute( "endStyle" ).toInt(); - if ( e.hasAttribute( "closed" ) ) - d->lineClosed = e.attribute( "closed" ).toInt(); - if ( e.hasAttribute( "innerColor" ) ) - d->lineInnerColor = QColor( e.attribute( "innerColor" ) ); - if ( e.hasAttribute( "leadFwd" ) ) - d->lineLeadingFwdPt = e.attribute( "leadFwd" ).toDouble(); - if ( e.hasAttribute( "leadBack" ) ) - d->lineLeadingBackPt = e.attribute( "leadBack" ).toDouble(); - if ( e.hasAttribute( "showCaption" ) ) - d->lineShowCaption = e.attribute( "showCaption" ).toInt(); - if ( e.hasAttribute( "intent" ) ) - d->lineIntent = (LineAnnotation::LineIntent)e.attribute( "intent" ).toInt(); - - // parse all 'point' subnodes - QDomNode pointNode = e.firstChild(); - while ( pointNode.isElement() ) - { - QDomElement pe = pointNode.toElement(); - pointNode = pointNode.nextSibling(); - - if ( pe.tagName() != "point" ) - continue; - - QPointF p(pe.attribute( "x", "0.0" ).toDouble(), pe.attribute( "y", "0.0" ).toDouble()); - d->linePoints.append( p ); - } - - // loading complete - break; - } -} - -LineAnnotation::~LineAnnotation() -{ -} - -void LineAnnotation::store( QDomNode & node, QDomDocument & document ) const -{ - Q_D( const LineAnnotation ); - - // recurse to parent objects storing properties - Annotation::store( node, document ); - - // create [line] element - QDomElement lineElement = document.createElement( "line" ); - node.appendChild( lineElement ); - - // store the attributes - if ( d->lineStartStyle != None ) - lineElement.setAttribute( "startStyle", (int)d->lineStartStyle ); - if ( d->lineEndStyle != None ) - lineElement.setAttribute( "endStyle", (int)d->lineEndStyle ); - if ( d->lineClosed ) - lineElement.setAttribute( "closed", d->lineClosed ); - if ( d->lineInnerColor.isValid() ) - lineElement.setAttribute( "innerColor", d->lineInnerColor.name() ); - if ( d->lineLeadingFwdPt != 0.0 ) - lineElement.setAttribute( "leadFwd", QString::number( d->lineLeadingFwdPt ) ); - if ( d->lineLeadingBackPt != 0.0 ) - lineElement.setAttribute( "leadBack", QString::number( d->lineLeadingBackPt ) ); - if ( d->lineShowCaption ) - lineElement.setAttribute( "showCaption", d->lineShowCaption ); - if ( d->lineIntent != Unknown ) - lineElement.setAttribute( "intent", d->lineIntent ); - - // append the list of points - int points = d->linePoints.count(); - if ( points > 1 ) - { - QLinkedList<QPointF>::const_iterator it = d->linePoints.begin(), end = d->linePoints.end(); - while ( it != end ) - { - const QPointF & p = *it; - QDomElement pElement = document.createElement( "point" ); - lineElement.appendChild( pElement ); - pElement.setAttribute( "x", QString::number( p.x() ) ); - pElement.setAttribute( "y", QString::number( p.y() ) ); - ++it; - } - } -} - -Annotation::SubType LineAnnotation::subType() const -{ - return ALine; -} - -QLinkedList<QPointF> LineAnnotation::linePoints() const -{ - Q_D( const LineAnnotation ); - return d->linePoints; -} - -void LineAnnotation::setLinePoints( const QLinkedList<QPointF> &points ) -{ - Q_D( LineAnnotation ); - d->linePoints = points; -} - -LineAnnotation::TermStyle LineAnnotation::lineStartStyle() const -{ - Q_D( const LineAnnotation ); - return d->lineStartStyle; -} - -void LineAnnotation::setLineStartStyle( LineAnnotation::TermStyle style ) -{ - Q_D( LineAnnotation ); - d->lineStartStyle = style; -} - -LineAnnotation::TermStyle LineAnnotation::lineEndStyle() const -{ - Q_D( const LineAnnotation ); - return d->lineEndStyle; -} - -void LineAnnotation::setLineEndStyle( LineAnnotation::TermStyle style ) -{ - Q_D( LineAnnotation ); - d->lineEndStyle = style; -} - -bool LineAnnotation::isLineClosed() const -{ - Q_D( const LineAnnotation ); - return d->lineClosed; -} - -void LineAnnotation::setLineClosed( bool closed ) -{ - Q_D( LineAnnotation ); - d->lineClosed = closed; -} - -QColor LineAnnotation::lineInnerColor() const -{ - Q_D( const LineAnnotation ); - return d->lineInnerColor; -} - -void LineAnnotation::setLineInnerColor( const QColor &color ) -{ - Q_D( LineAnnotation ); - d->lineInnerColor = color; -} - -double LineAnnotation::lineLeadingForwardPoint() const -{ - Q_D( const LineAnnotation ); - return d->lineLeadingFwdPt; -} - -void LineAnnotation::setLineLeadingForwardPoint( double point ) -{ - Q_D( LineAnnotation ); - d->lineLeadingFwdPt = point; -} - -double LineAnnotation::lineLeadingBackPoint() const -{ - Q_D( const LineAnnotation ); - return d->lineLeadingBackPt; -} - -void LineAnnotation::setLineLeadingBackPoint( double point ) -{ - Q_D( LineAnnotation ); - d->lineLeadingBackPt = point; -} - -bool LineAnnotation::lineShowCaption() const -{ - Q_D( const LineAnnotation ); - return d->lineShowCaption; -} - -void LineAnnotation::setLineShowCaption( bool show ) -{ - Q_D( LineAnnotation ); - d->lineShowCaption = show; -} - -LineAnnotation::LineIntent LineAnnotation::lineIntent() const -{ - Q_D( const LineAnnotation ); - return d->lineIntent; -} - -void LineAnnotation::setLineIntent( LineAnnotation::LineIntent intent ) -{ - Q_D( LineAnnotation ); - d->lineIntent = intent; -} - - -/** GeomAnnotation [Annotation] */ -class GeomAnnotationPrivate : public AnnotationPrivate -{ - public: - GeomAnnotationPrivate(); - - // data fields (note uses border for rendering style) - GeomAnnotation::GeomType geomType; - QColor geomInnerColor; - int geomWidthPt; -}; - -GeomAnnotationPrivate::GeomAnnotationPrivate() - : AnnotationPrivate(), geomType( GeomAnnotation::InscribedSquare ), - geomWidthPt( 18 ) -{ -} - -GeomAnnotation::GeomAnnotation() - : Annotation( *new GeomAnnotationPrivate() ) -{} - -GeomAnnotation::GeomAnnotation( const QDomNode & node ) - : Annotation( *new GeomAnnotationPrivate(), node ) -{ - Q_D( GeomAnnotation ); - - // loop through the whole children looking for a 'geom' element - QDomNode subNode = node.firstChild(); - while( subNode.isElement() ) - { - QDomElement e = subNode.toElement(); - subNode = subNode.nextSibling(); - if ( e.tagName() != "geom" ) - continue; - - // parse the attributes - if ( e.hasAttribute( "type" ) ) - d->geomType = (GeomAnnotation::GeomType)e.attribute( "type" ).toInt(); - if ( e.hasAttribute( "color" ) ) - d->geomInnerColor = QColor( e.attribute( "color" ) ); - if ( e.hasAttribute( "width" ) ) - d->geomWidthPt = e.attribute( "width" ).toInt(); - - // loading complete - break; - } -} - -GeomAnnotation::~GeomAnnotation() -{ -} - -void GeomAnnotation::store( QDomNode & node, QDomDocument & document ) const -{ - Q_D( const GeomAnnotation ); - - // recurse to parent objects storing properties - Annotation::store( node, document ); - - // create [geom] element - QDomElement geomElement = document.createElement( "geom" ); - node.appendChild( geomElement ); - - // append the optional attributes - if ( d->geomType != InscribedSquare ) - geomElement.setAttribute( "type", (int)d->geomType ); - if ( d->geomInnerColor.isValid() ) - geomElement.setAttribute( "color", d->geomInnerColor.name() ); - if ( d->geomWidthPt != 18 ) - geomElement.setAttribute( "width", d->geomWidthPt ); -} - -Annotation::SubType GeomAnnotation::subType() const -{ - return AGeom; -} - -GeomAnnotation::GeomType GeomAnnotation::geomType() const -{ - Q_D( const GeomAnnotation ); - return d->geomType; -} - -void GeomAnnotation::setGeomType( GeomAnnotation::GeomType type ) -{ - Q_D( GeomAnnotation ); - d->geomType = type; -} - -QColor GeomAnnotation::geomInnerColor() const -{ - Q_D( const GeomAnnotation ); - return d->geomInnerColor; -} - -void GeomAnnotation::setGeomInnerColor( const QColor &color ) -{ - Q_D( GeomAnnotation ); - d->geomInnerColor = color; -} - -int GeomAnnotation::geomPointWidth() const -{ - Q_D( const GeomAnnotation ); - return d->geomWidthPt; -} - -void GeomAnnotation::setGeomPointWidth( int width ) -{ - Q_D( GeomAnnotation ); - d->geomWidthPt = width; -} - - - -/** HighlightAnnotation [Annotation] */ -class HighlightAnnotationPrivate : public AnnotationPrivate -{ - public: - HighlightAnnotationPrivate(); - - // data fields - HighlightAnnotation::HighlightType highlightType; - QList< HighlightAnnotation::Quad > highlightQuads; // not empty -}; - -HighlightAnnotationPrivate::HighlightAnnotationPrivate() - : AnnotationPrivate(), highlightType( HighlightAnnotation::Highlight ) -{ -} - -HighlightAnnotation::HighlightAnnotation() - : Annotation( *new HighlightAnnotationPrivate() ) -{} - -HighlightAnnotation::HighlightAnnotation( const QDomNode & node ) - : Annotation( *new HighlightAnnotationPrivate(), node ) -{ - Q_D( HighlightAnnotation ); - - // loop through the whole children looking for a 'hl' element - QDomNode subNode = node.firstChild(); - while( subNode.isElement() ) - { - QDomElement e = subNode.toElement(); - subNode = subNode.nextSibling(); - if ( e.tagName() != "hl" ) - continue; - - // parse the attributes - if ( e.hasAttribute( "type" ) ) - d->highlightType = (HighlightAnnotation::HighlightType)e.attribute( "type" ).toInt(); - - // parse all 'quad' subnodes - QDomNode quadNode = e.firstChild(); - for ( ; quadNode.isElement(); quadNode = quadNode.nextSibling() ) - { - QDomElement qe = quadNode.toElement(); - if ( qe.tagName() != "quad" ) - continue; - - Quad q; - q.points[0].setX(qe.attribute( "ax", "0.0" ).toDouble()); - q.points[0].setY(qe.attribute( "ay", "0.0" ).toDouble()); - q.points[1].setX(qe.attribute( "bx", "0.0" ).toDouble()); - q.points[1].setY(qe.attribute( "by", "0.0" ).toDouble()); - q.points[2].setX(qe.attribute( "cx", "0.0" ).toDouble()); - q.points[2].setY(qe.attribute( "cy", "0.0" ).toDouble()); - q.points[3].setX(qe.attribute( "dx", "0.0" ).toDouble()); - q.points[3].setY(qe.attribute( "dy", "0.0" ).toDouble()); - q.capStart = qe.hasAttribute( "start" ); - q.capEnd = qe.hasAttribute( "end" ); - q.feather = qe.attribute( "feather", "0.1" ).toDouble(); - d->highlightQuads.append( q ); - } - - // loading complete - break; - } -} - -HighlightAnnotation::~HighlightAnnotation() -{ -} - -void HighlightAnnotation::store( QDomNode & node, QDomDocument & document ) const -{ - Q_D( const HighlightAnnotation ); - - // recurse to parent objects storing properties - Annotation::store( node, document ); - - // create [hl] element - QDomElement hlElement = document.createElement( "hl" ); - node.appendChild( hlElement ); - - // append the optional attributes - if ( d->highlightType != Highlight ) - hlElement.setAttribute( "type", (int)d->highlightType ); - if ( d->highlightQuads.count() < 1 ) - return; - // append highlight quads, all children describe quads - QList< HighlightAnnotation::Quad >::const_iterator it = d->highlightQuads.begin(), end = d->highlightQuads.end(); - for ( ; it != end; ++it ) - { - QDomElement quadElement = document.createElement( "quad" ); - hlElement.appendChild( quadElement ); - const Quad & q = *it; - quadElement.setAttribute( "ax", QString::number( q.points[0].x() ) ); - quadElement.setAttribute( "ay", QString::number( q.points[0].y() ) ); - quadElement.setAttribute( "bx", QString::number( q.points[1].x() ) ); - quadElement.setAttribute( "by", QString::number( q.points[1].y() ) ); - quadElement.setAttribute( "cx", QString::number( q.points[2].x() ) ); - quadElement.setAttribute( "cy", QString::number( q.points[2].y() ) ); - quadElement.setAttribute( "dx", QString::number( q.points[3].x() ) ); - quadElement.setAttribute( "dy", QString::number( q.points[3].y() ) ); - if ( q.capStart ) - quadElement.setAttribute( "start", 1 ); - if ( q.capEnd ) - quadElement.setAttribute( "end", 1 ); - quadElement.setAttribute( "feather", QString::number( q.feather ) ); - } -} - -Annotation::SubType HighlightAnnotation::subType() const -{ - return AHighlight; -} - -HighlightAnnotation::HighlightType HighlightAnnotation::highlightType() const -{ - Q_D( const HighlightAnnotation ); - return d->highlightType; -} - -void HighlightAnnotation::setHighlightType( HighlightAnnotation::HighlightType type ) -{ - Q_D( HighlightAnnotation ); - d->highlightType = type; -} - -QList< HighlightAnnotation::Quad > HighlightAnnotation::highlightQuads() const -{ - Q_D( const HighlightAnnotation ); - return d->highlightQuads; -} - -void HighlightAnnotation::setHighlightQuads( const QList< HighlightAnnotation::Quad > &quads ) -{ - Q_D( HighlightAnnotation ); - d->highlightQuads = quads; -} - - -/** StampAnnotation [Annotation] */ -class StampAnnotationPrivate : public AnnotationPrivate -{ - public: - StampAnnotationPrivate(); - - // data fields - QString stampIconName; -}; - -StampAnnotationPrivate::StampAnnotationPrivate() - : AnnotationPrivate(), stampIconName( "Draft" ) -{ -} - -StampAnnotation::StampAnnotation() - : Annotation( *new StampAnnotationPrivate() ) -{} - -StampAnnotation::StampAnnotation( const QDomNode & node ) - : Annotation( *new StampAnnotationPrivate(), node ) -{ - Q_D( StampAnnotation ); - - // loop through the whole children looking for a 'stamp' element - QDomNode subNode = node.firstChild(); - while( subNode.isElement() ) - { - QDomElement e = subNode.toElement(); - subNode = subNode.nextSibling(); - if ( e.tagName() != "stamp" ) - continue; - - // parse the attributes - if ( e.hasAttribute( "icon" ) ) - d->stampIconName = e.attribute( "icon" ); - - // loading complete - break; - } -} - -StampAnnotation::~StampAnnotation() -{ -} - -void StampAnnotation::store( QDomNode & node, QDomDocument & document ) const -{ - Q_D( const StampAnnotation ); - - // recurse to parent objects storing properties - Annotation::store( node, document ); - - // create [stamp] element - QDomElement stampElement = document.createElement( "stamp" ); - node.appendChild( stampElement ); - - // append the optional attributes - if ( d->stampIconName != "Draft" ) - stampElement.setAttribute( "icon", d->stampIconName ); -} - -Annotation::SubType StampAnnotation::subType() const -{ - return AStamp; -} - -QString StampAnnotation::stampIconName() const -{ - Q_D( const StampAnnotation ); - return d->stampIconName; -} - -void StampAnnotation::setStampIconName( const QString &name ) -{ - Q_D( StampAnnotation ); - d->stampIconName = name; -} - -/** InkAnnotation [Annotation] */ -class InkAnnotationPrivate : public AnnotationPrivate -{ - public: - InkAnnotationPrivate(); - - // data fields - QList< QLinkedList<QPointF> > inkPaths; -}; - -InkAnnotationPrivate::InkAnnotationPrivate() - : AnnotationPrivate() -{ -} - -InkAnnotation::InkAnnotation() - : Annotation( *new InkAnnotationPrivate() ) -{} - -InkAnnotation::InkAnnotation( const QDomNode & node ) - : Annotation( *new InkAnnotationPrivate(), node ) -{ - Q_D( InkAnnotation ); - - // loop through the whole children looking for a 'ink' element - QDomNode subNode = node.firstChild(); - while( subNode.isElement() ) - { - QDomElement e = subNode.toElement(); - subNode = subNode.nextSibling(); - if ( e.tagName() != "ink" ) - continue; - - // parse the 'path' subnodes - QDomNode pathNode = e.firstChild(); - while ( pathNode.isElement() ) - { - QDomElement pathElement = pathNode.toElement(); - pathNode = pathNode.nextSibling(); - - if ( pathElement.tagName() != "path" ) - continue; - - // build each path parsing 'point' subnodes - QLinkedList<QPointF> path; - QDomNode pointNode = pathElement.firstChild(); - while ( pointNode.isElement() ) - { - QDomElement pointElement = pointNode.toElement(); - pointNode = pointNode.nextSibling(); - - if ( pointElement.tagName() != "point" ) - continue; - - QPointF p(pointElement.attribute( "x", "0.0" ).toDouble(), pointElement.attribute( "y", "0.0" ).toDouble()); - path.append( p ); - } - - // add the path to the path list if it contains at least 2 nodes - if ( path.count() >= 2 ) - d->inkPaths.append( path ); - } - - // loading complete - break; - } -} - -InkAnnotation::~InkAnnotation() -{ -} - -void InkAnnotation::store( QDomNode & node, QDomDocument & document ) const -{ - Q_D( const InkAnnotation ); - - // recurse to parent objects storing properties - Annotation::store( node, document ); - - // create [ink] element - QDomElement inkElement = document.createElement( "ink" ); - node.appendChild( inkElement ); - - // append the optional attributes - if ( d->inkPaths.count() < 1 ) - return; - QList< QLinkedList<QPointF> >::const_iterator pIt = d->inkPaths.begin(), pEnd = d->inkPaths.end(); - for ( ; pIt != pEnd; ++pIt ) - { - QDomElement pathElement = document.createElement( "path" ); - inkElement.appendChild( pathElement ); - const QLinkedList<QPointF> & path = *pIt; - QLinkedList<QPointF>::const_iterator iIt = path.begin(), iEnd = path.end(); - for ( ; iIt != iEnd; ++iIt ) - { - const QPointF & point = *iIt; - QDomElement pointElement = document.createElement( "point" ); - pathElement.appendChild( pointElement ); - pointElement.setAttribute( "x", QString::number( point.x() ) ); - pointElement.setAttribute( "y", QString::number( point.y() ) ); - } - } -} - -Annotation::SubType InkAnnotation::subType() const -{ - return AInk; -} - -QList< QLinkedList<QPointF> > InkAnnotation::inkPaths() const -{ - Q_D( const InkAnnotation ); - return d->inkPaths; -} - -void InkAnnotation::setInkPaths( const QList< QLinkedList<QPointF> > &paths ) -{ - Q_D( InkAnnotation ); - d->inkPaths = paths; -} - - -/** LinkAnnotation [Annotation] */ -class LinkAnnotationPrivate : public AnnotationPrivate -{ - public: - LinkAnnotationPrivate(); - ~LinkAnnotationPrivate(); - - // data fields - Link * linkDestination; - LinkAnnotation::HighlightMode linkHLMode; - QPointF linkRegion[4]; -}; - -LinkAnnotationPrivate::LinkAnnotationPrivate() - : AnnotationPrivate(), linkDestination( 0 ), linkHLMode( LinkAnnotation::Invert ) -{ -} - -LinkAnnotationPrivate::~LinkAnnotationPrivate() -{ - delete linkDestination; -} - -LinkAnnotation::LinkAnnotation() - : Annotation( *new LinkAnnotationPrivate() ) -{} - -LinkAnnotation::LinkAnnotation( const QDomNode & node ) - : Annotation( *new LinkAnnotationPrivate(), node ) -{ - Q_D( LinkAnnotation ); - - // loop through the whole children looking for a 'link' element - QDomNode subNode = node.firstChild(); - while( subNode.isElement() ) - { - QDomElement e = subNode.toElement(); - subNode = subNode.nextSibling(); - if ( e.tagName() != "link" ) - continue; - - // parse the attributes - if ( e.hasAttribute( "hlmode" ) ) - d->linkHLMode = (LinkAnnotation::HighlightMode)e.attribute( "hlmode" ).toInt(); - - // parse all 'quad' subnodes - QDomNode quadNode = e.firstChild(); - for ( ; quadNode.isElement(); quadNode = quadNode.nextSibling() ) - { - QDomElement qe = quadNode.toElement(); - if ( qe.tagName() == "quad" ) - { - d->linkRegion[0].setX(qe.attribute( "ax", "0.0" ).toDouble()); - d->linkRegion[0].setY(qe.attribute( "ay", "0.0" ).toDouble()); - d->linkRegion[1].setX(qe.attribute( "bx", "0.0" ).toDouble()); - d->linkRegion[1].setY(qe.attribute( "by", "0.0" ).toDouble()); - d->linkRegion[2].setX(qe.attribute( "cx", "0.0" ).toDouble()); - d->linkRegion[2].setY(qe.attribute( "cy", "0.0" ).toDouble()); - d->linkRegion[3].setX(qe.attribute( "dx", "0.0" ).toDouble()); - d->linkRegion[3].setY(qe.attribute( "dy", "0.0" ).toDouble()); - } - else if ( qe.tagName() == "link" ) - { - QString type = qe.attribute( "type" ); - if ( type == "GoTo" ) - { - Poppler::LinkGoto * go = new Poppler::LinkGoto( QRect(), qe.attribute( "filename" ), LinkDestination( qe.attribute( "destination" ) ) ); - d->linkDestination = go; - } - else if ( type == "Exec" ) - { - Poppler::LinkExecute * exec = new Poppler::LinkExecute( QRect(), qe.attribute( "filename" ), qe.attribute( "parameters" ) ); - d->linkDestination = exec; - } - else if ( type == "Browse" ) - { - Poppler::LinkBrowse * browse = new Poppler::LinkBrowse( QRect(), qe.attribute( "url" ) ); - d->linkDestination = browse; - } - else if ( type == "Action" ) - { - Poppler::LinkAction::ActionType act; - QString actString = qe.attribute( "action" ); - bool found = true; - if ( actString == "PageFirst" ) - act = Poppler::LinkAction::PageFirst; - else if ( actString == "PagePrev" ) - act = Poppler::LinkAction::PagePrev; - else if ( actString == "PageNext" ) - act = Poppler::LinkAction::PageNext; - else if ( actString == "PageLast" ) - act = Poppler::LinkAction::PageLast; - else if ( actString == "HistoryBack" ) - act = Poppler::LinkAction::HistoryBack; - else if ( actString == "HistoryForward" ) - act = Poppler::LinkAction::HistoryForward; - else if ( actString == "Quit" ) - act = Poppler::LinkAction::Quit; - else if ( actString == "Presentation" ) - act = Poppler::LinkAction::Presentation; - else if ( actString == "EndPresentation" ) - act = Poppler::LinkAction::EndPresentation; - else if ( actString == "Find" ) - act = Poppler::LinkAction::Find; - else if ( actString == "GoToPage" ) - act = Poppler::LinkAction::GoToPage; - else if ( actString == "Close" ) - act = Poppler::LinkAction::Close; - else - found = false; - if (found) - { - Poppler::LinkAction * action = new Poppler::LinkAction( QRect(), act ); - d->linkDestination = action; - } - } -#if 0 - else if ( type == "Movie" ) - { - Poppler::LinkMovie * movie = new Poppler::LinkMovie( QRect() ); - d->linkDestination = movie; - } -#endif - } - } - - // loading complete - break; - } -} - -LinkAnnotation::~LinkAnnotation() -{ -} - -void LinkAnnotation::store( QDomNode & node, QDomDocument & document ) const -{ - Q_D( const LinkAnnotation ); - - // recurse to parent objects storing properties - Annotation::store( node, document ); - - // create [hl] element - QDomElement linkElement = document.createElement( "link" ); - node.appendChild( linkElement ); - - // append the optional attributes - if ( d->linkHLMode != Invert ) - linkElement.setAttribute( "hlmode", (int)d->linkHLMode ); - - // saving region - QDomElement quadElement = document.createElement( "quad" ); - linkElement.appendChild( quadElement ); - quadElement.setAttribute( "ax", QString::number( d->linkRegion[0].x() ) ); - quadElement.setAttribute( "ay", QString::number( d->linkRegion[0].y() ) ); - quadElement.setAttribute( "bx", QString::number( d->linkRegion[1].x() ) ); - quadElement.setAttribute( "by", QString::number( d->linkRegion[1].y() ) ); - quadElement.setAttribute( "cx", QString::number( d->linkRegion[2].x() ) ); - quadElement.setAttribute( "cy", QString::number( d->linkRegion[2].y() ) ); - quadElement.setAttribute( "dx", QString::number( d->linkRegion[3].x() ) ); - quadElement.setAttribute( "dy", QString::number( d->linkRegion[3].y() ) ); - - // saving link - QDomElement hyperlinkElement = document.createElement( "link" ); - linkElement.appendChild( hyperlinkElement ); - if ( d->linkDestination ) - { - switch( d->linkDestination->linkType() ) - { - case Poppler::Link::Goto: - { - Poppler::LinkGoto * go = static_cast< Poppler::LinkGoto * >( d->linkDestination ); - hyperlinkElement.setAttribute( "type", "GoTo" ); - hyperlinkElement.setAttribute( "filename", go->fileName() ); - hyperlinkElement.setAttribute( "destionation", go->destination().toString() ); - break; - } - case Poppler::Link::Execute: - { - Poppler::LinkExecute * exec = static_cast< Poppler::LinkExecute * >( d->linkDestination ); - hyperlinkElement.setAttribute( "type", "Exec" ); - hyperlinkElement.setAttribute( "filename", exec->fileName() ); - hyperlinkElement.setAttribute( "parameters", exec->parameters() ); - break; - } - case Poppler::Link::Browse: - { - Poppler::LinkBrowse * browse = static_cast< Poppler::LinkBrowse * >( d->linkDestination ); - hyperlinkElement.setAttribute( "type", "Browse" ); - hyperlinkElement.setAttribute( "url", browse->url() ); - break; - } - case Poppler::Link::Action: - { - Poppler::LinkAction * action = static_cast< Poppler::LinkAction * >( d->linkDestination ); - hyperlinkElement.setAttribute( "type", "Action" ); - switch ( action->actionType() ) - { - case Poppler::LinkAction::PageFirst: - hyperlinkElement.setAttribute( "action", "PageFirst" ); - break; - case Poppler::LinkAction::PagePrev: - hyperlinkElement.setAttribute( "action", "PagePrev" ); - break; - case Poppler::LinkAction::PageNext: - hyperlinkElement.setAttribute( "action", "PageNext" ); - break; - case Poppler::LinkAction::PageLast: - hyperlinkElement.setAttribute( "action", "PageLast" ); - break; - case Poppler::LinkAction::HistoryBack: - hyperlinkElement.setAttribute( "action", "HistoryBack" ); - break; - case Poppler::LinkAction::HistoryForward: - hyperlinkElement.setAttribute( "action", "HistoryForward" ); - break; - case Poppler::LinkAction::Quit: - hyperlinkElement.setAttribute( "action", "Quit" ); - break; - case Poppler::LinkAction::Presentation: - hyperlinkElement.setAttribute( "action", "Presentation" ); - break; - case Poppler::LinkAction::EndPresentation: - hyperlinkElement.setAttribute( "action", "EndPresentation" ); - break; - case Poppler::LinkAction::Find: - hyperlinkElement.setAttribute( "action", "Find" ); - break; - case Poppler::LinkAction::GoToPage: - hyperlinkElement.setAttribute( "action", "GoToPage" ); - break; - case Poppler::LinkAction::Close: - hyperlinkElement.setAttribute( "action", "Close" ); - break; - } - break; - } - case Poppler::Link::Movie: - { - hyperlinkElement.setAttribute( "type", "Movie" ); - break; - } - case Poppler::Link::Sound: - { - // FIXME: implement me - break; - } - case Poppler::Link::None: - break; - } - } -} - -Annotation::SubType LinkAnnotation::subType() const -{ - return ALink; -} - -Link* LinkAnnotation::linkDestionation() const -{ - Q_D( const LinkAnnotation ); - return d->linkDestination; -} - -void LinkAnnotation::setLinkDestination( Link *link ) -{ - Q_D( LinkAnnotation ); - delete d->linkDestination; - d->linkDestination = link; -} - -LinkAnnotation::HighlightMode LinkAnnotation::linkHighlightMode() const -{ - Q_D( const LinkAnnotation ); - return d->linkHLMode; -} - -void LinkAnnotation::setLinkHighlightMode( LinkAnnotation::HighlightMode mode ) -{ - Q_D( LinkAnnotation ); - d->linkHLMode = mode; -} - -QPointF LinkAnnotation::linkRegionPoint( int id ) const -{ - if ( id < 0 || id >= 4 ) - return QPointF(); - - Q_D( const LinkAnnotation ); - return d->linkRegion[id]; -} - -void LinkAnnotation::setLinkRegionPoint( int id, const QPointF &point ) -{ - if ( id < 0 || id >= 4 ) - return; - - Q_D( LinkAnnotation ); - d->linkRegion[id] = point; -} - -/** CaretAnnotation [Annotation] */ -class CaretAnnotationPrivate : public AnnotationPrivate -{ - public: - CaretAnnotationPrivate(); - - // data fields - CaretAnnotation::CaretSymbol symbol; -}; - -static QString caretSymbolToString( CaretAnnotation::CaretSymbol symbol ) -{ - switch ( symbol ) - { - case CaretAnnotation::None: - return QString::fromLatin1( "None" ); - case CaretAnnotation::P: - return QString::fromLatin1( "P" ); - } - return QString(); -} - -static CaretAnnotation::CaretSymbol caretSymbolFromString( const QString &symbol ) -{ - if ( symbol == QLatin1String( "None" ) ) - return CaretAnnotation::None; - else if ( symbol == QLatin1String( "P" ) ) - return CaretAnnotation::P; - return CaretAnnotation::None; -} - -CaretAnnotationPrivate::CaretAnnotationPrivate() - : AnnotationPrivate(), symbol( CaretAnnotation::None ) -{ -} - -CaretAnnotation::CaretAnnotation() - : Annotation( *new CaretAnnotationPrivate() ) -{ -} - -CaretAnnotation::CaretAnnotation( const QDomNode & node ) - : Annotation( *new CaretAnnotationPrivate(), node ) -{ - Q_D( CaretAnnotation ); - - // loop through the whole children looking for a 'caret' element - QDomNode subNode = node.firstChild(); - while( subNode.isElement() ) - { - QDomElement e = subNode.toElement(); - subNode = subNode.nextSibling(); - if ( e.tagName() != "caret" ) - continue; - - // parse the attributes - if ( e.hasAttribute( "symbol" ) ) - d->symbol = caretSymbolFromString( e.attribute( "symbol" ) ); - - // loading complete - break; - } -} - -CaretAnnotation::~CaretAnnotation() -{ -} - -void CaretAnnotation::store( QDomNode & node, QDomDocument & document ) const -{ - Q_D( const CaretAnnotation ); - - // recurse to parent objects storing properties - Annotation::store( node, document ); - - // create [caret] element - QDomElement caretElement = document.createElement( "caret" ); - node.appendChild( caretElement ); - - // append the optional attributes - if ( d->symbol != CaretAnnotation::None ) - caretElement.setAttribute( "symbol", caretSymbolToString( d->symbol ) ); -} - -Annotation::SubType CaretAnnotation::subType() const -{ - return ACaret; -} - -CaretAnnotation::CaretSymbol CaretAnnotation::caretSymbol() const -{ - Q_D( const CaretAnnotation ); - return d->symbol; -} - -void CaretAnnotation::setCaretSymbol( CaretAnnotation::CaretSymbol symbol ) -{ - Q_D( CaretAnnotation ); - d->symbol = symbol; -} - -/** FileAttachmentAnnotation [Annotation] */ -class FileAttachmentAnnotationPrivate : public AnnotationPrivate -{ - public: - FileAttachmentAnnotationPrivate(); - ~FileAttachmentAnnotationPrivate(); - - // data fields - QString icon; - EmbeddedFile *embfile; -}; - -FileAttachmentAnnotationPrivate::FileAttachmentAnnotationPrivate() - : AnnotationPrivate(), icon( "PushPin" ), embfile( 0 ) -{ -} - -FileAttachmentAnnotationPrivate::~FileAttachmentAnnotationPrivate() -{ - delete embfile; -} - -FileAttachmentAnnotation::FileAttachmentAnnotation() - : Annotation( *new FileAttachmentAnnotationPrivate() ) -{ -} - -FileAttachmentAnnotation::FileAttachmentAnnotation( const QDomNode & node ) - : Annotation( *new FileAttachmentAnnotationPrivate(), node ) -{ - // loop through the whole children looking for a 'fileattachment' element - QDomNode subNode = node.firstChild(); - while( subNode.isElement() ) - { - QDomElement e = subNode.toElement(); - subNode = subNode.nextSibling(); - if ( e.tagName() != "fileattachment" ) - continue; - - // loading complete - break; - } -} - -FileAttachmentAnnotation::~FileAttachmentAnnotation() -{ -} - -void FileAttachmentAnnotation::store( QDomNode & node, QDomDocument & document ) const -{ - // recurse to parent objects storing properties - Annotation::store( node, document ); - - // create [fileattachment] element - QDomElement fileAttachmentElement = document.createElement( "fileattachment" ); - node.appendChild( fileAttachmentElement ); -} - -Annotation::SubType FileAttachmentAnnotation::subType() const -{ - return AFileAttachment; -} - -QString FileAttachmentAnnotation::fileIconName() const -{ - Q_D( const FileAttachmentAnnotation ); - return d->icon; -} - -void FileAttachmentAnnotation::setFileIconName( const QString &icon ) -{ - Q_D( FileAttachmentAnnotation ); - d->icon = icon; -} - -EmbeddedFile* FileAttachmentAnnotation::embeddedFile() const -{ - Q_D( const FileAttachmentAnnotation ); - return d->embfile; -} - -void FileAttachmentAnnotation::setEmbeddedFile( EmbeddedFile *ef ) -{ - Q_D( FileAttachmentAnnotation ); - d->embfile = ef; -} - -/** SoundAnnotation [Annotation] */ -class SoundAnnotationPrivate : public AnnotationPrivate -{ - public: - SoundAnnotationPrivate(); - ~SoundAnnotationPrivate(); - - // data fields - QString icon; - SoundObject *sound; -}; - -SoundAnnotationPrivate::SoundAnnotationPrivate() - : AnnotationPrivate(), icon( "Speaker" ), sound( 0 ) -{ -} - -SoundAnnotationPrivate::~SoundAnnotationPrivate() -{ - delete sound; -} - -SoundAnnotation::SoundAnnotation() - : Annotation( *new SoundAnnotationPrivate() ) -{ -} - -SoundAnnotation::SoundAnnotation( const QDomNode & node ) - : Annotation( *new SoundAnnotationPrivate(), node ) -{ - // loop through the whole children looking for a 'sound' element - QDomNode subNode = node.firstChild(); - while( subNode.isElement() ) - { - QDomElement e = subNode.toElement(); - subNode = subNode.nextSibling(); - if ( e.tagName() != "sound" ) - continue; - - // loading complete - break; - } -} - -SoundAnnotation::~SoundAnnotation() -{ -} - -void SoundAnnotation::store( QDomNode & node, QDomDocument & document ) const -{ - // recurse to parent objects storing properties - Annotation::store( node, document ); - - // create [sound] element - QDomElement soundElement = document.createElement( "sound" ); - node.appendChild( soundElement ); -} - -Annotation::SubType SoundAnnotation::subType() const -{ - return ASound; -} - -QString SoundAnnotation::soundIconName() const -{ - Q_D( const SoundAnnotation ); - return d->icon; -} - -void SoundAnnotation::setSoundIconName( const QString &icon ) -{ - Q_D( SoundAnnotation ); - d->icon = icon; -} - -SoundObject* SoundAnnotation::sound() const -{ - Q_D( const SoundAnnotation ); - return d->sound; -} - -void SoundAnnotation::setSound( SoundObject *s ) -{ - Q_D( SoundAnnotation ); - d->sound = s; -} - -/** MovieAnnotation [Annotation] */ -class MovieAnnotationPrivate : public AnnotationPrivate -{ - public: - MovieAnnotationPrivate(); - ~MovieAnnotationPrivate(); - - // data fields - MovieObject *movie; - QString title; -}; - -MovieAnnotationPrivate::MovieAnnotationPrivate() - : AnnotationPrivate(), movie( 0 ) -{ -} - -MovieAnnotationPrivate::~MovieAnnotationPrivate() -{ - delete movie; -} - -MovieAnnotation::MovieAnnotation() - : Annotation( *new MovieAnnotationPrivate() ) -{ -} - -MovieAnnotation::MovieAnnotation( const QDomNode & node ) - : Annotation( *new MovieAnnotationPrivate(), node ) -{ - // loop through the whole children looking for a 'movie' element - QDomNode subNode = node.firstChild(); - while( subNode.isElement() ) - { - QDomElement e = subNode.toElement(); - subNode = subNode.nextSibling(); - if ( e.tagName() != "movie" ) - continue; - - // loading complete - break; - } -} - -MovieAnnotation::~MovieAnnotation() -{ -} - -void MovieAnnotation::store( QDomNode & node, QDomDocument & document ) const -{ - // recurse to parent objects storing properties - Annotation::store( node, document ); - - // create [movie] element - QDomElement movieElement = document.createElement( "movie" ); - node.appendChild( movieElement ); -} - -Annotation::SubType MovieAnnotation::subType() const -{ - return AMovie; -} - -MovieObject* MovieAnnotation::movie() const -{ - Q_D( const MovieAnnotation ); - return d->movie; -} - -void MovieAnnotation::setMovie( MovieObject *movie ) -{ - Q_D( MovieAnnotation ); - d->movie = movie; -} - -QString MovieAnnotation::movieTitle() const -{ - Q_D( const MovieAnnotation ); - return d->title; -} - -void MovieAnnotation::setMovieTitle( const QString &title ) -{ - Q_D( MovieAnnotation ); - d->title = title; -} - -//BEGIN utility annotation functions -QColor convertAnnotColor( AnnotColor *color ) -{ - if ( !color ) - return QColor(); - - QColor newcolor; - double *color_data = color->getValues(); - switch ( color->getSpace() ) - { - case AnnotColor::colorTransparent: // = 0, - newcolor = Qt::transparent; - break; - case AnnotColor::colorGray: // = 1, - newcolor.setRgbF( color_data[0], color_data[0], color_data[0] ); - break; - case AnnotColor::colorRGB: // = 3, - newcolor.setRgbF( color_data[0], color_data[1], color_data[2] ); - break; - case AnnotColor::colorCMYK: // = 4 - newcolor.setCmykF( color_data[0], color_data[1], color_data[2], color_data[3] ); - break; - } - return newcolor; -} -//END utility annotation functions - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-annotation.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-annotation.h deleted file mode 100644 index ab54c6f44ed..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-annotation.h +++ /dev/null @@ -1,685 +0,0 @@ -/* poppler-annotation.h: qt interface to poppler - * Copyright (C) 2006-2008, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2006, 2008 Pino Toscano <pino@kde.org> - * Copyright (C) 2007, Brad Hards <bradh@frogmouth.net> - * Adapting code from - * Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef _POPPLER_ANNOTATION_H_ -#define _POPPLER_ANNOTATION_H_ - -#include <QtCore/QDateTime> -#include <QtCore/QLinkedList> -#include <QtCore/QList> -#include <QtCore/QPointF> -#include <QtCore/QRectF> -#include <QtGui/QColor> -#include <QtGui/QFont> -#include <QtXml/QDomDocument> -#include "poppler-export.h" - -namespace Poppler { - -class Annotation; -class AnnotationPrivate; -class TextAnnotationPrivate; -class LineAnnotationPrivate; -class GeomAnnotationPrivate; -class HighlightAnnotationPrivate; -class StampAnnotationPrivate; -class InkAnnotationPrivate; -class LinkAnnotationPrivate; -class CaretAnnotationPrivate; -class FileAttachmentAnnotationPrivate; -class SoundAnnotationPrivate; -class MovieAnnotationPrivate; -class EmbeddedFile; -class Link; -class SoundObject; -class MovieObject; - -/** - * \short Helper class for (recursive) Annotation retrieval/storage. - * - */ -class POPPLER_QT4_EXPORT AnnotationUtils -{ - public: - /** - * Restore an Annotation (with revisions if needed) from the DOM - * element \p annElement. - * \returns a pointer to the complete Annotation or 0 if element is - * invalid. - */ - static Annotation * createAnnotation( const QDomElement & annElement ); - - /** - * Save the Annotation \p ann as a child of \p annElement taking - * care of saving all revisions if \p ann has any. - */ - static void storeAnnotation( const Annotation * ann, - QDomElement & annElement, QDomDocument & document ); - - /** - * Returns an element called \p name from the direct children of - * \p parentNode or a null element if not found. - */ - static QDomElement findChildElement( const QDomNode & parentNode, - const QString & name ); -}; - - -/** - * \short Annotation class holding properties shared by all annotations. - * - * An Annotation is an object (text note, highlight, sound, popup window, ..) - * contained by a Page in the document. - */ -class POPPLER_QT4_EXPORT Annotation -{ - public: - // enum definitions - // WARNING!!! oKular uses that very same values so if you change them notify the author! - enum SubType { AText = 1, ALine = 2, AGeom = 3, AHighlight = 4, AStamp = 5, - AInk = 6, ALink = 7, ACaret = 8, AFileAttachment = 9, ASound = 10, - AMovie = 11, A_BASE = 0 }; - enum Flag { Hidden = 1, FixedSize = 2, FixedRotation = 4, DenyPrint = 8, - DenyWrite = 16, DenyDelete = 32, ToggleHidingOnMouse = 64, External = 128 }; - enum LineStyle { Solid = 1, Dashed = 2, Beveled = 4, Inset = 8, Underline = 16 }; - enum LineEffect { NoEffect = 1, Cloudy = 2}; - enum RevScope { Reply = 1, Group = 2, Delete = 4 }; - enum RevType { None = 1, Marked = 2, Unmarked = 4, Accepted = 8, Rejected = 16, Cancelled = 32, Completed = 64 }; - - /** - * Returns the author of the annotation. - */ - QString author() const; - /** - * Sets a new author for the annotation. - */ - void setAuthor( const QString &author ); - - QString contents() const; - void setContents( const QString &contents ); - - /** - * Returns the unique name (ID) of the annotation. - */ - QString uniqueName() const; - /** - * Sets a new unique name for the annotation. - * - * \note no check of the new uniqueName is done - */ - void setUniqueName( const QString &uniqueName ); - - QDateTime modificationDate() const; - void setModificationDate( const QDateTime &date ); - - QDateTime creationDate() const; - void setCreationDate( const QDateTime &date ); - - int flags() const; - void setFlags( int flags ); - - QRectF boundary() const; - void setBoundary( const QRectF &boundary ); - - struct Style - { - // appearance properties - QColor color; // black - double opacity; // 1.0 - // pen properties - double width; // 1.0 - LineStyle style; // LineStyle::Solid - double xCorners; // 0.0 - double yCorners; // 0.0 - int marks; // 3 - int spaces; // 0 - // pen effects - LineEffect effect; // LineEffect::NoEffect - double effectIntensity; // 1.0 - // default initializer - Style(); - } style; - - /* properties: popup window */ - struct Window - { - // window state (Hidden, FixedRotation, Deny* flags allowed) - int flags; // -1 (never initialized) -> 0 (if inited and shown) - // geometric properties - QPointF topLeft; // no default, inited to boundary.topLeft - int width; // no default - int height; // no default - // window contens/override properties - QString title; // '' text in the titlebar (overrides author) - QString summary; // '' short description (displayed if not empty) - QString text; // '' text for the window (overrides annot->contents) - // default initializer - Window(); - } window; - - /* properties: versioning */ - struct Revision - { - // child revision - Annotation * annotation; // not null - // scope and type of revision - RevScope scope; // Reply - RevType type; // None - // default initializer - Revision(); - }; - - QLinkedList< Revision >& revisions(); - const QLinkedList< Revision >& revisions() const; - - // methods: query annotation's type for runtime type identification - /** - * The type of the annotation. - */ - virtual SubType subType() const = 0; - - /** - * Save this annotation as a child of \p parentNode. - */ - virtual void store( QDomNode & parentNode, QDomDocument & document ) const; - - /** - * Destructor. - */ - virtual ~Annotation(); - - protected: - /// \cond PRIVATE - Annotation( AnnotationPrivate &dd ); - Annotation( AnnotationPrivate &dd, const QDomNode &description ); - Q_DECLARE_PRIVATE( Annotation ) - AnnotationPrivate *d_ptr; - /// \endcond - - private: - Q_DISABLE_COPY( Annotation ) -}; - -/** - * \short Annotation containing text. - * - * A text annotation is an object showing some text directly on the page, or - * linked to the contents using an icon shown on a page. - */ -class POPPLER_QT4_EXPORT TextAnnotation : public Annotation -{ - public: - TextAnnotation(); - TextAnnotation( const QDomNode &node ); - virtual ~TextAnnotation(); - virtual void store( QDomNode &parentNode, QDomDocument &document ) const; - virtual SubType subType() const; - - // local enums - enum TextType { Linked, InPlace }; - enum InplaceIntent { Unknown, Callout, TypeWriter }; - - /** - The type of text annotation represented by this object - */ - TextType textType() const; - - /** - Set the type of text annotation represented by this object - */ - void setTextType( TextType type ); - - /** - The name of the icon for this text annotation. - - Standard names for text annotation icons are: - - Comment - - Help - - Insert - - Key - - NewParagraph - - Note (this is the default icon to use) - - Paragraph - */ - QString textIcon() const; - - /** - Set the name of the icon to use for this text annotation. - - \sa textIcon for the list of standard names - */ - void setTextIcon( const QString &icon ); - - QFont textFont() const; - void setTextFont( const QFont &font ); - - int inplaceAlign() const; - void setInplaceAlign( int align ); - - QString inplaceText() const; - void setInplaceText( const QString &text ); - - QPointF calloutPoint( int id ) const; - void setCalloutPoint( int id, const QPointF &point ); - - InplaceIntent inplaceIntent() const; - void setInplaceIntent( InplaceIntent intent ); - - private: - Q_DECLARE_PRIVATE( TextAnnotation ) - Q_DISABLE_COPY( TextAnnotation ) -}; - -/** - * \short Polygon/polyline annotation. - * - * This annotation represents a polygon (or polyline) to be drawn on a page. - */ -class POPPLER_QT4_EXPORT LineAnnotation : public Annotation -{ - public: - LineAnnotation(); - LineAnnotation( const QDomNode &node ); - virtual ~LineAnnotation(); - virtual void store( QDomNode &parentNode, QDomDocument &document ) const; - virtual SubType subType() const; - - // local enums - enum TermStyle { Square, Circle, Diamond, OpenArrow, ClosedArrow, None, - Butt, ROpenArrow, RClosedArrow, Slash }; - enum LineIntent { Unknown, Arrow, Dimension, PolygonCloud }; - - QLinkedList<QPointF> linePoints() const; - void setLinePoints( const QLinkedList<QPointF> &points ); - - TermStyle lineStartStyle() const; - void setLineStartStyle( TermStyle style ); - - TermStyle lineEndStyle() const; - void setLineEndStyle( TermStyle style ); - - bool isLineClosed() const; - void setLineClosed( bool closed ); - - QColor lineInnerColor() const; - void setLineInnerColor( const QColor &color ); - - double lineLeadingForwardPoint() const; - void setLineLeadingForwardPoint( double point ); - - double lineLeadingBackPoint() const; - void setLineLeadingBackPoint( double point ); - - bool lineShowCaption() const; - void setLineShowCaption( bool show ); - - LineIntent lineIntent() const; - void setLineIntent( LineIntent intent ); - - private: - Q_DECLARE_PRIVATE( LineAnnotation ) - Q_DISABLE_COPY( LineAnnotation ) -}; - -/** - * \short Geometric annotation. - * - * The geometric annotation represents a geometric figure, like a rectangle or - * an ellipse. - */ -class POPPLER_QT4_EXPORT GeomAnnotation : public Annotation -{ - public: - GeomAnnotation(); - GeomAnnotation( const QDomNode &node ); - virtual ~GeomAnnotation(); - virtual void store( QDomNode &parentNode, QDomDocument &document ) const; - virtual SubType subType() const; - - // common enums - enum GeomType { InscribedSquare, InscribedCircle }; - - GeomType geomType() const; - void setGeomType( GeomType style ); - - QColor geomInnerColor() const; - void setGeomInnerColor( const QColor &color ); - - int geomPointWidth() const; - void setGeomPointWidth( int width ); - - private: - Q_DECLARE_PRIVATE( GeomAnnotation ) - Q_DISABLE_COPY( GeomAnnotation ) -}; - -/** - * \short Text highlight annotation. - * - * The higlight annotation represents some areas of text being "highlighted". - */ -class POPPLER_QT4_EXPORT HighlightAnnotation : public Annotation -{ - public: - HighlightAnnotation(); - HighlightAnnotation( const QDomNode &node ); - virtual ~HighlightAnnotation(); - virtual void store( QDomNode &parentNode, QDomDocument &document ) const; - virtual SubType subType() const; - - /** - The type of highlight - */ - enum HighlightType { Highlight, ///< highlighter pen style annotation - Squiggly, ///< jagged or squiggly underline - Underline, ///< straight line underline - StrikeOut ///< straight line through-line - }; - - /** - Structure corresponding to a QuadPoints array. This matches a - quadrilateral that describes the area around a word (or set of - words) that are to be highlighted. - */ - struct Quad - { - QPointF points[4]; // 8 valid coords - bool capStart; // false (vtx 1-4) [K] - bool capEnd; // false (vtx 2-3) [K] - double feather; // 0.1 (in range 0..1) [K] - }; - - /** - The type (style) of highlighting to use for this area - or these areas. - */ - HighlightType highlightType() const; - - /** - Set the type of highlighting to use for the given area - or areas. - */ - void setHighlightType( HighlightType type ); - - /** - The list of areas to highlight. - */ - QList< Quad > highlightQuads() const; - - /** - Set the areas to highlight. - */ - void setHighlightQuads( const QList< Quad > &quads ); - - private: - Q_DECLARE_PRIVATE( HighlightAnnotation ) - Q_DISABLE_COPY( HighlightAnnotation ) -}; - -/** - * \short Stamp annotation. - * - * A simple annotation drawing a stamp on a page. - */ -class POPPLER_QT4_EXPORT StampAnnotation : public Annotation -{ - public: - StampAnnotation(); - StampAnnotation( const QDomNode &node ); - virtual ~StampAnnotation(); - virtual void store( QDomNode &parentNode, QDomDocument &document ) const; - virtual SubType subType() const; - - /** - The name of the icon for this stamp annotation. - - Standard names for stamp annotation icons are: - - Approved - - AsIs - - Confidential - - Departmental - - Draft (this is the default icon type) - - Experimental - - Expired - - Final - - ForComment - - ForPublicRelease - - NotApproved - - NotForPublicRelease - - Sold - - TopSecret - */ - QString stampIconName() const; - - /** - Set the icon type for this stamp annotation. - - \sa stampIconName for the list of standard icon names - */ - void setStampIconName( const QString &name ); - - private: - Q_DECLARE_PRIVATE( StampAnnotation ) - Q_DISABLE_COPY( StampAnnotation ) -}; - -/** - * \short Ink Annotation. - * - * Annotation representing an ink path on a page. - */ -class POPPLER_QT4_EXPORT InkAnnotation : public Annotation -{ - public: - InkAnnotation(); - InkAnnotation( const QDomNode &node ); - virtual ~InkAnnotation(); - virtual void store( QDomNode &parentNode, QDomDocument &document ) const; - virtual SubType subType() const; - - QList< QLinkedList<QPointF> > inkPaths() const; - void setInkPaths( const QList< QLinkedList<QPointF> > &paths ); - - private: - Q_DECLARE_PRIVATE( InkAnnotation ) - Q_DISABLE_COPY( InkAnnotation ) -}; - -class POPPLER_QT4_EXPORT LinkAnnotation : public Annotation -{ - public: - LinkAnnotation(); - LinkAnnotation( const QDomNode &node ); - virtual ~LinkAnnotation(); - virtual void store( QDomNode &parentNode, QDomDocument &document ) const; - virtual SubType subType() const; - - // local enums - enum HighlightMode { None, Invert, Outline, Push }; - - Link* linkDestionation() const; - void setLinkDestination( Link *link ); - - HighlightMode linkHighlightMode() const; - void setLinkHighlightMode( HighlightMode mode ); - - QPointF linkRegionPoint( int id ) const; - void setLinkRegionPoint( int id, const QPointF &point ); - - private: - Q_DECLARE_PRIVATE( LinkAnnotation ) - Q_DISABLE_COPY( LinkAnnotation ) -}; - -/** - * \short Caret annotation. - * - * The caret annotation represents a symbol to indicate the presence of text. - */ -class POPPLER_QT4_EXPORT CaretAnnotation : public Annotation -{ - public: - CaretAnnotation(); - CaretAnnotation( const QDomNode &node ); - virtual ~CaretAnnotation(); - virtual void store( QDomNode &parentNode, QDomDocument &document ) const; - virtual SubType subType() const; - - /** - * The symbols for the caret annotation. - */ - enum CaretSymbol { None, P }; - - CaretSymbol caretSymbol() const; - void setCaretSymbol( CaretSymbol symbol ); - - private: - Q_DECLARE_PRIVATE( CaretAnnotation ) - Q_DISABLE_COPY( CaretAnnotation ) -}; - -/** - * \short File attachment annotation. - * - * The file attachment annotation represents a file embedded in the document. - * - * \since 0.10 - */ -class POPPLER_QT4_EXPORT FileAttachmentAnnotation : public Annotation -{ - public: - FileAttachmentAnnotation(); - FileAttachmentAnnotation( const QDomNode &node ); - virtual ~FileAttachmentAnnotation(); - virtual void store( QDomNode &parentNode, QDomDocument &document ) const; - virtual SubType subType() const; - - /** - * Returns the name of the icon of this annotation. - */ - QString fileIconName() const; - /** - * Sets a new name for the icon of this annotation. - */ - void setFileIconName( const QString &icon ); - - /** - * Returns the EmbeddedFile of this annotation. - */ - EmbeddedFile* embeddedFile() const; - /** - * Sets a new EmbeddedFile for this annotation. - * - * \note FileAttachmentAnnotation takes ownership of the object - */ - void setEmbeddedFile( EmbeddedFile *ef ); - - private: - Q_DECLARE_PRIVATE( FileAttachmentAnnotation ) - Q_DISABLE_COPY( FileAttachmentAnnotation ) -}; - -/** - * \short Sound annotation. - * - * The sound annotation represents a sound to be played when activated. - * - * \since 0.10 - */ -class POPPLER_QT4_EXPORT SoundAnnotation : public Annotation -{ - public: - SoundAnnotation(); - SoundAnnotation( const QDomNode &node ); - virtual ~SoundAnnotation(); - virtual void store( QDomNode &parentNode, QDomDocument &document ) const; - virtual SubType subType() const; - - /** - * Returns the name of the icon of this annotation. - */ - QString soundIconName() const; - /** - * Sets a new name for the icon of this annotation. - */ - void setSoundIconName( const QString &icon ); - - /** - * Returns the SoundObject of this annotation. - */ - SoundObject* sound() const; - /** - * Sets a new SoundObject for this annotation. - * - * \note SoundAnnotation takes ownership of the object - */ - void setSound( SoundObject *ef ); - - private: - Q_DECLARE_PRIVATE( SoundAnnotation ) - Q_DISABLE_COPY( SoundAnnotation ) -}; - -/** - * \short Movie annotation. - * - * The movie annotation represents a movie to be played when activated. - * - * \since 0.10 - */ -class POPPLER_QT4_EXPORT MovieAnnotation : public Annotation -{ - public: - MovieAnnotation(); - MovieAnnotation( const QDomNode &node ); - virtual ~MovieAnnotation(); - virtual void store( QDomNode &parentNode, QDomDocument &document ) const; - virtual SubType subType() const; - - /** - * Returns the MovieObject of this annotation. - */ - MovieObject* movie() const; - /** - * Sets a new MovieObject for this annotation. - * - * \note MovieAnnotation takes ownership of the object - */ - void setMovie( MovieObject *movie ); - - /** - * Returns the title of the movie of this annotation. - */ - QString movieTitle() const; - /** - * Sets a new title for the movie of this annotation. - */ - void setMovieTitle( const QString &title ); - - private: - Q_DECLARE_PRIVATE( MovieAnnotation ) - Q_DISABLE_COPY( MovieAnnotation ) -}; - -} - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-base-converter.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-base-converter.cc deleted file mode 100644 index 11ff17cad71..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-base-converter.cc +++ /dev/null @@ -1,105 +0,0 @@ -/* poppler-base-converter.cc: qt interface to poppler - * Copyright (C) 2007, 2009, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-qt4.h" - -#include "poppler-converter-private.h" - -#include <QtCore/QFile> - -namespace Poppler { - -BaseConverterPrivate::BaseConverterPrivate() - : document(0), iodev(0), ownIodev(true) -{ -} - -BaseConverterPrivate::~BaseConverterPrivate() -{ -} - -QIODevice* BaseConverterPrivate::openDevice() -{ - if (!iodev) - { - Q_ASSERT(!outputFileName.isEmpty()); - QFile *f = new QFile(outputFileName); - iodev = f; - ownIodev = true; - } - Q_ASSERT(iodev); - if (!iodev->isOpen()) - { - if (!iodev->open(QIODevice::WriteOnly)) - { - if (ownIodev) - { - delete iodev; - iodev = 0; - } - else - { - return 0; - } - } - } - return iodev; -} - -void BaseConverterPrivate::closeDevice() -{ - if (ownIodev) - { - iodev->close(); - delete iodev; - iodev = 0; - } -} - - -BaseConverter::BaseConverter(BaseConverterPrivate &dd) - : d_ptr(&dd) -{ -} - -BaseConverter::~BaseConverter() -{ - delete d_ptr; -} - -void BaseConverter::setOutputFileName(const QString &outputFileName) -{ - Q_D(BaseConverter); - d->outputFileName = outputFileName; -} - -void BaseConverter::setOutputDevice(QIODevice *device) -{ - Q_D(BaseConverter); - d->iodev = device; - d->ownIodev = false; -} - -BaseConverter::Error BaseConverter::lastError() const -{ - Q_D(const BaseConverter); - return d->lastError; -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-converter-private.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-converter-private.h deleted file mode 100644 index dc3e94379a2..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-converter-private.h +++ /dev/null @@ -1,49 +0,0 @@ -/* poppler-converter-private.h: Qt4 interface to poppler - * Copyright (C) 2007, 2009, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef POPPLER_QT4_CONVERTER_PRIVATE_H -#define POPPLER_QT4_CONVERTER_PRIVATE_H - -#include <QtCore/QString> - -class QIODevice; - -namespace Poppler { - -class DocumentData; - -class BaseConverterPrivate -{ - public: - BaseConverterPrivate(); - virtual ~BaseConverterPrivate(); - - QIODevice* openDevice(); - void closeDevice(); - - DocumentData *document; - QString outputFileName; - QIODevice *iodev; - bool ownIodev : 1; - BaseConverter::Error lastError; -}; - -} - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-document.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-document.cc deleted file mode 100644 index c2563f4026f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-document.cc +++ /dev/null @@ -1,619 +0,0 @@ -/* poppler-document.cc: qt interface to poppler - * Copyright (C) 2005, Net Integration Technologies, Inc. - * Copyright (C) 2005, 2008, Brad Hards <bradh@frogmouth.net> - * Copyright (C) 2005-2009, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2006-2009, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-qt4.h" - -#include <config.h> -#include <ErrorCodes.h> -#include <GlobalParams.h> -#include <Outline.h> -#include <PDFDoc.h> -#include <Stream.h> -#include <Catalog.h> -#include <DateInfo.h> -#include <GfxState.h> - -#include <QtCore/QDebug> -#include <QtCore/QFile> -#include <QtCore/QByteArray> - -#include "poppler-private.h" - -#if defined(USE_CMS) -#include <lcms.h> -#endif - -namespace Poppler { - - int DocumentData::count = 0; - - Document *Document::load(const QString &filePath, const QByteArray &ownerPassword, - const QByteArray &userPassword) - { - DocumentData *doc = new DocumentData(new GooString(QFile::encodeName(filePath)), - new GooString(ownerPassword.data()), - new GooString(userPassword.data())); - return DocumentData::checkDocument(doc); - } - - Document *Document::loadFromData(const QByteArray &fileContents, - const QByteArray &ownerPassword, - const QByteArray &userPassword) - { - // create stream - DocumentData *doc = new DocumentData(fileContents, - new GooString(ownerPassword.data()), - new GooString(userPassword.data())); - return DocumentData::checkDocument(doc); - } - - Document *DocumentData::checkDocument(DocumentData *doc) - { - Document *pdoc; - if (doc->doc->isOk() || doc->doc->getErrorCode() == errEncrypted) { - pdoc = new Document(doc); - if (doc->doc->getErrorCode() == errEncrypted) - pdoc->m_doc->locked = true; - else - { - pdoc->m_doc->locked = false; - pdoc->m_doc->fillMembers(); - } - return pdoc; - } - else - { - delete doc; - } - return NULL; - } - - Document::Document(DocumentData *dataA) - { - m_doc = dataA; - } - - Document::~Document() - { - delete m_doc; - } - - Page *Document::page(int index) const - { - return new Page(m_doc, index); - } - - bool Document::isLocked() const - { - return m_doc->locked; - } - - bool Document::unlock(const QByteArray &ownerPassword, - const QByteArray &userPassword) - { - if (m_doc->locked) { - /* racier then it needs to be */ - DocumentData *doc2; - if (!m_doc->fileContents.isEmpty()) - { - doc2 = new DocumentData(m_doc->fileContents, - new GooString(ownerPassword.data()), - new GooString(userPassword.data())); - } - else - { - doc2 = new DocumentData(new GooString(m_doc->doc->getFileName()), - new GooString(ownerPassword.data()), - new GooString(userPassword.data())); - } - if (!doc2->doc->isOk()) { - delete doc2; - } else { - delete m_doc; - m_doc = doc2; - m_doc->locked = false; - m_doc->fillMembers(); - } - } - return m_doc->locked; - } - - Document::PageMode Document::pageMode() const - { - switch (m_doc->doc->getCatalog()->getPageMode()) { - case Catalog::pageModeNone: - return UseNone; - case Catalog::pageModeOutlines: - return UseOutlines; - case Catalog::pageModeThumbs: - return UseThumbs; - case Catalog::pageModeFullScreen: - return FullScreen; - case Catalog::pageModeOC: - return UseOC; - case Catalog::pageModeAttach: - return UseAttach; - default: - return UseNone; - } - } - - Document::PageLayout Document::pageLayout() const - { - switch (m_doc->doc->getCatalog()->getPageLayout()) { - case Catalog::pageLayoutNone: - return NoLayout; - case Catalog::pageLayoutSinglePage: - return SinglePage; - case Catalog::pageLayoutOneColumn: - return OneColumn; - case Catalog::pageLayoutTwoColumnLeft: - return TwoColumnLeft; - case Catalog::pageLayoutTwoColumnRight: - return TwoColumnRight; - case Catalog::pageLayoutTwoPageLeft: - return TwoPageLeft; - case Catalog::pageLayoutTwoPageRight: - return TwoPageRight; - default: - return NoLayout; - } - } - - int Document::numPages() const - { - return m_doc->doc->getNumPages(); - } - - QList<FontInfo> Document::fonts() const - { - QList<FontInfo> ourList; - FontIterator it( 0, m_doc ); - while ( it.hasNext() ) - { - ourList += it.next(); - } - return ourList; - } - - QList<EmbeddedFile*> Document::embeddedFiles() const - { - return m_doc->m_embeddedFiles; - } - - bool Document::scanForFonts( int numPages, QList<FontInfo> *fontList ) const - { - if ( !m_doc->m_fontInfoIterator ) - return false; - if ( !m_doc->m_fontInfoIterator->hasNext() ) - return false; - while ( m_doc->m_fontInfoIterator->hasNext() && numPages ) - { - (*fontList) += m_doc->m_fontInfoIterator->next(); - --numPages; - } - return true; - } - - FontIterator* Document::newFontIterator( int startPage ) const - { - return new FontIterator( startPage, m_doc ); - } - - QByteArray Document::fontData(const FontInfo &fi) const - { - QByteArray result; - if (fi.isEmbedded()) - { - Object refObj, strObj; - refObj.initRef(fi.m_data->embRef.num, fi.m_data->embRef.gen); - refObj.fetch(m_doc->doc->getXRef(), &strObj); - refObj.free(); - if (strObj.isStream()) - { - int c; - strObj.streamReset(); - while ((c = strObj.streamGetChar()) != EOF) - { - result.append((char)c); - } - strObj.streamClose(); - } - strObj.free(); - } - return result; - } - - /* borrowed from kpdf */ - QString Document::info( const QString & type ) const - { - // [Albert] Code adapted from pdfinfo.cc on xpdf - Object info; - if ( m_doc->locked ) - return QString(); - - m_doc->doc->getDocInfo( &info ); - if ( !info.isDict() ) - return QString(); - - QString result; - Object obj; - GooString *s1; - Dict *infoDict = info.getDict(); - - if ( infoDict->lookup( type.toLatin1().data(), &obj )->isString() ) - { - s1 = obj.getString(); - result = UnicodeParsedString(s1); - obj.free(); - info.free(); - return result; - } - obj.free(); - info.free(); - return QString(); - } - - QStringList Document::infoKeys() const - { - QStringList keys; - - Object info; - if ( m_doc->locked ) - return QStringList(); - - m_doc->doc->getDocInfo( &info ); - if ( !info.isDict() ) - return QStringList(); - - Dict *infoDict = info.getDict(); - // somehow iterate over keys in infoDict - for( int i=0; i < infoDict->getLength(); ++i ) { - keys.append( QString::fromAscii(infoDict->getKey(i)) ); - } - - info.free(); - return keys; - } - - /* borrowed from kpdf */ - QDateTime Document::date( const QString & type ) const - { - // [Albert] Code adapted from pdfinfo.cc on xpdf - if ( m_doc->locked ) - return QDateTime(); - - Object info; - m_doc->doc->getDocInfo( &info ); - if ( !info.isDict() ) { - info.free(); - return QDateTime(); - } - - Object obj; - Dict *infoDict = info.getDict(); - QDateTime result; - - if ( infoDict->lookup( type.toLatin1().data(), &obj )->isString() ) - { - char *aux = obj.getString()->getCString(); - result = Poppler::convertDate(aux); - } - obj.free(); - info.free(); - return result; - } - - bool Document::isEncrypted() const - { - return m_doc->doc->isEncrypted(); - } - - bool Document::isLinearized() const - { - return m_doc->doc->isLinearized(); - } - - bool Document::okToPrint() const - { - return m_doc->doc->okToPrint(); - } - - bool Document::okToPrintHighRes() const - { - return m_doc->doc->okToPrintHighRes(); - } - - bool Document::okToChange() const - { - return m_doc->doc->okToChange(); - } - - bool Document::okToCopy() const - { - return m_doc->doc->okToCopy(); - } - - bool Document::okToAddNotes() const - { - return m_doc->doc->okToAddNotes(); - } - - bool Document::okToFillForm() const - { - return m_doc->doc->okToFillForm(); - } - - bool Document::okToCreateFormFields() const - { - return ( okToFillForm() && okToChange() ); - } - - bool Document::okToExtractForAccessibility() const - { - return m_doc->doc->okToAccessibility(); - } - - bool Document::okToAssemble() const - { - return m_doc->doc->okToAssemble(); - } - - double Document::pdfVersion() const - { - return m_doc->doc->getPDFMajorVersion () + m_doc->doc->getPDFMinorVersion() / 10.0; - } - - void Document::getPdfVersion(int *major, int *minor) const - { - if (major) - *major = m_doc->doc->getPDFMajorVersion(); - if (minor) - *minor = m_doc->doc->getPDFMinorVersion(); - } - - Page *Document::page(const QString &label) const - { - GooString label_g(label.toAscii().data()); - int index; - - if (!m_doc->doc->getCatalog()->labelToIndex (&label_g, &index)) - return NULL; - - return page(index); - } - - bool Document::hasEmbeddedFiles() const - { - return (!(0 == m_doc->doc->getCatalog()->numEmbeddedFiles())); - } - - QDomDocument *Document::toc() const - { - Outline * outline = m_doc->doc->getOutline(); - if ( !outline ) - return NULL; - - GooList * items = outline->getItems(); - if ( !items || items->getLength() < 1 ) - return NULL; - - QDomDocument *toc = new QDomDocument(); - if ( items->getLength() > 0 ) - m_doc->addTocChildren( toc, toc, items ); - - return toc; - } - - LinkDestination *Document::linkDestination( const QString &name ) - { - GooString * namedDest = QStringToGooString( name ); - LinkDestinationData ldd(NULL, namedDest, m_doc, false); - LinkDestination *ld = new LinkDestination(ldd); - delete namedDest; - return ld; - } - - void Document::setPaperColor(const QColor &color) - { - m_doc->setPaperColor(color); - } - - void Document::setColorDisplayProfile(void* outputProfileA) - { -#if defined(USE_CMS) - GfxColorSpace::setDisplayProfile((cmsHPROFILE)outputProfileA); -#else - Q_UNUSED(outputProfileA); -#endif - } - - void Document::setColorDisplayProfileName(const QString &name) - { -#if defined(USE_CMS) - GooString *profileName = QStringToGooString( name ); - GfxColorSpace::setDisplayProfileName(profileName); - delete profileName; -#else - Q_UNUSED(name); -#endif - } - - void* Document::colorRgbProfile() const - { -#if defined(USE_CMS) - return (void*)GfxColorSpace::getRGBProfile(); -#else - return NULL; -#endif - } - - void* Document::colorDisplayProfile() const - { -#if defined(USE_CMS) - return (void*)GfxColorSpace::getDisplayProfile(); -#else - return NULL; -#endif - } - - QColor Document::paperColor() const - { - return m_doc->paperColor; - } - - void Document::setRenderBackend( Document::RenderBackend backend ) - { - // no need to delete the outputdev as for the moment we always create a splash one - // as the arthur one does not allow "precaching" due to it's signature - // delete m_doc->m_outputDev; - // m_doc->m_outputDev = NULL; - m_doc->m_backend = backend; - } - - Document::RenderBackend Document::renderBackend() const - { - return m_doc->m_backend; - } - - QSet<Document::RenderBackend> Document::availableRenderBackends() - { - QSet<Document::RenderBackend> ret; -#if defined(HAVE_SPLASH) - ret << Document::SplashBackend; - ret << Document::ArthurBackend; -#endif - return ret; - } - - void Document::setRenderHint( Document::RenderHint hint, bool on ) - { - if ( on ) - m_doc->m_hints |= hint; - else - m_doc->m_hints &= ~(int)hint; - - // the only way to set antialiasing for Splash is on creation - if ( m_doc->m_backend == Document::SplashBackend && - ( hint & ( Document::Antialiasing || Document::TextAntialiasing || Document::TextHinting ) ) ) - { - delete m_doc->m_outputDev; - m_doc->m_outputDev = NULL; - } - } - - Document::RenderHints Document::renderHints() const - { - return Document::RenderHints( m_doc->m_hints ); - } - - PSConverter *Document::psConverter() const - { - return new PSConverter(m_doc); - } - - PDFConverter *Document::pdfConverter() const - { - return new PDFConverter(m_doc); - } - - QString Document::metadata() const - { - QString result; - Catalog *catalog = m_doc->doc->getCatalog(); - if (catalog && catalog->isOk()) - { - GooString *s = catalog->readMetadata(); - if (s) result = UnicodeParsedString(s); - delete s; - } - return result; - } - - bool Document::hasOptionalContent() const - { - return ( m_doc->doc->getOptContentConfig() && m_doc->doc->getOptContentConfig()->hasOCGs() ); - } - - OptContentModel *Document::optionalContentModel() - { - if (m_doc->m_optContentModel.isNull()) { - m_doc->m_optContentModel = new OptContentModel(m_doc->doc->getOptContentConfig(), 0); - } - return (OptContentModel *)m_doc->m_optContentModel; - } - - QStringList Document::scripts() const - { - Catalog *catalog = m_doc->doc->getCatalog(); - const int numScripts = catalog->numJS(); - QStringList scripts; - for (int i = 0; i < numScripts; ++i) { - GooString *s = catalog->getJS(i); - if (s) { - scripts.append(UnicodeParsedString(s)); - delete s; - } - } - return scripts; - } - - QDateTime convertDate( char *dateString ) - { - int year, mon, day, hour, min, sec, tzHours, tzMins; - char tz; - - if ( parseDateString( dateString, &year, &mon, &day, &hour, &min, &sec, &tz, &tzHours, &tzMins ) ) - { - QDate d( year, mon, day ); - QTime t( hour, min, sec ); - if ( d.isValid() && t.isValid() ) { - QDateTime dt( d, t, Qt::UTC ); - if ( tz ) { - // then we have some form of timezone - if ( 'Z' == tz ) { - // We are already at UTC - } else if ( '+' == tz ) { - // local time is ahead of UTC - dt = dt.addSecs(-1*((tzHours*60)+tzMins)*60); - } else if ( '-' == tz ) { - // local time is behind UTC - dt = dt.addSecs(((tzHours*60)+tzMins)*60); - } else { - qWarning("unexpected tz val"); - } - } - return dt; - } - } - return QDateTime(); - } - - bool isCmsAvailable() - { -#if defined(USE_CMS) - return true; -#else - return false; -#endif - } - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-embeddedfile.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-embeddedfile.cc deleted file mode 100644 index d54cf1e25f0..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-embeddedfile.cc +++ /dev/null @@ -1,113 +0,0 @@ -/* poppler-document.cc: qt interface to poppler - * Copyright (C) 2005, 2008, 2009, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2005, Brad Hards <bradh@frogmouth.net> - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-qt4.h" - -#include <QtCore/QString> -#include <QtCore/QDateTime> - -#include "Object.h" -#include "Stream.h" -#include "Catalog.h" - -#include "poppler-private.h" - -namespace Poppler -{ - -class EmbeddedFileData -{ -public: - EmbFile *embfile; -}; - -EmbeddedFile::EmbeddedFile(EmbFile *embfile) -{ - m_embeddedFile = new EmbeddedFileData(); - m_embeddedFile->embfile = embfile; -} - -EmbeddedFile::~EmbeddedFile() -{ - delete m_embeddedFile->embfile; - delete m_embeddedFile; -} - -QString EmbeddedFile::name() const -{ - return QString(m_embeddedFile->embfile->name()->getCString()); -} - -QString EmbeddedFile::description() const -{ - return UnicodeParsedString(m_embeddedFile->embfile->description()); -} - -int EmbeddedFile::size() const -{ - return m_embeddedFile->embfile->size(); -} - -QDateTime EmbeddedFile::modDate() const -{ - return convertDate(m_embeddedFile->embfile->modDate()->getCString()); -} - -QDateTime EmbeddedFile::createDate() const -{ - return convertDate(m_embeddedFile->embfile->createDate()->getCString()); -} - -QByteArray EmbeddedFile::checksum() const -{ - GooString *goo_checksum = m_embeddedFile->embfile->checksum(); - return QByteArray::fromRawData(goo_checksum->getCString(), goo_checksum->getLength()); -} - -QString EmbeddedFile::mimeType() const -{ - return QString(m_embeddedFile->embfile->mimeType()->getCString()); -} - -QByteArray EmbeddedFile::data() -{ - if (!isValid()) - return QByteArray(); - - Object obj; - Stream *stream = m_embeddedFile->embfile->streamObject().getStream(); - stream->reset(); - int dataLen = 0; - QByteArray fileArray; - int i; - while ( (i = stream->getChar()) != EOF) { - fileArray[dataLen] = (char)i; - ++dataLen; - } - fileArray.resize(dataLen); - return fileArray; -} - -bool EmbeddedFile::isValid() const -{ - return m_embeddedFile->embfile->isOk(); -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-export.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-export.h deleted file mode 100644 index 7661fe9e0db..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-export.h +++ /dev/null @@ -1,17 +0,0 @@ -/* -* This file is used to set the poppler_qt4_EXPORT macros right. -* This is needed for setting the visibility on windows, it will have no effect on other platforms. -*/ -#if defined(_WIN32) -# define LIB_EXPORT __declspec(dllexport) -# define LIB_IMPORT __declspec(dllimport) -#else -# define LIB_EXPORT -# define LIB_IMPORT -#endif - -#ifdef poppler_qt4_EXPORTS -# define POPPLER_QT4_EXPORT LIB_EXPORT -#else -# define POPPLER_QT4_EXPORT LIB_IMPORT -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-fontinfo.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-fontinfo.cc deleted file mode 100644 index 81aed712ca4..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-fontinfo.cc +++ /dev/null @@ -1,149 +0,0 @@ -/* poppler-qt.h: qt interface to poppler - * Copyright (C) 2005, Net Integration Technologies, Inc. - * Copyright (C) 2005, Tobias Koening <tokoe@kde.org> - * Copyright (C) 2005, Brad Hards <bradh@frogmouth.net> - * Copyright (C) 2005-2008, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2008, 2009, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-qt4.h" -#include "poppler-private.h" - -namespace Poppler { - -FontInfo::FontInfo() -{ - m_data = new FontInfoData(); -} - -FontInfo::FontInfo( const FontInfoData &fid ) -{ - m_data = new FontInfoData(fid); -} - -FontInfo::FontInfo( const FontInfo &fi ) -{ - m_data = new FontInfoData(*fi.m_data); -} - -FontInfo::~FontInfo() -{ - delete m_data; -} - -QString FontInfo::name() const -{ - return m_data->fontName; -} - -QString FontInfo::file() const -{ - return m_data->fontFile; -} - -bool FontInfo::isEmbedded() const -{ - return m_data->isEmbedded; -} - -bool FontInfo::isSubset() const -{ - return m_data->isSubset; -} - -FontInfo::Type FontInfo::type() const -{ - return m_data->type; -} - -QString FontInfo::typeName() const -{ - switch (type()) { - case unknown: - return QObject::tr("unknown"); - case Type1: - return QObject::tr("Type 1"); - case Type1C: - return QObject::tr("Type 1C"); - case Type3: - return QObject::tr("Type 3"); - case TrueType: - return QObject::tr("TrueType"); - case CIDType0: - return QObject::tr("CID Type 0"); - case CIDType0C: - return QObject::tr("CID Type 0C"); - case CIDTrueType: - return QObject::tr("CID TrueType"); - case Type1COT: - return QObject::tr("Type 1C (OpenType)"); - case TrueTypeOT: - return QObject::tr("TrueType (OpenType)"); - case CIDType0COT: - return QObject::tr("CID Type 0C (OpenType)"); - case CIDTrueTypeOT: - return QObject::tr("CID TrueType (OpenType)"); - } - return QObject::tr("Bug: unexpected font type. Notify poppler mailing list!"); -} - -FontInfo& FontInfo::operator=( const FontInfo &fi ) -{ - if (this == &fi) - return *this; - - *m_data = *fi.m_data; - return *this; -} - - -FontIterator::FontIterator( int startPage, DocumentData *dd ) - : d( new FontIteratorData( startPage, dd ) ) -{ -} - -FontIterator::~FontIterator() -{ - delete d; -} - -QList<FontInfo> FontIterator::next() -{ - ++d->currentPage; - - QList<FontInfo> fonts; - GooList *items = d->fontInfoScanner.scan( 1 ); - if ( !items ) - return fonts; - for ( int i = 0; i < items->getLength(); ++i ) { - fonts.append( FontInfo( FontInfoData( ( ::FontInfo* )items->get( i ) ) ) ); - } - deleteGooList( items, ::FontInfo ); - return fonts; -} - -bool FontIterator::hasNext() const -{ - return ( d->currentPage + 1 ) < d->totalPages; -} - -int FontIterator::currentPage() const -{ - return d->currentPage; -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-form.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-form.cc deleted file mode 100644 index 6224b68969f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-form.cc +++ /dev/null @@ -1,371 +0,0 @@ -/* poppler-form.h: qt4 interface to poppler - * Copyright (C) 2007-2008, Pino Toscano <pino@kde.org> - * Copyright (C) 2008, Albert Astals Cid <aacid@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-qt4.h" - -#include <QtCore/QSizeF> - -#include <Form.h> -#include <Object.h> -#include <Link.h> - -#include "poppler-form.h" -#include "poppler-page-private.h" -#include "poppler-private.h" -#include "poppler-annotation-helper.h" - -#include <math.h> - -namespace Poppler { - -FormField::FormField(FormFieldData &dd) - : m_formData(&dd) -{ - const int rotation = m_formData->page->getRotate(); - // reading the coords - double left, top, right, bottom; - m_formData->fm->getRect(&left, &bottom, &right, &top); - // build a normalized transform matrix for this page at 100% scale - GfxState gfxState( 72.0, 72.0, m_formData->page->getCropBox(), rotation, gTrue ); - double * gfxCTM = gfxState.getCTM(); - double MTX[6]; - double pageWidth = m_formData->page->getCropWidth(); - double pageHeight = m_formData->page->getCropHeight(); - // landscape and seascape page rotation: be sure to use the correct (== rotated) page size - if (((rotation / 90) % 2) == 1) - qSwap(pageWidth, pageHeight); - for ( int i = 0; i < 6; i+=2 ) - { - MTX[i] = gfxCTM[i] / pageWidth; - MTX[i+1] = gfxCTM[i+1] / pageHeight; - } - QPointF topLeft; - XPDFReader::transform( MTX, qMin( left, right ), qMax( top, bottom ), topLeft ); - QPointF bottomRight; - XPDFReader::transform( MTX, qMax( left, right ), qMin( top, bottom ), bottomRight ); - m_formData->box = QRectF(topLeft, QSizeF(bottomRight.x() - topLeft.x(), bottomRight.y() - topLeft.y())); - - Object *obj = m_formData->fm->getObj(); - Object tmp; - - // reading the flags - if (obj->isDict() && obj->dictLookup("Ff", &tmp)->isInt()) - { - m_formData->flags = tmp.getInt(); - } - tmp.free(); - // reading the widget annotation flags - if (obj->isDict() && obj->dictLookup("F", &tmp)->isInt()) - { - m_formData->annoflags = tmp.getInt(); - } - tmp.free(); -} - -FormField::~FormField() -{ - delete m_formData; - m_formData = 0; -} - -QRectF FormField::rect() const -{ - return m_formData->box; -} - -int FormField::id() const -{ - return m_formData->fm->getID(); -} - -QString FormField::name() const -{ - Object tmp; - Object *obj = m_formData->fm->getObj(); - QString name; - if (obj->dictLookup("T", &tmp)->isString()) - { - GooString *goo = tmp.getString(); - if (goo) - name = goo->getCString(); - } - tmp.free(); - return name; -} - -QString FormField::uiName() const -{ - Object tmp; - Object *obj = m_formData->fm->getObj(); - QString name; - if (obj->dictLookup("TU", &tmp)->isString()) - { - GooString *goo = tmp.getString(); - if (goo) - name = goo->getCString(); - } - tmp.free(); - return name; -} - -bool FormField::isReadOnly() const -{ - return m_formData->fm->isReadOnly(); -} - -bool FormField::isVisible() const -{ - return !(m_formData->annoflags & (1 << 1)); -} - -Link* FormField::activationAction() const -{ - Object tmp; - Object *obj = m_formData->fm->getObj(); - Link* action = 0; - if (obj->dictLookup("A", &tmp)->isDict()) - { - ::LinkAction *act = ::LinkAction::parseAction(&tmp, m_formData->doc->doc->getCatalog()->getBaseURI()); - if (act) - { - action = PageData::convertLinkActionToLink(act, m_formData->doc, QRectF()); - delete act; - } - } - tmp.free(); - return action; -} - - -FormFieldButton::FormFieldButton(DocumentData *doc, ::Page *p, ::FormWidgetButton *w) - : FormField(*new FormFieldData(doc, p, w)) -{ -} - -FormFieldButton::~FormFieldButton() -{ -} - -FormFieldButton::FormType FormFieldButton::type() const -{ - return FormField::FormButton; -} - -FormFieldButton::ButtonType FormFieldButton::buttonType() const -{ - FormWidgetButton* fwb = static_cast<FormWidgetButton*>(m_formData->fm); - switch (fwb->getButtonType()) - { - case formButtonCheck: - return FormFieldButton::CheckBox; - break; - case formButtonPush: - return FormFieldButton::Push; - break; - case formButtonRadio: - return FormFieldButton::Radio; - break; - } - return FormFieldButton::CheckBox; -} - -QString FormFieldButton::caption() const -{ - FormWidgetButton* fwb = static_cast<FormWidgetButton*>(m_formData->fm); - // HACK push buttons seems to have a null GooString for the caption - if (fwb->getButtonType() == formButtonPush) - return QString(); - - return fwb->getOnStr() ? QString::fromUtf8(fwb->getOnStr()) : QString(); -} - -bool FormFieldButton::state() const -{ - FormWidgetButton* fwb = static_cast<FormWidgetButton*>(m_formData->fm); - return fwb->getState(); -} - -void FormFieldButton::setState( bool state ) -{ - FormWidgetButton* fwb = static_cast<FormWidgetButton*>(m_formData->fm); - fwb->setState((GBool)state); -} - -QList<int> FormFieldButton::siblings() const -{ - FormWidgetButton* fwb = static_cast<FormWidgetButton*>(m_formData->fm); - if (fwb->getButtonType() == formButtonPush) - return QList<int>(); - - QList<int> ret; - unsigned *sibls = fwb->getSiblingsID(); - for (int i = 0; i < fwb->getNumSiblingsID(); ++i) - ret.append(sibls[i]); - - return ret; -} - - -FormFieldText::FormFieldText(DocumentData *doc, ::Page *p, ::FormWidgetText *w) - : FormField(*new FormFieldData(doc, p, w)) -{ -} - -FormFieldText::~FormFieldText() -{ -} - -FormField::FormType FormFieldText::type() const -{ - return FormField::FormText; -} - -FormFieldText::TextType FormFieldText::textType() const -{ - FormWidgetText* fwt = static_cast<FormWidgetText*>(m_formData->fm); - if (fwt->isFileSelect()) - return FormFieldText::FileSelect; - else if (fwt->isMultiline()) - return FormFieldText::Multiline; - return FormFieldText::Normal; -} - -QString FormFieldText::text() const -{ - GooString *goo = static_cast<FormWidgetText*>(m_formData->fm)->getContent(); - return UnicodeParsedString(goo); -} - -void FormFieldText::setText( const QString& text ) -{ - FormWidgetText* fwt = static_cast<FormWidgetText*>(m_formData->fm); - GooString * goo = QStringToUnicodeGooString( text ); - fwt->setContent( goo ); - delete goo; -} - -bool FormFieldText::isPassword() const -{ - FormWidgetText* fwt = static_cast<FormWidgetText*>(m_formData->fm); - return fwt->isPassword(); -} - -bool FormFieldText::isRichText() const -{ - FormWidgetText* fwt = static_cast<FormWidgetText*>(m_formData->fm); - return fwt->isRichText(); -} - -int FormFieldText::maximumLength() const -{ - FormWidgetText* fwt = static_cast<FormWidgetText*>(m_formData->fm); - const int maxlen = fwt->getMaxLen(); - return maxlen > 0 ? maxlen : -1; -} - -Qt::Alignment FormFieldText::textAlignment() const -{ - return m_formData->textAlignment(m_formData->fm->getObj()); -} - -bool FormFieldText::canBeSpellChecked() const -{ - FormWidgetText* fwt = static_cast<FormWidgetText*>(m_formData->fm); - return !fwt->noSpellCheck(); -} - - -FormFieldChoice::FormFieldChoice(DocumentData *doc, ::Page *p, ::FormWidgetChoice *w) - : FormField(*new FormFieldData(doc, p, w)) -{ -} - -FormFieldChoice::~FormFieldChoice() -{ -} - -FormFieldChoice::FormType FormFieldChoice::type() const -{ - return FormField::FormChoice; -} - -FormFieldChoice::ChoiceType FormFieldChoice::choiceType() const -{ - FormWidgetChoice* fwc = static_cast<FormWidgetChoice*>(m_formData->fm); - if (fwc->isCombo()) - return FormFieldChoice::ComboBox; - return FormFieldChoice::ListBox; -} - -QStringList FormFieldChoice::choices() const -{ - FormWidgetChoice* fwc = static_cast<FormWidgetChoice*>(m_formData->fm); - QStringList ret; - int num = fwc->getNumChoices(); - for (int i = 0; i < num; ++i) - { - ret.append(UnicodeParsedString(fwc->getChoice(i))); - } - return ret; -} - -bool FormFieldChoice::isEditable() const -{ - FormWidgetChoice* fwc = static_cast<FormWidgetChoice*>(m_formData->fm); - return fwc->isCombo() ? fwc->hasEdit() : false; -} - -bool FormFieldChoice::multiSelect() const -{ -// return m_formData->flags & (1 << 21); - FormWidgetChoice* fwc = static_cast<FormWidgetChoice*>(m_formData->fm); - return !fwc->isCombo() ? fwc->isMultiSelect() : false; -} - -QList<int> FormFieldChoice::currentChoices() const -{ - FormWidgetChoice* fwc = static_cast<FormWidgetChoice*>(m_formData->fm); - int num = fwc->getNumChoices(); - QList<int> choices; - for ( int i = 0; i < num; ++i ) - if ( fwc->isSelected( i ) ) - choices.append( i ); - return choices; -} - -void FormFieldChoice::setCurrentChoices( const QList<int> &choice ) -{ - FormWidgetChoice* fwc = static_cast<FormWidgetChoice*>(m_formData->fm); - fwc->deselectAll(); - for ( int i = 0; i < choice.count(); ++i ) - fwc->select( choice.at( i ) ); -} - -Qt::Alignment FormFieldChoice::textAlignment() const -{ - return m_formData->textAlignment(m_formData->fm->getObj()); -} - -bool FormFieldChoice::canBeSpellChecked() const -{ - FormWidgetChoice* fwc = static_cast<FormWidgetChoice*>(m_formData->fm); - return !fwc->noSpellCheck(); -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-form.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-form.h deleted file mode 100644 index 0412bab1948..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-form.h +++ /dev/null @@ -1,322 +0,0 @@ -/* poppler-form.h: qt4 interface to poppler - * Copyright (C) 2007-2008, Pino Toscano <pino@kde.org> - * Copyright (C) 2008, Albert Astals Cid <aacid@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef _POPPLER_QT4_FORM_H_ -#define _POPPLER_QT4_FORM_H_ - -#include <QtCore/QRectF> -#include <QtCore/QStringList> -#include "poppler-export.h" - -class Page; -class FormWidget; -class FormWidgetButton; -class FormWidgetText; -class FormWidgetChoice; - -namespace Poppler { - - class DocumentData; - class Link; - - class FormFieldData; - /** - The base class representing a form field. - - \since 0.6 - */ - class POPPLER_QT4_EXPORT FormField { - public: - - /** - The different types of form field. - */ - enum FormType { - FormButton, ///< A button field. See \ref Poppler::FormFieldButton::ButtonType "ButtonType" - FormText, ///< A text field. See \ref Poppler::FormFieldText::TextType "TextType" - FormChoice, ///< A single choice field. See \ref Poppler::FormFieldChoice::ChoiceType "ChoiceType" - FormSignature ///< A signature field. - }; - - virtual ~FormField(); - - /** - The type of the field. - */ - virtual FormType type() const = 0; - - /** - \return The size of the field, in normalized coordinates, i.e. - [0..1] with regard to the dimensions (cropbox) of the page - */ - QRectF rect() const; - - /** - The ID of the field. - */ - int id() const; - - /** - The internal name of the field. - */ - QString name() const; - - /** - The name of the field to be used in user interface (eg messages to - the user). - */ - QString uiName() const; - - /** - Whether this form field is read-only. - */ - bool isReadOnly() const; - - /** - Whether this form field is visible. - */ - bool isVisible() const; - - /** - The activation action of this form field. - - \note It may be null. - */ - Link* activationAction() const; - - protected: - /// \cond PRIVATE - FormField(FormFieldData &dd); - - FormFieldData *m_formData; - /// \endcond - - private: - Q_DISABLE_COPY(FormField) - }; - - /** - A form field that represents a "button". - - \since 0.8 - */ - class POPPLER_QT4_EXPORT FormFieldButton : public FormField { - public: - - /** - * The types of button field. - */ - enum ButtonType - { - Push, ///< A simple push button. - CheckBox, ///< A check box. - Radio ///< A radio button. - }; - - /// \cond PRIVATE - FormFieldButton(DocumentData *doc, ::Page *p, ::FormWidgetButton *w); - /// \endcond - virtual ~FormFieldButton(); - - virtual FormType type() const; - - /** - The particular type of the button field. - */ - ButtonType buttonType() const; - - /** - * The caption to be used for the button. - */ - QString caption() const; - - /** - The state of the button. - */ - bool state() const; - - /** - Sets the state of the button to the new \p state . - */ - void setState( bool state ); - - /** - The list with the IDs of siblings (ie, buttons belonging to the same - group as the current one. - - Valid only for \ref Radio buttons, an empty list otherwise. - */ - QList<int> siblings() const; - - private: - Q_DISABLE_COPY(FormFieldButton) - }; - - /** - A form field that represents a text input. - - \since 0.6 - */ - class POPPLER_QT4_EXPORT FormFieldText : public FormField { - public: - - /** - The particular type of this text field. - */ - enum TextType { - Normal, ///< A simple singleline text field. - Multiline, ///< A multiline text field. - FileSelect ///< An input field to select the path of a file on disk. - }; - - /// \cond PRIVATE - FormFieldText(DocumentData *doc, ::Page *p, ::FormWidgetText *w); - /// \endcond - virtual ~FormFieldText(); - - virtual FormType type() const; - - /** - The text type of the text field. - */ - TextType textType() const; - - /** - The text associated with the text field. - */ - QString text() const; - - /** - Sets the text associated with the text field to the specified - \p text. - */ - void setText( const QString& text ); - - /** - Whether this text field is a password input, eg its text \b must be - replaced with asterisks. - - Always false for \ref FileSelect text fields. - */ - bool isPassword() const; - - /** - Whether this text field should allow rich text. - */ - bool isRichText() const; - - /** - The maximum length for the text of this field, or -1 if not set. - */ - int maximumLength() const; - - /** - The horizontal alignment for the text of this text field. - */ - Qt::Alignment textAlignment() const; - - /** - Whether the text inserted manually in the field (where possible) - can be spell-checked. - */ - bool canBeSpellChecked() const; - - private: - Q_DISABLE_COPY(FormFieldText) - }; - - /** - A form field that represents a choice field. - - \since 0.6 - */ - class POPPLER_QT4_EXPORT FormFieldChoice : public FormField { - public: - - /** - The particular type of this choice field. - */ - enum ChoiceType { - ComboBox, ///< A simple singleline text field. - ListBox ///< A multiline text field. - }; - - /// \cond PRIVATE - FormFieldChoice(DocumentData *doc, ::Page *p, ::FormWidgetChoice *w); - /// \endcond - virtual ~FormFieldChoice(); - - virtual FormType type() const; - - /** - The choice type of the choice field. - */ - ChoiceType choiceType() const; - - /** - The possible choices of the choice field. - */ - QStringList choices() const; - - /** - Whether this FormFieldChoice::ComboBox is editable, i.e. the user - can type in a custom value. - - Always false for the other types of choices. - */ - bool isEditable() const; - - /** - Whether more than one choice of this FormFieldChoice::ListBox - can be selected at the same time. - - Always false for the other types of choices. - */ - bool multiSelect() const; - - /** - The currently selected choices. - */ - QList<int> currentChoices() const; - - /** - Sets the selected choices to \p choice. - */ - void setCurrentChoices( const QList<int> &choice ); - - /** - The horizontal alignment for the text of this text field. - */ - Qt::Alignment textAlignment() const; - - /** - Whether the text inserted manually in the field (where possible) - can be spell-checked. - - Returns false if the field is not an editable text field. - */ - bool canBeSpellChecked() const; - - private: - Q_DISABLE_COPY(FormFieldChoice) - }; - -} - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-link-extractor-private.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-link-extractor-private.h deleted file mode 100644 index 284f33cd177..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-link-extractor-private.h +++ /dev/null @@ -1,57 +0,0 @@ -/* poppler-link-extractor_p.h: qt interface to poppler - * Copyright (C) 2007-2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef _POPPLER_LINK_EXTRACTOR_H_ -#define _POPPLER_LINK_EXTRACTOR_H_ - -#include <Object.h> -#include <OutputDev.h> - -#include <QtCore/QList> - -namespace Poppler -{ - -class Link; -class PageData; - -class LinkExtractorOutputDev : public OutputDev -{ - public: - LinkExtractorOutputDev(PageData *data); - virtual ~LinkExtractorOutputDev(); - - // inherited from OutputDev - virtual GBool upsideDown() { return gFalse; } - virtual GBool useDrawChar() { return gFalse; } - virtual GBool interpretType3Chars() { return gFalse; } - virtual void processLink(::Link *link, Catalog *catalog); - - // our stuff - QList< Link* > links(); - - private: - PageData *m_data; - double m_pageCropWidth; - double m_pageCropHeight; - QList< Link* > m_links; -}; - -} - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-link-extractor.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-link-extractor.cc deleted file mode 100644 index e9806b59488..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-link-extractor.cc +++ /dev/null @@ -1,83 +0,0 @@ -/* poppler-link-extractor_p.h: qt interface to poppler - * Copyright (C) 2007-2008, Pino Toscano <pino@kde.org> - * Copyright (C) 2008, Albert Astals Cid <aacid@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-link-extractor-private.h" - -#include <GfxState.h> -#include <Link.h> -#include <Object.h> -#include <Page.h> - -#include "poppler-qt4.h" -#include "poppler-page-private.h" - -namespace Poppler -{ - -LinkExtractorOutputDev::LinkExtractorOutputDev(PageData *data) - : m_data(data) -{ - Q_ASSERT(m_data); - ::Page *popplerPage = m_data->page; - m_pageCropWidth = popplerPage->getCropWidth(); - m_pageCropHeight = popplerPage->getCropHeight(); - if (popplerPage->getRotate() == 90 || popplerPage->getRotate() == 270) - qSwap(m_pageCropWidth, m_pageCropHeight); - GfxState gfxState(72.0, 72.0, popplerPage->getCropBox(), popplerPage->getRotate(), gTrue); - setDefaultCTM(gfxState.getCTM()); -} - -LinkExtractorOutputDev::~LinkExtractorOutputDev() -{ - qDeleteAll(m_links); -} - -void LinkExtractorOutputDev::processLink(::Link *link, Catalog *catalog) -{ - if (!link->isOk()) - return; - - double left, top, right, bottom; - int leftAux, topAux, rightAux, bottomAux; - link->getRect(&left, &top, &right, &bottom); - QRectF linkArea; - - cvtUserToDev(left, top, &leftAux, &topAux); - cvtUserToDev(right, bottom, &rightAux, &bottomAux); - linkArea.setLeft((double)leftAux / m_pageCropWidth); - linkArea.setTop((double)topAux / m_pageCropHeight); - linkArea.setRight((double)rightAux / m_pageCropWidth); - linkArea.setBottom((double)bottomAux / m_pageCropHeight); - - Link *popplerLink = m_data->convertLinkActionToLink(link->getAction(), linkArea); - if (popplerLink) - { - m_links.append(popplerLink); - } - OutputDev::processLink(link, catalog); -} - -QList< Link* > LinkExtractorOutputDev::links() -{ - QList< Link* > ret = m_links; - m_links.clear(); - return ret; -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-link.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-link.cc deleted file mode 100644 index de062423717..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-link.cc +++ /dev/null @@ -1,584 +0,0 @@ -/* poppler-link.cc: qt interface to poppler - * Copyright (C) 2006-2007, Albert Astals Cid - * Copyright (C) 2007-2008, Pino Toscano <pino@kde.org> - * Adapting code from - * Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <poppler-qt4.h> -#include <poppler-private.h> - -#include <QtCore/QStringList> - -#include "Link.h" - -namespace Poppler { - -class LinkDestinationPrivate : public QSharedData -{ - public: - LinkDestinationPrivate(); - - LinkDestination::Kind kind; // destination type - QString name; - int pageNum; // page number - double left, bottom; // position - double right, top; - double zoom; // zoom factor - bool changeLeft : 1, changeTop : 1; // for destXYZ links, which position - bool changeZoom : 1; // components to change -}; - - LinkDestinationPrivate::LinkDestinationPrivate() - { - // sane defaults - kind = LinkDestination::destXYZ; - pageNum = 0; - left = 0; - bottom = 0; - right = 0; - top = 0; - zoom = 1; - changeLeft = true; - changeTop = true; - changeZoom = false; - } - -class LinkPrivate -{ - public: - LinkPrivate( const QRectF &area ); - virtual ~LinkPrivate(); - - QRectF linkArea; -}; - - LinkPrivate::LinkPrivate( const QRectF &area ) - : linkArea( area ) - { - } - - LinkPrivate::~LinkPrivate() - { - } - -class LinkGotoPrivate : public LinkPrivate -{ - public: - LinkGotoPrivate( const QRectF &area, const LinkDestination &dest ); - - QString extFileName; - LinkDestination destination; -}; - - LinkGotoPrivate::LinkGotoPrivate( const QRectF &area, const LinkDestination &dest ) - : LinkPrivate( area ), destination( dest ) - { - } - -class LinkExecutePrivate : public LinkPrivate -{ - public: - LinkExecutePrivate( const QRectF &area ); - - QString fileName; - QString parameters; -}; - - LinkExecutePrivate::LinkExecutePrivate( const QRectF &area ) - : LinkPrivate( area ) - { - } - -class LinkBrowsePrivate : public LinkPrivate -{ - public: - LinkBrowsePrivate( const QRectF &area ); - - QString url; -}; - - LinkBrowsePrivate::LinkBrowsePrivate( const QRectF &area ) - : LinkPrivate( area ) - { - } - -class LinkActionPrivate : public LinkPrivate -{ - public: - LinkActionPrivate( const QRectF &area ); - - LinkAction::ActionType type; -}; - - LinkActionPrivate::LinkActionPrivate( const QRectF &area ) - : LinkPrivate( area ) - { - } - -class LinkSoundPrivate : public LinkPrivate -{ - public: - LinkSoundPrivate( const QRectF &area ); - ~LinkSoundPrivate(); - - double volume; - bool sync : 1; - bool repeat : 1; - bool mix : 1; - SoundObject *sound; -}; - - LinkSoundPrivate::LinkSoundPrivate( const QRectF &area ) - : LinkPrivate( area ), sound( 0 ) - { - } - - LinkSoundPrivate::~LinkSoundPrivate() - { - delete sound; - } - -class LinkJavaScriptPrivate : public LinkPrivate -{ - public: - LinkJavaScriptPrivate( const QRectF &area ); - - QString js; -}; - - LinkJavaScriptPrivate::LinkJavaScriptPrivate( const QRectF &area ) - : LinkPrivate( area ) - { - } - -#if 0 -class LinkMoviePrivate : public LinkPrivate -{ - public: - LinkMoviePrivate( const QRectF &area ); -}; - - LinkMoviePrivate::LinkMoviePrivate( const QRectF &area ) - : LinkPrivate( area ) - { - } -#endif - - static void cvtUserToDev(::Page *page, double xu, double yu, int *xd, int *yd) { - double ctm[6]; - - page->getDefaultCTM(ctm, 72.0, 72.0, 0, false, true); - *xd = (int)(ctm[0] * xu + ctm[2] * yu + ctm[4] + 0.5); - *yd = (int)(ctm[1] * xu + ctm[3] * yu + ctm[5] + 0.5); - } - - LinkDestination::LinkDestination(const LinkDestinationData &data) - : d( new LinkDestinationPrivate ) - { - bool deleteDest = false; - LinkDest *ld = data.ld; - - if ( data.namedDest && !ld && !data.externalDest ) - { - deleteDest = true; - ld = data.doc->doc->findDest( data.namedDest ); - } - // in case this destination was named one, and it was not resolved - if ( data.namedDest && !ld ) - { - d->name = QString::fromLatin1( data.namedDest->getCString() ); - } - - if (!ld) return; - - if (ld->getKind() == ::destXYZ) d->kind = destXYZ; - else if (ld->getKind() == ::destFit) d->kind = destFit; - else if (ld->getKind() == ::destFitH) d->kind = destFitH; - else if (ld->getKind() == ::destFitV) d->kind = destFitV; - else if (ld->getKind() == ::destFitR) d->kind = destFitR; - else if (ld->getKind() == ::destFitB) d->kind = destFitB; - else if (ld->getKind() == ::destFitBH) d->kind = destFitBH; - else if (ld->getKind() == ::destFitBV) d->kind = destFitBV; - - if ( !ld->isPageRef() ) d->pageNum = ld->getPageNum(); - else - { - Ref ref = ld->getPageRef(); - d->pageNum = data.doc->doc->findPage( ref.num, ref.gen ); - } - double left = ld->getLeft(); - double bottom = ld->getBottom(); - double right = ld->getRight(); - double top = ld->getTop(); - d->zoom = ld->getZoom(); - d->changeLeft = ld->getChangeLeft(); - d->changeTop = ld->getChangeTop(); - d->changeZoom = ld->getChangeZoom(); - - int leftAux = 0, topAux = 0, rightAux = 0, bottomAux = 0; - - if (d->pageNum > 0 && d->pageNum <= data.doc->doc->getNumPages()) - { - ::Page *page = data.doc->doc->getCatalog()->getPage( d->pageNum ); - cvtUserToDev( page, left, top, &leftAux, &topAux ); - cvtUserToDev( page, right, bottom, &rightAux, &bottomAux ); - - d->left = leftAux / (double)page->getCropWidth(); - d->top = topAux / (double)page->getCropHeight(); - d->right = rightAux/ (double)page->getCropWidth(); - d->bottom = bottomAux / (double)page->getCropHeight(); - } - else d->pageNum = 0; - - if (deleteDest) delete ld; - } - - LinkDestination::LinkDestination(const QString &description) - : d( new LinkDestinationPrivate ) - { - QStringList tokens = description.split( ';' ); - d->kind = static_cast<Kind>(tokens.at(0).toInt()); - d->pageNum = tokens.at(1).toInt(); - d->left = tokens.at(2).toDouble(); - d->bottom = tokens.at(3).toDouble(); - d->right = tokens.at(4).toDouble(); - d->top = tokens.at(5).toDouble(); - d->zoom = tokens.at(6).toDouble(); - d->changeLeft = static_cast<bool>(tokens.at(7).toInt()); - d->changeTop = static_cast<bool>(tokens.at(8).toInt()); - d->changeZoom = static_cast<bool>(tokens.at(9).toInt()); - } - - LinkDestination::LinkDestination(const LinkDestination &other) - : d( other.d ) - { - } - - LinkDestination::~LinkDestination() - { - } - - LinkDestination::Kind LinkDestination::kind() const - { - return d->kind; - } - - int LinkDestination::pageNumber() const - { - return d->pageNum; - } - - double LinkDestination::left() const - { - return d->left; - } - - double LinkDestination::bottom() const - { - return d->bottom; - } - - double LinkDestination::right() const - { - return d->right; - } - - double LinkDestination::top() const - { - return d->top; - } - - double LinkDestination::zoom() const - { - return d->zoom; - } - - bool LinkDestination::isChangeLeft() const - { - return d->changeLeft; - } - - bool LinkDestination::isChangeTop() const - { - return d->changeTop; - } - - bool LinkDestination::isChangeZoom() const - { - return d->changeZoom; - } - - QString LinkDestination::toString() const - { - QString s = QString::number( (qint8)d->kind ); - s += ";" + QString::number( d->pageNum ); - s += ";" + QString::number( d->left ); - s += ";" + QString::number( d->bottom ); - s += ";" + QString::number( d->right ); - s += ";" + QString::number( d->top ); - s += ";" + QString::number( d->zoom ); - s += ";" + QString::number( (qint8)d->changeLeft ); - s += ";" + QString::number( (qint8)d->changeTop ); - s += ";" + QString::number( (qint8)d->changeZoom ); - return s; - } - - QString LinkDestination::destinationName() const - { - return d->name; - } - - LinkDestination& LinkDestination::operator=(const LinkDestination &other) - { - if ( this == &other ) - return *this; - - d = other.d; - return *this; - } - - - // Link - Link::~Link() - { - delete d_ptr; - } - - Link::Link(const QRectF &linkArea) - : d_ptr( new LinkPrivate( linkArea ) ) - { - } - - Link::Link( LinkPrivate &dd ) - : d_ptr( &dd ) - { - } - - Link::LinkType Link::linkType() const - { - return None; - } - - QRectF Link::linkArea() const - { - Q_D( const Link ); - return d->linkArea; - } - - // LinkGoto - LinkGoto::LinkGoto( const QRectF &linkArea, QString extFileName, const LinkDestination & destination ) - : Link( *new LinkGotoPrivate( linkArea, destination ) ) - { - Q_D( LinkGoto ); - d->extFileName = extFileName; - } - - LinkGoto::~LinkGoto() - { - } - - bool LinkGoto::isExternal() const - { - Q_D( const LinkGoto ); - return !d->extFileName.isEmpty(); - } - - QString LinkGoto::fileName() const - { - Q_D( const LinkGoto ); - return d->extFileName; - } - - LinkDestination LinkGoto::destination() const - { - Q_D( const LinkGoto ); - return d->destination; - } - - Link::LinkType LinkGoto::linkType() const - { - return Goto; - } - - // LinkExecute - LinkExecute::LinkExecute( const QRectF &linkArea, const QString & file, const QString & params ) - : Link( *new LinkExecutePrivate( linkArea ) ) - { - Q_D( LinkExecute ); - d->fileName = file; - d->parameters = params; - } - - LinkExecute::~LinkExecute() - { - } - - QString LinkExecute::fileName() const - { - Q_D( const LinkExecute ); - return d->fileName; - } - QString LinkExecute::parameters() const - { - Q_D( const LinkExecute ); - return d->parameters; - } - - Link::LinkType LinkExecute::linkType() const - { - return Execute; - } - - // LinkBrowse - LinkBrowse::LinkBrowse( const QRectF &linkArea, const QString &url ) - : Link( *new LinkBrowsePrivate( linkArea ) ) - { - Q_D( LinkBrowse ); - d->url = url; - } - - LinkBrowse::~LinkBrowse() - { - } - - QString LinkBrowse::url() const - { - Q_D( const LinkBrowse ); - return d->url; - } - - Link::LinkType LinkBrowse::linkType() const - { - return Browse; - } - - // LinkAction - LinkAction::LinkAction( const QRectF &linkArea, ActionType actionType ) - : Link( *new LinkActionPrivate( linkArea ) ) - { - Q_D( LinkAction ); - d->type = actionType; - } - - LinkAction::~LinkAction() - { - } - - LinkAction::ActionType LinkAction::actionType() const - { - Q_D( const LinkAction ); - return d->type; - } - - Link::LinkType LinkAction::linkType() const - { - return Action; - } - - // LinkSound - LinkSound::LinkSound( const QRectF &linkArea, double volume, bool sync, bool repeat, bool mix, SoundObject *sound ) - : Link( *new LinkSoundPrivate( linkArea ) ) - { - Q_D( LinkSound ); - d->volume = volume; - d->sync = sync; - d->repeat = repeat; - d->mix = mix; - d->sound = sound; - } - - LinkSound::~LinkSound() - { - } - - Link::LinkType LinkSound::linkType() const - { - return Sound; - } - - double LinkSound::volume() const - { - Q_D( const LinkSound ); - return d->volume; - } - - bool LinkSound::synchronous() const - { - Q_D( const LinkSound ); - return d->sync; - } - - bool LinkSound::repeat() const - { - Q_D( const LinkSound ); - return d->repeat; - } - - bool LinkSound::mix() const - { - Q_D( const LinkSound ); - return d->mix; - } - - SoundObject *LinkSound::sound() const - { - Q_D( const LinkSound ); - return d->sound; - } - - // LinkJavaScript - LinkJavaScript::LinkJavaScript( const QRectF &linkArea, const QString &js ) - : Link( *new LinkJavaScriptPrivate( linkArea ) ) - { - Q_D( LinkJavaScript ); - d->js = js; - } - - LinkJavaScript::~LinkJavaScript() - { - } - - Link::LinkType LinkJavaScript::linkType() const - { - return JavaScript; - } - - QString LinkJavaScript::script() const - { - Q_D( const LinkJavaScript ); - return d->js; - } - -#if 0 - // LinkMovie - LinkMovie::LinkMovie( const QRectF &linkArea ) - : Link( *new LinkMoviePrivate( linkArea ) ) - { - } - - LinkMovie::~LinkMovie() - { - } - - Link::LinkType LinkMovie::linkType() const - { - return Movie; - } -#endif - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-link.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-link.h deleted file mode 100644 index 6d42cbec69b..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-link.h +++ /dev/null @@ -1,489 +0,0 @@ -/* poppler-link.h: qt interface to poppler - * Copyright (C) 2006, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2007-2008, Pino Toscano <pino@kde.org> - * Adapting code from - * Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef _POPPLER_LINK_H_ -#define _POPPLER_LINK_H_ - -#include <QtCore/QString> -#include <QtCore/QRectF> -#include <QtCore/QSharedDataPointer> -#include "poppler-export.h" - -namespace Poppler { - -class LinkPrivate; -class LinkGotoPrivate; -class LinkExecutePrivate; -class LinkBrowsePrivate; -class LinkActionPrivate; -class LinkSoundPrivate; -class LinkJavaScriptPrivate; -class LinkMoviePrivate; -class LinkDestinationData; -class LinkDestinationPrivate; -class SoundObject; - -/** - * \short A destination. - * - * The LinkDestination class represent a "destination" (in terms of visual - * viewport to be displayed) for \link Poppler::LinkGoto GoTo\endlink links, - * and items in the table of contents (TOC) of a document. - * - * Coordinates are in 0..1 range - */ -class POPPLER_QT4_EXPORT LinkDestination -{ - public: - /** - * The possible kind of "viewport destination". - */ - enum Kind - { - /** - * The new viewport is specified in terms of: - * - possibile new left coordinate (see isChangeLeft() ) - * - possibile new top coordinate (see isChangeTop() ) - * - possibile new zoom level (see isChangeZoom() ) - */ - destXYZ = 1, - destFit = 2, - destFitH = 3, - destFitV = 4, - destFitR = 5, - destFitB = 6, - destFitBH = 7, - destFitBV = 8 - }; - - /// \cond PRIVATE - LinkDestination(const LinkDestinationData &data); - LinkDestination(const QString &description); - /// \endcond - /** - * Copy constructor. - */ - LinkDestination(const LinkDestination &other); - /** - * Destructor. - */ - ~LinkDestination(); - - // Accessors. - /** - * The kind of destination. - */ - Kind kind() const; - /** - * Which page is the target of this destination. - * - * \note this number is 1-based, so for a 5 pages document the - * valid page numbers go from 1 to 5 (both included). - */ - int pageNumber() const; - /** - * The new left for the viewport of the target page, in case - * it is specified to be changed (see isChangeLeft() ) - */ - double left() const; - double bottom() const; - double right() const; - /** - * The new top for the viewport of the target page, in case - * it is specified to be changed (see isChangeTop() ) - */ - double top() const; - double zoom() const; - /** - * Whether the left of the viewport on the target page should - * be changed. - * - * \see left() - */ - bool isChangeLeft() const; - /** - * Whether the top of the viewport on the target page should - * be changed. - * - * \see top() - */ - bool isChangeTop() const; - /** - * Whether the zoom level should be changed. - * - * \see zoom() - */ - bool isChangeZoom() const; - - /** - * Return a string repesentation of this destination. - */ - QString toString() const; - - /** - * Return the name of this destination. - * - * \since 0.12 - */ - QString destinationName() const; - - /** - * Assignment operator. - */ - LinkDestination& operator=(const LinkDestination &other); - - private: - QSharedDataPointer< LinkDestinationPrivate > d; -}; - -/** - * \short Encapsulates data that describes a link. - * - * This is the base class for links. It makes mandatory for inherited - * kind of links to reimplement the linkType() method and return the type of - * the link described by the reimplemented class. - */ -class POPPLER_QT4_EXPORT Link -{ - public: - /// \cond PRIVATE - Link( const QRectF &linkArea ); - /// \endcond - - /** - * The possible kinds of link. - * - * Inherited classes must return an unique identifier - */ - enum LinkType - { - None, ///< Unknown link - Goto, ///< A "Go To" link - Execute, ///< A command to be executed - Browse, ///< An URL to be browsed (eg "http://poppler.freedesktop.org") - Action, ///< A "standard" action to be executed in the viewer - Sound, ///< A link representing a sound to be played - Movie, ///< An action to be executed on a movie - JavaScript ///< A JavaScript code to be interpreted \since 0.10 - }; - - /** - * The type of this link. - */ - virtual LinkType linkType() const; - - /** - * Destructor. - */ - virtual ~Link(); - - /** - * The area of a Page where the link should be active. - * - * \note this can be a null rect, in this case the link represents - * a general action. The area is given in 0..1 range - */ - QRectF linkArea() const; - - protected: - /// \cond PRIVATE - Link( LinkPrivate &dd ); - Q_DECLARE_PRIVATE( Link ) - LinkPrivate *d_ptr; - /// \endcond - - private: - Q_DISABLE_COPY( Link ) -}; - - -/** - * \brief Viewport reaching request. - * - * With a LinkGoto link, the document requests the specified viewport to be - * reached (aka, displayed in a viewer). Furthermore, if a file name is specified, - * then the destination refers to that document (and not to the document the - * current LinkGoto belongs to). - */ -class POPPLER_QT4_EXPORT LinkGoto : public Link -{ - public: - /** - * Create a new Goto link. - * - * \param linkArea the active area of the link - * \param extFileName if not empty, the file name to be open - * \param destination the destination to be reached - */ - LinkGoto( const QRectF &linkArea, QString extFileName, const LinkDestination & destination ); - /** - * Destructor. - */ - ~LinkGoto(); - - /** - * Whether the destination is in an external document - * (i.e. not the current document) - */ - bool isExternal() const; - // query for goto parameters - /** - * The file name of the document the destination() refers to, - * or an empty string in case it refers to the current document. - */ - QString fileName() const; - /** - * The destination to reach. - */ - LinkDestination destination() const; - LinkType linkType() const; - - private: - Q_DECLARE_PRIVATE( LinkGoto ) - Q_DISABLE_COPY( LinkGoto ) -}; - -/** - * \brief Generic execution request. - * - * The LinkExecute link represent a "file name" execution request. The result - * depends on the \link fileName() file name\endlink: - * - if it is a document, then it is requested to be open - * - otherwise, it represents an executable to be run with the specified parameters - */ -class POPPLER_QT4_EXPORT LinkExecute : public Link -{ - public: - /** - * The file name to be executed - */ - QString fileName() const; - /** - * The parameters for the command. - */ - QString parameters() const; - - /** - * Create a new Execute link. - * - * \param linkArea the active area of the link - * \param file the file name to be open, or the program to be execute - * \param params the parameters for the program to execute - */ - LinkExecute( const QRectF &linkArea, const QString & file, const QString & params ); - /** - * Destructor. - */ - ~LinkExecute(); - LinkType linkType() const; - - private: - Q_DECLARE_PRIVATE( LinkExecute ) - Q_DISABLE_COPY( LinkExecute ) -}; - -/** - * \brief An URL to browse. - * - * The LinkBrowse link holds a URL (eg 'http://poppler.freedesktop.org', - * 'mailto:john@some.org', etc) to be open. - * - * The format of the URL is specified by RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt) - */ -class POPPLER_QT4_EXPORT LinkBrowse : public Link -{ - public: - /** - * The URL to open - */ - QString url() const; - - /** - * Create a new browse link. - * - * \param linkArea the active area of the link - * \param url the URL to be open - */ - LinkBrowse( const QRectF &linkArea, const QString &url ); - /** - * Destructor. - */ - ~LinkBrowse(); - LinkType linkType() const; - - private: - Q_DECLARE_PRIVATE( LinkBrowse ) - Q_DISABLE_COPY( LinkBrowse ) -}; - -/** - * \brief "Standard" action request. - * - * The LinkAction class represents a link that request a "standard" action - * to be performed by the viewer on the displayed document. - */ -class POPPLER_QT4_EXPORT LinkAction : public Link -{ - public: - /** - * The possible types of actions - */ - enum ActionType { PageFirst = 1, - PagePrev = 2, - PageNext = 3, - PageLast = 4, - HistoryBack = 5, - HistoryForward = 6, - Quit = 7, - Presentation = 8, - EndPresentation = 9, - Find = 10, - GoToPage = 11, - Close = 12 }; - - /** - * The action of the current LinkAction - */ - ActionType actionType() const; - - /** - * Create a new Action link, that executes a specified action - * on the document. - * - * \param linkArea the active area of the link - * \param actionType which action should be executed - */ - LinkAction( const QRectF &linkArea, ActionType actionType ); - /** - * Destructor. - */ - ~LinkAction(); - LinkType linkType() const; - - private: - Q_DECLARE_PRIVATE( LinkAction ) - Q_DISABLE_COPY( LinkAction ) -}; - -/** - * Sound: a sound to be played. - * - * \since 0.6 - */ -class POPPLER_QT4_EXPORT LinkSound : public Link -{ - public: - // create a Link_Sound - LinkSound( const QRectF &linkArea, double volume, bool sync, bool repeat, bool mix, SoundObject *sound ); - /** - * Destructor. - */ - virtual ~LinkSound(); - - LinkType linkType() const; - - /** - * The volume to be used when playing the sound. - * - * The volume is in the range [ -1, 1 ], where: - * - a negative number: no volume (mute) - * - 1: full volume - */ - double volume() const; - /** - * Whether the playback of the sound should be synchronous - * (thus blocking, waiting for the end of the sound playback). - */ - bool synchronous() const; - /** - * Whether the sound should be played continuously (that is, - * started again when it ends) - */ - bool repeat() const; - /** - * Whether the playback of this sound can be mixed with - * playbacks with other sounds of the same document. - * - * \note When false, any other playback must be stopped before - * playing the sound. - */ - bool mix() const; - /** - * The sound object to be played - */ - SoundObject *sound() const; - - private: - Q_DECLARE_PRIVATE( LinkSound ) - Q_DISABLE_COPY( LinkSound ) -}; - -/** - * JavaScript: a JavaScript code to be interpreted. - * - * \since 0.10 - */ -class POPPLER_QT4_EXPORT LinkJavaScript : public Link -{ - public: - /** - * Create a new JavaScript link. - * - * \param linkArea the active area of the link - * \param js the JS code to be interpreted - */ - LinkJavaScript( const QRectF &linkArea, const QString &js ); - /** - * Destructor. - */ - virtual ~LinkJavaScript(); - - LinkType linkType() const; - - /** - * The JS code - */ - QString script() const; - - private: - Q_DECLARE_PRIVATE( LinkJavaScript ) - Q_DISABLE_COPY( LinkJavaScript ) -}; - -#if 0 -/** Movie: Not yet defined -> think renaming to 'Media' link **/ -class POPPLER_QT4_EXPORT LinkMovie : public Link -// TODO this (Movie link) -{ - public: - LinkMovie( const QRectF &linkArea ); - ~LinkMovie(); - LinkType linkType() const; - - private: - Q_DECLARE_PRIVATE( LinkMovie ) - Q_DISABLE_COPY( LinkMovie ) -}; -#endif - -} - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-movie.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-movie.cc deleted file mode 100644 index 50e60f93287..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-movie.cc +++ /dev/null @@ -1,88 +0,0 @@ -/* poppler-sound.cc: qt interface to poppler - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * Copyright (C) 2008, Albert Astals Cid <aacid@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-qt4.h" - -#include "Movie.h" - -namespace Poppler -{ - -class MovieData -{ -public: - MovieData() - : m_movieObj( 0 ) - { - } - - ~MovieData() - { - delete m_movieObj; - } - - Movie *m_movieObj; - QSize m_size; - int m_rotation; - MovieObject::PlayMode m_playMode : 3; - bool m_showControls : 1; -}; - -MovieObject::MovieObject( AnnotMovie *ann ) -{ - m_movieData = new MovieData(); - m_movieData->m_movieObj = ann->getMovie()->copy(); - ann->getMovieSize( m_movieData->m_size.rwidth(), m_movieData->m_size.rheight() ); - m_movieData->m_rotation = ann->getRotationAngle(); - m_movieData->m_showControls = ann->getShowControls(); - m_movieData->m_playMode = (MovieObject::PlayMode)ann->getRepeatMode(); -} - -MovieObject::~MovieObject() -{ - delete m_movieData; -} - -QString MovieObject::url() const -{ - GooString * goo = m_movieData->m_movieObj->getFileName(); - return goo ? QString( goo->getCString() ) : QString(); -} - -QSize MovieObject::size() const -{ - return m_movieData->m_size; -} - -int MovieObject::rotation() const -{ - return m_movieData->m_rotation; -} - -bool MovieObject::showControls() const -{ - return m_movieData->m_showControls; -} - -MovieObject::PlayMode MovieObject::playMode() const -{ - return m_movieData->m_playMode; -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-optcontent-private.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-optcontent-private.h deleted file mode 100644 index 98eda073077..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-optcontent-private.h +++ /dev/null @@ -1,121 +0,0 @@ -/* poppler-optcontent-private.h: qt interface to poppler - * - * Copyright (C) 2007, Brad Hards <bradh@kde.org> - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef POPPLER_OPTCONTENT_PRIVATE_H -#define POPPLER_OPTCONTENT_PRIVATE_H - -#include <QtCore/QMap> -#include <QtCore/QSet> -#include <QtCore/QString> - -class Array; -class OCGs; -class OptionalContentGroup; - -class QModelIndex; - -namespace Poppler -{ - class OptContentItem; - class OptContentModel; - class OptContentModelPrivate; - - class RadioButtonGroup - { - public: - RadioButtonGroup( OptContentModelPrivate *ocModel, Array *rbarray); - ~RadioButtonGroup(); - QSet<OptContentItem *> setItemOn( OptContentItem *itemToSetOn ); - - private: - QList<OptContentItem*> itemsInGroup; - }; - - class OptContentItem - { - public: - enum ItemState { On, Off, HeadingOnly }; - - OptContentItem( OptionalContentGroup *group ); - OptContentItem( const QString &label ); - OptContentItem(); - ~OptContentItem(); - - QString name() const { return m_name; } - ItemState state() const { return m_stateBackup; } - bool setState(ItemState state, QSet<OptContentItem *> &changedItems); - - QList<OptContentItem*> childList() { return m_children; } - - void setParent( OptContentItem* parent) { m_parent = parent; } - OptContentItem* parent() { return m_parent; } - - void addChild( OptContentItem *child ); - - void appendRBGroup( RadioButtonGroup *rbgroup ); - - bool isEnabled() const { return m_enabled; } - - QSet<OptContentItem*> recurseListChildren(bool includeMe = false) const; - - private: - OptionalContentGroup *m_group; - QString m_name; - ItemState m_state; // true for ON, false for OFF - ItemState m_stateBackup; - QList<OptContentItem*> m_children; - OptContentItem *m_parent; - QList<RadioButtonGroup*> m_rbGroups; - bool m_enabled; - }; - - class OptContentModelPrivate - { - public: - OptContentModelPrivate( OptContentModel *qq, OCGs *optContent ); - ~OptContentModelPrivate(); - - void parseRBGroupsArray( Array *rBGroupArray ); - OptContentItem *nodeFromIndex(const QModelIndex &index, bool canBeNull = false) const; - QModelIndex indexFromItem(OptContentItem *node, int column) const; - - /** - Get the OptContentItem corresponding to a given reference value. - - \param ref the reference number (e.g. from Object.getRefNum()) to look up - - \return the matching optional content item, or null if the reference wasn't found - */ - OptContentItem *itemFromRef( const QString &ref ) const; - void setRootNode(OptContentItem *node); - - OptContentModel *q; - - QMap<QString, OptContentItem*> m_optContentItems; - QList<RadioButtonGroup*> m_rbgroups; - OptContentItem *m_rootNode; - - private: - void addChild( OptContentItem *parent, OptContentItem *child); - void parseOrderArray( OptContentItem *parentNode, Array *orderArray ); - }; -} - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-optcontent.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-optcontent.cc deleted file mode 100644 index 6a5ffe745db..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-optcontent.cc +++ /dev/null @@ -1,428 +0,0 @@ -/* poppler-optcontent.cc: qt interface to poppler - * - * Copyright (C) 2007, Brad Hards <bradh@kde.org> - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * Copyright (C) 2008, Carlos Garcia Campos <carlosgc@gnome.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-optcontent.h" - -#include "poppler-optcontent-private.h" - -#include "poppler-private.h" - -#include <QtCore/QDebug> -#include <QtCore/QtAlgorithms> - -#include "poppler/OptionalContent.h" - -namespace Poppler -{ - - RadioButtonGroup::RadioButtonGroup( OptContentModelPrivate *ocModel, Array *rbarray ) - { - for (int i = 0; i < rbarray->getLength(); ++i) { - Object ref; - rbarray->getNF( i, &ref ); - if ( ! ref.isRef() ) { - qDebug() << "expected ref, but got:" << ref.getType(); - } - OptContentItem *item = ocModel->itemFromRef( QString::number(ref.getRefNum() ) ); - itemsInGroup.append( item ); - } - for (int i = 0; i < itemsInGroup.size(); ++i) { - OptContentItem *item = itemsInGroup.at(i); - item->appendRBGroup( this ); - } - } - - RadioButtonGroup::~RadioButtonGroup() - { - } - - QSet<OptContentItem *> RadioButtonGroup::setItemOn( OptContentItem *itemToSetOn ) - { - QSet<OptContentItem *> changedItems; - for (int i = 0; i < itemsInGroup.size(); ++i) { - OptContentItem *thisItem = itemsInGroup.at(i); - if (thisItem != itemToSetOn) { - QSet<OptContentItem *> newChangedItems; - thisItem->setState(OptContentItem::Off, newChangedItems); - changedItems += newChangedItems; - } - } - return changedItems; - } - - - - OptContentItem::OptContentItem( OptionalContentGroup *group ) - { - m_group = group; - m_parent = 0; - m_name = UnicodeParsedString( group->getName() ); - if ( group->getState() == OptionalContentGroup::On ) { - m_state = OptContentItem::On; - } else { - m_state = OptContentItem::Off; - } - m_stateBackup = m_state; - m_enabled = true; - } - - OptContentItem::OptContentItem( const QString &label ) - { - m_parent = 0; - m_name = label; - m_group = 0; - m_state = OptContentItem::HeadingOnly; - m_stateBackup = m_state; - m_enabled = true; - } - - OptContentItem::OptContentItem() : - m_parent( 0 ), m_enabled(true) - { - } - - OptContentItem::~OptContentItem() - { - } - - void OptContentItem::appendRBGroup( RadioButtonGroup *rbgroup ) - { - m_rbGroups.append( rbgroup ); - } - - - bool OptContentItem::setState(ItemState state, QSet<OptContentItem *> &changedItems) - { - m_state = state; - m_stateBackup = m_state; - changedItems.insert(this); - QSet<OptContentItem *> empty; - Q_FOREACH (OptContentItem *child, m_children) { - ItemState oldState = child->m_stateBackup; - child->setState(state == OptContentItem::On ? child->m_stateBackup : OptContentItem::Off, empty); - child->m_enabled = state == OptContentItem::On; - child->m_stateBackup = oldState; - } - if (!m_group) { - return false; - } - if ( state == OptContentItem::On ) { - m_group->setState( OptionalContentGroup::On ); - for (int i = 0; i < m_rbGroups.size(); ++i) { - RadioButtonGroup *rbgroup = m_rbGroups.at(i); - changedItems += rbgroup->setItemOn( this ); - } - } else if ( state == OptContentItem::Off ) { - m_group->setState( OptionalContentGroup::Off ); - } - return true; - } - - void OptContentItem::addChild( OptContentItem *child ) - { - m_children += child; - child->setParent( this ); - } - - QSet<OptContentItem*> OptContentItem::recurseListChildren(bool includeMe) const - { - QSet<OptContentItem*> ret; - if (includeMe) { - ret.insert(const_cast<OptContentItem*>(this)); - } - Q_FOREACH (OptContentItem *child, m_children) { - ret += child->recurseListChildren(true); - } - return ret; - } - - OptContentModelPrivate::OptContentModelPrivate( OptContentModel *qq, OCGs *optContent ) - : q(qq) - { - m_rootNode = new OptContentItem(); - GooList *ocgs = optContent->getOCGs(); - - for (int i = 0; i < ocgs->getLength(); ++i) { - OptionalContentGroup *ocg = static_cast<OptionalContentGroup*>(ocgs->get(i)); - OptContentItem *node = new OptContentItem( ocg ); - m_optContentItems.insert( QString::number(ocg->getRef().num), node); - } - - if ( optContent->getOrderArray() == 0 ) { - // no Order array, so drop them all at the top level - QMapIterator<QString, OptContentItem*> i(m_optContentItems); - while ( i.hasNext() ) { - i.next(); - qDebug() << "iterator" << i.key() << ":" << i.value(); - addChild( i.value(), m_rootNode ); - } - } else { - parseOrderArray( m_rootNode, optContent->getOrderArray() ); - } - - parseRBGroupsArray( optContent->getRBGroupsArray() ); - } - - OptContentModelPrivate::~OptContentModelPrivate() - { - qDeleteAll( m_optContentItems ); - qDeleteAll( m_rbgroups ); - delete m_rootNode; - } - - void OptContentModelPrivate::parseOrderArray( OptContentItem *parentNode, Array *orderArray ) - { - OptContentItem *lastItem = parentNode; - for (int i = 0; i < orderArray->getLength(); ++i) { - Object orderItem; - orderArray->get(i, &orderItem); - if ( orderItem.isDict() ) { - Object item; - orderArray->getNF(i, &item); - if (item.isRef() ) { - OptContentItem *ocItem = m_optContentItems.value(QString::number(item.getRefNum()), 0); - if (ocItem) { - addChild( parentNode, ocItem ); - lastItem = ocItem; - } else { - qDebug() << "could not find group for object" << item.getRefNum(); - } - } - item.free(); - } else if ( (orderItem.isArray()) && (orderItem.arrayGetLength() > 0) ) { - parseOrderArray(lastItem, orderItem.getArray()); - } else if ( orderItem.isString() ) { - GooString *label = orderItem.getString(); - OptContentItem *header = new OptContentItem ( UnicodeParsedString ( label ) ); - addChild( parentNode, header ); - parentNode = header; - lastItem = header; - } else { - qDebug() << "something unexpected"; - } - orderItem.free(); - } - } - - void OptContentModelPrivate::parseRBGroupsArray( Array *rBGroupArray ) - { - if (! rBGroupArray) { - return; - } - // This is an array of array(s) - for (int i = 0; i < rBGroupArray->getLength(); ++i) { - Object rbObj; - rBGroupArray->get(i, &rbObj); - if ( ! rbObj.isArray() ) { - qDebug() << "expected inner array, got:" << rbObj.getType(); - return; - } - Array *rbarray = rbObj.getArray(); - RadioButtonGroup *rbg = new RadioButtonGroup( this, rbarray ); - m_rbgroups.append( rbg ); - rbObj.free(); - } - } - - OptContentModel::OptContentModel( OCGs *optContent, QObject *parent) - : QAbstractItemModel(parent) - { - d = new OptContentModelPrivate( this, optContent ); - } - - OptContentModel::~OptContentModel() - { - delete d; - } - - void OptContentModelPrivate::setRootNode(OptContentItem *node) - { - delete m_rootNode; - m_rootNode = node; - q->reset(); - } - - QModelIndex OptContentModel::index(int row, int column, const QModelIndex &parent) const - { - if (row < 0 || column != 0) { - return QModelIndex(); - } - - OptContentItem *parentNode = d->nodeFromIndex( parent ); - if (row < parentNode->childList().count()) { - return createIndex(row, column, parentNode->childList().at(row)); - } - return QModelIndex(); - } - - QModelIndex OptContentModel::parent(const QModelIndex &child) const - { - OptContentItem *childNode = d->nodeFromIndex( child ); - if (!childNode) { - return QModelIndex(); - } - return d->indexFromItem(childNode->parent(), child.column()); - } - - QModelIndex OptContentModelPrivate::indexFromItem(OptContentItem *node, int column) const - { - if (!node) { - return QModelIndex(); - } - OptContentItem *parentNode = node->parent(); - if (!parentNode) { - return QModelIndex(); - } - const int row = parentNode->childList().indexOf(node); - return q->createIndex(row, column, node); - } - - int OptContentModel::rowCount(const QModelIndex &parent) const - { - OptContentItem *parentNode = d->nodeFromIndex( parent ); - if (!parentNode) { - return 0; - } else { - return parentNode->childList().count(); - } - } - - int OptContentModel::columnCount(const QModelIndex &parent) const - { - return 1; - } - - - QVariant OptContentModel::data(const QModelIndex &index, int role) const - { - OptContentItem *node = d->nodeFromIndex(index, true); - if (!node) { - return QVariant(); - } - - switch (role) { - case Qt::DisplayRole: - return node->name(); - break; - case Qt::EditRole: - if (node->state() == OptContentItem::On) { - return true; - } else if (node->state() == OptContentItem::Off) { - return false; - } - break; - case Qt::CheckStateRole: - if (node->state() == OptContentItem::On) { - return Qt::Checked; - } else if (node->state() == OptContentItem::Off) { - return Qt::Unchecked; - } - break; - } - - return QVariant(); - } - - bool OptContentModel::setData ( const QModelIndex & index, const QVariant & value, int role ) - { - OptContentItem *node = d->nodeFromIndex(index, true); - if (!node) { - return false; - } - - switch (role) { - case Qt::CheckStateRole: - { - const bool newvalue = value.toBool(); - if (newvalue) { - if (node->state() != OptContentItem::On) { - QSet<OptContentItem *> changedItems; - node->setState(OptContentItem::On, changedItems); - changedItems += node->recurseListChildren(false); - QModelIndexList indexes; - Q_FOREACH (OptContentItem *item, changedItems) { - indexes.append(d->indexFromItem(item, 0)); - } - qStableSort(indexes); - Q_FOREACH (const QModelIndex &changedIndex, indexes) { - emit dataChanged(changedIndex, changedIndex); - } - return true; - } - } else { - if (node->state() != OptContentItem::Off) { - QSet<OptContentItem *> changedItems; - node->setState(OptContentItem::Off, changedItems); - changedItems += node->recurseListChildren(false); - QModelIndexList indexes; - Q_FOREACH (OptContentItem *item, changedItems) { - indexes.append(d->indexFromItem(item, 0)); - } - qStableSort(indexes); - Q_FOREACH (const QModelIndex &changedIndex, indexes) { - emit dataChanged(changedIndex, changedIndex); - } - return true; - } - } - break; - } - } - - return false; - } - - Qt::ItemFlags OptContentModel::flags ( const QModelIndex & index ) const - { - OptContentItem *node = d->nodeFromIndex(index); - Qt::ItemFlags itemFlags = Qt::ItemIsSelectable | Qt::ItemIsUserCheckable; - if (node->isEnabled()) { - itemFlags |= Qt::ItemIsEnabled; - } - return itemFlags; - } - - QVariant OptContentModel::headerData( int section, Qt::Orientation orientation, int role ) const - { - return QAbstractItemModel::headerData( section, orientation, role ); - } - - void OptContentModelPrivate::addChild( OptContentItem *parent, OptContentItem *child ) - { - parent->addChild( child ); - } - - OptContentItem* OptContentModelPrivate::itemFromRef( const QString &ref ) const - { - return m_optContentItems.value(ref, 0); - } - - OptContentItem* OptContentModelPrivate::nodeFromIndex(const QModelIndex &index, bool canBeNull) const - { - if (index.isValid()) { - return static_cast<OptContentItem *>(index.internalPointer()); - } else { - return canBeNull ? 0 : m_rootNode; - } - } -} - -#include "poppler-optcontent.moc" diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-optcontent.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-optcontent.h deleted file mode 100644 index 3f4785392ae..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-optcontent.h +++ /dev/null @@ -1,76 +0,0 @@ -/* poppler-optcontent.h: qt interface to poppler - * - * Copyright (C) 2007, Brad Hards <bradh@kde.org> - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef POPPLER_OPTCONTENT_H -#define POPPLER_OPTCONTENT_H - -#include <QtCore/QAbstractListModel> - -#include "poppler-export.h" - -class OCGs; - -namespace Poppler -{ - class Document; - class OptContentModelPrivate; - - /** - * \brief Model for optional content - * - * OptContentModel is an item model representing the optional content items - * that can be found in PDF documents. - * - * The model offers a mostly read-only display of the data, allowing to - * enable/disable some contents setting the Qt::CheckStateRole data role. - * - * \since 0.8 - */ - class POPPLER_QT4_EXPORT OptContentModel : public QAbstractItemModel - { - friend class Document; - - Q_OBJECT - - public: - virtual ~OptContentModel(); - - QModelIndex index(int row, int column, const QModelIndex &parent) const; - QModelIndex parent(const QModelIndex &child) const; - - int rowCount(const QModelIndex &parent = QModelIndex()) const; - int columnCount(const QModelIndex &parent) const; - - QVariant data(const QModelIndex &index, int role) const; - virtual bool setData ( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole ); - - Qt::ItemFlags flags ( const QModelIndex & index ) const; - - virtual QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const; - - private: - OptContentModel( OCGs *optContent, QObject *parent = 0); - - friend class OptContentModelPrivate; - OptContentModelPrivate *d; - }; -} - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-page-private.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-page-private.h deleted file mode 100644 index ecdca1702a0..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-page-private.h +++ /dev/null @@ -1,49 +0,0 @@ -/* poppler-page.cc: qt interface to poppler - * Copyright (C) 2005, Net Integration Technologies, Inc. - * Copyright (C) 2007, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef _POPPLER_PAGE_PRIVATE_H_ -#define _POPPLER_PAGE_PRIVATE_H_ - -class QRectF; - -class LinkAction; -class Page; - -namespace Poppler -{ - -class DocumentData; -class PageTransition; - -class PageData { -public: - Link* convertLinkActionToLink(::LinkAction * a, const QRectF &linkArea); - - DocumentData *parentDoc; - ::Page *page; - int index; - PageTransition *transition; - - static Link* convertLinkActionToLink(::LinkAction * a, DocumentData *parentDoc, const QRectF &linkArea); -}; - -} - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-page-transition-private.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-page-transition-private.h deleted file mode 100644 index 63febb09619..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-page-transition-private.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2005, Albert Astals Cid - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -class Object; - -namespace Poppler { - -class PageTransitionParams { - public: - Object *dictObj; -}; - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-page-transition.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-page-transition.cc deleted file mode 100644 index cde8818d67b..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-page-transition.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* PageTransition.cc - * Copyright (C) 2005, Net Integration Technologies, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "PageTransition.h" -#include "poppler-page-transition.h" -#include "poppler-page-transition-private.h" - -namespace Poppler { - -class PageTransitionData -{ - public: - PageTransitionData(Object *trans) - { - pt = new ::PageTransition(trans); - } - - PageTransitionData(const PageTransitionData &ptd) - { - pt = new ::PageTransition(*ptd.pt); - } - - ~PageTransitionData() - { - delete pt; - } - - ::PageTransition *pt; -}; - -PageTransition::PageTransition(const PageTransitionParams ¶ms) -{ - data = new PageTransitionData(params.dictObj); -} - -PageTransition::PageTransition(const PageTransition &pt) -{ - data = new PageTransitionData(*pt.data); -} - -PageTransition::~PageTransition() -{ - delete data; -} - -PageTransition::Type PageTransition::type() const -{ - return (Poppler::PageTransition::Type)data->pt->getType(); -} - -int PageTransition::duration() const -{ - return data->pt->getDuration(); -} - -PageTransition::Alignment PageTransition::alignment() const -{ - return (Poppler::PageTransition::Alignment)data->pt->getAlignment(); -} - -PageTransition::Direction PageTransition::direction() const -{ - return (Poppler::PageTransition::Direction)data->pt->getDirection(); -} - -int PageTransition::angle() const -{ - return data->pt->getAngle(); -} - -double PageTransition::scale() const -{ - return data->pt->getScale(); -} -bool PageTransition::isRectangular() const -{ - return data->pt->isRectangular(); -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-page-transition.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-page-transition.h deleted file mode 100644 index e7f39e27c6a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-page-transition.h +++ /dev/null @@ -1,148 +0,0 @@ -/* PageTransition.h - * Copyright (C) 2005, Net Integration Technologies, Inc. - * Copyright (C) 2005, Brad Hards <bradh@frogmouth.net> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __PAGETRANSITION_X_H__ -#define __PAGETRANSITION_X_H__ - -#include "poppler-export.h" - -namespace Poppler { - -class PageTransitionParams; -class PageTransitionData; - -/** - \brief Describes how a PDF file viewer shall perform the transition - from one page to another - - In PDF files there is a way to specify if the viewer shall use - certain effects to perform the transition from one page to - another. This feature can be used, e.g., in a PDF-based beamer - presentation. - - This utility class represents the transition effect, and can be - used to extract the information from a PDF object. -*/ - - -class POPPLER_QT4_EXPORT PageTransition { - public: - - /** \brief transition effect that shall be used - */ - // if changed remember to keep in sync with PageTransition.h enum - enum Type { - Replace = 0, - Split, - Blinds, - Box, - Wipe, - Dissolve, - Glitter, - Fly, - Push, - Cover, - Uncover, - Fade - }; - - /** \brief alignment of the transition effect that shall be used - */ - // if changed remember to keep in sync with PageTransition.h enum - enum Alignment { - Horizontal = 0, - Vertical - }; - - /** \brief direction of the transition effect that shall be used - */ - // if changed remember to keep in sync with PageTransition.h enum - enum Direction { - Inward = 0, - Outward - }; - - /** \brief Construct a new PageTransition object from a page dictionary. - - Users of the library will rarely need to construct a - PageTransition object themselves. Instead, the method - Poppler::Page::transition() can be used to find out if a certain - transition effect is specified. - - @warning In case or error, this method will print an error message to stderr, - and construct a default object. - - @param params an object whose dictionary will be read and - parsed. This must be a valid object, whose dictionaries are - accessed by the constructor. The object is only accessed by this - constructor, and may be deleted after the constructor returns. - */ - PageTransition(const PageTransitionParams ¶ms); - - /** \brief copy constructor */ - PageTransition(const PageTransition &pt); - - /** - Destructor - */ - ~PageTransition(); - - /** - \brief Get type of the transition. - */ - Type type() const; - - /** - \brief Get duration of the transition in seconds. - */ - int duration() const; - - /** - \brief Get dimension in which the transition effect occurs. - */ - Alignment alignment() const; - - /** - \brief Get direction of motion of the transition effect. - */ - Direction direction() const; - - /** - \brief Get direction in which the transition effect moves. - */ - int angle() const; - - /** - \brief Get starting or ending scale. - */ - double scale() const; - - /** - \brief Returns true if the area to be flown is rectangular and - opaque. - */ - bool isRectangular() const; - - private: - PageTransitionData *data; -}; - -} - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-page.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-page.cc deleted file mode 100644 index 9e889ce4c36..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-page.cc +++ /dev/null @@ -1,1325 +0,0 @@ -/* poppler-page.cc: qt interface to poppler - * Copyright (C) 2005, Net Integration Technologies, Inc. - * Copyright (C) 2005, Brad Hards <bradh@frogmouth.net> - * Copyright (C) 2005-2009, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2005, Stefan Kebekus <stefan.kebekus@math.uni-koeln.de> - * Copyright (C) 2006-2009, Pino Toscano <pino@kde.org> - * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org> - * Copyright (C) 2009 Shawn Rutledge <shawn.t.rutledge@gmail.com> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include <poppler-qt4.h> - -#include <QtCore/QHash> -#include <QtCore/QMap> -#include <QtCore/QVarLengthArray> -#include <QtGui/QImage> -#include <QtGui/QPainter> - -#include <config.h> -#include <PDFDoc.h> -#include <Catalog.h> -#include <Form.h> -#include <ErrorCodes.h> -#include <TextOutputDev.h> -#include <Annot.h> -#include <Link.h> -#if defined(HAVE_SPLASH) -#include <SplashOutputDev.h> -#include <splash/SplashBitmap.h> -#include <ArthurOutputDev.h> -#endif - -#include "poppler-private.h" -#include "poppler-page-transition-private.h" -#include "poppler-page-private.h" -#include "poppler-link-extractor-private.h" -#include "poppler-annotation-helper.h" -#include "poppler-annotation-private.h" -#include "poppler-form.h" - -namespace Poppler { - -class DummyAnnotation : public Annotation -{ - public: - DummyAnnotation() - : Annotation( *new AnnotationPrivate() ) - { - } - - virtual SubType subType() const { return A_BASE; } -}; - -Link* PageData::convertLinkActionToLink(::LinkAction * a, const QRectF &linkArea) -{ - return convertLinkActionToLink(a, parentDoc, linkArea); -} - -Link* PageData::convertLinkActionToLink(::LinkAction * a, DocumentData *parentDoc, const QRectF &linkArea) -{ - if ( !a ) - return NULL; - - Link * popplerLink = NULL; - switch ( a->getKind() ) - { - case actionGoTo: - { - LinkGoTo * g = (LinkGoTo *) a; - const LinkDestinationData ldd( g->getDest(), g->getNamedDest(), parentDoc, false ); - // create link: no ext file, namedDest, object pointer - popplerLink = new LinkGoto( linkArea, QString::null, LinkDestination( ldd ) ); - } - break; - - case actionGoToR: - { - LinkGoToR * g = (LinkGoToR *) a; - // copy link file - const QString fileName = UnicodeParsedString( g->getFileName() ); - const LinkDestinationData ldd( g->getDest(), g->getNamedDest(), parentDoc, !fileName.isEmpty() ); - // ceate link: fileName, namedDest, object pointer - popplerLink = new LinkGoto( linkArea, fileName, LinkDestination( ldd ) ); - } - break; - - case actionLaunch: - { - LinkLaunch * e = (LinkLaunch *)a; - GooString * p = e->getParams(); - popplerLink = new LinkExecute( linkArea, e->getFileName()->getCString(), p ? p->getCString() : 0 ); - } - break; - - case actionNamed: - { - const char * name = ((LinkNamed *)a)->getName()->getCString(); - if ( !strcmp( name, "NextPage" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::PageNext ); - else if ( !strcmp( name, "PrevPage" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::PagePrev ); - else if ( !strcmp( name, "FirstPage" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::PageFirst ); - else if ( !strcmp( name, "LastPage" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::PageLast ); - else if ( !strcmp( name, "GoBack" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::HistoryBack ); - else if ( !strcmp( name, "GoForward" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::HistoryForward ); - else if ( !strcmp( name, "Quit" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::Quit ); - else if ( !strcmp( name, "GoToPage" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::GoToPage ); - else if ( !strcmp( name, "Find" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::Find ); - else if ( !strcmp( name, "FullScreen" ) ) - popplerLink = new LinkAction( linkArea, LinkAction::Presentation ); - else if ( !strcmp( name, "Close" ) ) - { - // acroread closes the document always, doesnt care whether - // its presentation mode or not - // popplerLink = new LinkAction( linkArea, LinkAction::EndPresentation ); - popplerLink = new LinkAction( linkArea, LinkAction::Close ); - } - else - { - // TODO - } - } - break; - - case actionURI: - { - popplerLink = new LinkBrowse( linkArea, ((LinkURI *)a)->getURI()->getCString() ); - } - break; - - case actionSound: - { - ::LinkSound *ls = (::LinkSound *)a; - popplerLink = new LinkSound( linkArea, ls->getVolume(), ls->getSynchronous(), ls->getRepeat(), ls->getMix(), new SoundObject( ls->getSound() ) ); - } - break; - - case actionJavaScript: - { - ::LinkJavaScript *ljs = (::LinkJavaScript *)a; - popplerLink = new LinkJavaScript( linkArea, UnicodeParsedString(ljs->getScript()) ); - } - break; - - case actionMovie: -/* TODO this (Movie link) - m_type = Movie; - LinkMovie * m = (LinkMovie *) a; - // copy Movie parameters (2 IDs and a const char *) - Ref * r = m->getAnnotRef(); - m_refNum = r->num; - m_refGen = r->gen; - copyString( m_uri, m->getTitle()->getCString() ); -*/ break; - - case actionUnknown: - break; - } - - return popplerLink; -} - - -Page::Page(DocumentData *doc, int index) { - m_page = new PageData(); - m_page->index = index; - m_page->parentDoc = doc; - m_page->page = doc->doc->getCatalog()->getPage(m_page->index + 1); - m_page->transition = 0; -} - -Page::~Page() -{ - delete m_page->transition; - delete m_page; -} - -QImage Page::renderToImage(double xres, double yres, int x, int y, int w, int h, Rotation rotate) const -{ - int rotation = (int)rotate * 90; - QImage img; - switch(m_page->parentDoc->m_backend) - { - case Poppler::Document::SplashBackend: - { -#if defined(HAVE_SPLASH) - SplashOutputDev *splash_output = static_cast<SplashOutputDev *>(m_page->parentDoc->getOutputDev()); - - m_page->parentDoc->doc->displayPageSlice(splash_output, m_page->index + 1, xres, yres, - rotation, false, true, false, x, y, w, h); - - SplashBitmap *bitmap = splash_output->getBitmap(); - int bw = bitmap->getWidth(); - int bh = bitmap->getHeight(); - - SplashColorPtr dataPtr = splash_output->getBitmap()->getDataPtr(); - - if (QSysInfo::BigEndian == QSysInfo::ByteOrder) - { - uchar c; - int count = bw * bh * 4; - for (int k = 0; k < count; k += 4) - { - c = dataPtr[k]; - dataPtr[k] = dataPtr[k+3]; - dataPtr[k+3] = c; - - c = dataPtr[k+1]; - dataPtr[k+1] = dataPtr[k+2]; - dataPtr[k+2] = c; - } - } - - // construct a qimage SHARING the raw bitmap data in memory - QImage tmpimg( dataPtr, bw, bh, QImage::Format_ARGB32 ); - img = tmpimg.copy(); - // unload underlying xpdf bitmap - splash_output->startPage( 0, NULL ); -#endif - break; - } - case Poppler::Document::ArthurBackend: - { -#if defined(HAVE_SPLASH) - QSize size = pageSize(); - QImage tmpimg(w == -1 ? qRound( size.width() * xres / 72.0 ) : w, h == -1 ? qRound( size.height() * yres / 72.0 ) : h, QImage::Format_ARGB32); - - QPainter painter(&tmpimg); - if (m_page->parentDoc->m_hints & Document::Antialiasing) - painter.setRenderHint(QPainter::Antialiasing); - if (m_page->parentDoc->m_hints & Document::TextAntialiasing) - painter.setRenderHint(QPainter::TextAntialiasing); - painter.save(); - painter.translate(x == -1 ? 0 : -x, y == -1 ? 0 : -y); - ArthurOutputDev arthur_output(&painter); - arthur_output.startDoc(m_page->parentDoc->doc->getXRef()); - m_page->parentDoc->doc->displayPageSlice(&arthur_output, - m_page->index + 1, - xres, - yres, - rotation, - false, - true, - false, - x, - y, - w, - h); - painter.restore(); - painter.end(); - img = tmpimg; -#endif - break; - } - } - - return img; -} - -QImage Page::thumbnail() const -{ - unsigned char* data = 0; - int w = 0; - int h = 0; - int rowstride = 0; - GBool r = m_page->page->loadThumb(&data, &w, &h, &rowstride); - QImage ret; - if (r) - { - // first construct a temporary image with the data got, - // then force a copy of it so we can free the raw thumbnail data - ret = QImage(data, w, h, rowstride, QImage::Format_RGB888).copy(); - gfree(data); - } - return ret; -} - -QString Page::text(const QRectF &r) const -{ - TextOutputDev *output_dev; - GooString *s; - PDFRectangle *rect; - QString result; - - output_dev = new TextOutputDev(0, gFalse, gFalse, gFalse); - m_page->parentDoc->doc->displayPageSlice(output_dev, m_page->index + 1, 72, 72, - 0, false, true, false, -1, -1, -1, -1); - if (r.isNull()) - { - rect = m_page->page->getCropBox(); - s = output_dev->getText(rect->x1, rect->y1, rect->x2, rect->y2); - } - else - { - s = output_dev->getText(r.left(), r.top(), r.right(), r.bottom()); - } - - result = QString::fromUtf8(s->getCString()); - - delete output_dev; - delete s; - return result; -} - -bool Page::search(const QString &text, QRectF &rect, SearchDirection direction, SearchMode caseSensitive, Rotation rotate) const -{ - const QChar * str = text.unicode(); - int len = text.length(); - QVector<Unicode> u(len); - for (int i = 0; i < len; ++i) u[i] = str[i].unicode(); - - GBool sCase; - if (caseSensitive == CaseSensitive) sCase = gTrue; - else sCase = gFalse; - - bool found = false; - double sLeft, sTop, sRight, sBottom; - sLeft = rect.left(); - sTop = rect.top(); - sRight = rect.right(); - sBottom = rect.bottom(); - - int rotation = (int)rotate * 90; - - // fetch ourselves a textpage - TextOutputDev td(NULL, gTrue, gFalse, gFalse); - m_page->parentDoc->doc->displayPage( &td, m_page->index + 1, 72, 72, rotation, false, true, false ); - TextPage *textPage=td.takeText(); - - if (direction == FromTop) - found = textPage->findText( u.data(), len, - gTrue, gTrue, gFalse, gFalse, sCase, gFalse, &sLeft, &sTop, &sRight, &sBottom ); - else if ( direction == NextResult ) - found = textPage->findText( u.data(), len, - gFalse, gTrue, gTrue, gFalse, sCase, gFalse, &sLeft, &sTop, &sRight, &sBottom ); - else if ( direction == PreviousResult ) - found = textPage->findText( u.data(), len, - gFalse, gTrue, gTrue, gFalse, sCase, gTrue, &sLeft, &sTop, &sRight, &sBottom ); - - textPage->decRefCnt(); - - rect.setLeft( sLeft ); - rect.setTop( sTop ); - rect.setRight( sRight ); - rect.setBottom( sBottom ); - - return found; -} - -QList<TextBox*> Page::textList(Rotation rotate) const -{ - TextOutputDev *output_dev; - - QList<TextBox*> output_list; - - output_dev = new TextOutputDev(0, gFalse, gFalse, gFalse); - - int rotation = (int)rotate * 90; - - m_page->parentDoc->doc->displayPageSlice(output_dev, m_page->index + 1, 72, 72, - rotation, false, false, false, -1, -1, -1, -1); - - TextWordList *word_list = output_dev->makeWordList(); - - if (!word_list) { - delete output_dev; - return output_list; - } - - QHash<TextWord *, TextBox*> wordBoxMap; - - for (int i = 0; i < word_list->getLength(); i++) { - TextWord *word = word_list->get(i); - GooString *gooWord = word->getText(); - QString string = QString::fromUtf8(gooWord->getCString()); - delete gooWord; - double xMin, yMin, xMax, yMax; - word->getBBox(&xMin, &yMin, &xMax, &yMax); - - TextBox* text_box = new TextBox(string, QRectF(xMin, yMin, xMax-xMin, yMax-yMin)); - text_box->m_data->hasSpaceAfter = word->hasSpaceAfter() == gTrue; - text_box->m_data->charBBoxes.reserve(word->getLength()); - for (int j = 0; j < word->getLength(); ++j) - { - word->getCharBBox(j, &xMin, &yMin, &xMax, &yMax); - text_box->m_data->charBBoxes.append(QRectF(xMin, yMin, xMax-xMin, yMax-yMin)); - } - - wordBoxMap.insert(word, text_box); - - output_list.append(text_box); - } - - for (int i = 0; i < word_list->getLength(); i++) { - TextWord *word = word_list->get(i); - TextBox* text_box = wordBoxMap.value(word); - text_box->m_data->nextWord = wordBoxMap.value(word->nextWord()); - } - - delete word_list; - delete output_dev; - - return output_list; -} - -PageTransition *Page::transition() const -{ - if (!m_page->transition) { - Object o; - PageTransitionParams params; - params.dictObj = m_page->page->getTrans(&o); - if (params.dictObj->isDict()) m_page->transition = new PageTransition(params); - o.free(); - } - return m_page->transition; -} - -Link *Page::action( PageAction act ) const -{ - if ( act == Page::Opening || act == Page::Closing ) - { - Object o; - m_page->page->getActions(&o); - if (!o.isDict()) - { - o.free(); - return 0; - } - Dict *dict = o.getDict(); - Object o2; - const char *key = act == Page::Opening ? "O" : "C"; - dict->lookup((char*)key, &o2); - ::LinkAction *lact = ::LinkAction::parseAction(&o2, m_page->parentDoc->doc->getCatalog()->getBaseURI() ); - o2.free(); - o.free(); - Link *popplerLink = NULL; - if (lact != NULL) - { - popplerLink = m_page->convertLinkActionToLink(lact, QRectF()); - delete lact; - } - return popplerLink; - } - return 0; -} - -QSizeF Page::pageSizeF() const -{ - Page::Orientation orient = orientation(); - if ( ( Page::Landscape == orient ) || (Page::Seascape == orient ) ) { - return QSizeF( m_page->page->getCropHeight(), m_page->page->getCropWidth() ); - } else { - return QSizeF( m_page->page->getCropWidth(), m_page->page->getCropHeight() ); - } -} - -QSize Page::pageSize() const -{ - return pageSizeF().toSize(); -} - -Page::Orientation Page::orientation() const -{ - const int rotation = m_page->page->getRotate(); - switch (rotation) { - case 90: - return Page::Landscape; - break; - case 180: - return Page::UpsideDown; - break; - case 270: - return Page::Seascape; - break; - default: - return Page::Portrait; - } -} - -void Page::defaultCTM(double *CTM, double dpiX, double dpiY, int rotate, bool upsideDown) -{ - m_page->page->getDefaultCTM(CTM, dpiX, dpiY, rotate, gFalse, upsideDown); -} - -QList<Link*> Page::links() const -{ - LinkExtractorOutputDev link_dev(m_page); - m_page->parentDoc->doc->processLinks(&link_dev, m_page->index + 1); - QList<Link*> popplerLinks = link_dev.links(); - - return popplerLinks; -} - -QList<Annotation*> Page::annotations() const -{ - ::Page *pdfPage = m_page->page; - Annots* annots = pdfPage->getAnnots(m_page->parentDoc->doc->getCatalog()); - const uint numAnnotations = annots->getNumAnnots(); - if ( numAnnotations == 0 ) - { - delete annots; - return QList<Annotation*>(); - } - - // ID to Annotation/PopupWindow maps - QMap< int, Annotation * > annotationsMap; - QHash< AnnotPopup *, PopupWindow * > popupsMap; - // lists of Windows and Revisions that needs resolution - QLinkedList< ResolveRevision > resolveRevList; - QLinkedList< ResolveWindow > resolvePopList; - QLinkedList< PostProcessText > ppTextList; - - // build a normalized transform matrix for this page at 100% scale - GfxState * gfxState = new GfxState( 72.0, 72.0, pdfPage->getCropBox(), pdfPage->getRotate(), gTrue ); - double * gfxCTM = gfxState->getCTM(); - double MTX[6]; - for ( int i = 0; i < 6; i+=2 ) - { - MTX[i] = gfxCTM[i] / pdfPage->getCropWidth(); - MTX[i+1] = gfxCTM[i+1] / pdfPage->getCropHeight(); - } - delete gfxState; - - /** 1 - PARSE ALL ANNOTATIONS AND POPUPS FROM THE PAGE */ - for ( uint j = 0; j < numAnnotations; j++ ) - { - // get the j-th annotation - Annot * ann = annots->getAnnot( j ); - if ( !ann ) - { - qDebug() << "Annot" << j << "is null."; - continue; - } - - Annotation * annotation = 0; - int annotID = ann->getId(); - AnnotMarkup * markupann = dynamic_cast< AnnotMarkup * >( ann ); - bool addToPage = true; // Popup annots are added to custom queue - - /** 1.1. GET Subtype */ - Annot::AnnotSubtype subType = ann->getType(); - - /** 1.2. CREATE Annotation / PopupWindow and PARSE specific params */ - switch ( subType ) - { - case Annot::typeText: - { - // parse TextAnnotation params - AnnotText * textann = static_cast< AnnotText * >( ann ); - TextAnnotation * t = new TextAnnotation(); - annotation = t; - // -> textType - t->setTextType( TextAnnotation::Linked ); - // -> textIcon - t->setTextIcon( QString::fromLatin1( textann->getIcon()->getCString() ) ); - // request for postprocessing window geometry - PostProcessText request; - request.textAnnotation = t; - request.opened = textann->getOpen(); - ppTextList.append( request ); - break; - } - case Annot::typeFreeText: - { - // parse TextAnnotation params - AnnotFreeText * textann = static_cast< AnnotFreeText * >( ann ); - TextAnnotation * t = new TextAnnotation(); - annotation = t; - // -> textType - t->setTextType( TextAnnotation::InPlace ); -#if 0 - // -> textFont - QString textFormat; - XPDFReader::lookupString( annotDict, "DA", textFormat ); - // TODO, fill t->textFont using textFormat if not empty -#endif - // -> inplaceAlign - t->setInplaceAlign( textann->getQuadding() ); - // -> inplaceText (simple) - QString tmpstring; - GooString *styleString = textann->getStyleString(); - if ( styleString ) - tmpstring = UnicodeParsedString( styleString ); -#if 0 - // -> inplaceText (complex override) - XPDFReader::lookupString( annotDict, "RC", tmpstring ); -#endif - t->setInplaceText( tmpstring ); - // -> inplaceCallout - AnnotCalloutLine *callout = textann->getCalloutLine(); - if ( callout ) - { - QPointF tmppoint; - XPDFReader::transform( MTX, callout->getX1(), callout->getY1(), tmppoint ); - t->setCalloutPoint( 0, tmppoint ); - XPDFReader::transform( MTX, callout->getX2(), callout->getY2(), tmppoint ); - t->setCalloutPoint( 1, tmppoint ); - if ( AnnotCalloutMultiLine * callout_v6 = dynamic_cast< AnnotCalloutMultiLine * >( callout ) ) - { - XPDFReader::transform( MTX, callout_v6->getX3(), callout_v6->getY3(), tmppoint ); - t->setCalloutPoint( 2, tmppoint ); - } - } - // -> inplaceIntent - t->setInplaceIntent( (TextAnnotation::InplaceIntent)textann->getIntent() ); - AnnotBorderEffect *border_effect = textann->getBorderEffect(); - if ( border_effect ) - { - // -> style.effect - t->style.effect = (Annotation::LineEffect)border_effect->getEffectType(); - // -> style.effectIntensity - t->style.effectIntensity = (int)border_effect->getIntensity(); - } - break; - } - case Annot::typeLine: - { - // parse LineAnnotation params - AnnotLine * lineann = static_cast< AnnotLine * >( ann ); - LineAnnotation * l = new LineAnnotation(); - annotation = l; - - // -> linePoints - QLinkedList<QPointF> linePoints; - QPointF p; - XPDFReader::transform( MTX, lineann->getX1(), lineann->getY1(), p ); - linePoints.push_back( p ); - XPDFReader::transform( MTX, lineann->getX2(), lineann->getY2(), p ); - linePoints.push_back( p ); - l->setLinePoints( linePoints ); - // -> lineStartStyle - l->setLineStartStyle( (LineAnnotation::TermStyle)lineann->getStartStyle() ); - // -> lineEndStyle - l->setLineEndStyle( (LineAnnotation::TermStyle)lineann->getEndStyle() ); - // -> lineClosed - l->setLineClosed( false ); - // -> lineInnerColor - l->setLineInnerColor( convertAnnotColor( lineann->getInteriorColor() ) ); - // -> lineLeadingFwdPt - l->setLineLeadingForwardPoint( lineann->getLeaderLineLength() ); - // -> lineLeadingBackPt - l->setLineLeadingBackPoint( lineann->getLeaderLineExtension() ); - // -> lineShowCaption - l->setLineShowCaption( lineann->getCaption() ); - // -> lineIntent - l->setLineIntent( (LineAnnotation::LineIntent)( lineann->getIntent() + 1 ) ); - break; - } - case Annot::typePolygon: - case Annot::typePolyLine: - { - // parse LineAnnotation params - AnnotPolygon * polyann = static_cast< AnnotPolygon * >( ann ); - LineAnnotation * l = new LineAnnotation(); - annotation = l; - - // -> polyPoints - QLinkedList<QPointF> polyPoints; - AnnotPath * vertices = polyann->getVertices(); - for ( int i = 0; i < vertices->getCoordsLength(); ++i ) - { - QPointF p; - XPDFReader::transform( MTX, vertices->getX( i ), vertices->getY( i ), p ); - polyPoints.push_back( p ); - } - l->setLinePoints( polyPoints ); - // -> polyStartStyle - l->setLineStartStyle( (LineAnnotation::TermStyle)polyann->getStartStyle() ); - // -> polyEndStyle - l->setLineEndStyle( (LineAnnotation::TermStyle)polyann->getEndStyle() ); - // -> polyClosed - l->setLineClosed( subType == Annot::typePolygon ); - // -> polyInnerColor - l->setLineInnerColor( convertAnnotColor( polyann->getInteriorColor() ) ); - // -> polyIntent - switch ( polyann->getIntent() ) - { - case AnnotPolygon::polygonCloud: - l->setLineIntent( LineAnnotation::PolygonCloud ); - break; - case AnnotPolygon::polylineDimension: - case AnnotPolygon::polygonDimension: - l->setLineIntent( LineAnnotation::Dimension ); - break; - } - break; - } - case Annot::typeSquare: - case Annot::typeCircle: - { - // parse GeomAnnotation params - AnnotGeometry * geomann = static_cast< AnnotGeometry * >( ann ); - GeomAnnotation * g = new GeomAnnotation(); - annotation = g; - - // -> highlightType - if ( subType == Annot::typeSquare ) - g->setGeomType( GeomAnnotation::InscribedSquare ); - else if ( subType == Annot::typeCircle ) - g->setGeomType( GeomAnnotation::InscribedCircle ); - - // -> geomInnerColor - g->setGeomInnerColor( convertAnnotColor( geomann->getInteriorColor() ) ); - - AnnotBorderEffect *border_effect = geomann->getBorderEffect(); - if ( border_effect ) - { - // -> style.effect - g->style.effect = (Annotation::LineEffect)border_effect->getEffectType(); - // -> style.effectIntensity - g->style.effectIntensity = (int)border_effect->getIntensity(); - } - - // TODO RD - - break; - } - case Annot::typeHighlight: - case Annot::typeUnderline: - case Annot::typeSquiggly: - case Annot::typeStrikeOut: - { - AnnotTextMarkup * hlann = static_cast< AnnotTextMarkup * >( ann ); - HighlightAnnotation * h = new HighlightAnnotation(); - annotation = h; - - // -> highlightType - if ( subType == Annot::typeHighlight ) - h->setHighlightType( HighlightAnnotation::Highlight ); - else if ( subType == Annot::typeUnderline ) - h->setHighlightType( HighlightAnnotation::Underline ); - else if ( subType == Annot::typeSquiggly ) - h->setHighlightType( HighlightAnnotation::Squiggly ); - else if ( subType == Annot::typeStrikeOut ) - h->setHighlightType( HighlightAnnotation::StrikeOut ); - - // -> highlightQuads - AnnotQuadrilaterals *hlquads = hlann->getQuadrilaterals(); - if ( !hlquads || !hlquads->getQuadrilateralsLength() ) - { - qDebug() << "Not enough quads for a Highlight annotation."; - delete annotation; - continue; - } - QList< HighlightAnnotation::Quad > quads; - const int quadsCount = hlquads->getQuadrilateralsLength(); - for ( int q = 0; q < quadsCount; ++q ) - { - HighlightAnnotation::Quad quad; - XPDFReader::transform( MTX, hlquads->getX1( q ), hlquads->getY1( q ), quad.points[ 0 ] ); - XPDFReader::transform( MTX, hlquads->getX2( q ), hlquads->getY2( q ), quad.points[ 1 ] ); - XPDFReader::transform( MTX, hlquads->getX3( q ), hlquads->getY3( q ), quad.points[ 2 ] ); - XPDFReader::transform( MTX, hlquads->getX4( q ), hlquads->getY4( q ), quad.points[ 3 ] ); - // ### PDF1.6 specs says that point are in ccw order, but in fact - // points 3 and 4 are swapped in every PDF around! - QPointF tmpPoint = quad.points[ 2 ]; - quad.points[ 2 ] = quad.points[ 3 ]; - quad.points[ 3 ] = tmpPoint; - // initialize other properties and append quad - quad.capStart = true; // unlinked quads are always capped - quad.capEnd = true; // unlinked quads are always capped - quad.feather = 0.1; // default feather - quads.append( quad ); - } - h->setHighlightQuads( quads ); - break; - } - case Annot::typeStamp: - { - AnnotStamp * stampann = static_cast< AnnotStamp * >( ann ); - StampAnnotation * s = new StampAnnotation(); - annotation = s; - // -> stampIcon - s->setStampIconName( QString::fromLatin1( stampann->getIcon()->getCString() ) ); - break; - } - case Annot::typeInk: - { - // parse InkAnnotation params - AnnotInk * inkann = static_cast< AnnotInk * >( ann ); - InkAnnotation * k = new InkAnnotation(); - annotation = k; - - // -> inkPaths - AnnotPath ** paths = inkann->getInkList(); - if ( !paths || !inkann->getInkListLength() ) - { - qDebug() << "InkList not present for ink annot"; - delete annotation; - continue; - } - QList< QLinkedList<QPointF> > inkPaths; - const int pathsNumber = inkann->getInkListLength(); - for ( int m = 0; m < pathsNumber; m++ ) - { - // transform each path in a list of normalized points .. - QLinkedList<QPointF> localList; - AnnotPath * path = paths[ m ]; - const int pointsNumber = path ? path->getCoordsLength() : 0; - for ( int n = 0; n < pointsNumber; ++n ) - { - // get the x,y numbers for current point - double x = path->getX( n ); - double y = path->getY( n ); - // add normalized point to localList - QPointF np; - XPDFReader::transform( MTX, x, y, np ); - localList.push_back( np ); - } - // ..and add it to the annotation - inkPaths.push_back( localList ); - } - k->setInkPaths( inkPaths ); - break; - } - case Annot::typePopup: - { - AnnotPopup * popupann = static_cast< AnnotPopup * >( ann ); - - // create PopupWindow and add it to the popupsMap - PopupWindow * popup = new PopupWindow(); - popupsMap[ popupann ] = popup; - addToPage = false; - - // get window specific properties if any - popup->shown = popupann->getOpen(); - // no need to parse parent annotation id - //XPDFReader::lookupIntRef( annotDict, "Parent", popup->... ); - - // use the 'dummy annotation' for getting other parameters - popup->dummyAnnotation = new DummyAnnotation(); - annotation = popup->dummyAnnotation; - - break; - } - case Annot::typeLink: - { - // parse Link params - AnnotLink * linkann = static_cast< AnnotLink * >( ann ); - LinkAnnotation * l = new LinkAnnotation(); - annotation = l; - - // -> hlMode - l->setLinkHighlightMode( (LinkAnnotation::HighlightMode)linkann->getLinkEffect() ); - - // -> link region - // TODO - - // reading link action - if ( !linkann->getDest()->isNull() ) - { - ::LinkAction *act = ::LinkAction::parseDest( linkann->getDest() ); - Link * popplerLink = m_page->convertLinkActionToLink( act, QRectF() ); - delete act; - if ( popplerLink ) - { - l->setLinkDestination( popplerLink ); - } - } - - break; - } - case Annot::typeCaret: - { - // parse CaretAnnotation params - AnnotCaret * caretann = static_cast< AnnotCaret * >( ann ); - CaretAnnotation * c = new CaretAnnotation(); - annotation = c; - - // -> caretSymbol - c->setCaretSymbol( (CaretAnnotation::CaretSymbol)caretann->getSymbol() ); - - // TODO RD - - break; - } - case Annot::typeFileAttachment: - { - AnnotFileAttachment * attachann = static_cast< AnnotFileAttachment * >( ann ); - FileAttachmentAnnotation * f = new FileAttachmentAnnotation(); - annotation = f; - // -> fileIcon - f->setFileIconName( QString::fromLatin1( attachann->getName()->getCString() ) ); - // -> embeddedFile - EmbFile *embfile = new EmbFile( attachann->getFile(), attachann->getContents() ); - f->setEmbeddedFile( new EmbeddedFile( embfile ) ); - break; - } - case Annot::typeSound: - { - AnnotSound * soundann = static_cast< AnnotSound * >( ann ); - SoundAnnotation * s = new SoundAnnotation(); - annotation = s; - - // -> soundIcon - s->setSoundIconName( QString::fromLatin1( soundann->getName()->getCString() ) ); - // -> sound - s->setSound( new SoundObject( soundann->getSound() ) ); - - break; - } - case Annot::typeMovie: - { - AnnotMovie * movieann = static_cast< AnnotMovie * >( ann ); - MovieAnnotation * m = new MovieAnnotation(); - annotation = m; - - // -> movie - MovieObject *movie = new MovieObject( movieann ); - m->setMovie( movie ); - // -> movieTitle - GooString * movietitle = movieann->getTitle(); - if ( movietitle ) - { - m->setMovieTitle( QString::fromLatin1( movietitle->getCString() ) ); - } - - break; - } - // special case for ignoring unknwon annotations - case Annot::typeUnknown: - continue; - default: - { -#define CASE_FOR_TYPE( thetype ) \ - case Annot::type ## thetype: \ - type = #thetype ; \ - break; - QByteArray type; - switch ( subType ) - { - CASE_FOR_TYPE( Widget ) - CASE_FOR_TYPE( Screen ) - CASE_FOR_TYPE( PrinterMark ) - CASE_FOR_TYPE( TrapNet ) - CASE_FOR_TYPE( Watermark ) - CASE_FOR_TYPE( 3D ) - default: type = QByteArray::number( subType ); - } - // MISSING: Widget, Screen, PrinterMark, TrapNet, Watermark, 3D - qDebug() << "Annotation" << type.constData() << "not supported."; - continue; -#undef CASE_FOR_TYPE - } - } - - /** 1.3. PARSE common parameters */ - // -> boundary - PDFRectangle *boundary = ann->getRect(); - // transform annotation rect to uniform coords - QPointF topLeft, bottomRight; - XPDFReader::transform( MTX, boundary->x1, boundary->y1, topLeft ); - XPDFReader::transform( MTX, boundary->x2, boundary->y2, bottomRight ); - QRectF boundaryRect; - boundaryRect.setTopLeft(topLeft); - boundaryRect.setBottomRight(bottomRight); - if ( boundaryRect.left() > boundaryRect.right() ) - { - double aux = boundaryRect.left(); - boundaryRect.setLeft( boundaryRect.right() ); - boundaryRect.setRight(aux); - } - if ( boundaryRect.top() > boundaryRect.bottom() ) - { - double aux = boundaryRect.top(); - boundaryRect.setTop( boundaryRect.bottom() ); - boundaryRect.setBottom(aux); - //annotation->rUnscaledWidth = (r[2] > r[0]) ? r[2] - r[0] : r[0] - r[2]; - //annotation->rUnscaledHeight = (r[3] > r[1]) ? r[3] - r[1] : r[1] - r[3]; - } - annotation->setBoundary( boundaryRect ); - // -> contents - annotation->setContents( UnicodeParsedString( ann->getContents() ) ); - // -> uniqueName - annotation->setUniqueName( UnicodeParsedString( ann->getName() ) ); - // -> modifyDate (and -> creationDate) - GooString *modDate = ann->getModified(); - if ( modDate ) - { - annotation->setModificationDate( convertDate( modDate->getCString() ) ); - } - if ( annotation->creationDate().isNull() && !annotation->modificationDate().isNull() ) - annotation->setCreationDate( annotation->modificationDate() ); - // -> flags: set the external attribute since it's embedded on file - int annoflags = 0; - annoflags |= Annotation::External; - // -> flags - int flags = ann->getFlags(); - if ( flags & Annot::flagHidden ) - annoflags |= Annotation::Hidden; - if ( flags & Annot::flagNoZoom ) - annoflags |= Annotation::FixedSize; - if ( flags & Annot::flagNoRotate ) - annoflags |= Annotation::FixedRotation; - if ( !( flags & Annot::flagPrint ) ) - annoflags |= Annotation::DenyPrint; - if ( flags & Annot::flagReadOnly ) - annoflags |= (Annotation::DenyWrite | Annotation::DenyDelete); - if ( flags & Annot::flagLocked ) - annoflags |= Annotation::DenyDelete; - if ( flags & Annot::flagToggleNoView ) - annoflags |= Annotation::ToggleHidingOnMouse; - annotation->setFlags( annoflags ); - // -> style - AnnotBorder *border = ann->getBorder(); - if ( border ) - { - if ( border->getType() == AnnotBorder::typeArray ) - { - AnnotBorderArray * border_array = static_cast< AnnotBorderArray * >( border ); - // -> style.xCorners - annotation->style.xCorners = border_array->getHorizontalCorner(); - // -> style.yCorners - annotation->style.yCorners = border_array->getVerticalCorner(); - } - // -> style.width - annotation->style.width = border->getWidth(); - // -> style.style - annotation->style.style = (Annotation::LineStyle)( 1 << border->getStyle() ); -#if 0 - // -> style.marks and style.spaces - // TODO - Object dashArray; - bsObj.getDict()->lookup( "D", &dashArray ); - if ( dashArray.isArray() ) - { - int dashMarks = 3; - int dashSpaces = 0; - Object intObj; - dashArray.arrayGet( 0, &intObj ); - if ( intObj.isInt() ) - dashMarks = intObj.getInt(); - intObj.free(); - dashArray.arrayGet( 1, &intObj ); - if ( intObj.isInt() ) - dashSpaces = intObj.getInt(); - intObj.free(); - annotation->style.marks = dashMarks; - annotation->style.spaces = dashSpaces; - } -#endif - } - // -> style.color - annotation->style.color = convertAnnotColor( ann->getColor() ); - - /** 1.4. PARSE markup { common, Popup, Revision } parameters */ - if ( markupann ) - { - // -> creationDate - GooString *createDate = markupann->getDate(); - if ( createDate ) - { - annotation->setCreationDate( convertDate( createDate->getCString() ) ); - } - // -> style.opacity - annotation->style.opacity = markupann->getOpacity(); - // -> window.title and author - annotation->window.title = UnicodeParsedString( markupann->getLabel() ); - annotation->setAuthor( annotation->window.title ); - // -> window.summary - annotation->window.summary = UnicodeParsedString( markupann->getSubject() ); -#if 0 - // -> window.text - // TODO - XPDFReader::lookupString( annotDict, "RC", annotation->window.text ); -#endif - - // if a popup is referenced, schedule for resolving it later - AnnotPopup *popup = markupann->getPopup(); - if ( popup ) - { - ResolveWindow request; - request.popup = popup; - request.annotation = annotation; - resolvePopList.append( request ); - } - - // if an older version is referenced, schedule for reparenting - int parentID = markupann->getInReplyToID(); - if ( parentID ) - { - ResolveRevision request; - request.nextAnnotation = annotation; - request.nextAnnotationID = annotID; - request.prevAnnotationID = parentID; - - // -> request.nextScope - request.nextScope = Annotation::Reply; - switch ( markupann->getReplyTo() ) - { - case AnnotMarkup::replyTypeR: - request.nextScope = Annotation::Reply; - break; - case AnnotMarkup::replyTypeGroup: - request.nextScope = Annotation::Group; - break; - } - - // -> revision.type (StateModel is deduced from type, not parsed) - request.nextType = Annotation::None; - if ( subType == Annot::typeText ) - { - AnnotText * textann = static_cast< AnnotText * >( ann ); - switch ( textann->getState() ) - { - case AnnotText::stateMarked: - request.nextType = Annotation::Marked; - break; - case AnnotText::stateUnmarked: - request.nextType = Annotation::Unmarked; - break; - case AnnotText::stateAccepted: - request.nextType = Annotation::Accepted; - break; - case AnnotText::stateRejected: - request.nextType = Annotation::Rejected; - break; - case AnnotText::stateCancelled: - request.nextType = Annotation::Cancelled; - break; - case AnnotText::stateCompleted: - request.nextType = Annotation::Completed; - break; - case AnnotText::stateNone: - case AnnotText::stateUnknown: - ; - } - } - - // schedule for later reparenting - resolveRevList.append( request ); - } - } - - /** 1.5. ADD ANNOTATION to the annotationsMap */ - if ( addToPage ) - { - if ( annotationsMap.contains( annotID ) ) - qDebug() << "Clash for annotations with ID:" << annotID; - annotationsMap[ annotID ] = annotation; - } - } // end Annotation/PopupWindow parsing loop - - /** 2 - RESOLVE POPUPS (popup.* -> annotation.window) */ - if ( !resolvePopList.isEmpty() && !popupsMap.isEmpty() ) - { - QLinkedList< ResolveWindow >::iterator it = resolvePopList.begin(), - end = resolvePopList.end(); - for ( ; it != end; ++it ) - { - const ResolveWindow & request = *it; - if ( !popupsMap.contains( request.popup ) ) - // warn aboud problems in popup resolving logic - qDebug() << "Cannot resolve popup" - << request.popup << "."; - else - { - // set annotation's window properties taking ones from popup - PopupWindow * pop = popupsMap[ request.popup ]; - Annotation * pa = pop->dummyAnnotation; - Annotation::Window & w = request.annotation->window; - - // transfer properties to Annotation's window - w.flags = pa->flags() & (Annotation::Hidden | - Annotation::FixedSize | Annotation::FixedRotation); - if ( !pop->shown ) - w.flags |= Annotation::Hidden; - w.topLeft.setX(pa->boundary().left()); - w.topLeft.setY(pa->boundary().top()); - w.width = (int)( pa->boundary().right() - pa->boundary().left() ); - w.height = (int)( pa->boundary().bottom() - pa->boundary().top() ); - } - } - - // clear data - QHash< AnnotPopup *, PopupWindow * >::Iterator dIt = popupsMap.begin(), dEnd = popupsMap.end(); - for ( ; dIt != dEnd; ++dIt ) - { - PopupWindow * p = dIt.value(); - delete p->dummyAnnotation; - delete p; - } - } - - /** 3 - RESOLVE REVISIONS (parent.revisions.append( children )) */ - if ( !resolveRevList.isEmpty() ) - { - // append children to parents - QVarLengthArray< int > excludeIDs( resolveRevList.count() ); // can't even reach this size - int excludeIndex = 0; // index in excludeIDs array - QLinkedList< ResolveRevision >::iterator it = resolveRevList.begin(), end = resolveRevList.end(); - for ( ; it != end; ++it ) - { - const ResolveRevision & request = *it; - int parentID = request.prevAnnotationID; - if ( !annotationsMap.contains( parentID ) ) - // warn about problems in reparenting logic - qDebug() << "Cannot reparent annotation to" - << parentID << "."; - else - { - // compile and add a Revision structure to the parent annotation - Annotation::Revision childRevision; - childRevision.annotation = request.nextAnnotation; - childRevision.scope = request.nextScope; - childRevision.type = request.nextType; - annotationsMap[ parentID ]->revisions().append( childRevision ); - // exclude child annotation from being rooted in page - excludeIDs[ excludeIndex++ ] = request.nextAnnotationID; - } - } - - // prevent children from being attached to page as roots - for ( int i = 0; i < excludeIndex; i++ ) - annotationsMap.remove( excludeIDs[ i ] ); - } - - /** 4 - POSTPROCESS TextAnnotations (when window geom is embedded) */ - if ( !ppTextList.isEmpty() ) - { - QLinkedList< PostProcessText >::const_iterator it = ppTextList.begin(), end = ppTextList.end(); - for ( ; it != end; ++it ) - { - const PostProcessText & request = *it; - Annotation::Window & window = request.textAnnotation->window; - // if not present, 'create' the window in-place over the annotation - if ( window.flags == -1 ) - { - window.flags = 0; - QRectF geom = request.textAnnotation->boundary(); - // initialize window geometry to annotation's one - window.width = (int)( geom.right() - geom.left() ); - window.height = (int)( geom.bottom() - geom.top() ); - window.topLeft.setX( geom.left() > 0.0 ? geom.left() : 0.0 ); - window.topLeft.setY( geom.top() > 0.0 ? geom.top() : 0.0 ); - } - // (pdf) if text is not 'opened', force window hiding. if the window - // was parsed from popup, the flag should already be set - if ( !request.opened && window.flags != -1 ) - window.flags |= Annotation::Hidden; - } - } - - delete annots; - /** 5 - finally RETURN ANNOTATIONS */ - return annotationsMap.values(); -} - -QList<FormField*> Page::formFields() const -{ - QList<FormField*> fields; - ::Page *p = m_page->page; - ::FormPageWidgets * form = p->getPageWidgets(); - int formcount = form->getNumWidgets(); - for (int i = 0; i < formcount; ++i) - { - ::FormWidget *fm = form->getWidget(i); - FormField * ff = NULL; - switch (fm->getType()) - { - case formButton: - { - ff = new FormFieldButton(m_page->parentDoc, p, static_cast<FormWidgetButton*>(fm)); - } - break; - - case formText: - { - ff = new FormFieldText(m_page->parentDoc, p, static_cast<FormWidgetText*>(fm)); - } - break; - - case formChoice: - { - ff = new FormFieldChoice(m_page->parentDoc, p, static_cast<FormWidgetChoice*>(fm)); - } - break; - - default: ; - } - - if (ff) - fields.append(ff); - } - - return fields; -} - -double Page::duration() const -{ - return m_page->page->getDuration(); -} - -QString Page::label() const -{ - GooString goo; - if (!m_page->parentDoc->doc->getCatalog()->indexToLabel(m_page->index, &goo)) - return QString(); - - return QString(goo.getCString()); -} - - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-pdf-converter.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-pdf-converter.cc deleted file mode 100644 index 9699b75bb6c..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-pdf-converter.cc +++ /dev/null @@ -1,115 +0,0 @@ -/* poppler-pdf-converter.cc: qt4 interface to poppler - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * Copyright (C) 2008, 2009, Albert Astals Cid <aacid@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-qt4.h" - -#include "poppler-private.h" -#include "poppler-converter-private.h" -#include "poppler-qiodeviceoutstream-private.h" - -#include <QtCore/QFile> - -#include <ErrorCodes.h> - -namespace Poppler { - -class PDFConverterPrivate : public BaseConverterPrivate -{ - public: - PDFConverterPrivate(); - - PDFConverter::PDFOptions opts; -}; - -PDFConverterPrivate::PDFConverterPrivate() - : BaseConverterPrivate(), opts(0) -{ -} - - -PDFConverter::PDFConverter(DocumentData *document) - : BaseConverter(*new PDFConverterPrivate()) -{ - Q_D(PDFConverter); - d->document = document; -} - -PDFConverter::~PDFConverter() -{ -} - -void PDFConverter::setPDFOptions(PDFConverter::PDFOptions options) -{ - Q_D(PDFConverter); - d->opts = options; -} - -PDFConverter::PDFOptions PDFConverter::pdfOptions() const -{ - Q_D(const PDFConverter); - return d->opts; -} - -bool PDFConverter::convert() -{ - Q_D(PDFConverter); - d->lastError = NoError; - - if (d->document->locked) - { - d->lastError = FileLockedError; - return false; - } - - QIODevice *dev = d->openDevice(); - if (!dev) - { - d->lastError = OpenOutputError; - return false; - } - - bool deleteFile = false; - if (QFile *file = qobject_cast<QFile*>(dev)) - deleteFile = !file->exists(); - - int errorCode = errNone; - QIODeviceOutStream stream(dev); - if (d->opts & WithChanges) - { - errorCode = d->document->doc->saveAs(&stream); - } - else - { - errorCode = d->document->doc->saveWithoutChangesAs(&stream); - } - d->closeDevice(); - if (errorCode != errNone) - { - if (deleteFile) - { - qobject_cast<QFile*>(dev)->remove(); - } - if (errorCode == errOpenFile) d->lastError = OpenOutputError; - else d->lastError = NotSupportedInputFileError; - } - - return (errorCode == errNone); -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-private.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-private.cc deleted file mode 100644 index 4612fcf20b9..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-private.cc +++ /dev/null @@ -1,220 +0,0 @@ -/* poppler-private.cc: qt interface to poppler - * Copyright (C) 2005, Net Integration Technologies, Inc. - * Copyright (C) 2006 by Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2008 by Pino Toscano <pino@kde.org> - * Inspired on code by - * Copyright (C) 2004 by Albert Astals Cid <tsdgeos@terra.es> - * Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-private.h" - -#include <QtCore/QByteArray> -#include <QtCore/QDebug> -#include <QtCore/QVariant> - -#include <Link.h> -#include <Outline.h> - -namespace Poppler { - - void qt4ErrorFunction(int pos, char *msg, va_list args) - { - QString emsg; - char buffer[1024]; // should be big enough - - if (pos >= 0) - { - emsg = QString::fromLatin1("Error (%1): ").arg(pos); - } - else - { - emsg = QString::fromLatin1("Error: "); - } - qvsnprintf(buffer, sizeof(buffer) - 1, msg, args); - emsg += QString::fromAscii(buffer); - qDebug() << qPrintable(emsg); - } - - QString unicodeToQString(Unicode* u, int len) { - QString ret; - ret.resize(len); - QChar* qch = (QChar*) ret.unicode(); - for (;len;--len) - *qch++ = (QChar) *u++; - return ret; - } - - QString UnicodeParsedString(GooString *s1) { - if ( !s1 || s1->getLength() == 0 ) - return QString(); - - GBool isUnicode; - int i; - Unicode u; - QString result; - if ( ( s1->getChar(0) & 0xff ) == 0xfe && ( s1->getLength() > 1 && ( s1->getChar(1) & 0xff ) == 0xff ) ) - { - isUnicode = gTrue; - i = 2; - } - else - { - isUnicode = gFalse; - i = 0; - } - while ( i < s1->getLength() ) - { - if ( isUnicode ) - { - u = ( ( s1->getChar(i) & 0xff ) << 8 ) | ( s1->getChar(i+1) & 0xff ); - i += 2; - } - else - { - u = s1->getChar(i) & 0xff; - ++i; - } - result += unicodeToQString( &u, 1 ); - } - return result; - } - - GooString *QStringToUnicodeGooString(const QString &s) { - int len = s.length() * 2 + 2; - char *cstring = (char *)gmallocn(len, sizeof(char)); - cstring[0] = 0xfe; - cstring[1] = 0xff; - for (int i = 0; i < s.length(); ++i) - { - cstring[2+i*2] = s.at(i).row(); - cstring[3+i*2] = s.at(i).cell(); - } - GooString *ret = new GooString(cstring, len); - gfree(cstring); - return ret; - } - - GooString *QStringToGooString(const QString &s) { - int len = s.length(); - char *cstring = (char *)gmallocn(s.length(), sizeof(char)); - for (int i = 0; i < len; ++i) - cstring[i] = s.at(i).unicode(); - GooString *ret = new GooString(cstring, len); - gfree(cstring); - return ret; - } - - void linkActionToTocItem( ::LinkAction * a, DocumentData * doc, QDomElement * e ) - { - if ( !a || !e ) - return; - - switch ( a->getKind() ) - { - case actionGoTo: - { - // page number is contained/referenced in a LinkGoTo - LinkGoTo * g = static_cast< LinkGoTo * >( a ); - LinkDest * destination = g->getDest(); - if ( !destination && g->getNamedDest() ) - { - // no 'destination' but an internal 'named reference'. we could - // get the destination for the page now, but it's VERY time consuming, - // so better storing the reference and provide the viewport on demand - GooString *s = g->getNamedDest(); - QChar *charArray = new QChar[s->getLength()]; - for (int i = 0; i < s->getLength(); ++i) charArray[i] = QChar(s->getCString()[i]); - QString aux(charArray, s->getLength()); - e->setAttribute( "DestinationName", aux ); - delete[] charArray; - } - else if ( destination && destination->isOk() ) - { - LinkDestinationData ldd(destination, NULL, doc, false); - e->setAttribute( "Destination", LinkDestination(ldd).toString() ); - } - break; - } - case actionGoToR: - { - // page number is contained/referenced in a LinkGoToR - LinkGoToR * g = static_cast< LinkGoToR * >( a ); - LinkDest * destination = g->getDest(); - if ( !destination && g->getNamedDest() ) - { - // no 'destination' but an internal 'named reference'. we could - // get the destination for the page now, but it's VERY time consuming, - // so better storing the reference and provide the viewport on demand - GooString *s = g->getNamedDest(); - QChar *charArray = new QChar[s->getLength()]; - for (int i = 0; i < s->getLength(); ++i) charArray[i] = QChar(s->getCString()[i]); - QString aux(charArray, s->getLength()); - e->setAttribute( "DestinationName", aux ); - delete[] charArray; - } - else if ( destination && destination->isOk() ) - { - LinkDestinationData ldd(destination, NULL, doc, g->getFileName() != 0); - e->setAttribute( "Destination", LinkDestination(ldd).toString() ); - } - e->setAttribute( "ExternalFileName", g->getFileName()->getCString() ); - break; - } - case actionURI: - { - LinkURI * u = static_cast< LinkURI * >( a ); - e->setAttribute( "DestinationURI", u->getURI()->getCString() ); - } - default: ; - } - } - - void DocumentData::addTocChildren( QDomDocument * docSyn, QDomNode * parent, GooList * items ) - { - int numItems = items->getLength(); - for ( int i = 0; i < numItems; ++i ) - { - // iterate over every object in 'items' - OutlineItem * outlineItem = (OutlineItem *)items->get( i ); - - // 1. create element using outlineItem's title as tagName - QString name; - Unicode * uniChar = outlineItem->getTitle(); - int titleLength = outlineItem->getTitleLength(); - name = unicodeToQString(uniChar, titleLength); - if ( name.isEmpty() ) - continue; - - QDomElement item = docSyn->createElement( name ); - parent->appendChild( item ); - - // 2. find the page the link refers to - ::LinkAction * a = outlineItem->getAction(); - linkActionToTocItem( a, this, &item ); - - item.setAttribute( "Open", QVariant( (bool)outlineItem->isOpen() ).toString() ); - - // 3. recursively descend over children - outlineItem->open(); - GooList * children = outlineItem->getKids(); - if ( children ) - addTocChildren( docSyn, &item, children ); - } - } - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-private.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-private.h deleted file mode 100644 index f148dbc70b7..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-private.h +++ /dev/null @@ -1,325 +0,0 @@ -/* poppler-private.h: qt interface to poppler - * Copyright (C) 2005, Net Integration Technologies, Inc. - * Copyright (C) 2005, 2008, Brad Hards <bradh@frogmouth.net> - * Copyright (C) 2006-2009 by Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2007-2009 by Pino Toscano <pino@kde.org> - * Inspired on code by - * Copyright (C) 2004 by Albert Astals Cid <tsdgeos@terra.es> - * Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef _POPPLER_PRIVATE_H_ -#define _POPPLER_PRIVATE_H_ - -#include <QtCore/QPointer> -#include <QtCore/QVector> - -#include <config.h> -#include <GfxState.h> -#include <GlobalParams.h> -#include <PDFDoc.h> -#include <FontInfo.h> -#include <OutputDev.h> -#include <Error.h> -#if defined(HAVE_SPLASH) -#include <SplashOutputDev.h> -#endif - -#include "poppler-qt4.h" - -class LinkDest; -class FormWidget; - -namespace Poppler { - - /* borrowed from kpdf */ - QString unicodeToQString(Unicode* u, int len); - - QString UnicodeParsedString(GooString *s1); - - GooString *QStringToUnicodeGooString(const QString &s); - - GooString *QStringToGooString(const QString &s); - - void qt4ErrorFunction(int pos, char *msg, va_list args); - - class LinkDestinationData - { - public: - LinkDestinationData( LinkDest *l, GooString *nd, Poppler::DocumentData *pdfdoc, bool external ) - : ld(l), namedDest(nd), doc(pdfdoc), externalDest(external) - { - } - - LinkDest *ld; - GooString *namedDest; - Poppler::DocumentData *doc; - bool externalDest; - }; - - class DocumentData { - public: - DocumentData(GooString *filePath, GooString *ownerPassword, GooString *userPassword) - { - doc = new PDFDoc(filePath, ownerPassword, userPassword); - init(ownerPassword, userPassword); - } - - DocumentData(const QByteArray &data, GooString *ownerPassword, GooString *userPassword) - { - Object obj; - fileContents = data; - obj.initNull(); - MemStream *str = new MemStream((char*)fileContents.data(), 0, fileContents.length(), &obj); - doc = new PDFDoc(str, ownerPassword, userPassword); - init(ownerPassword, userPassword); - } - - void init(GooString *ownerPassword, GooString *userPassword) - { - m_fontInfoIterator = 0; - m_backend = Document::SplashBackend; - m_outputDev = 0; - paperColor = Qt::white; - m_hints = 0; - m_optContentModel = 0; - // It might be more appropriate to delete these in PDFDoc - delete ownerPassword; - delete userPassword; - - if ( count == 0 ) - { - globalParams = new GlobalParams(); - setErrorFunction(qt4ErrorFunction); - } - count ++; - } - - ~DocumentData() - { - qDeleteAll(m_embeddedFiles); - delete (OptContentModel *)m_optContentModel; - delete doc; - delete m_outputDev; - delete m_fontInfoIterator; - - count --; - if ( count == 0 ) delete globalParams; - } - - OutputDev *getOutputDev() - { - if (!m_outputDev) - { - switch (m_backend) - { - case Document::ArthurBackend: - // create a splash backend even in case of the Arthur Backend - case Document::SplashBackend: - { -#if defined(HAVE_SPLASH) - SplashColor bgColor; - bgColor[0] = paperColor.blue(); - bgColor[1] = paperColor.green(); - bgColor[2] = paperColor.red(); - GBool AA = m_hints & Document::TextAntialiasing ? gTrue : gFalse; - SplashOutputDev * splashOutputDev = new SplashOutputDev(splashModeXBGR8, 4, gFalse, bgColor, gTrue, AA); - splashOutputDev->setVectorAntialias(m_hints & Document::Antialiasing ? gTrue : gFalse); - splashOutputDev->setFreeTypeHinting(m_hints & Document::TextHinting ? gTrue : gFalse); - splashOutputDev->startDoc(doc->getXRef()); - m_outputDev = splashOutputDev; -#endif - break; - } - } - } - return m_outputDev; - } - - void addTocChildren( QDomDocument * docSyn, QDomNode * parent, GooList * items ); - - void setPaperColor(const QColor &color) - { - if (color == paperColor) - return; - - paperColor = color; - if ( m_outputDev == NULL ) - return; - - switch ( m_backend ) - { - case Document::SplashBackend: - { -#if defined(HAVE_SPLASH) - SplashOutputDev *splash_output = static_cast<SplashOutputDev *>( m_outputDev ); - SplashColor bgColor; - bgColor[0] = paperColor.blue(); - bgColor[1] = paperColor.green(); - bgColor[2] = paperColor.red(); - splash_output->setPaperColor(bgColor); -#endif - break; - } - default: ; - } - } - - void fillMembers() - { - m_fontInfoIterator = new FontIterator(0, this); - int numEmb = doc->getCatalog()->numEmbeddedFiles(); - if (!(0 == numEmb)) { - // we have some embedded documents, build the list - for (int yalv = 0; yalv < numEmb; ++yalv) { - EmbFile *ef = doc->getCatalog()->embeddedFile(yalv); - m_embeddedFiles.append(new EmbeddedFile(ef)); - } - } - } - - static Document *checkDocument(DocumentData *doc); - - PDFDoc *doc; - QByteArray fileContents; - bool locked; - FontIterator *m_fontInfoIterator; - Document::RenderBackend m_backend; - OutputDev *m_outputDev; - QList<EmbeddedFile*> m_embeddedFiles; - QPointer<OptContentModel> m_optContentModel; - QColor paperColor; - int m_hints; - static int count; - }; - - class FontInfoData - { - public: - FontInfoData() - { - isEmbedded = false; - isSubset = false; - type = FontInfo::unknown; - } - - FontInfoData( const FontInfoData &fid ) - { - fontName = fid.fontName; - fontFile = fid.fontFile; - isEmbedded = fid.isEmbedded; - isSubset = fid.isSubset; - type = fid.type; - embRef = fid.embRef; - } - - FontInfoData( ::FontInfo* fi ) - { - if (fi->getName()) fontName = fi->getName()->getCString(); - if (fi->getFile()) fontFile = fi->getFile()->getCString(); - isEmbedded = fi->getEmbedded(); - isSubset = fi->getSubset(); - type = (Poppler::FontInfo::Type)fi->getType(); - embRef = fi->getEmbRef(); - } - - QString fontName; - QString fontFile; - bool isEmbedded : 1; - bool isSubset : 1; - FontInfo::Type type; - Ref embRef; - }; - - class FontIteratorData - { - public: - FontIteratorData( int startPage, DocumentData *dd ) - : fontInfoScanner( dd->doc, startPage ) - , totalPages( dd->doc->getNumPages() ) - , currentPage( qMax( startPage, 0 ) - 1 ) - { - } - - ~FontIteratorData() - { - } - - FontInfoScanner fontInfoScanner; - int totalPages; - int currentPage; - }; - - class TextBoxData - { - public: - TextBoxData() - : nextWord(0), hasSpaceAfter(false) - { - } - - QString text; - QRectF bBox; - TextBox *nextWord; - QVector<QRectF> charBBoxes; // the boundingRect of each character - bool hasSpaceAfter; - }; - - class FormFieldData - { - public: - FormFieldData(DocumentData *_doc, ::Page *p, ::FormWidget *w) : - doc(_doc), page(p), fm(w), flags(0), annoflags(0) - { - } - - Qt::Alignment textAlignment(Object *obj) const - { - Object tmp; - int align = 0; - if (obj->dictLookup("Q", &tmp)->isInt()) - { - align = tmp.getInt(); - } - tmp.free(); - Qt::Alignment qtalign; - switch ( align ) - { - case 1: - qtalign = Qt::AlignHCenter; - break; - case 2: - qtalign = Qt::AlignRight; - break; - case 0: - default: - qtalign = Qt::AlignLeft; - } - return qtalign; - } - - DocumentData *doc; - ::Page *page; - ::FormWidget *fm; - QRectF box; - int flags; - int annoflags; - }; - -} - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-ps-converter.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-ps-converter.cc deleted file mode 100644 index 7a1957b1ee9..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-ps-converter.cc +++ /dev/null @@ -1,238 +0,0 @@ -/* poppler-ps-converter.cc: qt interface to poppler - * Copyright (C) 2007, 2009, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-qt4.h" - -#include "poppler-private.h" -#include "poppler-converter-private.h" - -#include "PSOutputDev.h" - -static void outputToQIODevice(void *stream, char *data, int len) -{ - static_cast<QIODevice*>(stream)->write(data, len); -} - -namespace Poppler { - -class PSConverterPrivate : public BaseConverterPrivate -{ - public: - PSConverterPrivate(); - - QList<int> pageList; - QString title; - double hDPI; - double vDPI; - int rotate; - int paperWidth; - int paperHeight; - int marginRight; - int marginBottom; - int marginLeft; - int marginTop; - PSConverter::PSOptions opts; -}; - -PSConverterPrivate::PSConverterPrivate() - : BaseConverterPrivate(), - hDPI(72), vDPI(72), rotate(0), paperWidth(-1), paperHeight(-1), - marginRight(0), marginBottom(0), marginLeft(0), marginTop(0), - opts(PSConverter::Printing) -{ -} - - -PSConverter::PSConverter(DocumentData *document) - : BaseConverter(*new PSConverterPrivate()) -{ - Q_D(PSConverter); - d->document = document; -} - -PSConverter::~PSConverter() -{ -} - -void PSConverter::setPageList(const QList<int> &pageList) -{ - Q_D(PSConverter); - d->pageList = pageList; -} - -void PSConverter::setTitle(const QString &title) -{ - Q_D(PSConverter); - d->title = title; -} - -void PSConverter::setHDPI(double hDPI) -{ - Q_D(PSConverter); - d->hDPI = hDPI; -} - -void PSConverter::setVDPI(double vDPI) -{ - Q_D(PSConverter); - d->vDPI = vDPI; -} - -void PSConverter::setRotate(int rotate) -{ - Q_D(PSConverter); - d->rotate = rotate; -} - -void PSConverter::setPaperWidth(int paperWidth) -{ - Q_D(PSConverter); - d->paperWidth = paperWidth; -} - -void PSConverter::setPaperHeight(int paperHeight) -{ - Q_D(PSConverter); - d->paperHeight = paperHeight; -} - -void PSConverter::setRightMargin(int marginRight) -{ - Q_D(PSConverter); - d->marginRight = marginRight; -} - -void PSConverter::setBottomMargin(int marginBottom) -{ - Q_D(PSConverter); - d->marginBottom = marginBottom; -} - -void PSConverter::setLeftMargin(int marginLeft) -{ - Q_D(PSConverter); - d->marginLeft = marginLeft; -} - -void PSConverter::setTopMargin(int marginTop) -{ - Q_D(PSConverter); - d->marginTop = marginTop; -} - -void PSConverter::setStrictMargins(bool strictMargins) -{ - Q_D(PSConverter); - if (strictMargins) - d->opts |= StrictMargins; - else - d->opts &= ~StrictMargins; -} - -void PSConverter::setForceRasterize(bool forceRasterize) -{ - Q_D(PSConverter); - if (forceRasterize) - d->opts |= ForceRasterization; - else - d->opts &= ~ForceRasterization; -} - -void PSConverter::setPSOptions(PSConverter::PSOptions options) -{ - Q_D(PSConverter); - d->opts = options; -} - -PSConverter::PSOptions PSConverter::psOptions() const -{ - Q_D(const PSConverter); - return d->opts; -} - -bool PSConverter::convert() -{ - Q_D(PSConverter); - d->lastError = NoError; - - Q_ASSERT(!d->pageList.isEmpty()); - Q_ASSERT(d->paperWidth != -1); - Q_ASSERT(d->paperHeight != -1); - - if (d->document->locked) - { - d->lastError = FileLockedError; - return false; - } - - QIODevice *dev = d->openDevice(); - if (!dev) - { - d->lastError = OpenOutputError; - return false; - } - - QByteArray pstitle8Bit = d->title.toLocal8Bit(); - char* pstitlechar; - if (!d->title.isEmpty()) pstitlechar = pstitle8Bit.data(); - else pstitlechar = 0; - - PSOutputDev *psOut = new PSOutputDev(outputToQIODevice, dev, - pstitlechar, - d->document->doc->getXRef(), - d->document->doc->getCatalog(), - 1, - d->document->doc->getNumPages(), - psModePS, - d->paperWidth, - d->paperHeight, - gFalse, - d->marginLeft, - d->marginBottom, - d->paperWidth - d->marginRight, - d->paperHeight - d->marginTop, - (d->opts & ForceRasterization)); - - if (d->opts & StrictMargins) - { - double xScale = ((double)d->paperWidth - (double)d->marginLeft - (double)d->marginRight) / (double)d->paperWidth; - double yScale = ((double)d->paperHeight - (double)d->marginBottom - (double)d->marginTop) / (double)d->paperHeight; - psOut->setScale(xScale, yScale); - } - - if (psOut->isOk()) - { - GBool isPrinting = (d->opts & Printing) ? gTrue : gFalse; - foreach(int page, d->pageList) - { - d->document->doc->displayPage(psOut, page, d->hDPI, d->vDPI, d->rotate, gFalse, gTrue, isPrinting); - } - delete psOut; - d->closeDevice(); - return true; - } - else - { - delete psOut; - d->closeDevice(); - return false; - } -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-qiodeviceoutstream-private.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-qiodeviceoutstream-private.h deleted file mode 100644 index e7faa2947e5..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-qiodeviceoutstream-private.h +++ /dev/null @@ -1,46 +0,0 @@ -/* poppler-qiodevicestream-private.h: Qt4 interface to poppler - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef POPPLER_QIODEVICESTREAM_PRIVATE_H -#define POPPLER_QIODEVICESTREAM_PRIVATE_H - -#include "Object.h" -#include "Stream.h" - -class QIODevice; - -namespace Poppler { - -class QIODeviceOutStream : public OutStream -{ - public: - QIODeviceOutStream(QIODevice* device); - virtual ~QIODeviceOutStream(); - - virtual void close(); - virtual int getPos(); - virtual void put(char c); - virtual void printf(const char *format, ...); - - private: - QIODevice *m_device; -}; - -} - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-qiodeviceoutstream.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-qiodeviceoutstream.cc deleted file mode 100644 index b0054af3ce5..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-qiodeviceoutstream.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* poppler-qiodevicestream.cc: Qt4 interface to poppler - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-qiodeviceoutstream-private.h" - -#include <QtCore/QIODevice> - -#include <stdio.h> - -#define QIODeviceOutStreamBufSize 8192 - -namespace Poppler { - -QIODeviceOutStream::QIODeviceOutStream(QIODevice* device) - : m_device(device) -{ -} - -QIODeviceOutStream::~QIODeviceOutStream() -{ -} - -void QIODeviceOutStream::close() -{ -} - -int QIODeviceOutStream::getPos() -{ - return (int)m_device->pos(); -} - -void QIODeviceOutStream::put(char c) -{ - m_device->putChar(c); -} - -void QIODeviceOutStream::printf(const char *format, ...) -{ - va_list ap; - va_start(ap, format); - char buf[QIODeviceOutStreamBufSize]; - size_t bufsize = 0; - bufsize = qvsnprintf(buf, QIODeviceOutStreamBufSize - 1, format, ap); - va_end(ap); - m_device->write(buf, bufsize); -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-qt4.h b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-qt4.h deleted file mode 100644 index f41e5e34e9f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-qt4.h +++ /dev/null @@ -1,1573 +0,0 @@ -/* poppler-qt.h: qt interface to poppler - * Copyright (C) 2005, Net Integration Technologies, Inc. - * Copyright (C) 2005, 2007, Brad Hards <bradh@frogmouth.net> - * Copyright (C) 2005-2009, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2005, Stefan Kebekus <stefan.kebekus@math.uni-koeln.de> - * Copyright (C) 2006-2009, Pino Toscano <pino@kde.org> - * Copyright (C) 2009 Shawn Rutledge <shawn.t.rutledge@gmail.com> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef __POPPLER_QT_H__ -#define __POPPLER_QT_H__ - -#include "poppler-annotation.h" -#include "poppler-link.h" -#include "poppler-optcontent.h" -#include "poppler-page-transition.h" - -#include <QtCore/QByteArray> -#include <QtCore/QDateTime> -#include <QtCore/QSet> -#include <QtXml/QDomDocument> -#include "poppler-export.h" - -class EmbFile; -class Sound; -class AnnotMovie; - -/** - The %Poppler Qt4 binding. -*/ -namespace Poppler { - - class Document; - class DocumentData; - - class PageData; - - class FormField; - - class TextBoxData; - - class PDFConverter; - class PSConverter; - - /** - Describes the physical location of text on a document page - - This very simple class describes the physical location of text - on the page. It consists of - - a QString that contains the text - - a QRectF that gives a box that describes where on the page - the text is found. - */ - class POPPLER_QT4_EXPORT TextBox { - friend class Page; - public: - /** - The default constructor sets the \p text and the rectangle that - contains the text. Coordinated for the \p bBox are in points = - 1/72 of an inch. - */ - TextBox(const QString& text, const QRectF &bBox); - /** - Destructor. - */ - ~TextBox(); - - /** - Returns the text of this text box - */ - QString text() const; - - /** - Returns the position of the text, in point, i.e., 1/72 of - an inch - - \since 0.8 - */ - QRectF boundingBox() const; - - /** - Returns the pointer to the next text box, if there is one. - - Otherwise, it returns a null pointer. - */ - TextBox *nextWord() const; - - /** - Returns the bounding box of the \p i -th characted of the word. - */ - QRectF charBoundingBox(int i) const; - - /** - Returns whether there is a space character after this text box - */ - bool hasSpaceAfter() const; - - private: - Q_DISABLE_COPY(TextBox) - - TextBoxData *m_data; - }; - - - class FontInfoData; - /** - Container class for information about a font within a PDF - document - */ - class POPPLER_QT4_EXPORT FontInfo { - friend class Document; - public: - /** - The type of font. - */ - enum Type { - unknown, - Type1, - Type1C, - Type1COT, - Type3, - TrueType, - TrueTypeOT, - CIDType0, - CIDType0C, - CIDType0COT, - CIDTrueType, - CIDTrueTypeOT - }; - - /// \cond PRIVATE - /** - Create a new font information container. - */ - FontInfo(); - - /** - Create a new font information container. - */ - FontInfo( const FontInfoData &fid ); - /// \endcond - - /** - Copy constructor. - */ - FontInfo( const FontInfo &fi ); - - /** - Destructor. - */ - ~FontInfo(); - - /** - The name of the font. Can be QString::null if the font has no name - */ - QString name() const; - - /** - The path of the font file used to represent this font on this system, - or a null string is the font is embedded - */ - QString file() const; - - /** - Whether the font is embedded in the file, or not - - \return true if the font is embedded - */ - bool isEmbedded() const; - - /** - Whether the font provided is only a subset of the full - font or not. This only has meaning if the font is embedded. - - \return true if the font is only a subset - */ - bool isSubset() const; - - /** - The type of font encoding - - \return a enumerated value corresponding to the font encoding used - - \sa typeName for a string equivalent - */ - Type type() const; - - /** - The name of the font encoding used - - \note if you are looking for the name of the font (as opposed to the - encoding format used), you probably want name(). - - \sa type for a enumeration version - */ - QString typeName() const; - - /** - Standard assignment operator - */ - FontInfo& operator=( const FontInfo &fi ); - - private: - FontInfoData *m_data; - }; - - - class FontIteratorData; - /** - Iterator for reading the fonts in a document. - - FontIterator provides a Java-style iterator for reading the fonts in a - document. - - You can use it in the following way: - \code -Poppler::FontIterator* it = doc->newFontIterator(); -while (it->hasNext()) { - QList<Poppler::FontInfo> fonts = it->next(); - // do something with the fonts -} -// after doing the job, the iterator must be freed -delete it; - \endcode - - \since 0.12 - */ - class POPPLER_QT4_EXPORT FontIterator { - friend class Document; - friend class DocumentData; - public: - /** - Destructor. - */ - ~FontIterator(); - - /** - Returns the fonts of the current page and then advances the iterator - to the next page. - */ - QList<FontInfo> next(); - - /** - Checks whether there is at least one more page to iterate, ie returns - false when the iterator is beyond the last page. - */ - bool hasNext() const; - - /** - Returns the current page where the iterator is. - */ - int currentPage() const; - - private: - Q_DISABLE_COPY( FontIterator ) - FontIterator( int, DocumentData *dd ); - - FontIteratorData *d; - }; - - - class EmbeddedFileData; - /** - Container class for an embedded file with a PDF document - */ - class POPPLER_QT4_EXPORT EmbeddedFile { - public: - /// \cond PRIVATE - EmbeddedFile(EmbFile *embfile); - /// \endcond - - /** - Destructor. - */ - ~EmbeddedFile(); - - /** - The name associated with the file - */ - QString name() const; - - /** - The description associated with the file, if any. - - This will return an empty QString if there is no description element - */ - QString description() const; - - /** - The size of the file. - - This will return < 0 if there is no size element - */ - int size() const; - - /** - The modification date for the embedded file, if known. - */ - QDateTime modDate() const; - - /** - The creation date for the embedded file, if known. - */ - QDateTime createDate() const; - - /** - The MD5 checksum of the file. - - This will return an empty QByteArray if there is no checksum element. - */ - QByteArray checksum() const; - - /** - The MIME type of the file, if known. - - \since 0.8 - */ - QString mimeType() const; - - /** - The data as a byte array - */ - QByteArray data(); - - /** - Is the embedded file valid? - - \since 0.12 - */ - bool isValid() const; - - /** - A QDataStream for the actual data? - */ - //QDataStream dataStream() const; - - private: - Q_DISABLE_COPY(EmbeddedFile) - - EmbeddedFileData *m_embeddedFile; - }; - - - /** - \brief A page in a document. - - The Page class represents a single page within a PDF document. - - You cannot construct a Page directly, but you have to use the Document - functions that return a new Page out of an index or a label. - */ - class POPPLER_QT4_EXPORT Page { - friend class Document; - public: - /** - Destructor. - */ - ~Page(); - - /** - The type of rotation to apply for an operation - */ - enum Rotation { Rotate0 = 0, ///< Do not rotate - Rotate90 = 1, ///< Rotate 90 degrees clockwise - Rotate180 = 2, ///< Rotate 180 degrees - Rotate270 = 3 ///< Rotate 270 degrees clockwise (90 degrees counterclockwise) - }; - - /** - The kinds of page actions - */ - enum PageAction { - Opening, ///< The action when a page is "opened" - Closing ///< The action when a page is "closed" - }; - - /** - Render the page to a QImage using the current - \link Document::renderBackend() Document renderer\endlink. - - If \p x = \p y = \p w = \p h = -1, the method will automatically - compute the size of the image from the horizontal and vertical - resolutions specified in \p xres and \p yres. Otherwise, the - method renders only a part of the page, specified by the - parameters (\p x, \p y, \p w, \p h) in pixel coordinates. The returned - QImage then has size (\p w, \p h), independent of the page - size. - - \param x specifies the left x-coordinate of the box, in - pixels. - - \param y specifies the top y-coordinate of the box, in - pixels. - - \param w specifies the width of the box, in pixels. - - \param h specifies the height of the box, in pixels. - - \param xres horizontal resolution of the graphics device, - in dots per inch - - \param yres vertical resolution of the graphics device, in - dots per inch - - \param rotate how to rotate the page - - \warning The parameter (\p x, \p y, \p w, \p h) are not - well-tested. Unusual or meaningless parameters may lead to - rather unexpected results. - - \returns a QImage of the page, or a null image on failure. - - \since 0.6 - */ - QImage renderToImage(double xres=72.0, double yres=72.0, int x=-1, int y=-1, int w=-1, int h=-1, Rotation rotate = Rotate0) const; - - /** - Get the page thumbnail if it exists. - - \return a QImage of the thumbnail, or a null image - if the PDF does not contain one for this page - - \since 0.12 - */ - QImage thumbnail() const; - - /** - Returns the text that is inside a specified rectangle - - \param rect the rectangle specifying the area of interest, - with coordinates given in points, i.e., 1/72th of an inch. - If rect is null, all text on the page is given - **/ - QString text(const QRectF &rect) const; - - /** - The starting point for a search - */ - enum SearchDirection { FromTop, ///< Start sorting at the top of the document - NextResult, ///< Find the next result, moving "down the page" - PreviousResult ///< Find the previous result, moving "up the page" - }; - - /** - The type of search to perform - */ - enum SearchMode { CaseSensitive, ///< Case differences cause no match in searching - CaseInsensitive ///< Case differences are ignored in matching - }; - - /** - Returns true if the specified text was found. - - \param text the text the search - \param rect in all directions is used to return where the text was found, for NextResult and PreviousResult - indicates where to continue searching for - \param direction in which direction do the search - \param caseSensitive be case sensitive? - \param rotate the rotation to apply for the search order - **/ - bool search(const QString &text, QRectF &rect, SearchDirection direction, SearchMode caseSensitive, Rotation rotate = Rotate0) const; - - - /** - Returns a list of text of the page - - This method returns a QList of TextBoxes that contain all - the text of the page, with roughly one text word of text - per TextBox item. - - For text written in western languages (left-to-right and - up-to-down), the QList contains the text in the proper - order. - - \note The caller owns the text boxes and they should - be deleted when no longer required. - - \warning This method is not tested with Asian scripts - */ - QList<TextBox*> textList(Rotation rotate = Rotate0) const; - - /** - \return The dimensions (cropbox) of the page, in points (i.e. 1/72th on an inch) - */ - QSizeF pageSizeF() const; - - /** - \return The dimensions (cropbox) of the page, in points (i.e. 1/72th on an inch) - */ - QSize pageSize() const; - - /** - Returns the transition of this page - - \returns a pointer to a PageTransition structure that - defines how transition to this page shall be performed. - - \note The PageTransition structure is owned by this page, and will - automatically be destroyed when this page class is - destroyed. - **/ - PageTransition *transition() const; - - /** - Gets the page action specified, or NULL if there is no action. - - \since 0.6 - **/ - Link *action( PageAction act ) const; - - /** - Types of orientations that are possible - */ - enum Orientation { - Landscape, ///< Landscape orientation (portrait, with 90 degrees clockwise rotation ) - Portrait, ///< Normal portrait orientation - Seascape, ///< Seascape orientation (portrait, with 270 degrees clockwise rotation) - UpsideDown ///< Upside down orientation (portrait, with 180 degrees rotation) - }; - - /** - The orientation of the page - */ - Orientation orientation() const; - - /** - The default CTM - */ - void defaultCTM(double *CTM, double dpiX, double dpiY, int rotate, bool upsideDown); - - /** - Gets the links of the page - */ - QList<Link*> links() const; - - /** - Returns the annotations of the page - */ - QList<Annotation*> annotations() const; - - /** - Returns the form fields on the page - - \since 0.6 - */ - QList<FormField*> formFields() const; - - /** - Returns the page duration. That is the time, in seconds, that the page - should be displayed before the presentation automatically advances to the next page. - Returns < 0 if duration is not set. - - \since 0.6 - */ - double duration() const; - - /** - Returns the label of the page, or a null string is the page has no label. - - \since 0.6 - **/ - QString label() const; - - private: - Q_DISABLE_COPY(Page) - - Page(DocumentData *doc, int index); - PageData *m_page; - }; - -/** - \brief PDF document. - - The Document class represents a PDF document: its pages, and all the global - properties, metadata, etc. - - \section ownership Ownership of the returned objects - - All the functions that returns class pointers create new object, and the - responsability of those is given to the callee. - - The only exception is \link Poppler::Page::transition() Page::transition()\endlink. - - \section document-loading Loading - - To get a Document, you have to load it via the load() & loadFromData() - functions. - - In all the functions that have passwords as arguments, they \b must be Latin1 - encoded. If you have a password that is a UTF-8 string, you need to use - QString::toLatin1() (or similar) to convert the password first. - If you have a UTF-8 character array, consider converting it to a QString first - (QString::fromUtf8(), or similar) before converting to Latin1 encoding. - - \section document-rendering Rendering - - To render pages of a document, you have different Document functions to set - various options. - - \subsection document-rendering-backend Backends - - %Poppler offers a different backends for rendering the pages. Currently - there two backends (see #RenderBackend), but only the Splash engine works - well and has been tested. - - The available rendering backends can be discovered via availableRenderBackends(). - The current rendering backend can be changed using setRenderBackend(). - Please note that setting a backend not listed in the available ones - will always result in null QImage's. - - \section document-cms Color management support - - %Poppler, if compiled with this support, provides functions to handle color - profiles. - - To know whether the %Poppler version you are using has support for color - management, you can query Poppler::isCmsAvailable(). In case it is not - avilable, all the color management-related functions will either do nothing - or return null. -*/ - class POPPLER_QT4_EXPORT Document { - friend class Page; - friend class DocumentData; - - public: - /** - The page mode - */ - enum PageMode { - UseNone, ///< No mode - neither document outline nor thumbnail images are visible - UseOutlines, ///< Document outline visible - UseThumbs, ///< Thumbnail images visible - FullScreen, ///< Fullscreen mode (no menubar, windows controls etc) - UseOC, ///< Optional content group panel visible - UseAttach ///< Attachments panel visible - }; - - /** - The page layout - */ - enum PageLayout { - NoLayout, ///< Layout not specified - SinglePage, ///< Display a single page - OneColumn, ///< Display a single column of pages - TwoColumnLeft, ///< Display the pages in two columns, with odd-numbered pages on the left - TwoColumnRight, ///< Display the pages in two columns, with odd-numbered pages on the right - TwoPageLeft, ///< Display the pages two at a time, with odd-numbered pages on the left - TwoPageRight ///< Display the pages two at a time, with odd-numbered pages on the right - }; - - /** - The render backends available - - \since 0.6 - */ - enum RenderBackend { - SplashBackend, ///< Splash backend - ArthurBackend ///< Arthur (Qt4) backend - }; - - /** - The render hints available - - \since 0.6 - */ - enum RenderHint { - Antialiasing = 0x00000001, ///< Antialiasing for graphics - TextAntialiasing = 0x00000002, ///< Antialiasing for text - TextHinting = 0x00000004 ///< Hinting for text \since 0.12.1 - }; - Q_DECLARE_FLAGS( RenderHints, RenderHint ) - - /** - Set a color display profile for the current document. - - \param outputProfileA is a \c cmsHPROFILE of the LCMS library. - - \since 0.12 - */ - void setColorDisplayProfile(void *outputProfileA); - /** - Set a color display profile for the current document. - - \param name is the name of the display profile to set. - - \since 0.12 - */ - void setColorDisplayProfileName(const QString &name); - /** - Return the current RGB profile. - - \return a \c cmsHPROFILE of the LCMS library. - - \since 0.12 - */ - void* colorRgbProfile() const; - /** - Return the current display profile. - - \return a \c cmsHPROFILE of the LCMS library. - - \since 0.12 - */ - void *colorDisplayProfile() const; - - /** - Load the document from a file on disk - - \param filePath the name (and path, if required) of the file to load - \param ownerPassword the Latin1-encoded owner password to use in - loading the file - \param userPassword the Latin1-encoded user ("open") password - to use in loading the file - - \return the loaded document, or NULL on error - - \note The caller owns the pointer to Document, and this should - be deleted when no longer required. - - \warning The returning document may be locked if a password is required - to open the file, and one is not provided (as the userPassword). - */ - static Document *load(const QString & filePath, - const QByteArray &ownerPassword=QByteArray(), - const QByteArray &userPassword=QByteArray()); - - /** - Load the document from memory - - \param fileContents the file contents. They are copied so there is no need - to keep the byte array around for the full life time of - the document. - \param ownerPassword the Latin1-encoded owner password to use in - loading the file - \param userPassword the Latin1-encoded user ("open") password - to use in loading the file - - \return the loaded document, or NULL on error - - \note The caller owns the pointer to Document, and this should - be deleted when no longer required. - - \warning The returning document may be locked if a password is required - to open the file, and one is not provided (as the userPassword). - - \since 0.6 - */ - static Document *loadFromData(const QByteArray &fileContents, - const QByteArray &ownerPassword=QByteArray(), - const QByteArray &userPassword=QByteArray()); - - /** - Get a specified Page - - Note that this follows the PDF standard of being zero based - if you - want the first page, then you need an index of zero. - - \param index the page number index - */ - Page *page(int index) const; - - /** - \overload - - - The intent is that you can pass in a label like \c "ix" and - get the page with that label (which might be in the table of - contents), or pass in \c "1" and get the page that the user - expects (which might not be the first page, if there is a - title page and a table of contents). - - \param label the page label - */ - Page *page(const QString &label) const; - - /** - The number of pages in the document - */ - int numPages() const; - - /** - The type of mode that should be used by the application - when the document is opened. Note that while this is - called page mode, it is really viewer application mode. - */ - PageMode pageMode() const; - - /** - The layout that pages should be shown in when the document - is first opened. This basically describes how pages are - shown relative to each other. - */ - PageLayout pageLayout() const; - - /** - Provide the passwords required to unlock the document - - \param ownerPassword the Latin1-encoded owner password to use in - loading the file - \param userPassword the Latin1-encoded user ("open") password - to use in loading the file - */ - bool unlock(const QByteArray &ownerPassword, const QByteArray &userPassword); - - /** - Determine if the document is locked - */ - bool isLocked() const; - - /** - The date associated with the document - - You would use this method with something like: - \code -QDateTime created = m_doc->date("CreationDate"); -QDateTime modified = m_doc->date("ModDate"); - \endcode - - The available dates are: - - CreationDate: the date of creation of the document - - ModDate: the date of the last change in the document - - \param data the type of date that is required - */ - QDateTime date( const QString & data ) const; - - /** - Get specified information associated with the document - - You would use this method with something like: - \code -QString title = m_doc->info("Title"); -QString subject = m_doc->info("Subject"); - \endcode - - In addition to \c Title and \c Subject, other information that may - be available include \c Author, \c Keywords, \c Creator and \c Producer. - - \param data the information that is required - - \sa infoKeys() to get a list of the available keys - */ - QString info( const QString & data ) const; - - /** - Obtain a list of the available string information keys. - */ - QStringList infoKeys() const; - - /** - Test if the document is encrypted - */ - bool isEncrypted() const; - - /** - Test if the document is linearised - - In some cases, this is called "fast web view", since it - is mostly an optimisation for viewing over the Web. - */ - bool isLinearized() const; - - /** - Test if the permissions on the document allow it to be - printed - */ - bool okToPrint() const; - - /** - Test if the permissions on the document allow it to be - printed at high resolution - */ - bool okToPrintHighRes() const; - - /** - Test if the permissions on the document allow it to be - changed. - - \note depending on the type of change, it may be more - appropriate to check other properties as well. - */ - bool okToChange() const; - - /** - Test if the permissions on the document allow the - contents to be copied / extracted - */ - bool okToCopy() const; - - /** - Test if the permissions on the document allow annotations - to be added or modified, and interactive form fields (including - signature fields) to be completed. - */ - bool okToAddNotes() const; - - /** - Test if the permissions on the document allow interactive - form fields (including signature fields) to be completed. - - \note this can be true even if okToAddNotes() is false - this - means that only form completion is permitted. - */ - bool okToFillForm() const; - - /** - Test if the permissions on the document allow interactive - form fields (including signature fields) to be set, created and - modified - */ - bool okToCreateFormFields() const; - - /** - Test if the permissions on the document allow content extraction - (text and perhaps other content) for accessibility usage (eg for - a screen reader) - */ - bool okToExtractForAccessibility() const; - - /** - Test if the permissions on the document allow it to be - "assembled" - insertion, rotation and deletion of pages; - or creation of bookmarks and thumbnail images. - - \note this can be true even if okToChange() is false - */ - bool okToAssemble() const; - - /** - The version of the PDF specification that the document - conforms to - - \deprecated use getPdfVersion and avoid float point - comparisons/handling - */ - Q_DECL_DEPRECATED double pdfVersion() const; - - /** - The version of the PDF specification that the document - conforms to - - \param major an optional pointer to a variable where store the - "major" number of the version - \param minor an optional pointer to a variable where store the - "minor" number of the version - - \since 0.12 - */ - void getPdfVersion(int *major, int *minor) const; - - /** - The fonts within the PDF document. - - This is a shorthand for getting all the fonts at once. - - \note this can take a very long time to run with a large - document. You may wish to use a FontIterator if you have more - than say 20 pages - - \see newFontIterator() - */ - QList<FontInfo> fonts() const; - - /** - Scans for fonts within the PDF document. - - \param numPages the number of pages to scan - \param fontList pointer to the list where the font information - should be placed - - \note with this method you can scan for fonts only \em once for each - document; once the end is reached, no more scanning with this method - can be done - - \return false if the end of the document has been reached - - \deprecated this function is quite limited in its job (see note), - better use fonts() or newFontIterator() - - \see fonts(), newFontIterator() - */ - Q_DECL_DEPRECATED bool scanForFonts( int numPages, QList<FontInfo> *fontList ) const; - - /** - Creates a new FontIterator object for font scanning. - - The new iterator can be used for reading the font information of the - document, reading page by page. - - The caller is responsible for the returned object, ie it should freed - it when no more useful. - - \param startPage the initial page from which start reading fonts - - \see fonts() - - \since 0.12 - */ - FontIterator* newFontIterator( int startPage = 0 ) const; - - /** - The font data if the font is an embedded one. - - \since 0.10 - */ - QByteArray fontData(const FontInfo &font) const; - - /** - The documents embedded within the PDF document. - - \note there are two types of embedded document - this call - only accesses documents that are embedded at the document level. - */ - QList<EmbeddedFile*> embeddedFiles() const; - - /** - Whether there are any documents embedded in this PDF document. - */ - bool hasEmbeddedFiles() const; - - /** - Gets the table of contents (TOC) of the Document. - - The caller is responsable for the returned object. - - In the tree the tag name is the 'screen' name of the entry. A tag can have - attributes. Here follows the list of tag attributes with meaning: - - Destination: A string description of the referred destination - - DestinationName: A 'named reference' to the viewport - - ExternalFileName: A link to a external filename - - Open: A bool value that tells whether the subbranch of the item is open or not - - Resolving the final destination for each item can be done in the following way: - - first, checking for 'Destination': if not empty, then a LinkDestination - can be constructed straight with it - - as second step, if the 'DestinationName' is not empty, then the destination - can be resolved using linkDestination() - - Note also that if 'ExternalFileName' is not emtpy, then the destination refers - to that document (and not to the current one). - - \returns the TOC, or NULL if the Document does not have one - */ - QDomDocument *toc() const; - - /** - Tries to resolve the named destination \p name. - - \note this operation starts a search through the whole document - - \returns a new LinkDestination object if the named destination was - actually found, or NULL otherwise - */ - LinkDestination *linkDestination( const QString &name ); - - /** - Sets the paper color - - \param color the new paper color - */ - void setPaperColor(const QColor &color); - /** - The paper color - - The default color is white. - */ - QColor paperColor() const; - - /** - Sets the backend used to render the pages. - - \param backend the new rendering backend - - \since 0.6 - */ - void setRenderBackend( RenderBackend backend ); - /** - The currently set render backend - - The default backend is \ref SplashBackend - - \since 0.6 - */ - RenderBackend renderBackend() const; - - /** - The available rendering backends. - - \since 0.6 - */ - static QSet<RenderBackend> availableRenderBackends(); - - /** - Sets the render \p hint . - - \note some hints may not be supported by some rendering backends. - - \param on whether the flag should be added or removed. - - \since 0.6 - */ - void setRenderHint( RenderHint hint, bool on = true ); - /** - The currently set render hints. - - \since 0.6 - */ - RenderHints renderHints() const; - - /** - Gets a new PS converter for this document. - - The caller gets the ownership of the returned converter. - - \since 0.6 - */ - PSConverter *psConverter() const; - - /** - Gets a new PDF converter for this document. - - The caller gets the ownership of the returned converter. - - \since 0.8 - */ - PDFConverter *pdfConverter() const; - - /** - Gets the metadata stream contents - - \since 0.6 - */ - QString metadata() const; - - /** - Test whether this document has "optional content". - - Optional content is used to optionally turn on (display) - and turn off (not display) some elements of the document. - The most common use of this is for layers in design - applications, but it can be used for a range of things, - such as not including some content in printing, and - displaying content in the appropriate language. - - \since 0.8 - */ - bool hasOptionalContent() const; - - /** - Itemviews model for optional content. - - The model is owned by the document. - - \since 0.8 - */ - OptContentModel *optionalContentModel(); - - /** - Document-level JavaScript scripts. - - Returns the list of document level JavaScript scripts to be always - executed before any other script. - - \since 0.10 - */ - QStringList scripts() const; - - /** - Destructor. - */ - ~Document(); - - private: - Q_DISABLE_COPY(Document) - - DocumentData *m_doc; - - Document(DocumentData *dataA); - }; - - class BaseConverterPrivate; - class PSConverterPrivate; - class PDFConverterPrivate; - /** - \brief Base converter. - - This is the base class for the converters. - - \since 0.8 - */ - class POPPLER_QT4_EXPORT BaseConverter - { - friend class Document; - public: - /** - Destructor. - */ - virtual ~BaseConverter(); - - /** Sets the output file name. You must set this or the output device. */ - void setOutputFileName(const QString &outputFileName); - - /** - * Sets the output device. You must set this or the output file name. - * - * \since 0.8 - */ - void setOutputDevice(QIODevice *device); - - /** - Does the conversion. - - \return whether the conversion succeeded - */ - virtual bool convert() = 0; - - enum Error - { - NoError, - FileLockedError, - OpenOutputError, - NotSupportedInputFileError - }; - - /** - Returns the last error - \since 0.12.1 - */ - Error lastError() const; - - protected: - /// \cond PRIVATE - BaseConverter(BaseConverterPrivate &dd); - Q_DECLARE_PRIVATE(BaseConverter) - BaseConverterPrivate *d_ptr; - /// \endcond - - private: - Q_DISABLE_COPY(BaseConverter) - }; - - /** - Converts a PDF to PS - - Sizes have to be in Points (1/72 inch) - - If you are using QPrinter you can get paper size by doing: - \code -QPrinter dummy(QPrinter::PrinterResolution); -dummy.setFullPage(true); -dummy.setPageSize(myPageSize); -width = dummy.width(); -height = dummy.height(); - \endcode - - \since 0.6 - */ - class POPPLER_QT4_EXPORT PSConverter : public BaseConverter - { - friend class Document; - public: - /** - Options for the PS export. - - \since 0.10 - */ - enum PSOption { - Printing = 0x00000001, ///< The PS is generated for priting purpouses - StrictMargins = 0x00000002, - ForceRasterization = 0x00000004 - }; - Q_DECLARE_FLAGS( PSOptions, PSOption ) - - /** - Destructor. - */ - ~PSConverter(); - - /** Sets the list of pages to print. Mandatory. */ - void setPageList(const QList<int> &pageList); - - /** - Sets the title of the PS Document. Optional - */ - void setTitle(const QString &title); - - /** - Sets the horizontal DPI. Defaults to 72.0 - */ - void setHDPI(double hDPI); - - /** - Sets the vertical DPI. Defaults to 72.0 - */ - void setVDPI(double vDPI); - - /** - Sets the rotate. Defaults to not rotated - */ - void setRotate(int rotate); - - /** - Sets the output paper width. Has to be set. - */ - void setPaperWidth(int paperWidth); - - /** - Sets the output paper height. Has to be set. - */ - void setPaperHeight(int paperHeight); - - /** - Sets the output right margin. Defaults to 0 - */ - void setRightMargin(int marginRight); - - /** - Sets the output bottom margin. Defaults to 0 - */ - void setBottomMargin(int marginBottom); - - /** - Sets the output left margin. Defaults to 0 - */ - void setLeftMargin(int marginLeft); - - /** - Sets the output top margin. Defaults to 0 - */ - void setTopMargin(int marginTop); - - /** - Defines if margins have to be strictly followed (even if that - means changing aspect ratio), or if the margins can be adapted - to keep aspect ratio. - - Defaults to false. - */ - void setStrictMargins(bool strictMargins); - - /** Defines if the page will be rasterized to an image before printing. Defaults to false */ - void setForceRasterize(bool forceRasterize); - - /** - Sets the options for the PS export. - - \since 0.10 - */ - void setPSOptions(PSOptions options); - /** - The currently set options for the PS export. - - The default flags are: Printing. - - \since 0.10 - */ - PSOptions psOptions() const; - - bool convert(); - - private: - Q_DECLARE_PRIVATE(PSConverter) - Q_DISABLE_COPY(PSConverter) - - PSConverter(DocumentData *document); - }; - - /** - Converts a PDF to PDF (thus saves a copy of the document). - - \since 0.8 - */ - class POPPLER_QT4_EXPORT PDFConverter : public BaseConverter - { - friend class Document; - public: - /** - Options for the PDF export. - */ - enum PDFOption { - WithChanges = 0x00000001 ///< The changes done to the document are saved as well - }; - Q_DECLARE_FLAGS( PDFOptions, PDFOption ) - - /** - Destructor. - */ - virtual ~PDFConverter(); - - /** - Sets the options for the PDF export. - */ - void setPDFOptions(PDFOptions options); - /** - The currently set options for the PDF export. - */ - PDFOptions pdfOptions() const; - - bool convert(); - - private: - Q_DECLARE_PRIVATE(PDFConverter) - Q_DISABLE_COPY(PDFConverter) - - PDFConverter(DocumentData *document); - }; - - /** - Conversion from PDF date string format to QDateTime - */ - POPPLER_QT4_EXPORT QDateTime convertDate( char *dateString ); - - /** - Whether the color management functions are available. - - \since 0.12 - */ - POPPLER_QT4_EXPORT bool isCmsAvailable(); - - class SoundData; - /** - Container class for a sound file in a PDF document. - - A sound can be either External (in that case should be loaded the file - whose url is represented by url() ), or Embedded, and the player has to - play the data contained in data(). - - \since 0.6 - */ - class POPPLER_QT4_EXPORT SoundObject { - public: - /** - The type of sound - */ - enum SoundType { - External, ///< The real sound file is external - Embedded ///< The sound is contained in the data - }; - - /** - The encoding format used for the sound - */ - enum SoundEncoding { - Raw, ///< Raw encoding, with unspecified or unsigned values in the range [ 0, 2^B - 1 ] - Signed, ///< Twos-complement values - muLaw, ///< mu-law-encoded samples - ALaw ///< A-law-encoded samples - }; - - /// \cond PRIVATE - SoundObject(Sound *popplersound); - /// \endcond - - ~SoundObject(); - - /** - Is the sound embedded (SoundObject::Embedded) or external (SoundObject::External)? - */ - SoundType soundType() const; - - /** - The URL of the sound file to be played, in case of SoundObject::External - */ - QString url() const; - - /** - The data of the sound, in case of SoundObject::Embedded - */ - QByteArray data() const; - - /** - The sampling rate of the sound - */ - double samplingRate() const; - - /** - The number of sound channels to use to play the sound - */ - int channels() const; - - /** - The number of bits per sample value per channel - */ - int bitsPerSample() const; - - /** - The encoding used for the sound - */ - SoundEncoding soundEncoding() const; - - private: - Q_DISABLE_COPY(SoundObject) - - SoundData *m_soundData; - }; - - class MovieData; - /** - Container class for a movie object in a PDF document. - - \since 0.10 - */ - class POPPLER_QT4_EXPORT MovieObject { - friend class Page; - public: - /** - The play mode for playing the movie - */ - enum PlayMode { - PlayOnce, ///< Play the movie once, closing the movie controls at the end - PlayOpen, ///< Like PlayOnce, but leaving the controls open - PlayRepeat, ///< Play continuously until stopped - PlayPalindrome ///< Play forward, then backward, then again foward and so on until stopped - }; - - ~MovieObject(); - - /** - The URL of the movie to be played - */ - QString url() const; - - /** - The size of the movie - */ - QSize size() const; - - /** - The rotation (either 0, 90, 180, or 270 degrees clockwise) for the movie, - */ - int rotation() const; - - /** - Whether show a bar with movie controls - */ - bool showControls() const; - - /** - How to play the movie - */ - PlayMode playMode() const; - - private: - /// \cond PRIVATE - MovieObject( AnnotMovie *ann ); - /// \endcond - - Q_DISABLE_COPY(MovieObject) - - MovieData *m_movieData; - }; - -} - -Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::Document::RenderHints) -Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::PDFConverter::PDFOptions) -Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::PSConverter::PSOptions) - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-sound.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-sound.cc deleted file mode 100644 index eb19b9d3bb6..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-sound.cc +++ /dev/null @@ -1,132 +0,0 @@ -/* poppler-sound.cc: qt interface to poppler - * Copyright (C) 2006-2007, Pino Toscano <pino@kde.org> - * Copyright (C) 2008, Albert Astals Cid <aacid@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-qt4.h" - -#include "Object.h" -#include "Stream.h" -#include "Sound.h" - -namespace Poppler -{ - -class SoundData -{ -public: - SoundData() - : m_soundObj( 0 ) - { - } - - ~SoundData() - { - delete m_soundObj; - } - - SoundObject::SoundType m_type; - Sound *m_soundObj; -}; - -SoundObject::SoundObject(Sound *popplersound) -{ - m_soundData = new SoundData(); - switch ( popplersound->getSoundKind() ) - { - case soundEmbedded: - m_soundData->m_type = SoundObject::Embedded; - break; - case soundExternal: - default: - m_soundData->m_type = SoundObject::External; - break; - } - - m_soundData->m_soundObj = popplersound->copy(); -} - -SoundObject::~SoundObject() -{ - delete m_soundData; -} - -SoundObject::SoundType SoundObject::soundType() const -{ - return m_soundData->m_type; -} - -QString SoundObject::url() const -{ - if ( m_soundData->m_type != SoundObject::External ) - return QString(); - - GooString * goo = m_soundData->m_soundObj->getFileName(); - return goo ? QString( goo->getCString() ) : QString(); -} - -QByteArray SoundObject::data() const -{ - if ( m_soundData->m_type != SoundObject::Embedded ) - return QByteArray(); - - Stream *stream = m_soundData->m_soundObj->getStream(); - stream->reset(); - int dataLen = 0; - QByteArray fileArray; - int i; - while ( (i = stream->getChar()) != EOF) { - fileArray[dataLen] = (char)i; - ++dataLen; - } - fileArray.resize(dataLen); - - return fileArray; -} - -double SoundObject::samplingRate() const -{ - return m_soundData->m_soundObj->getSamplingRate(); -} - -int SoundObject::channels() const -{ - return m_soundData->m_soundObj->getChannels(); -} - -int SoundObject::bitsPerSample() const -{ - return m_soundData->m_soundObj->getBitsPerSample(); -} - -SoundObject::SoundEncoding SoundObject::soundEncoding() const -{ - switch ( m_soundData->m_soundObj->getEncoding() ) - { - case soundRaw: - return SoundObject::Raw; - case soundSigned: - return SoundObject::Signed; - case soundMuLaw: - return SoundObject::muLaw; - case soundALaw: - return SoundObject::ALaw; - } - return SoundObject::Raw; -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-textbox.cc b/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-textbox.cc deleted file mode 100644 index 88cf2a9e3ef..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/src/poppler-textbox.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* poppler-qt.h: qt interface to poppler - * Copyright (C) 2005, Brad Hards <bradh@frogmouth.net> - * Copyright (C) 2006-2008, Albert Astals Cid <aacid@kde.org> - * Copyright (C) 2008, Pino Toscano <pino@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "poppler-qt4.h" -#include "poppler-private.h" - -namespace Poppler { - -TextBox::TextBox(const QString& text, const QRectF &bBox) -{ - m_data = new TextBoxData(); - m_data->text = text; - m_data->bBox = bBox; -} - -TextBox::~TextBox() -{ - delete m_data; -} - -QString TextBox::text() const -{ - return m_data->text; -} - -QRectF TextBox::boundingBox() const -{ - return m_data->bBox; -} - -TextBox *TextBox::nextWord() const -{ - return m_data->nextWord; -} - -QRectF TextBox::charBoundingBox(int i) const -{ - return m_data->charBBoxes.value(i); -} - -bool TextBox::hasSpaceAfter() const -{ - return m_data->hasSpaceAfter; -} - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/CMakeLists.txt b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/CMakeLists.txt deleted file mode 100644 index 892ec66c429..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/CMakeLists.txt +++ /dev/null @@ -1,56 +0,0 @@ -add_definitions(${QT4_DEFINITIONS}) - -include_directories( - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/../src - ${CMAKE_CURRENT_BINARY_DIR} - ${QT4_INCLUDE_DIR} -) - -macro(QT4_ADD_SIMPLETEST exe source) - string(REPLACE "-" "" test_name ${exe}) - set(${test_name}_SOURCES - ${source} - ) - poppler_add_test(${exe} BUILD_QT4_TESTS ${${test_name}_SOURCES}) - target_link_libraries(${exe} poppler-qt4) - if(MSVC) - target_link_libraries(${exe} poppler ${poppler_LIBS}) - endif(MSVC) -endmacro(QT4_ADD_SIMPLETEST) - -macro(QT4_ADD_QTEST exe source) - if (QT4_QTTEST_FOUND) - string(REPLACE "-" "" test_name ${exe}) - set(${test_name}_SOURCES - ${source} - ) - poppler_add_unittest(${exe} BUILD_QT4_TESTS ${${test_name}_SOURCES}) - qt4_automoc(${${test_name}_SOURCES}) - target_link_libraries(${exe} poppler-qt4 ${QT4_QTTEST_LIBRARY}) - if(MSVC) - target_link_libraries(${exe} poppler ${poppler_LIBS}) - endif(MSVC) - endif (QT4_QTTEST_FOUND) -endmacro(QT4_ADD_QTEST) - - -qt4_add_simpletest(test-poppler-qt4 test-poppler-qt4.cpp) -qt4_add_simpletest(test-password-qt4 test-password-qt4.cpp) -qt4_add_simpletest(poppler-fonts poppler-fonts.cpp) -qt4_add_simpletest(poppler_attachments poppler-attachments.cpp) -qt4_add_simpletest(stress-poppler-qt4 stress-poppler-qt4.cpp) -qt4_add_simpletest(stress-poppler-dir stress-poppler-dir.cpp) - -qt4_add_qtest(check_attachments check_attachments.cpp) -qt4_add_qtest(check_dateConversion check_dateConversion.cpp) -qt4_add_qtest(check_fonts check_fonts.cpp) -qt4_add_qtest(check_links check_links.cpp) -qt4_add_qtest(check_metadata check_metadata.cpp) -qt4_add_qtest(check_optcontent check_optcontent.cpp) -qt4_add_qtest(check_pagelayout check_pagelayout.cpp) -qt4_add_qtest(check_pagemode check_pagemode.cpp) -qt4_add_qtest(check_password check_password.cpp) -qt4_add_qtest(check_permissions check_permissions.cpp) -qt4_add_qtest(check_search check_search.cpp) -qt4_add_qtest(check_actualtext check_actualtext.cpp) diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/Makefile.am b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/Makefile.am deleted file mode 100644 index 763b1772bbf..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/Makefile.am +++ /dev/null @@ -1,127 +0,0 @@ -INCLUDES = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/poppler \ - -I$(top_srcdir)/qt4/src \ - -I$(top_srcdir)/qt \ - $(FONTCONFIG_CFLAGS) \ - $(POPPLER_QT4_CFLAGS) - -LDADDS = \ - $(top_builddir)/poppler/libpoppler.la \ - $(top_builddir)/qt4/src/libpoppler-qt4.la \ - $(FONTCONFIG_LIBS) \ - $(POPPLER_QT4_LIBS) - -SUFFIXES: .moc - -.cpp.moc: - $(AM_V_GEN) $(MOCQT4) -i $< -o $@ - -noinst_PROGRAMS = test-poppler-qt4 stress-poppler-qt4 \ - poppler-fonts test-password-qt4 stress-poppler-dir \ - poppler-attachments - - -test_poppler_qt4_SOURCES = \ - test-poppler-qt4.cpp - -test_poppler_qt4_LDADD = $(LDADDS) - - -test_password_qt4_SOURCES = \ - test-password-qt4.cpp - -test_password_qt4_LDADD = $(LDADDS) - - -poppler_fonts_SOURCES = \ - poppler-fonts.cpp - -poppler_fonts_LDADD = $(LDADDS) - -poppler_attachments_SOURCES = \ - poppler-attachments.cpp - -poppler_attachments_LDADD = $(LDADDS) - - -stress_poppler_qt4_SOURCES = \ - stress-poppler-qt4.cpp - -stress_poppler_qt4_LDADD = $(LDADDS) - -stress_poppler_dir_SOURCES = \ - stress-poppler-dir.cpp - -stress_poppler_dir_LDADD = $(LDADDS) - -clean-generic: - rm -f *.moc - -if BUILD_POPPLER_QT4 -TESTS = \ - check_attachments \ - check_actualtext \ - check_dateConversion \ - check_fonts \ - check_links \ - check_metadata \ - check_optcontent \ - check_permissions \ - check_pagemode \ - check_password \ - check_pagelayout \ - check_search - -check_PROGRAMS = $(TESTS) - -check_attachments_SOURCES = check_attachments.cpp -check_attachments.$(OBJEXT): check_attachments.moc -check_attachments_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) - -check_actualtext_SOURCES = check_actualtext.cpp -check_actualtext.$(OBJEXT): check_actualtext.moc -check_actualtext_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) - -check_dateConversion_SOURCES = check_dateConversion.cpp -check_dateConversion.$(OBJEXT): check_dateConversion.moc -check_dateConversion_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) - -check_fonts_SOURCES = check_fonts.cpp -check_fonts.$(OBJEXT): check_fonts.moc -check_fonts_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) - -check_links_SOURCES = check_links.cpp -check_links.$(OBJEXT): check_links.moc -check_links_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) - -check_metadata_SOURCES = check_metadata.cpp -check_metadata.$(OBJEXT): check_metadata.moc -check_metadata_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) - -check_optcontent_SOURCES = check_optcontent.cpp -check_optcontent.$(OBJEXT): check_optcontent.moc -check_optcontent_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) - -check_pagemode_SOURCES = check_pagemode.cpp -check_pagemode.$(OBJEXT): check_pagemode.moc -check_pagemode_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) - -check_permissions_SOURCES = check_permissions.cpp -check_permissions.$(OBJEXT): check_permissions.moc -check_permissions_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) - -check_pagelayout_SOURCES = check_pagelayout.cpp -check_pagelayout.$(OBJEXT): check_pagelayout.moc -check_pagelayout_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) - -check_password_SOURCES = check_password.cpp -check_password.$(OBJEXT): check_password.moc -check_password_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) - -check_search_SOURCES = check_search.cpp -check_search.$(OBJEXT): check_search.moc -check_search_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) - -endif - diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/Makefile.in b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/Makefile.in deleted file mode 100644 index 0a940f88151..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/Makefile.in +++ /dev/null @@ -1,961 +0,0 @@ -# Makefile.in generated by automake 1.11 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -noinst_PROGRAMS = test-poppler-qt4$(EXEEXT) \ - stress-poppler-qt4$(EXEEXT) poppler-fonts$(EXEEXT) \ - test-password-qt4$(EXEEXT) stress-poppler-dir$(EXEEXT) \ - poppler-attachments$(EXEEXT) -@BUILD_POPPLER_QT4_TRUE@TESTS = check_attachments$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_actualtext$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_dateConversion$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_fonts$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_links$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_metadata$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_optcontent$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_permissions$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_pagemode$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_password$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_pagelayout$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_search$(EXEEXT) -@BUILD_POPPLER_QT4_TRUE@check_PROGRAMS = $(am__EXEEXT_1) -subdir = qt4/tests -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ - $(top_srcdir)/m4/define-dir.m4 $(top_srcdir)/m4/gtk-doc.m4 \ - $(top_srcdir)/m4/libjpeg.m4 $(top_srcdir)/m4/libpng.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/qt.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h \ - $(top_builddir)/poppler/poppler-config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -@BUILD_POPPLER_QT4_TRUE@am__EXEEXT_1 = check_attachments$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_actualtext$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_dateConversion$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_fonts$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_links$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_metadata$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_optcontent$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_permissions$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_pagemode$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_password$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_pagelayout$(EXEEXT) \ -@BUILD_POPPLER_QT4_TRUE@ check_search$(EXEEXT) -PROGRAMS = $(noinst_PROGRAMS) -am__check_actualtext_SOURCES_DIST = check_actualtext.cpp -@BUILD_POPPLER_QT4_TRUE@am_check_actualtext_OBJECTS = \ -@BUILD_POPPLER_QT4_TRUE@ check_actualtext.$(OBJEXT) -check_actualtext_OBJECTS = $(am_check_actualtext_OBJECTS) -am__DEPENDENCIES_1 = -am__DEPENDENCIES_2 = $(top_builddir)/poppler/libpoppler.la \ - $(top_builddir)/qt4/src/libpoppler-qt4.la \ - $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) -@BUILD_POPPLER_QT4_TRUE@check_actualtext_DEPENDENCIES = \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_2) \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_1) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) -am__v_lt_0 = --silent -am__check_attachments_SOURCES_DIST = check_attachments.cpp -@BUILD_POPPLER_QT4_TRUE@am_check_attachments_OBJECTS = \ -@BUILD_POPPLER_QT4_TRUE@ check_attachments.$(OBJEXT) -check_attachments_OBJECTS = $(am_check_attachments_OBJECTS) -@BUILD_POPPLER_QT4_TRUE@check_attachments_DEPENDENCIES = \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_2) \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_1) -am__check_dateConversion_SOURCES_DIST = check_dateConversion.cpp -@BUILD_POPPLER_QT4_TRUE@am_check_dateConversion_OBJECTS = \ -@BUILD_POPPLER_QT4_TRUE@ check_dateConversion.$(OBJEXT) -check_dateConversion_OBJECTS = $(am_check_dateConversion_OBJECTS) -@BUILD_POPPLER_QT4_TRUE@check_dateConversion_DEPENDENCIES = \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_2) \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_1) -am__check_fonts_SOURCES_DIST = check_fonts.cpp -@BUILD_POPPLER_QT4_TRUE@am_check_fonts_OBJECTS = \ -@BUILD_POPPLER_QT4_TRUE@ check_fonts.$(OBJEXT) -check_fonts_OBJECTS = $(am_check_fonts_OBJECTS) -@BUILD_POPPLER_QT4_TRUE@check_fonts_DEPENDENCIES = \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_2) \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_1) -am__check_links_SOURCES_DIST = check_links.cpp -@BUILD_POPPLER_QT4_TRUE@am_check_links_OBJECTS = \ -@BUILD_POPPLER_QT4_TRUE@ check_links.$(OBJEXT) -check_links_OBJECTS = $(am_check_links_OBJECTS) -@BUILD_POPPLER_QT4_TRUE@check_links_DEPENDENCIES = \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_2) \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_1) -am__check_metadata_SOURCES_DIST = check_metadata.cpp -@BUILD_POPPLER_QT4_TRUE@am_check_metadata_OBJECTS = \ -@BUILD_POPPLER_QT4_TRUE@ check_metadata.$(OBJEXT) -check_metadata_OBJECTS = $(am_check_metadata_OBJECTS) -@BUILD_POPPLER_QT4_TRUE@check_metadata_DEPENDENCIES = \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_2) \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_1) -am__check_optcontent_SOURCES_DIST = check_optcontent.cpp -@BUILD_POPPLER_QT4_TRUE@am_check_optcontent_OBJECTS = \ -@BUILD_POPPLER_QT4_TRUE@ check_optcontent.$(OBJEXT) -check_optcontent_OBJECTS = $(am_check_optcontent_OBJECTS) -@BUILD_POPPLER_QT4_TRUE@check_optcontent_DEPENDENCIES = \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_2) \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_1) -am__check_pagelayout_SOURCES_DIST = check_pagelayout.cpp -@BUILD_POPPLER_QT4_TRUE@am_check_pagelayout_OBJECTS = \ -@BUILD_POPPLER_QT4_TRUE@ check_pagelayout.$(OBJEXT) -check_pagelayout_OBJECTS = $(am_check_pagelayout_OBJECTS) -@BUILD_POPPLER_QT4_TRUE@check_pagelayout_DEPENDENCIES = \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_2) \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_1) -am__check_pagemode_SOURCES_DIST = check_pagemode.cpp -@BUILD_POPPLER_QT4_TRUE@am_check_pagemode_OBJECTS = \ -@BUILD_POPPLER_QT4_TRUE@ check_pagemode.$(OBJEXT) -check_pagemode_OBJECTS = $(am_check_pagemode_OBJECTS) -@BUILD_POPPLER_QT4_TRUE@check_pagemode_DEPENDENCIES = \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_2) \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_1) -am__check_password_SOURCES_DIST = check_password.cpp -@BUILD_POPPLER_QT4_TRUE@am_check_password_OBJECTS = \ -@BUILD_POPPLER_QT4_TRUE@ check_password.$(OBJEXT) -check_password_OBJECTS = $(am_check_password_OBJECTS) -@BUILD_POPPLER_QT4_TRUE@check_password_DEPENDENCIES = \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_2) \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_1) -am__check_permissions_SOURCES_DIST = check_permissions.cpp -@BUILD_POPPLER_QT4_TRUE@am_check_permissions_OBJECTS = \ -@BUILD_POPPLER_QT4_TRUE@ check_permissions.$(OBJEXT) -check_permissions_OBJECTS = $(am_check_permissions_OBJECTS) -@BUILD_POPPLER_QT4_TRUE@check_permissions_DEPENDENCIES = \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_2) \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_1) -am__check_search_SOURCES_DIST = check_search.cpp -@BUILD_POPPLER_QT4_TRUE@am_check_search_OBJECTS = \ -@BUILD_POPPLER_QT4_TRUE@ check_search.$(OBJEXT) -check_search_OBJECTS = $(am_check_search_OBJECTS) -@BUILD_POPPLER_QT4_TRUE@check_search_DEPENDENCIES = \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_2) \ -@BUILD_POPPLER_QT4_TRUE@ $(am__DEPENDENCIES_1) -am_poppler_attachments_OBJECTS = poppler-attachments.$(OBJEXT) -poppler_attachments_OBJECTS = $(am_poppler_attachments_OBJECTS) -poppler_attachments_DEPENDENCIES = $(am__DEPENDENCIES_2) -am_poppler_fonts_OBJECTS = poppler-fonts.$(OBJEXT) -poppler_fonts_OBJECTS = $(am_poppler_fonts_OBJECTS) -poppler_fonts_DEPENDENCIES = $(am__DEPENDENCIES_2) -am_stress_poppler_dir_OBJECTS = stress-poppler-dir.$(OBJEXT) -stress_poppler_dir_OBJECTS = $(am_stress_poppler_dir_OBJECTS) -stress_poppler_dir_DEPENDENCIES = $(am__DEPENDENCIES_2) -am_stress_poppler_qt4_OBJECTS = stress-poppler-qt4.$(OBJEXT) -stress_poppler_qt4_OBJECTS = $(am_stress_poppler_qt4_OBJECTS) -stress_poppler_qt4_DEPENDENCIES = $(am__DEPENDENCIES_2) -am_test_password_qt4_OBJECTS = test-password-qt4.$(OBJEXT) -test_password_qt4_OBJECTS = $(am_test_password_qt4_OBJECTS) -test_password_qt4_DEPENDENCIES = $(am__DEPENDENCIES_2) -am_test_poppler_qt4_OBJECTS = test-poppler-qt4.$(OBJEXT) -test_poppler_qt4_OBJECTS = $(am_test_poppler_qt4_OBJECTS) -test_poppler_qt4_DEPENDENCIES = $(am__DEPENDENCIES_2) -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/poppler -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -AM_V_CXX = $(am__v_CXX_$(V)) -am__v_CXX_ = $(am__v_CXX_$(AM_DEFAULT_VERBOSITY)) -am__v_CXX_0 = @echo " CXX " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CXXLD = $(am__v_CXXLD_$(V)) -am__v_CXXLD_ = $(am__v_CXXLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CXXLD_0 = @echo " CXXLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -SOURCES = $(check_actualtext_SOURCES) $(check_attachments_SOURCES) \ - $(check_dateConversion_SOURCES) $(check_fonts_SOURCES) \ - $(check_links_SOURCES) $(check_metadata_SOURCES) \ - $(check_optcontent_SOURCES) $(check_pagelayout_SOURCES) \ - $(check_pagemode_SOURCES) $(check_password_SOURCES) \ - $(check_permissions_SOURCES) $(check_search_SOURCES) \ - $(poppler_attachments_SOURCES) $(poppler_fonts_SOURCES) \ - $(stress_poppler_dir_SOURCES) $(stress_poppler_qt4_SOURCES) \ - $(test_password_qt4_SOURCES) $(test_poppler_qt4_SOURCES) -DIST_SOURCES = $(am__check_actualtext_SOURCES_DIST) \ - $(am__check_attachments_SOURCES_DIST) \ - $(am__check_dateConversion_SOURCES_DIST) \ - $(am__check_fonts_SOURCES_DIST) \ - $(am__check_links_SOURCES_DIST) \ - $(am__check_metadata_SOURCES_DIST) \ - $(am__check_optcontent_SOURCES_DIST) \ - $(am__check_pagelayout_SOURCES_DIST) \ - $(am__check_pagemode_SOURCES_DIST) \ - $(am__check_password_SOURCES_DIST) \ - $(am__check_permissions_SOURCES_DIST) \ - $(am__check_search_SOURCES_DIST) \ - $(poppler_attachments_SOURCES) $(poppler_fonts_SOURCES) \ - $(stress_poppler_dir_SOURCES) $(stress_poppler_qt4_SOURCES) \ - $(test_password_qt4_SOURCES) $(test_poppler_qt4_SOURCES) -ETAGS = etags -CTAGS = ctags -am__tty_colors = \ -red=; grn=; lgn=; blu=; std= -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ABIWORD_CFLAGS = @ABIWORD_CFLAGS@ -ABIWORD_LIBS = @ABIWORD_LIBS@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAIRO_CFLAGS = @CAIRO_CFLAGS@ -CAIRO_FEATURE = @CAIRO_FEATURE@ -CAIRO_LIBS = @CAIRO_LIBS@ -CAIRO_REQ = @CAIRO_REQ@ -CAIRO_VERSION = @CAIRO_VERSION@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ -FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ -FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ -FREETYPE_CONFIG = @FREETYPE_CONFIG@ -FREETYPE_LIBS = @FREETYPE_LIBS@ -GDK_CFLAGS = @GDK_CFLAGS@ -GDK_FEATURE = @GDK_FEATURE@ -GDK_LIBS = @GDK_LIBS@ -GLIB_MKENUMS = @GLIB_MKENUMS@ -GREP = @GREP@ -GTKDOC_CHECK = @GTKDOC_CHECK@ -GTK_TEST_CFLAGS = @GTK_TEST_CFLAGS@ -GTK_TEST_LIBS = @GTK_TEST_LIBS@ -HTML_DIR = @HTML_DIR@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LCMS_CFLAGS = @LCMS_CFLAGS@ -LCMS_LIBS = @LCMS_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBJPEG_LIBS = @LIBJPEG_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOPENJPEG_LIBS = @LIBOPENJPEG_LIBS@ -LIBPNG_LIBS = @LIBPNG_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -MOCQT4 = @MOCQT4@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PC_REQUIRES = @PC_REQUIRES@ -PC_REQUIRES_PRIVATE = @PC_REQUIRES_PRIVATE@ -PKG_CONFIG = @PKG_CONFIG@ -POPPLER_DATADIR = @POPPLER_DATADIR@ -POPPLER_GLIB_CFLAGS = @POPPLER_GLIB_CFLAGS@ -POPPLER_GLIB_DISABLE_DEPRECATED = @POPPLER_GLIB_DISABLE_DEPRECATED@ -POPPLER_GLIB_DISABLE_SINGLE_INCLUDES = @POPPLER_GLIB_DISABLE_SINGLE_INCLUDES@ -POPPLER_GLIB_LIBS = @POPPLER_GLIB_LIBS@ -POPPLER_MAJOR_VERSION = @POPPLER_MAJOR_VERSION@ -POPPLER_MICRO_VERSION = @POPPLER_MICRO_VERSION@ -POPPLER_MINOR_VERSION = @POPPLER_MINOR_VERSION@ -POPPLER_QT4_CFLAGS = @POPPLER_QT4_CFLAGS@ -POPPLER_QT4_CXXFLAGS = @POPPLER_QT4_CXXFLAGS@ -POPPLER_QT4_LIBS = @POPPLER_QT4_LIBS@ -POPPLER_QT4_TEST_CFLAGS = @POPPLER_QT4_TEST_CFLAGS@ -POPPLER_QT4_TEST_LIBS = @POPPLER_QT4_TEST_LIBS@ -POPPLER_QT_CXXFLAGS = @POPPLER_QT_CXXFLAGS@ -POPPLER_QT_LIBS = @POPPLER_QT_LIBS@ -PTHREAD_CC = @PTHREAD_CC@ -PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ -PTHREAD_LIBS = @PTHREAD_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZLIB_LIBS = @ZLIB_LIBS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -acx_pthread_config = @acx_pthread_config@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -auto_import_flags = @auto_import_flags@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -create_shared_lib = @create_shared_lib@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -win32_libs = @win32_libs@ -INCLUDES = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/poppler \ - -I$(top_srcdir)/qt4/src \ - -I$(top_srcdir)/qt \ - $(FONTCONFIG_CFLAGS) \ - $(POPPLER_QT4_CFLAGS) - -LDADDS = \ - $(top_builddir)/poppler/libpoppler.la \ - $(top_builddir)/qt4/src/libpoppler-qt4.la \ - $(FONTCONFIG_LIBS) \ - $(POPPLER_QT4_LIBS) - -test_poppler_qt4_SOURCES = \ - test-poppler-qt4.cpp - -test_poppler_qt4_LDADD = $(LDADDS) -test_password_qt4_SOURCES = \ - test-password-qt4.cpp - -test_password_qt4_LDADD = $(LDADDS) -poppler_fonts_SOURCES = \ - poppler-fonts.cpp - -poppler_fonts_LDADD = $(LDADDS) -poppler_attachments_SOURCES = \ - poppler-attachments.cpp - -poppler_attachments_LDADD = $(LDADDS) -stress_poppler_qt4_SOURCES = \ - stress-poppler-qt4.cpp - -stress_poppler_qt4_LDADD = $(LDADDS) -stress_poppler_dir_SOURCES = \ - stress-poppler-dir.cpp - -stress_poppler_dir_LDADD = $(LDADDS) -@BUILD_POPPLER_QT4_TRUE@check_attachments_SOURCES = check_attachments.cpp -@BUILD_POPPLER_QT4_TRUE@check_attachments_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) -@BUILD_POPPLER_QT4_TRUE@check_actualtext_SOURCES = check_actualtext.cpp -@BUILD_POPPLER_QT4_TRUE@check_actualtext_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) -@BUILD_POPPLER_QT4_TRUE@check_dateConversion_SOURCES = check_dateConversion.cpp -@BUILD_POPPLER_QT4_TRUE@check_dateConversion_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) -@BUILD_POPPLER_QT4_TRUE@check_fonts_SOURCES = check_fonts.cpp -@BUILD_POPPLER_QT4_TRUE@check_fonts_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) -@BUILD_POPPLER_QT4_TRUE@check_links_SOURCES = check_links.cpp -@BUILD_POPPLER_QT4_TRUE@check_links_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) -@BUILD_POPPLER_QT4_TRUE@check_metadata_SOURCES = check_metadata.cpp -@BUILD_POPPLER_QT4_TRUE@check_metadata_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) -@BUILD_POPPLER_QT4_TRUE@check_optcontent_SOURCES = check_optcontent.cpp -@BUILD_POPPLER_QT4_TRUE@check_optcontent_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) -@BUILD_POPPLER_QT4_TRUE@check_pagemode_SOURCES = check_pagemode.cpp -@BUILD_POPPLER_QT4_TRUE@check_pagemode_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) -@BUILD_POPPLER_QT4_TRUE@check_permissions_SOURCES = check_permissions.cpp -@BUILD_POPPLER_QT4_TRUE@check_permissions_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) -@BUILD_POPPLER_QT4_TRUE@check_pagelayout_SOURCES = check_pagelayout.cpp -@BUILD_POPPLER_QT4_TRUE@check_pagelayout_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) -@BUILD_POPPLER_QT4_TRUE@check_password_SOURCES = check_password.cpp -@BUILD_POPPLER_QT4_TRUE@check_password_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) -@BUILD_POPPLER_QT4_TRUE@check_search_SOURCES = check_search.cpp -@BUILD_POPPLER_QT4_TRUE@check_search_LDADD = $(LDADDS) $(POPPLER_QT4_TEST_LIBS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .cpp .lo .moc .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign qt4/tests/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign qt4/tests/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-checkPROGRAMS: - @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list - -clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list -check_actualtext$(EXEEXT): $(check_actualtext_OBJECTS) $(check_actualtext_DEPENDENCIES) - @rm -f check_actualtext$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(check_actualtext_OBJECTS) $(check_actualtext_LDADD) $(LIBS) -check_attachments$(EXEEXT): $(check_attachments_OBJECTS) $(check_attachments_DEPENDENCIES) - @rm -f check_attachments$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(check_attachments_OBJECTS) $(check_attachments_LDADD) $(LIBS) -check_dateConversion$(EXEEXT): $(check_dateConversion_OBJECTS) $(check_dateConversion_DEPENDENCIES) - @rm -f check_dateConversion$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(check_dateConversion_OBJECTS) $(check_dateConversion_LDADD) $(LIBS) -check_fonts$(EXEEXT): $(check_fonts_OBJECTS) $(check_fonts_DEPENDENCIES) - @rm -f check_fonts$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(check_fonts_OBJECTS) $(check_fonts_LDADD) $(LIBS) -check_links$(EXEEXT): $(check_links_OBJECTS) $(check_links_DEPENDENCIES) - @rm -f check_links$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(check_links_OBJECTS) $(check_links_LDADD) $(LIBS) -check_metadata$(EXEEXT): $(check_metadata_OBJECTS) $(check_metadata_DEPENDENCIES) - @rm -f check_metadata$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(check_metadata_OBJECTS) $(check_metadata_LDADD) $(LIBS) -check_optcontent$(EXEEXT): $(check_optcontent_OBJECTS) $(check_optcontent_DEPENDENCIES) - @rm -f check_optcontent$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(check_optcontent_OBJECTS) $(check_optcontent_LDADD) $(LIBS) -check_pagelayout$(EXEEXT): $(check_pagelayout_OBJECTS) $(check_pagelayout_DEPENDENCIES) - @rm -f check_pagelayout$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(check_pagelayout_OBJECTS) $(check_pagelayout_LDADD) $(LIBS) -check_pagemode$(EXEEXT): $(check_pagemode_OBJECTS) $(check_pagemode_DEPENDENCIES) - @rm -f check_pagemode$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(check_pagemode_OBJECTS) $(check_pagemode_LDADD) $(LIBS) -check_password$(EXEEXT): $(check_password_OBJECTS) $(check_password_DEPENDENCIES) - @rm -f check_password$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(check_password_OBJECTS) $(check_password_LDADD) $(LIBS) -check_permissions$(EXEEXT): $(check_permissions_OBJECTS) $(check_permissions_DEPENDENCIES) - @rm -f check_permissions$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(check_permissions_OBJECTS) $(check_permissions_LDADD) $(LIBS) -check_search$(EXEEXT): $(check_search_OBJECTS) $(check_search_DEPENDENCIES) - @rm -f check_search$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(check_search_OBJECTS) $(check_search_LDADD) $(LIBS) -poppler-attachments$(EXEEXT): $(poppler_attachments_OBJECTS) $(poppler_attachments_DEPENDENCIES) - @rm -f poppler-attachments$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(poppler_attachments_OBJECTS) $(poppler_attachments_LDADD) $(LIBS) -poppler-fonts$(EXEEXT): $(poppler_fonts_OBJECTS) $(poppler_fonts_DEPENDENCIES) - @rm -f poppler-fonts$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(poppler_fonts_OBJECTS) $(poppler_fonts_LDADD) $(LIBS) -stress-poppler-dir$(EXEEXT): $(stress_poppler_dir_OBJECTS) $(stress_poppler_dir_DEPENDENCIES) - @rm -f stress-poppler-dir$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(stress_poppler_dir_OBJECTS) $(stress_poppler_dir_LDADD) $(LIBS) -stress-poppler-qt4$(EXEEXT): $(stress_poppler_qt4_OBJECTS) $(stress_poppler_qt4_DEPENDENCIES) - @rm -f stress-poppler-qt4$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(stress_poppler_qt4_OBJECTS) $(stress_poppler_qt4_LDADD) $(LIBS) -test-password-qt4$(EXEEXT): $(test_password_qt4_OBJECTS) $(test_password_qt4_DEPENDENCIES) - @rm -f test-password-qt4$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(test_password_qt4_OBJECTS) $(test_password_qt4_LDADD) $(LIBS) -test-poppler-qt4$(EXEEXT): $(test_poppler_qt4_OBJECTS) $(test_poppler_qt4_DEPENDENCIES) - @rm -f test-poppler-qt4$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(test_poppler_qt4_OBJECTS) $(test_poppler_qt4_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_actualtext.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_attachments.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_dateConversion.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_fonts.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_links.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_metadata.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_optcontent.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_pagelayout.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_pagemode.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_password.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_permissions.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_search.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-attachments.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poppler-fonts.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stress-poppler-dir.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stress-poppler-qt4.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-password-qt4.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-poppler-qt4.Po@am__quote@ - -.cpp.o: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< - -.cpp.obj: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.cpp.lo: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -check-TESTS: $(TESTS) - @failed=0; all=0; xfail=0; xpass=0; skip=0; \ - srcdir=$(srcdir); export srcdir; \ - list=' $(TESTS) '; \ - $(am__tty_colors); \ - if test -n "$$list"; then \ - for tst in $$list; do \ - if test -f ./$$tst; then dir=./; \ - elif test -f $$tst; then dir=; \ - else dir="$(srcdir)/"; fi; \ - if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ - all=`expr $$all + 1`; \ - case " $(XFAIL_TESTS) " in \ - *[\ \ ]$$tst[\ \ ]*) \ - xpass=`expr $$xpass + 1`; \ - failed=`expr $$failed + 1`; \ - col=$$red; res=XPASS; \ - ;; \ - *) \ - col=$$grn; res=PASS; \ - ;; \ - esac; \ - elif test $$? -ne 77; then \ - all=`expr $$all + 1`; \ - case " $(XFAIL_TESTS) " in \ - *[\ \ ]$$tst[\ \ ]*) \ - xfail=`expr $$xfail + 1`; \ - col=$$lgn; res=XFAIL; \ - ;; \ - *) \ - failed=`expr $$failed + 1`; \ - col=$$red; res=FAIL; \ - ;; \ - esac; \ - else \ - skip=`expr $$skip + 1`; \ - col=$$blu; res=SKIP; \ - fi; \ - echo "$${col}$$res$${std}: $$tst"; \ - done; \ - if test "$$all" -eq 1; then \ - tests="test"; \ - All=""; \ - else \ - tests="tests"; \ - All="All "; \ - fi; \ - if test "$$failed" -eq 0; then \ - if test "$$xfail" -eq 0; then \ - banner="$$All$$all $$tests passed"; \ - else \ - if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ - banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ - fi; \ - else \ - if test "$$xpass" -eq 0; then \ - banner="$$failed of $$all $$tests failed"; \ - else \ - if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ - banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ - fi; \ - fi; \ - dashes="$$banner"; \ - skipped=""; \ - if test "$$skip" -ne 0; then \ - if test "$$skip" -eq 1; then \ - skipped="($$skip test was not run)"; \ - else \ - skipped="($$skip tests were not run)"; \ - fi; \ - test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ - dashes="$$skipped"; \ - fi; \ - report=""; \ - if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ - report="Please report to $(PACKAGE_BUGREPORT)"; \ - test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ - dashes="$$report"; \ - fi; \ - dashes=`echo "$$dashes" | sed s/./=/g`; \ - if test "$$failed" -eq 0; then \ - echo "$$grn$$dashes"; \ - else \ - echo "$$red$$dashes"; \ - fi; \ - echo "$$banner"; \ - test -z "$$skipped" || echo "$$skipped"; \ - test -z "$$report" || echo "$$report"; \ - echo "$$dashes$$std"; \ - test "$$failed" -eq 0; \ - else :; fi - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am - $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) - $(MAKE) $(AM_MAKEFLAGS) check-TESTS -check: check-am -all-am: Makefile $(PROGRAMS) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ - clean-noinstPROGRAMS mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: check-am install-am install-strip - -.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ - clean-checkPROGRAMS clean-generic clean-libtool \ - clean-noinstPROGRAMS ctags distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am - - -SUFFIXES: .moc - -.cpp.moc: - $(AM_V_GEN) $(MOCQT4) -i $< -o $@ - -clean-generic: - rm -f *.moc -@BUILD_POPPLER_QT4_TRUE@check_attachments.$(OBJEXT): check_attachments.moc -@BUILD_POPPLER_QT4_TRUE@check_actualtext.$(OBJEXT): check_actualtext.moc -@BUILD_POPPLER_QT4_TRUE@check_dateConversion.$(OBJEXT): check_dateConversion.moc -@BUILD_POPPLER_QT4_TRUE@check_fonts.$(OBJEXT): check_fonts.moc -@BUILD_POPPLER_QT4_TRUE@check_links.$(OBJEXT): check_links.moc -@BUILD_POPPLER_QT4_TRUE@check_metadata.$(OBJEXT): check_metadata.moc -@BUILD_POPPLER_QT4_TRUE@check_optcontent.$(OBJEXT): check_optcontent.moc -@BUILD_POPPLER_QT4_TRUE@check_pagemode.$(OBJEXT): check_pagemode.moc -@BUILD_POPPLER_QT4_TRUE@check_permissions.$(OBJEXT): check_permissions.moc -@BUILD_POPPLER_QT4_TRUE@check_pagelayout.$(OBJEXT): check_pagelayout.moc -@BUILD_POPPLER_QT4_TRUE@check_password.$(OBJEXT): check_password.moc -@BUILD_POPPLER_QT4_TRUE@check_search.$(OBJEXT): check_search.moc - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_actualtext.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_actualtext.cpp deleted file mode 100644 index 64fae8fb412..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_actualtext.cpp +++ /dev/null @@ -1,33 +0,0 @@ -#include <QtTest/QtTest> - -#include <poppler-qt4.h> - -#include <QtCore/QFile> - -class TestActualText: public QObject -{ - Q_OBJECT -private slots: - void checkActualText1(); -}; - -void TestActualText::checkActualText1() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/WithActualText.pdf"); - QVERIFY( doc ); - - Poppler::Page *page = doc->page(0); - QVERIFY( page ); - - QCOMPARE( page->text(QRectF()), QString("The slow brown fox jumps over the black dog.") ); - - delete page; - - delete doc; -} - -QTEST_MAIN(TestActualText) - -#include "check_actualtext.moc" - diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_attachments.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_attachments.cpp deleted file mode 100644 index 2e02ec8162d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_attachments.cpp +++ /dev/null @@ -1,157 +0,0 @@ -#include <QtTest/QtTest> - -#include <poppler-qt4.h> - -#include <QtCore/QFile> - -class TestAttachments: public QObject -{ - Q_OBJECT -private slots: - void checkNoAttachments(); - void checkAttach1(); - void checkAttach2(); - void checkAttach3(); - void checkAttach4(); -}; - -void TestAttachments::checkNoAttachments() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/truetype.pdf"); - QVERIFY( doc ); - - QCOMPARE( doc->hasEmbeddedFiles(), false ); - - delete doc; -} - -void TestAttachments::checkAttach1() -{ - - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/WithAttachments.pdf"); - QVERIFY( doc ); - - QVERIFY( doc->hasEmbeddedFiles() ); - - QList<Poppler::EmbeddedFile*> fileList = doc->embeddedFiles(); - QCOMPARE( fileList.size(), 2 ); - - Poppler::EmbeddedFile *embfile = fileList.at(0); - QCOMPARE( embfile->name(), QString( "kroller.png" ) ); - QCOMPARE( embfile->description(), QString("/home/bradh/coding/svn-vers/KDE/kdeartwork/wallpapers/kroller.png") ); - QCOMPARE( embfile->createDate(), QDateTime( QDate(), QTime() ) ); - QCOMPARE( embfile->modDate(), QDateTime( QDate(), QTime() ) ); - QCOMPARE( embfile->mimeType(), QString() ); - - QFile file( "../../../test/unittestcases/kroller.png" ); - QVERIFY( file.open( QIODevice::ReadOnly ) ); - QByteArray krollerData = file.readAll(); - QByteArray embdata = embfile->data(); - QCOMPARE( krollerData, embdata ); - - - Poppler::EmbeddedFile *embfile2 = fileList.at(1); - QCOMPARE( embfile2->name(), QString("gnome-64.gif") ); - QCOMPARE( embfile2->description(), QString("/usr/share/gnome-about/gnome-64.gif") ); - QCOMPARE( embfile2->modDate(), QDateTime( QDate(), QTime() ) ); - QCOMPARE( embfile2->createDate(), QDateTime( QDate(), QTime() ) ); - QCOMPARE( embfile2->mimeType(), QString() ); - - QFile file2( "../../../test/unittestcases/gnome-64.gif" ); - QVERIFY( file2.open( QIODevice::ReadOnly ) ); - QByteArray g64Data = file2.readAll(); - QByteArray emb2data = embfile2->data(); - QCOMPARE( g64Data, emb2data ); - - delete doc; -} - - -void TestAttachments::checkAttach2() -{ - - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/A6EmbeddedFiles.pdf"); - QVERIFY( doc ); - - QVERIFY( doc->hasEmbeddedFiles() ); - - QList<Poppler::EmbeddedFile*> fileList; - fileList = doc->embeddedFiles(); - QCOMPARE( fileList.size(), 3 ); - - Poppler::EmbeddedFile *embfile1 = fileList.at(0); - QCOMPARE( embfile1->name(), QString("Acro7 thoughts") ); - QCOMPARE( embfile1->description(), QString("Acro7 Thoughts") ); - QCOMPARE( embfile1->createDate(), QDateTime( QDate( 2003, 8, 4 ), QTime( 13, 54, 54), Qt::UTC ) ); - QCOMPARE( embfile1->modDate(), QDateTime( QDate( 2003, 8, 4 ), QTime( 14, 15, 27), Qt::UTC ) ); - QCOMPARE( embfile1->mimeType(), QString("text/xml") ); - - Poppler::EmbeddedFile *embfile2 = fileList.at(1); - QCOMPARE( embfile2->name(), QString("acro transitions 1.xls") ); - QCOMPARE( embfile2->description(), QString("AcroTransitions") ); - QCOMPARE( embfile2->createDate(), QDateTime( QDate( 2003, 7, 18 ), QTime( 21, 7, 16), Qt::UTC ) ); - QCOMPARE( embfile2->modDate(), QDateTime( QDate( 2003, 7, 22 ), QTime( 13, 4, 40), Qt::UTC ) ); - QCOMPARE( embfile2->mimeType(), QString("application/excel") ); - - Poppler::EmbeddedFile *embfile3 = fileList.at(2); - QCOMPARE( embfile3->name(), QString("apago_pdfe_wide.gif") ); - QCOMPARE( embfile3->description(), QString("PDFE Animation") ); - QCOMPARE( embfile3->createDate(), QDateTime( QDate( 2003, 1, 31 ), QTime( 15, 54, 29), Qt::UTC ) ); - QCOMPARE( embfile3->modDate(), QDateTime( QDate( 2003, 1, 31 ), QTime( 15, 52, 58), Qt::UTC ) ); - QCOMPARE( embfile3->mimeType(), QString() ); - - delete doc; -} - -void TestAttachments::checkAttach3() -{ - - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/shapes+attachments.pdf"); - QVERIFY( doc ); - - QVERIFY( doc->hasEmbeddedFiles() ); - - QList<Poppler::EmbeddedFile*> fileList; - fileList = doc->embeddedFiles(); - QCOMPARE( fileList.size(), 1 ); - - Poppler::EmbeddedFile *embfile = fileList.at(0); - QCOMPARE( embfile->name(), QString( "ADEX1.xpdf.pgp" ) ); - QCOMPARE( embfile->description(), QString("encrypted version of document") ); - QCOMPARE( embfile->createDate(), QDateTime( QDate( 2004, 3, 29 ), QTime( 19, 37, 16), Qt::UTC ) ); - QCOMPARE( embfile->modDate(), QDateTime( QDate( 2004, 3, 29 ), QTime( 19, 37, 16), Qt::UTC ) ); - QCOMPARE( embfile->mimeType(), QString() ); - delete doc; - -} - -void TestAttachments::checkAttach4() -{ - - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/imageretrieve+attachment.pdf"); - QVERIFY( doc ); - - QVERIFY( doc->hasEmbeddedFiles() ); - - QList<Poppler::EmbeddedFile*> fileList; - fileList = doc->embeddedFiles(); - QCOMPARE( fileList.size(), 1 ); - - Poppler::EmbeddedFile *embfile = fileList.at(0); - QCOMPARE( embfile->name(), QString( "export-altona.csv" ) ); - QCOMPARE( embfile->description(), QString("Altona Export") ); - QCOMPARE( embfile->createDate(), QDateTime( QDate( 2005, 8, 30 ), QTime( 20, 49, 35), Qt::UTC ) ); - QCOMPARE( embfile->modDate(), QDateTime( QDate( 2005, 8, 30 ), QTime( 20, 49, 52), Qt::UTC ) ); - QCOMPARE( embfile->mimeType(), QString("application/vnd.ms-excel") ); - delete doc; - -} - -QTEST_MAIN(TestAttachments) -#include "check_attachments.moc" - diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_dateConversion.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_dateConversion.cpp deleted file mode 100644 index c1f84e2f113..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_dateConversion.cpp +++ /dev/null @@ -1,142 +0,0 @@ -#include <QtTest/QtTest> - -Q_DECLARE_METATYPE(QDate) -Q_DECLARE_METATYPE(QTime) - -#include <poppler-qt4.h> - -class TestDateConv: public QObject -{ - Q_OBJECT -private slots: - void initTestCase(); - void checkDates_data(); - void checkDates(); - void checkInvalidDates_data(); - void checkInvalidDates(); -}; - -void TestDateConv::initTestCase() -{ - qRegisterMetaType<QDate>("QDate"); - qRegisterMetaType<QTime>("QTime"); -} - -void TestDateConv::checkDates_data() -{ - QTest::addColumn<QByteArray>("input"); - QTest::addColumn<QDate>("day"); - QTest::addColumn<QTime>("time"); - - // This is a typical case - all data provided - QTest::newRow("D:20040101121110") - << QByteArray("D:20040101121110Z") - << QDate( 2004, 1, 1) - << QTime( 12, 11, 10); - - // The D: is strongly recommended, but optional - QTest::newRow("20040101121110") - << QByteArray("20040101121110Z") - << QDate( 2004, 1, 1) - << QTime( 12, 11, 10); - - // Only the year is actually required - QTest::newRow("D:2006") - << QByteArray("D:2006") - << QDate( 2006, 1, 1) - << QTime( 0, 0, 0); - - QTest::newRow("D:200602") - << QByteArray("D:200602") - << QDate( 2006, 2, 1) - << QTime( 0, 0, 0); - - QTest::newRow("D:20060304") - << QByteArray("D:20060304") - << QDate( 2006, 3, 4) - << QTime( 0, 0, 0); - - QTest::newRow("D:2006030405") - << QByteArray("D:2006030405") - << QDate( 2006, 3, 4) - << QTime( 5, 0, 0); - - QTest::newRow("D:200603040512") - << QByteArray("D:200603040512") - << QDate( 2006, 3, 4) - << QTime( 5, 12, 0); - - // If the timezone isn't specified, I assume UTC - QTest::newRow("D:20060304051226") - << QByteArray("D:20060304051226") - << QDate( 2006, 3, 4) - << QTime( 5, 12, 26); - - // Check for real timezone conversions - QTest::newRow("D:20030131115258-04'00'") - << QByteArray("D:20030131115258-04'00'") - << QDate( 2003, 1, 31) - << QTime( 15, 52, 58); - - QTest::newRow("D:20030131115258+05'00'") - << QByteArray("D:20030131115258+05'00'") - << QDate( 2003, 1, 31) - << QTime( 6, 52, 58); - - // There are places that have non-hour offsets - // Yep, that means you Adelaide. - QTest::newRow("D:20030131115258+08'30'") - << QByteArray("D:20030131115258+08'30'") - << QDate( 2003, 1, 31) - << QTime( 3, 22, 58); - - QTest::newRow("D:20030131115258-08'30'") - << QByteArray("D:20030131115258-08'30'") - << QDate( 2003, 1, 31) - << QTime( 20, 22, 58); -} - -void TestDateConv::checkDates() -{ - QFETCH(QByteArray, input); - QFETCH(QDate, day); - QFETCH(QTime, time); - - QCOMPARE( Poppler::convertDate(input.data()), QDateTime(day, time, Qt::UTC) ); -} - -void TestDateConv::checkInvalidDates_data() -{ - QTest::addColumn<QByteArray>("input"); - - // Null data - QTest::newRow("Null data") - << QByteArray(); - - // Empty data - QTest::newRow("Empty data") - << QByteArray(""); - - // Empty data - QTest::newRow("One character") - << QByteArray("D"); - - // Empty data - QTest::newRow("'D:'") - << QByteArray("D:"); - - // Empty data - QTest::newRow("Not a date") - << QByteArray("D:IAmNotAValidDate"); -} - -void TestDateConv::checkInvalidDates() -{ - QFETCH(QByteArray, input); - - QCOMPARE(Poppler::convertDate(input.data()), QDateTime()); -} - -QTEST_MAIN(TestDateConv) - -#include "check_dateConversion.moc" diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_fonts.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_fonts.cpp deleted file mode 100644 index fdf4be73290..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_fonts.cpp +++ /dev/null @@ -1,246 +0,0 @@ -#include <QtTest/QtTest> - -#include <poppler-qt4.h> - -#include <memory> - -class TestFontsData: public QObject -{ - Q_OBJECT -private slots: - void checkNoFonts(); - void checkType1(); - void checkType3(); - void checkTrueType(); - void checkFontIterator(); - void checkSecondDocumentQuery(); - void checkMultipleIterations(); - void checkScanForFonts(); -}; - - -QList<Poppler::FontInfo> loadFontsViaIterator( Poppler::Document *doc, int from = 0, int count = -1 ) -{ - int num = count == -1 ? doc->numPages() - from : count; - QList<Poppler::FontInfo> list; - std::auto_ptr< Poppler::FontIterator > it( doc->newFontIterator( from ) ); - while ( it->hasNext() && num ) - { - list += it->next(); - --num; - } - return list; -} - -bool operator==( const Poppler::FontInfo &f1, const Poppler::FontInfo &f2 ) -{ - if ( f1.name() != f2.name() ) - return false; - if ( f1.file() != f2.file() ) - return false; - if ( f1.isEmbedded() != f2.isEmbedded() ) - return false; - if ( f1.isSubset() != f2.isSubset() ) - return false; - if ( f1.type() != f2.type() ) - return false; - if ( f1.typeName() != f2.typeName() ) - return false; - return true; -} - - -void TestFontsData::checkNoFonts() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/tests/image.pdf"); - QVERIFY( doc ); - - QList<Poppler::FontInfo> listOfFonts = doc->fonts(); - QCOMPARE( listOfFonts.size(), 0 ); - - delete doc; -} - -void TestFontsData::checkType1() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/tests/text.pdf"); - QVERIFY( doc ); - - QList<Poppler::FontInfo> listOfFonts = doc->fonts(); - QCOMPARE( listOfFonts.size(), 1 ); - QCOMPARE( listOfFonts.at(0).name(), QString("Helvetica") ); - QCOMPARE( listOfFonts.at(0).type(), Poppler::FontInfo::Type1 ); - QCOMPARE( listOfFonts.at(0).typeName(), QString("Type 1") ); - - QCOMPARE( listOfFonts.at(0).isEmbedded(), false ); - QCOMPARE( listOfFonts.at(0).isSubset(), false ); - - delete doc; -} - -void TestFontsData::checkType3() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/tests/type3.pdf"); - QVERIFY( doc ); - - QList<Poppler::FontInfo> listOfFonts = doc->fonts(); - QCOMPARE( listOfFonts.size(), 2 ); - QCOMPARE( listOfFonts.at(0).name(), QString("Helvetica") ); - QCOMPARE( listOfFonts.at(0).type(), Poppler::FontInfo::Type1 ); - QCOMPARE( listOfFonts.at(0).typeName(), QString("Type 1") ); - - QCOMPARE( listOfFonts.at(0).isEmbedded(), false ); - QCOMPARE( listOfFonts.at(0).isSubset(), false ); - - QCOMPARE( listOfFonts.at(1).name(), QString("") ); - QCOMPARE( listOfFonts.at(1).type(), Poppler::FontInfo::Type3 ); - QCOMPARE( listOfFonts.at(1).typeName(), QString("Type 3") ); - - QCOMPARE( listOfFonts.at(1).isEmbedded(), true ); - QCOMPARE( listOfFonts.at(1).isSubset(), false ); - - delete doc; -} - -void TestFontsData::checkTrueType() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/truetype.pdf"); - QVERIFY( doc ); - - QList<Poppler::FontInfo> listOfFonts = doc->fonts(); - QCOMPARE( listOfFonts.size(), 2 ); - QCOMPARE( listOfFonts.at(0).name(), QString("Arial-BoldMT") ); - QCOMPARE( listOfFonts.at(0).type(), Poppler::FontInfo::TrueType ); - QCOMPARE( listOfFonts.at(0).typeName(), QString("TrueType") ); - - QCOMPARE( listOfFonts.at(0).isEmbedded(), false ); - QCOMPARE( listOfFonts.at(0).isSubset(), false ); - - QCOMPARE( listOfFonts.at(1).name(), QString("ArialMT") ); - QCOMPARE( listOfFonts.at(1).type(), Poppler::FontInfo::TrueType ); - QCOMPARE( listOfFonts.at(1).typeName(), QString("TrueType") ); - - QCOMPARE( listOfFonts.at(1).isEmbedded(), false ); - QCOMPARE( listOfFonts.at(1).isSubset(), false ); - - delete doc; -} - -void TestFontsData::checkFontIterator() -{ - // loading a 1-page document - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/tests/type3.pdf"); - QVERIFY( doc ); - // loading a 6-pages document - Poppler::Document *doc6 = Poppler::Document::load("../../../test/tests/cropbox.pdf"); - QVERIFY( doc6 ); - - std::auto_ptr< Poppler::FontIterator > it; - - // some tests with the 1-page document: - // - check a default iterator - it.reset( doc->newFontIterator() ); - QVERIFY( it->hasNext() ); - // - check an iterator for negative pages to behave as 0 - it.reset( doc->newFontIterator( -1 ) ); - QVERIFY( it->hasNext() ); - // - check an iterator for pages out of the page limit - it.reset( doc->newFontIterator( 1 ) ); - QVERIFY( !it->hasNext() ); - // - check that it reaches the end after 1 iteration - it.reset( doc->newFontIterator() ); - QVERIFY( it->hasNext() ); - it->next(); - QVERIFY( !it->hasNext() ); - - // some tests with the 6-page document: - // - check a default iterator - it.reset( doc6->newFontIterator() ); - QVERIFY( it->hasNext() ); - // - check an iterator for pages out of the page limit - it.reset( doc6->newFontIterator( 6 ) ); - QVERIFY( !it->hasNext() ); - // - check that it reaches the end after 6 iterations - it.reset( doc6->newFontIterator() ); - QVERIFY( it->hasNext() ); - it->next(); - QVERIFY( it->hasNext() ); - it->next(); - QVERIFY( it->hasNext() ); - it->next(); - QVERIFY( it->hasNext() ); - it->next(); - QVERIFY( it->hasNext() ); - it->next(); - QVERIFY( it->hasNext() ); - it->next(); - QVERIFY( !it->hasNext() ); - - delete doc; - delete doc6; -} - -void TestFontsData::checkSecondDocumentQuery() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/tests/type3.pdf"); - QVERIFY( doc ); - - QList<Poppler::FontInfo> listOfFonts = doc->fonts(); - QCOMPARE( listOfFonts.size(), 2 ); - // check we get the very same result when calling fonts() again (#19405) - QList<Poppler::FontInfo> listOfFonts2 = doc->fonts(); - QCOMPARE( listOfFonts, listOfFonts2 ); - - delete doc; -} - -void TestFontsData::checkMultipleIterations() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/tests/type3.pdf"); - QVERIFY( doc ); - - QList<Poppler::FontInfo> listOfFonts = loadFontsViaIterator( doc ); - QCOMPARE( listOfFonts.size(), 2 ); - QList<Poppler::FontInfo> listOfFonts2 = loadFontsViaIterator( doc ); - QCOMPARE( listOfFonts, listOfFonts2 ); - - delete doc; -} - -void TestFontsData::checkScanForFonts() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/tests/fonts.pdf"); - QVERIFY( doc ); - - QList<Poppler::FontInfo> listOfFonts = doc->fonts(); - QCOMPARE( listOfFonts.size(), 3 ); - // check we get the very same result when gatering fonts using scanForFonts - QList<Poppler::FontInfo> listOfFonts2; - for ( int i = 0; i < doc->numPages(); ++i ) - { - doc->scanForFonts( 1, &listOfFonts2 ); - } - QCOMPARE( listOfFonts, listOfFonts2 ); - - // check doing a second scanForFonts gives no result - QList<Poppler::FontInfo> listOfFonts3; - for ( int i = 0; i < doc->numPages(); ++i ) - { - doc->scanForFonts( 1, &listOfFonts3 ); - } - QVERIFY( listOfFonts3.isEmpty() ); - - delete doc; -} - -QTEST_MAIN(TestFontsData) -#include "check_fonts.moc" - diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_links.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_links.cpp deleted file mode 100644 index 2f69a828df8..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_links.cpp +++ /dev/null @@ -1,96 +0,0 @@ -#include <QtTest/QtTest> - -#include <poppler-qt4.h> - -#include <memory> - -class TestLinks : public QObject -{ - Q_OBJECT -private slots: - void checkDocumentWithNoDests(); - void checkDests_xr01(); - void checkDests_xr02(); -}; - -bool isDestinationValid_pageNumber( const Poppler::LinkDestination *dest, const Poppler::Document *doc ) -{ - return dest->pageNumber() > 0 && dest->pageNumber() <= doc->numPages(); -} - -bool isDestinationValid_name( const Poppler::LinkDestination *dest ) -{ - return !dest->destinationName().isEmpty(); -} - - -void TestLinks::checkDocumentWithNoDests() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/WithAttachments.pdf"); - QVERIFY( doc ); - - std::auto_ptr< Poppler::LinkDestination > dest; - dest.reset( doc->linkDestination("no.dests.in.this.document") ); - QVERIFY( !isDestinationValid_pageNumber( dest.get(), doc ) ); - QVERIFY( isDestinationValid_name( dest.get() ) ); - - delete doc; -} - -void TestLinks::checkDests_xr01() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/xr01.pdf"); - QVERIFY( doc ); - - Poppler::Page *page = doc->page(0); - QVERIFY( page ); - - QList< Poppler::Link* > links = page->links(); - QCOMPARE( links.count(), 2 ); - - { - QCOMPARE( links.at(0)->linkType(), Poppler::Link::Goto ); - Poppler::LinkGoto *link = static_cast< Poppler::LinkGoto * >( links.at(0) ); - const Poppler::LinkDestination dest = link->destination(); - QVERIFY( !isDestinationValid_pageNumber( &dest, doc ) ); - QVERIFY( isDestinationValid_name( &dest ) ); - QCOMPARE( dest.destinationName(), QString::fromLatin1("section.1") ); - } - - { - QCOMPARE( links.at(1)->linkType(), Poppler::Link::Goto ); - Poppler::LinkGoto *link = static_cast< Poppler::LinkGoto * >( links.at(1) ); - const Poppler::LinkDestination dest = link->destination(); - QVERIFY( !isDestinationValid_pageNumber( &dest, doc ) ); - QVERIFY( isDestinationValid_name( &dest ) ); - QCOMPARE( dest.destinationName(), QString::fromLatin1("section.2") ); - } - - delete doc; -} - -void TestLinks::checkDests_xr02() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/xr02.pdf"); - QVERIFY( doc ); - - std::auto_ptr< Poppler::LinkDestination > dest; - dest.reset( doc->linkDestination("section.1") ); - QVERIFY( isDestinationValid_pageNumber( dest.get(), doc ) ); - QVERIFY( !isDestinationValid_name( dest.get() ) ); - dest.reset( doc->linkDestination("section.2") ); - QVERIFY( isDestinationValid_pageNumber( dest.get(), doc ) ); - QVERIFY( !isDestinationValid_name( dest.get() ) ); - dest.reset( doc->linkDestination("section.3") ); - QVERIFY( !isDestinationValid_pageNumber( dest.get(), doc ) ); - QVERIFY( isDestinationValid_name( dest.get() ) ); - - delete doc; -} - -QTEST_MAIN(TestLinks) - -#include "check_links.moc" diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_metadata.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_metadata.cpp deleted file mode 100644 index 48f05a6ee5d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_metadata.cpp +++ /dev/null @@ -1,226 +0,0 @@ -#include <QtTest/QtTest> - -#include <poppler-qt4.h> - -class TestMetaData: public QObject -{ - Q_OBJECT -private slots: - void checkStrings_data(); - void checkStrings(); - void checkStrings2_data(); - void checkStrings2(); - void checkStringKeys(); - void checkLinearised(); - void checkNumPages(); - void checkDate(); - void checkPageSize(); - void checkPortraitOrientation(); - void checkLandscapeOrientation(); - void checkUpsideDownOrientation(); - void checkSeascapeOrientation(); - void checkVersion(); -}; - -void TestMetaData::checkStrings_data() -{ - QTest::addColumn<QString>("key"); - QTest::addColumn<QString>("value"); - - QTest::newRow( "Author" ) << "Author" << "Brad Hards"; - QTest::newRow( "Title" ) << "Title" << "Two pages"; - QTest::newRow( "Subject" ) << "Subject" - << "A two page layout for poppler testing"; - QTest::newRow( "Keywords" ) << "Keywords" << "Qt4 bindings"; - QTest::newRow( "Creator" ) << "Creator" << "iText: cgpdftops CUPS filter"; - QTest::newRow( "Producer" ) << "Producer" << "Acrobat Distiller 7.0 for Macintosh"; -} - -void TestMetaData::checkStrings() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/doublepage.pdf"); - QVERIFY( doc ); - - QFETCH( QString, key ); - QFETCH( QString, value ); - QCOMPARE( doc->info(key), value ); - - delete doc; -} - -void TestMetaData::checkStrings2_data() -{ - QTest::addColumn<QString>("key"); - QTest::addColumn<QString>("value"); - - QTest::newRow( "Title" ) << "Title" << "Malaga hotels"; - QTest::newRow( "Author" ) << "Author" << "Brad Hards"; - QTest::newRow( "Creator" ) << "Creator" << "Safari: cgpdftops CUPS filter"; - QTest::newRow( "Producer" ) << "Producer" << "Acrobat Distiller 7.0 for Macintosh"; - QTest::newRow( "Keywords" ) << "Keywords" << "First\rSecond\rthird"; - QTest::newRow( "Custom1" ) << "Custom1" << "CustomValue1"; - QTest::newRow( "Custom2" ) << "Custom2" << "CustomValue2"; -} - -void TestMetaData::checkStrings2() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/truetype.pdf"); - QVERIFY( doc ); - - QFETCH( QString, key ); - QFETCH( QString, value ); - QCOMPARE( doc->info(key), value ); - - delete doc; -} - -void TestMetaData::checkStringKeys() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/truetype.pdf"); - QVERIFY( doc ); - - QStringList keyList; - keyList << "Title" << "Author" << "Creator" << "Keywords" << "CreationDate"; - keyList << "Producer" << "ModDate" << "Custom1" << "Custom2"; - keyList.sort(); - QStringList keysInDoc = doc->infoKeys(); - keysInDoc.sort(); - QCOMPARE( keysInDoc, keyList ); - - delete doc; -} - -void TestMetaData::checkLinearised() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/orientation.pdf"); - QVERIFY( doc ); - - QVERIFY( doc->isLinearized() ); - - delete doc; - - doc = Poppler::Document::load("../../../test/unittestcases/truetype.pdf"); - QVERIFY( doc ); - QEXPECT_FAIL("", "We don't yet handle linearisation correctly", Continue); - QCOMPARE( doc->isLinearized(), false ); - - delete doc; -} - -void TestMetaData::checkPortraitOrientation() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/orientation.pdf"); - QVERIFY( doc ); - - Poppler::Page *page = doc->page(0); - QCOMPARE( page->orientation(), Poppler::Page::Portrait ); - - delete page; - delete doc; -} - -void TestMetaData::checkNumPages() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/doublepage.pdf"); - QVERIFY( doc ); - QCOMPARE( doc->numPages(), 2 ); - - delete doc; - - doc = Poppler::Document::load("../../../test/unittestcases/truetype.pdf"); - QVERIFY( doc ); - QCOMPARE( doc->numPages(), 1 ); - - delete doc; -} - -void TestMetaData::checkDate() -{ - Poppler::Document *doc; - - doc = Poppler::Document::load("../../../test/unittestcases/truetype.pdf"); - QVERIFY( doc ); - QCOMPARE( doc->date("ModDate"), QDateTime(QDate(2005, 12, 5), QTime(9,44,46), Qt::UTC ) ); - QCOMPARE( doc->date("CreationDate"), QDateTime(QDate(2005, 8, 13), QTime(1,12,11), Qt::UTC ) ); - - delete doc; -} - -void TestMetaData::checkPageSize() -{ - Poppler::Document *doc; - - doc = Poppler::Document::load("../../../test/unittestcases/truetype.pdf"); - QVERIFY( doc ); - Poppler::Page *page = doc->page(0); - QCOMPARE( page->pageSize(), QSize(595, 842) ); - QCOMPARE( page->pageSizeF(), QSizeF(595.22, 842) ); - - delete page; - delete doc; -} - - -void TestMetaData::checkLandscapeOrientation() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/orientation.pdf"); - QVERIFY( doc ); - - Poppler::Page *page = doc->page(1); - QCOMPARE( page->orientation(), Poppler::Page::Landscape ); - - delete page; - delete doc; -} - -void TestMetaData::checkUpsideDownOrientation() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/orientation.pdf"); - QVERIFY( doc ); - - Poppler::Page *page = doc->page(2); - QCOMPARE( page->orientation(), Poppler::Page::UpsideDown ); - - delete page; - delete doc; -} - -void TestMetaData::checkSeascapeOrientation() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/orientation.pdf"); - QVERIFY( doc ); - - Poppler::Page *page = doc->page(3); - QCOMPARE( page->orientation(), Poppler::Page::Seascape ); - - delete page; - delete doc; -} - -void TestMetaData::checkVersion() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/doublepage.pdf"); - QVERIFY( doc ); - - QCOMPARE( doc->pdfVersion(), 1.6 ); - int major = 0, minor = 0; - doc->getPdfVersion( &major, &minor ); - QCOMPARE( major, 1 ); - QCOMPARE( minor, 6 ); - - delete doc; -} - -QTEST_MAIN(TestMetaData) -#include "check_metadata.moc" - diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_optcontent.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_optcontent.cpp deleted file mode 100644 index ec988b8edda..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_optcontent.cpp +++ /dev/null @@ -1,479 +0,0 @@ -#include <QtTest/QtTest> - -#include "PDFDoc.h" - -#include <poppler-qt4.h> - -class TestOptionalContent: public QObject -{ - Q_OBJECT -private slots: - void checkVisPolicy(); - void checkNestedLayers(); - void checkNoOptionalContent(); - void checkIsVisible(); - void checkVisibilitySetting(); - void checkRadioButtons(); -}; - -void TestOptionalContent::checkVisPolicy() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/vis_policy_test.pdf"); - QVERIFY( doc ); - - QVERIFY( doc->hasOptionalContent() ); - - Poppler::OptContentModel *optContent = doc->optionalContentModel(); - QModelIndex index; - index = optContent->index( 0, 0, QModelIndex() ); - QCOMPARE( optContent->data( index, Qt::DisplayRole ).toString(), QString( "A" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( index, Qt::CheckStateRole ).toInt() ), Qt::Checked ); - index = optContent->index( 1, 0, QModelIndex() ); - QCOMPARE( optContent->data( index, Qt::DisplayRole ).toString(), QString( "B" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( index, Qt::CheckStateRole ).toInt() ), Qt::Checked ); - - delete doc; -} - -void TestOptionalContent::checkNestedLayers() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/NestedLayers.pdf"); - QVERIFY( doc ); - - QVERIFY( doc->hasOptionalContent() ); - - Poppler::OptContentModel *optContent = doc->optionalContentModel(); - QModelIndex index; - - index = optContent->index( 0, 0, QModelIndex() ); - QCOMPARE( optContent->data( index, Qt::DisplayRole ).toString(), QString( "Black Text and Green Snow" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( index, Qt::CheckStateRole ).toInt() ), Qt::Unchecked ); - - index = optContent->index( 1, 0, QModelIndex() ); - QCOMPARE( optContent->data( index, Qt::DisplayRole ).toString(), QString( "Mountains and Image" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( index, Qt::CheckStateRole ).toInt() ), Qt::Checked ); - - // This is a sub-item of "Mountains and Image" - QModelIndex subindex = optContent->index( 0, 0, index ); - QCOMPARE( optContent->data( subindex, Qt::DisplayRole ).toString(), QString( "Image" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( index, Qt::CheckStateRole ).toInt() ), Qt::Checked ); - - index = optContent->index( 2, 0, QModelIndex() ); - QCOMPARE( optContent->data( index, Qt::DisplayRole ).toString(), QString( "Starburst" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( index, Qt::CheckStateRole ).toInt() ), Qt::Checked ); - - index = optContent->index( 3, 0, QModelIndex() ); - QCOMPARE( optContent->data( index, Qt::DisplayRole ).toString(), QString( "Watermark" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( index, Qt::CheckStateRole ).toInt() ), Qt::Unchecked ); - - delete doc; -} - -void TestOptionalContent::checkNoOptionalContent() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/orientation.pdf"); - QVERIFY( doc ); - - QCOMPARE( doc->hasOptionalContent(), false ); - - delete doc; -} - -void TestOptionalContent::checkIsVisible() -{ - GooString *fileName = new GooString("../../../test/unittestcases/vis_policy_test.pdf"); - PDFDoc *doc = new PDFDoc( fileName ); - QVERIFY( doc ); - - OCGs *ocgs = doc->getOptContentConfig(); - QVERIFY( ocgs ); - - XRef *xref = doc->getXRef(); - - Object obj; - - // In this test, both Ref(21,0) and Ref(2,0) are set to On - - // AnyOn, one element array: - // 22 0 obj<</Type/OCMD/OCGs[21 0 R]/P/AnyOn>>endobj - xref->fetch( 22, 0, &obj ); - QVERIFY( obj.isDict() ); - QVERIFY( ocgs->optContentIsVisible( &obj ) ); - obj.free(); - - // Same again, looking for any leaks or dubious free()'s - xref->fetch( 22, 0, &obj ); - QVERIFY( obj.isDict() ); - QVERIFY( ocgs->optContentIsVisible( &obj ) ); - obj.free(); - - // AnyOff, one element array: - // 29 0 obj<</Type/OCMD/OCGs[21 0 R]/P/AnyOff>>endobj - xref->fetch( 29, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - // AllOn, one element array: - // 36 0 obj<</Type/OCMD/OCGs[28 0 R]/P/AllOn>>endobj - xref->fetch( 36, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), true ); - obj.free(); - - - // AllOff, one element array: - // 43 0 obj<</Type/OCMD/OCGs[28 0 R]/P/AllOff>>endobj - xref->fetch( 43, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - // AnyOn, multi-element array: - // 50 0 obj<</Type/OCMD/OCGs[21 0 R 28 0 R]/P/AnyOn>>endobj - xref->fetch( 50, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), true ); - obj.free(); - - // AnyOff, multi-element array: - // 57 0 obj<</Type/OCMD/P/AnyOff/OCGs[21 0 R 28 0 R]>>endobj - xref->fetch( 57, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - // AllOn, multi-element array: - // 64 0 obj<</Type/OCMD/P/AllOn/OCGs[21 0 R 28 0 R]>>endobj - xref->fetch( 64, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), true ); - obj.free(); - - // AllOff, multi-element array: - // 71 0 obj<</Type/OCMD/P/AllOff/OCGs[21 0 R 28 0 R]>>endobj - xref->fetch( 71, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - delete doc; -} - -void TestOptionalContent::checkVisibilitySetting() -{ - GooString *fileName = new GooString("../../../test/unittestcases/vis_policy_test.pdf"); - PDFDoc *doc = new PDFDoc( fileName ); - QVERIFY( doc ); - - OCGs *ocgs = doc->getOptContentConfig(); - QVERIFY( ocgs ); - - XRef *xref = doc->getXRef(); - - Object obj; - - // In this test, both Ref(21,0) and Ref(28,0) start On, - // based on the file settings - Object ref21obj; - ref21obj.initRef( 21, 0 ); - Ref ref21 = ref21obj.getRef(); - OptionalContentGroup *ocgA = ocgs->findOcgByRef( ref21 ); - QVERIFY( ocgA ); - - QVERIFY( (ocgA->getName()->cmp("A")) == 0 ); - QCOMPARE( ocgA->getState(), OptionalContentGroup::On ); - - Object ref28obj; - ref28obj.initRef( 28, 0 ); - Ref ref28 = ref28obj.getRef(); - OptionalContentGroup *ocgB = ocgs->findOcgByRef( ref28 ); - QVERIFY( ocgB ); - - QVERIFY( (ocgB->getName()->cmp("B")) == 0 ); - QCOMPARE( ocgB->getState(), OptionalContentGroup::On ); - - // turn one Off - ocgA->setState( OptionalContentGroup::Off ); - - // AnyOn, one element array: - // 22 0 obj<</Type/OCMD/OCGs[21 0 R]/P/AnyOn>>endobj - xref->fetch( 22, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - // Same again, looking for any leaks or dubious free()'s - xref->fetch( 22, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - // AnyOff, one element array: - // 29 0 obj<</Type/OCMD/OCGs[21 0 R]/P/AnyOff>>endobj - xref->fetch( 29, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), true ); - obj.free(); - - // AllOn, one element array: - // 36 0 obj<</Type/OCMD/OCGs[28 0 R]/P/AllOn>>endobj - xref->fetch( 36, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), true ); - obj.free(); - - // AllOff, one element array: - // 43 0 obj<</Type/OCMD/OCGs[28 0 R]/P/AllOff>>endobj - xref->fetch( 43, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - // AnyOn, multi-element array: - // 50 0 obj<</Type/OCMD/OCGs[21 0 R 28 0 R]/P/AnyOn>>endobj - xref->fetch( 50, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), true ); - obj.free(); - - // AnyOff, multi-element array: - // 57 0 obj<</Type/OCMD/P/AnyOff/OCGs[21 0 R 28 0 R]>>endobj - xref->fetch( 57, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), true ); - obj.free(); - - // AllOn, multi-element array: - // 64 0 obj<</Type/OCMD/P/AllOn/OCGs[21 0 R 28 0 R]>>endobj - xref->fetch( 64, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - // AllOff, multi-element array: - // 71 0 obj<</Type/OCMD/P/AllOff/OCGs[21 0 R 28 0 R]>>endobj - xref->fetch( 71, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - - // Turn the other one off as well (i.e. both are Off) - ocgB->setState(OptionalContentGroup::Off); - - // AnyOn, one element array: - // 22 0 obj<</Type/OCMD/OCGs[21 0 R]/P/AnyOn>>endobj - xref->fetch( 22, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - // Same again, looking for any leaks or dubious free()'s - xref->fetch( 22, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - // AnyOff, one element array: - // 29 0 obj<</Type/OCMD/OCGs[21 0 R]/P/AnyOff>>endobj - xref->fetch( 29, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), true ); - obj.free(); - - // AllOn, one element array: - // 36 0 obj<</Type/OCMD/OCGs[28 0 R]/P/AllOn>>endobj - xref->fetch( 36, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - // AllOff, one element array: - // 43 0 obj<</Type/OCMD/OCGs[28 0 R]/P/AllOff>>endobj - xref->fetch( 43, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), true ); - obj.free(); - - // AnyOn, multi-element array: - // 50 0 obj<</Type/OCMD/OCGs[21 0 R 28 0 R]/P/AnyOn>>endobj - xref->fetch( 50, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - // AnyOff, multi-element array: - // 57 0 obj<</Type/OCMD/P/AnyOff/OCGs[21 0 R 28 0 R]>>endobj - xref->fetch( 57, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), true ); - obj.free(); - - // AllOn, multi-element array: - // 64 0 obj<</Type/OCMD/P/AllOn/OCGs[21 0 R 28 0 R]>>endobj - xref->fetch( 64, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - // AllOff, multi-element array: - // 71 0 obj<</Type/OCMD/P/AllOff/OCGs[21 0 R 28 0 R]>>endobj - xref->fetch( 71, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), true ); - obj.free(); - - - // Turn the first one on again (21 is On, 28 is Off) - ocgA->setState(OptionalContentGroup::On); - - // AnyOn, one element array: - // 22 0 obj<</Type/OCMD/OCGs[21 0 R]/P/AnyOn>>endobj - xref->fetch( 22, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), true ); - obj.free(); - - // Same again, looking for any leaks or dubious free()'s - xref->fetch( 22, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), true ); - obj.free(); - - // AnyOff, one element array: - // 29 0 obj<</Type/OCMD/OCGs[21 0 R]/P/AnyOff>>endobj - xref->fetch( 29, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - // AllOn, one element array: - // 36 0 obj<</Type/OCMD/OCGs[28 0 R]/P/AllOn>>endobj - xref->fetch( 36, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - // AllOff, one element array: - // 43 0 obj<</Type/OCMD/OCGs[28 0 R]/P/AllOff>>endobj - xref->fetch( 43, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), true ); - obj.free(); - - // AnyOn, multi-element array: - // 50 0 obj<</Type/OCMD/OCGs[21 0 R 28 0 R]/P/AnyOn>>endobj - xref->fetch( 50, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), true ); - obj.free(); - - // AnyOff, multi-element array: - // 57 0 obj<</Type/OCMD/P/AnyOff/OCGs[21 0 R 28 0 R]>>endobj - xref->fetch( 57, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), true ); - obj.free(); - - // AllOn, multi-element array: - // 64 0 obj<</Type/OCMD/P/AllOn/OCGs[21 0 R 28 0 R]>>endobj - xref->fetch( 64, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - // AllOff, multi-element array: - // 71 0 obj<</Type/OCMD/P/AllOff/OCGs[21 0 R 28 0 R]>>endobj - xref->fetch( 71, 0, &obj ); - QVERIFY( obj.isDict() ); - QCOMPARE( ocgs->optContentIsVisible( &obj ), false ); - obj.free(); - - delete doc; -} - -void TestOptionalContent::checkRadioButtons() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/ClarityOCGs.pdf"); - QVERIFY( doc ); - - QVERIFY( doc->hasOptionalContent() ); - - Poppler::OptContentModel *optContent = doc->optionalContentModel(); - QModelIndex index; - - index = optContent->index( 0, 0, QModelIndex() ); - QCOMPARE( optContent->data( index, Qt::DisplayRole ).toString(), QString( "Languages" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( index, Qt::CheckStateRole ).toInt() ), Qt::Unchecked ); - - // These are sub-items of the "Languages" label - QModelIndex subindex = optContent->index( 0, 0, index ); - QCOMPARE( optContent->data( subindex, Qt::DisplayRole ).toString(), QString( "English" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( subindex, Qt::CheckStateRole ).toInt() ), Qt::Checked ); - - subindex = optContent->index( 1, 0, index ); - QCOMPARE( optContent->data( subindex, Qt::DisplayRole ).toString(), QString( "French" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( subindex, Qt::CheckStateRole ).toInt() ), Qt::Unchecked ); - - subindex = optContent->index( 2, 0, index ); - QCOMPARE( optContent->data( subindex, Qt::DisplayRole ).toString(), QString( "Japanese" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( subindex, Qt::CheckStateRole ).toInt() ), Qt::Unchecked ); - - // RBGroup of languages, so turning on Japanese should turn off English - bool result = optContent->setData( subindex, QVariant( true ), Qt::CheckStateRole ); - - subindex = optContent->index( 0, 0, index ); - QCOMPARE( optContent->data( subindex, Qt::DisplayRole ).toString(), QString( "English" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( subindex, Qt::CheckStateRole ).toInt() ), Qt::Unchecked ); - - subindex = optContent->index( 2, 0, index ); - QCOMPARE( optContent->data( subindex, Qt::DisplayRole ).toString(), QString( "Japanese" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( subindex, Qt::CheckStateRole ).toInt() ), Qt::Checked ); - - subindex = optContent->index( 1, 0, index ); - QCOMPARE( optContent->data( subindex, Qt::DisplayRole ).toString(), QString( "French" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( subindex, Qt::CheckStateRole ).toInt() ), Qt::Unchecked ); - - // and turning on French should turn off Japanese - result = optContent->setData( subindex, QVariant( true ), Qt::CheckStateRole ); - - subindex = optContent->index( 0, 0, index ); - QCOMPARE( optContent->data( subindex, Qt::DisplayRole ).toString(), QString( "English" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( subindex, Qt::CheckStateRole ).toInt() ), Qt::Unchecked ); - - subindex = optContent->index( 2, 0, index ); - QCOMPARE( optContent->data( subindex, Qt::DisplayRole ).toString(), QString( "Japanese" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( subindex, Qt::CheckStateRole ).toInt() ), Qt::Unchecked ); - - subindex = optContent->index( 1, 0, index ); - QCOMPARE( optContent->data( subindex, Qt::DisplayRole ).toString(), QString( "French" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( subindex, Qt::CheckStateRole ).toInt() ), Qt::Checked ); - - - // and turning off French should leave them all off - result = optContent->setData( subindex, QVariant( false ), Qt::CheckStateRole ); - - subindex = optContent->index( 0, 0, index ); - QCOMPARE( optContent->data( subindex, Qt::DisplayRole ).toString(), QString( "English" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( subindex, Qt::CheckStateRole ).toInt() ), Qt::Unchecked ); - - subindex = optContent->index( 2, 0, index ); - QCOMPARE( optContent->data( subindex, Qt::DisplayRole ).toString(), QString( "Japanese" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( subindex, Qt::CheckStateRole ).toInt() ), Qt::Unchecked ); - - subindex = optContent->index( 1, 0, index ); - QCOMPARE( optContent->data( subindex, Qt::DisplayRole ).toString(), QString( "French" ) ); - QCOMPARE( static_cast<Qt::CheckState>( optContent->data( subindex, Qt::CheckStateRole ).toInt() ), Qt::Unchecked ); - - delete doc; -} - -QTEST_MAIN(TestOptionalContent) - -#include "check_optcontent.moc" - diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_pagelayout.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_pagelayout.cpp deleted file mode 100644 index dbdb93ea2ea..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_pagelayout.cpp +++ /dev/null @@ -1,49 +0,0 @@ -#include <QtTest/QtTest> - -#include <poppler-qt4.h> - -class TestPageLayout: public QObject -{ - Q_OBJECT -private slots: - void checkNone(); - void checkSingle(); - void checkFacing(); -}; - -void TestPageLayout::checkNone() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/UseNone.pdf"); - QVERIFY( doc ); - - QCOMPARE( doc->pageLayout(), Poppler::Document::NoLayout ); - - delete doc; -} - -void TestPageLayout::checkSingle() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/FullScreen.pdf"); - QVERIFY( doc ); - - QCOMPARE( doc->pageLayout(), Poppler::Document::SinglePage ); - - delete doc; -} - -void TestPageLayout::checkFacing() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/doublepage.pdf"); - QVERIFY( doc ); - - QCOMPARE( doc->pageLayout(), Poppler::Document::TwoPageRight ); - - delete doc; -} - -QTEST_MAIN(TestPageLayout) -#include "check_pagelayout.moc" - diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_pagemode.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_pagemode.cpp deleted file mode 100644 index 9df07ff3ecc..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_pagemode.cpp +++ /dev/null @@ -1,73 +0,0 @@ -#include <QtTest/QtTest> - -#include <poppler-qt4.h> - -class TestPageMode: public QObject -{ - Q_OBJECT -private slots: - void checkNone(); - void checkFullScreen(); - void checkAttachments(); - void checkThumbs(); - void checkOC(); -}; - -void TestPageMode::checkNone() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/UseNone.pdf"); - QVERIFY( doc ); - - QCOMPARE( doc->pageMode(), Poppler::Document::UseNone ); - - delete doc; -} - -void TestPageMode::checkFullScreen() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/FullScreen.pdf"); - QVERIFY( doc ); - - QCOMPARE( doc->pageMode(), Poppler::Document::FullScreen ); - - delete doc; -} - -void TestPageMode::checkAttachments() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/UseAttachments.pdf"); - QVERIFY( doc ); - - QCOMPARE( doc->pageMode(), Poppler::Document::UseAttach ); - - delete doc; -} - -void TestPageMode::checkThumbs() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/UseThumbs.pdf"); - QVERIFY( doc ); - - QCOMPARE( doc->pageMode(), Poppler::Document::UseThumbs ); - - delete doc; -} - -void TestPageMode::checkOC() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/UseOC.pdf"); - QVERIFY( doc ); - - QCOMPARE( doc->pageMode(), Poppler::Document::UseOC ); - - delete doc; -} - -QTEST_MAIN(TestPageMode) -#include "check_pagemode.moc" - diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_password.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_password.cpp deleted file mode 100644 index 7bc81b21694..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_password.cpp +++ /dev/null @@ -1,88 +0,0 @@ -#include <QtTest/QtTest> - -#include <poppler-qt4.h> - -class TestPassword: public QObject -{ - Q_OBJECT -private slots: - void password1(); - void password1a(); - void password2(); - void password2a(); - void password2b(); - void password3(); -}; - - -// BUG:4557 -void TestPassword::password1() -{ - Poppler::Document *doc; - doc = Poppler::Document::load(QString::fromUtf8("../../../test/unittestcases/Gday garçon - open.pdf"), "", QString::fromUtf8("garçon").toLatin1() ); - QVERIFY( doc ); - QVERIFY( !doc->isLocked() ); - - delete doc; -} - - -void TestPassword::password1a() -{ - Poppler::Document *doc; - doc = Poppler::Document::load(QString::fromUtf8("../../../test/unittestcases/Gday garçon - open.pdf") ); - QVERIFY( doc ); - QVERIFY( doc->isLocked() ); - QVERIFY( !doc->unlock( "", QString::fromUtf8("garçon").toLatin1() ) ); - QVERIFY( !doc->isLocked() ); - - delete doc; -} - -void TestPassword::password2() -{ - Poppler::Document *doc; - doc = Poppler::Document::load(QString::fromUtf8("../../../test/unittestcases/Gday garçon - owner.pdf"), QString::fromUtf8("garçon").toLatin1(), "" ); - QVERIFY( doc ); - QVERIFY( !doc->isLocked() ); - - delete doc; -} - -void TestPassword::password2a() -{ - Poppler::Document *doc; - doc = Poppler::Document::load(QString::fromUtf8("../../../test/unittestcases/Gday garçon - owner.pdf"), QString::fromUtf8("garçon").toLatin1() ); - QVERIFY( doc ); - QVERIFY( !doc->isLocked() ); - - delete doc; -} - -void TestPassword::password2b() -{ - Poppler::Document *doc; - doc = Poppler::Document::load(QString::fromUtf8("../../../test/unittestcases/Gday garçon - owner.pdf") ); - QVERIFY( doc ); - QVERIFY( !doc->isLocked() ); - QVERIFY( !doc->unlock( QString::fromUtf8("garçon").toLatin1(), "" ) ); - QVERIFY( !doc->isLocked() ); - - delete doc; -} - -void TestPassword::password3() -{ - Poppler::Document *doc; - doc = Poppler::Document::load( QString::fromUtf8("../../../test/unittestcases/PasswordEncrypted.pdf") ); - QVERIFY( doc ); - QVERIFY( doc->isLocked() ); - QVERIFY( !doc->unlock( "", "password" ) ); - QVERIFY( !doc->isLocked() ); - - delete doc; -} - -QTEST_MAIN(TestPassword) -#include "check_password.moc" - diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_permissions.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_permissions.cpp deleted file mode 100644 index eec78edfeec..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_permissions.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#include <QtTest/QtTest> - -#include <poppler-qt4.h> - -class TestPermissions: public QObject -{ - Q_OBJECT -private slots: - void permissions1(); -}; - -void TestPermissions::permissions1() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/orientation.pdf"); - QVERIFY( doc ); - - // we are allowed to print - QVERIFY( doc->okToPrint() ); - - // we are not allowed to change - QVERIFY( !(doc->okToChange()) ); - - // we are not allowed to copy or extract content - QVERIFY( !(doc->okToCopy()) ); - - // we are not allowed to print at high resolution - QVERIFY( !(doc->okToPrintHighRes()) ); - - // we are not allowed to fill forms - QVERIFY( !(doc->okToFillForm()) ); - - // we are allowed to extract content for accessibility - QVERIFY( doc->okToExtractForAccessibility() ); - - // we are allowed to assemble this document - QVERIFY( doc->okToAssemble() ); - - delete doc; -} - -QTEST_MAIN(TestPermissions) -#include "check_permissions.moc" - diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_search.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_search.cpp deleted file mode 100644 index c7e44bc3b26..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/check_search.cpp +++ /dev/null @@ -1,91 +0,0 @@ -#include <QtTest/QtTest> - -#include <poppler-qt4.h> - -class TestSearch: public QObject -{ - Q_OBJECT -private slots: - void bug7063(); - void testNextAndPrevious(); -}; - -void TestSearch::bug7063() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/bug7063.pdf"); - QVERIFY( doc ); - - Poppler::Page *page = doc->page(0); - QRectF pageRegion( QPointF(0,0), page->pageSize() ); - - QCOMPARE( page->search(QString("non-ascii:"), pageRegion, Poppler::Page::FromTop, Poppler::Page::CaseSensitive), true ); - - QCOMPARE( page->search(QString("Ascii"), pageRegion, Poppler::Page::FromTop, Poppler::Page::CaseSensitive), false ); - QCOMPARE( page->search(QString("Ascii"), pageRegion, Poppler::Page::FromTop, Poppler::Page::CaseInsensitive), true ); - - QCOMPARE( page->search(QString("latin1:"), pageRegion, Poppler::Page::FromTop, Poppler::Page::CaseSensitive), false ); - - QCOMPARE( page->search(QString::fromUtf8("é"), pageRegion, Poppler::Page::FromTop, Poppler::Page::CaseSensitive), true ); - QCOMPARE( page->search(QString::fromUtf8("à "), pageRegion, Poppler::Page::FromTop, Poppler::Page::CaseSensitive), true ); - QCOMPARE( page->search(QString::fromUtf8("ç"), pageRegion, Poppler::Page::FromTop, Poppler::Page::CaseSensitive), true ); - QCOMPARE( page->search(QString::fromUtf8("search \"é\", \"à \" or \"ç\""), pageRegion, Poppler::Page::FromTop, Poppler::Page::CaseSensitive), true ); - QCOMPARE( page->search(QString::fromUtf8("¥µ©"), pageRegion, Poppler::Page::FromTop, Poppler::Page::CaseSensitive), true ); - QCOMPARE( page->search(QString::fromUtf8("¥©"), pageRegion, Poppler::Page::FromTop, Poppler::Page::CaseSensitive), false ); - - delete doc; -} - -void TestSearch::testNextAndPrevious() -{ - Poppler::Document *doc; - doc = Poppler::Document::load("../../../test/unittestcases/xr01.pdf"); - QVERIFY( doc ); - - Poppler::Page *page = doc->page(0); - QRectF region( QPointF(0,0), page->pageSize() ); - - QCOMPARE( page->search(QString("is"), region, Poppler::Page::FromTop, Poppler::Page::CaseSensitive), true ); - QVERIFY( qAbs(region.x() - 161.44) < 0.01 ); - QVERIFY( qAbs(region.y() - 127.85) < 0.01 ); - QVERIFY( qAbs(region.width() - 6.70) < 0.01 ); - QVERIFY( qAbs(region.height() - 8.85) < 0.01 ); - QCOMPARE( page->search(QString("is"), region, Poppler::Page::NextResult, Poppler::Page::CaseSensitive), true ); - QVERIFY( qAbs(region.x() - 171.46) < 0.01 ); - QVERIFY( qAbs(region.y() - 127.85) < 0.01 ); - QVERIFY( qAbs(region.width() - 6.70) < 0.01 ); - QVERIFY( qAbs(region.height() - 8.85) < 0.01 ); - QCOMPARE( page->search(QString("is"), region, Poppler::Page::NextResult, Poppler::Page::CaseSensitive), true ); - QVERIFY( qAbs(region.x() - 161.44) < 0.01 ); - QVERIFY( qAbs(region.y() - 139.81) < 0.01 ); - QVERIFY( qAbs(region.width() - 6.70) < 0.01 ); - QVERIFY( qAbs(region.height() - 8.85) < 0.01 ); - QCOMPARE( page->search(QString("is"), region, Poppler::Page::NextResult, Poppler::Page::CaseSensitive), true ); - QVERIFY( qAbs(region.x() - 171.46) < 0.01 ); - QVERIFY( qAbs(region.y() - 139.81) < 0.01 ); - QVERIFY( qAbs(region.width() - 6.70) < 0.01 ); - QVERIFY( qAbs(region.height() - 8.85) < 0.01 ); - QCOMPARE( page->search(QString("is"), region, Poppler::Page::NextResult, Poppler::Page::CaseSensitive), false ); - QCOMPARE( page->search(QString("is"), region, Poppler::Page::PreviousResult, Poppler::Page::CaseSensitive), true ); - QVERIFY( qAbs(region.x() - 161.44) < 0.01 ); - QVERIFY( qAbs(region.y() - 139.81) < 0.01 ); - QVERIFY( qAbs(region.width() - 6.70) < 0.01 ); - QVERIFY( qAbs(region.height() - 8.85) < 0.01 ); - QCOMPARE( page->search(QString("is"), region, Poppler::Page::PreviousResult, Poppler::Page::CaseSensitive), true ); - QVERIFY( qAbs(region.x() - 171.46) < 0.01 ); - QVERIFY( qAbs(region.y() - 127.85) < 0.01 ); - QVERIFY( qAbs(region.width() - 6.70) < 0.01 ); - QVERIFY( qAbs(region.height() - 8.85) < 0.01 ); - QCOMPARE( page->search(QString("is"), region, Poppler::Page::PreviousResult, Poppler::Page::CaseSensitive), true ); - QVERIFY( qAbs(region.x() - 161.44) < 0.01 ); - QVERIFY( qAbs(region.y() - 127.85) < 0.01 ); - QVERIFY( qAbs(region.width() - 6.70) < 0.01 ); - QVERIFY( qAbs(region.height() - 8.85) < 0.01 ); - QCOMPARE( page->search(QString("is"), region, Poppler::Page::PreviousResult, Poppler::Page::CaseSensitive), false ); - - delete doc; -} - -QTEST_MAIN(TestSearch) -#include "check_search.moc" - diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/poppler-attachments.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/poppler-attachments.cpp deleted file mode 100644 index 992dc565b93..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/poppler-attachments.cpp +++ /dev/null @@ -1,39 +0,0 @@ -#include <QtCore/QCoreApplication> -#include <QtCore/QDebug> - -#include <iostream> - -#include <poppler-qt4.h> - -int main( int argc, char **argv ) -{ - QCoreApplication a( argc, argv ); // QApplication required! - - if (!( argc == 2 )) - { - qWarning() << "usage: poppler-attachments filename"; - exit(1); - } - - Poppler::Document *doc = Poppler::Document::load(argv[1]); - if (!doc) - { - qWarning() << "doc not loaded"; - exit(1); - } - - if (doc->hasEmbeddedFiles()) { - std::cout << "Embedded files: " << std::endl; - foreach(Poppler::EmbeddedFile *file, doc->embeddedFiles()) { - std::cout << " " << qPrintable(file->name()) << std::endl; - std::cout << " desc:" << qPrintable(file->description()) << std::endl; - QByteArray data = file->data(); - std::cout << " data: " << data.constData() << std::endl; - } - - } else { - std::cout << "There are no embedded document at the top level" << std::endl; - } - delete doc; - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/poppler-fonts.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/poppler-fonts.cpp deleted file mode 100644 index 6b66ec4286b..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/poppler-fonts.cpp +++ /dev/null @@ -1,89 +0,0 @@ -#include <QtCore/QCoreApplication> -#include <QtCore/QDebug> - -#include <iostream> - -#include <poppler-qt4.h> - -int main( int argc, char **argv ) -{ - QCoreApplication a( argc, argv ); // QApplication required! - - if (!( argc == 2 )) - { - qWarning() << "usage: poppler-fonts filename"; - exit(1); - } - - Poppler::Document *doc = Poppler::Document::load(argv[1]); - if (!doc) - { - qWarning() << "doc not loaded"; - exit(1); - } - - std::cout << "name type emb sub font file"; - std::cout << std::endl; - std::cout << "------------------------------------ ------------ --- --- ---------"; - std::cout << std::endl; - - foreach( const Poppler::FontInfo &font, doc->fonts() ) { - if (font.name().isNull()) { - std::cout << qPrintable( QString("%1").arg(QString("[none]"), -37) ); - } else { - std::cout << qPrintable( QString("%1").arg(font.name(), -37) ); - } - switch( font.type() ) { - case Poppler::FontInfo::unknown: - std::cout << "unknown "; - break; - case Poppler::FontInfo::Type1: - std::cout << "Type 1 "; - break; - case Poppler::FontInfo::Type1C: - std::cout << "Type 1C "; - break; - case Poppler::FontInfo::Type3: - std::cout << "Type 3 "; - break; - case Poppler::FontInfo::TrueType: - std::cout << "TrueType "; - break; - case Poppler::FontInfo::CIDType0: - std::cout << "CID Type 0 "; - break; - case Poppler::FontInfo::CIDType0C: - std::cout << "CID Type 0C "; - break; - case Poppler::FontInfo::CIDTrueType: - std::cout << "CID TrueType "; - break; - case Poppler::FontInfo::Type1COT: - std::cout << "Type 1C (OT) "; - break; - case Poppler::FontInfo::TrueTypeOT: - std::cout << "TrueType (OT) "; - break; - case Poppler::FontInfo::CIDType0COT: - std::cout << "CID Type 0C (OT) "; - break; - case Poppler::FontInfo::CIDTrueTypeOT: - std::cout << "CID TrueType (OT) "; - break; - } - - if ( font.isEmbedded() ) { - std::cout << "yes "; - } else { - std::cout << "no "; - } - if ( font.isSubset() ) { - std::cout << "yes "; - } else { - std::cout << "no "; - } - std::cout << qPrintable( QString("%1").arg(font.file()) ); - std::cout << std::endl; - } - delete doc; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/stress-poppler-dir.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/stress-poppler-dir.cpp deleted file mode 100644 index 1ec7ec3dcbc..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/stress-poppler-dir.cpp +++ /dev/null @@ -1,66 +0,0 @@ -#include <QtCore/QDebug> -#include <QtCore/QDir> -#include <QtCore/QTime> -#include <QtGui/QApplication> -#include <QtGui/QImage> - -#include <iostream> - -#include <poppler-qt4.h> - -int main( int argc, char **argv ) -{ - QApplication a( argc, argv ); // QApplication required! - - QTime t; - t.start(); - - QDir directory( argv[1] ); - foreach ( const QString &fileName, directory.entryList() ) { - if (fileName.endsWith("pdf") ) { - qDebug() << "Doing" << fileName.toLatin1().data() << ":"; - Poppler::Document *doc = Poppler::Document::load( directory.canonicalPath()+"/"+fileName ); - if (!doc) { - qWarning() << "doc not loaded"; - } else if ( doc->isLocked() ) { - if (! doc->unlock( "", "password" ) ) { - qWarning() << "couldn't unlock document"; - delete doc; - } - } else { - doc->pdfVersion(); - doc->info("Title"); - doc->info("Subject"); - doc->info("Author"); - doc->info("Keywords"); - doc->info("Creator"); - doc->info("Producer"); - doc->date("CreationDate").toString(); - doc->date("ModDate").toString(); - doc->numPages(); - doc->isLinearized(); - doc->isEncrypted(); - doc->okToPrint(); - doc->okToCopy(); - doc->okToChange(); - doc->okToAddNotes(); - doc->pageMode(); - - for( int index = 0; index < doc->numPages(); ++index ) { - Poppler::Page *page = doc->page( index ); - QImage image = page->renderToImage(); - page->pageSize(); - page->orientation(); - delete page; - std::cout << "."; - std::cout.flush(); - } - std::cout << std::endl; - delete doc; - } - } - } - - std::cout << "Elapsed time: " << (t.elapsed()/1000) << "seconds" << std::endl; - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/stress-poppler-qt4.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/stress-poppler-qt4.cpp deleted file mode 100644 index 7fedae25f47..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/stress-poppler-qt4.cpp +++ /dev/null @@ -1,73 +0,0 @@ -#include <QtCore/QDebug> -#include <QtCore/QDir> -#include <QtCore/QTime> -#include <QtGui/QApplication> -#include <QtGui/QImage> - -#include <iostream> - -#include <poppler-qt4.h> - -int main( int argc, char **argv ) -{ - QApplication a( argc, argv ); // QApplication required! - - Q_UNUSED( argc ); - Q_UNUSED( argv ); - - QTime t; - t.start(); - QDir dbDir( QString( "./pdfdb" ) ); - if ( !dbDir.exists() ) { - qWarning() << "Database directory does not exist"; - } - - QStringList excludeSubDirs; - excludeSubDirs << "000048" << "000607"; - - foreach ( const QString &subdir, dbDir.entryList(QStringList() << "0000*", QDir::Dirs) ) { - if ( excludeSubDirs.contains(subdir) ) { - // then skip it - } else { - QString path = "./pdfdb/" + subdir + "/data.pdf"; - std::cout <<"Doing " << path.toLatin1().data() << " :"; - Poppler::Document *doc = Poppler::Document::load( path ); - if (!doc) { - qWarning() << "doc not loaded"; - } else { - doc->pdfVersion(); - doc->info("Title"); - doc->info("Subject"); - doc->info("Author"); - doc->info("Keywords"); - doc->info("Creator"); - doc->info("Producer"); - doc->date("CreationDate").toString(); - doc->date("ModDate").toString(); - doc->numPages(); - doc->isLinearized(); - doc->isEncrypted(); - doc->okToPrint(); - doc->okToCopy(); - doc->okToChange(); - doc->okToAddNotes(); - doc->pageMode(); - - for( int index = 0; index < doc->numPages(); ++index ) { - Poppler::Page *page = doc->page( index ); - QImage image = page->renderToImage(); - page->pageSize(); - page->orientation(); - delete page; - std::cout << "."; - std::cout.flush(); - } - std::cout << std::endl; - delete doc; - } - } - } - - std::cout << "Elapsed time: " << (t.elapsed()/1000) << std::endl; - -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/test-password-qt4.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/test-password-qt4.cpp deleted file mode 100644 index abc2f4f89a3..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/test-password-qt4.cpp +++ /dev/null @@ -1,134 +0,0 @@ -#include <QtCore/QDebug> -#include <QtGui/QApplication> -#include <QtGui/QImage> -#include <QtGui/QPainter> -#include <QtGui/QPaintEvent> -#include <QtGui/QWidget> - -#include <poppler-qt4.h> - -class PDFDisplay : public QWidget // picture display widget -{ -public: - PDFDisplay( Poppler::Document *d ); - ~PDFDisplay(); -protected: - void paintEvent( QPaintEvent * ); - void keyPressEvent( QKeyEvent * ); -private: - void display(); - int m_currentPage; - QImage image; - Poppler::Document *doc; -}; - -PDFDisplay::PDFDisplay( Poppler::Document *d ) -{ - doc = d; - m_currentPage = 0; - display(); -} - -void PDFDisplay::display() -{ - if (doc) { - Poppler::Page *page = doc->page(m_currentPage); - if (page) { - qDebug() << "Displaying page: " << m_currentPage; - image = page->renderToImage(); - update(); - delete page; - } - } else { - qWarning() << "doc not loaded"; - } -} - -PDFDisplay::~PDFDisplay() -{ - delete doc; -} - -void PDFDisplay::paintEvent( QPaintEvent *e ) -{ - QPainter paint( this ); // paint widget - if (!image.isNull()) { - paint.drawImage(0, 0, image); - } else { - qWarning() << "null image"; - } -} - -void PDFDisplay::keyPressEvent( QKeyEvent *e ) -{ - if (e->key() == Qt::Key_Down) - { - if (m_currentPage + 1 < doc->numPages()) - { - m_currentPage++; - display(); - } - } - else if (e->key() == Qt::Key_Up) - { - if (m_currentPage > 0) - { - m_currentPage--; - display(); - } - } - else if (e->key() == Qt::Key_Q) - { - exit(0); - } -} - -int main( int argc, char **argv ) -{ - QApplication a( argc, argv ); // QApplication required! - - if ( argc != 3) - { - qWarning() << "usage: test-password-qt4 owner-password filename"; - exit(1); - } - - Poppler::Document *doc = Poppler::Document::load(argv[2], argv[1]); - if (!doc) - { - qWarning() << "doc not loaded"; - exit(1); - } - - // output some meta-data - qDebug() << " PDF Version: " << doc->pdfVersion(); - qDebug() << " Title: " << doc->info("Title"); - qDebug() << " Subject: " << doc->info("Subject"); - qDebug() << " Author: " << doc->info("Author"); - qDebug() << " Key words: " << doc->info("Keywords"); - qDebug() << " Creator: " << doc->info("Creator"); - qDebug() << " Producer: " << doc->info("Producer"); - qDebug() << " Date created: " << doc->date("CreationDate").toString(); - qDebug() << " Date modified: " << doc->date("ModDate").toString(); - qDebug() << "Number of pages: " << doc->numPages(); - qDebug() << " Linearised: " << doc->isLinearized(); - qDebug() << " Encrypted: " << doc->isEncrypted(); - qDebug() << " OK to print: " << doc->okToPrint(); - qDebug() << " OK to copy: " << doc->okToCopy(); - qDebug() << " OK to change: " << doc->okToChange(); - qDebug() << "OK to add notes: " << doc->okToAddNotes(); - qDebug() << " Page mode: " << doc->pageMode(); - QStringList fontNameList; - foreach( const Poppler::FontInfo &font, doc->fonts() ) - fontNameList += font.name(); - qDebug() << " Fonts: " << fontNameList.join( ", " ); - - Poppler::Page *page = doc->page(0); - qDebug() << " Page 1 size: " << page->pageSize().width()/72 << "inches x " << page->pageSize().height()/72 << "inches"; - - PDFDisplay test( doc ); // create picture display - test.setWindowTitle("Poppler-Qt4 Test"); - test.show(); // show it - - return a.exec(); // start event loop -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/test-poppler-qt4.cpp b/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/test-poppler-qt4.cpp deleted file mode 100644 index 1726bfd9c09..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/qt4/tests/test-poppler-qt4.cpp +++ /dev/null @@ -1,234 +0,0 @@ -#include <QtCore/QDebug> -#include <QtCore/QFile> -#include <QtGui/QApplication> -#include <QtGui/QImage> -#include <QtGui/QLabel> -#include <QtGui/QMouseEvent> -#include <QtGui/QPainter> -#include <QtGui/QPaintEvent> -#include <QtGui/QToolTip> -#include <QtGui/QWidget> - -#include <poppler-qt4.h> - -class PDFDisplay : public QWidget // picture display widget -{ -public: - PDFDisplay( Poppler::Document *d, bool arthur ); - ~PDFDisplay(); - void setShowTextRects(bool show); - void display(); -protected: - void paintEvent( QPaintEvent * ); - void keyPressEvent( QKeyEvent * ); - void mousePressEvent( QMouseEvent * ); -private: - int m_currentPage; - QImage image; - Poppler::Document *doc; - QString backendString; - bool showTextRects; - QList<Poppler::TextBox*> textRects; -}; - -PDFDisplay::PDFDisplay( Poppler::Document *d, bool arthur ) -{ - showTextRects = false; - doc = d; - m_currentPage = 0; - if (arthur) - { - backendString = "Arthur"; - doc->setRenderBackend(Poppler::Document::ArthurBackend); - } - else - { - backendString = "Splash"; - doc->setRenderBackend(Poppler::Document::SplashBackend); - } - doc->setRenderHint(Poppler::Document::Antialiasing, true); - doc->setRenderHint(Poppler::Document::TextAntialiasing, true); -} - -void PDFDisplay::setShowTextRects(bool show) -{ - showTextRects = show; -} - -void PDFDisplay::display() -{ - if (doc) { - Poppler::Page *page = doc->page(m_currentPage); - if (page) { - qDebug() << "Displaying page using" << backendString << "backend: " << m_currentPage; - QTime t = QTime::currentTime(); - image = page->renderToImage(); - qDebug() << "Rendering took" << t.msecsTo(QTime::currentTime()) << "msecs"; - qDeleteAll(textRects); - if (showTextRects) - { - QPainter painter(&image); - painter.setPen(Qt::red); - textRects = page->textList(); - foreach(Poppler::TextBox *tb, textRects) - { - painter.drawRect(tb->boundingBox()); - } - } - else textRects.clear(); - update(); - delete page; - } - } else { - qWarning() << "doc not loaded"; - } -} - -PDFDisplay::~PDFDisplay() -{ - qDeleteAll(textRects); - delete doc; -} - -void PDFDisplay::paintEvent( QPaintEvent *e ) -{ - QPainter paint( this ); // paint widget - if (!image.isNull()) { - paint.drawImage(0, 0, image); - } else { - qWarning() << "null image"; - } -} - -void PDFDisplay::keyPressEvent( QKeyEvent *e ) -{ - if (e->key() == Qt::Key_Down) - { - if (m_currentPage + 1 < doc->numPages()) - { - m_currentPage++; - display(); - } - } - else if (e->key() == Qt::Key_Up) - { - if (m_currentPage > 0) - { - m_currentPage--; - display(); - } - } - else if (e->key() == Qt::Key_Q) - { - exit(0); - } -} - -void PDFDisplay::mousePressEvent( QMouseEvent *e ) -{ - int i = 0; - foreach(Poppler::TextBox *tb, textRects) - { - if (tb->boundingBox().contains(e->pos())) - { - QString tt = QString("Text: \"%1\"\nIndex in text list: %2").arg(tb->text()).arg(i); - QToolTip::showText(e->globalPos(), tt, this); - break; - } - ++i; - } -} - -int main( int argc, char **argv ) -{ - QApplication a( argc, argv ); // QApplication required! - - if ( argc < 2 || - (argc == 3 && strcmp(argv[2], "-extract") != 0 && strcmp(argv[2], "-arthur") != 0 && strcmp(argv[2], "-textRects") != 0) || - argc > 3) - { - // use argument as file name - qWarning() << "usage: test-poppler-qt filename [-extract|-arthur|-textRects]"; - exit(1); - } - - Poppler::Document *doc = Poppler::Document::load(QFile::decodeName(argv[1])); - if (!doc) - { - qWarning() << "doc not loaded"; - exit(1); - } - - if (doc->isLocked()) - { - qWarning() << "document locked (needs password)"; - exit(0); - } - - // output some meta-data - qDebug() << " PDF Version: " << doc->pdfVersion(); - qDebug() << " Title: " << doc->info("Title"); - qDebug() << " Subject: " << doc->info("Subject"); - qDebug() << " Author: " << doc->info("Author"); - qDebug() << " Key words: " << doc->info("Keywords"); - qDebug() << " Creator: " << doc->info("Creator"); - qDebug() << " Producer: " << doc->info("Producer"); - qDebug() << " Date created: " << doc->date("CreationDate").toString(); - qDebug() << " Date modified: " << doc->date("ModDate").toString(); - qDebug() << "Number of pages: " << doc->numPages(); - qDebug() << " Linearised: " << doc->isLinearized(); - qDebug() << " Encrypted: " << doc->isEncrypted(); - qDebug() << " OK to print: " << doc->okToPrint(); - qDebug() << " OK to copy: " << doc->okToCopy(); - qDebug() << " OK to change: " << doc->okToChange(); - qDebug() << "OK to add notes: " << doc->okToAddNotes(); - qDebug() << " Page mode: " << doc->pageMode(); - qDebug() << " Metadata: " << doc->metadata(); - QStringList fontNameList; - foreach( const Poppler::FontInfo &font, doc->fonts() ) - fontNameList += font.name(); - qDebug() << " Fonts: " << fontNameList.join( ", " ); - - if ( doc->hasEmbeddedFiles() ) { - qDebug() << "Embedded files:"; - foreach( Poppler::EmbeddedFile *file, doc->embeddedFiles() ) { - qDebug() << " " << file->name(); - } - qDebug(); - } else { - qDebug() << "No embedded files"; - } - - if (doc->numPages() <= 0) - { - delete doc; - qDebug() << "Doc has no pages"; - return 0; - } - - Poppler::Page *page = doc->page(0); - qDebug() << "Page 1 size: " << page->pageSize().width()/72 << "inches x " << page->pageSize().height()/72 << "inches"; - delete page; - - if (argc == 2 || (argc == 3 && strcmp(argv[2], "-arthur") == 0) || (argc == 3 && strcmp(argv[2], "-textRects") == 0)) - { - bool useArthur = (argc == 3 && strcmp(argv[2], "-arthur") == 0); - PDFDisplay test( doc, useArthur ); // create picture display - test.setWindowTitle("Poppler-Qt4 Test"); - test.setShowTextRects(argc == 3 && strcmp(argv[2], "-textRects") == 0); - test.display(); - test.show(); // show it - - return a.exec(); // start event loop - } - else - { - Poppler::Page *page = doc->page(0); - - QLabel *l = new QLabel(page->text(QRectF()), 0); - l->show(); - delete page; - delete doc; - return a.exec(); - } -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/Makefile.am b/Build/source/libs/poppler/poppler-0.12.4/splash/Makefile.am deleted file mode 100644 index 914b308cf87..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/Makefile.am +++ /dev/null @@ -1,57 +0,0 @@ -INCLUDES = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/goo \ - $(FREETYPE_CFLAGS) - -noinst_LTLIBRARIES = libsplash.la - -if ENABLE_XPDF_HEADERS - -poppler_splash_includedir = $(includedir)/poppler/splash -poppler_splash_include_HEADERS = \ - Splash.h \ - SplashBitmap.h \ - SplashClip.h \ - SplashErrorCodes.h \ - SplashFTFont.h \ - SplashFTFontEngine.h \ - SplashFTFontFile.h \ - SplashFont.h \ - SplashFontEngine.h \ - SplashFontFile.h \ - SplashFontFileID.h \ - SplashGlyphBitmap.h \ - SplashMath.h \ - SplashPath.h \ - SplashPattern.h \ - SplashScreen.h \ - SplashState.h \ - SplashT1Font.h \ - SplashT1FontEngine.h \ - SplashT1FontFile.h \ - SplashTypes.h \ - SplashXPath.h \ - SplashXPathScanner.h - -endif - -libsplash_la_SOURCES = \ - Splash.cc \ - SplashBitmap.cc \ - SplashClip.cc \ - SplashFTFont.cc \ - SplashFTFontEngine.cc \ - SplashFTFontFile.cc \ - SplashFont.cc \ - SplashFontEngine.cc \ - SplashFontFile.cc \ - SplashFontFileID.cc \ - SplashPath.cc \ - SplashPattern.cc \ - SplashScreen.cc \ - SplashState.cc \ - SplashT1Font.cc \ - SplashT1FontEngine.cc \ - SplashT1FontFile.cc \ - SplashXPath.cc \ - SplashXPathScanner.cc diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/Makefile.in b/Build/source/libs/poppler/poppler-0.12.4/splash/Makefile.in deleted file mode 100644 index c47c6f228a3..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/Makefile.in +++ /dev/null @@ -1,687 +0,0 @@ -# Makefile.in generated by automake 1.11 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = splash -DIST_COMMON = $(am__poppler_splash_include_HEADERS_DIST) \ - $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ - $(top_srcdir)/m4/define-dir.m4 $(top_srcdir)/m4/gtk-doc.m4 \ - $(top_srcdir)/m4/libjpeg.m4 $(top_srcdir)/m4/libpng.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/qt.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h \ - $(top_builddir)/poppler/poppler-config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) -libsplash_la_LIBADD = -am_libsplash_la_OBJECTS = Splash.lo SplashBitmap.lo SplashClip.lo \ - SplashFTFont.lo SplashFTFontEngine.lo SplashFTFontFile.lo \ - SplashFont.lo SplashFontEngine.lo SplashFontFile.lo \ - SplashFontFileID.lo SplashPath.lo SplashPattern.lo \ - SplashScreen.lo SplashState.lo SplashT1Font.lo \ - SplashT1FontEngine.lo SplashT1FontFile.lo SplashXPath.lo \ - SplashXPathScanner.lo -libsplash_la_OBJECTS = $(am_libsplash_la_OBJECTS) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) -am__v_lt_0 = --silent -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/poppler -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -AM_V_CXX = $(am__v_CXX_$(V)) -am__v_CXX_ = $(am__v_CXX_$(AM_DEFAULT_VERBOSITY)) -am__v_CXX_0 = @echo " CXX " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CXXLD = $(am__v_CXXLD_$(V)) -am__v_CXXLD_ = $(am__v_CXXLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CXXLD_0 = @echo " CXXLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -SOURCES = $(libsplash_la_SOURCES) -DIST_SOURCES = $(libsplash_la_SOURCES) -am__poppler_splash_include_HEADERS_DIST = Splash.h SplashBitmap.h \ - SplashClip.h SplashErrorCodes.h SplashFTFont.h \ - SplashFTFontEngine.h SplashFTFontFile.h SplashFont.h \ - SplashFontEngine.h SplashFontFile.h SplashFontFileID.h \ - SplashGlyphBitmap.h SplashMath.h SplashPath.h SplashPattern.h \ - SplashScreen.h SplashState.h SplashT1Font.h \ - SplashT1FontEngine.h SplashT1FontFile.h SplashTypes.h \ - SplashXPath.h SplashXPathScanner.h -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__installdirs = "$(DESTDIR)$(poppler_splash_includedir)" -HEADERS = $(poppler_splash_include_HEADERS) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ABIWORD_CFLAGS = @ABIWORD_CFLAGS@ -ABIWORD_LIBS = @ABIWORD_LIBS@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAIRO_CFLAGS = @CAIRO_CFLAGS@ -CAIRO_FEATURE = @CAIRO_FEATURE@ -CAIRO_LIBS = @CAIRO_LIBS@ -CAIRO_REQ = @CAIRO_REQ@ -CAIRO_VERSION = @CAIRO_VERSION@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ -FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ -FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ -FREETYPE_CONFIG = @FREETYPE_CONFIG@ -FREETYPE_LIBS = @FREETYPE_LIBS@ -GDK_CFLAGS = @GDK_CFLAGS@ -GDK_FEATURE = @GDK_FEATURE@ -GDK_LIBS = @GDK_LIBS@ -GLIB_MKENUMS = @GLIB_MKENUMS@ -GREP = @GREP@ -GTKDOC_CHECK = @GTKDOC_CHECK@ -GTK_TEST_CFLAGS = @GTK_TEST_CFLAGS@ -GTK_TEST_LIBS = @GTK_TEST_LIBS@ -HTML_DIR = @HTML_DIR@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LCMS_CFLAGS = @LCMS_CFLAGS@ -LCMS_LIBS = @LCMS_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBJPEG_LIBS = @LIBJPEG_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOPENJPEG_LIBS = @LIBOPENJPEG_LIBS@ -LIBPNG_LIBS = @LIBPNG_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -MOCQT4 = @MOCQT4@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PC_REQUIRES = @PC_REQUIRES@ -PC_REQUIRES_PRIVATE = @PC_REQUIRES_PRIVATE@ -PKG_CONFIG = @PKG_CONFIG@ -POPPLER_DATADIR = @POPPLER_DATADIR@ -POPPLER_GLIB_CFLAGS = @POPPLER_GLIB_CFLAGS@ -POPPLER_GLIB_DISABLE_DEPRECATED = @POPPLER_GLIB_DISABLE_DEPRECATED@ -POPPLER_GLIB_DISABLE_SINGLE_INCLUDES = @POPPLER_GLIB_DISABLE_SINGLE_INCLUDES@ -POPPLER_GLIB_LIBS = @POPPLER_GLIB_LIBS@ -POPPLER_MAJOR_VERSION = @POPPLER_MAJOR_VERSION@ -POPPLER_MICRO_VERSION = @POPPLER_MICRO_VERSION@ -POPPLER_MINOR_VERSION = @POPPLER_MINOR_VERSION@ -POPPLER_QT4_CFLAGS = @POPPLER_QT4_CFLAGS@ -POPPLER_QT4_CXXFLAGS = @POPPLER_QT4_CXXFLAGS@ -POPPLER_QT4_LIBS = @POPPLER_QT4_LIBS@ -POPPLER_QT4_TEST_CFLAGS = @POPPLER_QT4_TEST_CFLAGS@ -POPPLER_QT4_TEST_LIBS = @POPPLER_QT4_TEST_LIBS@ -POPPLER_QT_CXXFLAGS = @POPPLER_QT_CXXFLAGS@ -POPPLER_QT_LIBS = @POPPLER_QT_LIBS@ -PTHREAD_CC = @PTHREAD_CC@ -PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ -PTHREAD_LIBS = @PTHREAD_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZLIB_LIBS = @ZLIB_LIBS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -acx_pthread_config = @acx_pthread_config@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -auto_import_flags = @auto_import_flags@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -create_shared_lib = @create_shared_lib@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -win32_libs = @win32_libs@ -INCLUDES = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/goo \ - $(FREETYPE_CFLAGS) - -noinst_LTLIBRARIES = libsplash.la -@ENABLE_XPDF_HEADERS_TRUE@poppler_splash_includedir = $(includedir)/poppler/splash -@ENABLE_XPDF_HEADERS_TRUE@poppler_splash_include_HEADERS = \ -@ENABLE_XPDF_HEADERS_TRUE@ Splash.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashBitmap.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashClip.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashErrorCodes.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashFTFont.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashFTFontEngine.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashFTFontFile.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashFont.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashFontEngine.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashFontFile.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashFontFileID.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashGlyphBitmap.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashMath.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashPath.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashPattern.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashScreen.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashState.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashT1Font.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashT1FontEngine.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashT1FontFile.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashTypes.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashXPath.h \ -@ENABLE_XPDF_HEADERS_TRUE@ SplashXPathScanner.h - -libsplash_la_SOURCES = \ - Splash.cc \ - SplashBitmap.cc \ - SplashClip.cc \ - SplashFTFont.cc \ - SplashFTFontEngine.cc \ - SplashFTFontFile.cc \ - SplashFont.cc \ - SplashFontEngine.cc \ - SplashFontFile.cc \ - SplashFontFileID.cc \ - SplashPath.cc \ - SplashPattern.cc \ - SplashScreen.cc \ - SplashState.cc \ - SplashT1Font.cc \ - SplashT1FontEngine.cc \ - SplashT1FontFile.cc \ - SplashXPath.cc \ - SplashXPathScanner.cc - -all: all-am - -.SUFFIXES: -.SUFFIXES: .cc .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign splash/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign splash/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -libsplash.la: $(libsplash_la_OBJECTS) $(libsplash_la_DEPENDENCIES) - $(AM_V_CXXLD)$(CXXLINK) $(libsplash_la_OBJECTS) $(libsplash_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Splash.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashBitmap.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashClip.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashFTFont.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashFTFontEngine.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashFTFontFile.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashFont.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashFontEngine.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashFontFile.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashFontFileID.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashPath.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashPattern.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashScreen.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashState.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashT1Font.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashT1FontEngine.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashT1FontFile.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashXPath.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SplashXPathScanner.Plo@am__quote@ - -.cc.o: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< - -.cc.obj: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.cc.lo: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-poppler_splash_includeHEADERS: $(poppler_splash_include_HEADERS) - @$(NORMAL_INSTALL) - test -z "$(poppler_splash_includedir)" || $(MKDIR_P) "$(DESTDIR)$(poppler_splash_includedir)" - @list='$(poppler_splash_include_HEADERS)'; test -n "$(poppler_splash_includedir)" || list=; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(poppler_splash_includedir)'"; \ - $(INSTALL_HEADER) $$files "$(DESTDIR)$(poppler_splash_includedir)" || exit $$?; \ - done - -uninstall-poppler_splash_includeHEADERS: - @$(NORMAL_UNINSTALL) - @list='$(poppler_splash_include_HEADERS)'; test -n "$(poppler_splash_includedir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '$(DESTDIR)$(poppler_splash_includedir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(poppler_splash_includedir)" && rm -f $$files - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) $(HEADERS) -installdirs: - for dir in "$(DESTDIR)$(poppler_splash_includedir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-poppler_splash_includeHEADERS - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-poppler_splash_includeHEADERS - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-noinstLTLIBRARIES ctags distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am \ - install-poppler_splash_includeHEADERS install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ - pdf pdf-am ps ps-am tags uninstall uninstall-am \ - uninstall-poppler_splash_includeHEADERS - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/Splash.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/Splash.cc deleted file mode 100644 index 834cb1097be..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/Splash.cc +++ /dev/null @@ -1,3573 +0,0 @@ -//======================================================================== -// -// Splash.cc -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2005-2009 Albert Astals Cid <aacid@kde.org> -// Copyright (C) 2005 Marco Pesenti Gritti <mpg@redhat.com> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include <config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <stdlib.h> -#include <string.h> -#include <limits.h> -#include "goo/gmem.h" -#include "SplashErrorCodes.h" -#include "SplashMath.h" -#include "SplashBitmap.h" -#include "SplashState.h" -#include "SplashPath.h" -#include "SplashXPath.h" -#include "SplashXPathScanner.h" -#include "SplashPattern.h" -#include "SplashScreen.h" -#include "SplashFont.h" -#include "SplashGlyphBitmap.h" -#include "Splash.h" - -//------------------------------------------------------------------------ - -// distance of Bezier control point from center for circle approximation -// = (4 * (sqrt(2) - 1) / 3) * r -#define bezierCircle ((SplashCoord)0.55228475) -#define bezierCircle2 ((SplashCoord)(0.5 * 0.55228475)) - -// Divide a 16-bit value (in [0, 255*255]) by 255, returning an 8-bit result. -static inline Guchar div255(int x) { - return (Guchar)((x + (x >> 8) + 0x80) >> 8); -} - -//------------------------------------------------------------------------ -// SplashPipe -//------------------------------------------------------------------------ - -#define splashPipeMaxStages 9 - -struct SplashPipe { - // pixel coordinates - int x, y; - - // source pattern - SplashPattern *pattern; - - // source alpha and color - SplashCoord aInput; - GBool usesShape; - Guchar aSrc; - SplashColorPtr cSrc; - SplashColor cSrcVal; - - // non-isolated group alpha0 - Guchar *alpha0Ptr; - - // soft mask - SplashColorPtr softMaskPtr; - - // destination alpha and color - SplashColorPtr destColorPtr; - int destColorMask; - Guchar *destAlphaPtr; - - // shape - SplashCoord shape; - - // result alpha and color - GBool noTransparency; - SplashPipeResultColorCtrl resultColorCtrl; - - // non-isolated group correction - int nonIsolatedGroup; -}; - -SplashPipeResultColorCtrl Splash::pipeResultColorNoAlphaBlend[] = { - splashPipeResultColorNoAlphaBlendMono, - splashPipeResultColorNoAlphaBlendMono, - splashPipeResultColorNoAlphaBlendRGB, - splashPipeResultColorNoAlphaBlendRGB, - splashPipeResultColorNoAlphaBlendRGB -#if SPLASH_CMYK - , - splashPipeResultColorNoAlphaBlendCMYK -#endif -}; - -SplashPipeResultColorCtrl Splash::pipeResultColorAlphaNoBlend[] = { - splashPipeResultColorAlphaNoBlendMono, - splashPipeResultColorAlphaNoBlendMono, - splashPipeResultColorAlphaNoBlendRGB, - splashPipeResultColorNoAlphaBlendRGB, - splashPipeResultColorAlphaNoBlendRGB -#if SPLASH_CMYK - , - splashPipeResultColorAlphaNoBlendCMYK -#endif -}; - -SplashPipeResultColorCtrl Splash::pipeResultColorAlphaBlend[] = { - splashPipeResultColorAlphaBlendMono, - splashPipeResultColorAlphaBlendMono, - splashPipeResultColorAlphaBlendRGB, - splashPipeResultColorNoAlphaBlendRGB, - splashPipeResultColorAlphaBlendRGB -#if SPLASH_CMYK - , - splashPipeResultColorAlphaBlendCMYK -#endif -}; - -//------------------------------------------------------------------------ - -static void blendXor(SplashColorPtr src, SplashColorPtr dest, - SplashColorPtr blend, SplashColorMode cm) { - int i; - - for (i = 0; i < splashColorModeNComps[cm]; ++i) { - blend[i] = src[i] ^ dest[i]; - } -} - -//------------------------------------------------------------------------ -// modified region -//------------------------------------------------------------------------ - -void Splash::clearModRegion() { - modXMin = bitmap->getWidth(); - modYMin = bitmap->getHeight(); - modXMax = -1; - modYMax = -1; -} - -inline void Splash::updateModX(int x) { - if (x < modXMin) { - modXMin = x; - } - if (x > modXMax) { - modXMax = x; - } -} - -inline void Splash::updateModY(int y) { - if (y < modYMin) { - modYMin = y; - } - if (y > modYMax) { - modYMax = y; - } -} - -//------------------------------------------------------------------------ -// pipeline -//------------------------------------------------------------------------ - -inline void Splash::pipeInit(SplashPipe *pipe, int x, int y, - SplashPattern *pattern, SplashColorPtr cSrc, - SplashCoord aInput, GBool usesShape, - GBool nonIsolatedGroup) { - pipeSetXY(pipe, x, y); - pipe->pattern = NULL; - - // source color - if (pattern) { - if (pattern->isStatic()) { - pattern->getColor(x, y, pipe->cSrcVal); - } else { - pipe->pattern = pattern; - } - pipe->cSrc = pipe->cSrcVal; - } else { - pipe->cSrc = cSrc; - } - - // source alpha - pipe->aInput = aInput; - if (!state->softMask) { - if (usesShape) { - pipe->aInput *= 255; - } else { - pipe->aSrc = (Guchar)splashRound(pipe->aInput * 255); - } - } - pipe->usesShape = usesShape; - - // result alpha - if (aInput == 1 && !state->softMask && !usesShape && - !state->inNonIsolatedGroup) { - pipe->noTransparency = gTrue; - } else { - pipe->noTransparency = gFalse; - } - - // result color - if (pipe->noTransparency) { - // the !state->blendFunc case is handled separately in pipeRun - pipe->resultColorCtrl = pipeResultColorNoAlphaBlend[bitmap->mode]; - } else if (!state->blendFunc) { - pipe->resultColorCtrl = pipeResultColorAlphaNoBlend[bitmap->mode]; - } else { - pipe->resultColorCtrl = pipeResultColorAlphaBlend[bitmap->mode]; - } - - // non-isolated group correction - if (nonIsolatedGroup) { - pipe->nonIsolatedGroup = splashColorModeNComps[bitmap->mode]; - } else { - pipe->nonIsolatedGroup = 0; - } -} - -inline void Splash::pipeRun(SplashPipe *pipe) { - Guchar aSrc, aDest, alpha2, alpha0, aResult; - SplashColor cDest, cBlend; - Guchar cResult0, cResult1, cResult2, cResult3; - - //----- source color - - // static pattern: handled in pipeInit - // fixed color: handled in pipeInit - - // dynamic pattern - if (pipe->pattern) { - pipe->pattern->getColor(pipe->x, pipe->y, pipe->cSrcVal); - } - - if (pipe->noTransparency && !state->blendFunc) { - - //----- write destination pixel - - switch (bitmap->mode) { - case splashModeMono1: - cResult0 = pipe->cSrc[0]; - if (state->screen->test(pipe->x, pipe->y, cResult0)) { - *pipe->destColorPtr |= pipe->destColorMask; - } else { - *pipe->destColorPtr &= ~pipe->destColorMask; - } - if (!(pipe->destColorMask >>= 1)) { - pipe->destColorMask = 0x80; - ++pipe->destColorPtr; - } - break; - case splashModeMono8: - *pipe->destColorPtr++ = pipe->cSrc[0]; - break; - case splashModeRGB8: - *pipe->destColorPtr++ = pipe->cSrc[0]; - *pipe->destColorPtr++ = pipe->cSrc[1]; - *pipe->destColorPtr++ = pipe->cSrc[2]; - break; - case splashModeXBGR8: - *pipe->destColorPtr++ = pipe->cSrc[2]; - *pipe->destColorPtr++ = pipe->cSrc[1]; - *pipe->destColorPtr++ = pipe->cSrc[0]; - *pipe->destColorPtr++ = 255; - break; - case splashModeBGR8: - *pipe->destColorPtr++ = pipe->cSrc[2]; - *pipe->destColorPtr++ = pipe->cSrc[1]; - *pipe->destColorPtr++ = pipe->cSrc[0]; - break; -#if SPLASH_CMYK - case splashModeCMYK8: - *pipe->destColorPtr++ = pipe->cSrc[0]; - *pipe->destColorPtr++ = pipe->cSrc[1]; - *pipe->destColorPtr++ = pipe->cSrc[2]; - *pipe->destColorPtr++ = pipe->cSrc[3]; - break; -#endif - } - if (pipe->destAlphaPtr) { - *pipe->destAlphaPtr++ = 255; - } - - } else { - - //----- read destination pixel - - switch (bitmap->mode) { - case splashModeMono1: - cDest[0] = (*pipe->destColorPtr & pipe->destColorMask) ? 0xff : 0x00; - break; - case splashModeMono8: - cDest[0] = *pipe->destColorPtr; - break; - case splashModeRGB8: - cDest[0] = pipe->destColorPtr[0]; - cDest[1] = pipe->destColorPtr[1]; - cDest[2] = pipe->destColorPtr[2]; - break; - case splashModeXBGR8: - cDest[0] = pipe->destColorPtr[2]; - cDest[1] = pipe->destColorPtr[1]; - cDest[2] = pipe->destColorPtr[0]; - cDest[3] = 255; - break; - case splashModeBGR8: - cDest[0] = pipe->destColorPtr[2]; - cDest[1] = pipe->destColorPtr[1]; - cDest[2] = pipe->destColorPtr[0]; - break; -#if SPLASH_CMYK - case splashModeCMYK8: - cDest[0] = pipe->destColorPtr[0]; - cDest[1] = pipe->destColorPtr[1]; - cDest[2] = pipe->destColorPtr[2]; - cDest[3] = pipe->destColorPtr[3]; - break; -#endif - } - if (pipe->destAlphaPtr) { - aDest = *pipe->destAlphaPtr; - } else { - aDest = 0xff; - } - - //----- blend function - - if (state->blendFunc) { - (*state->blendFunc)(pipe->cSrc, cDest, cBlend, bitmap->mode); - } - - //----- source alpha - - if (state->softMask) { - if (pipe->usesShape) { - aSrc = (Guchar)splashRound(pipe->aInput * *pipe->softMaskPtr++ - * pipe->shape); - } else { - aSrc = (Guchar)splashRound(pipe->aInput * *pipe->softMaskPtr++); - } - } else if (pipe->usesShape) { - // pipe->aInput is premultiplied by 255 in pipeInit - aSrc = (Guchar)splashRound(pipe->aInput * pipe->shape); - } else { - // precomputed in pipeInit - aSrc = pipe->aSrc; - } - - //----- result alpha and non-isolated group element correction - - if (pipe->noTransparency) { - alpha2 = aResult = 255; - } else { - aResult = aSrc + aDest - div255(aSrc * aDest); - - if (pipe->alpha0Ptr) { - alpha0 = *pipe->alpha0Ptr++; - alpha2 = aResult + alpha0 - div255(aResult * alpha0); - } else { - alpha2 = aResult; - } - } - - //----- result color - - cResult0 = cResult1 = cResult2 = cResult3 = 0; // make gcc happy - - switch (pipe->resultColorCtrl) { - -#if SPLASH_CMYK - case splashPipeResultColorNoAlphaBlendCMYK: - cResult3 = div255((255 - aDest) * pipe->cSrc[3] + aDest * cBlend[3]); -#endif - case splashPipeResultColorNoAlphaBlendRGB: - cResult2 = div255((255 - aDest) * pipe->cSrc[2] + aDest * cBlend[2]); - cResult1 = div255((255 - aDest) * pipe->cSrc[1] + aDest * cBlend[1]); - case splashPipeResultColorNoAlphaBlendMono: - cResult0 = div255((255 - aDest) * pipe->cSrc[0] + aDest * cBlend[0]); - break; - - case splashPipeResultColorAlphaNoBlendMono: - if (alpha2 == 0) { - cResult0 = 0; - } else { - cResult0 = (Guchar)(((alpha2 - aSrc) * cDest[0] + - aSrc * pipe->cSrc[0]) / alpha2); - } - break; - case splashPipeResultColorAlphaNoBlendRGB: - if (alpha2 == 0) { - cResult0 = 0; - cResult1 = 0; - cResult2 = 0; - } else { - cResult0 = (Guchar)(((alpha2 - aSrc) * cDest[0] + - aSrc * pipe->cSrc[0]) / alpha2); - cResult1 = (Guchar)(((alpha2 - aSrc) * cDest[1] + - aSrc * pipe->cSrc[1]) / alpha2); - cResult2 = (Guchar)(((alpha2 - aSrc) * cDest[2] + - aSrc * pipe->cSrc[2]) / alpha2); - } - break; -#if SPLASH_CMYK - case splashPipeResultColorAlphaNoBlendCMYK: - if (alpha2 == 0) { - cResult0 = 0; - cResult1 = 0; - cResult2 = 0; - cResult3 = 0; - } else { - cResult0 = (Guchar)(((alpha2 - aSrc) * cDest[0] + - aSrc * pipe->cSrc[0]) / alpha2); - cResult1 = (Guchar)(((alpha2 - aSrc) * cDest[1] + - aSrc * pipe->cSrc[1]) / alpha2); - cResult2 = (Guchar)(((alpha2 - aSrc) * cDest[2] + - aSrc * pipe->cSrc[2]) / alpha2); - cResult3 = (Guchar)(((alpha2 - aSrc) * cDest[3] + - aSrc * pipe->cSrc[3]) / alpha2); - } - break; -#endif - - case splashPipeResultColorAlphaBlendMono: - if (alpha2 == 0) { - cResult0 = 0; - } else { - cResult0 = (Guchar)(((alpha2 - aSrc) * cDest[0] + - aSrc * ((255 - aDest) * pipe->cSrc[0] + - aDest * cBlend[0]) / 255) / - alpha2); - } - break; - case splashPipeResultColorAlphaBlendRGB: - if (alpha2 == 0) { - cResult0 = 0; - cResult1 = 0; - cResult2 = 0; - } else { - cResult0 = (Guchar)(((alpha2 - aSrc) * cDest[0] + - aSrc * ((255 - aDest) * pipe->cSrc[0] + - aDest * cBlend[0]) / 255) / - alpha2); - cResult1 = (Guchar)(((alpha2 - aSrc) * cDest[1] + - aSrc * ((255 - aDest) * pipe->cSrc[1] + - aDest * cBlend[1]) / 255) / - alpha2); - cResult2 = (Guchar)(((alpha2 - aSrc) * cDest[2] + - aSrc * ((255 - aDest) * pipe->cSrc[2] + - aDest * cBlend[2]) / 255) / - alpha2); - } - break; -#if SPLASH_CMYK - case splashPipeResultColorAlphaBlendCMYK: - if (alpha2 == 0) { - cResult0 = 0; - cResult1 = 0; - cResult2 = 0; - cResult3 = 0; - } else { - cResult0 = (Guchar)(((alpha2 - aSrc) * cDest[0] + - aSrc * ((255 - aDest) * pipe->cSrc[0] + - aDest * cBlend[0]) / 255) / - alpha2); - cResult1 = (Guchar)(((alpha2 - aSrc) * cDest[1] + - aSrc * ((255 - aDest) * pipe->cSrc[1] + - aDest * cBlend[1]) / 255) / - alpha2); - cResult2 = (Guchar)(((alpha2 - aSrc) * cDest[2] + - aSrc * ((255 - aDest) * pipe->cSrc[2] + - aDest * cBlend[2]) / 255) / - alpha2); - cResult3 = (Guchar)(((alpha2 - aSrc) * cDest[3] + - aSrc * ((255 - aDest) * pipe->cSrc[3] + - aDest * cBlend[3]) / 255) / - alpha2); - } - break; -#endif - } - - //----- non-isolated group correction - - if (aResult != 0) { - switch (pipe->nonIsolatedGroup) { -#if SPLASH_CMYK - case 4: - cResult3 += (cResult3 - cDest[3]) * aDest * - (255 - aResult) / (255 * aResult); -#endif - case 3: - cResult2 += (cResult2 - cDest[2]) * aDest * - (255 - aResult) / (255 * aResult); - cResult1 += (cResult1 - cDest[1]) * aDest * - (255 - aResult) / (255 * aResult); - case 1: - cResult0 += (cResult0 - cDest[0]) * aDest * - (255 - aResult) / (255 * aResult); - case 0: - break; - } - } - - //----- write destination pixel - - switch (bitmap->mode) { - case splashModeMono1: - if (state->screen->test(pipe->x, pipe->y, cResult0)) { - *pipe->destColorPtr |= pipe->destColorMask; - } else { - *pipe->destColorPtr &= ~pipe->destColorMask; - } - if (!(pipe->destColorMask >>= 1)) { - pipe->destColorMask = 0x80; - ++pipe->destColorPtr; - } - break; - case splashModeMono8: - *pipe->destColorPtr++ = cResult0; - break; - case splashModeRGB8: - *pipe->destColorPtr++ = cResult0; - *pipe->destColorPtr++ = cResult1; - *pipe->destColorPtr++ = cResult2; - break; - case splashModeXBGR8: - *pipe->destColorPtr++ = cResult2; - *pipe->destColorPtr++ = cResult1; - *pipe->destColorPtr++ = cResult0; - *pipe->destColorPtr++ = 255; - break; - case splashModeBGR8: - *pipe->destColorPtr++ = cResult2; - *pipe->destColorPtr++ = cResult1; - *pipe->destColorPtr++ = cResult0; - break; -#if SPLASH_CMYK - case splashModeCMYK8: - *pipe->destColorPtr++ = cResult0; - *pipe->destColorPtr++ = cResult1; - *pipe->destColorPtr++ = cResult2; - *pipe->destColorPtr++ = cResult3; - break; -#endif - } - if (pipe->destAlphaPtr) { - *pipe->destAlphaPtr++ = aResult; - } - - } - - ++pipe->x; -} - -inline void Splash::pipeSetXY(SplashPipe *pipe, int x, int y) { - pipe->x = x; - pipe->y = y; - if (state->softMask) { - pipe->softMaskPtr = - &state->softMask->data[y * state->softMask->rowSize + x]; - } - switch (bitmap->mode) { - case splashModeMono1: - pipe->destColorPtr = &bitmap->data[y * bitmap->rowSize + (x >> 3)]; - pipe->destColorMask = 0x80 >> (x & 7); - break; - case splashModeMono8: - pipe->destColorPtr = &bitmap->data[y * bitmap->rowSize + x]; - break; - case splashModeRGB8: - case splashModeBGR8: - pipe->destColorPtr = &bitmap->data[y * bitmap->rowSize + 3 * x]; - break; - case splashModeXBGR8: - pipe->destColorPtr = &bitmap->data[y * bitmap->rowSize + 4 * x]; - break; -#if SPLASH_CMYK - case splashModeCMYK8: - pipe->destColorPtr = &bitmap->data[y * bitmap->rowSize + 4 * x]; - break; -#endif - } - if (bitmap->alpha) { - pipe->destAlphaPtr = &bitmap->alpha[y * bitmap->width + x]; - } else { - pipe->destAlphaPtr = NULL; - } - if (state->inNonIsolatedGroup && alpha0Bitmap->alpha) { - pipe->alpha0Ptr = - &alpha0Bitmap->alpha[(alpha0Y + y) * alpha0Bitmap->width + - (alpha0X + x)]; - } else { - pipe->alpha0Ptr = NULL; - } -} - -inline void Splash::pipeIncX(SplashPipe *pipe) { - ++pipe->x; - if (state->softMask) { - ++pipe->softMaskPtr; - } - switch (bitmap->mode) { - case splashModeMono1: - if (!(pipe->destColorMask >>= 1)) { - pipe->destColorMask = 0x80; - ++pipe->destColorPtr; - } - break; - case splashModeMono8: - ++pipe->destColorPtr; - break; - case splashModeRGB8: - case splashModeBGR8: - pipe->destColorPtr += 3; - break; - case splashModeXBGR8: - pipe->destColorPtr += 4; - break; -#if SPLASH_CMYK - case splashModeCMYK8: - pipe->destColorPtr += 4; - break; -#endif - } - if (pipe->destAlphaPtr) { - ++pipe->destAlphaPtr; - } - if (pipe->alpha0Ptr) { - ++pipe->alpha0Ptr; - } -} - -inline void Splash::drawPixel(SplashPipe *pipe, int x, int y, GBool noClip) { - if (noClip || state->clip->test(x, y)) { - pipeSetXY(pipe, x, y); - pipeRun(pipe); - updateModX(x); - updateModY(y); - } -} - -inline void Splash::drawAAPixelInit() { - aaBufY = -1; -} - -inline void Splash::drawAAPixel(SplashPipe *pipe, int x, int y) { -#if splashAASize == 4 - static int bitCount4[16] = { 0, 1, 1, 2, 1, 2, 2, 3, - 1, 2, 2, 3, 2, 3, 3, 4 }; - int w; -#else - int xx, yy; -#endif - SplashColorPtr p; - int x0, x1, t; - - if (x < 0 || x >= bitmap->width || - y < state->clip->getYMinI() || y > state->clip->getYMaxI()) { - return; - } - - // update aaBuf - if (y != aaBufY) { - memset(aaBuf->getDataPtr(), 0xff, - aaBuf->getRowSize() * aaBuf->getHeight()); - x0 = 0; - x1 = bitmap->width - 1; - state->clip->clipAALine(aaBuf, &x0, &x1, y); - aaBufY = y; - } - - // compute the shape value -#if splashAASize == 4 - p = aaBuf->getDataPtr() + (x >> 1); - w = aaBuf->getRowSize(); - if (x & 1) { - t = bitCount4[*p & 0x0f] + bitCount4[p[w] & 0x0f] + - bitCount4[p[2*w] & 0x0f] + bitCount4[p[3*w] & 0x0f]; - } else { - t = bitCount4[*p >> 4] + bitCount4[p[w] >> 4] + - bitCount4[p[2*w] >> 4] + bitCount4[p[3*w] >> 4]; - } -#else - t = 0; - for (yy = 0; yy < splashAASize; ++yy) { - for (xx = 0; xx < splashAASize; ++xx) { - p = aaBuf->getDataPtr() + yy * aaBuf->getRowSize() + - ((x * splashAASize + xx) >> 3); - t += (*p >> (7 - ((x * splashAASize + xx) & 7))) & 1; - } - } -#endif - - // draw the pixel - if (t != 0) { - pipeSetXY(pipe, x, y); - pipe->shape *= aaGamma[t]; - pipeRun(pipe); - updateModX(x); - updateModY(y); - } -} - -inline void Splash::drawSpan(SplashPipe *pipe, int x0, int x1, int y, - GBool noClip) { - int x; - - pipeSetXY(pipe, x0, y); - if (noClip) { - for (x = x0; x <= x1; ++x) { - pipeRun(pipe); - } - updateModX(x0); - updateModX(x1); - updateModY(y); - } else { - for (x = x0; x <= x1; ++x) { - if (state->clip->test(x, y)) { - pipeRun(pipe); - updateModX(x); - updateModY(y); - } else { - pipeIncX(pipe); - } - } - } -} - -inline void Splash::drawAALine(SplashPipe *pipe, int x0, int x1, int y) { -#if splashAASize == 4 - static int bitCount4[16] = { 0, 1, 1, 2, 1, 2, 2, 3, - 1, 2, 2, 3, 2, 3, 3, 4 }; - SplashColorPtr p0, p1, p2, p3; - int t; -#else - SplashColorPtr p; - int xx, yy, t; -#endif - int x; - -#if splashAASize == 4 - p0 = aaBuf->getDataPtr() + (x0 >> 1); - p1 = p0 + aaBuf->getRowSize(); - p2 = p1 + aaBuf->getRowSize(); - p3 = p2 + aaBuf->getRowSize(); -#endif - pipeSetXY(pipe, x0, y); - for (x = x0; x <= x1; ++x) { - - // compute the shape value -#if splashAASize == 4 - if (x & 1) { - t = bitCount4[*p0 & 0x0f] + bitCount4[*p1 & 0x0f] + - bitCount4[*p2 & 0x0f] + bitCount4[*p3 & 0x0f]; - ++p0; ++p1; ++p2; ++p3; - } else { - t = bitCount4[*p0 >> 4] + bitCount4[*p1 >> 4] + - bitCount4[*p2 >> 4] + bitCount4[*p3 >> 4]; - } -#else - t = 0; - for (yy = 0; yy < splashAASize; ++yy) { - for (xx = 0; xx < splashAASize; ++xx) { - p = aaBuf->getDataPtr() + yy * aaBuf->getRowSize() + - ((x * splashAASize + xx) >> 3); - t += (*p >> (7 - ((x * splashAASize + xx) & 7))) & 1; - } - } -#endif - - if (t != 0) { - pipe->shape = aaGamma[t]; - pipeRun(pipe); - updateModX(x); - updateModY(y); - } else { - pipeIncX(pipe); - } - } -} - -//------------------------------------------------------------------------ - -// Transform a point from user space to device space. -inline void Splash::transform(SplashCoord *matrix, - SplashCoord xi, SplashCoord yi, - SplashCoord *xo, SplashCoord *yo) { - // [ m[0] m[1] 0 ] - // [xo yo 1] = [xi yi 1] * [ m[2] m[3] 0 ] - // [ m[4] m[5] 1 ] - *xo = xi * matrix[0] + yi * matrix[2] + matrix[4]; - *yo = xi * matrix[1] + yi * matrix[3] + matrix[5]; -} - -//------------------------------------------------------------------------ -// Splash -//------------------------------------------------------------------------ - -Splash::Splash(SplashBitmap *bitmapA, GBool vectorAntialiasA, - SplashScreenParams *screenParams) { - int i; - - bitmap = bitmapA; - vectorAntialias = vectorAntialiasA; - state = new SplashState(bitmap->width, bitmap->height, vectorAntialias, - screenParams); - if (vectorAntialias) { - aaBuf = new SplashBitmap(splashAASize * bitmap->width, splashAASize, - 1, splashModeMono1, gFalse); - for (i = 0; i <= splashAASize * splashAASize; ++i) { - aaGamma[i] = splashPow((SplashCoord)i / - (SplashCoord)(splashAASize * splashAASize), - 1.5); - } - } else { - aaBuf = NULL; - } - clearModRegion(); - debugMode = gFalse; -} - -Splash::Splash(SplashBitmap *bitmapA, GBool vectorAntialiasA, - SplashScreen *screenA) { - int i; - - bitmap = bitmapA; - vectorAntialias = vectorAntialiasA; - state = new SplashState(bitmap->width, bitmap->height, vectorAntialias, - screenA); - if (vectorAntialias) { - aaBuf = new SplashBitmap(splashAASize * bitmap->width, splashAASize, - 1, splashModeMono1, gFalse); - for (i = 0; i <= splashAASize * splashAASize; ++i) { - aaGamma[i] = splashPow((SplashCoord)i / - (SplashCoord)(splashAASize * splashAASize), - 1.5); - } - } else { - aaBuf = NULL; - } - clearModRegion(); - debugMode = gFalse; -} - -Splash::~Splash() { - while (state->next) { - restoreState(); - } - delete state; - if (vectorAntialias) { - delete aaBuf; - } -} - -//------------------------------------------------------------------------ -// state read -//------------------------------------------------------------------------ - -SplashCoord *Splash::getMatrix() { - return state->matrix; -} - -SplashPattern *Splash::getStrokePattern() { - return state->strokePattern; -} - -SplashPattern *Splash::getFillPattern() { - return state->fillPattern; -} - -SplashScreen *Splash::getScreen() { - return state->screen; -} - -SplashBlendFunc Splash::getBlendFunc() { - return state->blendFunc; -} - -SplashCoord Splash::getStrokeAlpha() { - return state->strokeAlpha; -} - -SplashCoord Splash::getFillAlpha() { - return state->fillAlpha; -} - -SplashCoord Splash::getLineWidth() { - return state->lineWidth; -} - -int Splash::getLineCap() { - return state->lineCap; -} - -int Splash::getLineJoin() { - return state->lineJoin; -} - -SplashCoord Splash::getMiterLimit() { - return state->miterLimit; -} - -SplashCoord Splash::getFlatness() { - return state->flatness; -} - -SplashCoord *Splash::getLineDash() { - return state->lineDash; -} - -int Splash::getLineDashLength() { - return state->lineDashLength; -} - -SplashCoord Splash::getLineDashPhase() { - return state->lineDashPhase; -} - -SplashClip *Splash::getClip() { - return state->clip; -} - -SplashBitmap *Splash::getSoftMask() { - return state->softMask; -} - -GBool Splash::getInNonIsolatedGroup() { - return state->inNonIsolatedGroup; -} - -//------------------------------------------------------------------------ -// state write -//------------------------------------------------------------------------ - -void Splash::setMatrix(SplashCoord *matrix) { - memcpy(state->matrix, matrix, 6 * sizeof(SplashCoord)); -} - -void Splash::setStrokePattern(SplashPattern *strokePattern) { - state->setStrokePattern(strokePattern); -} - -void Splash::setFillPattern(SplashPattern *fillPattern) { - state->setFillPattern(fillPattern); -} - -void Splash::setScreen(SplashScreen *screen) { - state->setScreen(screen); -} - -void Splash::setBlendFunc(SplashBlendFunc func) { - state->blendFunc = func; -} - -void Splash::setStrokeAlpha(SplashCoord alpha) { - state->strokeAlpha = alpha; -} - -void Splash::setFillAlpha(SplashCoord alpha) { - state->fillAlpha = alpha; -} - -void Splash::setLineWidth(SplashCoord lineWidth) { - state->lineWidth = lineWidth; -} - -void Splash::setLineCap(int lineCap) { - state->lineCap = lineCap; -} - -void Splash::setLineJoin(int lineJoin) { - state->lineJoin = lineJoin; -} - -void Splash::setMiterLimit(SplashCoord miterLimit) { - state->miterLimit = miterLimit; -} - -void Splash::setFlatness(SplashCoord flatness) { - if (flatness < 1) { - state->flatness = 1; - } else { - state->flatness = flatness; - } -} - -void Splash::setLineDash(SplashCoord *lineDash, int lineDashLength, - SplashCoord lineDashPhase) { - state->setLineDash(lineDash, lineDashLength, lineDashPhase); -} - -void Splash::setStrokeAdjust(GBool strokeAdjust) { - state->strokeAdjust = strokeAdjust; -} - -void Splash::clipResetToRect(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1) { - state->clip->resetToRect(x0, y0, x1, y1); -} - -SplashError Splash::clipToRect(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1) { - return state->clip->clipToRect(x0, y0, x1, y1); -} - -SplashError Splash::clipToPath(SplashPath *path, GBool eo) { - return state->clip->clipToPath(path, state->matrix, state->flatness, eo); -} - -void Splash::setSoftMask(SplashBitmap *softMask) { - state->setSoftMask(softMask); -} - -void Splash::setInNonIsolatedGroup(SplashBitmap *alpha0BitmapA, - int alpha0XA, int alpha0YA) { - alpha0Bitmap = alpha0BitmapA; - alpha0X = alpha0XA; - alpha0Y = alpha0YA; - state->inNonIsolatedGroup = gTrue; -} - -//------------------------------------------------------------------------ -// state save/restore -//------------------------------------------------------------------------ - -void Splash::saveState() { - SplashState *newState; - - newState = state->copy(); - newState->next = state; - state = newState; -} - -SplashError Splash::restoreState() { - SplashState *oldState; - - if (!state->next) { - return splashErrNoSave; - } - oldState = state; - state = state->next; - delete oldState; - return splashOk; -} - -//------------------------------------------------------------------------ -// drawing operations -//------------------------------------------------------------------------ - -void Splash::clear(SplashColorPtr color, Guchar alpha) { - SplashColorPtr row, p; - Guchar mono; - int x, y; - - switch (bitmap->mode) { - case splashModeMono1: - mono = (color[0] & 0x80) ? 0xff : 0x00; - if (bitmap->rowSize < 0) { - memset(bitmap->data + bitmap->rowSize * (bitmap->height - 1), - mono, -bitmap->rowSize * bitmap->height); - } else { - memset(bitmap->data, mono, bitmap->rowSize * bitmap->height); - } - break; - case splashModeMono8: - if (bitmap->rowSize < 0) { - memset(bitmap->data + bitmap->rowSize * (bitmap->height - 1), - color[0], -bitmap->rowSize * bitmap->height); - } else { - memset(bitmap->data, color[0], bitmap->rowSize * bitmap->height); - } - break; - case splashModeRGB8: - if (color[0] == color[1] && color[1] == color[2]) { - if (bitmap->rowSize < 0) { - memset(bitmap->data + bitmap->rowSize * (bitmap->height - 1), - color[0], -bitmap->rowSize * bitmap->height); - } else { - memset(bitmap->data, color[0], bitmap->rowSize * bitmap->height); - } - } else { - row = bitmap->data; - for (y = 0; y < bitmap->height; ++y) { - p = row; - for (x = 0; x < bitmap->width; ++x) { - *p++ = color[2]; - *p++ = color[1]; - *p++ = color[0]; - } - row += bitmap->rowSize; - } - } - break; - case splashModeXBGR8: - if (color[0] == color[1] && color[1] == color[2]) { - if (bitmap->rowSize < 0) { - memset(bitmap->data + bitmap->rowSize * (bitmap->height - 1), - color[0], -bitmap->rowSize * bitmap->height); - } else { - memset(bitmap->data, color[0], bitmap->rowSize * bitmap->height); - } - } else { - row = bitmap->data; - for (y = 0; y < bitmap->height; ++y) { - p = row; - for (x = 0; x < bitmap->width; ++x) { - *p++ = color[0]; - *p++ = color[1]; - *p++ = color[2]; - *p++ = 255; - } - row += bitmap->rowSize; - } - } - break; - case splashModeBGR8: - if (color[0] == color[1] && color[1] == color[2]) { - if (bitmap->rowSize < 0) { - memset(bitmap->data + bitmap->rowSize * (bitmap->height - 1), - color[0], -bitmap->rowSize * bitmap->height); - } else { - memset(bitmap->data, color[0], bitmap->rowSize * bitmap->height); - } - } else { - row = bitmap->data; - for (y = 0; y < bitmap->height; ++y) { - p = row; - for (x = 0; x < bitmap->width; ++x) { - *p++ = color[0]; - *p++ = color[1]; - *p++ = color[2]; - } - row += bitmap->rowSize; - } - } - break; -#if SPLASH_CMYK - case splashModeCMYK8: - if (color[0] == color[1] && color[1] == color[2] && color[2] == color[3]) { - if (bitmap->rowSize < 0) { - memset(bitmap->data + bitmap->rowSize * (bitmap->height - 1), - color[0], -bitmap->rowSize * bitmap->height); - } else { - memset(bitmap->data, color[0], bitmap->rowSize * bitmap->height); - } - } else { - row = bitmap->data; - for (y = 0; y < bitmap->height; ++y) { - p = row; - for (x = 0; x < bitmap->width; ++x) { - *p++ = color[0]; - *p++ = color[1]; - *p++ = color[2]; - *p++ = color[3]; - } - row += bitmap->rowSize; - } - } - break; -#endif - } - - if (bitmap->alpha) { - memset(bitmap->alpha, alpha, bitmap->width * bitmap->height); - } - - updateModX(0); - updateModY(0); - updateModX(bitmap->width - 1); - updateModY(bitmap->height - 1); -} - -SplashError Splash::stroke(SplashPath *path) { - SplashPath *path2, *dPath; - - if (debugMode) { - printf("stroke [dash:%d] [width:%.2f]:\n", - state->lineDashLength, (double)state->lineWidth); - dumpPath(path); - } - opClipRes = splashClipAllOutside; - if (path->length == 0) { - return splashErrEmptyPath; - } - path2 = flattenPath(path, state->matrix, state->flatness); - if (state->lineDashLength > 0) { - dPath = makeDashedPath(path2); - delete path2; - path2 = dPath; - } - if (state->lineWidth == 0) { - strokeNarrow(path2); - } else { - strokeWide(path2); - } - delete path2; - return splashOk; -} - -void Splash::strokeNarrow(SplashPath *path) { - SplashPipe pipe; - SplashXPath *xPath; - SplashXPathSeg *seg; - int x0, x1, x2, x3, y0, y1, x, y, t; - SplashCoord dx, dy, dxdy; - SplashClipResult clipRes; - int nClipRes[3]; - int i; - - nClipRes[0] = nClipRes[1] = nClipRes[2] = 0; - - xPath = new SplashXPath(path, state->matrix, state->flatness, gFalse); - - pipeInit(&pipe, 0, 0, state->strokePattern, NULL, state->strokeAlpha, - gFalse, gFalse); - - for (i = 0, seg = xPath->segs; i < xPath->length; ++i, ++seg) { - - x0 = splashFloor(seg->x0); - x1 = splashFloor(seg->x1); - y0 = splashFloor(seg->y0); - y1 = splashFloor(seg->y1); - - // horizontal segment - if (y0 == y1) { - if (x0 > x1) { - t = x0; x0 = x1; x1 = t; - } - if ((clipRes = state->clip->testSpan(x0, x1, y0)) - != splashClipAllOutside) { - drawSpan(&pipe, x0, x1, y0, clipRes == splashClipAllInside); - } - - // segment with |dx| > |dy| - } else if (splashAbs(seg->dxdy) > 1) { - dx = seg->x1 - seg->x0; - dy = seg->y1 - seg->y0; - dxdy = seg->dxdy; - if (y0 > y1) { - t = y0; y0 = y1; y1 = t; - t = x0; x0 = x1; x1 = t; - dx = -dx; - dy = -dy; - } - if ((clipRes = state->clip->testRect(x0 <= x1 ? x0 : x1, y0, - x0 <= x1 ? x1 : x0, y1)) - != splashClipAllOutside) { - if (dx > 0) { - x2 = x0; - x3 = splashFloor(seg->x0 + ((SplashCoord)y0 + 1 - seg->y0) * dxdy); - drawSpan(&pipe, x2, (x2 <= x3 - 1) ? x3 - 1 : x2, y0, - clipRes == splashClipAllInside); - x2 = x3; - for (y = y0 + 1; y <= y1 - 1; ++y) { - x3 = splashFloor(seg->x0 + ((SplashCoord)y + 1 - seg->y0) * dxdy); - drawSpan(&pipe, x2, x3 - 1, y, clipRes == splashClipAllInside); - x2 = x3; - } - drawSpan(&pipe, x2, x2 <= x1 ? x1 : x2, y1, - clipRes == splashClipAllInside); - } else { - x2 = x0; - x3 = splashFloor(seg->x0 + ((SplashCoord)y0 + 1 - seg->y0) * dxdy); - drawSpan(&pipe, (x3 + 1 <= x2) ? x3 + 1 : x2, x2, y0, - clipRes == splashClipAllInside); - x2 = x3; - for (y = y0 + 1; y <= y1 - 1; ++y) { - x3 = splashFloor(seg->x0 + ((SplashCoord)y + 1 - seg->y0) * dxdy); - drawSpan(&pipe, x3 + 1, x2, y, clipRes == splashClipAllInside); - x2 = x3; - } - drawSpan(&pipe, x1, (x1 <= x2) ? x2 : x1, y1, - clipRes == splashClipAllInside); - } - } - - // segment with |dy| > |dx| - } else { - dxdy = seg->dxdy; - if (y0 > y1) { - t = x0; x0 = x1; x1 = t; - t = y0; y0 = y1; y1 = t; - } - if ((clipRes = state->clip->testRect(x0 <= x1 ? x0 : x1, y0, - x0 <= x1 ? x1 : x0, y1)) - != splashClipAllOutside) { - drawPixel(&pipe, x0, y0, clipRes == splashClipAllInside); - for (y = y0 + 1; y <= y1 - 1; ++y) { - x = splashFloor(seg->x0 + ((SplashCoord)y - seg->y0) * dxdy); - drawPixel(&pipe, x, y, clipRes == splashClipAllInside); - } - drawPixel(&pipe, x1, y1, clipRes == splashClipAllInside); - } - } - ++nClipRes[clipRes]; - } - if (nClipRes[splashClipPartial] || - (nClipRes[splashClipAllInside] && nClipRes[splashClipAllOutside])) { - opClipRes = splashClipPartial; - } else if (nClipRes[splashClipAllInside]) { - opClipRes = splashClipAllInside; - } else { - opClipRes = splashClipAllOutside; - } - - delete xPath; -} - -void Splash::strokeWide(SplashPath *path) { - SplashPath *path2; - - path2 = makeStrokePath(path, gFalse); - fillWithPattern(path2, gFalse, state->strokePattern, state->strokeAlpha); - delete path2; -} - -SplashPath *Splash::flattenPath(SplashPath *path, SplashCoord *matrix, - SplashCoord flatness) { - SplashPath *fPath; - SplashCoord flatness2; - Guchar flag; - int i; - - fPath = new SplashPath(); - flatness2 = flatness * flatness; - i = 0; - while (i < path->length) { - flag = path->flags[i]; - if (flag & splashPathFirst) { - fPath->moveTo(path->pts[i].x, path->pts[i].y); - ++i; - } else { - if (flag & splashPathCurve) { - flattenCurve(path->pts[i-1].x, path->pts[i-1].y, - path->pts[i ].x, path->pts[i ].y, - path->pts[i+1].x, path->pts[i+1].y, - path->pts[i+2].x, path->pts[i+2].y, - matrix, flatness2, fPath); - i += 3; - } else { - fPath->lineTo(path->pts[i].x, path->pts[i].y); - ++i; - } - if (path->flags[i-1] & splashPathClosed) { - fPath->close(); - } - } - } - return fPath; -} - -void Splash::flattenCurve(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1, - SplashCoord x2, SplashCoord y2, - SplashCoord x3, SplashCoord y3, - SplashCoord *matrix, SplashCoord flatness2, - SplashPath *fPath) { - SplashCoord cx[splashMaxCurveSplits + 1][3]; - SplashCoord cy[splashMaxCurveSplits + 1][3]; - int cNext[splashMaxCurveSplits + 1]; - SplashCoord xl0, xl1, xl2, xr0, xr1, xr2, xr3, xx1, xx2, xh; - SplashCoord yl0, yl1, yl2, yr0, yr1, yr2, yr3, yy1, yy2, yh; - SplashCoord dx, dy, mx, my, tx, ty, d1, d2; - int p1, p2, p3; - - // initial segment - p1 = 0; - p2 = splashMaxCurveSplits; - cx[p1][0] = x0; cy[p1][0] = y0; - cx[p1][1] = x1; cy[p1][1] = y1; - cx[p1][2] = x2; cy[p1][2] = y2; - cx[p2][0] = x3; cy[p2][0] = y3; - cNext[p1] = p2; - - while (p1 < splashMaxCurveSplits) { - - // get the next segment - xl0 = cx[p1][0]; yl0 = cy[p1][0]; - xx1 = cx[p1][1]; yy1 = cy[p1][1]; - xx2 = cx[p1][2]; yy2 = cy[p1][2]; - p2 = cNext[p1]; - xr3 = cx[p2][0]; yr3 = cy[p2][0]; - - // compute the distances (in device space) from the control points - // to the midpoint of the straight line (this is a bit of a hack, - // but it's much faster than computing the actual distances to the - // line) - transform(matrix, (xl0 + xr3) * 0.5, (yl0 + yr3) * 0.5, &mx, &my); - transform(matrix, xx1, yy1, &tx, &ty); - dx = tx - mx; - dy = ty - my; - d1 = dx*dx + dy*dy; - transform(matrix, xx2, yy2, &tx, &ty); - dx = tx - mx; - dy = ty - my; - d2 = dx*dx + dy*dy; - - // if the curve is flat enough, or no more subdivisions are - // allowed, add the straight line segment - if (p2 - p1 == 1 || (d1 <= flatness2 && d2 <= flatness2)) { - fPath->lineTo(xr3, yr3); - p1 = p2; - - // otherwise, subdivide the curve - } else { - xl1 = (xl0 + xx1) * 0.5; - yl1 = (yl0 + yy1) * 0.5; - xh = (xx1 + xx2) * 0.5; - yh = (yy1 + yy2) * 0.5; - xl2 = (xl1 + xh) * 0.5; - yl2 = (yl1 + yh) * 0.5; - xr2 = (xx2 + xr3) * 0.5; - yr2 = (yy2 + yr3) * 0.5; - xr1 = (xh + xr2) * 0.5; - yr1 = (yh + yr2) * 0.5; - xr0 = (xl2 + xr1) * 0.5; - yr0 = (yl2 + yr1) * 0.5; - // add the new subdivision points - p3 = (p1 + p2) / 2; - cx[p1][1] = xl1; cy[p1][1] = yl1; - cx[p1][2] = xl2; cy[p1][2] = yl2; - cNext[p1] = p3; - cx[p3][0] = xr0; cy[p3][0] = yr0; - cx[p3][1] = xr1; cy[p3][1] = yr1; - cx[p3][2] = xr2; cy[p3][2] = yr2; - cNext[p3] = p2; - } - } -} - -SplashPath *Splash::makeDashedPath(SplashPath *path) { - SplashPath *dPath; - SplashCoord lineDashTotal; - SplashCoord lineDashStartPhase, lineDashDist, segLen; - SplashCoord x0, y0, x1, y1, xa, ya; - GBool lineDashStartOn, lineDashOn, newPath; - int lineDashStartIdx, lineDashIdx; - int i, j, k; - - lineDashTotal = 0; - for (i = 0; i < state->lineDashLength; ++i) { - lineDashTotal += state->lineDash[i]; - } - lineDashStartPhase = state->lineDashPhase; - i = splashFloor(lineDashStartPhase / lineDashTotal); - lineDashStartPhase -= (SplashCoord)i * lineDashTotal; - lineDashStartOn = gTrue; - lineDashStartIdx = 0; - while (lineDashStartPhase >= state->lineDash[lineDashStartIdx]) { - lineDashStartOn = !lineDashStartOn; - lineDashStartPhase -= state->lineDash[lineDashStartIdx]; - ++lineDashStartIdx; - } - - dPath = new SplashPath(); - - // process each subpath - i = 0; - while (i < path->length) { - - // find the end of the subpath - for (j = i; - j < path->length - 1 && !(path->flags[j] & splashPathLast); - ++j) ; - - // initialize the dash parameters - lineDashOn = lineDashStartOn; - lineDashIdx = lineDashStartIdx; - lineDashDist = state->lineDash[lineDashIdx] - lineDashStartPhase; - - // process each segment of the subpath - newPath = gTrue; - for (k = i; k < j; ++k) { - - // grab the segment - x0 = path->pts[k].x; - y0 = path->pts[k].y; - x1 = path->pts[k+1].x; - y1 = path->pts[k+1].y; - segLen = splashDist(x0, y0, x1, y1); - - // process the segment - while (segLen > 0) { - - if (lineDashDist >= segLen) { - if (lineDashOn) { - if (newPath) { - dPath->moveTo(x0, y0); - newPath = gFalse; - } - dPath->lineTo(x1, y1); - } - lineDashDist -= segLen; - segLen = 0; - - } else { - xa = x0 + (lineDashDist / segLen) * (x1 - x0); - ya = y0 + (lineDashDist / segLen) * (y1 - y0); - if (lineDashOn) { - if (newPath) { - dPath->moveTo(x0, y0); - newPath = gFalse; - } - dPath->lineTo(xa, ya); - } - x0 = xa; - y0 = ya; - segLen -= lineDashDist; - lineDashDist = 0; - } - - // get the next entry in the dash array - if (lineDashDist <= 0) { - lineDashOn = !lineDashOn; - if (++lineDashIdx == state->lineDashLength) { - lineDashIdx = 0; - } - lineDashDist = state->lineDash[lineDashIdx]; - newPath = gTrue; - } - } - } - i = j + 1; - } - - return dPath; -} - -SplashError Splash::fill(SplashPath *path, GBool eo) { - if (debugMode) { - printf("fill [eo:%d]:\n", eo); - dumpPath(path); - } - return fillWithPattern(path, eo, state->fillPattern, state->fillAlpha); -} - -SplashError Splash::fillWithPattern(SplashPath *path, GBool eo, - SplashPattern *pattern, - SplashCoord alpha) { - SplashPipe pipe; - SplashXPath *xPath; - SplashXPathScanner *scanner; - int xMinI, yMinI, xMaxI, yMaxI, x0, x1, y; - SplashClipResult clipRes, clipRes2; - - if (path->length == 0) { - return splashErrEmptyPath; - } - xPath = new SplashXPath(path, state->matrix, state->flatness, gTrue); - if (vectorAntialias) { - xPath->aaScale(); - } - xPath->sort(); - scanner = new SplashXPathScanner(xPath, eo); - - // get the min and max x and y values - if (vectorAntialias) { - scanner->getBBoxAA(&xMinI, &yMinI, &xMaxI, &yMaxI); - } else { - scanner->getBBox(&xMinI, &yMinI, &xMaxI, &yMaxI); - } - - // check clipping - if ((clipRes = state->clip->testRect(xMinI, yMinI, xMaxI, yMaxI)) - != splashClipAllOutside) { - - // limit the y range - if (yMinI < state->clip->getYMinI()) { - yMinI = state->clip->getYMinI(); - } - if (yMaxI > state->clip->getYMaxI()) { - yMaxI = state->clip->getYMaxI(); - } - - pipeInit(&pipe, 0, yMinI, pattern, NULL, alpha, vectorAntialias, gFalse); - - // draw the spans - if (vectorAntialias) { - for (y = yMinI; y <= yMaxI; ++y) { - scanner->renderAALine(aaBuf, &x0, &x1, y); - if (clipRes != splashClipAllInside) { - state->clip->clipAALine(aaBuf, &x0, &x1, y); - } - drawAALine(&pipe, x0, x1, y); - } - } else { - for (y = yMinI; y <= yMaxI; ++y) { - while (scanner->getNextSpan(y, &x0, &x1)) { - if (clipRes == splashClipAllInside) { - drawSpan(&pipe, x0, x1, y, gTrue); - } else { - // limit the x range - if (x0 < state->clip->getXMinI()) { - x0 = state->clip->getXMinI(); - } - if (x1 > state->clip->getXMaxI()) { - x1 = state->clip->getXMaxI(); - } - clipRes2 = state->clip->testSpan(x0, x1, y); - drawSpan(&pipe, x0, x1, y, clipRes2 == splashClipAllInside); - } - } - } - } - } - opClipRes = clipRes; - - delete scanner; - delete xPath; - return splashOk; -} - -SplashError Splash::xorFill(SplashPath *path, GBool eo) { - SplashPipe pipe; - SplashXPath *xPath; - SplashXPathScanner *scanner; - int xMinI, yMinI, xMaxI, yMaxI, x0, x1, y; - SplashClipResult clipRes, clipRes2; - SplashBlendFunc origBlendFunc; - - if (path->length == 0) { - return splashErrEmptyPath; - } - xPath = new SplashXPath(path, state->matrix, state->flatness, gTrue); - xPath->sort(); - scanner = new SplashXPathScanner(xPath, eo); - - // get the min and max x and y values - scanner->getBBox(&xMinI, &yMinI, &xMaxI, &yMaxI); - - // check clipping - if ((clipRes = state->clip->testRect(xMinI, yMinI, xMaxI, yMaxI)) - != splashClipAllOutside) { - - // limit the y range - if (yMinI < state->clip->getYMinI()) { - yMinI = state->clip->getYMinI(); - } - if (yMaxI > state->clip->getYMaxI()) { - yMaxI = state->clip->getYMaxI(); - } - - origBlendFunc = state->blendFunc; - state->blendFunc = &blendXor; - pipeInit(&pipe, 0, yMinI, state->fillPattern, NULL, 1, gFalse, gFalse); - - // draw the spans - for (y = yMinI; y <= yMaxI; ++y) { - while (scanner->getNextSpan(y, &x0, &x1)) { - if (clipRes == splashClipAllInside) { - drawSpan(&pipe, x0, x1, y, gTrue); - } else { - // limit the x range - if (x0 < state->clip->getXMinI()) { - x0 = state->clip->getXMinI(); - } - if (x1 > state->clip->getXMaxI()) { - x1 = state->clip->getXMaxI(); - } - clipRes2 = state->clip->testSpan(x0, x1, y); - drawSpan(&pipe, x0, x1, y, clipRes2 == splashClipAllInside); - } - } - } - state->blendFunc = origBlendFunc; - } - opClipRes = clipRes; - - delete scanner; - delete xPath; - return splashOk; -} - -SplashError Splash::fillChar(SplashCoord x, SplashCoord y, - int c, SplashFont *font) { - SplashGlyphBitmap glyph; - SplashCoord xt, yt; - int x0, y0, xFrac, yFrac; - SplashClipResult clipRes; - - if (debugMode) { - printf("fillChar: x=%.2f y=%.2f c=%3d=0x%02x='%c'\n", - (double)x, (double)y, c, c, c); - } - transform(state->matrix, x, y, &xt, &yt); - x0 = splashFloor(xt); - xFrac = splashFloor((xt - x0) * splashFontFraction); - y0 = splashFloor(yt); - yFrac = splashFloor((yt - y0) * splashFontFraction); - if (!font->getGlyph(c, xFrac, yFrac, &glyph, x0, y0, state->clip, &clipRes)) { - return splashErrNoGlyph; - } - if (clipRes != splashClipAllOutside) { - fillGlyph2(x0, y0, &glyph, clipRes == splashClipAllInside); - } - opClipRes = clipRes; - if (glyph.freeData) { - gfree(glyph.data); - } - return splashOk; -} - -void Splash::fillGlyph(SplashCoord x, SplashCoord y, - SplashGlyphBitmap *glyph) { - SplashCoord xt, yt; - int x0, y0; - - transform(state->matrix, x, y, &xt, &yt); - x0 = splashFloor(xt); - y0 = splashFloor(yt); - SplashClipResult clipRes = state->clip->testRect(x0 - glyph->x, - y0 - glyph->y, - x0 - glyph->x + glyph->w - 1, - y0 - glyph->y + glyph->h - 1); - if (clipRes != splashClipAllOutside) { - fillGlyph2(x0, y0, glyph, clipRes == splashClipAllInside); - } - opClipRes = clipRes; -} - -void Splash::fillGlyph2(int x0, int y0, SplashGlyphBitmap *glyph, GBool noClip) { - SplashPipe pipe; - int alpha0, alpha; - Guchar *p; - int x1, y1, xx, xx1, yy; - - p = glyph->data; - int xStart = x0 - glyph->x; - int yStart = y0 - glyph->y; - int xxLimit = glyph->w; - int yyLimit = glyph->h; - - if (yStart < 0) - { - p += glyph->w * -yStart; // move p to the beginning of the first painted row - yyLimit += yStart; - yStart = 0; - } - - if (xStart < 0) - { - p += -xStart; // move p to the first painted pixel - xxLimit += xStart; - xStart = 0; - } - - if (xxLimit + xStart >= bitmap->width) xxLimit = bitmap->width - xStart; - if (yyLimit + yStart >= bitmap->height) yyLimit = bitmap->height - yStart; - - if (noClip) { - if (glyph->aa) { - pipeInit(&pipe, xStart, yStart, - state->fillPattern, NULL, state->fillAlpha, gTrue, gFalse); - for (yy = 0, y1 = yStart; yy < yyLimit; ++yy, ++y1) { - pipeSetXY(&pipe, xStart, y1); - for (xx = 0, x1 = xStart; xx < xxLimit; ++xx, ++x1) { - alpha = p[xx]; - if (alpha != 0) { - pipe.shape = (SplashCoord)(alpha / 255.0); - pipeRun(&pipe); - updateModX(x1); - updateModY(y1); - } else { - pipeIncX(&pipe); - } - } - p += glyph->w; - } - } else { - const int widthEight = splashCeil(glyph->w / 8.0); - - pipeInit(&pipe, xStart, yStart, - state->fillPattern, NULL, state->fillAlpha, gFalse, gFalse); - for (yy = 0, y1 = yStart; yy < yyLimit; ++yy, ++y1) { - pipeSetXY(&pipe, xStart, y1); - for (xx = 0, x1 = xStart; xx < xxLimit; xx += 8) { - alpha0 = p[xx / 8]; - for (xx1 = 0; xx1 < 8 && xx + xx1 < xxLimit; ++xx1, ++x1) { - if (alpha0 & 0x80) { - pipeRun(&pipe); - updateModX(x1); - updateModY(y1); - } else { - pipeIncX(&pipe); - } - alpha0 <<= 1; - } - } - p += widthEight; - } - } - } else { - if (glyph->aa) { - pipeInit(&pipe, xStart, yStart, - state->fillPattern, NULL, state->fillAlpha, gTrue, gFalse); - for (yy = 0, y1 = yStart; yy < yyLimit; ++yy, ++y1) { - pipeSetXY(&pipe, xStart, y1); - for (xx = 0, x1 = xStart; xx < xxLimit; ++xx, ++x1) { - if (state->clip->test(x1, y1)) { - alpha = p[xx]; - if (alpha != 0) { - pipe.shape = (SplashCoord)(alpha / 255.0); - pipeRun(&pipe); - updateModX(x1); - updateModY(y1); - } else { - pipeIncX(&pipe); - } - } else { - pipeIncX(&pipe); - } - } - p += glyph->w; - } - } else { - const int widthEight = splashCeil(glyph->w / 8.0); - - pipeInit(&pipe, xStart, yStart, - state->fillPattern, NULL, state->fillAlpha, gFalse, gFalse); - for (yy = 0, y1 = yStart; yy < yyLimit; ++yy, ++y1) { - pipeSetXY(&pipe, xStart, y1); - for (xx = 0, x1 = xStart; xx < xxLimit; xx += 8) { - alpha0 = p[xx / 8]; - for (xx1 = 0; xx1 < 8 && xx + xx1 < xxLimit; ++xx1, ++x1) { - if (state->clip->test(x1, y1)) { - if (alpha0 & 0x80) { - pipeRun(&pipe); - updateModX(x1); - updateModY(y1); - } else { - pipeIncX(&pipe); - } - } else { - pipeIncX(&pipe); - } - alpha0 <<= 1; - } - } - p += widthEight; - } - } - } -} - -SplashError Splash::fillImageMask(SplashImageMaskSource src, void *srcData, - int w, int h, SplashCoord *mat, - GBool glyphMode) { - SplashPipe pipe; - GBool rot; - SplashCoord xScale, yScale, xShear, yShear, yShear1; - int tx, tx2, ty, ty2, scaledWidth, scaledHeight, xSign, ySign; - int ulx, uly, llx, lly, urx, ury, lrx, lry; - int ulx1, uly1, llx1, lly1, urx1, ury1, lrx1, lry1; - int xMin, xMax, yMin, yMax; - SplashClipResult clipRes, clipRes2; - int yp, yq, yt, yStep, lastYStep; - int xp, xq, xt, xStep, xSrc; - int k1, spanXMin, spanXMax, spanY; - SplashColorPtr pixBuf, p; - int pixAcc; - int x, y, x1, x2, y2; - SplashCoord y1; - int n, m, i, j; - - if (debugMode) { - printf("fillImageMask: w=%d h=%d mat=[%.2f %.2f %.2f %.2f %.2f %.2f]\n", - w, h, (double)mat[0], (double)mat[1], (double)mat[2], - (double)mat[3], (double)mat[4], (double)mat[5]); - } - - if (w == 0 && h == 0) return splashErrZeroImage; - - // check for singular matrix - if (splashAbs(mat[0] * mat[3] - mat[1] * mat[2]) < 0.000001) { - return splashErrSingularMatrix; - } - - // compute scale, shear, rotation, translation parameters - rot = splashAbs(mat[1]) > splashAbs(mat[0]); - if (rot) { - xScale = -mat[1]; - yScale = mat[2] - (mat[0] * mat[3]) / mat[1]; - xShear = -mat[3] / yScale; - yShear = -mat[0] / mat[1]; - } else { - xScale = mat[0]; - yScale = mat[3] - (mat[1] * mat[2]) / mat[0]; - xShear = mat[2] / yScale; - yShear = mat[1] / mat[0]; - } - // Note 1: The PDF spec says that all pixels whose *centers* lie - // within the region get painted -- but that doesn't seem to match - // up with what Acrobat actually does: it ends up leaving gaps - // between image stripes. So we use the same rule here as for - // fills: any pixel that overlaps the region gets painted. - // Note 2: The "glyphMode" flag is a kludge: it switches back to - // "correct" behavior (matching the spec), for use in rendering Type - // 3 fonts. - // Note 3: The +/-0.01 in these computations is to avoid floating - // point precision problems which can lead to gaps between image - // stripes (it can cause image stripes to overlap, but that's a much - // less visible problem). - if (glyphMode) { - if (xScale >= 0) { - tx = splashRound(mat[4]); - tx2 = splashRound(mat[4] + xScale) - 1; - } else { - tx = splashRound(mat[4]) - 1; - tx2 = splashRound(mat[4] + xScale); - } - } else { - if (xScale >= 0) { - tx = splashFloor(mat[4] - 0.01); - tx2 = splashFloor(mat[4] + xScale + 0.01); - } else { - tx = splashFloor(mat[4] + 0.01); - tx2 = splashFloor(mat[4] + xScale - 0.01); - } - } - scaledWidth = abs(tx2 - tx) + 1; - if (glyphMode) { - if (yScale >= 0) { - ty = splashRound(mat[5]); - ty2 = splashRound(mat[5] + yScale) - 1; - } else { - ty = splashRound(mat[5]) - 1; - ty2 = splashRound(mat[5] + yScale); - } - } else { - if (yScale >= 0) { - ty = splashFloor(mat[5] - 0.01); - ty2 = splashFloor(mat[5] + yScale + 0.01); - } else { - ty = splashFloor(mat[5] + 0.01); - ty2 = splashFloor(mat[5] + yScale - 0.01); - } - } - scaledHeight = abs(ty2 - ty) + 1; - xSign = (xScale < 0) ? -1 : 1; - ySign = (yScale < 0) ? -1 : 1; - yShear1 = (SplashCoord)xSign * yShear; - - // clipping - ulx1 = 0; - uly1 = 0; - urx1 = xSign * (scaledWidth - 1); - ury1 = (int)(yShear * urx1); - llx1 = splashRound(xShear * ySign * (scaledHeight - 1)); - lly1 = ySign * (scaledHeight - 1) + (int)(yShear * llx1); - lrx1 = xSign * (scaledWidth - 1) + - splashRound(xShear * ySign * (scaledHeight - 1)); - lry1 = ySign * (scaledHeight - 1) + (int)(yShear * lrx1); - if (rot) { - ulx = tx + uly1; uly = ty - ulx1; - urx = tx + ury1; ury = ty - urx1; - llx = tx + lly1; lly = ty - llx1; - lrx = tx + lry1; lry = ty - lrx1; - } else { - ulx = tx + ulx1; uly = ty + uly1; - urx = tx + urx1; ury = ty + ury1; - llx = tx + llx1; lly = ty + lly1; - lrx = tx + lrx1; lry = ty + lry1; - } - xMin = (ulx < urx) ? (ulx < llx) ? (ulx < lrx) ? ulx : lrx - : (llx < lrx) ? llx : lrx - : (urx < llx) ? (urx < lrx) ? urx : lrx - : (llx < lrx) ? llx : lrx; - xMax = (ulx > urx) ? (ulx > llx) ? (ulx > lrx) ? ulx : lrx - : (llx > lrx) ? llx : lrx - : (urx > llx) ? (urx > lrx) ? urx : lrx - : (llx > lrx) ? llx : lrx; - yMin = (uly < ury) ? (uly < lly) ? (uly < lry) ? uly : lry - : (lly < lry) ? lly : lry - : (ury < lly) ? (ury < lry) ? ury : lry - : (lly < lry) ? lly : lry; - yMax = (uly > ury) ? (uly > lly) ? (uly > lry) ? uly : lry - : (lly > lry) ? lly : lry - : (ury > lly) ? (ury > lry) ? ury : lry - : (lly > lry) ? lly : lry; - clipRes = state->clip->testRect(xMin, yMin, xMax, yMax); - opClipRes = clipRes; - - // compute Bresenham parameters for x and y scaling - yp = h / scaledHeight; - yq = h % scaledHeight; - xp = w / scaledWidth; - xq = w % scaledWidth; - - // allocate pixel buffer - if (yp < 0 || yp > INT_MAX - 1) { - return splashErrBadArg; - } - pixBuf = (SplashColorPtr)gmallocn((yp + 1), w); - - // initialize the pixel pipe - pipeInit(&pipe, 0, 0, state->fillPattern, NULL, state->fillAlpha, - gTrue, gFalse); - if (vectorAntialias) { - drawAAPixelInit(); - } - - // init y scale Bresenham - yt = 0; - lastYStep = 1; - - for (y = 0; y < scaledHeight; ++y) { - - // y scale Bresenham - yStep = yp; - yt += yq; - if (yt >= scaledHeight) { - yt -= scaledHeight; - ++yStep; - } - - // read row(s) from image - n = (yp > 0) ? yStep : lastYStep; - if (n > 0) { - p = pixBuf; - for (i = 0; i < n; ++i) { - (*src)(srcData, p); - p += w; - } - } - lastYStep = yStep; - - // loop-invariant constants - k1 = splashRound(xShear * ySign * y); - - // clipping test - if (clipRes != splashClipAllInside && - !rot && - (int)(yShear * k1) == - (int)(yShear * (xSign * (scaledWidth - 1) + k1))) { - if (xSign > 0) { - spanXMin = tx + k1; - spanXMax = spanXMin + (scaledWidth - 1); - } else { - spanXMax = tx + k1; - spanXMin = spanXMax - (scaledWidth - 1); - } - spanY = ty + ySign * y + (int)(yShear * k1); - clipRes2 = state->clip->testSpan(spanXMin, spanXMax, spanY); - if (clipRes2 == splashClipAllOutside) { - continue; - } - } else { - clipRes2 = clipRes; - } - - // init x scale Bresenham - xt = 0; - xSrc = 0; - - // x shear - x1 = k1; - - // y shear - y1 = (SplashCoord)ySign * y + yShear * x1; - // this is a kludge: if yShear1 is negative, then (int)y1 would - // change immediately after the first pixel, which is not what we - // want - if (yShear1 < 0) { - y1 += 0.999; - } - - // loop-invariant constants - n = yStep > 0 ? yStep : 1; - - for (x = 0; x < scaledWidth; ++x) { - - // x scale Bresenham - xStep = xp; - xt += xq; - if (xt >= scaledWidth) { - xt -= scaledWidth; - ++xStep; - } - - // rotation - if (rot) { - x2 = (int)y1; - y2 = -x1; - } else { - x2 = x1; - y2 = (int)y1; - } - - // compute the alpha value for (x,y) after the x and y scaling - // operations - m = xStep > 0 ? xStep : 1; - p = pixBuf + xSrc; - pixAcc = 0; - for (i = 0; i < n; ++i) { - for (j = 0; j < m; ++j) { - pixAcc += *p++; - } - p += w - m; - } - - // blend fill color with background - if (pixAcc != 0) { - pipe.shape = (pixAcc == n * m) - ? (SplashCoord)1 - : (SplashCoord)pixAcc / (SplashCoord)(n * m); - if (vectorAntialias && clipRes2 != splashClipAllInside) { - drawAAPixel(&pipe, tx + x2, ty + y2); - } else { - drawPixel(&pipe, tx + x2, ty + y2, clipRes2 == splashClipAllInside); - } - } - - // x scale Bresenham - xSrc += xStep; - - // x shear - x1 += xSign; - - // y shear - y1 += yShear1; - } - } - - // free memory - gfree(pixBuf); - - return splashOk; -} - -SplashError Splash::drawImage(SplashImageSource src, void *srcData, - SplashColorMode srcMode, GBool srcAlpha, - int w, int h, SplashCoord *mat) { - SplashPipe pipe; - GBool ok, rot; - SplashCoord xScale, yScale, xShear, yShear, yShear1; - int tx, tx2, ty, ty2, scaledWidth, scaledHeight, xSign, ySign; - int ulx, uly, llx, lly, urx, ury, lrx, lry; - int ulx1, uly1, llx1, lly1, urx1, ury1, lrx1, lry1; - int xMin, xMax, yMin, yMax; - SplashClipResult clipRes, clipRes2; - int yp, yq, yt, yStep, lastYStep; - int xp, xq, xt, xStep, xSrc; - int k1, spanXMin, spanXMax, spanY; - SplashColorPtr colorBuf, p; - SplashColor pix; - Guchar *alphaBuf, *q; -#if SPLASH_CMYK - int pixAcc0, pixAcc1, pixAcc2, pixAcc3; -#else - int pixAcc0, pixAcc1, pixAcc2; -#endif - int alphaAcc; - SplashCoord pixMul, alphaMul, alpha; - int x, y, x1, x2, y2; - SplashCoord y1; - int nComps, n, m, i, j; - - if (debugMode) { - printf("drawImage: srcMode=%d srcAlpha=%d w=%d h=%d mat=[%.2f %.2f %.2f %.2f %.2f %.2f]\n", - srcMode, srcAlpha, w, h, (double)mat[0], (double)mat[1], (double)mat[2], - (double)mat[3], (double)mat[4], (double)mat[5]); - } - - // check color modes - ok = gFalse; // make gcc happy - nComps = 0; // make gcc happy - switch (bitmap->mode) { - case splashModeMono1: - case splashModeMono8: - ok = srcMode == splashModeMono8; - nComps = 1; - break; - case splashModeRGB8: - ok = srcMode == splashModeRGB8; - nComps = 3; - break; - case splashModeXBGR8: - ok = srcMode == splashModeXBGR8; - nComps = 4; - break; - case splashModeBGR8: - ok = srcMode == splashModeBGR8; - nComps = 3; - break; -#if SPLASH_CMYK - case splashModeCMYK8: - ok = srcMode == splashModeCMYK8; - nComps = 4; - break; -#endif - } - if (!ok) { - return splashErrModeMismatch; - } - - // check for singular matrix - if (splashAbs(mat[0] * mat[3] - mat[1] * mat[2]) < 0.000001) { - return splashErrSingularMatrix; - } - - // compute scale, shear, rotation, translation parameters - rot = splashAbs(mat[1]) > splashAbs(mat[0]); - if (rot) { - xScale = -mat[1]; - yScale = mat[2] - (mat[0] * mat[3]) / mat[1]; - xShear = -mat[3] / yScale; - yShear = -mat[0] / mat[1]; - } else { - xScale = mat[0]; - yScale = mat[3] - (mat[1] * mat[2]) / mat[0]; - xShear = mat[2] / yScale; - yShear = mat[1] / mat[0]; - } - // Note 1: The PDF spec says that all pixels whose *centers* lie - // within the region get painted -- but that doesn't seem to match - // up with what Acrobat actually does: it ends up leaving gaps - // between image stripes. So we use the same rule here as for - // fills: any pixel that overlaps the region gets painted. - // Note 2: The +/-0.01 in these computations is to avoid floating - // point precision problems which can lead to gaps between image - // stripes (it can cause image stripes to overlap, but that's a much - // less visible problem). - if (xScale >= 0) { - tx = splashFloor(mat[4] - 0.01); - tx2 = splashFloor(mat[4] + xScale + 0.01); - } else { - tx = splashFloor(mat[4] + 0.01); - tx2 = splashFloor(mat[4] + xScale - 0.01); - } - scaledWidth = abs(tx2 - tx) + 1; - if (yScale >= 0) { - ty = splashFloor(mat[5] - 0.01); - ty2 = splashFloor(mat[5] + yScale + 0.01); - } else { - ty = splashFloor(mat[5] + 0.01); - ty2 = splashFloor(mat[5] + yScale - 0.01); - } - scaledHeight = abs(ty2 - ty) + 1; - xSign = (xScale < 0) ? -1 : 1; - ySign = (yScale < 0) ? -1 : 1; - yShear1 = (SplashCoord)xSign * yShear; - - // clipping - ulx1 = 0; - uly1 = 0; - urx1 = xSign * (scaledWidth - 1); - ury1 = (int)(yShear * urx1); - llx1 = splashRound(xShear * ySign * (scaledHeight - 1)); - lly1 = ySign * (scaledHeight - 1) + (int)(yShear * llx1); - lrx1 = xSign * (scaledWidth - 1) + - splashRound(xShear * ySign * (scaledHeight - 1)); - lry1 = ySign * (scaledHeight - 1) + (int)(yShear * lrx1); - if (rot) { - ulx = tx + uly1; uly = ty - ulx1; - urx = tx + ury1; ury = ty - urx1; - llx = tx + lly1; lly = ty - llx1; - lrx = tx + lry1; lry = ty - lrx1; - } else { - ulx = tx + ulx1; uly = ty + uly1; - urx = tx + urx1; ury = ty + ury1; - llx = tx + llx1; lly = ty + lly1; - lrx = tx + lrx1; lry = ty + lry1; - } - xMin = (ulx < urx) ? (ulx < llx) ? (ulx < lrx) ? ulx : lrx - : (llx < lrx) ? llx : lrx - : (urx < llx) ? (urx < lrx) ? urx : lrx - : (llx < lrx) ? llx : lrx; - xMax = (ulx > urx) ? (ulx > llx) ? (ulx > lrx) ? ulx : lrx - : (llx > lrx) ? llx : lrx - : (urx > llx) ? (urx > lrx) ? urx : lrx - : (llx > lrx) ? llx : lrx; - yMin = (uly < ury) ? (uly < lly) ? (uly < lry) ? uly : lry - : (lly < lry) ? lly : lry - : (ury < lly) ? (ury < lry) ? ury : lry - : (lly < lry) ? lly : lry; - yMax = (uly > ury) ? (uly > lly) ? (uly > lry) ? uly : lry - : (lly > lry) ? lly : lry - : (ury > lly) ? (ury > lry) ? ury : lry - : (lly > lry) ? lly : lry; - clipRes = state->clip->testRect(xMin, yMin, xMax, yMax); - opClipRes = clipRes; - if (clipRes == splashClipAllOutside) { - return splashOk; - } - - // compute Bresenham parameters for x and y scaling - yp = h / scaledHeight; - yq = h % scaledHeight; - xp = w / scaledWidth; - xq = w % scaledWidth; - - // allocate pixel buffers - if (yp < 0 || yp > INT_MAX - 1) { - return splashErrBadArg; - } - colorBuf = (SplashColorPtr)gmallocn3((yp + 1), w, nComps); - if (srcAlpha) { - alphaBuf = (Guchar *)gmallocn((yp + 1), w); - } else { - alphaBuf = NULL; - } - - pixAcc0 = pixAcc1 = pixAcc2 = 0; // make gcc happy -#if SPLASH_CMYK - pixAcc3 = 0; // make gcc happy -#endif - - // initialize the pixel pipe - pipeInit(&pipe, 0, 0, NULL, pix, state->fillAlpha, - srcAlpha || (vectorAntialias && clipRes != splashClipAllInside), - gFalse); - if (vectorAntialias) { - drawAAPixelInit(); - } - - if (srcAlpha) { - - // init y scale Bresenham - yt = 0; - lastYStep = 1; - - for (y = 0; y < scaledHeight; ++y) { - - // y scale Bresenham - yStep = yp; - yt += yq; - if (yt >= scaledHeight) { - yt -= scaledHeight; - ++yStep; - } - - // read row(s) from image - n = (yp > 0) ? yStep : lastYStep; - if (n > 0) { - p = colorBuf; - q = alphaBuf; - for (i = 0; i < n; ++i) { - (*src)(srcData, p, q); - p += w * nComps; - q += w; - } - } - lastYStep = yStep; - - // loop-invariant constants - k1 = splashRound(xShear * ySign * y); - - // clipping test - if (clipRes != splashClipAllInside && - !rot && - (int)(yShear * k1) == - (int)(yShear * (xSign * (scaledWidth - 1) + k1))) { - if (xSign > 0) { - spanXMin = tx + k1; - spanXMax = spanXMin + (scaledWidth - 1); - } else { - spanXMax = tx + k1; - spanXMin = spanXMax - (scaledWidth - 1); - } - spanY = ty + ySign * y + (int)(yShear * k1); - clipRes2 = state->clip->testSpan(spanXMin, spanXMax, spanY); - if (clipRes2 == splashClipAllOutside) { - continue; - } - } else { - clipRes2 = clipRes; - } - - // init x scale Bresenham - xt = 0; - xSrc = 0; - - // x shear - x1 = k1; - - // y shear - y1 = (SplashCoord)ySign * y + yShear * x1; - // this is a kludge: if yShear1 is negative, then (int)y1 would - // change immediately after the first pixel, which is not what - // we want - if (yShear1 < 0) { - y1 += 0.999; - } - - // loop-invariant constants - n = yStep > 0 ? yStep : 1; - - switch (srcMode) { - - case splashModeMono1: - case splashModeMono8: - for (x = 0; x < scaledWidth; ++x) { - - // x scale Bresenham - xStep = xp; - xt += xq; - if (xt >= scaledWidth) { - xt -= scaledWidth; - ++xStep; - } - - // rotation - if (rot) { - x2 = (int)y1; - y2 = -x1; - } else { - x2 = x1; - y2 = (int)y1; - } - - // compute the filtered pixel at (x,y) after the x and y scaling - // operations - m = xStep > 0 ? xStep : 1; - alphaAcc = 0; - p = colorBuf + xSrc; - q = alphaBuf + xSrc; - pixAcc0 = 0; - for (i = 0; i < n; ++i) { - for (j = 0; j < m; ++j) { - pixAcc0 += *p++; - alphaAcc += *q++; - } - p += w - m; - q += w - m; - } - pixMul = (SplashCoord)1 / (SplashCoord)(n * m); - alphaMul = pixMul * (1.0 / 255.0); - alpha = (SplashCoord)alphaAcc * alphaMul; - - if (alpha > 0) { - pix[0] = (int)((SplashCoord)pixAcc0 * pixMul); - - // set pixel - pipe.shape = alpha; - if (vectorAntialias && clipRes != splashClipAllInside) { - drawAAPixel(&pipe, tx + x2, ty + y2); - } else { - drawPixel(&pipe, tx + x2, ty + y2, - clipRes2 == splashClipAllInside); - } - } - - // x scale Bresenham - xSrc += xStep; - - // x shear - x1 += xSign; - - // y shear - y1 += yShear1; - } - break; - - case splashModeRGB8: - case splashModeBGR8: - for (x = 0; x < scaledWidth; ++x) { - - // x scale Bresenham - xStep = xp; - xt += xq; - if (xt >= scaledWidth) { - xt -= scaledWidth; - ++xStep; - } - - // rotation - if (rot) { - x2 = (int)y1; - y2 = -x1; - } else { - x2 = x1; - y2 = (int)y1; - } - - // compute the filtered pixel at (x,y) after the x and y scaling - // operations - m = xStep > 0 ? xStep : 1; - alphaAcc = 0; - p = colorBuf + xSrc * 3; - q = alphaBuf + xSrc; - pixAcc0 = pixAcc1 = pixAcc2 = 0; - for (i = 0; i < n; ++i) { - for (j = 0; j < m; ++j) { - pixAcc0 += *p++; - pixAcc1 += *p++; - pixAcc2 += *p++; - alphaAcc += *q++; - } - p += 3 * (w - m); - q += w - m; - } - pixMul = (SplashCoord)1 / (SplashCoord)(n * m); - alphaMul = pixMul * (1.0 / 255.0); - alpha = (SplashCoord)alphaAcc * alphaMul; - - if (alpha > 0) { - pix[0] = (int)((SplashCoord)pixAcc0 * pixMul); - pix[1] = (int)((SplashCoord)pixAcc1 * pixMul); - pix[2] = (int)((SplashCoord)pixAcc2 * pixMul); - - // set pixel - pipe.shape = alpha; - if (vectorAntialias && clipRes != splashClipAllInside) { - drawAAPixel(&pipe, tx + x2, ty + y2); - } else { - drawPixel(&pipe, tx + x2, ty + y2, - clipRes2 == splashClipAllInside); - } - } - - // x scale Bresenham - xSrc += xStep; - - // x shear - x1 += xSign; - - // y shear - y1 += yShear1; - } - break; - - case splashModeXBGR8: - for (x = 0; x < scaledWidth; ++x) { - // x scale Bresenham - xStep = xp; - xt += xq; - if (xt >= scaledWidth) { - xt -= scaledWidth; - ++xStep; - } - - // rotation - if (rot) { - x2 = (int)y1; - y2 = -x1; - } else { - x2 = x1; - y2 = (int)y1; - } - - // compute the filtered pixel at (x,y) after the x and y scaling - // operations - m = xStep > 0 ? xStep : 1; - alphaAcc = 0; - p = colorBuf + xSrc * 4; - q = alphaBuf + xSrc; - pixAcc0 = pixAcc1 = pixAcc2 = 0; - for (i = 0; i < n; ++i) { - for (j = 0; j < m; ++j) { - pixAcc0 += *p++; - pixAcc1 += *p++; - pixAcc2 += *p++; - *p++; - alphaAcc += *q++; - } - p += 4 * (w - m); - q += w - m; - } - pixMul = (SplashCoord)1 / (SplashCoord)(n * m); - alphaMul = pixMul * (1.0 / 255.0); - alpha = (SplashCoord)alphaAcc * alphaMul; - - if (alpha > 0) { - pix[0] = (int)((SplashCoord)pixAcc0 * pixMul); - pix[1] = (int)((SplashCoord)pixAcc1 * pixMul); - pix[2] = (int)((SplashCoord)pixAcc2 * pixMul); - pix[3] = 255; - - // set pixel - pipe.shape = alpha; - if (vectorAntialias && clipRes != splashClipAllInside) { - drawAAPixel(&pipe, tx + x2, ty + y2); - } else { - drawPixel(&pipe, tx + x2, ty + y2, - clipRes2 == splashClipAllInside); - } - } - - // x scale Bresenham - xSrc += xStep; - - // x shear - x1 += xSign; - - // y shear - y1 += yShear1; - } - break; - - -#if SPLASH_CMYK - case splashModeCMYK8: - for (x = 0; x < scaledWidth; ++x) { - - // x scale Bresenham - xStep = xp; - xt += xq; - if (xt >= scaledWidth) { - xt -= scaledWidth; - ++xStep; - } - - // rotation - if (rot) { - x2 = (int)y1; - y2 = -x1; - } else { - x2 = x1; - y2 = (int)y1; - } - - // compute the filtered pixel at (x,y) after the x and y scaling - // operations - m = xStep > 0 ? xStep : 1; - alphaAcc = 0; - p = colorBuf + xSrc * 4; - q = alphaBuf + xSrc; - pixAcc0 = pixAcc1 = pixAcc2 = pixAcc3 = 0; - for (i = 0; i < n; ++i) { - for (j = 0; j < m; ++j) { - pixAcc0 += *p++; - pixAcc1 += *p++; - pixAcc2 += *p++; - pixAcc3 += *p++; - alphaAcc += *q++; - } - p += 4 * (w - m); - q += w - m; - } - pixMul = (SplashCoord)1 / (SplashCoord)(n * m); - alphaMul = pixMul * (1.0 / 255.0); - alpha = (SplashCoord)alphaAcc * alphaMul; - - if (alpha > 0) { - pix[0] = (int)((SplashCoord)pixAcc0 * pixMul); - pix[1] = (int)((SplashCoord)pixAcc1 * pixMul); - pix[2] = (int)((SplashCoord)pixAcc2 * pixMul); - pix[3] = (int)((SplashCoord)pixAcc3 * pixMul); - - // set pixel - pipe.shape = alpha; - if (vectorAntialias && clipRes != splashClipAllInside) { - drawAAPixel(&pipe, tx + x2, ty + y2); - } else { - drawPixel(&pipe, tx + x2, ty + y2, - clipRes2 == splashClipAllInside); - } - } - - // x scale Bresenham - xSrc += xStep; - - // x shear - x1 += xSign; - - // y shear - y1 += yShear1; - } - break; -#endif // SPLASH_CMYK - } - } - - } else { - - // init y scale Bresenham - yt = 0; - lastYStep = 1; - - for (y = 0; y < scaledHeight; ++y) { - - // y scale Bresenham - yStep = yp; - yt += yq; - if (yt >= scaledHeight) { - yt -= scaledHeight; - ++yStep; - } - - // read row(s) from image - n = (yp > 0) ? yStep : lastYStep; - if (n > 0) { - p = colorBuf; - for (i = 0; i < n; ++i) { - (*src)(srcData, p, NULL); - p += w * nComps; - } - } - lastYStep = yStep; - - // loop-invariant constants - k1 = splashRound(xShear * ySign * y); - - // clipping test - if (clipRes != splashClipAllInside && - !rot && - (int)(yShear * k1) == - (int)(yShear * (xSign * (scaledWidth - 1) + k1))) { - if (xSign > 0) { - spanXMin = tx + k1; - spanXMax = spanXMin + (scaledWidth - 1); - } else { - spanXMax = tx + k1; - spanXMin = spanXMax - (scaledWidth - 1); - } - spanY = ty + ySign * y + (int)(yShear * k1); - clipRes2 = state->clip->testSpan(spanXMin, spanXMax, spanY); - if (clipRes2 == splashClipAllOutside) { - continue; - } - } else { - clipRes2 = clipRes; - } - - // init x scale Bresenham - xt = 0; - xSrc = 0; - - // x shear - x1 = k1; - - // y shear - y1 = (SplashCoord)ySign * y + yShear * x1; - // this is a kludge: if yShear1 is negative, then (int)y1 would - // change immediately after the first pixel, which is not what - // we want - if (yShear1 < 0) { - y1 += 0.999; - } - - // loop-invariant constants - n = yStep > 0 ? yStep : 1; - - switch (srcMode) { - - case splashModeMono1: - case splashModeMono8: - for (x = 0; x < scaledWidth; ++x) { - - // x scale Bresenham - xStep = xp; - xt += xq; - if (xt >= scaledWidth) { - xt -= scaledWidth; - ++xStep; - } - - // rotation - if (rot) { - x2 = (int)y1; - y2 = -x1; - } else { - x2 = x1; - y2 = (int)y1; - } - - // compute the filtered pixel at (x,y) after the x and y scaling - // operations - m = xStep > 0 ? xStep : 1; - p = colorBuf + xSrc; - pixAcc0 = 0; - for (i = 0; i < n; ++i) { - for (j = 0; j < m; ++j) { - pixAcc0 += *p++; - } - p += w - m; - } - pixMul = (SplashCoord)1 / (SplashCoord)(n * m); - - pix[0] = (int)((SplashCoord)pixAcc0 * pixMul); - - // set pixel - if (vectorAntialias && clipRes != splashClipAllInside) { - pipe.shape = (SplashCoord)1; - drawAAPixel(&pipe, tx + x2, ty + y2); - } else { - drawPixel(&pipe, tx + x2, ty + y2, - clipRes2 == splashClipAllInside); - } - - // x scale Bresenham - xSrc += xStep; - - // x shear - x1 += xSign; - - // y shear - y1 += yShear1; - } - break; - - case splashModeRGB8: - case splashModeBGR8: - for (x = 0; x < scaledWidth; ++x) { - - // x scale Bresenham - xStep = xp; - xt += xq; - if (xt >= scaledWidth) { - xt -= scaledWidth; - ++xStep; - } - - // rotation - if (rot) { - x2 = (int)y1; - y2 = -x1; - } else { - x2 = x1; - y2 = (int)y1; - } - - // compute the filtered pixel at (x,y) after the x and y scaling - // operations - m = xStep > 0 ? xStep : 1; - p = colorBuf + xSrc * 3; - pixAcc0 = pixAcc1 = pixAcc2 = 0; - for (i = 0; i < n; ++i) { - for (j = 0; j < m; ++j) { - pixAcc0 += *p++; - pixAcc1 += *p++; - pixAcc2 += *p++; - } - p += 3 * (w - m); - } - pixMul = (SplashCoord)1 / (SplashCoord)(n * m); - - pix[0] = (int)((SplashCoord)pixAcc0 * pixMul); - pix[1] = (int)((SplashCoord)pixAcc1 * pixMul); - pix[2] = (int)((SplashCoord)pixAcc2 * pixMul); - - // set pixel - if (vectorAntialias && clipRes != splashClipAllInside) { - pipe.shape = (SplashCoord)1; - drawAAPixel(&pipe, tx + x2, ty + y2); - } else { - drawPixel(&pipe, tx + x2, ty + y2, - clipRes2 == splashClipAllInside); - } - - // x scale Bresenham - xSrc += xStep; - - // x shear - x1 += xSign; - - // y shear - y1 += yShear1; - } - break; - - case splashModeXBGR8: - for (x = 0; x < scaledWidth; ++x) { - - // x scale Bresenham - xStep = xp; - xt += xq; - if (xt >= scaledWidth) { - xt -= scaledWidth; - ++xStep; - } - - // rotation - if (rot) { - x2 = (int)y1; - y2 = -x1; - } else { - x2 = x1; - y2 = (int)y1; - } - - // compute the filtered pixel at (x,y) after the x and y scaling - // operations - m = xStep > 0 ? xStep : 1; - p = colorBuf + xSrc * 4; - pixAcc0 = pixAcc1 = pixAcc2 = 0; - for (i = 0; i < n; ++i) { - for (j = 0; j < m; ++j) { - pixAcc0 += *p++; - pixAcc1 += *p++; - pixAcc2 += *p++; - *p++; - } - p += 4 * (w - m); - } - pixMul = (SplashCoord)1 / (SplashCoord)(n * m); - - pix[0] = (int)((SplashCoord)pixAcc0 * pixMul); - pix[1] = (int)((SplashCoord)pixAcc1 * pixMul); - pix[2] = (int)((SplashCoord)pixAcc2 * pixMul); - pix[3] = 255; - - // set pixel - if (vectorAntialias && clipRes != splashClipAllInside) { - pipe.shape = (SplashCoord)1; - drawAAPixel(&pipe, tx + x2, ty + y2); - } else { - drawPixel(&pipe, tx + x2, ty + y2, - clipRes2 == splashClipAllInside); - } - - // x scale Bresenham - xSrc += xStep; - - // x shear - x1 += xSign; - - // y shear - y1 += yShear1; - } - break; - -#if SPLASH_CMYK - case splashModeCMYK8: - for (x = 0; x < scaledWidth; ++x) { - - // x scale Bresenham - xStep = xp; - xt += xq; - if (xt >= scaledWidth) { - xt -= scaledWidth; - ++xStep; - } - - // rotation - if (rot) { - x2 = (int)y1; - y2 = -x1; - } else { - x2 = x1; - y2 = (int)y1; - } - - // compute the filtered pixel at (x,y) after the x and y scaling - // operations - m = xStep > 0 ? xStep : 1; - p = colorBuf + xSrc * 4; - pixAcc0 = pixAcc1 = pixAcc2 = pixAcc3 = 0; - for (i = 0; i < n; ++i) { - for (j = 0; j < m; ++j) { - pixAcc0 += *p++; - pixAcc1 += *p++; - pixAcc2 += *p++; - pixAcc3 += *p++; - } - p += 4 * (w - m); - } - pixMul = (SplashCoord)1 / (SplashCoord)(n * m); - - pix[0] = (int)((SplashCoord)pixAcc0 * pixMul); - pix[1] = (int)((SplashCoord)pixAcc1 * pixMul); - pix[2] = (int)((SplashCoord)pixAcc2 * pixMul); - pix[3] = (int)((SplashCoord)pixAcc3 * pixMul); - - // set pixel - if (vectorAntialias && clipRes != splashClipAllInside) { - pipe.shape = (SplashCoord)1; - drawAAPixel(&pipe, tx + x2, ty + y2); - } else { - drawPixel(&pipe, tx + x2, ty + y2, - clipRes2 == splashClipAllInside); - } - - // x scale Bresenham - xSrc += xStep; - - // x shear - x1 += xSign; - - // y shear - y1 += yShear1; - } - break; -#endif // SPLASH_CMYK - } - } - - } - - gfree(colorBuf); - gfree(alphaBuf); - - return splashOk; -} - -SplashError Splash::composite(SplashBitmap *src, int xSrc, int ySrc, - int xDest, int yDest, int w, int h, - GBool noClip, GBool nonIsolated) { - SplashPipe pipe; - SplashColor pixel; - Guchar alpha; - Guchar *ap; - int x, y; - - if (src->mode != bitmap->mode) { - return splashErrModeMismatch; - } - - if (src->alpha) { - pipeInit(&pipe, xDest, yDest, NULL, pixel, state->fillAlpha, - gTrue, nonIsolated); - for (y = 0; y < h; ++y) { - pipeSetXY(&pipe, xDest, yDest + y); - ap = src->getAlphaPtr() + (ySrc + y) * src->getWidth() + xSrc; - for (x = 0; x < w; ++x) { - src->getPixel(xSrc + x, ySrc + y, pixel); - alpha = *ap++; - if (noClip || state->clip->test(xDest + x, yDest + y)) { - // this uses shape instead of alpha, which isn't technically - // correct, but works out the same - pipe.shape = (SplashCoord)(alpha / 255.0); - pipeRun(&pipe); - updateModX(xDest + x); - updateModY(yDest + y); - } else { - pipeIncX(&pipe); - } - } - } - } else { - pipeInit(&pipe, xDest, yDest, NULL, pixel, state->fillAlpha, - gFalse, nonIsolated); - for (y = 0; y < h; ++y) { - pipeSetXY(&pipe, xDest, yDest + y); - for (x = 0; x < w; ++x) { - src->getPixel(xSrc + x, ySrc + y, pixel); - if (noClip || state->clip->test(xDest + x, yDest + y)) { - pipeRun(&pipe); - updateModX(xDest + x); - updateModY(yDest + y); - } else { - pipeIncX(&pipe); - } - } - } - } - - return splashOk; -} - -void Splash::compositeBackground(SplashColorPtr color) { - SplashColorPtr p; - Guchar *q; - Guchar alpha, alpha1, c, color0, color1, color2; -#if SPLASH_CMYK - Guchar color3; -#endif - int x, y, mask; - - switch (bitmap->mode) { - case splashModeMono1: - color0 = color[0]; - for (y = 0; y < bitmap->height; ++y) { - p = &bitmap->data[y * bitmap->rowSize]; - q = &bitmap->alpha[y * bitmap->width]; - mask = 0x80; - for (x = 0; x < bitmap->width; ++x) { - alpha = *q++; - alpha1 = 255 - alpha; - c = (*p & mask) ? 0xff : 0x00; - c = div255(alpha1 * color0 + alpha * c); - if (c & 0x80) { - *p |= mask; - } else { - *p &= ~mask; - } - if (!(mask >>= 1)) { - mask = 0x80; - ++p; - } - } - } - break; - case splashModeMono8: - color0 = color[0]; - for (y = 0; y < bitmap->height; ++y) { - p = &bitmap->data[y * bitmap->rowSize]; - q = &bitmap->alpha[y * bitmap->width]; - for (x = 0; x < bitmap->width; ++x) { - alpha = *q++; - alpha1 = 255 - alpha; - p[0] = div255(alpha1 * color0 + alpha * p[0]); - ++p; - } - } - break; - case splashModeRGB8: - case splashModeBGR8: - color0 = color[0]; - color1 = color[1]; - color2 = color[2]; - for (y = 0; y < bitmap->height; ++y) { - p = &bitmap->data[y * bitmap->rowSize]; - q = &bitmap->alpha[y * bitmap->width]; - for (x = 0; x < bitmap->width; ++x) { - alpha = *q++; - alpha1 = 255 - alpha; - p[0] = div255(alpha1 * color0 + alpha * p[0]); - p[1] = div255(alpha1 * color1 + alpha * p[1]); - p[2] = div255(alpha1 * color2 + alpha * p[2]); - p += 3; - } - } - break; - case splashModeXBGR8: - color0 = color[0]; - color1 = color[1]; - color2 = color[2]; - for (y = 0; y < bitmap->height; ++y) { - p = &bitmap->data[y * bitmap->rowSize]; - q = &bitmap->alpha[y * bitmap->width]; - for (x = 0; x < bitmap->width; ++x) { - alpha = *q++; - alpha1 = 255 - alpha; - p[0] = div255(alpha1 * color0 + alpha * p[0]); - p[1] = div255(alpha1 * color1 + alpha * p[1]); - p[2] = div255(alpha1 * color2 + alpha * p[2]); - p[3] = 255; - p += 4; - } - } - break; -#if SPLASH_CMYK - case splashModeCMYK8: - color0 = color[0]; - color1 = color[1]; - color2 = color[2]; - color3 = color[3]; - for (y = 0; y < bitmap->height; ++y) { - p = &bitmap->data[y * bitmap->rowSize]; - q = &bitmap->alpha[y * bitmap->width]; - for (x = 0; x < bitmap->width; ++x) { - alpha = *q++; - alpha1 = 255 - alpha; - p[0] = div255(alpha1 * color0 + alpha * p[0]); - p[1] = div255(alpha1 * color1 + alpha * p[1]); - p[2] = div255(alpha1 * color2 + alpha * p[2]); - p[3] = div255(alpha1 * color3 + alpha * p[3]); - p += 4; - } - } - break; -#endif - } - memset(bitmap->alpha, 255, bitmap->width * bitmap->height); -} - -SplashError Splash::blitTransparent(SplashBitmap *src, int xSrc, int ySrc, - int xDest, int yDest, int w, int h) { - SplashColor pixel; - SplashColorPtr p; - Guchar *q; - int x, y, mask; - - if (src->mode != bitmap->mode) { - return splashErrModeMismatch; - } - - switch (bitmap->mode) { - case splashModeMono1: - for (y = 0; y < h; ++y) { - p = &bitmap->data[(yDest + y) * bitmap->rowSize + (xDest >> 3)]; - mask = 0x80 >> (xDest & 7); - for (x = 0; x < w; ++x) { - src->getPixel(xSrc + x, ySrc + y, pixel); - if (pixel[0]) { - *p |= mask; - } else { - *p &= ~mask; - } - if (!(mask >>= 1)) { - mask = 0x80; - ++p; - } - } - } - break; - case splashModeMono8: - for (y = 0; y < h; ++y) { - p = &bitmap->data[(yDest + y) * bitmap->rowSize + xDest]; - for (x = 0; x < w; ++x) { - src->getPixel(xSrc + x, ySrc + y, pixel); - *p++ = pixel[0]; - } - } - break; - case splashModeRGB8: - case splashModeBGR8: - for (y = 0; y < h; ++y) { - p = &bitmap->data[(yDest + y) * bitmap->rowSize + 3 * xDest]; - for (x = 0; x < w; ++x) { - src->getPixel(xSrc + x, ySrc + y, pixel); - *p++ = pixel[0]; - *p++ = pixel[1]; - *p++ = pixel[2]; - } - } - break; - case splashModeXBGR8: - for (y = 0; y < h; ++y) { - p = &bitmap->data[(yDest + y) * bitmap->rowSize + 4 * xDest]; - for (x = 0; x < w; ++x) { - src->getPixel(xSrc + x, ySrc + y, pixel); - *p++ = pixel[0]; - *p++ = pixel[1]; - *p++ = pixel[2]; - *p++ = 255; - } - } - break; -#if SPLASH_CMYK - case splashModeCMYK8: - for (y = 0; y < h; ++y) { - p = &bitmap->data[(yDest + y) * bitmap->rowSize + 4 * xDest]; - for (x = 0; x < w; ++x) { - src->getPixel(xSrc + x, ySrc + y, pixel); - *p++ = pixel[0]; - *p++ = pixel[1]; - *p++ = pixel[2]; - *p++ = pixel[3]; - } - } - break; -#endif - } - - if (bitmap->alpha) { - for (y = 0; y < h; ++y) { - q = &bitmap->alpha[(yDest + y) * bitmap->width + xDest]; - for (x = 0; x < w; ++x) { - *q++ = 0x00; - } - } - } - - return splashOk; -} - -SplashPath *Splash::makeStrokePath(SplashPath *path, GBool flatten) { - SplashPath *pathIn, *pathOut; - SplashCoord w, d, dx, dy, wdx, wdy, dxNext, dyNext, wdxNext, wdyNext; - SplashCoord crossprod, dotprod, miter, m; - GBool first, last, closed; - int subpathStart, next, i; - int left0, left1, left2, right0, right1, right2, join0, join1, join2; - int leftFirst, rightFirst, firstPt; - - if (flatten) { - pathIn = flattenPath(path, state->matrix, state->flatness); - if (state->lineDashLength > 0) { - pathOut = makeDashedPath(pathIn); - delete pathIn; - pathIn = pathOut; - } - } else { - pathIn = path; - } - - subpathStart = 0; // make gcc happy - closed = gFalse; // make gcc happy - left0 = left1 = right0 = right1 = join0 = join1 = 0; // make gcc happy - leftFirst = rightFirst = firstPt = 0; // make gcc happy - - pathOut = new SplashPath(); - w = state->lineWidth; - - for (i = 0; i < pathIn->length - 1; ++i) { - if (pathIn->flags[i] & splashPathLast) { - continue; - } - if ((first = pathIn->flags[i] & splashPathFirst)) { - subpathStart = i; - closed = pathIn->flags[i] & splashPathClosed; - } - last = pathIn->flags[i+1] & splashPathLast; - - // compute the deltas for segment (i, i+1) - d = splashDist(pathIn->pts[i].x, pathIn->pts[i].y, - pathIn->pts[i+1].x, pathIn->pts[i+1].y); - if (d == 0) { - // we need to draw end caps on zero-length lines - //~ not clear what the behavior should be for splashLineCapButt - //~ with d==0 - dx = 0; - dy = 1; - } else { - d = (SplashCoord)1 / d; - dx = d * (pathIn->pts[i+1].x - pathIn->pts[i].x); - dy = d * (pathIn->pts[i+1].y - pathIn->pts[i].y); - } - wdx = (SplashCoord)0.5 * w * dx; - wdy = (SplashCoord)0.5 * w * dy; - - // compute the deltas for segment (i+1, next) - next = last ? subpathStart + 1 : i + 2; - d = splashDist(pathIn->pts[i+1].x, pathIn->pts[i+1].y, - pathIn->pts[next].x, pathIn->pts[next].y); - if (d == 0) { - // we need to draw end caps on zero-length lines - //~ not clear what the behavior should be for splashLineCapButt - //~ with d==0 - dxNext = 0; - dyNext = 1; - } else { - d = (SplashCoord)1 / d; - dxNext = d * (pathIn->pts[next].x - pathIn->pts[i+1].x); - dyNext = d * (pathIn->pts[next].y - pathIn->pts[i+1].y); - } - wdxNext = (SplashCoord)0.5 * w * dxNext; - wdyNext = (SplashCoord)0.5 * w * dyNext; - - // draw the start cap - pathOut->moveTo(pathIn->pts[i].x - wdy, pathIn->pts[i].y + wdx); - if (i == subpathStart) { - firstPt = pathOut->length - 1; - } - if (first && !closed) { - switch (state->lineCap) { - case splashLineCapButt: - pathOut->lineTo(pathIn->pts[i].x + wdy, pathIn->pts[i].y - wdx); - break; - case splashLineCapRound: - pathOut->curveTo(pathIn->pts[i].x - wdy - bezierCircle * wdx, - pathIn->pts[i].y + wdx - bezierCircle * wdy, - pathIn->pts[i].x - wdx - bezierCircle * wdy, - pathIn->pts[i].y - wdy + bezierCircle * wdx, - pathIn->pts[i].x - wdx, - pathIn->pts[i].y - wdy); - pathOut->curveTo(pathIn->pts[i].x - wdx + bezierCircle * wdy, - pathIn->pts[i].y - wdy - bezierCircle * wdx, - pathIn->pts[i].x + wdy - bezierCircle * wdx, - pathIn->pts[i].y - wdx - bezierCircle * wdy, - pathIn->pts[i].x + wdy, - pathIn->pts[i].y - wdx); - break; - case splashLineCapProjecting: - pathOut->lineTo(pathIn->pts[i].x - wdx - wdy, - pathIn->pts[i].y + wdx - wdy); - pathOut->lineTo(pathIn->pts[i].x - wdx + wdy, - pathIn->pts[i].y - wdx - wdy); - pathOut->lineTo(pathIn->pts[i].x + wdy, - pathIn->pts[i].y - wdx); - break; - } - } else { - pathOut->lineTo(pathIn->pts[i].x + wdy, pathIn->pts[i].y - wdx); - } - - // draw the left side of the segment rectangle - left2 = pathOut->length - 1; - pathOut->lineTo(pathIn->pts[i+1].x + wdy, pathIn->pts[i+1].y - wdx); - - // draw the end cap - if (last && !closed) { - switch (state->lineCap) { - case splashLineCapButt: - pathOut->lineTo(pathIn->pts[i+1].x - wdy, pathIn->pts[i+1].y + wdx); - break; - case splashLineCapRound: - pathOut->curveTo(pathIn->pts[i+1].x + wdy + bezierCircle * wdx, - pathIn->pts[i+1].y - wdx + bezierCircle * wdy, - pathIn->pts[i+1].x + wdx + bezierCircle * wdy, - pathIn->pts[i+1].y + wdy - bezierCircle * wdx, - pathIn->pts[i+1].x + wdx, - pathIn->pts[i+1].y + wdy); - pathOut->curveTo(pathIn->pts[i+1].x + wdx - bezierCircle * wdy, - pathIn->pts[i+1].y + wdy + bezierCircle * wdx, - pathIn->pts[i+1].x - wdy + bezierCircle * wdx, - pathIn->pts[i+1].y + wdx + bezierCircle * wdy, - pathIn->pts[i+1].x - wdy, - pathIn->pts[i+1].y + wdx); - break; - case splashLineCapProjecting: - pathOut->lineTo(pathIn->pts[i+1].x + wdy + wdx, - pathIn->pts[i+1].y - wdx + wdy); - pathOut->lineTo(pathIn->pts[i+1].x - wdy + wdx, - pathIn->pts[i+1].y + wdx + wdy); - pathOut->lineTo(pathIn->pts[i+1].x - wdy, - pathIn->pts[i+1].y + wdx); - break; - } - } else { - pathOut->lineTo(pathIn->pts[i+1].x - wdy, pathIn->pts[i+1].y + wdx); - } - - // draw the right side of the segment rectangle - right2 = pathOut->length - 1; - pathOut->close(); - - // draw the join - join2 = pathOut->length; - if (!last || closed) { - crossprod = dx * dyNext - dy * dxNext; - dotprod = -(dx * dxNext + dy * dyNext); - if (dotprod > 0.99999) { - // avoid a divide-by-zero -- set miter to something arbitrary - // such that sqrt(miter) will exceed miterLimit (and m is never - // used in that situation) - miter = (state->miterLimit + 1) * (state->miterLimit + 1); - m = 0; - } else { - miter = (SplashCoord)2 / ((SplashCoord)1 - dotprod); - if (miter < 1) { - // this can happen because of floating point inaccuracies - miter = 1; - } - m = splashSqrt(miter - 1); - } - - // round join - if (state->lineJoin == splashLineJoinRound) { - pathOut->moveTo(pathIn->pts[i+1].x + (SplashCoord)0.5 * w, - pathIn->pts[i+1].y); - pathOut->curveTo(pathIn->pts[i+1].x + (SplashCoord)0.5 * w, - pathIn->pts[i+1].y + bezierCircle2 * w, - pathIn->pts[i+1].x + bezierCircle2 * w, - pathIn->pts[i+1].y + (SplashCoord)0.5 * w, - pathIn->pts[i+1].x, - pathIn->pts[i+1].y + (SplashCoord)0.5 * w); - pathOut->curveTo(pathIn->pts[i+1].x - bezierCircle2 * w, - pathIn->pts[i+1].y + (SplashCoord)0.5 * w, - pathIn->pts[i+1].x - (SplashCoord)0.5 * w, - pathIn->pts[i+1].y + bezierCircle2 * w, - pathIn->pts[i+1].x - (SplashCoord)0.5 * w, - pathIn->pts[i+1].y); - pathOut->curveTo(pathIn->pts[i+1].x - (SplashCoord)0.5 * w, - pathIn->pts[i+1].y - bezierCircle2 * w, - pathIn->pts[i+1].x - bezierCircle2 * w, - pathIn->pts[i+1].y - (SplashCoord)0.5 * w, - pathIn->pts[i+1].x, - pathIn->pts[i+1].y - (SplashCoord)0.5 * w); - pathOut->curveTo(pathIn->pts[i+1].x + bezierCircle2 * w, - pathIn->pts[i+1].y - (SplashCoord)0.5 * w, - pathIn->pts[i+1].x + (SplashCoord)0.5 * w, - pathIn->pts[i+1].y - bezierCircle2 * w, - pathIn->pts[i+1].x + (SplashCoord)0.5 * w, - pathIn->pts[i+1].y); - - } else { - pathOut->moveTo(pathIn->pts[i+1].x, pathIn->pts[i+1].y); - - // angle < 180 - if (crossprod < 0) { - pathOut->lineTo(pathIn->pts[i+1].x - wdyNext, - pathIn->pts[i+1].y + wdxNext); - // miter join inside limit - if (state->lineJoin == splashLineJoinMiter && - splashSqrt(miter) <= state->miterLimit) { - pathOut->lineTo(pathIn->pts[i+1].x - wdy + wdx * m, - pathIn->pts[i+1].y + wdx + wdy * m); - pathOut->lineTo(pathIn->pts[i+1].x - wdy, - pathIn->pts[i+1].y + wdx); - // bevel join or miter join outside limit - } else { - pathOut->lineTo(pathIn->pts[i+1].x - wdy, pathIn->pts[i+1].y + wdx); - } - - // angle >= 180 - } else { - pathOut->lineTo(pathIn->pts[i+1].x + wdy, - pathIn->pts[i+1].y - wdx); - // miter join inside limit - if (state->lineJoin == splashLineJoinMiter && - splashSqrt(miter) <= state->miterLimit) { - pathOut->lineTo(pathIn->pts[i+1].x + wdy + wdx * m, - pathIn->pts[i+1].y - wdx + wdy * m); - pathOut->lineTo(pathIn->pts[i+1].x + wdyNext, - pathIn->pts[i+1].y - wdxNext); - // bevel join or miter join outside limit - } else { - pathOut->lineTo(pathIn->pts[i+1].x + wdyNext, - pathIn->pts[i+1].y - wdxNext); - } - } - } - - pathOut->close(); - } - - // add stroke adjustment hints - if (state->strokeAdjust) { - if (i >= subpathStart + 1) { - if (i >= subpathStart + 2) { - pathOut->addStrokeAdjustHint(left1, right1, left0 + 1, right0); - pathOut->addStrokeAdjustHint(left1, right1, join0, left2); - } else { - pathOut->addStrokeAdjustHint(left1, right1, firstPt, left2); - } - pathOut->addStrokeAdjustHint(left1, right1, right2 + 1, right2 + 1); - } - left0 = left1; - left1 = left2; - right0 = right1; - right1 = right2; - join0 = join1; - join1 = join2; - if (i == subpathStart) { - leftFirst = left2; - rightFirst = right2; - } - if (last) { - if (i >= subpathStart + 2) { - pathOut->addStrokeAdjustHint(left1, right1, left0 + 1, right0); - pathOut->addStrokeAdjustHint(left1, right1, - join0, pathOut->length - 1); - } else { - pathOut->addStrokeAdjustHint(left1, right1, - firstPt, pathOut->length - 1); - } - if (closed) { - pathOut->addStrokeAdjustHint(left1, right1, firstPt, leftFirst); - pathOut->addStrokeAdjustHint(left1, right1, - rightFirst + 1, rightFirst + 1); - pathOut->addStrokeAdjustHint(leftFirst, rightFirst, - left1 + 1, right1); - pathOut->addStrokeAdjustHint(leftFirst, rightFirst, - join1, pathOut->length - 1); - } - } - } - } - - if (pathIn != path) { - delete pathIn; - } - - return pathOut; -} - -void Splash::dumpPath(SplashPath *path) { - int i; - - for (i = 0; i < path->length; ++i) { - printf(" %3d: x=%8.2f y=%8.2f%s%s%s%s\n", - i, (double)path->pts[i].x, (double)path->pts[i].y, - (path->flags[i] & splashPathFirst) ? " first" : "", - (path->flags[i] & splashPathLast) ? " last" : "", - (path->flags[i] & splashPathClosed) ? " closed" : "", - (path->flags[i] & splashPathCurve) ? " curve" : ""); - } -} - -void Splash::dumpXPath(SplashXPath *path) { - int i; - - for (i = 0; i < path->length; ++i) { - printf(" %4d: x0=%8.2f y0=%8.2f x1=%8.2f y1=%8.2f %s%s%s%s%s%s%s\n", - i, (double)path->segs[i].x0, (double)path->segs[i].y0, - (double)path->segs[i].x1, (double)path->segs[i].y1, - (path->segs[i].flags & splashXPathFirst) ? "F" : " ", - (path->segs[i].flags & splashXPathLast) ? "L" : " ", - (path->segs[i].flags & splashXPathEnd0) ? "0" : " ", - (path->segs[i].flags & splashXPathEnd1) ? "1" : " ", - (path->segs[i].flags & splashXPathHoriz) ? "H" : " ", - (path->segs[i].flags & splashXPathVert) ? "V" : " ", - (path->segs[i].flags & splashXPathFlip) ? "P" : " "); - } -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/Splash.h b/Build/source/libs/poppler/poppler-0.12.4/splash/Splash.h deleted file mode 100644 index c9d57cc7acb..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/Splash.h +++ /dev/null @@ -1,306 +0,0 @@ -//======================================================================== -// -// Splash.h -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2005 Marco Pesenti Gritti <mpg@redhat.com> -// Copyright (C) 2007 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#ifndef SPLASH_H -#define SPLASH_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include "SplashTypes.h" -#include "SplashClip.h" - -class Splash; -class SplashBitmap; -struct SplashGlyphBitmap; -class SplashState; -class SplashPattern; -class SplashScreen; -class SplashPath; -class SplashXPath; -class SplashFont; -struct SplashPipe; - -//------------------------------------------------------------------------ - -// Retrieves the next line of pixels in an image mask. Normally, -// fills in *<line> and returns true. If the image stream is -// exhausted, returns false. -typedef GBool (*SplashImageMaskSource)(void *data, SplashColorPtr pixel); - -// Retrieves the next line of pixels in an image. Normally, fills in -// *<line> and returns true. If the image stream is exhausted, -// returns false. -typedef GBool (*SplashImageSource)(void *data, SplashColorPtr colorLine, - Guchar *alphaLine); - -//------------------------------------------------------------------------ - -enum SplashPipeResultColorCtrl { -#if SPLASH_CMYK - splashPipeResultColorNoAlphaBlendCMYK, -#endif - splashPipeResultColorNoAlphaBlendRGB, - splashPipeResultColorNoAlphaBlendMono, - splashPipeResultColorAlphaNoBlendMono, - splashPipeResultColorAlphaNoBlendRGB, -#if SPLASH_CMYK - splashPipeResultColorAlphaNoBlendCMYK, -#endif - splashPipeResultColorAlphaBlendMono, - splashPipeResultColorAlphaBlendRGB -#if SPLASH_CMYK - , - splashPipeResultColorAlphaBlendCMYK -#endif -}; - -//------------------------------------------------------------------------ -// Splash -//------------------------------------------------------------------------ - -class Splash { -public: - - // Create a new rasterizer object. - Splash(SplashBitmap *bitmapA, GBool vectorAntialiasA, - SplashScreenParams *screenParams = NULL); - Splash(SplashBitmap *bitmapA, GBool vectorAntialiasA, - SplashScreen *screenA); - - ~Splash(); - - //----- state read - - SplashCoord *getMatrix(); - SplashPattern *getStrokePattern(); - SplashPattern *getFillPattern(); - SplashScreen *getScreen(); - SplashBlendFunc getBlendFunc(); - SplashCoord getStrokeAlpha(); - SplashCoord getFillAlpha(); - SplashCoord getLineWidth(); - int getLineCap(); - int getLineJoin(); - SplashCoord getMiterLimit(); - SplashCoord getFlatness(); - SplashCoord *getLineDash(); - int getLineDashLength(); - SplashCoord getLineDashPhase(); - SplashClip *getClip(); - SplashBitmap *getSoftMask(); - GBool getInNonIsolatedGroup(); - - //----- state write - - void setMatrix(SplashCoord *matrix); - void setStrokePattern(SplashPattern *strokeColor); - void setFillPattern(SplashPattern *fillColor); - void setScreen(SplashScreen *screen); - void setBlendFunc(SplashBlendFunc func); - void setStrokeAlpha(SplashCoord alpha); - void setFillAlpha(SplashCoord alpha); - void setLineWidth(SplashCoord lineWidth); - void setLineCap(int lineCap); - void setLineJoin(int lineJoin); - void setMiterLimit(SplashCoord miterLimit); - void setFlatness(SplashCoord flatness); - // the <lineDash> array will be copied - void setLineDash(SplashCoord *lineDash, int lineDashLength, - SplashCoord lineDashPhase); - void setStrokeAdjust(GBool strokeAdjust); - // NB: uses transformed coordinates. - void clipResetToRect(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1); - // NB: uses transformed coordinates. - SplashError clipToRect(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1); - // NB: uses untransformed coordinates. - SplashError clipToPath(SplashPath *path, GBool eo); - void setSoftMask(SplashBitmap *softMask); - void setInNonIsolatedGroup(SplashBitmap *alpha0BitmapA, - int alpha0XA, int alpha0YA); - - //----- state save/restore - - void saveState(); - SplashError restoreState(); - - //----- drawing operations - - // Fill the bitmap with <color>. This is not subject to clipping. - void clear(SplashColorPtr color, Guchar alpha = 0x00); - - // Stroke a path using the current stroke pattern. - SplashError stroke(SplashPath *path); - - // Fill a path using the current fill pattern. - SplashError fill(SplashPath *path, GBool eo); - - // Fill a path, XORing with the current fill pattern. - SplashError xorFill(SplashPath *path, GBool eo); - - // Draw a character, using the current fill pattern. - SplashError fillChar(SplashCoord x, SplashCoord y, int c, SplashFont *font); - - // Draw a glyph, using the current fill pattern. This function does - // not free any data, i.e., it ignores glyph->freeData. - void fillGlyph(SplashCoord x, SplashCoord y, - SplashGlyphBitmap *glyph); - - // Draws an image mask using the fill color. This will read <h> - // lines of <w> pixels from <src>, starting with the top line. "1" - // pixels will be drawn with the current fill color; "0" pixels are - // transparent. The matrix: - // [ mat[0] mat[1] 0 ] - // [ mat[2] mat[3] 0 ] - // [ mat[4] mat[5] 1 ] - // maps a unit square to the desired destination for the image, in - // PostScript style: - // [x' y' 1] = [x y 1] * mat - // Note that the Splash y axis points downward, and the image source - // is assumed to produce pixels in raster order, starting from the - // top line. - SplashError fillImageMask(SplashImageMaskSource src, void *srcData, - int w, int h, SplashCoord *mat, - GBool glyphMode); - - // Draw an image. This will read <h> lines of <w> pixels from - // <src>, starting with the top line. These pixels are assumed to - // be in the source mode, <srcMode>. If <srcAlpha> is true, the - // alpha values returned by <src> are used; otherwise they are - // ignored. The following combinations of source and target modes - // are supported: - // source target - // ------ ------ - // Mono1 Mono1 - // Mono8 Mono1 -- with dithering - // Mono8 Mono8 - // RGB8 RGB8 - // BGR8 BGR8 - // CMYK8 CMYK8 - // The matrix behaves as for fillImageMask. - SplashError drawImage(SplashImageSource src, void *srcData, - SplashColorMode srcMode, GBool srcAlpha, - int w, int h, SplashCoord *mat); - - // Composite a rectangular region from <src> onto this Splash - // object. - SplashError composite(SplashBitmap *src, int xSrc, int ySrc, - int xDest, int yDest, int w, int h, - GBool noClip, GBool nonIsolated); - - // Composite this Splash object onto a background color. The - // background alpha is assumed to be 1. - void compositeBackground(SplashColorPtr color); - - // Copy a rectangular region from <src> onto the bitmap belonging to - // this Splash object. The destination alpha values are all set to - // zero. - SplashError blitTransparent(SplashBitmap *src, int xSrc, int ySrc, - int xDest, int yDest, int w, int h); - - //----- misc - - // Construct a path for a stroke, given the path to be stroked, and - // using the current line parameters. If <flatten> is true, this - // function will first flatten the path and handle the linedash. - SplashPath *makeStrokePath(SplashPath *path, GBool flatten = gTrue); - - // Return the associated bitmap. - SplashBitmap *getBitmap() { return bitmap; } - - // Get a bounding box which includes all modifications since the - // last call to clearModRegion. - void getModRegion(int *xMin, int *yMin, int *xMax, int *yMax) - { *xMin = modXMin; *yMin = modYMin; *xMax = modXMax; *yMax = modYMax; } - - // Clear the modified region bounding box. - void clearModRegion(); - - // Get clipping status for the last drawing operation subject to - // clipping. - SplashClipResult getClipRes() { return opClipRes; } - - // Toggle debug mode on or off. - void setDebugMode(GBool debugModeA) { debugMode = debugModeA; } - -#if 1 //~tmp: turn off anti-aliasing temporarily - GBool getVectorAntialias() { return vectorAntialias; } - void setVectorAntialias(GBool vaa) { vectorAntialias = vaa; } -#endif - -private: - - void pipeInit(SplashPipe *pipe, int x, int y, - SplashPattern *pattern, SplashColorPtr cSrc, - SplashCoord aInput, GBool usesShape, - GBool nonIsolatedGroup); - void pipeRun(SplashPipe *pipe); - void pipeSetXY(SplashPipe *pipe, int x, int y); - void pipeIncX(SplashPipe *pipe); - void drawPixel(SplashPipe *pipe, int x, int y, GBool noClip); - void drawAAPixelInit(); - void drawAAPixel(SplashPipe *pipe, int x, int y); - void drawSpan(SplashPipe *pipe, int x0, int x1, int y, GBool noClip); - void drawAALine(SplashPipe *pipe, int x0, int x1, int y); - void transform(SplashCoord *matrix, SplashCoord xi, SplashCoord yi, - SplashCoord *xo, SplashCoord *yo); - void updateModX(int x); - void updateModY(int y); - void strokeNarrow(SplashPath *path); - void strokeWide(SplashPath *path); - SplashPath *flattenPath(SplashPath *path, SplashCoord *matrix, - SplashCoord flatness); - void flattenCurve(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1, - SplashCoord x2, SplashCoord y2, - SplashCoord x3, SplashCoord y3, - SplashCoord *matrix, SplashCoord flatness2, - SplashPath *fPath); - SplashPath *makeDashedPath(SplashPath *xPath); - SplashError fillWithPattern(SplashPath *path, GBool eo, - SplashPattern *pattern, SplashCoord alpha); - void fillGlyph2(int x0, int y0, SplashGlyphBitmap *glyph, GBool noclip); - void dumpPath(SplashPath *path); - void dumpXPath(SplashXPath *path); - - static SplashPipeResultColorCtrl pipeResultColorNoAlphaBlend[]; - static SplashPipeResultColorCtrl pipeResultColorAlphaNoBlend[]; - static SplashPipeResultColorCtrl pipeResultColorAlphaBlend[]; - static int pipeNonIsoGroupCorrection[]; - - SplashBitmap *bitmap; - SplashState *state; - SplashBitmap *aaBuf; - int aaBufY; - SplashBitmap *alpha0Bitmap; // for non-isolated groups, this is the - // bitmap containing the alpha0 values - int alpha0X, alpha0Y; // offset within alpha0Bitmap - SplashCoord aaGamma[splashAASize * splashAASize + 1]; - int modXMin, modYMin, modXMax, modYMax; - SplashClipResult opClipRes; - GBool vectorAntialias; - GBool debugMode; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashBitmap.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashBitmap.cc deleted file mode 100644 index 947becaf28d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashBitmap.cc +++ /dev/null @@ -1,376 +0,0 @@ -//======================================================================== -// -// SplashBitmap.cc -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006, 2009 Albert Astals Cid <aacid@kde.org> -// Copyright (C) 2007 Ilmari Heikkinen <ilmari.heikkinen@gmail.com> -// Copyright (C) 2009 Shen Liang <shenzhuxi@gmail.com> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include <config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <stdio.h> -#include <stdlib.h> -#include <limits.h> -#include "goo/gmem.h" -#include "SplashErrorCodes.h" -#include "SplashBitmap.h" -#include "poppler/Error.h" -#include "PNGWriter.h" - -//------------------------------------------------------------------------ -// SplashBitmap -//------------------------------------------------------------------------ - -SplashBitmap::SplashBitmap(int widthA, int heightA, int rowPad, - SplashColorMode modeA, GBool alphaA, - GBool topDown) { - width = widthA; - height = heightA; - mode = modeA; - switch (mode) { - case splashModeMono1: - if (width > 0) { - rowSize = (width + 7) >> 3; - } else { - rowSize = -1; - } - break; - case splashModeMono8: - if (width > 0) { - rowSize = width; - } else { - rowSize = -1; - } - break; - case splashModeRGB8: - case splashModeBGR8: - if (width > 0 && width <= INT_MAX / 3) { - rowSize = width * 3; - } else { - rowSize = -1; - } - break; - case splashModeXBGR8: - if (width > 0 && width <= INT_MAX / 4) { - rowSize = width * 4; - } else { - rowSize = -1; - } - break; -#if SPLASH_CMYK - case splashModeCMYK8: - if (width > 0 && width <= INT_MAX / 4) { - rowSize = width * 4; - } else { - rowSize = -1; - } - break; -#endif - } - if (rowSize > 0) { - rowSize += rowPad - 1; - rowSize -= rowSize % rowPad; - } - data = (SplashColorPtr)gmallocn(rowSize, height); - if (!topDown) { - data += (height - 1) * rowSize; - rowSize = -rowSize; - } - if (alphaA) { - alpha = (Guchar *)gmallocn(width, height); - } else { - alpha = NULL; - } -} - - -SplashBitmap::~SplashBitmap() { - if (rowSize < 0) { - gfree(data + (height - 1) * rowSize); - } else { - gfree(data); - } - gfree(alpha); -} - - -SplashError SplashBitmap::writePNMFile(char *fileName) { - FILE *f; - SplashError e; - - if (!(f = fopen(fileName, "wb"))) { - return splashErrOpenFile; - } - - e = this->writePNMFile(f); - - fclose(f); - return e; -} - - -SplashError SplashBitmap::writePNMFile(FILE *f) { - SplashColorPtr row, p; - int x, y; - - switch (mode) { - - case splashModeMono1: - fprintf(f, "P4\n%d %d\n", width, height); - row = data; - for (y = 0; y < height; ++y) { - p = row; - for (x = 0; x < width; x += 8) { - fputc(*p ^ 0xff, f); - ++p; - } - row += rowSize; - } - break; - - case splashModeMono8: - fprintf(f, "P5\n%d %d\n255\n", width, height); - row = data; - for (y = 0; y < height; ++y) { - p = row; - for (x = 0; x < width; ++x) { - fputc(*p, f); - ++p; - } - row += rowSize; - } - break; - - case splashModeRGB8: - fprintf(f, "P6\n%d %d\n255\n", width, height); - row = data; - for (y = 0; y < height; ++y) { - p = row; - for (x = 0; x < width; ++x) { - fputc(splashRGB8R(p), f); - fputc(splashRGB8G(p), f); - fputc(splashRGB8B(p), f); - p += 3; - } - row += rowSize; - } - break; - - case splashModeXBGR8: - fprintf(f, "P6\n%d %d\n255\n", width, height); - row = data; - for (y = 0; y < height; ++y) { - p = row; - for (x = 0; x < width; ++x) { - fputc(splashBGR8R(p), f); - fputc(splashBGR8G(p), f); - fputc(splashBGR8B(p), f); - p += 4; - } - row += rowSize; - } - break; - - - case splashModeBGR8: - fprintf(f, "P6\n%d %d\n255\n", width, height); - row = data; - for (y = 0; y < height; ++y) { - p = row; - for (x = 0; x < width; ++x) { - fputc(splashBGR8R(p), f); - fputc(splashBGR8G(p), f); - fputc(splashBGR8B(p), f); - p += 3; - } - row += rowSize; - } - break; - -#if SPLASH_CMYK - case splashModeCMYK8: - // PNM doesn't support CMYK - error(-1, "unsupported SplashBitmap mode"); - return splashErrGeneric; - break; -#endif - } - return splashOk; -} - - -void SplashBitmap::getPixel(int x, int y, SplashColorPtr pixel) { - SplashColorPtr p; - - if (y < 0 || y >= height || x < 0 || x >= width) { - return; - } - switch (mode) { - case splashModeMono1: - p = &data[y * rowSize + (x >> 3)]; - pixel[0] = (p[0] & (0x80 >> (x & 7))) ? 0xff : 0x00; - break; - case splashModeMono8: - p = &data[y * rowSize + x]; - pixel[0] = p[0]; - break; - case splashModeRGB8: - p = &data[y * rowSize + 3 * x]; - pixel[0] = p[0]; - pixel[1] = p[1]; - pixel[2] = p[2]; - break; - case splashModeXBGR8: - p = &data[y * rowSize + 4 * x]; - pixel[0] = p[2]; - pixel[1] = p[1]; - pixel[2] = p[0]; - pixel[3] = p[3]; - break; - case splashModeBGR8: - p = &data[y * rowSize + 3 * x]; - pixel[0] = p[2]; - pixel[1] = p[1]; - pixel[2] = p[0]; - break; -#if SPLASH_CMYK - case splashModeCMYK8: - p = &data[y * rowSize + 4 * x]; - pixel[0] = p[0]; - pixel[1] = p[1]; - pixel[2] = p[2]; - pixel[3] = p[3]; - break; -#endif - } -} - -Guchar SplashBitmap::getAlpha(int x, int y) { - return alpha[y * width + x]; -} - -SplashError SplashBitmap::writePNGFile(char *fileName) { - FILE *f; - SplashError e; - - if (!(f = fopen(fileName, "wb"))) { - return splashErrOpenFile; - } - - e = writePNGFile(f); - - fclose(f); - return e; -} - -SplashError SplashBitmap::writePNGFile(FILE *f) { -#ifndef ENABLE_LIBPNG - error(-1, "PNG support not compiled in"); - return splashErrGeneric; -#else - if (mode != splashModeRGB8 && mode != splashModeMono8 && mode != splashModeMono1) { - error(-1, "unsupported SplashBitmap mode"); - return splashErrGeneric; - } - - PNGWriter *writer = new PNGWriter(); - if (!writer->init(f, width, height)) { - delete writer; - return splashErrGeneric; - } - - switch (mode) { - case splashModeRGB8: - { - SplashColorPtr row; - png_bytep *row_pointers = new png_bytep[height]; - row = data; - - for (int y = 0; y < height; ++y) { - row_pointers[y] = row; - row += rowSize; - } - if (!writer->writePointers(row_pointers)) { - delete[] row_pointers; - delete writer; - return splashErrGeneric; - } - delete[] row_pointers; - } - break; - - case splashModeMono8: - { - png_byte *row = new png_byte[3 * width]; - for (int y = 0; y < height; y++) { - // Convert into a PNG row - for (int x = 0; x < width; x++) { - row[3*x] = data[y * rowSize + x]; - row[3*x+1] = data[y * rowSize + x]; - row[3*x+2] = data[y * rowSize + x]; - } - - if (!writer->writeRow(&row)) { - delete[] row; - delete writer; - return splashErrGeneric; - } - } - delete[] row; - } - break; - - case splashModeMono1: - { - png_byte *row = new png_byte[3 * width]; - for (int y = 0; y < height; y++) { - // Convert into a PNG row - for (int x = 0; x < width; x++) { - getPixel(x, y, &row[3*x]); - row[3*x+1] = row[3*x]; - row[3*x+2] = row[3*x]; - } - - if (!writer->writeRow(&row)) { - delete[] row; - delete writer; - return splashErrGeneric; - } - } - delete[] row; - } - break; - - default: - // can't happen - break; - } - - if (writer->close()) { - delete writer; - return splashErrGeneric; - } - - delete writer; - - return splashOk; -#endif -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashBitmap.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashBitmap.h deleted file mode 100644 index 50857632b17..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashBitmap.h +++ /dev/null @@ -1,80 +0,0 @@ -//======================================================================== -// -// SplashBitmap.h -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2007 Ilmari Heikkinen <ilmari.heikkinen@gmail.com> -// Copyright (C) 2009 Shen Liang <shenzhuxi@gmail.com> -// Copyright (C) 2009 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#ifndef SPLASHBITMAP_H -#define SPLASHBITMAP_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include "SplashTypes.h" -#include <stdio.h> - -//------------------------------------------------------------------------ -// SplashBitmap -//------------------------------------------------------------------------ - -class SplashBitmap { -public: - - // Create a new bitmap. It will have <widthA> x <heightA> pixels in - // color mode <modeA>. Rows will be padded out to a multiple of - // <rowPad> bytes. If <topDown> is false, the bitmap will be stored - // upside-down, i.e., with the last row first in memory. - SplashBitmap(int widthA, int heightA, int rowPad, - SplashColorMode modeA, GBool alphaA, - GBool topDown = gTrue); - - ~SplashBitmap(); - - int getWidth() { return width; } - int getHeight() { return height; } - int getRowSize() { return rowSize; } - int getAlphaRowSize() { return width; } - SplashColorMode getMode() { return mode; } - SplashColorPtr getDataPtr() { return data; } - Guchar *getAlphaPtr() { return alpha; } - - SplashError writePNMFile(char *fileName); - SplashError writePNMFile(FILE *f); - - SplashError writePNGFile(char *fileName); - SplashError writePNGFile(FILE *f); - - void getPixel(int x, int y, SplashColorPtr pixel); - Guchar getAlpha(int x, int y); - -private: - - int width, height; // size of bitmap - int rowSize; // size of one row of data, in bytes - // - negative for bottom-up bitmaps - SplashColorMode mode; // color mode - SplashColorPtr data; // pointer to row zero of the color data - Guchar *alpha; // pointer to row zero of the alpha data - // (always top-down) - - friend class Splash; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashClip.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashClip.cc deleted file mode 100644 index 87b0d7ef56b..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashClip.cc +++ /dev/null @@ -1,382 +0,0 @@ -//======================================================================== -// -// SplashClip.cc -// -//======================================================================== - -#include <config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <stdlib.h> -#include <string.h> -#include "goo/gmem.h" -#include "SplashErrorCodes.h" -#include "SplashPath.h" -#include "SplashXPath.h" -#include "SplashXPathScanner.h" -#include "SplashBitmap.h" -#include "SplashClip.h" - -//------------------------------------------------------------------------ -// SplashClip.flags -//------------------------------------------------------------------------ - -#define splashClipEO 0x01 // use even-odd rule - -//------------------------------------------------------------------------ -// SplashClip -//------------------------------------------------------------------------ - -SplashClip::SplashClip(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1, - GBool antialiasA) { - antialias = antialiasA; - if (x0 < x1) { - xMin = x0; - xMax = x1; - } else { - xMin = x1; - xMax = x0; - } - if (y0 < y1) { - yMin = y0; - yMax = y1; - } else { - yMin = y1; - yMax = y0; - } - xMinI = splashFloor(xMin); - yMinI = splashFloor(yMin); - xMaxI = splashFloor(xMax); - yMaxI = splashFloor(yMax); - paths = NULL; - flags = NULL; - scanners = NULL; - length = size = 0; -} - -SplashClip::SplashClip(SplashClip *clip) { - int i; - - antialias = clip->antialias; - xMin = clip->xMin; - yMin = clip->yMin; - xMax = clip->xMax; - yMax = clip->yMax; - xMinI = clip->xMinI; - yMinI = clip->yMinI; - xMaxI = clip->xMaxI; - yMaxI = clip->yMaxI; - length = clip->length; - size = clip->size; - paths = (SplashXPath **)gmallocn(size, sizeof(SplashXPath *)); - flags = (Guchar *)gmallocn(size, sizeof(Guchar)); - scanners = (SplashXPathScanner **) - gmallocn(size, sizeof(SplashXPathScanner *)); - for (i = 0; i < length; ++i) { - paths[i] = clip->paths[i]->copy(); - flags[i] = clip->flags[i]; - scanners[i] = new SplashXPathScanner(paths[i], flags[i] & splashClipEO); - } -} - -SplashClip::~SplashClip() { - int i; - - for (i = 0; i < length; ++i) { - delete paths[i]; - delete scanners[i]; - } - gfree(paths); - gfree(flags); - gfree(scanners); -} - -void SplashClip::grow(int nPaths) { - if (length + nPaths > size) { - if (size == 0) { - size = 32; - } - while (size < length + nPaths) { - size *= 2; - } - paths = (SplashXPath **)greallocn(paths, size, sizeof(SplashXPath *)); - flags = (Guchar *)greallocn(flags, size, sizeof(Guchar)); - scanners = (SplashXPathScanner **) - greallocn(scanners, size, sizeof(SplashXPathScanner *)); - } -} - -void SplashClip::resetToRect(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1) { - int i; - - for (i = 0; i < length; ++i) { - delete paths[i]; - delete scanners[i]; - } - gfree(paths); - gfree(flags); - gfree(scanners); - paths = NULL; - flags = NULL; - scanners = NULL; - length = size = 0; - - if (x0 < x1) { - xMin = x0; - xMax = x1; - } else { - xMin = x1; - xMax = x0; - } - if (y0 < y1) { - yMin = y0; - yMax = y1; - } else { - yMin = y1; - yMax = y0; - } - xMinI = splashFloor(xMin); - yMinI = splashFloor(yMin); - xMaxI = splashFloor(xMax); - yMaxI = splashFloor(yMax); -} - -SplashError SplashClip::clipToRect(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1) { - if (x0 < x1) { - if (x0 > xMin) { - xMin = x0; - xMinI = splashFloor(xMin); - } - if (x1 < xMax) { - xMax = x1; - xMaxI = splashFloor(xMax); - } - } else { - if (x1 > xMin) { - xMin = x1; - xMinI = splashFloor(xMin); - } - if (x0 < xMax) { - xMax = x0; - xMaxI = splashFloor(xMax); - } - } - if (y0 < y1) { - if (y0 > yMin) { - yMin = y0; - yMinI = splashFloor(yMin); - } - if (y1 < yMax) { - yMax = y1; - yMaxI = splashFloor(yMax); - } - } else { - if (y1 > yMin) { - yMin = y1; - yMinI = splashFloor(yMin); - } - if (y0 < yMax) { - yMax = y0; - yMaxI = splashFloor(yMax); - } - } - return splashOk; -} - -SplashError SplashClip::clipToPath(SplashPath *path, SplashCoord *matrix, - SplashCoord flatness, GBool eo) { - SplashXPath *xPath; - - xPath = new SplashXPath(path, matrix, flatness, gTrue); - - // check for an empty path - if (xPath->length == 0) { - xMax = xMin - 1; - yMax = yMin - 1; - xMaxI = splashFloor(xMax); - yMaxI = splashFloor(yMax); - delete xPath; - - // check for a rectangle - } else if (xPath->length == 4 && - ((xPath->segs[0].x0 == xPath->segs[0].x1 && - xPath->segs[0].x0 == xPath->segs[1].x0 && - xPath->segs[0].x0 == xPath->segs[3].x1 && - xPath->segs[2].x0 == xPath->segs[2].x1 && - xPath->segs[2].x0 == xPath->segs[1].x1 && - xPath->segs[2].x0 == xPath->segs[3].x0 && - xPath->segs[1].y0 == xPath->segs[1].y1 && - xPath->segs[1].y0 == xPath->segs[0].y1 && - xPath->segs[1].y0 == xPath->segs[2].y0 && - xPath->segs[3].y0 == xPath->segs[3].y1 && - xPath->segs[3].y0 == xPath->segs[0].y0 && - xPath->segs[3].y0 == xPath->segs[2].y1) || - (xPath->segs[0].y0 == xPath->segs[0].y1 && - xPath->segs[0].y0 == xPath->segs[1].y0 && - xPath->segs[0].y0 == xPath->segs[3].y1 && - xPath->segs[2].y0 == xPath->segs[2].y1 && - xPath->segs[2].y0 == xPath->segs[1].y1 && - xPath->segs[2].y0 == xPath->segs[3].y0 && - xPath->segs[1].x0 == xPath->segs[1].x1 && - xPath->segs[1].x0 == xPath->segs[0].x1 && - xPath->segs[1].x0 == xPath->segs[2].x0 && - xPath->segs[3].x0 == xPath->segs[3].x1 && - xPath->segs[3].x0 == xPath->segs[0].x0 && - xPath->segs[3].x0 == xPath->segs[2].x1))) { - clipToRect(xPath->segs[0].x0, xPath->segs[0].y0, - xPath->segs[2].x0, xPath->segs[2].y0); - delete xPath; - - } else { - grow(1); - if (antialias) { - xPath->aaScale(); - } - xPath->sort(); - paths[length] = xPath; - flags[length] = eo ? splashClipEO : 0; - scanners[length] = new SplashXPathScanner(xPath, eo); - ++length; - } - - return splashOk; -} - -GBool SplashClip::test(int x, int y) { - int i; - - // check the rectangle - if (x < xMinI || x > xMaxI || y < yMinI || y > yMaxI) { - return gFalse; - } - - // check the paths - if (antialias) { - for (i = 0; i < length; ++i) { - if (!scanners[i]->test(x * splashAASize, y * splashAASize)) { - return gFalse; - } - } - } else { - for (i = 0; i < length; ++i) { - if (!scanners[i]->test(x, y)) { - return gFalse; - } - } - } - - return gTrue; -} - -SplashClipResult SplashClip::testRect(int rectXMin, int rectYMin, - int rectXMax, int rectYMax) { - // This tests the rectangle: - // x = [rectXMin, rectXMax + 1) (note: rect coords are ints) - // y = [rectYMin, rectYMax + 1) - // against the clipping region: - // x = [xMin, xMax] (note: clipping coords are fp) - // y = [yMin, yMax] - if ((SplashCoord)(rectXMax + 1) <= xMin || (SplashCoord)rectXMin > xMax || - (SplashCoord)(rectYMax + 1) <= yMin || (SplashCoord)rectYMin > yMax) { - return splashClipAllOutside; - } - if ((SplashCoord)rectXMin >= xMin && (SplashCoord)(rectXMax + 1) <= xMax && - (SplashCoord)rectYMin >= yMin && (SplashCoord)(rectYMax + 1) <= yMax && - length == 0) { - return splashClipAllInside; - } - return splashClipPartial; -} - -SplashClipResult SplashClip::testSpan(int spanXMin, int spanXMax, int spanY) { - int i; - - // This tests the rectangle: - // x = [spanXMin, spanXMax + 1) (note: span coords are ints) - // y = [spanY, spanY + 1) - // against the clipping region: - // x = [xMin, xMax] (note: clipping coords are fp) - // y = [yMin, yMax] - if ((SplashCoord)(spanXMax + 1) <= xMin || (SplashCoord)spanXMin > xMax || - (SplashCoord)(spanY + 1) <= yMin || (SplashCoord)spanY > yMax) { - return splashClipAllOutside; - } - if (!((SplashCoord)spanXMin >= xMin && (SplashCoord)(spanXMax + 1) <= xMax && - (SplashCoord)spanY >= yMin && (SplashCoord)(spanY + 1) <= yMax)) { - return splashClipPartial; - } - if (antialias) { - for (i = 0; i < length; ++i) { - if (!scanners[i]->testSpan(spanXMin * splashAASize, - spanXMax * splashAASize + (splashAASize - 1), - spanY * splashAASize)) { - return splashClipPartial; - } - } - } else { - for (i = 0; i < length; ++i) { - if (!scanners[i]->testSpan(spanXMin, spanXMax, spanY)) { - return splashClipPartial; - } - } - } - return splashClipAllInside; -} - -void SplashClip::clipAALine(SplashBitmap *aaBuf, int *x0, int *x1, int y) { - int xx0, xx1, xx, yy, i; - SplashColorPtr p; - - // zero out pixels with x < xMin - xx0 = *x0 * splashAASize; - xx1 = splashFloor(xMin * splashAASize); - if (xx1 > aaBuf->getWidth()) { - xx1 = aaBuf->getWidth(); - } - if (xx0 < xx1) { - xx0 &= ~7; - for (yy = 0; yy < splashAASize; ++yy) { - p = aaBuf->getDataPtr() + yy * aaBuf->getRowSize() + (xx0 >> 3); - for (xx = xx0; xx + 7 < xx1; xx += 8) { - *p++ = 0; - } - if (xx < xx1) { - *p &= 0xff >> (xx1 & 7); - } - } - *x0 = splashFloor(xMin); - } - - // zero out pixels with x > xMax - xx0 = splashFloor(xMax * splashAASize) + 1; - if (xx0 < 0) { - xx0 = 0; - } - xx1 = (*x1 + 1) * splashAASize; - if (xx0 < xx1) { - for (yy = 0; yy < splashAASize; ++yy) { - p = aaBuf->getDataPtr() + yy * aaBuf->getRowSize() + (xx0 >> 3); - xx = xx0; - if (xx & 7) { - *p &= 0xff00 >> (xx & 7); - xx = (xx & ~7) + 8; - ++p; - } - for (; xx < xx1; xx += 8) { - *p++ = 0; - } - } - *x1 = splashFloor(xMax); - } - - // check the paths - for (i = 0; i < length; ++i) { - scanners[i]->clipAALine(aaBuf, x0, x1, y); - } -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashClip.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashClip.h deleted file mode 100644 index 1864149234a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashClip.h +++ /dev/null @@ -1,105 +0,0 @@ -//======================================================================== -// -// SplashClip.h -// -//======================================================================== - -#ifndef SPLASHCLIP_H -#define SPLASHCLIP_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include "SplashTypes.h" -#include "SplashMath.h" - -class SplashPath; -class SplashXPath; -class SplashXPathScanner; -class SplashBitmap; - -//------------------------------------------------------------------------ - -enum SplashClipResult { - splashClipAllInside, - splashClipAllOutside, - splashClipPartial -}; - -//------------------------------------------------------------------------ -// SplashClip -//------------------------------------------------------------------------ - -class SplashClip { -public: - - // Create a clip, for the given rectangle. - SplashClip(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1, - GBool antialiasA); - - // Copy a clip. - SplashClip *copy() { return new SplashClip(this); } - - ~SplashClip(); - - // Reset the clip to a rectangle. - void resetToRect(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1); - - // Intersect the clip with a rectangle. - SplashError clipToRect(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1); - - // Interesect the clip with <path>. - SplashError clipToPath(SplashPath *path, SplashCoord *matrix, - SplashCoord flatness, GBool eo); - - // Returns true if (<x>,<y>) is inside the clip. - GBool test(int x, int y); - - // Tests a rectangle against the clipping region. Returns one of: - // - splashClipAllInside if the entire rectangle is inside the - // clipping region, i.e., all pixels in the rectangle are - // visible - // - splashClipAllOutside if the entire rectangle is outside the - // clipping region, i.e., all the pixels in the rectangle are - // clipped - // - splashClipPartial if the rectangle is part inside and part - // outside the clipping region - SplashClipResult testRect(int rectXMin, int rectYMin, - int rectXMax, int rectYMax); - - // Similar to testRect, but tests a horizontal span. - SplashClipResult testSpan(int spanXMin, int spanXMax, int spanY); - - // Clips an anti-aliased line by setting pixels to zero. On entry, - // all non-zero pixels are between <x0> and <x1>. This function - // will update <x0> and <x1>. - void clipAALine(SplashBitmap *aaBuf, int *x0, int *x1, int y); - - // Get the rectangle part of the clip region, in integer coordinates. - int getXMinI() { return xMinI; } - int getXMaxI() { return xMaxI; } - int getYMinI() { return yMinI; } - int getYMaxI() { return yMaxI; } - - // Get the number of arbitrary paths used by the clip region. - int getNumPaths() { return length; } - -protected: - - SplashClip(SplashClip *clip); - void grow(int nPaths); - - GBool antialias; - SplashCoord xMin, yMin, xMax, yMax; - int xMinI, yMinI, xMaxI, yMaxI; - SplashXPath **paths; - Guchar *flags; - SplashXPathScanner **scanners; - int length, size; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashErrorCodes.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashErrorCodes.h deleted file mode 100644 index d1f81f85dd8..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashErrorCodes.h +++ /dev/null @@ -1,50 +0,0 @@ -//======================================================================== -// -// SplashErrorCodes.h -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006, 2009 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#ifndef SPLASHERRORCODES_H -#define SPLASHERRORCODES_H - -//------------------------------------------------------------------------ - -#define splashOk 0 // no error - -#define splashErrNoCurPt 1 // no current point - -#define splashErrEmptyPath 2 // zero points in path - -#define splashErrBogusPath 3 // only one point in subpath - -#define splashErrNoSave 4 // state stack is empty - -#define splashErrOpenFile 5 // couldn't open file - -#define splashErrNoGlyph 6 // couldn't get the requested glyph - -#define splashErrModeMismatch 7 // invalid combination of color modes - -#define splashErrSingularMatrix 8 // matrix is singular - -#define splashErrBadArg 9 // bad argument - -#define splashErrZeroImage 254 // image of 0x0 - -#define splashErrGeneric 255 - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFont.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFont.cc deleted file mode 100644 index 9dd0c9cc73d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFont.cc +++ /dev/null @@ -1,428 +0,0 @@ -//======================================================================== -// -// SplashFTFont.cc -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2005, 2007-2010 Albert Astals Cid <aacid@kde.org> -// Copyright (C) 2006 Kristian Høgsberg <krh@bitplanet.net> -// Copyright (C) 2009 Petr Gajdos <pgajdos@novell.com> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include <config.h> - -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <ft2build.h> -#include FT_OUTLINE_H -#include FT_SIZES_H -#include FT_GLYPH_H -#include "goo/gmem.h" -#include "SplashMath.h" -#include "SplashGlyphBitmap.h" -#include "SplashPath.h" -#include "SplashFTFontEngine.h" -#include "SplashFTFontFile.h" -#include "SplashFTFont.h" - -//------------------------------------------------------------------------ - -static int glyphPathMoveTo(const FT_Vector *pt, void *path); -static int glyphPathLineTo(const FT_Vector *pt, void *path); -static int glyphPathConicTo(const FT_Vector *ctrl, const FT_Vector *pt, - void *path); -static int glyphPathCubicTo(const FT_Vector *ctrl1, const FT_Vector *ctrl2, - const FT_Vector *pt, void *path); - -//------------------------------------------------------------------------ -// SplashFTFont -//------------------------------------------------------------------------ - -SplashFTFont::SplashFTFont(SplashFTFontFile *fontFileA, SplashCoord *matA, - SplashCoord *textMatA): - SplashFont(fontFileA, matA, textMatA, fontFileA->engine->aa), - enableFreeTypeHinting(fontFileA->engine->enableFreeTypeHinting) -{ - FT_Face face; - double div; - int x, y; - - face = fontFileA->face; - if (FT_New_Size(face, &sizeObj)) { - return; - } - face->size = sizeObj; - size = splashSqrt(mat[2]*mat[2] + mat[3]*mat[3]); - if (FT_Set_Pixel_Sizes(face, 0, (int)size)) { - return; - } - // if the textMat values are too small, FreeType's fixed point - // arithmetic doesn't work so well - textScale = splashSqrt(textMat[2]*textMat[2] + textMat[3]*textMat[3]) / size; - - div = face->bbox.xMax > 20000 ? 65536 : 1; - - // transform the four corners of the font bounding box -- the min - // and max values form the bounding box of the transformed font - x = (int)((mat[0] * face->bbox.xMin + mat[2] * face->bbox.yMin) / - (div * face->units_per_EM)); - xMin = xMax = x; - y = (int)((mat[1] * face->bbox.xMin + mat[3] * face->bbox.yMin) / - (div * face->units_per_EM)); - yMin = yMax = y; - x = (int)((mat[0] * face->bbox.xMin + mat[2] * face->bbox.yMax) / - (div * face->units_per_EM)); - if (x < xMin) { - xMin = x; - } else if (x > xMax) { - xMax = x; - } - y = (int)((mat[1] * face->bbox.xMin + mat[3] * face->bbox.yMax) / - (div * face->units_per_EM)); - if (y < yMin) { - yMin = y; - } else if (y > yMax) { - yMax = y; - } - x = (int)((mat[0] * face->bbox.xMax + mat[2] * face->bbox.yMin) / - (div * face->units_per_EM)); - if (x < xMin) { - xMin = x; - } else if (x > xMax) { - xMax = x; - } - y = (int)((mat[1] * face->bbox.xMax + mat[3] * face->bbox.yMin) / - (div * face->units_per_EM)); - if (y < yMin) { - yMin = y; - } else if (y > yMax) { - yMax = y; - } - x = (int)((mat[0] * face->bbox.xMax + mat[2] * face->bbox.yMax) / - (div * face->units_per_EM)); - if (x < xMin) { - xMin = x; - } else if (x > xMax) { - xMax = x; - } - y = (int)((mat[1] * face->bbox.xMax + mat[3] * face->bbox.yMax) / - (div * face->units_per_EM)); - if (y < yMin) { - yMin = y; - } else if (y > yMax) { - yMax = y; - } - // This is a kludge: some buggy PDF generators embed fonts with - // zero bounding boxes. - if (xMax == xMin) { - xMin = 0; - xMax = (int)size; - } - if (yMax == yMin) { - yMin = 0; - yMax = (int)((SplashCoord)1.2 * size); - } - - // compute the transform matrix -#if USE_FIXEDPOINT - matrix.xx = (FT_Fixed)((mat[0] / size).getRaw()); - matrix.yx = (FT_Fixed)((mat[1] / size).getRaw()); - matrix.xy = (FT_Fixed)((mat[2] / size).getRaw()); - matrix.yy = (FT_Fixed)((mat[3] / size).getRaw()); - textMatrix.xx = (FT_Fixed)((textMat[0] / (textScale * size)).getRaw()); - textMatrix.yx = (FT_Fixed)((textMat[1] / (textScale * size)).getRaw()); - textMatrix.xy = (FT_Fixed)((textMat[2] / (textScale * size)).getRaw()); - textMatrix.yy = (FT_Fixed)((textMat[3] / (textScale * size)).getRaw()); -#else - matrix.xx = (FT_Fixed)((mat[0] / size) * 65536); - matrix.yx = (FT_Fixed)((mat[1] / size) * 65536); - matrix.xy = (FT_Fixed)((mat[2] / size) * 65536); - matrix.yy = (FT_Fixed)((mat[3] / size) * 65536); - textMatrix.xx = (FT_Fixed)((textMat[0] / (size * textScale)) * 65536); - textMatrix.yx = (FT_Fixed)((textMat[1] / (size * textScale)) * 65536); - textMatrix.xy = (FT_Fixed)((textMat[2] / (size * textScale)) * 65536); - textMatrix.yy = (FT_Fixed)((textMat[3] / (size * textScale)) * 65536); -#endif -} - -SplashFTFont::~SplashFTFont() { -} - -GBool SplashFTFont::getGlyph(int c, int xFrac, int yFrac, - SplashGlyphBitmap *bitmap, int x0, int y0, SplashClip *clip, SplashClipResult *clipRes) { - return SplashFont::getGlyph(c, xFrac, 0, bitmap, x0, y0, clip, clipRes); -} - -static FT_Int32 getFTLoadFlags(GBool aa, GBool enableFreeTypeHinting) -{ - if (aa && enableFreeTypeHinting) return FT_LOAD_NO_BITMAP; - else if (aa && !enableFreeTypeHinting) return FT_LOAD_NO_HINTING | FT_LOAD_NO_BITMAP; - else if (!aa && enableFreeTypeHinting) return FT_LOAD_DEFAULT; - else return FT_LOAD_NO_HINTING; -} - -GBool SplashFTFont::makeGlyph(int c, int xFrac, int yFrac, - SplashGlyphBitmap *bitmap, int x0, int y0, SplashClip *clip, SplashClipResult *clipRes) { - SplashFTFontFile *ff; - FT_Vector offset; - FT_GlyphSlot slot; - FT_UInt gid; - int rowSize; - Guchar *p, *q; - int i; - - ff = (SplashFTFontFile *)fontFile; - - ff->face->size = sizeObj; - offset.x = (FT_Pos)(int)((SplashCoord)xFrac * splashFontFractionMul * 64); - offset.y = 0; - FT_Set_Transform(ff->face, &matrix, &offset); - slot = ff->face->glyph; - - if (ff->codeToGID && c < ff->codeToGIDLen) { - gid = (FT_UInt)ff->codeToGID[c]; - } else { - gid = (FT_UInt)c; - } - if (ff->trueType && gid == 0) { - // skip the TrueType notdef glyph - return gFalse; - } - - if (FT_Load_Glyph(ff->face, gid, getFTLoadFlags(aa, enableFreeTypeHinting))) { - return gFalse; - } - - FT_Glyph_Metrics *glyphMetrics = &(ff->face->glyph->metrics); - // prelimirary values from FT_Glyph_Metrics - bitmap->x = splashRound(-glyphMetrics->horiBearingX / 64.0); - bitmap->y = splashRound(glyphMetrics->horiBearingY / 64.0); - bitmap->w = splashRound(glyphMetrics->width / 64.0); - bitmap->h = splashRound(glyphMetrics->height / 64.0); - - *clipRes = clip->testRect(x0 - bitmap->x, - y0 - bitmap->y, - x0 - bitmap->x + bitmap->w, - y0 - bitmap->y + bitmap->h); - if (*clipRes == splashClipAllOutside) { - bitmap->freeData = gFalse; - return gTrue; - } - - if (FT_Render_Glyph(slot, aa ? ft_render_mode_normal - : ft_render_mode_mono)) { - return gFalse; - } - - bitmap->x = -slot->bitmap_left; - bitmap->y = slot->bitmap_top; - bitmap->w = slot->bitmap.width; - bitmap->h = slot->bitmap.rows; - bitmap->aa = aa; - if (aa) { - rowSize = bitmap->w; - } else { - rowSize = (bitmap->w + 7) >> 3; - } - bitmap->data = (Guchar *)gmallocn_checkoverflow(rowSize, bitmap->h); - if (!bitmap->data) { - return gFalse; - } - bitmap->freeData = gTrue; - for (i = 0, p = bitmap->data, q = slot->bitmap.buffer; - i < bitmap->h; - ++i, p += rowSize, q += slot->bitmap.pitch) { - memcpy(p, q, rowSize); - } - - return gTrue; -} - -double SplashFTFont::getGlyphAdvance(int c) -{ - SplashFTFontFile *ff; - FT_Vector offset; - FT_UInt gid; - FT_Matrix identityMatrix; - - ff = (SplashFTFontFile *)fontFile; - - // init the matrix - identityMatrix.xx = 65536; // 1 in 16.16 format - identityMatrix.xy = 0; - identityMatrix.yx = 0; - identityMatrix.yy = 65536; // 1 in 16.16 format - - // init the offset - offset.x = 0; - offset.y = 0; - - ff->face->size = sizeObj; - FT_Set_Transform(ff->face, &identityMatrix, &offset); - - if (ff->codeToGID && c < ff->codeToGIDLen) { - gid = (FT_UInt)ff->codeToGID[c]; - } else { - gid = (FT_UInt)c; - } - if (ff->trueType && gid == 0) { - // skip the TrueType notdef glyph - return -1; - } - - if (FT_Load_Glyph(ff->face, gid, getFTLoadFlags(aa, enableFreeTypeHinting))) { - return -1; - } - - // 64.0 is 1 in 26.6 format - return ff->face->glyph->metrics.horiAdvance / 64.0 / size; -} - -struct SplashFTFontPath { - SplashPath *path; - SplashCoord textScale; - GBool needClose; -}; - -SplashPath *SplashFTFont::getGlyphPath(int c) { - static FT_Outline_Funcs outlineFuncs = { -#if FREETYPE_MINOR <= 1 - (int (*)(FT_Vector *, void *))&glyphPathMoveTo, - (int (*)(FT_Vector *, void *))&glyphPathLineTo, - (int (*)(FT_Vector *, FT_Vector *, void *))&glyphPathConicTo, - (int (*)(FT_Vector *, FT_Vector *, FT_Vector *, void *))&glyphPathCubicTo, -#else - &glyphPathMoveTo, - &glyphPathLineTo, - &glyphPathConicTo, - &glyphPathCubicTo, -#endif - 0, 0 - }; - SplashFTFontFile *ff; - SplashFTFontPath path; - FT_GlyphSlot slot; - FT_UInt gid; - FT_Glyph glyph; - - ff = (SplashFTFontFile *)fontFile; - ff->face->size = sizeObj; - FT_Set_Transform(ff->face, &textMatrix, NULL); - slot = ff->face->glyph; - if (ff->codeToGID && c < ff->codeToGIDLen) { - gid = ff->codeToGID[c]; - } else { - gid = (FT_UInt)c; - } - if (ff->trueType && gid == 0) { - // skip the TrueType notdef glyph - return NULL; - } - if (FT_Load_Glyph(ff->face, gid, getFTLoadFlags(aa, enableFreeTypeHinting))) { - return NULL; - } - if (FT_Get_Glyph(slot, &glyph)) { - return NULL; - } - path.path = new SplashPath(); - path.textScale = textScale; - path.needClose = gFalse; - FT_Outline_Decompose(&((FT_OutlineGlyph)glyph)->outline, - &outlineFuncs, &path); - if (path.needClose) { - path.path->close(); - } - FT_Done_Glyph(glyph); - return path.path; -} - -static int glyphPathMoveTo(const FT_Vector *pt, void *path) { - SplashFTFontPath *p = (SplashFTFontPath *)path; - - if (p->needClose) { - p->path->close(); - p->needClose = gFalse; - } - p->path->moveTo((SplashCoord)pt->x * p->textScale / 64.0, - (SplashCoord)pt->y * p->textScale / 64.0); - return 0; -} - -static int glyphPathLineTo(const FT_Vector *pt, void *path) { - SplashFTFontPath *p = (SplashFTFontPath *)path; - - p->path->lineTo((SplashCoord)pt->x * p->textScale / 64.0, - (SplashCoord)pt->y * p->textScale / 64.0); - p->needClose = gTrue; - return 0; -} - -static int glyphPathConicTo(const FT_Vector *ctrl, const FT_Vector *pt, - void *path) { - SplashFTFontPath *p = (SplashFTFontPath *)path; - SplashCoord x0, y0, x1, y1, x2, y2, x3, y3, xc, yc; - - if (!p->path->getCurPt(&x0, &y0)) { - return 0; - } - xc = (SplashCoord)ctrl->x * p->textScale / 64.0; - yc = (SplashCoord)ctrl->y * p->textScale / 64.0; - x3 = (SplashCoord)pt->x * p->textScale / 64.0; - y3 = (SplashCoord)pt->y * p->textScale / 64.0; - - // A second-order Bezier curve is defined by two endpoints, p0 and - // p3, and one control point, pc: - // - // p(t) = (1-t)^2*p0 + t*(1-t)*pc + t^2*p3 - // - // A third-order Bezier curve is defined by the same two endpoints, - // p0 and p3, and two control points, p1 and p2: - // - // p(t) = (1-t)^3*p0 + 3t*(1-t)^2*p1 + 3t^2*(1-t)*p2 + t^3*p3 - // - // Applying some algebra, we can convert a second-order curve to a - // third-order curve: - // - // p1 = (1/3) * (p0 + 2pc) - // p2 = (1/3) * (2pc + p3) - - x1 = (SplashCoord)(1.0 / 3.0) * (x0 + (SplashCoord)2 * xc); - y1 = (SplashCoord)(1.0 / 3.0) * (y0 + (SplashCoord)2 * yc); - x2 = (SplashCoord)(1.0 / 3.0) * ((SplashCoord)2 * xc + x3); - y2 = (SplashCoord)(1.0 / 3.0) * ((SplashCoord)2 * yc + y3); - - p->path->curveTo(x1, y1, x2, y2, x3, y3); - p->needClose = gTrue; - return 0; -} - -static int glyphPathCubicTo(const FT_Vector *ctrl1, const FT_Vector *ctrl2, - const FT_Vector *pt, void *path) { - SplashFTFontPath *p = (SplashFTFontPath *)path; - - p->path->curveTo((SplashCoord)ctrl1->x * p->textScale / 64.0, - (SplashCoord)ctrl1->y * p->textScale / 64.0, - (SplashCoord)ctrl2->x * p->textScale / 64.0, - (SplashCoord)ctrl2->y * p->textScale / 64.0, - (SplashCoord)pt->x * p->textScale / 64.0, - (SplashCoord)pt->y * p->textScale / 64.0); - p->needClose = gTrue; - return 0; -} - -#endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFont.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFont.h deleted file mode 100644 index cf825042928..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFont.h +++ /dev/null @@ -1,76 +0,0 @@ -//======================================================================== -// -// SplashFTFont.h -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2007-2009 Albert Astals Cid <aacid@kde.org> -// Copyright (C) 2009 Petr Gajdos <pgajdos@novell.com> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#ifndef SPLASHFTFONT_H -#define SPLASHFTFONT_H - -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include <ft2build.h> -#include FT_FREETYPE_H -#include "SplashFont.h" - -class SplashFTFontFile; - -//------------------------------------------------------------------------ -// SplashFTFont -//------------------------------------------------------------------------ - -class SplashFTFont: public SplashFont { -public: - - SplashFTFont(SplashFTFontFile *fontFileA, SplashCoord *matA, - SplashCoord *textMatA); - - virtual ~SplashFTFont(); - - // Munge xFrac and yFrac before calling SplashFont::getGlyph. - virtual GBool getGlyph(int c, int xFrac, int yFrac, - SplashGlyphBitmap *bitmap, int x0, int y0, SplashClip *clip, SplashClipResult *clipRes); - - // Rasterize a glyph. The <xFrac> and <yFrac> values are the same - // as described for getGlyph. - virtual GBool makeGlyph(int c, int xFrac, int yFrac, - SplashGlyphBitmap *bitmap, int x0, int y0, SplashClip *clip, SplashClipResult *clipRes); - - // Return the path for a glyph. - virtual SplashPath *getGlyphPath(int c); - - // Return the advance of a glyph. (in 0..1 range) - virtual double getGlyphAdvance(int c); - -private: - - FT_Size sizeObj; - FT_Matrix matrix; - FT_Matrix textMatrix; - SplashCoord textScale; - double size; - GBool enableFreeTypeHinting; -}; - -#endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFontEngine.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFontEngine.cc deleted file mode 100644 index 7cf4f0618a4..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFontEngine.cc +++ /dev/null @@ -1,213 +0,0 @@ -//======================================================================== -// -// SplashFTFontEngine.cc -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Takashi Iwai <tiwai@suse.de> -// Copyright (C) 2009 Albert Astals Cid <aacid@kde.org> -// Copyright (C) 2009 Petr Gajdos <pgajdos@novell.com> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include <config.h> - -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <stdio.h> -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif -#include "goo/gmem.h" -#include "goo/GooString.h" -#include "goo/gfile.h" -#include "fofi/FoFiTrueType.h" -#include "fofi/FoFiType1C.h" -#include "SplashFTFontFile.h" -#include "SplashFTFontEngine.h" - -#ifdef VMS -#if (__VMS_VER < 70000000) -extern "C" int unlink(char *filename); -#endif -#endif - -//------------------------------------------------------------------------ - -#if 0 -static void fileWrite(void *stream, char *data, int len) { - fwrite(data, 1, len, (FILE *)stream); -} -#endif - -//------------------------------------------------------------------------ -// SplashFTFontEngine -//------------------------------------------------------------------------ - -SplashFTFontEngine::SplashFTFontEngine(GBool aaA, GBool enableFreeTypeHintingA, FT_Library libA) { - FT_Int major, minor, patch; - - aa = aaA; - enableFreeTypeHinting = enableFreeTypeHintingA; - lib = libA; - - // as of FT 2.1.8, CID fonts are indexed by CID instead of GID - FT_Library_Version(lib, &major, &minor, &patch); - useCIDs = major > 2 || - (major == 2 && (minor > 1 || (minor == 1 && patch > 7))); -} - -SplashFTFontEngine *SplashFTFontEngine::init(GBool aaA, GBool enableFreeTypeHintingA) { - FT_Library libA; - - if (FT_Init_FreeType(&libA)) { - return NULL; - } - return new SplashFTFontEngine(aaA, enableFreeTypeHintingA, libA); -} - -SplashFTFontEngine::~SplashFTFontEngine() { - FT_Done_FreeType(lib); -} - -SplashFontFile *SplashFTFontEngine::loadType1Font(SplashFontFileID *idA, - SplashFontSrc *src, - char **enc) { - return SplashFTFontFile::loadType1Font(this, idA, src, enc); -} - -SplashFontFile *SplashFTFontEngine::loadType1CFont(SplashFontFileID *idA, - SplashFontSrc *src, - char **enc) { - return SplashFTFontFile::loadType1Font(this, idA, src, enc); -} - -SplashFontFile *SplashFTFontEngine::loadOpenTypeT1CFont(SplashFontFileID *idA, - SplashFontSrc *src, - char **enc) { - return SplashFTFontFile::loadType1Font(this, idA, src, enc); -} - -SplashFontFile *SplashFTFontEngine::loadCIDFont(SplashFontFileID *idA, - SplashFontSrc *src) { - FoFiType1C *ff; - Gushort *cidToGIDMap; - int nCIDs; - SplashFontFile *ret; - - // check for a CFF font - if (useCIDs) { - cidToGIDMap = NULL; - nCIDs = 0; - } else { - if (src->isFile) { - ff = FoFiType1C::load(src->fileName->getCString()); - } else { - ff = FoFiType1C::make(src->buf, src->bufLen); - } - if (ff) { - cidToGIDMap = ff->getCIDToGIDMap(&nCIDs); - delete ff; - } else { - cidToGIDMap = NULL; - nCIDs = 0; - } - } - ret = SplashFTFontFile::loadCIDFont(this, idA, src, cidToGIDMap, nCIDs); - if (!ret) { - gfree(cidToGIDMap); - } - return ret; -} - -SplashFontFile *SplashFTFontEngine::loadOpenTypeCFFFont(SplashFontFileID *idA, - SplashFontSrc *src) { - FoFiTrueType *ff; - GBool isCID; - Gushort *cidToGIDMap; - int nCIDs; - SplashFontFile *ret; - - cidToGIDMap = NULL; - nCIDs = 0; - isCID = gFalse; - if (!useCIDs) { - if (src->isFile) { - ff = FoFiTrueType::load(src->fileName->getCString()); - } else { - ff = FoFiTrueType::make(src->buf, src->bufLen); - } - if (ff) { - if (ff->isOpenTypeCFF()) { - cidToGIDMap = ff->getCIDToGIDMap(&nCIDs); - } - delete ff; - } - } - ret = SplashFTFontFile::loadCIDFont(this, idA, src, - cidToGIDMap, nCIDs); - if (!ret) { - gfree(cidToGIDMap); - } - return ret; -} - -SplashFontFile *SplashFTFontEngine::loadTrueTypeFont(SplashFontFileID *idA, - SplashFontSrc *src, - Gushort *codeToGID, - int codeToGIDLen, - int faceIndex) { -#if 0 - FoFiTrueType *ff; - GooString *tmpFileName; - FILE *tmpFile; - SplashFontFile *ret; - - if (!(ff = FoFiTrueType::load(fileName))) { - return NULL; - } - tmpFileName = NULL; - if (!openTempFile(&tmpFileName, &tmpFile, "wb")) { - delete ff; - return NULL; - } - ff->writeTTF(&fileWrite, tmpFile); - delete ff; - fclose(tmpFile); - ret = SplashFTFontFile::loadTrueTypeFont(this, idA, - tmpFileName->getCString(), - gTrue, codeToGID, codeToGIDLen, - faceIndex); - if (ret) { - if (deleteFile) { - unlink(fileName); - } - } else { - unlink(tmpFileName->getCString()); - } - delete tmpFileName; - return ret; -#else - SplashFontFile *ret; - ret = SplashFTFontFile::loadTrueTypeFont(this, idA, src, - codeToGID, codeToGIDLen, - faceIndex); - return ret; -#endif -} - -#endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFontEngine.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFontEngine.h deleted file mode 100644 index 5acb415fda8..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFontEngine.h +++ /dev/null @@ -1,75 +0,0 @@ -//======================================================================== -// -// SplashFTFontEngine.h -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Takashi Iwai <tiwai@suse.de> -// Copyright (C) 2009 Petr Gajdos <pgajdos@novell.com> -// Copyright (C) 2009 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#ifndef SPLASHFTFONTENGINE_H -#define SPLASHFTFONTENGINE_H - -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include <ft2build.h> -#include FT_FREETYPE_H -#include "goo/gtypes.h" - -class SplashFontFile; -class SplashFontFileID; -class SplashFontSrc; - -//------------------------------------------------------------------------ -// SplashFTFontEngine -//------------------------------------------------------------------------ - -class SplashFTFontEngine { -public: - - static SplashFTFontEngine *init(GBool aaA, GBool enableFreeTypeHintingA); - - ~SplashFTFontEngine(); - - // Load fonts. - SplashFontFile *loadType1Font(SplashFontFileID *idA, SplashFontSrc *src, char **enc); - SplashFontFile *loadType1CFont(SplashFontFileID *idA, SplashFontSrc *src, char **enc); - SplashFontFile *loadOpenTypeT1CFont(SplashFontFileID *idA, SplashFontSrc *src, char **enc); - SplashFontFile *loadCIDFont(SplashFontFileID *idA, SplashFontSrc *src); - SplashFontFile *loadOpenTypeCFFFont(SplashFontFileID *idA, SplashFontSrc *src); - SplashFontFile *loadTrueTypeFont(SplashFontFileID *idA, SplashFontSrc *src, - Gushort *codeToGID, int codeToGIDLen, int faceIndex = 0); - -private: - - SplashFTFontEngine(GBool aaA, GBool enableFreeTypeHintingA, FT_Library libA); - - GBool aa; - GBool enableFreeTypeHinting; - FT_Library lib; - GBool useCIDs; - - friend class SplashFTFontFile; - friend class SplashFTFont; -}; - -#endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFontFile.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFontFile.cc deleted file mode 100644 index 160481e7a53..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFontFile.cc +++ /dev/null @@ -1,139 +0,0 @@ -//======================================================================== -// -// SplashFTFontFile.cc -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Takashi Iwai <tiwai@suse.de> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include <config.h> - -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include "goo/gmem.h" -#include "goo/GooString.h" -#include "SplashFTFontEngine.h" -#include "SplashFTFont.h" -#include "SplashFTFontFile.h" - -//------------------------------------------------------------------------ -// SplashFTFontFile -//------------------------------------------------------------------------ - -SplashFontFile *SplashFTFontFile::loadType1Font(SplashFTFontEngine *engineA, - SplashFontFileID *idA, - SplashFontSrc *src, - char **encA) { - FT_Face faceA; - Gushort *codeToGIDA; - char *name; - int i; - - if (src->isFile) { - if (FT_New_Face(engineA->lib, src->fileName->getCString(), 0, &faceA)) - return NULL; - } else { - if (FT_New_Memory_Face(engineA->lib, (const FT_Byte *)src->buf, src->bufLen, 0, &faceA)) - return NULL; - } - codeToGIDA = (Gushort *)gmallocn(256, sizeof(int)); - for (i = 0; i < 256; ++i) { - codeToGIDA[i] = 0; - if ((name = encA[i])) { - codeToGIDA[i] = (Gushort)FT_Get_Name_Index(faceA, name); - } - } - - return new SplashFTFontFile(engineA, idA, src, - faceA, codeToGIDA, 256, gFalse); -} - -SplashFontFile *SplashFTFontFile::loadCIDFont(SplashFTFontEngine *engineA, - SplashFontFileID *idA, - SplashFontSrc *src, - Gushort *codeToGIDA, - int codeToGIDLenA) { - FT_Face faceA; - - if (src->isFile) { - if (FT_New_Face(engineA->lib, src->fileName->getCString(), 0, &faceA)) - return NULL; - } else { - if (FT_New_Memory_Face(engineA->lib, (const FT_Byte *)src->buf, src->bufLen, 0, &faceA)) - return NULL; - } - - return new SplashFTFontFile(engineA, idA, src, - faceA, codeToGIDA, codeToGIDLenA, gFalse); -} - -SplashFontFile *SplashFTFontFile::loadTrueTypeFont(SplashFTFontEngine *engineA, - SplashFontFileID *idA, - SplashFontSrc *src, - Gushort *codeToGIDA, - int codeToGIDLenA, - int faceIndexA) { - FT_Face faceA; - - if (src->isFile) { - if (FT_New_Face(engineA->lib, src->fileName->getCString(), faceIndexA, &faceA)) - return NULL; - } else { - if (FT_New_Memory_Face(engineA->lib, (const FT_Byte *)src->buf, src->bufLen, faceIndexA, &faceA)) - return NULL; - } - - return new SplashFTFontFile(engineA, idA, src, - faceA, codeToGIDA, codeToGIDLenA, gTrue); -} - -SplashFTFontFile::SplashFTFontFile(SplashFTFontEngine *engineA, - SplashFontFileID *idA, - SplashFontSrc *src, - FT_Face faceA, - Gushort *codeToGIDA, int codeToGIDLenA, - GBool trueTypeA): - SplashFontFile(idA, src) -{ - engine = engineA; - face = faceA; - codeToGID = codeToGIDA; - codeToGIDLen = codeToGIDLenA; - trueType = trueTypeA; -} - -SplashFTFontFile::~SplashFTFontFile() { - if (face) { - FT_Done_Face(face); - } - if (codeToGID) { - gfree(codeToGID); - } -} - -SplashFont *SplashFTFontFile::makeFont(SplashCoord *mat, - SplashCoord *textMat) { - SplashFont *font; - - font = new SplashFTFont(this, mat, textMat); - font->initCache(); - return font; -} - -#endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFontFile.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFontFile.h deleted file mode 100644 index 079fb1cb691..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFTFontFile.h +++ /dev/null @@ -1,85 +0,0 @@ -//======================================================================== -// -// SplashFTFontFile.h -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Takashi Iwai <tiwai@suse.de> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#ifndef SPLASHFTFONTFILE_H -#define SPLASHFTFONTFILE_H - -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include <ft2build.h> -#include FT_FREETYPE_H -#include "SplashFontFile.h" - -class SplashFontFileID; -class SplashFTFontEngine; - -//------------------------------------------------------------------------ -// SplashFTFontFile -//------------------------------------------------------------------------ - -class SplashFTFontFile: public SplashFontFile { -public: - - static SplashFontFile *loadType1Font(SplashFTFontEngine *engineA, - SplashFontFileID *idA, - SplashFontSrc *src, char **encA); - static SplashFontFile *loadCIDFont(SplashFTFontEngine *engineA, - SplashFontFileID *idA, - SplashFontSrc *src, - Gushort *codeToCIDA, int codeToGIDLenA); - static SplashFontFile *loadTrueTypeFont(SplashFTFontEngine *engineA, - SplashFontFileID *idA, - SplashFontSrc *src, - Gushort *codeToGIDA, - int codeToGIDLenA, - int faceIndexA=0); - - virtual ~SplashFTFontFile(); - - // Create a new SplashFTFont, i.e., a scaled instance of this font - // file. - virtual SplashFont *makeFont(SplashCoord *mat, - SplashCoord *textMat); - -private: - - SplashFTFontFile(SplashFTFontEngine *engineA, - SplashFontFileID *idA, - SplashFontSrc *src, - FT_Face faceA, - Gushort *codeToGIDA, int codeToGIDLenA, - GBool trueTypeA); - - SplashFTFontEngine *engine; - FT_Face face; - Gushort *codeToGID; - int codeToGIDLen; - GBool trueType; - - friend class SplashFTFont; -}; - -#endif // HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFont.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFont.cc deleted file mode 100644 index 400d7cc4c08..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFont.cc +++ /dev/null @@ -1,215 +0,0 @@ -//======================================================================== -// -// SplashFont.cc -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2007-2008 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include <config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <string.h> -#include "goo/gmem.h" -#include "SplashMath.h" -#include "SplashGlyphBitmap.h" -#include "SplashFontFile.h" -#include "SplashFont.h" - -//------------------------------------------------------------------------ - -struct SplashFontCacheTag { - int c; - short xFrac, yFrac; // x and y fractions - int mru; // valid bit (0x80000000) and MRU index - int x, y, w, h; // offset and size of glyph -}; - -//------------------------------------------------------------------------ -// SplashFont -//------------------------------------------------------------------------ - -SplashFont::SplashFont(SplashFontFile *fontFileA, SplashCoord *matA, - SplashCoord *textMatA, GBool aaA) { - fontFile = fontFileA; - fontFile->incRefCnt(); - mat[0] = matA[0]; - mat[1] = matA[1]; - mat[2] = matA[2]; - mat[3] = matA[3]; - textMat[0] = textMatA[0]; - textMat[1] = textMatA[1]; - textMat[2] = textMatA[2]; - textMat[3] = textMatA[3]; - aa = aaA; - - cache = NULL; - cacheTags = NULL; - - xMin = yMin = xMax = yMax = 0; -} - -void SplashFont::initCache() { - int i; - - // this should be (max - min + 1), but we add some padding to - // deal with rounding errors - glyphW = xMax - xMin + 3; - glyphH = yMax - yMin + 3; - if (aa) { - glyphSize = glyphW * glyphH; - } else { - glyphSize = ((glyphW + 7) >> 3) * glyphH; - } - - // set up the glyph pixmap cache - cacheAssoc = 8; - if (glyphSize <= 256) { - cacheSets = 8; - } else if (glyphSize <= 512) { - cacheSets = 4; - } else if (glyphSize <= 1024) { - cacheSets = 2; - } else { - cacheSets = 1; - } - cache = (Guchar *)gmallocn_checkoverflow(cacheSets* cacheAssoc, glyphSize); - if (cache != NULL) { - cacheTags = (SplashFontCacheTag *)gmallocn(cacheSets * cacheAssoc, - sizeof(SplashFontCacheTag)); - for (i = 0; i < cacheSets * cacheAssoc; ++i) { - cacheTags[i].mru = i & (cacheAssoc - 1); - } - } else { - cacheAssoc = 0; - } -} - -SplashFont::~SplashFont() { - fontFile->decRefCnt(); - if (cache) { - gfree(cache); - } - if (cacheTags) { - gfree(cacheTags); - } -} - -GBool SplashFont::getGlyph(int c, int xFrac, int yFrac, - SplashGlyphBitmap *bitmap, int x0, int y0, SplashClip *clip, SplashClipResult *clipRes) { - SplashGlyphBitmap bitmap2; - int size; - Guchar *p; - int i, j, k; - - // no fractional coordinates for large glyphs or non-anti-aliased - // glyphs - if (!aa || glyphH > 50) { - xFrac = yFrac = 0; - } - - // check the cache - i = (c & (cacheSets - 1)) * cacheAssoc; - for (j = 0; j < cacheAssoc; ++j) { - if ((cacheTags[i+j].mru & 0x80000000) && - cacheTags[i+j].c == c && - (int)cacheTags[i+j].xFrac == xFrac && - (int)cacheTags[i+j].yFrac == yFrac) { - bitmap->x = cacheTags[i+j].x; - bitmap->y = cacheTags[i+j].y; - bitmap->w = cacheTags[i+j].w; - bitmap->h = cacheTags[i+j].h; - for (k = 0; k < cacheAssoc; ++k) { - if (k != j && - (cacheTags[i+k].mru & 0x7fffffff) < - (cacheTags[i+j].mru & 0x7fffffff)) { - ++cacheTags[i+k].mru; - } - } - cacheTags[i+j].mru = 0x80000000; - bitmap->aa = aa; - bitmap->data = cache + (i+j) * glyphSize; - bitmap->freeData = gFalse; - - *clipRes = clip->testRect(x0 - bitmap->x, - y0 - bitmap->y, - x0 - bitmap->x + bitmap->w - 1, - y0 - bitmap->y + bitmap->h - 1); - - return gTrue; - } - } - - // generate the glyph bitmap - if (!makeGlyph(c, xFrac, yFrac, &bitmap2, x0, y0, clip, clipRes)) { - return gFalse; - } - - if (*clipRes == splashClipAllOutside) - { - bitmap->freeData = gFalse; - if (bitmap2.freeData) gfree(bitmap2.data); - return gTrue; - } - - // if the glyph doesn't fit in the bounding box, return a temporary - // uncached bitmap - if (bitmap2.w > glyphW || bitmap2.h > glyphH) { - *bitmap = bitmap2; - return gTrue; - } - - // insert glyph pixmap in cache - if (aa) { - size = bitmap2.w * bitmap2.h; - } else { - size = ((bitmap2.w + 7) >> 3) * bitmap2.h; - } - p = NULL; // make gcc happy - if (cacheAssoc == 0) - { - // we had problems on the malloc of the cache, so ignore it - *bitmap = bitmap2; - } - else - { - for (j = 0; j < cacheAssoc; ++j) { - if ((cacheTags[i+j].mru & 0x7fffffff) == cacheAssoc - 1) { - cacheTags[i+j].mru = 0x80000000; - cacheTags[i+j].c = c; - cacheTags[i+j].xFrac = (short)xFrac; - cacheTags[i+j].yFrac = (short)yFrac; - cacheTags[i+j].x = bitmap2.x; - cacheTags[i+j].y = bitmap2.y; - cacheTags[i+j].w = bitmap2.w; - cacheTags[i+j].h = bitmap2.h; - p = cache + (i+j) * glyphSize; - memcpy(p, bitmap2.data, size); - } else { - ++cacheTags[i+j].mru; - } - } - *bitmap = bitmap2; - bitmap->data = p; - bitmap->freeData = gFalse; - if (bitmap2.freeData) { - gfree(bitmap2.data); - } - } - return gTrue; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFont.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFont.h deleted file mode 100644 index 78b00d2dcaf..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFont.h +++ /dev/null @@ -1,121 +0,0 @@ -//======================================================================== -// -// SplashFont.h -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2007-2008 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#ifndef SPLASHFONT_H -#define SPLASHFONT_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include "goo/gtypes.h" -#include "SplashTypes.h" -#include "SplashClip.h" - -struct SplashGlyphBitmap; -struct SplashFontCacheTag; -class SplashFontFile; -class SplashPath; - -//------------------------------------------------------------------------ - -// Fractional positioning uses this many bits to the right of the -// decimal points. -#define splashFontFractionBits 2 -#define splashFontFraction (1 << splashFontFractionBits) -#define splashFontFractionMul \ - ((SplashCoord)1 / (SplashCoord)splashFontFraction) - -//------------------------------------------------------------------------ -// SplashFont -//------------------------------------------------------------------------ - -class SplashFont { -public: - - SplashFont(SplashFontFile *fontFileA, SplashCoord *matA, - SplashCoord *textMatA, GBool aaA); - - // This must be called after the constructor, so that the subclass - // constructor has a chance to compute the bbox. - void initCache(); - - virtual ~SplashFont(); - - SplashFontFile *getFontFile() { return fontFile; } - - // Return true if <this> matches the specified font file and matrix. - GBool matches(SplashFontFile *fontFileA, SplashCoord *matA, - SplashCoord *textMatA) { - return fontFileA == fontFile && - matA[0] == mat[0] && matA[1] == mat[1] && - matA[2] == mat[2] && matA[3] == mat[3] && - textMatA[0] == textMat[0] && textMatA[1] == textMat[1] && - textMatA[2] == textMat[2] && textMatA[3] == textMat[3]; - } - - // Get a glyph - this does a cache lookup first, and if not found, - // creates a new bitmap and adds it to the cache. The <xFrac> and - // <yFrac> values are splashFontFractionBits bits each, representing - // the numerators of fractions in [0, 1), where the denominator is - // splashFontFraction = 1 << splashFontFractionBits. Subclasses - // should override this to zero out xFrac and/or yFrac if they don't - // support fractional coordinates. - virtual GBool getGlyph(int c, int xFrac, int yFrac, - SplashGlyphBitmap *bitmap, int x0, int y0, SplashClip *clip, SplashClipResult *clipRes); - - // Rasterize a glyph. The <xFrac> and <yFrac> values are the same - // as described for getGlyph. - virtual GBool makeGlyph(int c, int xFrac, int yFrac, - SplashGlyphBitmap *bitmap, int x0, int y0, SplashClip *clip, SplashClipResult *clipRes) = 0; - - // Return the path for a glyph. - virtual SplashPath *getGlyphPath(int c) = 0; - - // Return the advance of a glyph. (in 0..1 range) - // < 0 means not known - virtual double getGlyphAdvance(int c) { return -1; } - - // Return the font transform matrix. - SplashCoord *getMatrix() { return mat; } - - // Return the glyph bounding box. - void getBBox(int *xMinA, int *yMinA, int *xMaxA, int *yMaxA) - { *xMinA = xMin; *yMinA = yMin; *xMaxA = xMax; *yMaxA = yMax; } - -protected: - - SplashFontFile *fontFile; - SplashCoord mat[4]; // font transform matrix - // (text space -> device space) - SplashCoord textMat[4]; // text transform matrix - // (text space -> user space) - GBool aa; // anti-aliasing - int xMin, yMin, xMax, yMax; // glyph bounding box - Guchar *cache; // glyph bitmap cache - SplashFontCacheTag * // cache tags - cacheTags; - int glyphW, glyphH; // size of glyph bitmaps - int glyphSize; // size of glyph bitmaps, in bytes - int cacheSets; // number of sets in cache - int cacheAssoc; // cache associativity (glyphs per set) -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontEngine.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontEngine.cc deleted file mode 100644 index 3c96bfbf1d5..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontEngine.cc +++ /dev/null @@ -1,327 +0,0 @@ -//======================================================================== -// -// SplashFontEngine.cc -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Takashi Iwai <tiwai@suse.de> -// Copyright (C) 2009 Petr Gajdos <pgajdos@novell.com> -// Copyright (C) 2009 Kovid Goyal <kovid@kovidgoyal.net> -// Copyright (C) 2009 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include <config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#if HAVE_T1LIB_H -#include <t1lib.h> -#endif - -#include <stdlib.h> -#include <stdio.h> -#ifdef HAVE_UNISTD_H -# include <unistd.h> -#endif -#include "goo/gmem.h" -#include "goo/GooString.h" -#include "SplashMath.h" -#include "SplashT1FontEngine.h" -#include "SplashFTFontEngine.h" -#include "SplashFontFile.h" -#include "SplashFontFileID.h" -#include "SplashFont.h" -#include "SplashFontEngine.h" - -#ifdef VMS -#if (__VMS_VER < 70000000) -extern "C" int unlink(char *filename); -#endif -#endif - -#ifdef VMS -#if (__VMS_VER < 70000000) -extern "C" int unlink(char *filename); -#endif -#endif - -//------------------------------------------------------------------------ -// SplashFontEngine -//------------------------------------------------------------------------ - -SplashFontEngine::SplashFontEngine( -#if HAVE_T1LIB_H - GBool enableT1lib, -#endif -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - GBool enableFreeType, - GBool enableFreeTypeHinting, -#endif - GBool aa) { - int i; - - for (i = 0; i < splashFontCacheSize; ++i) { - fontCache[i] = NULL; - } - -#if HAVE_T1LIB_H - if (enableT1lib) { - t1Engine = SplashT1FontEngine::init(aa); - } else { - t1Engine = NULL; - } -#endif -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - if (enableFreeType) { - ftEngine = SplashFTFontEngine::init(aa, enableFreeTypeHinting); - } else { - ftEngine = NULL; - } -#endif -} - -SplashFontEngine::~SplashFontEngine() { - int i; - - for (i = 0; i < splashFontCacheSize; ++i) { - if (fontCache[i]) { - delete fontCache[i]; - } - } - -#if HAVE_T1LIB_H - if (t1Engine) { - delete t1Engine; - } -#endif -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - if (ftEngine) { - delete ftEngine; - } -#endif -} - -SplashFontFile *SplashFontEngine::getFontFile(SplashFontFileID *id) { - SplashFontFile *fontFile; - int i; - - for (i = 0; i < splashFontCacheSize; ++i) { - if (fontCache[i]) { - fontFile = fontCache[i]->getFontFile(); - if (fontFile && fontFile->getID()->matches(id)) { - return fontFile; - } - } - } - return NULL; -} - -SplashFontFile *SplashFontEngine::loadType1Font(SplashFontFileID *idA, - SplashFontSrc *src, - char **enc) { - SplashFontFile *fontFile; - - fontFile = NULL; -#if HAVE_T1LIB_H - if (!fontFile && t1Engine) { - fontFile = t1Engine->loadType1Font(idA, src, enc); - } -#endif -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - if (!fontFile && ftEngine) { - fontFile = ftEngine->loadType1Font(idA, src, enc); - } -#endif - -#ifndef _WIN32 - // delete the (temporary) font file -- with Unix hard link - // semantics, this will remove the last link; otherwise it will - // return an error, leaving the file to be deleted later (if - // loadXYZFont failed, the file will always be deleted) - if (src->isFile) - src->unref(); -#endif - - return fontFile; -} - -SplashFontFile *SplashFontEngine::loadType1CFont(SplashFontFileID *idA, - SplashFontSrc *src, - char **enc) { - SplashFontFile *fontFile; - - fontFile = NULL; -#if HAVE_T1LIB_H - if (!fontFile && t1Engine) { - fontFile = t1Engine->loadType1CFont(idA, src, enc); - } -#endif -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - if (!fontFile && ftEngine) { - fontFile = ftEngine->loadType1CFont(idA, src, enc); - } -#endif - -#ifndef _WIN32 - // delete the (temporary) font file -- with Unix hard link - // semantics, this will remove the last link; otherwise it will - // return an error, leaving the file to be deleted later (if - // loadXYZFont failed, the file will always be deleted) - if (src->isFile) - src->unref(); -#endif - - return fontFile; -} - -SplashFontFile *SplashFontEngine::loadOpenTypeT1CFont(SplashFontFileID *idA, - SplashFontSrc *src, - char **enc) { - SplashFontFile *fontFile; - - fontFile = NULL; -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - if (!fontFile && ftEngine) { - fontFile = ftEngine->loadOpenTypeT1CFont(idA, src, enc); - } -#endif - - // delete the (temporary) font file -- with Unix hard link - // semantics, this will remove the last link; otherwise it will - // return an error, leaving the file to be deleted later (if - // loadXYZFont failed, the file will always be deleted) - if (src->isFile) - src->unref(); - - return fontFile; -} - -SplashFontFile *SplashFontEngine::loadCIDFont(SplashFontFileID *idA, - SplashFontSrc *src) { - SplashFontFile *fontFile; - - fontFile = NULL; -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - if (!fontFile && ftEngine) { - fontFile = ftEngine->loadCIDFont(idA, src); - } -#endif - -#ifndef _WIN32 - // delete the (temporary) font file -- with Unix hard link - // semantics, this will remove the last link; otherwise it will - // return an error, leaving the file to be deleted later (if - // loadXYZFont failed, the file will always be deleted) - if (src->isFile) - src->unref(); -#endif - - return fontFile; -} - -SplashFontFile *SplashFontEngine::loadOpenTypeCFFFont(SplashFontFileID *idA, - SplashFontSrc *src) { - SplashFontFile *fontFile; - - fontFile = NULL; -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - if (!fontFile && ftEngine) { - fontFile = ftEngine->loadOpenTypeCFFFont(idA, src); - } -#endif - - // delete the (temporary) font file -- with Unix hard link - // semantics, this will remove the last link; otherwise it will - // return an error, leaving the file to be deleted later (if - // loadXYZFont failed, the file will always be deleted) - if (src->isFile) - src->unref(); - - return fontFile; -} - -SplashFontFile *SplashFontEngine::loadTrueTypeFont(SplashFontFileID *idA, - SplashFontSrc *src, - Gushort *codeToGID, - int codeToGIDLen, - int faceIndex) { - SplashFontFile *fontFile; - - fontFile = NULL; -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - if (!fontFile && ftEngine) { - fontFile = ftEngine->loadTrueTypeFont(idA, src, - codeToGID, codeToGIDLen, faceIndex); - } -#endif - - if (!fontFile) { - gfree(codeToGID); - } - -#ifndef _WIN32 - // delete the (temporary) font file -- with Unix hard link - // semantics, this will remove the last link; otherwise it will - // return an error, leaving the file to be deleted later (if - // loadXYZFont failed, the file will always be deleted) - if (src->isFile) - src->unref(); -#endif - - return fontFile; -} - -SplashFont *SplashFontEngine::getFont(SplashFontFile *fontFile, - SplashCoord *textMat, - SplashCoord *ctm) { - SplashCoord mat[4]; - SplashFont *font; - int i, j; - - mat[0] = textMat[0] * ctm[0] + textMat[1] * ctm[2]; - mat[1] = -(textMat[0] * ctm[1] + textMat[1] * ctm[3]); - mat[2] = textMat[2] * ctm[0] + textMat[3] * ctm[2]; - mat[3] = -(textMat[2] * ctm[1] + textMat[3] * ctm[3]); - if (splashAbs(mat[0] * mat[3] - mat[1] * mat[2]) < 0.01) { - // avoid a singular (or close-to-singular) matrix - mat[0] = 0.01; mat[1] = 0; - mat[2] = 0; mat[3] = 0.01; - } - - font = fontCache[0]; - if (font && font->matches(fontFile, mat, textMat)) { - return font; - } - for (i = 1; i < splashFontCacheSize; ++i) { - font = fontCache[i]; - if (font && font->matches(fontFile, mat, textMat)) { - for (j = i; j > 0; --j) { - fontCache[j] = fontCache[j-1]; - } - fontCache[0] = font; - return font; - } - } - font = fontFile->makeFont(mat, textMat); - if (fontCache[splashFontCacheSize - 1]) { - delete fontCache[splashFontCacheSize - 1]; - } - for (j = splashFontCacheSize - 1; j > 0; --j) { - fontCache[j] = fontCache[j-1]; - } - fontCache[0] = font; - return font; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontEngine.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontEngine.h deleted file mode 100644 index a9d51f0673d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontEngine.h +++ /dev/null @@ -1,101 +0,0 @@ -//======================================================================== -// -// SplashFontEngine.h -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Takashi Iwai <tiwai@suse.de> -// Copyright (C) 2009 Petr Gajdos <pgajdos@novell.com> -// Copyright (C) 2009 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#ifndef SPLASHFONTENGINE_H -#define SPLASHFONTENGINE_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include "goo/gtypes.h" - -class SplashT1FontEngine; -class SplashFTFontEngine; -class SplashDTFontEngine; -class SplashDT4FontEngine; -class SplashFontFile; -class SplashFontFileID; -class SplashFont; -class SplashFontSrc; - -//------------------------------------------------------------------------ - -#define splashFontCacheSize 16 - -//------------------------------------------------------------------------ -// SplashFontEngine -//------------------------------------------------------------------------ - -class SplashFontEngine { -public: - - // Create a font engine. - SplashFontEngine( -#if HAVE_T1LIB_H - GBool enableT1lib, -#endif -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - GBool enableFreeType, - GBool enableFreeTypeHinting, -#endif - GBool aa); - - ~SplashFontEngine(); - - // Get a font file from the cache. Returns NULL if there is no - // matching entry in the cache. - SplashFontFile *getFontFile(SplashFontFileID *id); - - // Load fonts - these create new SplashFontFile objects. - SplashFontFile *loadType1Font(SplashFontFileID *idA, SplashFontSrc *src, char **enc); - SplashFontFile *loadType1CFont(SplashFontFileID *idA, SplashFontSrc *src, char **enc); - SplashFontFile *loadOpenTypeT1CFont(SplashFontFileID *idA, SplashFontSrc *src, char **enc); - SplashFontFile *loadCIDFont(SplashFontFileID *idA, SplashFontSrc *src); - SplashFontFile *loadOpenTypeCFFFont(SplashFontFileID *idA, SplashFontSrc *src); - SplashFontFile *loadTrueTypeFont(SplashFontFileID *idA, SplashFontSrc *src, - Gushort *codeToGID, int codeToGIDLen, int faceIndex = 0); - - // Get a font - this does a cache lookup first, and if not found, - // creates a new SplashFont object and adds it to the cache. The - // matrix, mat = textMat * ctm: - // [ mat[0] mat[1] ] - // [ mat[2] mat[3] ] - // specifies the font transform in PostScript style: - // [x' y'] = [x y] * mat - // Note that the Splash y axis points downward. - SplashFont *getFont(SplashFontFile *fontFile, - SplashCoord *textMat, SplashCoord *ctm); - -private: - - SplashFont *fontCache[splashFontCacheSize]; - -#if HAVE_T1LIB_H - SplashT1FontEngine *t1Engine; -#endif -#if HAVE_FREETYPE_FREETYPE_H || HAVE_FREETYPE_H - SplashFTFontEngine *ftEngine; -#endif -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontFile.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontFile.cc deleted file mode 100644 index 68e8608b6a7..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontFile.cc +++ /dev/null @@ -1,124 +0,0 @@ -//======================================================================== -// -// SplashFontFile.cc -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Takashi Iwai <tiwai@suse.de> -// Copyright (C) 2008 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include <config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <stdio.h> -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif -#include "goo/gmem.h" -#include "goo/GooString.h" -#include "SplashFontFile.h" -#include "SplashFontFileID.h" - -#ifdef VMS -#if (__VMS_VER < 70000000) -extern "C" int unlink(char *filename); -#endif -#endif - -//------------------------------------------------------------------------ -// SplashFontFile -//------------------------------------------------------------------------ - -SplashFontFile::SplashFontFile(SplashFontFileID *idA, SplashFontSrc *srcA) { - id = idA; - src = srcA; - src->ref(); - refCnt = 0; - doAdjustMatrix = gFalse; -} - -SplashFontFile::~SplashFontFile() { - src->unref(); - delete id; -} - -void SplashFontFile::incRefCnt() { - ++refCnt; -} - -void SplashFontFile::decRefCnt() { - if (!--refCnt) { - delete this; - } -} - -// - -SplashFontSrc::SplashFontSrc() { - isFile = gFalse; - deleteSrc = gFalse; - fileName = NULL; - buf = NULL; - refcnt = 1; -} - -SplashFontSrc::~SplashFontSrc() { - if (deleteSrc) { - if (isFile) { - if (fileName) - unlink(fileName->getCString()); - } else { - if (buf) - gfree(buf); - } - } - - if (isFile && fileName) - delete fileName; -} - -void SplashFontSrc::ref() { - refcnt++; -} - -void SplashFontSrc::unref() { - if (! --refcnt) - delete this; -} - -void SplashFontSrc::setFile(GooString *file, GBool del) -{ - isFile = gTrue; - fileName = file->copy(); - deleteSrc = del; -} - -void SplashFontSrc::setFile(const char *file, GBool del) -{ - isFile = gTrue; - fileName = new GooString(file); - deleteSrc = del; -} - -void SplashFontSrc::setBuf(char *bufA, int bufLenA, GBool del) -{ - isFile = gFalse; - buf = bufA; - bufLen = bufLenA; - deleteSrc = del; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontFile.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontFile.h deleted file mode 100644 index f2b457099df..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontFile.h +++ /dev/null @@ -1,93 +0,0 @@ -//======================================================================== -// -// SplashFontFile.h -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Takashi Iwai <tiwai@suse.de> -// Copyright (C) 2008 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#ifndef SPLASHFONTFILE_H -#define SPLASHFONTFILE_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include "goo/gtypes.h" -#include "SplashTypes.h" - -class GooString; -class SplashFontEngine; -class SplashFont; -class SplashFontFileID; - -//------------------------------------------------------------------------ -// SplashFontFile -//------------------------------------------------------------------------ - -class SplashFontSrc { -public: - SplashFontSrc(); - ~SplashFontSrc(); - - void setFile(GooString *file, GBool del); - void setFile(const char *file, GBool del); - void setBuf(char *bufA, int buflenA, GBool del); - - void ref(); - void unref(); - - GBool isFile; - GooString *fileName; - char *buf; - int bufLen; - GBool deleteSrc; - int refcnt; -}; - -class SplashFontFile { -public: - - virtual ~SplashFontFile(); - - // Create a new SplashFont, i.e., a scaled instance of this font - // file. - virtual SplashFont *makeFont(SplashCoord *mat, SplashCoord *textMat) = 0; - - // Get the font file ID. - SplashFontFileID *getID() { return id; } - - // Increment the reference count. - void incRefCnt(); - - // Decrement the reference count. If the new value is zero, delete - // the SplashFontFile object. - void decRefCnt(); - - GBool doAdjustMatrix; - -protected: - - SplashFontFile(SplashFontFileID *idA, SplashFontSrc *srcA); - - SplashFontFileID *id; - SplashFontSrc *src; - int refCnt; - - friend class SplashFontEngine; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontFileID.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontFileID.cc deleted file mode 100644 index a66dabf61e3..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontFileID.cc +++ /dev/null @@ -1,23 +0,0 @@ -//======================================================================== -// -// SplashFontFileID.cc -// -//======================================================================== - -#include <config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include "SplashFontFileID.h" - -//------------------------------------------------------------------------ -// SplashFontFileID -//------------------------------------------------------------------------ - -SplashFontFileID::SplashFontFileID() { -} - -SplashFontFileID::~SplashFontFileID() { -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontFileID.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontFileID.h deleted file mode 100644 index cfd89ebb56a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashFontFileID.h +++ /dev/null @@ -1,28 +0,0 @@ -//======================================================================== -// -// SplashFontFileID.h -// -//======================================================================== - -#ifndef SPLASHFONTFILEID_H -#define SPLASHFONTFILEID_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include "goo/gtypes.h" - -//------------------------------------------------------------------------ -// SplashFontFileID -//------------------------------------------------------------------------ - -class SplashFontFileID { -public: - - SplashFontFileID(); - virtual ~SplashFontFileID(); - virtual GBool matches(SplashFontFileID *id) = 0; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashGlyphBitmap.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashGlyphBitmap.h deleted file mode 100644 index c062c106e6a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashGlyphBitmap.h +++ /dev/null @@ -1,24 +0,0 @@ -//======================================================================== -// -// SplashGlyphBitmap.h -// -//======================================================================== - -#ifndef SPLASHGLYPHBITMAP_H -#define SPLASHGLYPHBITMAP_H - -#include "goo/gtypes.h" - -//------------------------------------------------------------------------ -// SplashGlyphBitmap -//------------------------------------------------------------------------ - -struct SplashGlyphBitmap { - int x, y, w, h; // offset and size of glyph - GBool aa; // anti-aliased: true means 8-bit alpha - // bitmap; false means 1-bit - Guchar *data; // bitmap data - GBool freeData; // true if data memory should be freed -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashMath.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashMath.h deleted file mode 100644 index 7a8c8e31d1f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashMath.h +++ /dev/null @@ -1,88 +0,0 @@ -//======================================================================== -// -// SplashMath.h -// -//======================================================================== - -#ifndef SPLASHMATH_H -#define SPLASHMATH_H - -#if USE_FIXEDPOINT -#include "goo/FixedPoint.h" -#else -#include <math.h> -#endif -#include "SplashTypes.h" - -static inline SplashCoord splashAbs(SplashCoord x) { -#if USE_FIXEDPOINT - return FixedPoint::abs(x); -#else - return fabs(x); -#endif -} - -static inline int splashFloor(SplashCoord x) { - #if USE_FIXEDPOINT - return FixedPoint::floor(x); - #else - return (int)floor(x); - #endif -} - -static inline int splashCeil(SplashCoord x) { -#if USE_FIXEDPOINT - return FixedPoint::ceil(x); -#else - return (int)ceil(x); -#endif -} - -static inline int splashRound(SplashCoord x) { -#if USE_FIXEDPOINT - return FixedPoint::round(x); -#else - return (int)floor(x + 0.5); -#endif -} - -static inline SplashCoord splashSqrt(SplashCoord x) { -#if USE_FIXEDPOINT - return FixedPoint::sqrt(x); -#else - return sqrt(x); -#endif -} - -static inline SplashCoord splashPow(SplashCoord x, SplashCoord y) { -#if USE_FIXEDPOINT - return FixedPoint::pow(x, y); -#else - return pow(x, y); -#endif -} - -static inline SplashCoord splashDist(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1) { - SplashCoord dx, dy; - dx = x1 - x0; - dy = y1 - y0; -#if USE_FIXEDPOINT - // this handles the situation where dx*dx or dy*dy is too large to - // fit in the 16.16 fixed point format - SplashCoord dxa, dya; - dxa = splashAbs(dx); - dya = splashAbs(dy); - if (dxa == 0 && dya == 0) { - return 0; - } else if (dxa > dya) { - return dxa * FixedPoint::sqrt(dya / dxa + 1); - } else { - return dya * FixedPoint::sqrt(dxa / dya + 1); - } -#else - return sqrt(dx * dx + dy * dy); -#endif -} - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashPath.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashPath.cc deleted file mode 100644 index 261f77883cd..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashPath.cc +++ /dev/null @@ -1,184 +0,0 @@ -//======================================================================== -// -// SplashPath.cc -// -//======================================================================== - -#include <config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <string.h> -#include "goo/gmem.h" -#include "SplashErrorCodes.h" -#include "SplashPath.h" - -//------------------------------------------------------------------------ -// SplashPath -//------------------------------------------------------------------------ - -// A path can be in three possible states: -// -// 1. no current point -- zero or more finished subpaths -// [curSubpath == length] -// -// 2. one point in subpath -// [curSubpath == length - 1] -// -// 3. open subpath with two or more points -// [curSubpath < length - 1] - -SplashPath::SplashPath() { - pts = NULL; - flags = NULL; - length = size = 0; - curSubpath = 0; - hints = NULL; - hintsLength = hintsSize = 0; -} - -SplashPath::SplashPath(SplashPath *path) { - length = path->length; - size = path->size; - pts = (SplashPathPoint *)gmallocn(size, sizeof(SplashPathPoint)); - flags = (Guchar *)gmallocn(size, sizeof(Guchar)); - memcpy(pts, path->pts, length * sizeof(SplashPathPoint)); - memcpy(flags, path->flags, length * sizeof(Guchar)); - curSubpath = path->curSubpath; - if (path->hints) { - hintsLength = hintsSize = path->hintsLength; - hints = (SplashPathHint *)gmallocn(hintsSize, sizeof(SplashPathHint)); - memcpy(hints, path->hints, hintsLength * sizeof(SplashPathHint)); - } else { - hints = NULL; - } -} - -SplashPath::~SplashPath() { - gfree(pts); - gfree(flags); - gfree(hints); -} - -// Add space for <nPts> more points. -void SplashPath::grow(int nPts) { - if (length + nPts > size) { - if (size == 0) { - size = 32; - } - while (size < length + nPts) { - size *= 2; - } - pts = (SplashPathPoint *)greallocn(pts, size, sizeof(SplashPathPoint)); - flags = (Guchar *)greallocn(flags, size, sizeof(Guchar)); - } -} - -void SplashPath::append(SplashPath *path) { - int i; - - curSubpath = length + path->curSubpath; - grow(path->length); - for (i = 0; i < path->length; ++i) { - pts[length] = path->pts[i]; - flags[length] = path->flags[i]; - ++length; - } -} - -SplashError SplashPath::moveTo(SplashCoord x, SplashCoord y) { - if (onePointSubpath()) { - return splashErrBogusPath; - } - grow(1); - pts[length].x = x; - pts[length].y = y; - flags[length] = splashPathFirst | splashPathLast; - curSubpath = length++; - return splashOk; -} - -SplashError SplashPath::lineTo(SplashCoord x, SplashCoord y) { - if (noCurrentPoint()) { - return splashErrNoCurPt; - } - flags[length-1] &= ~splashPathLast; - grow(1); - pts[length].x = x; - pts[length].y = y; - flags[length] = splashPathLast; - ++length; - return splashOk; -} - -SplashError SplashPath::curveTo(SplashCoord x1, SplashCoord y1, - SplashCoord x2, SplashCoord y2, - SplashCoord x3, SplashCoord y3) { - if (noCurrentPoint()) { - return splashErrNoCurPt; - } - flags[length-1] &= ~splashPathLast; - grow(3); - pts[length].x = x1; - pts[length].y = y1; - flags[length] = splashPathCurve; - ++length; - pts[length].x = x2; - pts[length].y = y2; - flags[length] = splashPathCurve; - ++length; - pts[length].x = x3; - pts[length].y = y3; - flags[length] = splashPathLast; - ++length; - return splashOk; -} - -SplashError SplashPath::close() { - if (noCurrentPoint()) { - return splashErrNoCurPt; - } - if (curSubpath == length - 1 || - pts[length - 1].x != pts[curSubpath].x || - pts[length - 1].y != pts[curSubpath].y) { - lineTo(pts[curSubpath].x, pts[curSubpath].y); - } - flags[curSubpath] |= splashPathClosed; - flags[length - 1] |= splashPathClosed; - curSubpath = length; - return splashOk; -} - -void SplashPath::addStrokeAdjustHint(int ctrl0, int ctrl1, - int firstPt, int lastPt) { - if (hintsLength == hintsSize) { - hintsSize = hintsLength ? 2 * hintsLength : 8; - hints = (SplashPathHint *)greallocn(hints, hintsSize, - sizeof(SplashPathHint)); - } - hints[hintsLength].ctrl0 = ctrl0; - hints[hintsLength].ctrl1 = ctrl1; - hints[hintsLength].firstPt = firstPt; - hints[hintsLength].lastPt = lastPt; - ++hintsLength; -} - -void SplashPath::offset(SplashCoord dx, SplashCoord dy) { - int i; - - for (i = 0; i < length; ++i) { - pts[i].x += dx; - pts[i].y += dy; - } -} - -GBool SplashPath::getCurPt(SplashCoord *x, SplashCoord *y) { - if (noCurrentPoint()) { - return gFalse; - } - *x = pts[length - 1].x; - *y = pts[length - 1].y; - return gTrue; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashPath.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashPath.h deleted file mode 100644 index 991e11438f3..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashPath.h +++ /dev/null @@ -1,121 +0,0 @@ -//======================================================================== -// -// SplashPath.h -// -//======================================================================== - -#ifndef SPLASHPATH_H -#define SPLASHPATH_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include "SplashTypes.h" - -//------------------------------------------------------------------------ -// SplashPathPoint -//------------------------------------------------------------------------ - -struct SplashPathPoint { - SplashCoord x, y; -}; - -//------------------------------------------------------------------------ -// SplashPath.flags -//------------------------------------------------------------------------ - -// first point on each subpath sets this flag -#define splashPathFirst 0x01 - -// last point on each subpath sets this flag -#define splashPathLast 0x02 - -// if the subpath is closed, its first and last points must be -// identical, and must set this flag -#define splashPathClosed 0x04 - -// curve control points set this flag -#define splashPathCurve 0x08 - -//------------------------------------------------------------------------ -// SplashPathHint -//------------------------------------------------------------------------ - -struct SplashPathHint { - int ctrl0, ctrl1; - int firstPt, lastPt; -}; - -//------------------------------------------------------------------------ -// SplashPath -//------------------------------------------------------------------------ - -class SplashPath { -public: - - // Create an empty path. - SplashPath(); - - // Copy a path. - SplashPath *copy() { return new SplashPath(this); } - - ~SplashPath(); - - // Append <path> to <this>. - void append(SplashPath *path); - - // Start a new subpath. - SplashError moveTo(SplashCoord x, SplashCoord y); - - // Add a line segment to the last subpath. - SplashError lineTo(SplashCoord x, SplashCoord y); - - // Add a third-order (cubic) Bezier curve segment to the last - // subpath. - SplashError curveTo(SplashCoord x1, SplashCoord y1, - SplashCoord x2, SplashCoord y2, - SplashCoord x3, SplashCoord y3); - - // Close the last subpath, adding a line segment if necessary. - SplashError close(); - - // Add a stroke adjustment hint. The controlling segments are - // <ctrl0> and <ctrl1> (where segments are identified by their first - // point), and the points to be adjusted are <firstPt> .. <lastPt>. - void addStrokeAdjustHint(int ctrl0, int ctrl1, int firstPt, int lastPt); - - // Add (<dx>, <dy>) to every point on this path. - void offset(SplashCoord dx, SplashCoord dy); - - // Get the points on the path. - int getLength() { return length; } - void getPoint(int i, double *x, double *y, Guchar *f) - { *x = pts[i].x; *y = pts[i].y; *f = flags[i]; } - - // Get the current point. - GBool getCurPt(SplashCoord *x, SplashCoord *y); - -protected: - - SplashPath(SplashPath *path); - void grow(int nPts); - GBool noCurrentPoint() { return curSubpath == length; } - GBool onePointSubpath() { return curSubpath == length - 1; } - GBool openSubpath() { return curSubpath < length - 1; } - - SplashPathPoint *pts; // array of points - Guchar *flags; // array of flags - int length, size; // length/size of the pts and flags arrays - int curSubpath; // index of first point in last subpath - - SplashPathHint *hints; // list of hints - int hintsLength, hintsSize; - - friend class SplashXPath; - friend class Splash; - // this is a temporary hack, until we read FreeType paths directly - friend class ArthurOutputDev; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashPattern.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashPattern.cc deleted file mode 100644 index ce490785556..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashPattern.cc +++ /dev/null @@ -1,40 +0,0 @@ -//======================================================================== -// -// SplashPattern.cc -// -//======================================================================== - -#include <config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include "SplashMath.h" -#include "SplashScreen.h" -#include "SplashPattern.h" - -//------------------------------------------------------------------------ -// SplashPattern -//------------------------------------------------------------------------ - -SplashPattern::SplashPattern() { -} - -SplashPattern::~SplashPattern() { -} - -//------------------------------------------------------------------------ -// SplashSolidColor -//------------------------------------------------------------------------ - -SplashSolidColor::SplashSolidColor(SplashColorPtr colorA) { - splashColorCopy(color, colorA); -} - -SplashSolidColor::~SplashSolidColor() { -} - -void SplashSolidColor::getColor(int x, int y, SplashColorPtr c) { - splashColorCopy(c, color); -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashPattern.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashPattern.h deleted file mode 100644 index 4e3d9abbfc4..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashPattern.h +++ /dev/null @@ -1,63 +0,0 @@ -//======================================================================== -// -// SplashPattern.h -// -//======================================================================== - -#ifndef SPLASHPATTERN_H -#define SPLASHPATTERN_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include "SplashTypes.h" - -class SplashScreen; - -//------------------------------------------------------------------------ -// SplashPattern -//------------------------------------------------------------------------ - -class SplashPattern { -public: - - SplashPattern(); - - virtual SplashPattern *copy() = 0; - - virtual ~SplashPattern(); - - // Return the color value for a specific pixel. - virtual void getColor(int x, int y, SplashColorPtr c) = 0; - - // Returns true if this pattern object will return the same color - // value for all pixels. - virtual GBool isStatic() = 0; - -private: -}; - -//------------------------------------------------------------------------ -// SplashSolidColor -//------------------------------------------------------------------------ - -class SplashSolidColor: public SplashPattern { -public: - - SplashSolidColor(SplashColorPtr colorA); - - virtual SplashPattern *copy() { return new SplashSolidColor(color); } - - virtual ~SplashSolidColor(); - - virtual void getColor(int x, int y, SplashColorPtr c); - - virtual GBool isStatic() { return gTrue; } - -private: - - SplashColor color; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashScreen.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashScreen.cc deleted file mode 100644 index f6be968fb49..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashScreen.cc +++ /dev/null @@ -1,383 +0,0 @@ -//======================================================================== -// -// SplashScreen.cc -// -//======================================================================== - -#include <config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <stdlib.h> -#include <string.h> -#include "goo/gmem.h" -#include "SplashMath.h" -#include "SplashScreen.h" - -static SplashScreenParams defaultParams = { - splashScreenDispersed, // type - 2, // size - 2, // dotRadius - 1.0, // gamma - 0.0, // blackThreshold - 1.0 // whiteThreshold -}; - -//------------------------------------------------------------------------ - -struct SplashScreenPoint { - int x, y; - int dist; -}; - -static int cmpDistances(const void *p0, const void *p1) { - return ((SplashScreenPoint *)p0)->dist - ((SplashScreenPoint *)p1)->dist; -} - -//------------------------------------------------------------------------ -// SplashScreen -//------------------------------------------------------------------------ - -// If <clustered> is true, this generates a 45 degree screen using a -// circular dot spot function. DPI = resolution / ((size / 2) * -// sqrt(2)). If <clustered> is false, this generates an optimal -// threshold matrix using recursive tesselation. Gamma correction -// (gamma = 1 / 1.33) is also computed here. -SplashScreen::SplashScreen(SplashScreenParams *params) { - Guchar u, black, white; - int i; - - if (!params) { - params = &defaultParams; - } - - switch (params->type) { - - case splashScreenDispersed: - // size must be a power of 2 - for (size = 1; size < params->size; size <<= 1) ; - mat = (Guchar *)gmallocn(size * size, sizeof(Guchar)); - buildDispersedMatrix(size/2, size/2, 1, size/2, 1); - break; - - case splashScreenClustered: - // size must be even - size = (params->size >> 1) << 1; - if (size < 2) { - size = 2; - } - mat = (Guchar *)gmallocn(size * size, sizeof(Guchar)); - buildClusteredMatrix(); - break; - - case splashScreenStochasticClustered: - // size must be at least 2*r - if (params->size < 2 * params->dotRadius) { - size = 2 * params->dotRadius; - } else { - size = params->size; - } - mat = (Guchar *)gmallocn(size * size, sizeof(Guchar)); - buildSCDMatrix(params->dotRadius); - break; - } - - // do gamma correction and compute minVal/maxVal - minVal = 255; - maxVal = 0; - black = splashRound((SplashCoord)255.0 * params->blackThreshold); - if (black < 1) { - black = 1; - } - int whiteAux = splashRound((SplashCoord)255.0 * params->whiteThreshold); - if (whiteAux > 255) { - white = 255; - } else { - white = whiteAux; - } - for (i = 0; i < size * size; ++i) { - u = splashRound((SplashCoord)255.0 * - splashPow((SplashCoord)mat[i] / 255.0, params->gamma)); - if (u < black) { - u = black; - } else if (u >= white) { - u = white; - } - mat[i] = u; - if (u < minVal) { - minVal = u; - } else if (u > maxVal) { - maxVal = u; - } - } -} - -void SplashScreen::buildDispersedMatrix(int i, int j, int val, - int delta, int offset) { - if (delta == 0) { - // map values in [1, size^2] --> [1, 255] - mat[i * size + j] = 1 + (254 * (val - 1)) / (size * size - 1); - } else { - buildDispersedMatrix(i, j, - val, delta / 2, 4*offset); - buildDispersedMatrix((i + delta) % size, (j + delta) % size, - val + offset, delta / 2, 4*offset); - buildDispersedMatrix((i + delta) % size, j, - val + 2*offset, delta / 2, 4*offset); - buildDispersedMatrix((i + 2*delta) % size, (j + delta) % size, - val + 3*offset, delta / 2, 4*offset); - } -} - -void SplashScreen::buildClusteredMatrix() { - SplashCoord *dist; - SplashCoord u, v, d; - Guchar val; - int size2, x, y, x1, y1, i; - - size2 = size >> 1; - - // initialize the threshold matrix - for (y = 0; y < size; ++y) { - for (x = 0; x < size; ++x) { - mat[y * size + x] = 0; - } - } - - // build the distance matrix - dist = (SplashCoord *)gmallocn(size * size2, sizeof(SplashCoord)); - for (y = 0; y < size2; ++y) { - for (x = 0; x < size2; ++x) { - if (x + y < size2 - 1) { - u = (SplashCoord)x + 0.5 - 0; - v = (SplashCoord)y + 0.5 - 0; - } else { - u = (SplashCoord)x + 0.5 - (SplashCoord)size2; - v = (SplashCoord)y + 0.5 - (SplashCoord)size2; - } - dist[y * size2 + x] = u*u + v*v; - } - } - for (y = 0; y < size2; ++y) { - for (x = 0; x < size2; ++x) { - if (x < y) { - u = (SplashCoord)x + 0.5 - 0; - v = (SplashCoord)y + 0.5 - (SplashCoord)size2; - } else { - u = (SplashCoord)x + 0.5 - (SplashCoord)size2; - v = (SplashCoord)y + 0.5 - 0; - } - dist[(size2 + y) * size2 + x] = u*u + v*v; - } - } - - // build the threshold matrix - minVal = 1; - maxVal = 0; - x1 = y1 = 0; // make gcc happy - for (i = 0; i < size * size2; ++i) { - d = -1; - for (y = 0; y < size; ++y) { - for (x = 0; x < size2; ++x) { - if (mat[y * size + x] == 0 && - dist[y * size2 + x] > d) { - x1 = x; - y1 = y; - d = dist[y1 * size2 + x1]; - } - } - } - // map values in [0, 2*size*size2-1] --> [1, 255] - val = 1 + (254 * (2*i)) / (2*size*size2 - 1); - mat[y1 * size + x1] = val; - val = 1 + (254 * (2*i+1)) / (2*size*size2 - 1); - if (y1 < size2) { - mat[(y1 + size2) * size + x1 + size2] = val; - } else { - mat[(y1 - size2) * size + x1 + size2] = val; - } - } - - gfree(dist); -} - -// Compute the distance between two points on a toroid. -int SplashScreen::distance(int x0, int y0, int x1, int y1) { - int dx0, dx1, dx, dy0, dy1, dy; - - dx0 = abs(x0 - x1); - dx1 = size - dx0; - dx = dx0 < dx1 ? dx0 : dx1; - dy0 = abs(y0 - y1); - dy1 = size - dy0; - dy = dy0 < dy1 ? dy0 : dy1; - return dx * dx + dy * dy; -} - -// Algorithm taken from: -// Victor Ostromoukhov and Roger D. Hersch, "Stochastic Clustered-Dot -// Dithering" in Color Imaging: Device-Independent Color, Color -// Hardcopy, and Graphic Arts IV, SPIE Vol. 3648, pp. 496-505, 1999. -void SplashScreen::buildSCDMatrix(int r) { - SplashScreenPoint *dots, *pts; - int dotsLen, dotsSize; - char *tmpl; - char *grid; - int *region, *dist; - int x, y, xx, yy, x0, x1, y0, y1, i, j, d, iMin, dMin, n; - - //~ this should probably happen somewhere else - srand(123); - - // generate the random space-filling curve - pts = (SplashScreenPoint *)gmallocn(size * size, sizeof(SplashScreenPoint)); - i = 0; - for (y = 0; y < size; ++y) { - for (x = 0; x < size; ++x) { - pts[i].x = x; - pts[i].y = y; - ++i; - } - } - for (i = 0; i < size * size; ++i) { - j = i + (int)((double)(size * size - i) * - (double)rand() / ((double)RAND_MAX + 1.0)); - x = pts[i].x; - y = pts[i].y; - pts[i].x = pts[j].x; - pts[i].y = pts[j].y; - pts[j].x = x; - pts[j].y = y; - } - - // construct the circle template - tmpl = (char *)gmallocn((r+1)*(r+1), sizeof(char)); - for (y = 0; y <= r; ++y) { - for (x = 0; x <= r; ++x) { - tmpl[y*(r+1) + x] = (x * y <= r * r) ? 1 : 0; - } - } - - // mark all grid cells as free - grid = (char *)gmallocn(size * size, sizeof(char)); - for (y = 0; y < size; ++y) { - for (x = 0; x < size; ++x) { - grid[y*size + x] = 0; - } - } - - // walk the space-filling curve, adding dots - dotsLen = 0; - dotsSize = 32; - dots = (SplashScreenPoint *)gmallocn(dotsSize, sizeof(SplashScreenPoint)); - for (i = 0; i < size * size; ++i) { - x = pts[i].x; - y = pts[i].y; - if (!grid[y*size + x]) { - if (dotsLen == dotsSize) { - dotsSize *= 2; - dots = (SplashScreenPoint *)greallocn(dots, dotsSize, - sizeof(SplashScreenPoint)); - } - dots[dotsLen++] = pts[i]; - for (yy = 0; yy <= r; ++yy) { - y0 = (y + yy) % size; - y1 = (y - yy + size) % size; - for (xx = 0; xx <= r; ++xx) { - if (tmpl[yy*(r+1) + xx]) { - x0 = (x + xx) % size; - x1 = (x - xx + size) % size; - grid[y0*size + x0] = 1; - grid[y0*size + x1] = 1; - grid[y1*size + x0] = 1; - grid[y1*size + x1] = 1; - } - } - } - } - } - - gfree(tmpl); - gfree(grid); - - // assign each cell to a dot, compute distance to center of dot - region = (int *)gmallocn(size * size, sizeof(int)); - dist = (int *)gmallocn(size * size, sizeof(int)); - for (y = 0; y < size; ++y) { - for (x = 0; x < size; ++x) { - iMin = 0; - dMin = distance(dots[0].x, dots[0].y, x, y); - for (i = 1; i < dotsLen; ++i) { - d = distance(dots[i].x, dots[i].y, x, y); - if (d < dMin) { - iMin = i; - dMin = d; - } - } - region[y*size + x] = iMin; - dist[y*size + x] = dMin; - } - } - - // compute threshold values - for (i = 0; i < dotsLen; ++i) { - n = 0; - for (y = 0; y < size; ++y) { - for (x = 0; x < size; ++x) { - if (region[y*size + x] == i) { - pts[n].x = x; - pts[n].y = y; - pts[n].dist = distance(dots[i].x, dots[i].y, x, y); - ++n; - } - } - } - qsort(pts, n, sizeof(SplashScreenPoint), &cmpDistances); - for (j = 0; j < n; ++j) { - // map values in [0 .. n-1] --> [255 .. 1] - mat[pts[j].y * size + pts[j].x] = 255 - (254 * j) / (n - 1); - } - } - - gfree(pts); - gfree(region); - gfree(dist); - - gfree(dots); -} - -SplashScreen::SplashScreen(SplashScreen *screen) { - size = screen->size; - mat = (Guchar *)gmallocn(size * size, sizeof(Guchar)); - memcpy(mat, screen->mat, size * size * sizeof(Guchar)); - minVal = screen->minVal; - maxVal = screen->maxVal; -} - -SplashScreen::~SplashScreen() { - gfree(mat); -} - -int SplashScreen::test(int x, int y, Guchar value) { - int xx, yy; - - if (value < minVal) { - return 0; - } - if (value >= maxVal) { - return 1; - } - if ((xx = x % size) < 0) { - xx = -xx; - } - if ((yy = y % size) < 0) { - yy = -yy; - } - return value < mat[yy * size + xx] ? 0 : 1; -} - -GBool SplashScreen::isStatic(Guchar value) { - return value < minVal || value >= maxVal; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashScreen.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashScreen.h deleted file mode 100644 index 92639a561fc..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashScreen.h +++ /dev/null @@ -1,53 +0,0 @@ -//======================================================================== -// -// SplashScreen.h -// -//======================================================================== - -#ifndef SPLASHSCREEN_H -#define SPLASHSCREEN_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include "SplashTypes.h" - -//------------------------------------------------------------------------ -// SplashScreen -//------------------------------------------------------------------------ - -class SplashScreen { -public: - - SplashScreen(SplashScreenParams *params); - SplashScreen(SplashScreen *screen); - ~SplashScreen(); - - SplashScreen *copy() { return new SplashScreen(this); } - - // Return the computed pixel value (0=black, 1=white) for the gray - // level <value> at (<x>, <y>). - int test(int x, int y, Guchar value); - - // Returns true if value is above the white threshold or below the - // black threshold, i.e., if the corresponding halftone will be - // solid white or black. - GBool isStatic(Guchar value); - -private: - void buildDispersedMatrix(int i, int j, int val, - int delta, int offset); - void buildClusteredMatrix(); - int distance(int x0, int y0, int x1, int y1); - void buildSCDMatrix(int r); - - Guchar *mat; // threshold matrix - int size; // size of the threshold matrix - Guchar minVal; // any pixel value below minVal generates - // solid black - Guchar maxVal; // any pixel value above maxVal generates - // solid white -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashState.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashState.cc deleted file mode 100644 index b1fa2f566d6..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashState.cc +++ /dev/null @@ -1,182 +0,0 @@ -//======================================================================== -// -// SplashState.cc -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2009 Thomas Freitag <Thomas.Freitag@alfa.de> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include <config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <string.h> -#include "goo/gmem.h" -#include "SplashPattern.h" -#include "SplashScreen.h" -#include "SplashClip.h" -#include "SplashBitmap.h" -#include "SplashState.h" - -//------------------------------------------------------------------------ -// SplashState -//------------------------------------------------------------------------ - -// number of components in each color mode -int splashColorModeNComps[] = { - 1, 1, 3, 3, 4 -#if SPLASH_CMYK - ,4 -#endif -}; - -SplashState::SplashState(int width, int height, GBool vectorAntialias, - SplashScreenParams *screenParams) { - SplashColor color; - - matrix[0] = 1; matrix[1] = 0; - matrix[2] = 0; matrix[3] = 1; - matrix[4] = 0; matrix[5] = 0; - memset(&color, 0, sizeof(SplashColor)); - strokePattern = new SplashSolidColor(color); - fillPattern = new SplashSolidColor(color); - screen = new SplashScreen(screenParams); - blendFunc = NULL; - strokeAlpha = 1; - fillAlpha = 1; - lineWidth = 0; - lineCap = splashLineCapButt; - lineJoin = splashLineJoinMiter; - miterLimit = 10; - flatness = 1; - lineDash = NULL; - lineDashLength = 0; - lineDashPhase = 0; - strokeAdjust = gFalse; - clip = new SplashClip(0, 0, width - 0.001, height - 0.001, vectorAntialias); - softMask = NULL; - deleteSoftMask = gFalse; - inNonIsolatedGroup = gFalse; - next = NULL; -} - -SplashState::SplashState(int width, int height, GBool vectorAntialias, - SplashScreen *screenA) { - SplashColor color; - - matrix[0] = 1; matrix[1] = 0; - matrix[2] = 0; matrix[3] = 1; - matrix[4] = 0; matrix[5] = 0; - memset(&color, 0, sizeof(SplashColor)); - strokePattern = new SplashSolidColor(color); - fillPattern = new SplashSolidColor(color); - screen = screenA->copy(); - blendFunc = NULL; - strokeAlpha = 1; - fillAlpha = 1; - lineWidth = 0; - lineCap = splashLineCapButt; - lineJoin = splashLineJoinMiter; - miterLimit = 10; - flatness = 1; - lineDash = NULL; - lineDashLength = 0; - lineDashPhase = 0; - strokeAdjust = gFalse; - clip = new SplashClip(0, 0, width - 0.001, height - 0.001, vectorAntialias); - softMask = NULL; - deleteSoftMask = gFalse; - inNonIsolatedGroup = gFalse; - next = NULL; -} - -SplashState::SplashState(SplashState *state) { - memcpy(matrix, state->matrix, 6 * sizeof(SplashCoord)); - strokePattern = state->strokePattern->copy(); - fillPattern = state->fillPattern->copy(); - screen = state->screen->copy(); - blendFunc = state->blendFunc; - strokeAlpha = state->strokeAlpha; - fillAlpha = state->fillAlpha; - lineWidth = state->lineWidth; - lineCap = state->lineCap; - lineJoin = state->lineJoin; - miterLimit = state->miterLimit; - flatness = state->flatness; - if (state->lineDash) { - lineDashLength = state->lineDashLength; - lineDash = (SplashCoord *)gmallocn(lineDashLength, sizeof(SplashCoord)); - memcpy(lineDash, state->lineDash, lineDashLength * sizeof(SplashCoord)); - } else { - lineDash = NULL; - lineDashLength = 0; - } - lineDashPhase = state->lineDashPhase; - strokeAdjust = state->strokeAdjust; - clip = state->clip->copy(); - softMask = state->softMask; - deleteSoftMask = gFalse; - inNonIsolatedGroup = state->inNonIsolatedGroup; - next = NULL; -} - -SplashState::~SplashState() { - delete strokePattern; - delete fillPattern; - delete screen; - gfree(lineDash); - delete clip; - if (deleteSoftMask && softMask) { - delete softMask; - } -} - -void SplashState::setStrokePattern(SplashPattern *strokePatternA) { - delete strokePattern; - strokePattern = strokePatternA; -} - -void SplashState::setFillPattern(SplashPattern *fillPatternA) { - delete fillPattern; - fillPattern = fillPatternA; -} - -void SplashState::setScreen(SplashScreen *screenA) { - delete screen; - screen = screenA; -} - -void SplashState::setLineDash(SplashCoord *lineDashA, int lineDashLengthA, - SplashCoord lineDashPhaseA) { - gfree(lineDash); - lineDashLength = lineDashLengthA; - if (lineDashLength > 0) { - lineDash = (SplashCoord *)gmallocn(lineDashLength, sizeof(SplashCoord)); - memcpy(lineDash, lineDashA, lineDashLength * sizeof(SplashCoord)); - } else { - lineDash = NULL; - } - lineDashPhase = lineDashPhaseA; -} - -void SplashState::setSoftMask(SplashBitmap *softMaskA) { - if (deleteSoftMask) { - delete softMask; - } - softMask = softMaskA; - deleteSoftMask = gTrue; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashState.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashState.h deleted file mode 100644 index d0e05df3d28..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashState.h +++ /dev/null @@ -1,101 +0,0 @@ -//======================================================================== -// -// SplashState.h -// -//======================================================================== - -#ifndef SPLASHSTATE_H -#define SPLASHSTATE_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include "SplashTypes.h" - -class SplashPattern; -class SplashScreen; -class SplashClip; -class SplashBitmap; - -//------------------------------------------------------------------------ -// line cap values -//------------------------------------------------------------------------ - -#define splashLineCapButt 0 -#define splashLineCapRound 1 -#define splashLineCapProjecting 2 - -//------------------------------------------------------------------------ -// line join values -//------------------------------------------------------------------------ - -#define splashLineJoinMiter 0 -#define splashLineJoinRound 1 -#define splashLineJoinBevel 2 - -//------------------------------------------------------------------------ -// SplashState -//------------------------------------------------------------------------ - -class SplashState { -public: - - // Create a new state object, initialized with default settings. - SplashState(int width, int height, GBool vectorAntialias, - SplashScreenParams *screenParams); - SplashState(int width, int height, GBool vectorAntialias, - SplashScreen *screenA); - - // Copy a state object. - SplashState *copy() { return new SplashState(this); } - - ~SplashState(); - - // Set the stroke pattern. This does not copy <strokePatternA>. - void setStrokePattern(SplashPattern *strokePatternA); - - // Set the fill pattern. This does not copy <fillPatternA>. - void setFillPattern(SplashPattern *fillPatternA); - - // Set the screen. This does not copy <screenA>. - void setScreen(SplashScreen *screenA); - - // Set the line dash pattern. This copies the <lineDashA> array. - void setLineDash(SplashCoord *lineDashA, int lineDashLengthA, - SplashCoord lineDashPhaseA); - - // Set the soft mask bitmap. - void setSoftMask(SplashBitmap *softMaskA); - -private: - - SplashState(SplashState *state); - - SplashCoord matrix[6]; - SplashPattern *strokePattern; - SplashPattern *fillPattern; - SplashScreen *screen; - SplashBlendFunc blendFunc; - SplashCoord strokeAlpha; - SplashCoord fillAlpha; - SplashCoord lineWidth; - int lineCap; - int lineJoin; - SplashCoord miterLimit; - SplashCoord flatness; - SplashCoord *lineDash; - int lineDashLength; - SplashCoord lineDashPhase; - GBool strokeAdjust; - SplashClip *clip; - SplashBitmap *softMask; - GBool deleteSoftMask; - GBool inNonIsolatedGroup; - - SplashState *next; // used by Splash class - - friend class Splash; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1Font.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1Font.cc deleted file mode 100644 index 536c5605ba9..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1Font.cc +++ /dev/null @@ -1,306 +0,0 @@ -//======================================================================== -// -// SplashT1Font.cc -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2007 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include <config.h> - -#if HAVE_T1LIB_H - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <stdlib.h> -#include <t1lib.h> -#include "goo/gmem.h" -#include "SplashMath.h" -#include "SplashGlyphBitmap.h" -#include "SplashPath.h" -#include "SplashT1FontEngine.h" -#include "SplashT1FontFile.h" -#include "SplashT1Font.h" - -//------------------------------------------------------------------------ - -static Guchar bitReverse[256] = { - 0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0, - 0x10, 0x90, 0x50, 0xd0, 0x30, 0xb0, 0x70, 0xf0, - 0x08, 0x88, 0x48, 0xc8, 0x28, 0xa8, 0x68, 0xe8, - 0x18, 0x98, 0x58, 0xd8, 0x38, 0xb8, 0x78, 0xf8, - 0x04, 0x84, 0x44, 0xc4, 0x24, 0xa4, 0x64, 0xe4, - 0x14, 0x94, 0x54, 0xd4, 0x34, 0xb4, 0x74, 0xf4, - 0x0c, 0x8c, 0x4c, 0xcc, 0x2c, 0xac, 0x6c, 0xec, - 0x1c, 0x9c, 0x5c, 0xdc, 0x3c, 0xbc, 0x7c, 0xfc, - 0x02, 0x82, 0x42, 0xc2, 0x22, 0xa2, 0x62, 0xe2, - 0x12, 0x92, 0x52, 0xd2, 0x32, 0xb2, 0x72, 0xf2, - 0x0a, 0x8a, 0x4a, 0xca, 0x2a, 0xaa, 0x6a, 0xea, - 0x1a, 0x9a, 0x5a, 0xda, 0x3a, 0xba, 0x7a, 0xfa, - 0x06, 0x86, 0x46, 0xc6, 0x26, 0xa6, 0x66, 0xe6, - 0x16, 0x96, 0x56, 0xd6, 0x36, 0xb6, 0x76, 0xf6, - 0x0e, 0x8e, 0x4e, 0xce, 0x2e, 0xae, 0x6e, 0xee, - 0x1e, 0x9e, 0x5e, 0xde, 0x3e, 0xbe, 0x7e, 0xfe, - 0x01, 0x81, 0x41, 0xc1, 0x21, 0xa1, 0x61, 0xe1, - 0x11, 0x91, 0x51, 0xd1, 0x31, 0xb1, 0x71, 0xf1, - 0x09, 0x89, 0x49, 0xc9, 0x29, 0xa9, 0x69, 0xe9, - 0x19, 0x99, 0x59, 0xd9, 0x39, 0xb9, 0x79, 0xf9, - 0x05, 0x85, 0x45, 0xc5, 0x25, 0xa5, 0x65, 0xe5, - 0x15, 0x95, 0x55, 0xd5, 0x35, 0xb5, 0x75, 0xf5, - 0x0d, 0x8d, 0x4d, 0xcd, 0x2d, 0xad, 0x6d, 0xed, - 0x1d, 0x9d, 0x5d, 0xdd, 0x3d, 0xbd, 0x7d, 0xfd, - 0x03, 0x83, 0x43, 0xc3, 0x23, 0xa3, 0x63, 0xe3, - 0x13, 0x93, 0x53, 0xd3, 0x33, 0xb3, 0x73, 0xf3, - 0x0b, 0x8b, 0x4b, 0xcb, 0x2b, 0xab, 0x6b, 0xeb, - 0x1b, 0x9b, 0x5b, 0xdb, 0x3b, 0xbb, 0x7b, 0xfb, - 0x07, 0x87, 0x47, 0xc7, 0x27, 0xa7, 0x67, 0xe7, - 0x17, 0x97, 0x57, 0xd7, 0x37, 0xb7, 0x77, 0xf7, - 0x0f, 0x8f, 0x4f, 0xcf, 0x2f, 0xaf, 0x6f, 0xef, - 0x1f, 0x9f, 0x5f, 0xdf, 0x3f, 0xbf, 0x7f, 0xff -}; - -//------------------------------------------------------------------------ -// SplashT1Font -//------------------------------------------------------------------------ - -SplashT1Font::SplashT1Font(SplashT1FontFile *fontFileA, SplashCoord *matA, - SplashCoord *textMatA): - SplashFont(fontFileA, matA, textMatA, fontFileA->engine->aa) -{ - T1_TMATRIX matrix; - BBox bbox; - SplashCoord bbx0, bby0, bbx1, bby1; - int x, y; - - t1libID = T1_CopyFont(fontFileA->t1libID); - outlineID = -1; - - // compute font size - size = (float)splashSqrt(mat[2]*mat[2] + mat[3]*mat[3]); - - // transform the four corners of the font bounding box -- the min - // and max values form the bounding box of the transformed font - bbox = T1_GetFontBBox(t1libID); - bbx0 = 0.001 * bbox.llx; - bby0 = 0.001 * bbox.lly; - bbx1 = 0.001 * bbox.urx; - bby1 = 0.001 * bbox.ury; - // some fonts are completely broken, so we fake it (with values - // large enough that most glyphs should fit) - if (bbx0 == 0 && bby0 == 0 && bbx1 == 0 && bby1 == 0) { - bbx0 = bby0 = -0.5; - bbx1 = bby1 = 1.5; - } - x = (int)(mat[0] * bbx0 + mat[2] * bby0); - xMin = xMax = x; - y = (int)(mat[1] * bbx0 + mat[3] * bby0); - yMin = yMax = y; - x = (int)(mat[0] * bbx0 + mat[2] * bby1); - if (x < xMin) { - xMin = x; - } else if (x > xMax) { - xMax = x; - } - y = (int)(mat[1] * bbx0 + mat[3] * bby1); - if (y < yMin) { - yMin = y; - } else if (y > yMax) { - yMax = y; - } - x = (int)(mat[0] * bbx1 + mat[2] * bby0); - if (x < xMin) { - xMin = x; - } else if (x > xMax) { - xMax = x; - } - y = (int)(mat[1] * bbx1 + mat[3] * bby0); - if (y < yMin) { - yMin = y; - } else if (y > yMax) { - yMax = y; - } - x = (int)(mat[0] * bbx1 + mat[2] * bby1); - if (x < xMin) { - xMin = x; - } else if (x > xMax) { - xMax = x; - } - y = (int)(mat[1] * bbx1 + mat[3] * bby1); - if (y < yMin) { - yMin = y; - } else if (y > yMax) { - yMax = y; - } - // This is a kludge: some buggy PDF generators embed fonts with - // zero bounding boxes. - if (xMax == xMin) { - xMin = 0; - xMax = (int)size; - } - if (yMax == yMin) { - yMin = 0; - yMax = (int)(1.2 * size); - } - // Another kludge: an unusually large xMin or yMin coordinate is - // probably wrong. - if (xMin > 0) { - xMin = 0; - } - if (yMin > 0) { - yMin = 0; - } - // Another kludge: t1lib doesn't correctly handle fonts with - // real (non-integer) bounding box coordinates. - if (xMax - xMin > 5000) { - xMin = 0; - xMax = (int)size; - } - if (yMax - yMin > 5000) { - yMin = 0; - yMax = (int)(1.2 * size); - } - - // transform the font - matrix.cxx = (double)mat[0] / size; - matrix.cxy = (double)mat[1] / size; - matrix.cyx = (double)mat[2] / size; - matrix.cyy = (double)mat[3] / size; - T1_TransformFont(t1libID, &matrix); -} - -SplashT1Font::~SplashT1Font() { - T1_DeleteFont(t1libID); - if (outlineID >= 0) { - T1_DeleteFont(outlineID); - } -} - -GBool SplashT1Font::getGlyph(int c, int xFrac, int yFrac, - SplashGlyphBitmap *bitmap, int x0, int y0, SplashClip *clip, SplashClipResult *clipRes) { - return SplashFont::getGlyph(c, 0, 0, bitmap, x0, y0, clip, clipRes); -} - -GBool SplashT1Font::makeGlyph(int c, int xFrac, int yFrac, - SplashGlyphBitmap *bitmap, int x0, int y0, SplashClip *clip, SplashClipResult *clipRes) { - GLYPH *glyph; - int n, i; - - if (aa) { - glyph = T1_AASetChar(t1libID, c, size, NULL); - } else { - glyph = T1_SetChar(t1libID, c, size, NULL); - } - if (!glyph) { - return gFalse; - } - - bitmap->x = -glyph->metrics.leftSideBearing; - bitmap->y = glyph->metrics.ascent; - bitmap->w = glyph->metrics.rightSideBearing - glyph->metrics.leftSideBearing; - bitmap->h = glyph->metrics.ascent - glyph->metrics.descent; - bitmap->aa = aa; - if (aa) { - bitmap->data = (Guchar *)glyph->bits; - bitmap->freeData = gFalse; - } else { - n = bitmap->h * ((bitmap->w + 7) >> 3); - bitmap->data = (Guchar *)gmalloc(n); - for (i = 0; i < n; ++i) { - bitmap->data[i] = bitReverse[glyph->bits[i] & 0xff]; - } - bitmap->freeData = gTrue; - } - - *clipRes = clip->testRect(x0 - bitmap->x, - y0 - bitmap->y, - x0 - bitmap->x + bitmap->w - 1, - y0 - bitmap->y + bitmap->h - 1); - - return gTrue; -} - -SplashPath *SplashT1Font::getGlyphPath(int c) { - T1_TMATRIX matrix; - SplashPath *path; - T1_OUTLINE *outline; - T1_PATHSEGMENT *seg; - T1_BEZIERSEGMENT *bez; - SplashCoord x, y, x1, y1; - GBool needClose; - - if (outlineID < 0) { - outlineID = T1_CopyFont(((SplashT1FontFile *)fontFile)->t1libID); - outlineSize = (float)splashSqrt(textMat[2]*textMat[2] + - textMat[3]*textMat[3]); - matrix.cxx = (double)textMat[0] / outlineSize; - matrix.cxy = (double)textMat[1] / outlineSize; - matrix.cyx = (double)textMat[2] / outlineSize; - matrix.cyy = (double)textMat[3] / outlineSize; - // t1lib doesn't seem to handle small sizes correctly here, so set - // the size to 1000, and scale the resulting coordinates later - outlineMul = (float)(outlineSize / 65536000.0); - outlineSize = 1000; - T1_TransformFont(outlineID, &matrix); - } - - path = new SplashPath(); - if ((outline = T1_GetCharOutline(outlineID, c, outlineSize, NULL))) { - x = 0; - y = 0; - needClose = gFalse; - for (seg = outline; seg; seg = seg->link) { - switch (seg->type) { - case T1_PATHTYPE_MOVE: - if (needClose) { - path->close(); - needClose = gFalse; - } - x += seg->dest.x * outlineMul; - y += seg->dest.y * outlineMul; - path->moveTo(x, -y); - break; - case T1_PATHTYPE_LINE: - x += seg->dest.x * outlineMul; - y += seg->dest.y * outlineMul; - path->lineTo(x, -y); - needClose = gTrue; - break; - case T1_PATHTYPE_BEZIER: - bez = (T1_BEZIERSEGMENT *)seg; - x1 = x + (SplashCoord)(bez->dest.x * outlineMul); - y1 = y + (SplashCoord)(bez->dest.y * outlineMul); - path->curveTo(x + (SplashCoord)(bez->B.x * outlineMul), - -(y + (SplashCoord)(bez->B.y * outlineMul)), - x + (SplashCoord)(bez->C.x * outlineMul), - -(y + (SplashCoord)(bez->C.y * outlineMul)), - x1, -y1); - x = x1; - y = y1; - needClose = gTrue; - break; - } - } - if (needClose) { - path->close(); - } - T1_FreeOutline(outline); - } - - return path; -} - -#endif // HAVE_T1LIB_H diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1Font.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1Font.h deleted file mode 100644 index 1dbe66cd7fc..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1Font.h +++ /dev/null @@ -1,69 +0,0 @@ -//======================================================================== -// -// SplashT1Font.h -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2007 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#ifndef SPLASHT1FONT_H -#define SPLASHT1FONT_H - -#if HAVE_T1LIB_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include "SplashFont.h" - -class SplashT1FontFile; - -//------------------------------------------------------------------------ -// SplashT1Font -//------------------------------------------------------------------------ - -class SplashT1Font: public SplashFont { -public: - - SplashT1Font(SplashT1FontFile *fontFileA, SplashCoord *matA, - SplashCoord *textMatA); - - virtual ~SplashT1Font(); - - // Munge xFrac and yFrac before calling SplashFont::getGlyph. - virtual GBool getGlyph(int c, int xFrac, int yFrac, - SplashGlyphBitmap *bitmap, int x0, int y0, SplashClip *clip, SplashClipResult *clipRes); - - // Rasterize a glyph. The <xFrac> and <yFrac> values are the same - // as described for getGlyph. - virtual GBool makeGlyph(int c, int xFrac, int yFrac, - SplashGlyphBitmap *bitmap, int x0, int y0, SplashClip *clip, SplashClipResult *clipRes); - - // Return the path for a glyph. - virtual SplashPath *getGlyphPath(int c); - -private: - - int t1libID; // t1lib font ID - int outlineID; // t1lib font ID for glyph outlines - float size; - float outlineSize; // size for glyph outlines - float outlineMul; -}; - -#endif // HAVE_T1LIB_H - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1FontEngine.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1FontEngine.cc deleted file mode 100644 index a09a8839abf..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1FontEngine.cc +++ /dev/null @@ -1,138 +0,0 @@ -//======================================================================== -// -// SplashT1FontEngine.cc -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Takashi Iwai <tiwai@suse.de> -// Copyright (C) 2009 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include <config.h> - -#if HAVE_T1LIB_H - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <stdlib.h> -#include <stdio.h> -#ifdef HAVE_UNISTD_H -# include <unistd.h> -#endif -#include <t1lib.h> -#include "goo/GooString.h" -#include "goo/gfile.h" -#include "fofi/FoFiType1C.h" -#include "SplashT1FontFile.h" -#include "SplashT1FontEngine.h" - -#ifdef VMS -#if (__VMS_VER < 70000000) -extern "C" int unlink(char *filename); -#endif -#endif - -//------------------------------------------------------------------------ - -int SplashT1FontEngine::t1libInitCount = 0; - -//------------------------------------------------------------------------ - -static void fileWrite(void *stream, char *data, int len) { - fwrite(data, 1, len, (FILE *)stream); -} - -//------------------------------------------------------------------------ -// SplashT1FontEngine -//------------------------------------------------------------------------ - -SplashT1FontEngine::SplashT1FontEngine(GBool aaA) { - aa = aaA; -} - -SplashT1FontEngine *SplashT1FontEngine::init(GBool aaA) { - // grayVals[i] = round(i * 255 / 16) - static unsigned long grayVals[17] = { - 0, 16, 32, 48, 64, 80, 96, 112, 128, 143, 159, 175, 191, 207, 223, 239, 255 - }; - - //~ for multithreading: need a mutex here - if (t1libInitCount == 0) { - T1_SetBitmapPad(8); - if (!T1_InitLib(NO_LOGFILE | IGNORE_CONFIGFILE | IGNORE_FONTDATABASE | - T1_NO_AFM)) { - return NULL; - } - if (aaA) { - T1_AASetBitsPerPixel(8); - T1_AASetLevel(T1_AA_HIGH); - T1_AAHSetGrayValues(grayVals); - } else { - T1_AANSetGrayValues(0, 1); - } - } - ++t1libInitCount; - - return new SplashT1FontEngine(aaA); -} - -SplashT1FontEngine::~SplashT1FontEngine() { - //~ for multithreading: need a mutex here - if (--t1libInitCount == 0) { - T1_CloseLib(); - } -} - -SplashFontFile *SplashT1FontEngine::loadType1Font(SplashFontFileID *idA, - SplashFontSrc *src, - char **enc) { - return SplashT1FontFile::loadType1Font(this, idA, src, enc); -} - -SplashFontFile *SplashT1FontEngine::loadType1CFont(SplashFontFileID *idA, - SplashFontSrc *src, - char **enc) { - FoFiType1C *ff; - GooString *tmpFileName; - FILE *tmpFile; - SplashFontFile *ret; - - SplashFontSrc *newsrc; - - if (src->isFile) - ff = FoFiType1C::load(src->fileName->getCString()); - else - ff = FoFiType1C::make(src->buf, src->bufLen); - if (! ff) - return NULL; - - tmpFileName = NULL; - if (!openTempFile(&tmpFileName, &tmpFile, "wb")) { - delete ff; - return NULL; - } - ff->convertToType1(NULL, NULL, gTrue, &fileWrite, tmpFile); - delete ff; - fclose(tmpFile); - newsrc = new SplashFontSrc; - newsrc->setFile(tmpFileName, gTrue); - delete tmpFileName; - ret = SplashT1FontFile::loadType1Font(this, idA, newsrc, enc); - newsrc->unref(); - return ret; -} - -#endif // HAVE_T1LIB_H diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1FontEngine.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1FontEngine.h deleted file mode 100644 index ffc285bd6d4..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1FontEngine.h +++ /dev/null @@ -1,50 +0,0 @@ -//======================================================================== -// -// SplashT1FontEngine.h -// -//======================================================================== - -#ifndef SPLASHT1FONTENGINE_H -#define SPLASHT1FONTENGINE_H - -#if HAVE_T1LIB_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include "goo/gtypes.h" - -class SplashFontFile; -class SplashFontFileID; -class SplashFontSrc; - -//------------------------------------------------------------------------ -// SplashT1FontEngine -//------------------------------------------------------------------------ - -class SplashT1FontEngine { -public: - - static SplashT1FontEngine *init(GBool aaA); - - ~SplashT1FontEngine(); - - // Load fonts. - SplashFontFile *loadType1Font(SplashFontFileID *idA, SplashFontSrc *src, char **enc); - SplashFontFile *loadType1CFont(SplashFontFileID *idA, SplashFontSrc *src, char **enc); - -private: - - SplashT1FontEngine(GBool aaA); - - static int t1libInitCount; - GBool aa; - - friend class SplashT1FontFile; - friend class SplashT1Font; -}; - -#endif // HAVE_T1LIB_H - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1FontFile.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1FontFile.cc deleted file mode 100644 index 3f46ba630d4..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1FontFile.cc +++ /dev/null @@ -1,134 +0,0 @@ -//======================================================================== -// -// SplashT1FontFile.cc -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Takashi Iwai <tiwai@suse.de> -// Copyright (C) 2009 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include <config.h> - -#if HAVE_T1LIB_H - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <string.h> -#include <t1lib.h> -#include "goo/GooString.h" -#include "goo/gfile.h" -#include "goo/gmem.h" -#include "SplashT1FontEngine.h" -#include "SplashT1Font.h" -#include "SplashT1FontFile.h" - -//------------------------------------------------------------------------ -// SplashT1FontFile -//------------------------------------------------------------------------ - -SplashFontFile *SplashT1FontFile::loadType1Font(SplashT1FontEngine *engineA, - SplashFontFileID *idA, - SplashFontSrc *src, - char **encA) { - int t1libIDA; - char **encTmp; - char *encStrTmp; - int encStrSize; - char *encPtr; - int i; - - GooString *fileNameA; - SplashFontSrc *newsrc = NULL; - SplashFontFile *ff; - - if (! src->isFile) { - GooString *tmpFileName; - FILE *tmpFile; - if (!openTempFile(&tmpFileName, &tmpFile, "wb")) - return NULL; - fwrite(src->buf, 1, src->bufLen, tmpFile); - fclose(tmpFile); - newsrc = new SplashFontSrc; - newsrc->setFile(tmpFileName, gTrue); - src = newsrc; - delete tmpFileName; - } - fileNameA = src->fileName; - // load the font file - if ((t1libIDA = T1_AddFont(fileNameA->getCString())) < 0) { - delete newsrc; - return NULL; - } - T1_LoadFont(t1libIDA); - - // reencode it - encStrSize = 0; - for (i = 0; i < 256; ++i) { - if (encA[i]) { - encStrSize += strlen(encA[i]) + 1; - } - } - encTmp = (char **)gmallocn(257, sizeof(char *)); - encStrTmp = (char *)gmallocn(encStrSize, sizeof(char)); - encPtr = encStrTmp; - for (i = 0; i < 256; ++i) { - if (encA[i]) { - strcpy(encPtr, encA[i]); - encTmp[i] = encPtr; - encPtr += strlen(encPtr) + 1; - } else { - encTmp[i] = ".notdef"; - } - } - encTmp[256] = "custom"; - T1_ReencodeFont(t1libIDA, encTmp); - - ff = new SplashT1FontFile(engineA, idA, src, - t1libIDA, encTmp, encStrTmp); - if (newsrc) - newsrc->unref(); - return ff; -} - -SplashT1FontFile::SplashT1FontFile(SplashT1FontEngine *engineA, - SplashFontFileID *idA, - SplashFontSrc *srcA, - int t1libIDA, char **encA, char *encStrA): - SplashFontFile(idA, srcA) -{ - engine = engineA; - t1libID = t1libIDA; - enc = encA; - encStr = encStrA; -} - -SplashT1FontFile::~SplashT1FontFile() { - gfree(encStr); - gfree(enc); - T1_DeleteFont(t1libID); -} - -SplashFont *SplashT1FontFile::makeFont(SplashCoord *mat, - SplashCoord *textMat) { - SplashFont *font; - - font = new SplashT1Font(this, mat, textMat); - font->initCache(); - return font; -} - -#endif // HAVE_T1LIB_H diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1FontFile.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1FontFile.h deleted file mode 100644 index 24c958bc0cd..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashT1FontFile.h +++ /dev/null @@ -1,70 +0,0 @@ -//======================================================================== -// -// SplashT1FontFile.h -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Takashi Iwai <tiwai@suse.de> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#ifndef SPLASHT1FONTFILE_H -#define SPLASHT1FONTFILE_H - -#if HAVE_T1LIB_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include "SplashFontFile.h" - -class SplashT1FontEngine; - -//------------------------------------------------------------------------ -// SplashT1FontFile -//------------------------------------------------------------------------ - -class SplashT1FontFile: public SplashFontFile { -public: - - static SplashFontFile *loadType1Font(SplashT1FontEngine *engineA, - SplashFontFileID *idA, - SplashFontSrc *src, - char **encA); - - virtual ~SplashT1FontFile(); - - // Create a new SplashT1Font, i.e., a scaled instance of this font - // file. - virtual SplashFont *makeFont(SplashCoord *mat, - SplashCoord *textMat); - -private: - - SplashT1FontFile(SplashT1FontEngine *engineA, - SplashFontFileID *idA, - SplashFontSrc *src, - int t1libIDA, char **encA, char *encStrA); - - SplashT1FontEngine *engine; - int t1libID; // t1lib font ID - char **enc; - char *encStr; - - friend class SplashT1Font; -}; - -#endif // HAVE_T1LIB_H - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashTypes.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashTypes.h deleted file mode 100644 index a8686520f91..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashTypes.h +++ /dev/null @@ -1,153 +0,0 @@ -//======================================================================== -// -// SplashTypes.h -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Albert Astals Cid <aacid@kde.org> -// Copyright (C) 2008 Tomas Are Haavet <tomasare@gmail.com> -// Copyright (C) 2009 Thomas Freitag <Thomas.Freitag@alfa.de> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#ifndef SPLASHTYPES_H -#define SPLASHTYPES_H - -#include "goo/gtypes.h" - -//------------------------------------------------------------------------ -// coordinates -//------------------------------------------------------------------------ - -#if USE_FIXEDPOINT -#include "goo/FixedPoint.h" -typedef FixedPoint SplashCoord; -#else -typedef double SplashCoord; -#endif - -//------------------------------------------------------------------------ -// antialiasing -//------------------------------------------------------------------------ - -#define splashAASize 4 - -//------------------------------------------------------------------------ -// colors -//------------------------------------------------------------------------ - -enum SplashColorMode { - splashModeMono1, // 1 bit per component, 8 pixels per byte, - // MSbit is on the left - splashModeMono8, // 1 byte per component, 1 byte per pixel - splashModeRGB8, // 1 byte per component, 3 bytes per pixel: - // RGBRGB... - splashModeBGR8, // 1 byte per component, 3 bytes per pixel: - // BGRBGR... - splashModeXBGR8 // 1 byte per component, 4 bytes per pixel: - // XBGRXBGR... -#if SPLASH_CMYK - , - splashModeCMYK8 // 1 byte per component, 4 bytes per pixel: - // CMYKCMYK... -#endif -}; - -// number of components in each color mode -// (defined in SplashState.cc) -extern int splashColorModeNComps[]; - -// max number of components in any SplashColor -#define splashMaxColorComps 4 - -typedef Guchar SplashColor[splashMaxColorComps]; -typedef Guchar *SplashColorPtr; - -// RGB8 -static inline Guchar splashRGB8R(SplashColorPtr rgb8) { return rgb8[0]; } -static inline Guchar splashRGB8G(SplashColorPtr rgb8) { return rgb8[1]; } -static inline Guchar splashRGB8B(SplashColorPtr rgb8) { return rgb8[2]; } - -// BGR8 -static inline Guchar splashBGR8R(SplashColorPtr bgr8) { return bgr8[2]; } -static inline Guchar splashBGR8G(SplashColorPtr bgr8) { return bgr8[1]; } -static inline Guchar splashBGR8B(SplashColorPtr bgr8) { return bgr8[0]; } - -#if SPLASH_CMYK -// CMYK8 -static inline Guchar splashCMYK8C(SplashColorPtr cmyk8) { return cmyk8[0]; } -static inline Guchar splashCMYK8M(SplashColorPtr cmyk8) { return cmyk8[1]; } -static inline Guchar splashCMYK8Y(SplashColorPtr cmyk8) { return cmyk8[2]; } -static inline Guchar splashCMYK8K(SplashColorPtr cmyk8) { return cmyk8[3]; } -#endif - -static inline void splashClearColor(SplashColorPtr dest) { - dest[0] = 0; - dest[1] = 0; - dest[2] = 0; -#if SPLASH_CMYK - dest[3] = 0; -#endif -} - -static inline void splashColorCopy(SplashColorPtr dest, SplashColorPtr src) { - dest[0] = src[0]; - dest[1] = src[1]; - dest[2] = src[2]; -#if SPLASH_CMYK - dest[3] = src[3]; -#endif -} - -static inline void splashColorXor(SplashColorPtr dest, SplashColorPtr src) { - dest[0] ^= src[0]; - dest[1] ^= src[1]; - dest[2] ^= src[2]; -#if SPLASH_CMYK - dest[3] ^= src[3]; -#endif -} - -//------------------------------------------------------------------------ -// blend functions -//------------------------------------------------------------------------ - -typedef void (*SplashBlendFunc)(SplashColorPtr src, SplashColorPtr dest, - SplashColorPtr blend, SplashColorMode cm); - -//------------------------------------------------------------------------ -// screen parameters -//------------------------------------------------------------------------ - -enum SplashScreenType { - splashScreenDispersed, - splashScreenClustered, - splashScreenStochasticClustered -}; - -struct SplashScreenParams { - SplashScreenType type; - int size; - int dotRadius; - SplashCoord gamma; - SplashCoord blackThreshold; - SplashCoord whiteThreshold; -}; - -//------------------------------------------------------------------------ -// error results -//------------------------------------------------------------------------ - -typedef int SplashError; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashXPath.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashXPath.cc deleted file mode 100644 index d7e114d5d03..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashXPath.cc +++ /dev/null @@ -1,443 +0,0 @@ -//======================================================================== -// -// SplashXPath.cc -// -//======================================================================== - -#include <config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <stdlib.h> -#include <string.h> -#include "goo/gmem.h" -#include "SplashMath.h" -#include "SplashPath.h" -#include "SplashXPath.h" - -//------------------------------------------------------------------------ - -struct SplashXPathPoint { - SplashCoord x, y; -}; - -struct SplashXPathAdjust { - int firstPt, lastPt; // range of points - GBool vert; // vertical or horizontal hint - SplashCoord x0a, x0b, // hint boundaries - xma, xmb, - x1a, x1b; - SplashCoord x0, x1, xm; // adjusted coordinates -}; - -//------------------------------------------------------------------------ - -// Transform a point from user space to device space. -inline void SplashXPath::transform(SplashCoord *matrix, - SplashCoord xi, SplashCoord yi, - SplashCoord *xo, SplashCoord *yo) { - // [ m[0] m[1] 0 ] - // [xo yo 1] = [xi yi 1] * [ m[2] m[3] 0 ] - // [ m[4] m[5] 1 ] - *xo = xi * matrix[0] + yi * matrix[2] + matrix[4]; - *yo = xi * matrix[1] + yi * matrix[3] + matrix[5]; -} - -//------------------------------------------------------------------------ -// SplashXPath -//------------------------------------------------------------------------ - -SplashXPath::SplashXPath() { - segs = NULL; - length = size = 0; -} - -SplashXPath::SplashXPath(SplashPath *path, SplashCoord *matrix, - SplashCoord flatness, GBool closeSubpaths) { - SplashPathHint *hint; - SplashXPathPoint *pts; - SplashXPathAdjust *adjusts, *adjust; - SplashCoord x0, y0, x1, y1, x2, y2, x3, y3, xsp, ysp; - SplashCoord adj0, adj1, w; - int ww; - int curSubpath, curSubpathX, i, j; - - // transform the points - pts = (SplashXPathPoint *)gmallocn(path->length, sizeof(SplashXPathPoint)); - for (i = 0; i < path->length; ++i) { - transform(matrix, path->pts[i].x, path->pts[i].y, &pts[i].x, &pts[i].y); - } - - // set up the stroke adjustment hints - if (path->hints) { - adjusts = (SplashXPathAdjust *)gmallocn(path->hintsLength, - sizeof(SplashXPathAdjust)); - for (i = 0; i < path->hintsLength; ++i) { - hint = &path->hints[i]; - if (hint->ctrl0 + 1 >= path->length || hint->ctrl1 + 1 >= path->length) { - gfree(adjusts); - adjusts = NULL; - break; - } - x0 = pts[hint->ctrl0 ].x; y0 = pts[hint->ctrl0 ].y; - x1 = pts[hint->ctrl0 + 1].x; y1 = pts[hint->ctrl0 + 1].y; - x2 = pts[hint->ctrl1 ].x; y2 = pts[hint->ctrl1 ].y; - x3 = pts[hint->ctrl1 + 1].x; y3 = pts[hint->ctrl1 + 1].y; - if (x0 == x1 && x2 == x3) { - adjusts[i].vert = gTrue; - adj0 = x0; - adj1 = x2; - } else if (y0 == y1 && y2 == y3) { - adjusts[i].vert = gFalse; - adj0 = y0; - adj1 = y2; - } else { - gfree(adjusts); - adjusts = NULL; - break; - } - if (adj0 > adj1) { - x0 = adj0; - adj0 = adj1; - adj1 = x0; - } - w = adj1 - adj0; - ww = splashRound(w); - if (ww == 0) { - ww = 1; - } - adjusts[i].x0a = adj0 - 0.01; - adjusts[i].x0b = adj0 + 0.01; - adjusts[i].xma = (SplashCoord)0.5 * (adj0 + adj1) - 0.01; - adjusts[i].xmb = (SplashCoord)0.5 * (adj0 + adj1) + 0.01; - adjusts[i].x1a = adj1 - 0.01; - adjusts[i].x1b = adj1 + 0.01; - adjusts[i].x0 = (SplashCoord)splashRound(adj0); - adjusts[i].x1 = adjusts[i].x0 + ww - 0.01; - adjusts[i].xm = (SplashCoord)0.5 * (adjusts[i].x0 + adjusts[i].x1); - adjusts[i].firstPt = hint->firstPt; - adjusts[i].lastPt = hint->lastPt; - } - - } else { - adjusts = NULL; - } - - // perform stroke adjustment - if (adjusts) { - for (i = 0, adjust = adjusts; i < path->hintsLength; ++i, ++adjust) { - for (j = adjust->firstPt; j <= adjust->lastPt; ++j) { - strokeAdjust(adjust, &pts[j].x, &pts[j].y); - } - } - gfree(adjusts); - } - - segs = NULL; - length = size = 0; - - x0 = y0 = xsp = ysp = 0; // make gcc happy - adj0 = adj1 = 0; // make gcc happy - curSubpath = 0; - curSubpathX = 0; - i = 0; - while (i < path->length) { - - // first point in subpath - skip it - if (path->flags[i] & splashPathFirst) { - x0 = pts[i].x; - y0 = pts[i].y; - xsp = x0; - ysp = y0; - curSubpath = i; - curSubpathX = length; - ++i; - - } else { - - // curve segment - if (path->flags[i] & splashPathCurve) { - x1 = pts[i].x; - y1 = pts[i].y; - x2 = pts[i+1].x; - y2 = pts[i+1].y; - x3 = pts[i+2].x; - y3 = pts[i+2].y; - addCurve(x0, y0, x1, y1, x2, y2, x3, y3, - flatness, - (path->flags[i-1] & splashPathFirst), - (path->flags[i+2] & splashPathLast), - !closeSubpaths && - (path->flags[i-1] & splashPathFirst) && - !(path->flags[i-1] & splashPathClosed), - !closeSubpaths && - (path->flags[i+2] & splashPathLast) && - !(path->flags[i+2] & splashPathClosed)); - x0 = x3; - y0 = y3; - i += 3; - - // line segment - } else { - x1 = pts[i].x; - y1 = pts[i].y; - addSegment(x0, y0, x1, y1, - path->flags[i-1] & splashPathFirst, - path->flags[i] & splashPathLast, - !closeSubpaths && - (path->flags[i-1] & splashPathFirst) && - !(path->flags[i-1] & splashPathClosed), - !closeSubpaths && - (path->flags[i] & splashPathLast) && - !(path->flags[i] & splashPathClosed)); - x0 = x1; - y0 = y1; - ++i; - } - - // close a subpath - if (closeSubpaths && - (path->flags[i-1] & splashPathLast) && - (pts[i-1].x != pts[curSubpath].x || - pts[i-1].y != pts[curSubpath].y)) { - addSegment(x0, y0, xsp, ysp, - gFalse, gTrue, gFalse, gFalse); - } - } - } - - gfree(pts); -} - -// Apply the stroke adjust hints to point <pt>: (*<xp>, *<yp>). -void SplashXPath::strokeAdjust(SplashXPathAdjust *adjust, - SplashCoord *xp, SplashCoord *yp) { - SplashCoord x, y; - - if (adjust->vert) { - x = *xp; - if (x > adjust->x0a && x < adjust->x0b) { - *xp = adjust->x0; - } else if (x > adjust->xma && x < adjust->xmb) { - *xp = adjust->xm; - } else if (x > adjust->x1a && x < adjust->x1b) { - *xp = adjust->x1; - } - } else { - y = *yp; - if (y > adjust->x0a && y < adjust->x0b) { - *yp = adjust->x0; - } else if (y > adjust->xma && y < adjust->xmb) { - *yp = adjust->xm; - } else if (y > adjust->x1a && y < adjust->x1b) { - *yp = adjust->x1; - } - } -} - -SplashXPath::SplashXPath(SplashXPath *xPath) { - length = xPath->length; - size = xPath->size; - segs = (SplashXPathSeg *)gmallocn(size, sizeof(SplashXPathSeg)); - memcpy(segs, xPath->segs, length * sizeof(SplashXPathSeg)); -} - -SplashXPath::~SplashXPath() { - gfree(segs); -} - -// Add space for <nSegs> more segments -void SplashXPath::grow(int nSegs) { - if (length + nSegs > size) { - if (size == 0) { - size = 32; - } - while (size < length + nSegs) { - size *= 2; - } - segs = (SplashXPathSeg *)greallocn(segs, size, sizeof(SplashXPathSeg)); - } -} - -void SplashXPath::addCurve(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1, - SplashCoord x2, SplashCoord y2, - SplashCoord x3, SplashCoord y3, - SplashCoord flatness, - GBool first, GBool last, GBool end0, GBool end1) { - SplashCoord cx[splashMaxCurveSplits + 1][3]; - SplashCoord cy[splashMaxCurveSplits + 1][3]; - int cNext[splashMaxCurveSplits + 1]; - SplashCoord xl0, xl1, xl2, xr0, xr1, xr2, xr3, xx1, xx2, xh; - SplashCoord yl0, yl1, yl2, yr0, yr1, yr2, yr3, yy1, yy2, yh; - SplashCoord dx, dy, mx, my, d1, d2, flatness2; - int p1, p2, p3; - - flatness2 = flatness * flatness; - - // initial segment - p1 = 0; - p2 = splashMaxCurveSplits; - cx[p1][0] = x0; cy[p1][0] = y0; - cx[p1][1] = x1; cy[p1][1] = y1; - cx[p1][2] = x2; cy[p1][2] = y2; - cx[p2][0] = x3; cy[p2][0] = y3; - cNext[p1] = p2; - - while (p1 < splashMaxCurveSplits) { - - // get the next segment - xl0 = cx[p1][0]; yl0 = cy[p1][0]; - xx1 = cx[p1][1]; yy1 = cy[p1][1]; - xx2 = cx[p1][2]; yy2 = cy[p1][2]; - p2 = cNext[p1]; - xr3 = cx[p2][0]; yr3 = cy[p2][0]; - - // compute the distances from the control points to the - // midpoint of the straight line (this is a bit of a hack, but - // it's much faster than computing the actual distances to the - // line) - mx = (xl0 + xr3) * 0.5; - my = (yl0 + yr3) * 0.5; - dx = xx1 - mx; - dy = yy1 - my; - d1 = dx*dx + dy*dy; - dx = xx2 - mx; - dy = yy2 - my; - d2 = dx*dx + dy*dy; - - // if the curve is flat enough, or no more subdivisions are - // allowed, add the straight line segment - if (p2 - p1 == 1 || (d1 <= flatness2 && d2 <= flatness2)) { - addSegment(xl0, yl0, xr3, yr3, - p1 == 0 && first, - p2 == splashMaxCurveSplits && last, - p1 == 0 && end0, - p2 == splashMaxCurveSplits && end1); - p1 = p2; - - // otherwise, subdivide the curve - } else { - xl1 = (xl0 + xx1) * 0.5; - yl1 = (yl0 + yy1) * 0.5; - xh = (xx1 + xx2) * 0.5; - yh = (yy1 + yy2) * 0.5; - xl2 = (xl1 + xh) * 0.5; - yl2 = (yl1 + yh) * 0.5; - xr2 = (xx2 + xr3) * 0.5; - yr2 = (yy2 + yr3) * 0.5; - xr1 = (xh + xr2) * 0.5; - yr1 = (yh + yr2) * 0.5; - xr0 = (xl2 + xr1) * 0.5; - yr0 = (yl2 + yr1) * 0.5; - // add the new subdivision points - p3 = (p1 + p2) / 2; - cx[p1][1] = xl1; cy[p1][1] = yl1; - cx[p1][2] = xl2; cy[p1][2] = yl2; - cNext[p1] = p3; - cx[p3][0] = xr0; cy[p3][0] = yr0; - cx[p3][1] = xr1; cy[p3][1] = yr1; - cx[p3][2] = xr2; cy[p3][2] = yr2; - cNext[p3] = p2; - } - } -} - -void SplashXPath::addSegment(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1, - GBool first, GBool last, GBool end0, GBool end1) { - grow(1); - segs[length].x0 = x0; - segs[length].y0 = y0; - segs[length].x1 = x1; - segs[length].y1 = y1; - segs[length].flags = 0; - if (first) { - segs[length].flags |= splashXPathFirst; - } - if (last) { - segs[length].flags |= splashXPathLast; - } - if (end0) { - segs[length].flags |= splashXPathEnd0; - } - if (end1) { - segs[length].flags |= splashXPathEnd1; - } - if (y1 == y0) { - segs[length].dxdy = segs[length].dydx = 0; - segs[length].flags |= splashXPathHoriz; - if (x1 == x0) { - segs[length].flags |= splashXPathVert; - } - } else if (x1 == x0) { - segs[length].dxdy = segs[length].dydx = 0; - segs[length].flags |= splashXPathVert; - } else { -#if USE_FIXEDPOINT - if (FixedPoint::divCheck(x1 - x0, y1 - y0, &segs[length].dxdy)) { - segs[length].dydx = (SplashCoord)1 / segs[length].dxdy; - } else { - segs[length].dxdy = segs[length].dydx = 0; - if (splashAbs(x1 - x0) > splashAbs(y1 - y0)) { - segs[length].flags |= splashXPathHoriz; - } else { - segs[length].flags |= splashXPathVert; - } - } -#else - segs[length].dxdy = (x1 - x0) / (y1 - y0); - segs[length].dydx = (SplashCoord)1 / segs[length].dxdy; -#endif - } - if (y0 > y1) { - segs[length].flags |= splashXPathFlip; - } - ++length; -} - -static int cmpXPathSegs(const void *arg0, const void *arg1) { - SplashXPathSeg *seg0 = (SplashXPathSeg *)arg0; - SplashXPathSeg *seg1 = (SplashXPathSeg *)arg1; - SplashCoord x0, y0, x1, y1; - - if (seg0->flags & splashXPathFlip) { - x0 = seg0->x1; - y0 = seg0->y1; - } else { - x0 = seg0->x0; - y0 = seg0->y0; - } - if (seg1->flags & splashXPathFlip) { - x1 = seg1->x1; - y1 = seg1->y1; - } else { - x1 = seg1->x0; - y1 = seg1->y0; - } - if (y0 != y1) { - return (y0 > y1) ? 1 : -1; - } - if (x0 != x1) { - return (x0 > x1) ? 1 : -1; - } - return 0; -} - -void SplashXPath::aaScale() { - SplashXPathSeg *seg; - int i; - - for (i = 0, seg = segs; i < length; ++i, ++seg) { - seg->x0 *= splashAASize; - seg->y0 *= splashAASize; - seg->x1 *= splashAASize; - seg->y1 *= splashAASize; - } -} - -void SplashXPath::sort() { - qsort(segs, length, sizeof(SplashXPathSeg), &cmpXPathSegs); -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashXPath.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashXPath.h deleted file mode 100644 index 64c47969ef8..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashXPath.h +++ /dev/null @@ -1,98 +0,0 @@ -//======================================================================== -// -// SplashXPath.h -// -//======================================================================== - -#ifndef SPLASHXPATH_H -#define SPLASHXPATH_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include "SplashTypes.h" - -class SplashPath; -struct SplashXPathAdjust; - -//------------------------------------------------------------------------ - -#define splashMaxCurveSplits (1 << 10) - -//------------------------------------------------------------------------ -// SplashXPathSeg -//------------------------------------------------------------------------ - -struct SplashXPathSeg { - SplashCoord x0, y0; // first endpoint - SplashCoord x1, y1; // second endpoint - SplashCoord dxdy; // slope: delta-x / delta-y - SplashCoord dydx; // slope: delta-y / delta-x - Guint flags; -}; - -#define splashXPathFirst 0x01 // first segment of a subpath -#define splashXPathLast 0x02 // last segment of a subpath -#define splashXPathEnd0 0x04 // first endpoint is end of an open subpath -#define splashXPathEnd1 0x08 // second endpoint is end of an open subpath -#define splashXPathHoriz 0x10 // segment is vertical (y0 == y1) - // (dxdy is undef) -#define splashXPathVert 0x20 // segment is horizontal (x0 == x1) - // (dydx is undef) -#define splashXPathFlip 0x40 // y0 > y1 - -//------------------------------------------------------------------------ -// SplashXPath -//------------------------------------------------------------------------ - -class SplashXPath { -public: - - // Expands (converts to segments) and flattens (converts curves to - // lines) <path>. Transforms all points from user space to device - // space, via <matrix>. If <closeSubpaths> is true, closes all open - // subpaths. - SplashXPath(SplashPath *path, SplashCoord *matrix, - SplashCoord flatness, GBool closeSubpaths); - - // Copy an expanded path. - SplashXPath *copy() { return new SplashXPath(this); } - - ~SplashXPath(); - - // Multiply all coordinates by splashAASize, in preparation for - // anti-aliased rendering. - void aaScale(); - - // Sort by upper coordinate (lower y), in y-major order. - void sort(); - -protected: - - SplashXPath(); - SplashXPath(SplashXPath *xPath); - void transform(SplashCoord *matrix, SplashCoord xi, SplashCoord yi, - SplashCoord *xo, SplashCoord *yo); - void strokeAdjust(SplashXPathAdjust *adjust, - SplashCoord *xp, SplashCoord *yp); - void grow(int nSegs); - void addCurve(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1, - SplashCoord x2, SplashCoord y2, - SplashCoord x3, SplashCoord y3, - SplashCoord flatness, - GBool first, GBool last, GBool end0, GBool end1); - void addSegment(SplashCoord x0, SplashCoord y0, - SplashCoord x1, SplashCoord y1, - GBool first, GBool last, GBool end0, GBool end1); - - SplashXPathSeg *segs; - int length, size; // length and size of segs array - - friend class SplashXPathScanner; - friend class SplashClip; - friend class Splash; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashXPathScanner.cc b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashXPathScanner.cc deleted file mode 100644 index eab9cef59b3..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashXPathScanner.cc +++ /dev/null @@ -1,443 +0,0 @@ -//======================================================================== -// -// SplashXPathScanner.cc -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2008 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include <config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <stdlib.h> -#include <string.h> -#include "goo/gmem.h" -#include "SplashMath.h" -#include "SplashXPath.h" -#include "SplashBitmap.h" -#include "SplashXPathScanner.h" - -//------------------------------------------------------------------------ - -struct SplashIntersect { - int x0, x1; // intersection of segment with [y, y+1) - int count; // EO/NZWN counter increment -}; - -static int cmpIntersect(const void *p0, const void *p1) { - return ((SplashIntersect *)p0)->x0 - ((SplashIntersect *)p1)->x0; -} - -//------------------------------------------------------------------------ -// SplashXPathScanner -//------------------------------------------------------------------------ - -SplashXPathScanner::SplashXPathScanner(SplashXPath *xPathA, GBool eoA) { - SplashXPathSeg *seg; - SplashCoord xMinFP, yMinFP, xMaxFP, yMaxFP; - int i; - - xPath = xPathA; - eo = eoA; - - // compute the bbox - if (xPath->length == 0) { - xMin = yMin = 1; - xMax = yMax = 0; - } else { - seg = &xPath->segs[0]; - if (seg->x0 <= seg->x1) { - xMinFP = seg->x0; - xMaxFP = seg->x1; - } else { - xMinFP = seg->x1; - xMaxFP = seg->x0; - } - if (seg->flags & splashXPathFlip) { - yMinFP = seg->y1; - yMaxFP = seg->y0; - } else { - yMinFP = seg->y0; - yMaxFP = seg->y1; - } - for (i = 1; i < xPath->length; ++i) { - seg = &xPath->segs[i]; - if (seg->x0 < xMinFP) { - xMinFP = seg->x0; - } else if (seg->x0 > xMaxFP) { - xMaxFP = seg->x0; - } - if (seg->x1 < xMinFP) { - xMinFP = seg->x1; - } else if (seg->x1 > xMaxFP) { - xMaxFP = seg->x1; - } - if (seg->flags & splashXPathFlip) { - if (seg->y0 > yMaxFP) { - yMaxFP = seg->y0; - } - } else { - if (seg->y1 > yMaxFP) { - yMaxFP = seg->y1; - } - } - } - xMin = splashFloor(xMinFP); - xMax = splashFloor(xMaxFP); - yMin = splashFloor(yMinFP); - yMax = splashFloor(yMaxFP); - } - - interY = yMin - 1; - xPathIdx = 0; - inter = NULL; - interLen = interSize = 0; -} - -SplashXPathScanner::~SplashXPathScanner() { - gfree(inter); -} - -void SplashXPathScanner::getBBoxAA(int *xMinA, int *yMinA, - int *xMaxA, int *yMaxA) { - *xMinA = xMin / splashAASize; - *yMinA = yMin / splashAASize; - *xMaxA = xMax / splashAASize; - *yMaxA = yMax / splashAASize; -} - -void SplashXPathScanner::getSpanBounds(int y, int *spanXMin, int *spanXMax) { - if (interY != y) { - computeIntersections(y); - } - if (interLen > 0) { - *spanXMin = inter[0].x0; - *spanXMax = inter[interLen - 1].x1; - } else { - *spanXMin = xMax + 1; - *spanXMax = xMax; - } -} - -GBool SplashXPathScanner::test(int x, int y) { - int count, i; - - if (interY != y) { - computeIntersections(y); - } - count = 0; - for (i = 0; i < interLen && inter[i].x0 <= x; ++i) { - if (x <= inter[i].x1) { - return gTrue; - } - count += inter[i].count; - } - return eo ? (count & 1) : (count != 0); -} - -GBool SplashXPathScanner::testSpan(int x0, int x1, int y) { - int count, xx1, i; - - if (interY != y) { - computeIntersections(y); - } - - count = 0; - for (i = 0; i < interLen && inter[i].x1 < x0; ++i) { - count += inter[i].count; - } - - // invariant: the subspan [x0,xx1] is inside the path - xx1 = x0 - 1; - while (xx1 < x1) { - if (i >= interLen) { - return gFalse; - } - if (inter[i].x0 > xx1 + 1 && - !(eo ? (count & 1) : (count != 0))) { - return gFalse; - } - if (inter[i].x1 > xx1) { - xx1 = inter[i].x1; - } - count += inter[i].count; - ++i; - } - - return gTrue; -} - -GBool SplashXPathScanner::getNextSpan(int y, int *x0, int *x1) { - int xx0, xx1; - - if (interY != y) { - computeIntersections(y); - } - if (interIdx >= interLen) { - return gFalse; - } - xx0 = inter[interIdx].x0; - xx1 = inter[interIdx].x1; - interCount += inter[interIdx].count; - ++interIdx; - while (interIdx < interLen && - (inter[interIdx].x0 <= xx1 || - (eo ? (interCount & 1) : (interCount != 0)))) { - if (inter[interIdx].x1 > xx1) { - xx1 = inter[interIdx].x1; - } - interCount += inter[interIdx].count; - ++interIdx; - } - *x0 = xx0; - *x1 = xx1; - return gTrue; -} - -void SplashXPathScanner::computeIntersections(int y) { - SplashCoord xSegMin, xSegMax, ySegMin, ySegMax, xx0, xx1; - SplashXPathSeg *seg; - int i, j; - - // find the first segment that intersects [y, y+1) - i = (y >= interY) ? xPathIdx : 0; - while (i < xPath->length && - xPath->segs[i].y0 < y && xPath->segs[i].y1 < y) { - ++i; - } - xPathIdx = i; - - // find all of the segments that intersect [y, y+1) and create an - // Intersect element for each one - interLen = 0; - for (j = i; j < xPath->length; ++j) { - seg = &xPath->segs[j]; - if (seg->flags & splashXPathFlip) { - ySegMin = seg->y1; - ySegMax = seg->y0; - } else { - ySegMin = seg->y0; - ySegMax = seg->y1; - } - - // ensure that: ySegMin < y+1 - // y <= ySegMax - if (ySegMin >= y + 1) { - break; - } - if (ySegMax < y) { - continue; - } - - if (interLen == interSize) { - if (interSize == 0) { - interSize = 16; - } else { - interSize *= 2; - } - inter = (SplashIntersect *)greallocn(inter, interSize, - sizeof(SplashIntersect)); - } - - if (seg->flags & splashXPathHoriz) { - xx0 = seg->x0; - xx1 = seg->x1; - } else if (seg->flags & splashXPathVert) { - xx0 = xx1 = seg->x0; - } else { - if (seg->x0 < seg->x1) { - xSegMin = seg->x0; - xSegMax = seg->x1; - } else { - xSegMin = seg->x1; - xSegMax = seg->x0; - } - // intersection with top edge - xx0 = seg->x0 + ((SplashCoord)y - seg->y0) * seg->dxdy; - // intersection with bottom edge - xx1 = seg->x0 + ((SplashCoord)y + 1 - seg->y0) * seg->dxdy; - // the segment may not actually extend to the top and/or bottom edges - if (xx0 < xSegMin) { - xx0 = xSegMin; - } else if (xx0 > xSegMax) { - xx0 = xSegMax; - } - if (xx1 < xSegMin) { - xx1 = xSegMin; - } else if (xx1 > xSegMax) { - xx1 = xSegMax; - } - } - if (xx0 < xx1) { - inter[interLen].x0 = splashFloor(xx0); - inter[interLen].x1 = splashFloor(xx1); - } else { - inter[interLen].x0 = splashFloor(xx1); - inter[interLen].x1 = splashFloor(xx0); - } - if (ySegMin <= y && - (SplashCoord)y < ySegMax && - !(seg->flags & splashXPathHoriz)) { - inter[interLen].count = eo ? 1 - : (seg->flags & splashXPathFlip) ? 1 : -1; - } else { - inter[interLen].count = 0; - } - ++interLen; - } - - qsort(inter, interLen, sizeof(SplashIntersect), &cmpIntersect); - - interY = y; - interIdx = 0; - interCount = 0; -} - -void SplashXPathScanner::renderAALine(SplashBitmap *aaBuf, - int *x0, int *x1, int y) { - int xx0, xx1, xx, xxMin, xxMax, yy; - Guchar mask; - SplashColorPtr p; - - memset(aaBuf->getDataPtr(), 0, aaBuf->getRowSize() * aaBuf->getHeight()); - xxMin = aaBuf->getWidth(); - xxMax = -1; - for (yy = 0; yy < splashAASize; ++yy) { - computeIntersections(splashAASize * y + yy); - while (interIdx < interLen) { - xx0 = inter[interIdx].x0; - xx1 = inter[interIdx].x1; - interCount += inter[interIdx].count; - ++interIdx; - while (interIdx < interLen && - (inter[interIdx].x0 <= xx1 || - (eo ? (interCount & 1) : (interCount != 0)))) { - if (inter[interIdx].x1 > xx1) { - xx1 = inter[interIdx].x1; - } - interCount += inter[interIdx].count; - ++interIdx; - } - if (xx0 < 0) { - xx0 = 0; - } - ++xx1; - if (xx1 > aaBuf->getWidth()) { - xx1 = aaBuf->getWidth(); - } - // set [xx0, xx1) to 1 - if (xx0 < xx1) { - xx = xx0; - p = aaBuf->getDataPtr() + yy * aaBuf->getRowSize() + (xx >> 3); - if (xx & 7) { - mask = 0xff >> (xx & 7); - if ((xx & ~7) == (xx1 & ~7)) { - mask &= (Guchar)(0xff00 >> (xx1 & 7)); - } - *p++ |= mask; - xx = (xx & ~7) + 8; - } - for (; xx + 7 < xx1; xx += 8) { - *p++ |= 0xff; - } - if (xx < xx1) { - *p |= (Guchar)(0xff00 >> (xx1 & 7)); - } - } - if (xx0 < xxMin) { - xxMin = xx0; - } - if (xx1 > xxMax) { - xxMax = xx1; - } - } - } - *x0 = xxMin / splashAASize; - *x1 = (xxMax - 1) / splashAASize; -} - -void SplashXPathScanner::clipAALine(SplashBitmap *aaBuf, - int *x0, int *x1, int y) { - int xx0, xx1, xx, yy; - Guchar mask; - SplashColorPtr p; - - for (yy = 0; yy < splashAASize; ++yy) { - xx = *x0 * splashAASize; - computeIntersections(splashAASize * y + yy); - while (interIdx < interLen && xx < (*x1 + 1) * splashAASize) { - xx0 = inter[interIdx].x0; - xx1 = inter[interIdx].x1; - interCount += inter[interIdx].count; - ++interIdx; - while (interIdx < interLen && - (inter[interIdx].x0 <= xx1 || - (eo ? (interCount & 1) : (interCount != 0)))) { - if (inter[interIdx].x1 > xx1) { - xx1 = inter[interIdx].x1; - } - interCount += inter[interIdx].count; - ++interIdx; - } - if (xx0 > aaBuf->getWidth()) { - xx0 = aaBuf->getWidth(); - } - // set [xx, xx0) to 0 - if (xx < xx0) { - p = aaBuf->getDataPtr() + yy * aaBuf->getRowSize() + (xx >> 3); - if (xx & 7) { - mask = (Guchar)(0xff00 >> (xx & 7)); - if ((xx & ~7) == (xx0 & ~7)) { - mask |= 0xff >> (xx0 & 7); - } - *p++ &= mask; - xx = (xx & ~7) + 8; - } - for (; xx + 7 <= xx0; xx += 8) { - *p++ = 0x00; - } - if (xx < xx0) { - *p &= 0xff >> (xx0 & 7); - } - } - if (xx1 >= xx) { - xx = xx1 + 1; - } - } - xx0 = (*x1 + 1) * splashAASize; - if (xx0 > aaBuf->getWidth()) xx0 = aaBuf->getWidth(); - // set [xx, xx0) to 0 - if (xx < xx0) { - p = aaBuf->getDataPtr() + yy * aaBuf->getRowSize() + (xx >> 3); - if (xx & 7) { - mask = (Guchar)(0xff00 >> (xx & 7)); - if ((xx & ~7) == (xx0 & ~7)) { - mask &= 0xff >> (xx0 & 7); - } - *p++ &= mask; - xx = (xx & ~7) + 8; - } - for (; xx + 7 <= xx0; xx += 8) { - *p++ = 0x00; - } - if (xx < xx0) { - *p &= 0xff >> (xx0 & 7); - } - } - } -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashXPathScanner.h b/Build/source/libs/poppler/poppler-0.12.4/splash/SplashXPathScanner.h deleted file mode 100644 index 1cc4f3cdecf..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/splash/SplashXPathScanner.h +++ /dev/null @@ -1,85 +0,0 @@ -//======================================================================== -// -// SplashXPathScanner.h -// -//======================================================================== - -#ifndef SPLASHXPATHSCANNER_H -#define SPLASHXPATHSCANNER_H - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include "SplashTypes.h" - -class SplashXPath; -class SplashBitmap; -struct SplashIntersect; - -//------------------------------------------------------------------------ -// SplashXPathScanner -//------------------------------------------------------------------------ - -class SplashXPathScanner { -public: - - // Create a new SplashXPathScanner object. <xPathA> must be sorted. - SplashXPathScanner(SplashXPath *xPathA, GBool eoA); - - ~SplashXPathScanner(); - - // Return the path's bounding box. - void getBBox(int *xMinA, int *yMinA, int *xMaxA, int *yMaxA) - { *xMinA = xMin; *yMinA = yMin; *xMaxA = xMax; *yMaxA = yMax; } - - // Return the path's bounding box. - void getBBoxAA(int *xMinA, int *yMinA, int *xMaxA, int *yMaxA); - - // Return the min/max x values for the span at <y>. - void getSpanBounds(int y, int *spanXMin, int *spanXMax); - - // Returns true if (<x>,<y>) is inside the path. - GBool test(int x, int y); - - // Returns true if the entire span ([<x0>,<x1>], <y>) is inside the - // path. - GBool testSpan(int x0, int x1, int y); - - // Returns the next span inside the path at <y>. If <y> is - // different than the previous call to getNextSpan, this returns the - // first span at <y>; otherwise it returns the next span (relative - // to the previous call to getNextSpan). Returns false if there are - // no more spans at <y>. - GBool getNextSpan(int y, int *x0, int *x1); - - // Renders one anti-aliased line into <aaBuf>. Returns the min and - // max x coordinates with non-zero pixels in <x0> and <x1>. - void renderAALine(SplashBitmap *aaBuf, int *x0, int *x1, int y); - - // Clips an anti-aliased line by setting pixels to zero. On entry, - // all non-zero pixels are between <x0> and <x1>. This function - // will update <x0> and <x1>. - void clipAALine(SplashBitmap *aaBuf, int *x0, int *x1, int y); - -private: - - void computeIntersections(int y); - - SplashXPath *xPath; - GBool eo; - int xMin, yMin, xMax, yMax; - - int interY; // current y value - int interIdx; // current index into <inter> - used by - // getNextSpan - int interCount; // current EO/NZWN counter - used by - // getNextSpan - int xPathIdx; // current index into <xPath> - used by - // computeIntersections - SplashIntersect *inter; // intersections array for <interY> - int interLen; // number of intersections in <inter> - int interSize; // size of the <inter> array -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/test/CMakeLists.txt b/Build/source/libs/poppler/poppler-0.12.4/test/CMakeLists.txt deleted file mode 100644 index 478cb31a58f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/test/CMakeLists.txt +++ /dev/null @@ -1,52 +0,0 @@ - -if (ENABLE_SPLASH) - - set (perf_test_SRCS - perf-test.cc - perf-test-preview-dummy.cc - ) - add_executable(perf-test ${perf_test_SRCS}) - target_link_libraries(perf-test poppler) - -endif (ENABLE_SPLASH) - -if (GTK_FOUND) - - add_definitions(${GTK2_CFLAGS}) - - include_directories( - ${CMAKE_SOURCE_DIR}/glib - ${CMAKE_BINARY_DIR}/glib - ) - - set (gtk_splash_test_SRCS - gtk-splash-test.cc - ) - poppler_add_test(gtk-splash-test BUILD_GTK_TESTS ${gtk_splash_test_SRCS}) - target_link_libraries(gtk-splash-test poppler ${GTK2_LIBRARIES}) - - if (HAVE_CAIRO) - - set (gtk_cairo_test_SRCS - gtk-cairo-test.cc - ) - poppler_add_test(gtk-cairo-test BUILD_GTK_TESTS ${gtk_cairo_test_SRCS}) - target_link_libraries(gtk-cairo-test poppler-glib ${GTK2_LIBRARIES}) - - set (pdf_inspector_SRCS - pdf-inspector.cc - ) - poppler_add_test(pdf-inspector BUILD_GTK_TESTS ${pdf_inspector_SRCS}) - target_link_libraries(pdf-inspector poppler-glib ${GTK2_LIBRARIES}) - - endif (HAVE_CAIRO) - -endif (GTK_FOUND) - -set (pdf_fullrewrite_SRCS - pdf-fullrewrite.cc -) -add_executable(pdf-fullrewrite ${pdf_fullrewrite_SRCS}) -target_link_libraries(pdf-fullrewrite poppler) - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/test/Makefile.am b/Build/source/libs/poppler/poppler-0.12.4/test/Makefile.am deleted file mode 100644 index 38bf72dc9d6..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/test/Makefile.am +++ /dev/null @@ -1,97 +0,0 @@ -if BUILD_GTK_TEST - -if BUILD_SPLASH_OUTPUT - -gtk_splash_test = \ - gtk-splash-test - -splash_includes = \ - -I$(top_srcdir)/splash - -endif - -if BUILD_CAIRO_OUTPUT - -gtk_cairo_test = \ - gtk-cairo-test - -pdf_inspector = \ - pdf_inspector - -cairo_includes = \ - $(CAIRO_CFLAGS) \ - $(FREETYPE_CFLAGS) - -endif - -endif - -if BUILD_SPLASH_OUTPUT - -perf_test = \ - perf-test - -endif - -pdf_fullrewrite = \ - pdf-fullrewrite - -INCLUDES = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/poppler \ - -I$(top_srcdir)/glib \ - -I$(top_builddir)/glib \ - $(cairo_includes) \ - $(GTK_TEST_CFLAGS) \ - $(FONTCONFIG_CFLAGS) - -noinst_PROGRAMS = $(gtk_splash_test) $(gtk_cairo_test) $(pdf_inspector) $(perf_test) $(pdf_fullrewrite) - -AM_LDFLAGS = @auto_import_flags@ - -gtk_splash_test_SOURCES = \ - gtk-splash-test.cc - -gtk_splash_test_LDADD = \ - $(top_builddir)/poppler/libpoppler.la \ - $(GTK_TEST_LIBS) - -gtk_cairo_test_SOURCES = \ - gtk-cairo-test.cc - -gtk_cairo_test_LDADD = \ - $(top_builddir)/poppler/libpoppler.la \ - $(top_builddir)/glib/libpoppler-glib.la \ - $(CAIRO_LIBS) \ - $(GTK_TEST_LIBS) \ - $(FONTCONFIG_LIBS) - -pdf_inspector_SOURCES = \ - pdf-inspector.cc - -pdf_inspector_LDADD = \ - $(top_builddir)/poppler/libpoppler-cairo.la \ - $(top_builddir)/poppler/libpoppler.la \ - $(CAIRO_LIBS) \ - $(FREETYPE_LIBS) \ - $(GTK_TEST_LIBS) \ - $(X_EXTRA_LIBS) - -perf_test_SOURCES = \ - perf-test.cc \ - perf-test-preview-dummy.cc - -perf_test_LDADD = \ - $(top_builddir)/poppler/libpoppler.la \ - $(FREETYPE_LIBS) \ - $(X_EXTRA_LIBS) - -pdf_fullrewrite_SOURCES = \ - pdf-fullrewrite.cc - -pdf_fullrewrite_LDADD = \ - $(top_builddir)/poppler/libpoppler.la - -EXTRA_DIST = \ - pdf-operators.c \ - pdf-inspector.ui diff --git a/Build/source/libs/poppler/poppler-0.12.4/test/Makefile.in b/Build/source/libs/poppler/poppler-0.12.4/test/Makefile.in deleted file mode 100644 index e0437e3be9f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/test/Makefile.in +++ /dev/null @@ -1,682 +0,0 @@ -# Makefile.in generated by automake 1.11 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -noinst_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \ - $(am__EXEEXT_4) $(am__EXEEXT_5) -subdir = test -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ - $(top_srcdir)/m4/define-dir.m4 $(top_srcdir)/m4/gtk-doc.m4 \ - $(top_srcdir)/m4/libjpeg.m4 $(top_srcdir)/m4/libpng.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/qt.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h \ - $(top_builddir)/poppler/poppler-config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -@BUILD_GTK_TEST_TRUE@@BUILD_SPLASH_OUTPUT_TRUE@am__EXEEXT_1 = gtk-splash-test$(EXEEXT) -@BUILD_CAIRO_OUTPUT_TRUE@@BUILD_GTK_TEST_TRUE@am__EXEEXT_2 = gtk-cairo-test$(EXEEXT) -@BUILD_CAIRO_OUTPUT_TRUE@@BUILD_GTK_TEST_TRUE@am__EXEEXT_3 = pdf_inspector$(EXEEXT) -@BUILD_SPLASH_OUTPUT_TRUE@am__EXEEXT_4 = perf-test$(EXEEXT) -am__EXEEXT_5 = pdf-fullrewrite$(EXEEXT) -PROGRAMS = $(noinst_PROGRAMS) -am_gtk_cairo_test_OBJECTS = gtk-cairo-test.$(OBJEXT) -gtk_cairo_test_OBJECTS = $(am_gtk_cairo_test_OBJECTS) -am__DEPENDENCIES_1 = -gtk_cairo_test_DEPENDENCIES = $(top_builddir)/poppler/libpoppler.la \ - $(top_builddir)/glib/libpoppler-glib.la $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) -am__v_lt_0 = --silent -am_gtk_splash_test_OBJECTS = gtk-splash-test.$(OBJEXT) -gtk_splash_test_OBJECTS = $(am_gtk_splash_test_OBJECTS) -gtk_splash_test_DEPENDENCIES = $(top_builddir)/poppler/libpoppler.la \ - $(am__DEPENDENCIES_1) -am_pdf_fullrewrite_OBJECTS = pdf-fullrewrite.$(OBJEXT) -pdf_fullrewrite_OBJECTS = $(am_pdf_fullrewrite_OBJECTS) -pdf_fullrewrite_DEPENDENCIES = $(top_builddir)/poppler/libpoppler.la -am_pdf_inspector_OBJECTS = pdf-inspector.$(OBJEXT) -pdf_inspector_OBJECTS = $(am_pdf_inspector_OBJECTS) -pdf_inspector_DEPENDENCIES = \ - $(top_builddir)/poppler/libpoppler-cairo.la \ - $(top_builddir)/poppler/libpoppler.la $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) -am_perf_test_OBJECTS = perf-test.$(OBJEXT) \ - perf-test-preview-dummy.$(OBJEXT) -perf_test_OBJECTS = $(am_perf_test_OBJECTS) -perf_test_DEPENDENCIES = $(top_builddir)/poppler/libpoppler.la \ - $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/poppler -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -AM_V_CXX = $(am__v_CXX_$(V)) -am__v_CXX_ = $(am__v_CXX_$(AM_DEFAULT_VERBOSITY)) -am__v_CXX_0 = @echo " CXX " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CXXLD = $(am__v_CXXLD_$(V)) -am__v_CXXLD_ = $(am__v_CXXLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CXXLD_0 = @echo " CXXLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -SOURCES = $(gtk_cairo_test_SOURCES) $(gtk_splash_test_SOURCES) \ - $(pdf_fullrewrite_SOURCES) $(pdf_inspector_SOURCES) \ - $(perf_test_SOURCES) -DIST_SOURCES = $(gtk_cairo_test_SOURCES) $(gtk_splash_test_SOURCES) \ - $(pdf_fullrewrite_SOURCES) $(pdf_inspector_SOURCES) \ - $(perf_test_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ABIWORD_CFLAGS = @ABIWORD_CFLAGS@ -ABIWORD_LIBS = @ABIWORD_LIBS@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAIRO_CFLAGS = @CAIRO_CFLAGS@ -CAIRO_FEATURE = @CAIRO_FEATURE@ -CAIRO_LIBS = @CAIRO_LIBS@ -CAIRO_REQ = @CAIRO_REQ@ -CAIRO_VERSION = @CAIRO_VERSION@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ -FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ -FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ -FREETYPE_CONFIG = @FREETYPE_CONFIG@ -FREETYPE_LIBS = @FREETYPE_LIBS@ -GDK_CFLAGS = @GDK_CFLAGS@ -GDK_FEATURE = @GDK_FEATURE@ -GDK_LIBS = @GDK_LIBS@ -GLIB_MKENUMS = @GLIB_MKENUMS@ -GREP = @GREP@ -GTKDOC_CHECK = @GTKDOC_CHECK@ -GTK_TEST_CFLAGS = @GTK_TEST_CFLAGS@ -GTK_TEST_LIBS = @GTK_TEST_LIBS@ -HTML_DIR = @HTML_DIR@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LCMS_CFLAGS = @LCMS_CFLAGS@ -LCMS_LIBS = @LCMS_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBJPEG_LIBS = @LIBJPEG_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOPENJPEG_LIBS = @LIBOPENJPEG_LIBS@ -LIBPNG_LIBS = @LIBPNG_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -MOCQT4 = @MOCQT4@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PC_REQUIRES = @PC_REQUIRES@ -PC_REQUIRES_PRIVATE = @PC_REQUIRES_PRIVATE@ -PKG_CONFIG = @PKG_CONFIG@ -POPPLER_DATADIR = @POPPLER_DATADIR@ -POPPLER_GLIB_CFLAGS = @POPPLER_GLIB_CFLAGS@ -POPPLER_GLIB_DISABLE_DEPRECATED = @POPPLER_GLIB_DISABLE_DEPRECATED@ -POPPLER_GLIB_DISABLE_SINGLE_INCLUDES = @POPPLER_GLIB_DISABLE_SINGLE_INCLUDES@ -POPPLER_GLIB_LIBS = @POPPLER_GLIB_LIBS@ -POPPLER_MAJOR_VERSION = @POPPLER_MAJOR_VERSION@ -POPPLER_MICRO_VERSION = @POPPLER_MICRO_VERSION@ -POPPLER_MINOR_VERSION = @POPPLER_MINOR_VERSION@ -POPPLER_QT4_CFLAGS = @POPPLER_QT4_CFLAGS@ -POPPLER_QT4_CXXFLAGS = @POPPLER_QT4_CXXFLAGS@ -POPPLER_QT4_LIBS = @POPPLER_QT4_LIBS@ -POPPLER_QT4_TEST_CFLAGS = @POPPLER_QT4_TEST_CFLAGS@ -POPPLER_QT4_TEST_LIBS = @POPPLER_QT4_TEST_LIBS@ -POPPLER_QT_CXXFLAGS = @POPPLER_QT_CXXFLAGS@ -POPPLER_QT_LIBS = @POPPLER_QT_LIBS@ -PTHREAD_CC = @PTHREAD_CC@ -PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ -PTHREAD_LIBS = @PTHREAD_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZLIB_LIBS = @ZLIB_LIBS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -acx_pthread_config = @acx_pthread_config@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -auto_import_flags = @auto_import_flags@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -create_shared_lib = @create_shared_lib@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -win32_libs = @win32_libs@ -@BUILD_GTK_TEST_TRUE@@BUILD_SPLASH_OUTPUT_TRUE@gtk_splash_test = \ -@BUILD_GTK_TEST_TRUE@@BUILD_SPLASH_OUTPUT_TRUE@ gtk-splash-test - -@BUILD_GTK_TEST_TRUE@@BUILD_SPLASH_OUTPUT_TRUE@splash_includes = \ -@BUILD_GTK_TEST_TRUE@@BUILD_SPLASH_OUTPUT_TRUE@ -I$(top_srcdir)/splash - -@BUILD_CAIRO_OUTPUT_TRUE@@BUILD_GTK_TEST_TRUE@gtk_cairo_test = \ -@BUILD_CAIRO_OUTPUT_TRUE@@BUILD_GTK_TEST_TRUE@ gtk-cairo-test - -@BUILD_CAIRO_OUTPUT_TRUE@@BUILD_GTK_TEST_TRUE@pdf_inspector = \ -@BUILD_CAIRO_OUTPUT_TRUE@@BUILD_GTK_TEST_TRUE@ pdf_inspector - -@BUILD_CAIRO_OUTPUT_TRUE@@BUILD_GTK_TEST_TRUE@cairo_includes = \ -@BUILD_CAIRO_OUTPUT_TRUE@@BUILD_GTK_TEST_TRUE@ $(CAIRO_CFLAGS) \ -@BUILD_CAIRO_OUTPUT_TRUE@@BUILD_GTK_TEST_TRUE@ $(FREETYPE_CFLAGS) - -@BUILD_SPLASH_OUTPUT_TRUE@perf_test = \ -@BUILD_SPLASH_OUTPUT_TRUE@ perf-test - -pdf_fullrewrite = \ - pdf-fullrewrite - -INCLUDES = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/poppler \ - -I$(top_srcdir)/glib \ - -I$(top_builddir)/glib \ - $(cairo_includes) \ - $(GTK_TEST_CFLAGS) \ - $(FONTCONFIG_CFLAGS) - -AM_LDFLAGS = @auto_import_flags@ -gtk_splash_test_SOURCES = \ - gtk-splash-test.cc - -gtk_splash_test_LDADD = \ - $(top_builddir)/poppler/libpoppler.la \ - $(GTK_TEST_LIBS) - -gtk_cairo_test_SOURCES = \ - gtk-cairo-test.cc - -gtk_cairo_test_LDADD = \ - $(top_builddir)/poppler/libpoppler.la \ - $(top_builddir)/glib/libpoppler-glib.la \ - $(CAIRO_LIBS) \ - $(GTK_TEST_LIBS) \ - $(FONTCONFIG_LIBS) - -pdf_inspector_SOURCES = \ - pdf-inspector.cc - -pdf_inspector_LDADD = \ - $(top_builddir)/poppler/libpoppler-cairo.la \ - $(top_builddir)/poppler/libpoppler.la \ - $(CAIRO_LIBS) \ - $(FREETYPE_LIBS) \ - $(GTK_TEST_LIBS) \ - $(X_EXTRA_LIBS) - -perf_test_SOURCES = \ - perf-test.cc \ - perf-test-preview-dummy.cc - -perf_test_LDADD = \ - $(top_builddir)/poppler/libpoppler.la \ - $(FREETYPE_LIBS) \ - $(X_EXTRA_LIBS) - -pdf_fullrewrite_SOURCES = \ - pdf-fullrewrite.cc - -pdf_fullrewrite_LDADD = \ - $(top_builddir)/poppler/libpoppler.la - -EXTRA_DIST = \ - pdf-operators.c \ - pdf-inspector.ui - -all: all-am - -.SUFFIXES: -.SUFFIXES: .cc .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign test/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list -gtk-cairo-test$(EXEEXT): $(gtk_cairo_test_OBJECTS) $(gtk_cairo_test_DEPENDENCIES) - @rm -f gtk-cairo-test$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(gtk_cairo_test_OBJECTS) $(gtk_cairo_test_LDADD) $(LIBS) -gtk-splash-test$(EXEEXT): $(gtk_splash_test_OBJECTS) $(gtk_splash_test_DEPENDENCIES) - @rm -f gtk-splash-test$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(gtk_splash_test_OBJECTS) $(gtk_splash_test_LDADD) $(LIBS) -pdf-fullrewrite$(EXEEXT): $(pdf_fullrewrite_OBJECTS) $(pdf_fullrewrite_DEPENDENCIES) - @rm -f pdf-fullrewrite$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(pdf_fullrewrite_OBJECTS) $(pdf_fullrewrite_LDADD) $(LIBS) -pdf_inspector$(EXEEXT): $(pdf_inspector_OBJECTS) $(pdf_inspector_DEPENDENCIES) - @rm -f pdf_inspector$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(pdf_inspector_OBJECTS) $(pdf_inspector_LDADD) $(LIBS) -perf-test$(EXEEXT): $(perf_test_OBJECTS) $(perf_test_DEPENDENCIES) - @rm -f perf-test$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(perf_test_OBJECTS) $(perf_test_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gtk-cairo-test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gtk-splash-test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pdf-fullrewrite.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pdf-inspector.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/perf-test-preview-dummy.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/perf-test.Po@am__quote@ - -.cc.o: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< - -.cc.obj: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.cc.lo: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-noinstPROGRAMS ctags distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ - pdf pdf-am ps ps-am tags uninstall uninstall-am - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/Build/source/libs/poppler/poppler-0.12.4/test/gtk-cairo-test.cc b/Build/source/libs/poppler/poppler-0.12.4/test/gtk-cairo-test.cc deleted file mode 100644 index 8c405685027..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/test/gtk-cairo-test.cc +++ /dev/null @@ -1,190 +0,0 @@ -//======================================================================== -// -// GDKSplashOutputDev.cc -// -// Copyright 2003 Glyph & Cog, LLC -// Copyright 2004 Red Hat, Inc. (GDK port) -// -//======================================================================== - -#include <config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <math.h> -#include <gdk/gdk.h> -#include <gtk/gtk.h> -#include <poppler.h> - -typedef struct -{ - GtkWidget *window; - GtkWidget *sw; - GtkWidget *drawing_area; - GtkWidget *spin_button; - PopplerPage *page; - PopplerDocument *document; - cairo_surface_t *surface; - int *window_count; -} View; - -static void -drawing_area_expose (GtkWidget *drawing_area, - GdkEventExpose *event, - void *data) -{ - View *v = (View*) data; - cairo_t *cr; - - gdk_window_clear (drawing_area->window); - cr = gdk_cairo_create (drawing_area->window); - - cairo_set_source_surface (cr, v->surface, 0, 0); - cairo_paint (cr); - cairo_destroy (cr); -} - -static void -view_set_page (View *v, int page) -{ - int w, h; - double width, height; - cairo_t *cr; - - v->page = poppler_document_get_page (v->document, page); - poppler_page_get_size (v->page, &width, &height); - w = (int) ceil(width); - h = (int) ceil(height); - cairo_surface_destroy (v->surface); - v->surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, w, h); - cr = cairo_create (v->surface); - poppler_page_render (v->page, cr); - cairo_destroy (cr); - gtk_widget_set_size_request (v->drawing_area, w, h); - gtk_widget_queue_draw (v->drawing_area); - gtk_spin_button_set_value (GTK_SPIN_BUTTON (v->spin_button), page); -} - -static void -page_changed_callback (GtkSpinButton *button, View *v) -{ - int page; - - page = gtk_spin_button_get_value_as_int (button); - view_set_page (v, page); -} - -static void -destroy_window_callback (GtkWindow *window, View *v) -{ - if (--(*v->window_count) == 0) - gtk_main_quit(); -} - -static View* -view_new (const char *filename, int *window_count) -{ - View *v; - GtkWidget *window; - GtkWidget *drawing_area; - GtkWidget *sw; - GtkWidget *vbox, *hbox; - GtkWidget *spin_button; - int n_pages; - - v = g_new0 (View, 1); - - v->document = poppler_document_new_from_file (filename, NULL, NULL); - if (v->document == NULL) - return NULL; - - window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - vbox = gtk_vbox_new(FALSE, 5); - - gtk_container_add (GTK_CONTAINER (window), vbox); - drawing_area = gtk_drawing_area_new (); - - sw = gtk_scrolled_window_new (NULL, NULL); - - gtk_box_pack_end (GTK_BOX (vbox), sw, TRUE, TRUE, 0); - gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (sw), - drawing_area); - - n_pages = poppler_document_get_n_pages (v->document); - spin_button = gtk_spin_button_new_with_range (0, n_pages - 1, 1); - g_signal_connect (G_OBJECT (spin_button), "value-changed", - G_CALLBACK (page_changed_callback), v); - hbox = gtk_hbox_new (FALSE, 5); - gtk_box_pack_end (GTK_BOX (hbox), spin_button, FALSE, TRUE, 0); - - gtk_box_pack_end (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); - - gtk_widget_show_all (window); - gtk_widget_realize (window); - - v->window = window; - v->drawing_area = drawing_area; - v->sw = sw; - v->window_count = window_count; - v->spin_button = spin_button; - - g_signal_connect (drawing_area, - "expose_event", - G_CALLBACK (drawing_area_expose), - (void*) v); - - g_signal_connect (window, - "destroy", - G_CALLBACK (destroy_window_callback), - (void*) v); - - return v; -} - -static int option_page = 0; -static GOptionEntry demo_options[] = { - { "page", 0, 0, G_OPTION_ARG_INT, &option_page, "Page number", "PAGE" }, - { NULL } -}; - -int -main (int argc, char *argv []) -{ - View *v; - int i, window_count; - GOptionContext *ctx; - - ctx = g_option_context_new("FILENAME ..."); - g_option_context_add_main_entries(ctx, demo_options, "main"); - g_option_context_parse(ctx, &argc, &argv, NULL); - g_option_context_free(ctx); - - gtk_init (&argc, &argv); - - if (argc == 1) - { - char *basename = g_path_get_basename (argv[0]); - fprintf (stderr, "usage: %s PDF-FILES...\n", basename); - g_free (basename); - return -1; - } - - window_count = 0; - for (i = 1; i < argc; i++) { - v = view_new (argv[i], &window_count); - if (v == NULL) { - g_printerr ("Error loading %s\n", argv[i]); - continue; - } - - view_set_page (v, option_page); - window_count++; - } - - if (window_count > 0) - gtk_main (); - - return 0; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/test/gtk-splash-test.cc b/Build/source/libs/poppler/poppler-0.12.4/test/gtk-splash-test.cc deleted file mode 100644 index d5a41d308d5..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/test/gtk-splash-test.cc +++ /dev/null @@ -1,309 +0,0 @@ -//======================================================================== -// -// GDKSplashOutputDev.cc -// -// Copyright 2003 Glyph & Cog, LLC -// Copyright 2004 Red Hat, Inc. (GDK port) -// -//======================================================================== - -#include <config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <goo/gmem.h> -#include <splash/SplashTypes.h> -#include <splash/SplashBitmap.h> -#include "Object.h" -#include "SplashOutputDev.h" -#include "GfxState.h" - -#include <gdk/gdk.h> - -#include "PDFDoc.h" -#include "GlobalParams.h" -#include "ErrorCodes.h" -#include <gtk/gtk.h> - -//------------------------------------------------------------------------ - -#define xOutMaxRGBCube 6 // max size of RGB color cube - -//------------------------------------------------------------------------ -// GDKSplashOutputDev -//------------------------------------------------------------------------ - -class GDKSplashOutputDev: public SplashOutputDev { -public: - - GDKSplashOutputDev(GdkScreen *screen, - void (*redrawCbkA)(void *data), - void *redrawCbkDataA, SplashColor sc); - - virtual ~GDKSplashOutputDev(); - - //----- initialization and control - - // End a page. - virtual void endPage(); - - // Dump page contents to display. - virtual void dump(); - - //----- update text state - virtual void updateFont(GfxState *state); - - //----- special access - - // Clear out the document (used when displaying an empty window). - void clear(); - - // Copy the rectangle (srcX, srcY, width, height) to (destX, destY) - // in destDC. - void redraw(int srcX, int srcY, - GdkDrawable *drawable, - int destX, int destY, - int width, int height); - -private: - - int incrementalUpdate; - void (*redrawCbk)(void *data); - void *redrawCbkData; -}; - -//------------------------------------------------------------------------ -// Constants and macros -//------------------------------------------------------------------------ - -#define xoutRound(x) ((int)(x + 0.5)) - -//------------------------------------------------------------------------ -// GDKSplashOutputDev -//------------------------------------------------------------------------ - -GDKSplashOutputDev::GDKSplashOutputDev(GdkScreen *screen, - void (*redrawCbkA)(void *data), - void *redrawCbkDataA, SplashColor sc): - SplashOutputDev(splashModeRGB8, 4, gFalse, sc), - incrementalUpdate (1) -{ - redrawCbk = redrawCbkA; - redrawCbkData = redrawCbkDataA; -} - -GDKSplashOutputDev::~GDKSplashOutputDev() { -} - -void GDKSplashOutputDev::clear() { - startDoc(NULL); - startPage(0, NULL); -} - -void GDKSplashOutputDev::endPage() { - SplashOutputDev::endPage(); - if (!incrementalUpdate) { - (*redrawCbk)(redrawCbkData); - } -} - -void GDKSplashOutputDev::dump() { - if (incrementalUpdate && redrawCbk) { - (*redrawCbk)(redrawCbkData); - } -} - -void GDKSplashOutputDev::updateFont(GfxState *state) { - SplashOutputDev::updateFont(state); -} - -void GDKSplashOutputDev::redraw(int srcX, int srcY, - GdkDrawable *drawable, - int destX, int destY, - int width, int height) { - GdkGC *gc; - int gdk_rowstride; - - gdk_rowstride = getBitmap()->getRowSize(); - gc = gdk_gc_new (drawable); - - gdk_draw_rgb_image (drawable, gc, - destX, destY, - width, height, - GDK_RGB_DITHER_NORMAL, - getBitmap()->getDataPtr() + srcY * gdk_rowstride + srcX * 3, - gdk_rowstride); - - g_object_unref (gc); -} - - -typedef struct -{ - GtkWidget *window; - GtkWidget *sw; - GtkWidget *drawing_area; - GDKSplashOutputDev *out; - PDFDoc *doc; -} View; - -static void -drawing_area_expose (GtkWidget *drawing_area, - GdkEventExpose *event, - void *data) -{ - View *v = (View*) data; - GdkRectangle document; - GdkRectangle draw; - - gdk_window_clear (drawing_area->window); - - document.x = 0; - document.y = 0; - document.width = v->out->getBitmapWidth(); - document.height = v->out->getBitmapHeight(); - - if (gdk_rectangle_intersect (&document, &event->area, &draw)) - { - v->out->redraw (draw.x, draw.y, - drawing_area->window, - draw.x, draw.y, - draw.width, draw.height); - } -} - -static int -view_load (View *v, - const char *filename) -{ - PDFDoc *newDoc; - int err; - GooString *filename_g; - int w, h; - - filename_g = new GooString (filename); - - // open the PDF file - newDoc = new PDFDoc(filename_g, 0, 0); - - delete filename_g; - - if (!newDoc->isOk()) - { - err = newDoc->getErrorCode(); - delete newDoc; - return err; - } - - if (v->doc) - delete v->doc; - v->doc = newDoc; - - v->out->startDoc(v->doc->getXRef()); - - v->doc->displayPage (v->out, 1, 72, 72, 0, gFalse, gTrue, gTrue); - - w = v->out->getBitmapWidth(); - h = v->out->getBitmapHeight(); - - gtk_widget_set_size_request (v->drawing_area, w, h); - - return errNone; -} - -static void -view_show (View *v) -{ - gtk_widget_show (v->window); -} - -static void -redraw_callback (void *data) -{ - View *v = (View*) data; - - gtk_widget_queue_draw (v->drawing_area); -} - -static View* -view_new (void) -{ - View *v; - GtkWidget *window; - GtkWidget *drawing_area; - GtkWidget *sw; - - window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - - drawing_area = gtk_drawing_area_new (); - - sw = gtk_scrolled_window_new (NULL, NULL); - - gtk_container_add (GTK_CONTAINER (window), sw); - gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (sw), drawing_area); - - gtk_widget_show_all (sw); - - v = g_new0 (View, 1); - - v->window = window; - v->drawing_area = drawing_area; - v->sw = sw; - SplashColor sc; - sc[0] = 255; - sc[1] = 255; - sc[2] = 255; - v->out = new GDKSplashOutputDev (gtk_widget_get_screen (window), - redraw_callback, (void*) v, sc); - v->doc = 0; - - g_signal_connect (drawing_area, - "expose_event", - G_CALLBACK (drawing_area_expose), - (void*) v); - - return v; -} - -int -main (int argc, char *argv []) -{ - View *v; - int i; - - gtk_init (&argc, &argv); - - globalParams = new GlobalParams(); - - if (argc == 1) - { - fprintf (stderr, "usage: %s PDF-FILES...\n", argv[0]); - return -1; - } - - - i = 1; - while (i < argc) - { - int err; - - v = view_new (); - - err = view_load (v, argv[i]); - - if (err != errNone) - g_printerr ("Error loading document!\n"); - - view_show (v); - - ++i; - } - - gtk_main (); - - delete globalParams; - - return 0; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/test/pdf-fullrewrite.cc b/Build/source/libs/poppler/poppler-0.12.4/test/pdf-fullrewrite.cc deleted file mode 100644 index 9658e55a6dc..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/test/pdf-fullrewrite.cc +++ /dev/null @@ -1,46 +0,0 @@ -//======================================================================== -// -// pdf-fullrewrite.cc -// -// Copyright 2007 Julien Rebetez -// -//======================================================================== -#include "config.h" -#include <poppler-config.h> -#include "GlobalParams.h" -#include "Error.h" -#include "PDFDoc.h" -#include "goo/GooString.h" - -int main (int argc, char *argv[]) -{ - PDFDoc *doc; - GooString *inputName, *outputName; - - // parse args - if (argc < 3) { - fprintf(stderr, "usage: %s INPUT-FILE OUTPUT-FILE\n", argv[0]); - return 1; - } - - inputName = new GooString(argv[1]); - outputName = new GooString(argv[2]); - - globalParams = new GlobalParams(); - - doc = new PDFDoc(inputName); - - if (!doc->isOk()) { - delete doc; - fprintf(stderr, "Error loading document !\n"); - return 1; - } - - - int res = doc->saveAs(outputName, writeForceRewrite); - - delete doc; - delete globalParams; - delete outputName; - return res; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/test/pdf-inspector.cc b/Build/source/libs/poppler/poppler-0.12.4/test/pdf-inspector.cc deleted file mode 100644 index 24bebbd61b7..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/test/pdf-inspector.cc +++ /dev/null @@ -1,373 +0,0 @@ -//======================================================================== -// -// GDKSplashOutputDev.cc -// -// Copyright 2003 Glyph & Cog, LLC -// Copyright 2004 Red Hat, Inc. (GDK port) -// -//======================================================================== - -#include <config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <goo/gmem.h> -#include <goo/GooHash.h> -#include <goo/GooTimer.h> -#include <splash/SplashTypes.h> -#include <splash/SplashBitmap.h> -#include "Object.h" -#include "ProfileData.h" -#include "GfxState.h" - -#include <gdk/gdk.h> -#include "CairoOutputDev.h" - -#include "PDFDoc.h" -#include "GlobalParams.h" -#include "ErrorCodes.h" -#include <gtk/gtk.h> - - -// Mapping -#include "pdf-operators.c" - -enum { - OP_STRING, - OP_COUNT, - OP_TOTAL, - OP_MIN, - OP_MAX, - N_COLUMNS -}; - -class PdfInspector { -public: - - PdfInspector(void); - - void set_file_name (const char *file_name); - void load (const char *file_name); - void run (void); - void error_dialog (const char *error_message); - void analyze_page (int page); - -private: - static void on_file_activated (GtkWidget *widget, PdfInspector *inspector); - static void on_selection_changed (GtkTreeSelection *selection, PdfInspector *inspector); - static void on_analyze_clicked (GtkWidget *widget, PdfInspector *inspector); - - GtkBuilder* builder; - GtkTreeModel *model; - PDFDoc *doc; - CairoOutputDev *output; -}; - - - -PdfInspector::PdfInspector(void) -{ - GtkWidget *widget; - GError* error = NULL; - - builder = gtk_builder_new (); - - if (!gtk_builder_add_from_file (builder, "./pdf-inspector.ui", &error)) - { - g_warning ("Couldn't load builder file: %s", error->message); - g_error_free (error); - } - - widget = GTK_WIDGET (gtk_builder_get_object (builder, "pdf_file_chooser_button")); - g_signal_connect (widget, "selection-changed", G_CALLBACK (on_file_activated), this); - - widget = GTK_WIDGET (gtk_builder_get_object (builder, "analyze_button")); - g_signal_connect (widget, "clicked", G_CALLBACK (on_analyze_clicked), this); - - // setup the TreeView - widget = GTK_WIDGET (gtk_builder_get_object (builder, "pdf_tree_view")); - g_signal_connect (gtk_tree_view_get_selection (GTK_TREE_VIEW (widget)), - "changed", G_CALLBACK (on_selection_changed), this); - model = (GtkTreeModel *)gtk_list_store_new (N_COLUMNS, G_TYPE_STRING, G_TYPE_INT, - G_TYPE_DOUBLE, G_TYPE_DOUBLE, G_TYPE_DOUBLE); - gtk_tree_view_set_model (GTK_TREE_VIEW (widget), model); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (widget), - 0, "Operation", - gtk_cell_renderer_text_new (), - "text", OP_STRING, - NULL); - - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (widget), - 1, "Count", - gtk_cell_renderer_text_new (), - "text", OP_COUNT, - NULL); - - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (widget), - 2, "Elapsed", - gtk_cell_renderer_text_new (), - "text", OP_TOTAL, - NULL); - - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (widget), - 3, "Min", - gtk_cell_renderer_text_new (), - "text", OP_MIN, - NULL); - - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (widget), - 4, "Max", - gtk_cell_renderer_text_new (), - "text", OP_MAX, - NULL); - - for (int i = 0; i < N_COLUMNS; i++) - { - GtkTreeViewColumn *column; - - column = gtk_tree_view_get_column (GTK_TREE_VIEW (widget), i); - gtk_tree_view_column_set_sort_column_id (column, i); - } - doc = NULL; - output = new CairoOutputDev(); - - // set up initial widgets - load (NULL); -} - -void -PdfInspector::set_file_name(const char *file_name) -{ - GtkWidget *widget; - - widget = GTK_WIDGET (gtk_builder_get_object (builder, "pdf_file_chooser_button")); - gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (widget), file_name); -} - -void -PdfInspector::on_file_activated (GtkWidget *widget, PdfInspector *inspector) -{ - gchar *file_name; - - file_name = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (widget)); - if (file_name) - inspector->load (file_name); - - g_free (file_name); -} - -void -PdfInspector::on_selection_changed (GtkTreeSelection *selection, PdfInspector *inspector) -{ - GtkWidget *label; - size_t i; - GtkTreeModel *model; - GtkTreeIter iter; - gchar *op = NULL; - - label = GTK_WIDGET (gtk_builder_get_object (inspector->builder, "description_label")); - gtk_label_set_markup (GTK_LABEL (label), "<i>No Description</i>"); - - if (gtk_tree_selection_get_selected (selection, &model, &iter)) - { - gtk_tree_model_get (model, &iter, - OP_STRING, &op, - -1); - - } - - if (op == NULL) - return; - - for (i = 0; i < G_N_ELEMENTS (op_mapping); i++) - { - - if (!strcmp (op, op_mapping[i].op)) - { - gchar *text; - text = g_strdup_printf ("<i>%s</i>", op_mapping[i].description); - gtk_label_set_markup (GTK_LABEL (label), text); - g_free (text); - break; - } - } - - g_free (op); -} - -void -PdfInspector::on_analyze_clicked (GtkWidget *widget, PdfInspector *inspector) -{ - GtkWidget *spin; - int page; - - spin = GTK_WIDGET (gtk_builder_get_object (inspector->builder, "pdf_spin")); - - page = (int) gtk_spin_button_get_value (GTK_SPIN_BUTTON (spin)); - - inspector->analyze_page (page); - -} - -void -PdfInspector::analyze_page (int page) -{ - GooHashIter *iter; - GooHash *hash; - GooString *key; - void *p; - GtkWidget *label; - char *text; - cairo_t *cr; - cairo_surface_t *surface; - - label = GTK_WIDGET (gtk_builder_get_object (builder, "pdf_total_label")); - - output->startProfile (); - gtk_list_store_clear (GTK_LIST_STORE (model)); - - GooTimer timer; - surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, - doc->getPageCropWidth(page + 1), - doc->getPageCropHeight(page + 1)); - cr = cairo_create (surface); - cairo_surface_destroy (surface); - output->setCairo (cr); - cairo_destroy (cr); - doc->displayPage (output, page + 1, 72, 72, 0, gFalse, gTrue, gTrue); - output->setCairo (NULL); - - // Total time; - text = g_strdup_printf ("%g", timer.getElapsed ()); - gtk_label_set_text (GTK_LABEL (label), text); - g_free (text); - - // Individual times; - hash = output->endProfile (); - hash->startIter(&iter); - while (hash->getNext(&iter, &key, &p)) - { - GtkTreeIter tree_iter; - ProfileData *data_p = (ProfileData *) p; - - gtk_list_store_append (GTK_LIST_STORE (model), &tree_iter); - gtk_list_store_set (GTK_LIST_STORE (model), &tree_iter, - OP_STRING, key->getCString(), - OP_COUNT, data_p->getCount (), - OP_TOTAL, data_p->getTotal (), - OP_MIN, data_p->getMin (), - OP_MAX, data_p->getMax (), - -1); - } - hash->killIter(&iter); - deleteGooHash (hash, ProfileData); -} - -void -PdfInspector::load(const char *file_name) -{ - GtkWidget *spin; - GtkWidget *button; - GtkWidget *label; - - // kill the old PDF file - if (doc != NULL) - { - delete doc; - doc = NULL; - } - - // load the new file - if (file_name) - { - GooString *filename_g; - - filename_g = new GooString (file_name); - doc = new PDFDoc(filename_g, 0, 0); - delete filename_g; - } - - if (doc && !doc->isOk()) - { - this->error_dialog ("Failed to load file."); - delete doc; - doc = NULL; - } - - spin = GTK_WIDGET (gtk_builder_get_object (builder, "pdf_spin")); - button = GTK_WIDGET (gtk_builder_get_object (builder, "analyze_button")); - label = GTK_WIDGET (gtk_builder_get_object (builder, "pdf_total_label")); - gtk_label_set_text (GTK_LABEL (label), ""); - - if (doc) - { - gtk_widget_set_sensitive (spin, TRUE); - gtk_widget_set_sensitive (button, TRUE); - gtk_widget_set_sensitive (label, TRUE); - gtk_spin_button_set_range (GTK_SPIN_BUTTON (spin), 0, doc->getNumPages()-1); - gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), 0); - - output->startDoc (doc->getXRef(), doc->getCatalog()); - } - else - { - gtk_widget_set_sensitive (spin, FALSE); - gtk_widget_set_sensitive (button, FALSE); - gtk_widget_set_sensitive (label, FALSE); - } -} - -void -PdfInspector::error_dialog (const char *error_message) -{ - g_warning ("%s", error_message); -} - -void -PdfInspector::run() -{ - GtkWidget *dialog; - - dialog = GTK_WIDGET (gtk_builder_get_object (builder, "pdf_dialog")); - - gtk_dialog_run (GTK_DIALOG (dialog)); -} - - - -int -main (int argc, char *argv []) -{ - const char *file_name = NULL; - PdfInspector *inspector; - - gtk_init (&argc, &argv); - - globalParams = new GlobalParams(); - globalParams->setProfileCommands (true); - globalParams->setPrintCommands (true); - - if (argc == 2) - file_name = argv[1]; - else if (argc > 2) - { - fprintf (stderr, "usage: %s [PDF-FILE]\n", argv[0]); - return -1; - } - - inspector = new PdfInspector (); - - if (file_name) - inspector->set_file_name (file_name); - - inspector->run (); - - delete inspector; - delete globalParams; - - return 0; -} - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/test/pdf-inspector.ui b/Build/source/libs/poppler/poppler-0.12.4/test/pdf-inspector.ui deleted file mode 100644 index 8e20b2f24ba..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/test/pdf-inspector.ui +++ /dev/null @@ -1,416 +0,0 @@ -<?xml version="1.0"?> -<!--*- mode: xml -*--> -<interface> - <object class="GtkAdjustment" id="adjustment1"> - <property name="upper">100</property> - <property name="lower">0</property> - <property name="page_increment">10</property> - <property name="step_increment">1</property> - <property name="page_size">10</property> - <property name="value">1</property> - </object> - <object class="GtkDialog" id="pdf_dialog"> - <property name="border_width">6</property> - <property name="visible">True</property> - <property name="title" translatable="yes">PDF Inspector</property> - <property name="type">GTK_WINDOW_TOPLEVEL</property> - <property name="window_position">GTK_WIN_POS_NONE</property> - <property name="modal">False</property> - <property name="default_width">600</property> - <property name="default_height">400</property> - <property name="resizable">True</property> - <property name="destroy_with_parent">False</property> - <property name="decorated">True</property> - <property name="skip_taskbar_hint">False</property> - <property name="skip_pager_hint">False</property> - <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> - <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> - <property name="focus_on_map">True</property> - <property name="has_separator">False</property> - <child internal-child="vbox"> - <object class="GtkVBox" id="dialog-vbox1"> - <property name="visible">True</property> - <property name="homogeneous">False</property> - <property name="spacing">12</property> - <child internal-child="action_area"> - <object class="GtkHButtonBox" id="dialog-action_area1"> - <property name="visible">True</property> - <property name="layout_style">GTK_BUTTONBOX_END</property> - <child> - <object class="GtkButton" id="closebutton1"> - <property name="visible">True</property> - <property name="can_default">True</property> - <property name="can_focus">True</property> - <property name="label">gtk-close</property> - <property name="use_stock">True</property> - <property name="relief">GTK_RELIEF_NORMAL</property> - <property name="focus_on_click">True</property> - </object> - </child> - </object> - <packing> - <property name="padding">0</property> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="pack_type">GTK_PACK_END</property> - </packing> - </child> - <child> - <object class="GtkVBox" id="vbox1"> - <property name="border_width">6</property> - <property name="visible">True</property> - <property name="homogeneous">False</property> - <property name="spacing">12</property> - <child> - <object class="GtkTable" id="table1"> - <property name="visible">True</property> - <property name="n_rows">2</property> - <property name="n_columns">2</property> - <property name="homogeneous">False</property> - <property name="row_spacing">6</property> - <property name="column_spacing">12</property> - <child> - <object class="GtkLabel" id="label2"> - <property name="visible">True</property> - <property name="label" translatable="yes">_File:</property> - <property name="use_underline">True</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> - <property name="width_chars">-1</property> - <property name="single_line_mode">False</property> - <property name="angle">0</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="right_attach">1</property> - <property name="top_attach">0</property> - <property name="bottom_attach">1</property> - <property name="x_options">fill</property> - <property name="y_options"/> - </packing> - </child> - <child> - <object class="GtkLabel" id="label3"> - <property name="visible">True</property> - <property name="label" translatable="yes">Page Number</property> - <property name="use_underline">False</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> - <property name="width_chars">-1</property> - <property name="single_line_mode">False</property> - <property name="angle">0</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="right_attach">1</property> - <property name="top_attach">1</property> - <property name="bottom_attach">2</property> - <property name="x_options">fill</property> - <property name="y_options"/> - </packing> - </child> - <child> - <object class="GtkFileChooserButton" id="pdf_file_chooser_button"> - <property name="visible">True</property> - <property name="title" translatable="yes">Select A File</property> - <property name="action">GTK_FILE_CHOOSER_ACTION_OPEN</property> - <property name="local_only">True</property> - <property name="show_hidden">False</property> - <property name="width_chars">-1</property> - </object> - <packing> - <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="top_attach">0</property> - <property name="bottom_attach">1</property> - <property name="y_options">fill</property> - </packing> - </child> - <child> - <object class="GtkSpinButton" id="pdf_spin"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="climb_rate">1</property> - <property name="digits">0</property> - <property name="numeric">False</property> - <property name="update_policy">GTK_UPDATE_ALWAYS</property> - <property name="snap_to_ticks">False</property> - <property name="wrap">False</property> - <property name="adjustment">adjustment1</property> - </object> - <packing> - <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="top_attach">1</property> - <property name="bottom_attach">2</property> - <property name="y_options"/> - </packing> - </child> - </object> - <packing> - <property name="padding">0</property> - <property name="expand">False</property> - <property name="fill">True</property> - </packing> - </child> - <child> - <object class="GtkFrame" id="frame1"> - <property name="visible">True</property> - <property name="label_xalign">0</property> - <property name="label_yalign">0.5</property> - <property name="shadow_type">GTK_SHADOW_NONE</property> - <child> - <object class="GtkAlignment" id="alignment1"> - <property name="visible">True</property> - <property name="xalign">0.5</property> - <property name="yalign">0.5</property> - <property name="xscale">1</property> - <property name="yscale">1</property> - <property name="top_padding">0</property> - <property name="bottom_padding">0</property> - <property name="left_padding">12</property> - <property name="right_padding">0</property> - <child> - <object class="GtkVBox" id="vbox3"> - <property name="visible">True</property> - <property name="homogeneous">False</property> - <property name="spacing">6</property> - <child> - <object class="GtkScrolledWindow" id="scrolledwindow1"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> - <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> - <property name="shadow_type">GTK_SHADOW_IN</property> - <property name="window_placement">GTK_CORNER_TOP_LEFT</property> - <child> - <object class="GtkTreeView" id="pdf_tree_view"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="headers_visible">True</property> - <property name="rules_hint">False</property> - <property name="reorderable">False</property> - <property name="enable_search">True</property> - <property name="fixed_height_mode">False</property> - <property name="hover_selection">False</property> - <property name="hover_expand">False</property> - </object> - </child> - </object> - <packing> - <property name="padding">0</property> - <property name="expand">True</property> - <property name="fill">True</property> - </packing> - </child> - <child> - <object class="GtkTable" id="table2"> - <property name="visible">True</property> - <property name="n_rows">2</property> - <property name="n_columns">3</property> - <property name="homogeneous">False</property> - <property name="row_spacing">6</property> - <property name="column_spacing">12</property> - <child> - <object class="GtkLabel" id="label6"> - <property name="visible">True</property> - <property name="label" translatable="yes">Total time elapsed:</property> - <property name="use_underline">False</property> - <property name="use_markup">True</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> - <property name="width_chars">-1</property> - <property name="single_line_mode">False</property> - <property name="angle">0</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="right_attach">1</property> - <property name="top_attach">1</property> - <property name="bottom_attach">2</property> - <property name="x_options">fill</property> - <property name="y_options"/> - </packing> - </child> - <child> - <object class="GtkLabel" id="pdf_total_label"> - <property name="visible">True</property> - <property name="label" translatable="yes"/> - <property name="use_underline">False</property> - <property name="use_markup">True</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> - <property name="width_chars">-1</property> - <property name="single_line_mode">False</property> - <property name="angle">0</property> - </object> - <packing> - <property name="left_attach">1</property> - <property name="right_attach">3</property> - <property name="top_attach">1</property> - <property name="bottom_attach">2</property> - <property name="x_options">fill</property> - <property name="y_options"/> - </packing> - </child> - <child> - <object class="GtkLabel" id="label5"> - <property name="visible">True</property> - <property name="label" translatable="yes">Description:</property> - <property name="use_underline">False</property> - <property name="use_markup">False</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> - <property name="width_chars">-1</property> - <property name="single_line_mode">False</property> - <property name="angle">0</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="right_attach">1</property> - <property name="top_attach">0</property> - <property name="bottom_attach">1</property> - <property name="x_options">fill</property> - <property name="y_options">fill</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="description_label"> - <property name="visible">True</property> - <property name="label" translatable="yes"><i>No Description</i></property> - <property name="use_underline">False</property> - <property name="use_markup">True</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">True</property> - <property name="selectable">False</property> - <property name="xalign">0</property> - <property name="yalign">0</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> - <property name="width_chars">-1</property> - <property name="single_line_mode">False</property> - <property name="angle">0</property> - </object> - <packing> - <property name="left_attach">1</property> - <property name="right_attach">2</property> - <property name="top_attach">0</property> - <property name="bottom_attach">1</property> - <property name="y_options">fill</property> - </packing> - </child> - <child> - <object class="GtkAlignment" id="alignment2"> - <property name="visible">True</property> - <property name="xalign">0.5</property> - <property name="yalign">0</property> - <property name="xscale">0.0</property> - <property name="yscale">0.0</property> - <property name="top_padding">0</property> - <property name="bottom_padding">0</property> - <property name="left_padding">0</property> - <property name="right_padding">0</property> - <child> - <object class="GtkButton" id="analyze_button"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="label" translatable="yes">_Analyze</property> - <property name="use_underline">True</property> - <property name="relief">GTK_RELIEF_NORMAL</property> - <property name="focus_on_click">True</property> - </object> - </child> - </object> - <packing> - <property name="left_attach">2</property> - <property name="right_attach">3</property> - <property name="top_attach">0</property> - <property name="bottom_attach">1</property> - <property name="x_options">fill</property> - <property name="y_options">fill</property> - </packing> - </child> - </object> - <packing> - <property name="padding">0</property> - <property name="expand">False</property> - <property name="fill">True</property> - </packing> - </child> - </object> - </child> - </object> - </child> - <child type="label"> - <object class="GtkLabel" id="label4"> - <property name="visible">True</property> - <property name="label" translatable="yes"><b>PDF Instructions</b></property> - <property name="use_underline">False</property> - <property name="use_markup">True</property> - <property name="justify">GTK_JUSTIFY_LEFT</property> - <property name="wrap">False</property> - <property name="selectable">False</property> - <property name="xalign">0.5</property> - <property name="yalign">0.5</property> - <property name="xpad">0</property> - <property name="ypad">0</property> - <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> - <property name="width_chars">-1</property> - <property name="single_line_mode">False</property> - <property name="angle">0</property> - </object> - </child> - </object> - <packing> - <property name="padding">0</property> - <property name="expand">True</property> - <property name="fill">True</property> - </packing> - </child> - </object> - <packing> - <property name="padding">0</property> - <property name="expand">True</property> - <property name="fill">True</property> - </packing> - </child> - </object> - </child> - <action-widgets> - <action-widget response="-7">closebutton1</action-widget> - </action-widgets> - </object> -</interface> diff --git a/Build/source/libs/poppler/poppler-0.12.4/test/pdf-operators.c b/Build/source/libs/poppler/poppler-0.12.4/test/pdf-operators.c deleted file mode 100644 index 3e838a2c641..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/test/pdf-operators.c +++ /dev/null @@ -1,81 +0,0 @@ -typedef struct -{ - char *op; - char *description; -} OperatorMapping; - -OperatorMapping op_mapping[] = { - { "b", "Close, fill, and stroke path using nonzero winding number rule" }, - { "B", "Fill and stroke path using nonzero winding number rule" }, - { "b*", "Close, fill, and stroke path using even-odd rule" }, - { "B*", "Fill and stroke path using even-odd rule" }, - { "BDC", "(PDF 1.2) Begin marked-content sequence with property list" }, - { "BI", "Begin inline image object" }, - { "BMC", "(PDF 1.2) Begin marked-content sequence" }, - { "BT", "Begin text object" }, - { "BX", "(PDF 1.1) Begin compatibility section" }, - { "c", "Append curved segment to path (three control points)" }, - { "cm", "Concatenate matrix to current transformation matrix" }, - { "CS", "(PDF 1.1) Set color space for stroking operations" }, - { "cs", "(PDF 1.1) Set color space for nonstroking operations" }, - { "d", "Set line dash pattern" }, - { "d0", "Set glyph width in Type 3 font" }, - { "d1", "Set glyph width and bounding box in Type 3 font" }, - { "Do", "Invoke named XObject" }, - { "DP", "(PDF 1.2) Define marked-content point with property list" }, - { "EI", "End inline image object" }, - { "EMC", "(PDF 1.2) End marked-content sequence" }, - { "ET", "End text object" }, - { "EX", "(PDF 1.1) End compatibility section" }, - { "f", "Fill path using nonzero winding number rule" }, - { "F", "Fill path using nonzero winding number rule (obsolete)" }, - { "f*", "Fill path using even-odd rule" }, - { "G", "Set gray level for stroking operations" }, - { "g", "Set gray level for nonstroking operations" }, - { "gs", "(PDF 1.2) Set parameters from graphics state parameter dictionary" }, - { "h", "Close subpath" }, - { "i", "Set flatness tolerance" }, - { "ID", "Begin inline image data" }, - { "j", "Set line join style" }, - { "J", "Set line cap style" }, - { "K", "Set CMYK color for stroking operations" }, - { "k", "Set CMYK color for nonstroking operations" }, - { "l", "Append straight line segment to path" }, - { "m", "Begin new subpath" }, - { "M", "Set miter limit" }, - { "MP", "(PDF 1.2) Define marked-content point" }, - { "n", "End path without filling or stroking" }, - { "q", "Save graphics state" }, - { "Q", "Restore graphics state" }, - { "re", "Append rectangle to path" }, - { "RG", "Set RGB color for stroking operations" }, - { "rg", "Set RGB color for nonstroking operations" }, - { "ri", "Set color rendering intent" }, - { "s", "Close and stroke path" }, - { "S", "Stroke path" }, - { "SC", "(PDF 1.1) Set color for stroking operations" }, - { "sc", "(PDF 1.1) Set color for nonstroking operations" }, - { "SCN", "(PDF 1.2) Set color for stroking operations (ICCBased and special color spaces)" }, - { "scn", "(PDF 1.2) Set color for nonstroking operations (ICCBased and special color spaces)" }, - { "sh", "(PDF 1.3) Paint area defined by shading pattern" }, - { "T*", "Move to start of next text line" }, - { "Tc", "Set character spacing" }, - { "Td", "Move text position" }, - { "TD", "Move text position and set leading" }, - { "Tf", "Set text font and size" }, - { "Tj", "Show text" }, - { "TJ", "Show text, allowing individual glyph positioning" }, - { "TL", "Set text leading" }, - { "Tm", "Set text matrix and text line matrix" }, - { "Tr", "Set text rendering mode" }, - { "Ts", "Set text rise" }, - { "Tw", "Set word spacing" }, - { "Tz", "Set horizontal text scaling" }, - { "v", "Append curved segment to path (initial point replicated)" }, - { "w", "Set line width" }, - { "W", "Set clipping path using nonzero winding number rule" }, - { "W*", "Set clipping path using even-odd rule" }, - { "y", "Append curved segment to path (final point replicated)" }, - { "'", "Move to next line and show text" }, - { "\"", "Set word and character spacing, move to next line, and show text" }, -}; diff --git a/Build/source/libs/poppler/poppler-0.12.4/test/perf-test-preview-dummy.cc b/Build/source/libs/poppler/poppler-0.12.4/test/perf-test-preview-dummy.cc deleted file mode 100644 index 09f7d0f8790..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/test/perf-test-preview-dummy.cc +++ /dev/null @@ -1,22 +0,0 @@ -/* Copyright Krzysztof Kowalczyk 2006-2007
- License: GPLv2 */
-
-/* This is a no-op preview support for perf-test.
-Using this perf-test still works for performance testing, you just don't
-get any visual feedback during testing.
-*/
-
-#include "splash/SplashBitmap.h"
-
-void PreviewBitmapSplash(SplashBitmap *bmpSplash)
-{
-}
-
-void PreviewBitmapDestroy(void)
-{
-}
-
-void PreviewBitmapInit(void)
-{
-}
-
diff --git a/Build/source/libs/poppler/poppler-0.12.4/test/perf-test.cc b/Build/source/libs/poppler/poppler-0.12.4/test/perf-test.cc deleted file mode 100644 index a11a377052d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/test/perf-test.cc +++ /dev/null @@ -1,1277 +0,0 @@ -/* Copyright Krzysztof Kowalczyk 2006-2007
- Copyright Hib Eris <hib@hiberis.nl> 2008
- License: GPLv2 */
-/*
- A tool to stress-test poppler rendering and measure rendering times for
- very simplistic performance measuring.
-
- TODO:
- * make it work with cairo output as well
- * print more info about document like e.g. enumarate images,
- streams, compression, encryption, password-protection. Each should have
- a command-line arguments to turn it on/off
- * never over-write file given as -out argument (optionally, provide -force
- option to force writing the -out file). It's way too easy too lose results
- of a previous run.
-*/
-
-#ifdef _MSC_VER
-// this sucks but I don't know any other way
-#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
-#endif
-
-#ifdef _WIN32
-#include <windows.h>
-#endif
-
-// Define COPY_FILE if you want the file to be copied to a local disk first
-// before it's tested. This is desired if a file is on a slow drive.
-// Currently copying only works on Windows.
-// Not enabled by default.
-//#define COPY_FILE 1
-
-#include <assert.h>
-#include <config.h>
-#include <stdio.h>
-#include <stdarg.h>
-#include <ctype.h>
-#include <stdlib.h>
-#include <string.h>
-#include <errno.h>
-#include <time.h>
-
-#ifdef HAVE_DIRENT_H
-#include <dirent.h>
-#endif
-
-#include "Error.h"
-#include "ErrorCodes.h"
-#include "goo/GooString.h"
-#include "goo/GooList.h"
-#include "goo/GooTimer.h"
-#include "GlobalParams.h"
-#include "splash/SplashBitmap.h"
-#include "Object.h" /* must be included before SplashOutputDev.h because of sloppiness in SplashOutputDev.h */
-#include "SplashOutputDev.h"
-#include "TextOutputDev.h"
-#include "PDFDoc.h"
-#include "Link.h"
-
-#ifdef _MSC_VER
-#define strdup _strdup
-#define strcasecmp _stricmp
-#endif
-
-#define dimof(X) (sizeof(X)/sizeof((X)[0]))
-
-#define INVALID_PAGE_NO -1
-
-/* Those must be implemented in order to provide preview during execution.
- They can be no-ops. An implementation for windows is in
- perf-test-preview-win.cc
-*/
-extern void PreviewBitmapInit(void);
-extern void PreviewBitmapDestroy(void);
-extern void PreviewBitmapSplash(SplashBitmap *bmpSplash);
-
-class PdfEnginePoppler {
-public:
- PdfEnginePoppler();
- ~PdfEnginePoppler();
-
- const char *fileName(void) const { return _fileName; };
-
- void setFileName(const char *fileName) {
- assert(!_fileName);
- _fileName = (char*)strdup(fileName);
- }
-
- int pageCount(void) const { return _pageCount; }
-
- bool load(const char *fileName);
- SplashBitmap *renderBitmap(int pageNo, double zoomReal, int rotation);
-
- SplashOutputDev * outputDevice();
-private:
- char * _fileName;
- int _pageCount;
-
- PDFDoc * _pdfDoc;
- SplashOutputDev * _outputDev;
-};
-
-typedef struct StrList {
- struct StrList *next;
- char * str;
-} StrList;
-
-/* List of all command-line arguments that are not switches.
- We assume those are:
- - names of PDF files
- - names of a file with a list of PDF files
- - names of directories with PDF files
-*/
-static StrList *gArgsListRoot = NULL;
-
-/* Names of all command-line switches we recognize */
-#define TIMINGS_ARG "-timings"
-#define RESOLUTION_ARG "-resolution"
-#define RECURSIVE_ARG "-recursive"
-#define OUT_ARG "-out"
-#define PREVIEW_ARG "-preview"
-#define SLOW_PREVIEW_ARG "-slowpreview"
-#define LOAD_ONLY_ARG "-loadonly"
-#define PAGE_ARG "-page"
-#define TEXT_ARG "-text"
-
-/* Should we record timings? True if -timings command-line argument was given. */
-static bool gfTimings = false;
-
-/* If true, we use render each page at resolution 'gResolutionX'/'gResolutionY'.
- If false, we render each page at its native resolution.
- True if -resolution NxM command-line argument was given. */
-static bool gfForceResolution = false;
-static int gResolutionX = 0;
-static int gResolutionY = 0;
-/* If NULL, we output the log info to stdout. If not NULL, should be a name
- of the file to which we output log info.
- Controled by -out command-line argument. */
-static char * gOutFileName = NULL;
-/* FILE * correspondig to gOutFileName or stdout if gOutFileName is NULL or
- was invalid name */
-static FILE * gOutFile = NULL;
-/* FILE * correspondig to gOutFileName or stderr if gOutFileName is NULL or
- was invalid name */
-static FILE * gErrFile = NULL;
-
-/* If True and a directory is given as a command-line argument, we'll process
- pdf files in sub-directories as well.
- Controlled by -recursive command-line argument */
-static bool gfRecursive = false;
-
-/* If true, preview rendered image. To make sure that they're being rendered correctly. */
-static bool gfPreview = false;
-
-/* 1 second (1000 milliseconds) */
-#define SLOW_PREVIEW_TIME 1000
-
-/* If true, preview rendered image in a slow mode i.e. delay displaying for
- SLOW_PREVIEW_TIME. This is so that a human has enough time to see if the
- PDF renders ok. In release mode on fast processor pages take only ~100-200 ms
- to render and they go away too quickly to be inspected by a human. */
-static bool gfSlowPreview = false;
-
-/* If true, we only dump the text, not render */
-static bool gfTextOnly = false;
-
-#define PAGE_NO_NOT_GIVEN -1
-
-/* If equals PAGE_NO_NOT_GIVEN, we're in default mode where we render all pages.
- If different, will only render this page */
-static int gPageNo = PAGE_NO_NOT_GIVEN;
-/* If true, will only load the file, not render any pages. Mostly for
- profiling load time */
-static bool gfLoadOnly = false;
-
-#define PDF_FILE_DPI 72
-
-#define MAX_FILENAME_SIZE 1024
-
-/* DOS is 0xd 0xa */
-#define DOS_NEWLINE "\x0d\x0a"
-/* Mac is single 0xd */
-#define MAC_NEWLINE "\x0d"
-/* Unix is single 0xa (10) */
-#define UNIX_NEWLINE "\x0a"
-#define UNIX_NEWLINE_C 0xa
-
-#ifdef _WIN32
- #define DIR_SEP_CHAR '\\'
- #define DIR_SEP_STR "\\"
-#else
- #define DIR_SEP_CHAR '/'
- #define DIR_SEP_STR "/"
-#endif
-
-void memzero(void *data, size_t len)
-{
- memset(data, 0, len);
-}
-
-void *zmalloc(size_t len)
-{
- void *data = malloc(len);
- if (data)
- memzero(data, len);
- return data;
-}
-
-/* Concatenate 4 strings. Any string can be NULL.
- Caller needs to free() memory. */
-char *str_cat4(const char *str1, const char *str2, const char *str3, const char *str4)
-{
- char *str;
- char *tmp;
- size_t str1_len = 0;
- size_t str2_len = 0;
- size_t str3_len = 0;
- size_t str4_len = 0;
-
- if (str1)
- str1_len = strlen(str1);
- if (str2)
- str2_len = strlen(str2);
- if (str3)
- str3_len = strlen(str3);
- if (str4)
- str4_len = strlen(str4);
-
- str = (char*)zmalloc(str1_len + str2_len + str3_len + str4_len + 1);
- if (!str)
- return NULL;
-
- tmp = str;
- if (str1) {
- memcpy(tmp, str1, str1_len);
- tmp += str1_len;
- }
- if (str2) {
- memcpy(tmp, str2, str2_len);
- tmp += str2_len;
- }
- if (str3) {
- memcpy(tmp, str3, str3_len);
- tmp += str3_len;
- }
- if (str4) {
- memcpy(tmp, str4, str1_len);
- }
- return str;
-}
-
-char *str_dup(const char *str)
-{
- return str_cat4(str, NULL, NULL, NULL);
-}
-
-bool str_eq(const char *str1, const char *str2)
-{
- if (!str1 && !str2)
- return true;
- if (!str1 || !str2)
- return false;
- if (0 == strcmp(str1, str2))
- return true;
- return false;
-}
-
-bool str_ieq(const char *str1, const char *str2)
-{
- if (!str1 && !str2)
- return true;
- if (!str1 || !str2)
- return false;
- if (0 == strcasecmp(str1, str2))
- return true;
- return false;
-}
-
-bool str_endswith(const char *txt, const char *end)
-{
- size_t end_len;
- size_t txt_len;
-
- if (!txt || !end)
- return false;
-
- txt_len = strlen(txt);
- end_len = strlen(end);
- if (end_len > txt_len)
- return false;
- if (str_eq(txt+txt_len-end_len, end))
- return true;
- return false;
-}
-
-/* TODO: probably should move to some other file and change name to
- sleep_milliseconds */
-void sleep_milliseconds(int milliseconds)
-{
-#ifdef _WIN32
- Sleep((DWORD)milliseconds);
-#else
- struct timespec tv;
- int secs, nanosecs;
- secs = milliseconds / 1000;
- nanosecs = (milliseconds - (secs * 1000)) * 1000;
- tv.tv_sec = (time_t) secs;
- tv.tv_nsec = (long) nanosecs;
- while (1)
- {
- int rval = nanosleep(&tv, &tv);
- if (rval == 0)
- /* Completed the entire sleep time; all done. */
- return;
- else if (errno == EINTR)
- /* Interrupted by a signal. Try again. */
- continue;
- else
- /* Some other error; bail out. */
- return;
- }
- return;
-#endif
-}
-
-#ifndef _MSC_VER
-void strcpy_s(char* dst, size_t dst_size, const char* src)
-{
- size_t src_size = strlen(src) + 1;
- if (src_size <= dst_size)
- memcpy(dst, src, src_size);
- else {
- if (dst_size > 0) {
- memcpy(dst, src, dst_size);
- dst[dst_size-1] = 0;
- }
- }
-}
-
-void strcat_s(char *dst, size_t dst_size, const char* src)
-{
- size_t dst_len = strlen(dst);
- if (dst_len >= dst_size) {
- if (dst_size > 0)
- dst[dst_size-1] = 0;
- return;
- }
- strcpy_s(dst+dst_len, dst_size - dst_len, src);
-}
-#endif
-
-static SplashColorMode gSplashColorMode = splashModeBGR8;
-
-static SplashColor splashColRed;
-static SplashColor splashColGreen;
-static SplashColor splashColBlue;
-static SplashColor splashColWhite;
-static SplashColor splashColBlack;
-
-#define SPLASH_COL_RED_PTR (SplashColorPtr)&(splashColRed[0])
-#define SPLASH_COL_GREEN_PTR (SplashColorPtr)&(splashColGreen[0])
-#define SPLASH_COL_BLUE_PTR (SplashColorPtr)&(splashColBlue[0])
-#define SPLASH_COL_WHITE_PTR (SplashColorPtr)&(splashColWhite[0])
-#define SPLASH_COL_BLACK_PTR (SplashColorPtr)&(splashColBlack[0])
-
-static SplashColorPtr gBgColor = SPLASH_COL_WHITE_PTR;
-
-static void splashColorSet(SplashColorPtr col, Guchar red, Guchar green, Guchar blue, Guchar alpha)
-{
- switch (gSplashColorMode)
- {
- case splashModeBGR8:
- col[0] = blue;
- col[1] = green;
- col[2] = red;
- break;
- case splashModeRGB8:
- col[0] = red;
- col[1] = green;
- col[2] = blue;
- break;
- default:
- assert(0);
- break;
- }
-}
-
-void SplashColorsInit(void)
-{
- splashColorSet(SPLASH_COL_RED_PTR, 0xff, 0, 0, 0);
- splashColorSet(SPLASH_COL_GREEN_PTR, 0, 0xff, 0, 0);
- splashColorSet(SPLASH_COL_BLUE_PTR, 0, 0, 0xff, 0);
- splashColorSet(SPLASH_COL_BLACK_PTR, 0, 0, 0, 0);
- splashColorSet(SPLASH_COL_WHITE_PTR, 0xff, 0xff, 0xff, 0);
-}
-
-PdfEnginePoppler::PdfEnginePoppler() :
- _fileName(0)
- , _pageCount(INVALID_PAGE_NO)
- , _pdfDoc(NULL)
- , _outputDev(NULL)
-{
-}
-
-PdfEnginePoppler::~PdfEnginePoppler()
-{
- free(_fileName);
- delete _outputDev;
- delete _pdfDoc;
-}
-
-bool PdfEnginePoppler::load(const char *fileName)
-{
- setFileName(fileName);
- /* note: don't delete fileNameStr since PDFDoc takes ownership and deletes them itself */
- GooString *fileNameStr = new GooString(fileName);
- if (!fileNameStr) return false;
-
- _pdfDoc = new PDFDoc(fileNameStr, NULL, NULL, (void*)NULL);
- if (!_pdfDoc->isOk()) {
- return false;
- }
- _pageCount = _pdfDoc->getNumPages();
- return true;
-}
-
-SplashOutputDev * PdfEnginePoppler::outputDevice() {
- if (!_outputDev) {
- GBool bitmapTopDown = gTrue;
- _outputDev = new SplashOutputDev(gSplashColorMode, 4, gFalse, gBgColor, bitmapTopDown);
- if (_outputDev)
- _outputDev->startDoc(_pdfDoc->getXRef());
- }
- return _outputDev;
-}
-
-SplashBitmap *PdfEnginePoppler::renderBitmap(int pageNo, double zoomReal, int rotation)
-{
- assert(outputDevice());
- if (!outputDevice()) return NULL;
-
- double hDPI = (double)PDF_FILE_DPI * zoomReal * 0.01;
- double vDPI = (double)PDF_FILE_DPI * zoomReal * 0.01;
- GBool useMediaBox = gFalse;
- GBool crop = gTrue;
- GBool doLinks = gTrue;
- _pdfDoc->displayPage(_outputDev, pageNo, hDPI, vDPI, rotation, useMediaBox,
- crop, doLinks, NULL, NULL);
-
- SplashBitmap* bmp = _outputDev->takeBitmap();
- return bmp;
-}
-
-struct FindFileState {
- char path[MAX_FILENAME_SIZE];
- char dirpath[MAX_FILENAME_SIZE]; /* current dir path */
- char pattern[MAX_FILENAME_SIZE]; /* search pattern */
- const char *bufptr;
-#ifdef _WIN32
- WIN32_FIND_DATA fileinfo;
- HANDLE dir;
-#else
- DIR *dir;
-#endif
-};
-
-#ifdef _WIN32
-#include <windows.h>
-#include <sys/timeb.h>
-#include <direct.h>
-
-__inline char *getcwd(char *buffer, int maxlen)
-{
- return _getcwd(buffer, maxlen);
-}
-
-int fnmatch(const char *pattern, const char *string, int flags)
-{
- int prefix_len;
- const char *star_pos = strchr(pattern, '*');
- if (!star_pos)
- return strcmp(pattern, string) != 0;
-
- prefix_len = (int)(star_pos-pattern);
- if (0 == prefix_len)
- return 0;
-
- if (0 == _strnicmp(pattern, string, prefix_len))
- return 0;
-
- return 1;
-}
-
-#else
-#include <fnmatch.h>
-#endif
-
-#ifdef _WIN32
-/* on windows to query dirs we need foo\* to get files in this directory.
- foo\ always fails and foo will return just info about foo directory,
- not files in this directory */
-static void win_correct_path_for_FindFirstFile(char *path, int path_max_len)
-{
- int path_len = strlen(path);
- if (path_len >= path_max_len-4)
- return;
- if (DIR_SEP_CHAR != path[path_len])
- path[path_len++] = DIR_SEP_CHAR;
- path[path_len++] = '*';
- path[path_len] = 0;
-}
-#endif
-
-FindFileState *find_file_open(const char *path, const char *pattern)
-{
- FindFileState *s;
-
- s = (FindFileState*)malloc(sizeof(FindFileState));
- if (!s)
- return NULL;
- strcpy_s(s->path, sizeof(s->path), path);
- strcpy_s(s->dirpath, sizeof(s->path), path);
-#ifdef _WIN32
- win_correct_path_for_FindFirstFile(s->path, sizeof(s->path));
-#endif
- strcpy_s(s->pattern, sizeof(s->pattern), pattern);
- s->bufptr = s->path;
-#ifdef _WIN32
- s->dir = INVALID_HANDLE_VALUE;
-#else
- s->dir = NULL;
-#endif
- return s;
-}
-
-#if 0 /* re-enable if we #define USE_OWN_GET_AUTH_DATA */
-void *StandardSecurityHandler::getAuthData()
-{
- return NULL;
-}
-#endif
-
-char *makepath(char *buf, int buf_size, const char *path,
- const char *filename)
-{
- strcpy_s(buf, buf_size, path);
- int len = strlen(path);
- if (len > 0 && path[len - 1] != DIR_SEP_CHAR && len + 1 < buf_size) {
- buf[len++] = DIR_SEP_CHAR;
- buf[len] = '\0';
- }
- strcat_s(buf, buf_size, filename);
- return buf;
-}
-
-#ifdef _WIN32
-static int skip_matching_file(const char *filename)
-{
- if (0 == strcmp(".", filename))
- return 1;
- if (0 == strcmp("..", filename))
- return 1;
- return 0;
-}
-#endif
-
-int find_file_next(FindFileState *s, char *filename, int filename_size_max)
-{
-#ifdef _WIN32
- int fFound;
- if (INVALID_HANDLE_VALUE == s->dir) {
- s->dir = FindFirstFile(s->path, &(s->fileinfo));
- if (INVALID_HANDLE_VALUE == s->dir)
- return -1;
- goto CheckFile;
- }
-
- while (1) {
- fFound = FindNextFile(s->dir, &(s->fileinfo));
- if (!fFound)
- return -1;
-CheckFile:
- if (skip_matching_file(s->fileinfo.cFileName))
- continue;
- if (0 == fnmatch(s->pattern, s->fileinfo.cFileName, 0) ) {
- makepath(filename, filename_size_max, s->dirpath, s->fileinfo.cFileName);
- return 0;
- }
- }
-#else
- struct dirent *dirent;
- const char *p;
- char *q;
-
- if (s->dir == NULL)
- goto redo;
-
- for (;;) {
- dirent = readdir(s->dir);
- if (dirent == NULL) {
- redo:
- if (s->dir) {
- closedir(s->dir);
- s->dir = NULL;
- }
- p = s->bufptr;
- if (*p == '\0')
- return -1;
- /* CG: get_str(&p, s->dirpath, sizeof(s->dirpath), ":") */
- q = s->dirpath;
- while (*p != ':' && *p != '\0') {
- if ((q - s->dirpath) < (int)sizeof(s->dirpath) - 1)
- *q++ = *p;
- p++;
- }
- *q = '\0';
- if (*p == ':')
- p++;
- s->bufptr = p;
- s->dir = opendir(s->dirpath);
- if (!s->dir)
- goto redo;
- } else {
- if (fnmatch(s->pattern, dirent->d_name, 0) == 0) {
- makepath(filename, filename_size_max,
- s->dirpath, dirent->d_name);
- return 0;
- }
- }
- }
-#endif
-}
-
-void find_file_close(FindFileState *s)
-{
-#ifdef _WIN32
- if (INVALID_HANDLE_VALUE != s->dir)
- FindClose(s->dir);
-#else
- if (s->dir)
- closedir(s->dir);
-#endif
- free(s);
-}
-
-int StrList_Len(StrList **root)
-{
- int len = 0;
- StrList * cur;
- assert(root);
- if (!root)
- return 0;
- cur = *root;
- while (cur) {
- ++len;
- cur = cur->next;
- }
- return len;
-}
-
-int StrList_InsertAndOwn(StrList **root, char *txt)
-{
- StrList * el;
- assert(root && txt);
- if (!root || !txt)
- return false;
-
- el = (StrList*)malloc(sizeof(StrList));
- if (!el)
- return false;
- el->str = txt;
- el->next = *root;
- *root = el;
- return true;
-}
-
-int StrList_Insert(StrList **root, char *txt)
-{
- char *txtDup;
-
- assert(root && txt);
- if (!root || !txt)
- return false;
- txtDup = str_dup(txt);
- if (!txtDup)
- return false;
-
- if (!StrList_InsertAndOwn(root, txtDup)) {
- free((void*)txtDup);
- return false;
- }
- return true;
-}
-
-StrList* StrList_RemoveHead(StrList **root)
-{
- StrList *tmp;
- assert(root);
- if (!root)
- return NULL;
-
- if (!*root)
- return NULL;
- tmp = *root;
- *root = tmp->next;
- tmp->next = NULL;
- return tmp;
-}
-
-void StrList_FreeElement(StrList *el)
-{
- if (!el)
- return;
- free((void*)el->str);
- free((void*)el);
-}
-
-void StrList_Destroy(StrList **root)
-{
- StrList * cur;
- StrList * next;
-
- if (!root)
- return;
- cur = *root;
- while (cur) {
- next = cur->next;
- StrList_FreeElement(cur);
- cur = next;
- }
- *root = NULL;
-}
-
-#ifndef _WIN32
-void OutputDebugString(const char *txt)
-{
- /* do nothing */
-}
-#define _snprintf snprintf
-#define _vsnprintf vsnprintf
-#endif
-
-void my_error(int pos, char *msg, va_list args) {
-#if 0
- char buf[4096], *p = buf;
-
- // NB: this can be called before the globalParams object is created
- if (globalParams && globalParams->getErrQuiet()) {
- return;
- }
-
- if (pos >= 0) {
- p += _snprintf(p, sizeof(buf)-1, "Error (%d): ", pos);
- *p = '\0';
- OutputDebugString(p);
- } else {
- OutputDebugString("Error: ");
- }
-
- p = buf;
- p += _vsnprintf(p, sizeof(buf) - 1, msg, args);
- while ( p > buf && isspace(p[-1]) )
- *--p = '\0';
- *p++ = '\r';
- *p++ = '\n';
- *p = '\0';
- OutputDebugString(buf);
-
- if (pos >= 0) {
- p += _snprintf(p, sizeof(buf)-1, "Error (%d): ", pos);
- *p = '\0';
- OutputDebugString(buf);
- if (gErrFile)
- fprintf(gErrFile, buf);
- } else {
- OutputDebugString("Error: ");
- if (gErrFile)
- fprintf(gErrFile, "Error: ");
- }
-#endif
-#if 0
- p = buf;
- va_start(args, msg);
- p += _vsnprintf(p, sizeof(buf) - 3, msg, args);
- while ( p > buf && isspace(p[-1]) )
- *--p = '\0';
- *p++ = '\r';
- *p++ = '\n';
- *p = '\0';
- OutputDebugString(buf);
- if (gErrFile)
- fprintf(gErrFile, buf);
- va_end(args);
-#endif
-}
-
-void LogInfo(char *fmt, ...)
-{
- va_list args;
- char buf[4096], *p = buf;
-
- p = buf;
- va_start(args, fmt);
- p += _vsnprintf(p, sizeof(buf) - 1, fmt, args);
- *p = '\0';
- fprintf(gOutFile, "%s", buf);
- va_end(args);
- fflush(gOutFile);
-}
-
-static void PrintUsageAndExit(int argc, char **argv)
-{
- printf("Usage: pdftest [-preview|-slowpreview] [-loadonly] [-timings] [-text] [-resolution NxM] [-recursive] [-page N] [-out out.txt] pdf-files-to-process\n");
- for (int i=0; i < argc; i++) {
- printf("i=%d, '%s'\n", i, argv[i]);
- }
- exit(0);
-}
-
-static bool ShowPreview(void)
-{
- if (gfPreview || gfSlowPreview)
- return true;
- return false;
-}
-
-static void RenderPdfAsText(const char *fileName)
-{
- GooString * fileNameStr = NULL;
- PDFDoc * pdfDoc = NULL;
- GooString * txt = NULL;
- int pageCount;
- double timeInMs;
-
- assert(fileName);
- if (!fileName)
- return;
-
- LogInfo("started: %s\n", fileName);
-
- TextOutputDev * textOut = new TextOutputDev(NULL, gTrue, gFalse, gFalse);
- if (!textOut->isOk()) {
- delete textOut;
- return;
- }
-
- GooTimer msTimer;
- /* note: don't delete fileNameStr since PDFDoc takes ownership and deletes them itself */
- fileNameStr = new GooString(fileName);
- if (!fileNameStr)
- goto Exit;
-
- pdfDoc = new PDFDoc(fileNameStr, NULL, NULL, NULL);
- if (!pdfDoc->isOk()) {
- error(-1, "RenderPdfFile(): failed to open PDF file %s\n", fileName);
- goto Exit;
- }
-
- msTimer.stop();
- timeInMs = msTimer.getElapsed();
- LogInfo("load: %.2f ms\n", timeInMs);
-
- pageCount = pdfDoc->getNumPages();
- LogInfo("page count: %d\n", pageCount);
-
- for (int curPage = 1; curPage <= pageCount; curPage++) {
- if ((gPageNo != PAGE_NO_NOT_GIVEN) && (gPageNo != curPage))
- continue;
-
- msTimer.start();
- int rotate = 0;
- GBool useMediaBox = gFalse;
- GBool crop = gTrue;
- GBool doLinks = gFalse;
- pdfDoc->displayPage(textOut, curPage, 72, 72, rotate, useMediaBox, crop, doLinks);
- txt = textOut->getText(0.0, 0.0, 10000.0, 10000.0);
- msTimer.stop();
- timeInMs = msTimer.getElapsed();
- if (gfTimings)
- LogInfo("page %d: %.2f ms\n", curPage, timeInMs);
- printf("%s\n", txt->getCString());
- delete txt;
- txt = NULL;
- }
-
-Exit:
- LogInfo("finished: %s\n", fileName);
- delete textOut;
- delete pdfDoc;
-}
-
-#ifdef _MSC_VER
-#define POPPLER_TMP_NAME "c:\\poppler_tmp.pdf"
-#else
-#define POPPLER_TMP_NAME "/tmp/poppler_tmp.pdf"
-#endif
-
-static void RenderPdf(const char *fileName)
-{
- const char * fileNameSplash = NULL;
- PdfEnginePoppler * engineSplash = NULL;
- int pageCount;
- double timeInMs;
-
-#ifdef COPY_FILE
- // TODO: fails if file already exists and has read-only attribute
- CopyFile(fileName, POPPLER_TMP_NAME, false);
- fileNameSplash = POPPLER_TMP_NAME;
-#else
- fileNameSplash = fileName;
-#endif
- LogInfo("started: %s\n", fileName);
-
- engineSplash = new PdfEnginePoppler();
-
- GooTimer msTimer;
- if (!engineSplash->load(fileNameSplash)) {
- LogInfo("failed to load splash\n");
- goto Error;
- }
- msTimer.stop();
- timeInMs = msTimer.getElapsed();
- LogInfo("load splash: %.2f ms\n", timeInMs);
- pageCount = engineSplash->pageCount();
-
- LogInfo("page count: %d\n", pageCount);
- if (gfLoadOnly)
- goto Error;
-
- for (int curPage = 1; curPage <= pageCount; curPage++) {
- if ((gPageNo != PAGE_NO_NOT_GIVEN) && (gPageNo != curPage))
- continue;
-
- SplashBitmap *bmpSplash = NULL;
-
- GooTimer msTimer;
- bmpSplash = engineSplash->renderBitmap(curPage, 100.0, 0);
- msTimer.stop();
- double timeInMs = msTimer.getElapsed();
- if (gfTimings) {
- if (!bmpSplash)
- LogInfo("page splash %d: failed to render\n", curPage);
- else
- LogInfo("page splash %d (%dx%d): %.2f ms\n", curPage, bmpSplash->getWidth(), bmpSplash->getHeight(), timeInMs);
- }
-
- if (ShowPreview()) {
- PreviewBitmapSplash(bmpSplash);
- if (gfSlowPreview)
- sleep_milliseconds(SLOW_PREVIEW_TIME);
- }
- delete bmpSplash;
- }
-Error:
- delete engineSplash;
- LogInfo("finished: %s\n", fileName);
-}
-
-static void RenderFile(const char *fileName)
-{
- if (gfTextOnly) {
- RenderPdfAsText(fileName);
- return;
- }
-
- RenderPdf(fileName);
-}
-
-static bool ParseInteger(const char *start, const char *end, int *intOut)
-{
- char numBuf[16];
- int digitsCount;
- const char * tmp;
-
- assert(start && end && intOut);
- assert(end >= start);
- if (!start || !end || !intOut || (start > end))
- return false;
-
- digitsCount = 0;
- tmp = start;
- while (tmp <= end) {
- if (isspace(*tmp)) {
- /* do nothing, we allow whitespace */
- } else if (!isdigit(*tmp))
- return false;
- numBuf[digitsCount] = *tmp;
- ++digitsCount;
- if (digitsCount == dimof(numBuf)-3) /* -3 to be safe */
- return false;
- ++tmp;
- }
- if (0 == digitsCount)
- return false;
- numBuf[digitsCount] = 0;
- *intOut = atoi(numBuf);
- return true;
-}
-
-/* Given 'resolutionString' in format NxM (e.g. "100x200"), parse the string and put N
- into 'resolutionXOut' and M into 'resolutionYOut'.
- Return false if there was an error (e.g. string is not in the right format */
-static bool ParseResolutionString(const char *resolutionString, int *resolutionXOut, int *resolutionYOut)
-{
- const char * posOfX;
-
- assert(resolutionString);
- assert(resolutionXOut);
- assert(resolutionYOut);
- if (!resolutionString || !resolutionXOut || !resolutionYOut)
- return false;
- *resolutionXOut = 0;
- *resolutionYOut = 0;
- posOfX = strchr(resolutionString, 'X');
- if (!posOfX)
- posOfX = strchr(resolutionString, 'x');
- if (!posOfX)
- return false;
- if (posOfX == resolutionString)
- return false;
- if (!ParseInteger(resolutionString, posOfX-1, resolutionXOut))
- return false;
- if (!ParseInteger(posOfX+1, resolutionString+strlen(resolutionString)-1, resolutionYOut))
- return false;
- return true;
-}
-
-static void ParseCommandLine(int argc, char **argv)
-{
- char * arg;
-
- if (argc < 2)
- PrintUsageAndExit(argc, argv);
-
- for (int i=1; i < argc; i++) {
- arg = argv[i];
- assert(arg);
- if ('-' == arg[0]) {
- if (str_ieq(arg, TIMINGS_ARG)) {
- gfTimings = true;
- } else if (str_ieq(arg, RESOLUTION_ARG)) {
- ++i;
- if (i == argc)
- PrintUsageAndExit(argc, argv); /* expect a file name after that */
- if (!ParseResolutionString(argv[i], &gResolutionX, &gResolutionY))
- PrintUsageAndExit(argc, argv);
- gfForceResolution = true;
- } else if (str_ieq(arg, RECURSIVE_ARG)) {
- gfRecursive = true;
- } else if (str_ieq(arg, OUT_ARG)) {
- /* expect a file name after that */
- ++i;
- if (i == argc)
- PrintUsageAndExit(argc, argv);
- gOutFileName = str_dup(argv[i]);
- } else if (str_ieq(arg, PREVIEW_ARG)) {
- gfPreview = true;
- } else if (str_ieq(arg, TEXT_ARG)) {
- gfTextOnly = true;
- } else if (str_ieq(arg, SLOW_PREVIEW_ARG)) {
- gfSlowPreview = true;
- } else if (str_ieq(arg, LOAD_ONLY_ARG)) {
- gfLoadOnly = true;
- } else if (str_ieq(arg, PAGE_ARG)) {
- /* expect an integer after that */
- ++i;
- if (i == argc)
- PrintUsageAndExit(argc, argv);
- gPageNo = atoi(argv[i]);
- if (gPageNo < 1)
- PrintUsageAndExit(argc, argv);
- } else {
- /* unknown option */
- PrintUsageAndExit(argc, argv);
- }
- } else {
- /* we assume that this is not an option hence it must be
- a name of PDF/directory/file with PDF names */
- StrList_Insert(&gArgsListRoot, arg);
- }
- }
-}
-
-#if 0
-void RenderFileList(char *pdfFileList)
-{
- char *data = NULL;
- char *dataNormalized = NULL;
- char *pdfFileName;
- uint64_t fileSize;
-
- assert(pdfFileList);
- if (!pdfFileList)
- return;
- data = file_read_all(pdfFileList, &fileSize);
- if (!data) {
- error(-1, "couldn't load file '%s'", pdfFileList);
- return;
- }
- dataNormalized = str_normalize_newline(data, UNIX_NEWLINE);
- if (!dataNormalized) {
- error(-1, "couldn't normalize data of file '%s'", pdfFileList);
- goto Exit;
- }
- for (;;) {
- pdfFileName = str_split_iter(&dataNormalized, UNIX_NEWLINE_C);
- if (!pdfFileName)
- break;
- str_strip_ws_both(pdfFileName);
- if (str_empty(pdfFileName)) {
- free((void*)pdfFileName);
- continue;
- }
- RenderFile(pdfFileName);
- free((void*)pdfFileName);
- }
-Exit:
- free((void*)dataNormalized);
- free((void*)data);
-}
-#endif
-
-#ifdef _WIN32
-#include <sys/types.h>
-#include <sys/stat.h>
-
-bool IsDirectoryName(char *path)
-{
- struct _stat buf;
- int result;
-
- result = _stat(path, &buf );
- if (0 != result)
- return false;
-
- if (buf.st_mode & _S_IFDIR)
- return true;
-
- return false;
-}
-
-bool IsFileName(char *path)
-{
- struct _stat buf;
- int result;
-
- result = _stat(path, &buf );
- if (0 != result)
- return false;
-
- if (buf.st_mode & _S_IFREG)
- return true;
-
- return false;
-}
-#else
-bool IsDirectoryName(char *path)
-{
- /* TODO: implement me */
- return false;
-}
-
-bool IsFileName(char *path)
-{
- /* TODO: implement me */
- return true;
-}
-#endif
-
-bool IsPdfFileName(char *path)
-{
- if (str_endswith(path, ".pdf"))
- return true;
- return false;
-}
-
-static void RenderDirectory(char *path)
-{
- FindFileState * ffs;
- char filename[MAX_FILENAME_SIZE];
- StrList * dirList = NULL;
- StrList * el;
-
- StrList_Insert(&dirList, path);
-
- while (0 != StrList_Len(&dirList)) {
- el = StrList_RemoveHead(&dirList);
- ffs = find_file_open(el->str, "*");
- while (!find_file_next(ffs, filename, sizeof(filename))) {
- if (IsDirectoryName(filename)) {
- if (gfRecursive) {
- StrList_Insert(&dirList, filename);
- }
- } else if (IsFileName(filename)) {
- if (IsPdfFileName(filename)) {
- RenderFile(filename);
- }
- }
- }
- find_file_close(ffs);
- StrList_FreeElement(el);
- }
- StrList_Destroy(&dirList);
-}
-
-/* Render 'cmdLineArg', which can be:
- - directory name
- - name of PDF file
- - name of text file with names of PDF files
-*/
-static void RenderCmdLineArg(char *cmdLineArg)
-{
- assert(cmdLineArg);
- if (!cmdLineArg)
- return;
- if (IsDirectoryName(cmdLineArg)) {
- RenderDirectory(cmdLineArg);
- } else if (IsFileName(cmdLineArg)) {
- if (IsPdfFileName(cmdLineArg))
- RenderFile(cmdLineArg);
-#if 0
- else
- RenderFileList(cmdLineArg);
-#endif
- } else {
- error(-1, "unexpected argument '%s'", cmdLineArg);
- }
-}
-
-int main(int argc, char **argv)
-{
- setErrorFunction(my_error);
- ParseCommandLine(argc, argv);
- if (0 == StrList_Len(&gArgsListRoot))
- PrintUsageAndExit(argc, argv);
- assert(gArgsListRoot);
-
- SplashColorsInit();
- globalParams = new GlobalParams();
- if (!globalParams)
- return 1;
- globalParams->setErrQuiet(gFalse);
- globalParams->setBaseDir("");
-
- FILE * outFile = NULL;
- if (gOutFileName) {
- outFile = fopen(gOutFileName, "wb");
- if (!outFile) {
- printf("failed to open -out file %s\n", gOutFileName);
- return 1;
- }
- gOutFile = outFile;
- }
- else
- gOutFile = stdout;
-
- if (gOutFileName)
- gErrFile = outFile;
- else
- gErrFile = stderr;
-
- PreviewBitmapInit();
-
- StrList * curr = gArgsListRoot;
- while (curr) {
- RenderCmdLineArg(curr->str);
- curr = curr->next;
- }
- if (outFile)
- fclose(outFile);
- PreviewBitmapDestroy();
- StrList_Destroy(&gArgsListRoot);
- delete globalParams;
- free(gOutFileName);
- return 0;
-}
-
diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/CMakeLists.txt b/Build/source/libs/poppler/poppler-0.12.4/utils/CMakeLists.txt deleted file mode 100644 index f5d4911fdea..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/CMakeLists.txt +++ /dev/null @@ -1,84 +0,0 @@ - -set(common_srcs - parseargs.c -) -set(common_libs - poppler -) -if (FONTCONFIG_FOUND) - set(common_libs ${common_libs} ${FONTCONFIG_LIBRARIES}) -endif (FONTCONFIG_FOUND) - -if (ENABLE_SPLASH) - # pdftoppm - set(pdftoppm_SOURCES ${common_srcs} - pdftoppm.cc - ) - add_executable(pdftoppm ${pdftoppm_SOURCES}) - target_link_libraries(pdftoppm ${common_libs}) - install(TARGETS pdftoppm DESTINATION bin) -endif (ENABLE_SPLASH) - -# pdffonts -set(pdffonts_SOURCES ${common_srcs} - pdffonts.cc -) -add_executable(pdffonts ${pdffonts_SOURCES}) -target_link_libraries(pdffonts ${common_libs}) -install(TARGETS pdffonts DESTINATION bin) - -# pdfimages -set(pdfimages_SOURCES ${common_srcs} - pdfimages.cc - ImageOutputDev.cc - ImageOutputDev.h -) -add_executable(pdfimages ${pdfimages_SOURCES}) -target_link_libraries(pdfimages ${common_libs}) -install(TARGETS pdfimages DESTINATION bin) - -# pdfinfo -set(pdfinfo_SOURCES ${common_srcs} - pdfinfo.cc printencodings.cc -) -add_executable(pdfinfo ${pdfinfo_SOURCES}) -target_link_libraries(pdfinfo ${common_libs}) -install(TARGETS pdfinfo DESTINATION bin) - -# pdftops -set(pdftops_SOURCES ${common_srcs} - pdftops.cc -) -add_executable(pdftops ${pdftops_SOURCES}) -target_link_libraries(pdftops ${common_libs}) -install(TARGETS pdftops DESTINATION bin) - -# pdftotext -set(pdftotext_SOURCES ${common_srcs} - pdftotext.cc printencodings.cc -) -add_executable(pdftotext ${pdftotext_SOURCES}) -target_link_libraries(pdftotext ${common_libs}) -install(TARGETS pdftotext DESTINATION bin) - -# pdftohtml -set(pdftohtml_SOURCES ${common_srcs} - pdftohtml.cc - HtmlFonts.cc - HtmlLinks.cc - HtmlOutputDev.cc -) -add_executable(pdftohtml ${pdftohtml_SOURCES}) -target_link_libraries(pdftohtml ${common_libs}) -install(TARGETS pdftohtml DESTINATION bin) - -if (ENABLE_ABIWORD) - # pdftoabw - set(pdftoabw_SOURCES ${common_srcs} - pdftoabw.cc - ) - add_executable(pdftoabw ${pdftoabw_SOURCES}) - target_link_libraries(pdftoabw ${common_libs}) - install(TARGETS pdftoabw DESTINATION bin) -endif (ENABLE_ABIWORD) - diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlFonts.cc b/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlFonts.cc deleted file mode 100644 index d2cbfd5363a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlFonts.cc +++ /dev/null @@ -1,360 +0,0 @@ -//======================================================================== -// -// This file comes from pdftohtml project -// http://pdftohtml.sourceforge.net -// -// Copyright from: -// Gueorgui Ovtcharov -// Rainer Dorsch <http://www.ra.informatik.uni-stuttgart.de/~rainer/> -// Mikhail Kruk <meshko@cs.brandeis.edu> -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2007 Albert Astals Cid <aacid@kde.org> -// Copyright (C) 2008 Boris Toloknov <tlknv@yandex.ru> -// Copyright (C) 2008 Tomas Are Haavet <tomasare@gmail.com> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include "HtmlFonts.h" -#include "GlobalParams.h" -#include "UnicodeMap.h" -#include <stdio.h> - - struct Fonts{ - char *Fontname; - char *name; - }; - -const int font_num=13; - -static Fonts fonts[font_num+1]={ - {"Courier", "Courier" }, - {"Courier-Bold", "Courier"}, - {"Courier-BoldOblique", "Courier"}, - {"Courier-Oblique", "Courier"}, - {"Helvetica", "Helvetica"}, - {"Helvetica-Bold", "Helvetica"}, - {"Helvetica-BoldOblique", "Helvetica"}, - {"Helvetica-Oblique", "Helvetica"}, - {"Symbol", "Symbol" }, - {"Times-Bold", "Times" }, - {"Times-BoldItalic", "Times" }, - {"Times-Italic", "Times" }, - {"Times-Roman", "Times" }, - {" " , "Times" }, -}; - -#define xoutRound(x) ((int)(x + 0.5)) -extern GBool xml; - -GooString* HtmlFont::DefaultFont=new GooString("Times"); // Arial,Helvetica,sans-serif - -HtmlFontColor::HtmlFontColor(GfxRGB rgb){ - r=static_cast<int>(rgb.r/65535.0*255.0); - g=static_cast<int>(rgb.g/65535.0*255.0); - b=static_cast<int>(rgb.b/65535.0*255.0); - if (!(Ok(r)&&Ok(b)&&Ok(g))) { - if (!globalParams->getErrQuiet()) fprintf(stderr, "Error : Bad color (%d,%d,%d) reset to (0,0,0)\n", r, g, b); - r=0;g=0;b=0; - } -} - -GooString *HtmlFontColor::convtoX(unsigned int xcol) const{ - GooString *xret=new GooString(); - char tmp; - unsigned int k; - k = (xcol/16); - if ((k>=0)&&(k<10)) tmp=(char) ('0'+k); else tmp=(char)('a'+k-10); - xret->append(tmp); - k = (xcol%16); - if ((k>=0)&&(k<10)) tmp=(char) ('0'+k); else tmp=(char)('a'+k-10); - xret->append(tmp); - return xret; -} - -GooString *HtmlFontColor::toString() const{ - GooString *tmp=new GooString("#"); - GooString *tmpr=convtoX(r); - GooString *tmpg=convtoX(g); - GooString *tmpb=convtoX(b); - tmp->append(tmpr); - tmp->append(tmpg); - tmp->append(tmpb); - delete tmpr; - delete tmpg; - delete tmpb; - return tmp; -} - -HtmlFont::HtmlFont(GooString* ftname,int _size, GfxRGB rgb){ - //if (col) color=HtmlFontColor(col); - //else color=HtmlFontColor(); - color=HtmlFontColor(rgb); - - GooString *fontname = NULL; - - if( ftname ){ - fontname = new GooString(ftname); - FontName=new GooString(ftname); - } - else { - fontname = NULL; - FontName = NULL; - } - - lineSize = -1; - - size=(_size-1); - italic = gFalse; - bold = gFalse; - - if (fontname){ - if (strstr(fontname->lowerCase()->getCString(),"bold")) bold=gTrue; - - if (strstr(fontname->lowerCase()->getCString(),"italic")|| - strstr(fontname->lowerCase()->getCString(),"oblique")) italic=gTrue; - - int i=0; - while (strcmp(ftname->getCString(),fonts[i].Fontname)&&(i<font_num)) - { - i++; - } - pos=i; - delete fontname; - } else - pos = font_num; - if (!DefaultFont) DefaultFont=new GooString(fonts[font_num].name); - -} - -HtmlFont::HtmlFont(const HtmlFont& x){ - size=x.size; - lineSize=x.lineSize; - italic=x.italic; - bold=x.bold; - pos=x.pos; - color=x.color; - if (x.FontName) FontName=new GooString(x.FontName); - } - - -HtmlFont::~HtmlFont(){ - if (FontName) delete FontName; -} - -HtmlFont& HtmlFont::operator=(const HtmlFont& x){ - if (this==&x) return *this; - size=x.size; - lineSize=x.lineSize; - italic=x.italic; - bold=x.bold; - pos=x.pos; - color=x.color; - if (FontName) delete FontName; - if (x.FontName) FontName=new GooString(x.FontName); - return *this; -} - -void HtmlFont::clear(){ - if(DefaultFont) delete DefaultFont; - DefaultFont = NULL; -} - - - -/* - This function is used to compare font uniquily for insertion into - the list of all encountered fonts -*/ -GBool HtmlFont::isEqual(const HtmlFont& x) const{ - return ((size==x.size) && - (lineSize==x.lineSize) && - (pos==x.pos) && (bold==x.bold) && (italic==x.italic) && - (color.isEqual(x.getColor()))); -} - -/* - This one is used to decide whether two pieces of text can be joined together - and therefore we don't care about bold/italics properties -*/ -GBool HtmlFont::isEqualIgnoreBold(const HtmlFont& x) const{ - return ((size==x.size) && - (!strcmp(fonts[pos].name, fonts[x.pos].name)) && - (color.isEqual(x.getColor()))); -} - -GooString* HtmlFont::getFontName(){ - if (pos!=font_num) return new GooString(fonts[pos].name); - else return new GooString(DefaultFont); -} - -GooString* HtmlFont::getFullName(){ - if (FontName) - return new GooString(FontName); - else return new GooString(DefaultFont); -} - -void HtmlFont::setDefaultFont(GooString* defaultFont){ - if (DefaultFont) delete DefaultFont; - DefaultFont=new GooString(defaultFont); -} - - -GooString* HtmlFont::getDefaultFont(){ - return DefaultFont; -} - -// this method if plain wrong todo -GooString* HtmlFont::HtmlFilter(Unicode* u, int uLen) { - GooString *tmp = new GooString(); - UnicodeMap *uMap; - char buf[8]; - int n; - - // get the output encoding - if (!(uMap = globalParams->getTextEncoding())) { - return tmp; - } - - for (int i = 0; i < uLen; ++i) { - switch (u[i]) - { - case '"': tmp->append("""); break; - case '&': tmp->append("&"); break; - case '<': tmp->append("<"); break; - case '>': tmp->append(">"); break; - case ' ': tmp->append( !xml && ( i+1 >= uLen || !tmp->getLength() || tmp->getChar( tmp->getLength()-1 ) == ' ' ) ? " " : " " ); - break; - default: - { - // convert unicode to string - if ((n = uMap->mapUnicode(u[i], buf, sizeof(buf))) > 0) { - tmp->append(buf, n); - } - } - } - } - - uMap->decRefCnt(); - return tmp; -} - -GooString* HtmlFont::simple(HtmlFont* font, Unicode* content, int uLen){ - GooString *cont=HtmlFilter (content, uLen); - - /*if (font.isBold()) { - cont->insert(0,"<b>",3); - cont->append("</b>",4); - } - if (font.isItalic()) { - cont->insert(0,"<i>",3); - cont->append("</i>",4); - } */ - - return cont; -} - -HtmlFontAccu::HtmlFontAccu(){ - accu=new GooVector<HtmlFont>(); -} - -HtmlFontAccu::~HtmlFontAccu(){ - if (accu) delete accu; -} - -int HtmlFontAccu::AddFont(const HtmlFont& font){ - GooVector<HtmlFont>::iterator i; - for (i=accu->begin();i!=accu->end();i++) - { - if (font.isEqual(*i)) - { - return (int)(i-(accu->begin())); - } - } - - accu->push_back(font); - return (accu->size()-1); -} - -// get CSS font name for font #i -GooString* HtmlFontAccu::getCSStyle(int i, GooString* content){ - GooString *tmp; - GooString *iStr=GooString::fromInt(i); - - if (!xml) { - tmp = new GooString("<span class=\"ft"); - tmp->append(iStr); - tmp->append("\">"); - tmp->append(content); - tmp->append("</span>"); - } else { - tmp = new GooString(""); - tmp->append(content); - } - - delete iStr; - return tmp; -} - -// get CSS font definition for font #i -GooString* HtmlFontAccu::CSStyle(int i){ - GooString *tmp=new GooString(); - GooString *iStr=GooString::fromInt(i); - - GooVector<HtmlFont>::iterator g=accu->begin(); - g+=i; - HtmlFont font=*g; - GooString *Size=GooString::fromInt(font.getSize()); - GooString *colorStr=font.getColor().toString(); - GooString *fontName=font.getFontName(); - GooString *lSize; - - if(!xml){ - tmp->append(".ft"); - tmp->append(iStr); - tmp->append("{font-size:"); - tmp->append(Size); - if( font.getLineSize() != -1 ) - { - lSize = GooString::fromInt(font.getLineSize()); - tmp->append("px;line-height:"); - tmp->append(lSize); - delete lSize; - } - tmp->append("px;font-family:"); - tmp->append(fontName); //font.getFontName()); - tmp->append(";color:"); - tmp->append(colorStr); - tmp->append(";}"); - } - if (xml) { - tmp->append("<fontspec id=\""); - tmp->append(iStr); - tmp->append("\" size=\""); - tmp->append(Size); - tmp->append("\" family=\""); - tmp->append(fontName); //font.getFontName()); - tmp->append("\" color=\""); - tmp->append(colorStr); - tmp->append("\"/>"); - } - - delete fontName; - delete colorStr; - delete iStr; - delete Size; - return tmp; -} - - diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlFonts.h b/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlFonts.h deleted file mode 100644 index df2b5706eb3..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlFonts.h +++ /dev/null @@ -1,97 +0,0 @@ -//======================================================================== -// -// This file comes from pdftohtml project -// http://pdftohtml.sourceforge.net -// -// Copyright from: -// Gueorgui Ovtcharov -// Rainer Dorsch <http://www.ra.informatik.uni-stuttgart.de/~rainer/> -// Mikhail Kruk <meshko@cs.brandeis.edu> -// -//======================================================================== - -#ifndef _HTML_FONTS_H -#define _HTML_FONTS_H -#include "goo/GooVector.h" -#include "goo/GooString.h" -#include "GfxState.h" -#include "CharTypes.h" - - -class HtmlFontColor{ - private: - unsigned int r; - unsigned int g; - unsigned int b; - GBool Ok(unsigned int xcol){ return ((xcol<=255)&&(xcol>=0));} - GooString *convtoX(unsigned int xcol) const; - public: - HtmlFontColor():r(0),g(0),b(0){} - HtmlFontColor(GfxRGB rgb); - HtmlFontColor(const HtmlFontColor& x){r=x.r;g=x.g;b=x.b;} - HtmlFontColor& operator=(const HtmlFontColor &x){ - r=x.r;g=x.g;b=x.b; - return *this; - } - ~HtmlFontColor(){}; - GooString* toString() const; - GBool isEqual(const HtmlFontColor& col) const{ - return ((r==col.r)&&(g==col.g)&&(b==col.b)); - } -} ; - - -class HtmlFont{ - private: - unsigned int size; - int lineSize; - GBool italic; - GBool bold; - int pos; // position of the font name in the fonts array - static GooString *DefaultFont; - GooString *FontName; - HtmlFontColor color; - static GooString* HtmlFilter(Unicode* u, int uLen); //char* s); -public: - - HtmlFont(){FontName=NULL;}; - HtmlFont(GooString* fontname,int _size, GfxRGB rgb); - HtmlFont(const HtmlFont& x); - HtmlFont& operator=(const HtmlFont& x); - HtmlFontColor getColor() const {return color;} - ~HtmlFont(); - static void clear(); - GooString* getFullName(); - GBool isItalic() const {return italic;} - GBool isBold() const {return bold;} - unsigned int getSize() const {return size;} - int getLineSize() const {return lineSize;} - void setLineSize(int _lineSize) { lineSize = _lineSize; } - GooString* getFontName(); - static GooString* getDefaultFont(); - static void setDefaultFont(GooString* defaultFont); - GBool isEqual(const HtmlFont& x) const; - GBool isEqualIgnoreBold(const HtmlFont& x) const; - static GooString* simple(HtmlFont *font, Unicode *content, int uLen); - void print() const {printf("font: %s %d %s%spos: %d\n", FontName->getCString(), size, bold ? "bold " : "", italic ? "italic " : "", pos);}; -}; - -class HtmlFontAccu{ -private: - GooVector<HtmlFont> *accu; - -public: - HtmlFontAccu(); - ~HtmlFontAccu(); - int AddFont(const HtmlFont& font); - HtmlFont* Get(int i){ - GooVector<HtmlFont>::iterator g=accu->begin(); - g+=i; - return g; - } - GooString* getCSStyle (int i, GooString* content); - GooString* CSStyle(int i); - int size() const {return accu->size();} - -}; -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlLinks.cc b/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlLinks.cc deleted file mode 100644 index 0fd093c5f4d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlLinks.cc +++ /dev/null @@ -1,156 +0,0 @@ -//======================================================================== -// -// This file comes from pdftohtml project -// http://pdftohtml.sourceforge.net -// -// Copyright from: -// Gueorgui Ovtcharov -// Rainer Dorsch <http://www.ra.informatik.uni-stuttgart.de/~rainer/> -// Mikhail Kruk <meshko@cs.brandeis.edu> -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2008 Boris Toloknov <tlknv@yandex.ru> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include "HtmlLinks.h" - -extern GBool xml; - -HtmlLink::HtmlLink(const HtmlLink& x){ - Xmin=x.Xmin; - Ymin=x.Ymin; - Xmax=x.Xmax; - Ymax=x.Ymax; - dest=new GooString(x.dest); -} - -HtmlLink::HtmlLink(double xmin,double ymin,double xmax,double ymax,GooString * _dest) -{ - if (xmin < xmax) { - Xmin=xmin; - Xmax=xmax; - } else { - Xmin=xmax; - Xmax=xmin; - } - if (ymin < ymax) { - Ymin=ymin; - Ymax=ymax; - } else { - Ymin=ymax; - Ymax=ymin; - } - dest=new GooString(_dest); -} - -HtmlLink::~HtmlLink(){ - if (dest) delete dest; -} - -GBool HtmlLink::isEqualDest(const HtmlLink& x) const{ - return (!strcmp(dest->getCString(), x.dest->getCString())); -} - -GBool HtmlLink::inLink(double xmin,double ymin,double xmax,double ymax) const { - double y=(ymin+ymax)/2; - if (y>Ymax) return gFalse; - return (y>Ymin)&&(xmin<Xmax)&&(xmax>Xmin); - } - - -HtmlLink& HtmlLink::operator=(const HtmlLink& x){ - if (this==&x) return *this; - if (dest) {delete dest;dest=NULL;} - Xmin=x.Xmin; - Ymin=x.Ymin; - Xmax=x.Xmax; - Ymax=x.Ymax; - dest=new GooString(x.dest); - return *this; -} - -static GooString* EscapeSpecialChars( GooString* s ) -{ - GooString* tmp = NULL; - for( int i = 0, j = 0; i < s->getLength(); i++, j++ ){ - const char *replace = NULL; - switch ( s->getChar(i) ){ - case '"': replace = """; break; - case '&': replace = "&"; break; - case '<': replace = "<"; break; - case '>': replace = ">"; break; - default: continue; - } - if( replace ){ - if( !tmp ) tmp = new GooString( s ); - if( tmp ){ - tmp->del( j, 1 ); - int l = strlen( replace ); - tmp->insert( j, replace, l ); - j += l - 1; - } - } - } - return tmp ? tmp : s; -} - -GooString* HtmlLink::getLinkStart() { - GooString *res = new GooString("<a href=\""); - GooString *d = xml ? EscapeSpecialChars(dest) : dest; - res->append( d ); - if( d != dest ) delete d; - res->append("\">"); - return res; -} - -/*GooString* HtmlLink::Link(GooString* content){ - //GooString* _dest=new GooString(dest); - GooString *tmp=new GooString("<a href=\""); - tmp->append(dest); - tmp->append("\">"); - tmp->append(content); - tmp->append("</a>"); - //delete _dest; - return tmp; - }*/ - - - -HtmlLinks::HtmlLinks(){ - accu=new GooVector<HtmlLink>(); -} - -HtmlLinks::~HtmlLinks(){ - delete accu; - accu=NULL; -} - -GBool HtmlLinks::inLink(double xmin,double ymin,double xmax,double ymax,int& p)const { - - for(GooVector<HtmlLink>::iterator i=accu->begin();i!=accu->end();i++){ - if (i->inLink(xmin,ymin,xmax,ymax)) { - p=(i - accu->begin()); - return 1; - } - } - return 0; -} - -HtmlLink* HtmlLinks::getLink(int i) const{ - GooVector<HtmlLink>::iterator g=accu->begin(); - g+=i; - return g; -} - diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlLinks.h b/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlLinks.h deleted file mode 100644 index 571c2a70f0f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlLinks.h +++ /dev/null @@ -1,61 +0,0 @@ -//======================================================================== -// -// This file comes from pdftohtml project -// http://pdftohtml.sourceforge.net -// -// Copyright from: -// Gueorgui Ovtcharov -// Rainer Dorsch <http://www.ra.informatik.uni-stuttgart.de/~rainer/> -// Mikhail Kruk <meshko@cs.brandeis.edu> -// -//======================================================================== - -#ifndef _HTML_LINKS -#define _HTML_LINKS - -#include <stdlib.h> -#include <string.h> -#include "goo/GooVector.h" -#include "goo/GooString.h" - -class HtmlLink{ - -private: - double Xmin; - double Ymin; - double Xmax; - double Ymax; - GooString* dest; - -public: - HtmlLink(){dest=NULL;} - HtmlLink(const HtmlLink& x); - HtmlLink& operator=(const HtmlLink& x); - HtmlLink(double xmin,double ymin,double xmax,double ymax,GooString *_dest); - ~HtmlLink(); - GBool isEqualDest(const HtmlLink& x) const; - GooString *getDest(){return new GooString(dest);} - double getX1() const {return Xmin;} - double getX2() const {return Xmax;} - double getY1() const {return Ymin;} - double getY2() const {return Ymax;} - GBool inLink(double xmin,double ymin,double xmax,double ymax) const ; - //GooString *Link(GooString *content); - GooString* getLinkStart(); - -}; - -class HtmlLinks{ -private: - GooVector<HtmlLink> *accu; -public: - HtmlLinks(); - ~HtmlLinks(); - void AddLink(const HtmlLink& x) {accu->push_back(x);} - GBool inLink(double xmin,double ymin,double xmax,double ymax,int& p) const; - HtmlLink* getLink(int i) const; - -}; - -#endif - diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlOutputDev.cc b/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlOutputDev.cc deleted file mode 100644 index 64f5098bc5f..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlOutputDev.cc +++ /dev/null @@ -1,1672 +0,0 @@ -//======================================================================== -// -// HtmlOutputDev.cc -// -// Copyright 1997-2002 Glyph & Cog, LLC -// -// Changed 1999-2000 by G.Ovtcharov -// -// Changed 2002 by Mikhail Kruk -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2005-2009 Albert Astals Cid <aacid@kde.org> -// Copyright (C) 2008 Kjartan Maraas <kmaraas@gnome.org> -// Copyright (C) 2008 Boris Toloknov <tlknv@yandex.ru> -// Copyright (C) 2008 Haruyuki Kawabe <Haruyuki.Kawabe@unisys.co.jp> -// Copyright (C) 2008 Tomas Are Haavet <tomasare@gmail.com> -// Copyright (C) 2009 Warren Toomey <wkt@tuhs.org> -// Copyright (C) 2009 Carlos Garcia Campos <carlosgc@gnome.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#ifdef __GNUC__ -#pragma implementation -#endif - -#include "config.h" -#include <stdio.h> -#include <stdlib.h> -#include <stdarg.h> -#include <stddef.h> -#include <ctype.h> -#include <math.h> -#include "goo/GooString.h" -#include "goo/GooList.h" -#include "UnicodeMap.h" -#include "goo/gmem.h" -#include "Error.h" -#include "GfxState.h" -#include "Page.h" -#ifdef ENABLE_LIBJPEG -#include "DCTStream.h" -#endif -#include "GlobalParams.h" -#include "HtmlOutputDev.h" -#include "HtmlFonts.h" -#include "PNGWriter.h" - -int HtmlPage::pgNum=0; -int HtmlOutputDev::imgNum=1; -GooList *HtmlOutputDev::imgList=new GooList(); - -extern double scale; -extern GBool complexMode; -extern GBool ignore; -extern GBool printCommands; -extern GBool printHtml; -extern GBool noframes; -extern GBool stout; -extern GBool xml; -extern GBool showHidden; -extern GBool noMerge; - -static GooString* basename(GooString* str){ - - char *p=str->getCString(); - int len=str->getLength(); - for (int i=len-1;i>=0;i--) - if (*(p+i)==SLASH) - return new GooString((p+i+1),len-i-1); - return new GooString(str); -} - -#if 0 -static GooString* Dirname(GooString* str){ - - char *p=str->getCString(); - int len=str->getLength(); - for (int i=len-1;i>=0;i--) - if (*(p+i)==SLASH) - return new GooString(p,i+1); - return new GooString(); -} -#endif - -//------------------------------------------------------------------------ -// HtmlString -//------------------------------------------------------------------------ - -HtmlString::HtmlString(GfxState *state, double fontSize, HtmlFontAccu* fonts) { - GfxFont *font; - double x, y; - - state->transform(state->getCurX(), state->getCurY(), &x, &y); - if ((font = state->getFont())) { - double ascent = font->getAscent(); - double descent = font->getDescent(); - if( ascent > 1.05 ){ - //printf( "ascent=%.15g is too high, descent=%.15g\n", ascent, descent ); - ascent = 1.05; - } - if( descent < -0.4 ){ - //printf( "descent %.15g is too low, ascent=%.15g\n", descent, ascent ); - descent = -0.4; - } - yMin = y - ascent * fontSize; - yMax = y - descent * fontSize; - GfxRGB rgb; - state->getFillRGB(&rgb); - GooString *name = state->getFont()->getName(); - if (!name) name = HtmlFont::getDefaultFont(); //new GooString("default"); - HtmlFont hfont=HtmlFont(name, static_cast<int>(fontSize-1), rgb); - fontpos = fonts->AddFont(hfont); - } else { - // this means that the PDF file draws text without a current font, - // which should never happen - yMin = y - 0.95 * fontSize; - yMax = y + 0.35 * fontSize; - fontpos=0; - } - if (yMin == yMax) { - // this is a sanity check for a case that shouldn't happen -- but - // if it does happen, we want to avoid dividing by zero later - yMin = y; - yMax = y + 1; - } - col = 0; - text = NULL; - xRight = NULL; - link = NULL; - len = size = 0; - yxNext = NULL; - xyNext = NULL; - htext=new GooString(); - dir = textDirUnknown; -} - - -HtmlString::~HtmlString() { - gfree(text); - delete htext; - gfree(xRight); -} - -void HtmlString::addChar(GfxState *state, double x, double y, - double dx, double dy, Unicode u) { - if (dir == textDirUnknown) { - //dir = UnicodeMap::getDirection(u); - dir = textDirLeftRight; - } - - if (len == size) { - size += 16; - text = (Unicode *)grealloc(text, size * sizeof(Unicode)); - xRight = (double *)grealloc(xRight, size * sizeof(double)); - } - text[len] = u; - if (len == 0) { - xMin = x; - } - xMax = xRight[len] = x + dx; -//printf("added char: %f %f xright = %f\n", x, dx, x+dx); - ++len; -} - -void HtmlString::endString() -{ - if( dir == textDirRightLeft && len > 1 ) - { - //printf("will reverse!\n"); - for (int i = 0; i < len / 2; i++) - { - Unicode ch = text[i]; - text[i] = text[len - i - 1]; - text[len - i - 1] = ch; - } - } -} - -//------------------------------------------------------------------------ -// HtmlPage -//------------------------------------------------------------------------ - -HtmlPage::HtmlPage(GBool rawOrder, char *imgExtVal) { - this->rawOrder = rawOrder; - curStr = NULL; - yxStrings = NULL; - xyStrings = NULL; - yxCur1 = yxCur2 = NULL; - fonts=new HtmlFontAccu(); - links=new HtmlLinks(); - pageWidth=0; - pageHeight=0; - fontsPageMarker = 0; - DocName=NULL; - firstPage = -1; - imgExt = new GooString(imgExtVal); -} - -HtmlPage::~HtmlPage() { - clear(); - if (DocName) delete DocName; - if (fonts) delete fonts; - if (links) delete links; - if (imgExt) delete imgExt; -} - -void HtmlPage::updateFont(GfxState *state) { - GfxFont *font; - double *fm; - char *name; - int code; - double w; - - // adjust the font size - fontSize = state->getTransformedFontSize(); - if ((font = state->getFont()) && font->getType() == fontType3) { - // This is a hack which makes it possible to deal with some Type 3 - // fonts. The problem is that it's impossible to know what the - // base coordinate system used in the font is without actually - // rendering the font. This code tries to guess by looking at the - // width of the character 'm' (which breaks if the font is a - // subset that doesn't contain 'm'). - for (code = 0; code < 256; ++code) { - if ((name = ((Gfx8BitFont *)font)->getCharName(code)) && - name[0] == 'm' && name[1] == '\0') { - break; - } - } - if (code < 256) { - w = ((Gfx8BitFont *)font)->getWidth(code); - if (w != 0) { - // 600 is a generic average 'm' width -- yes, this is a hack - fontSize *= w / 0.6; - } - } - fm = font->getFontMatrix(); - if (fm[0] != 0) { - fontSize *= fabs(fm[3] / fm[0]); - } - } -} - -void HtmlPage::beginString(GfxState *state, GooString *s) { - curStr = new HtmlString(state, fontSize, fonts); -} - - -void HtmlPage::conv(){ - HtmlString *tmp; - - int linkIndex = 0; - HtmlFont* h; - for(tmp=yxStrings;tmp;tmp=tmp->yxNext){ - int pos=tmp->fontpos; - // printf("%d\n",pos); - h=fonts->Get(pos); - - if (tmp->htext) delete tmp->htext; - tmp->htext=HtmlFont::simple(h,tmp->text,tmp->len); - - if (links->inLink(tmp->xMin,tmp->yMin,tmp->xMax,tmp->yMax, linkIndex)){ - tmp->link = links->getLink(linkIndex); - /*GooString *t=tmp->htext; - tmp->htext=links->getLink(k)->Link(tmp->htext); - delete t;*/ - } - } - -} - - -void HtmlPage::addChar(GfxState *state, double x, double y, - double dx, double dy, - double ox, double oy, Unicode *u, int uLen) { - double x1, y1, w1, h1, dx2, dy2; - int n, i; - state->transform(x, y, &x1, &y1); - n = curStr->len; - - // check that new character is in the same direction as current string - // and is not too far away from it before adding - //if ((UnicodeMap::getDirection(u[0]) != curStr->dir) || - // XXX - if ( - (n > 0 && - fabs(x1 - curStr->xRight[n-1]) > 0.1 * (curStr->yMax - curStr->yMin))) { - endString(); - beginString(state, NULL); - } - state->textTransformDelta(state->getCharSpace() * state->getHorizScaling(), - 0, &dx2, &dy2); - dx -= dx2; - dy -= dy2; - state->transformDelta(dx, dy, &w1, &h1); - if (uLen != 0) { - w1 /= uLen; - h1 /= uLen; - } - for (i = 0; i < uLen; ++i) { - curStr->addChar(state, x1 + i*w1, y1 + i*h1, w1, h1, u[i]); - } -} - -void HtmlPage::endString() { - HtmlString *p1, *p2; - double h, y1, y2; - - // throw away zero-length strings -- they don't have valid xMin/xMax - // values, and they're useless anyway - if (curStr->len == 0) { - delete curStr; - curStr = NULL; - return; - } - - curStr->endString(); - -#if 0 //~tmp - if (curStr->yMax - curStr->yMin > 20) { - delete curStr; - curStr = NULL; - return; - } -#endif - - // insert string in y-major list - h = curStr->yMax - curStr->yMin; - y1 = curStr->yMin + 0.5 * h; - y2 = curStr->yMin + 0.8 * h; - if (rawOrder) { - p1 = yxCur1; - p2 = NULL; - } else if ((!yxCur1 || - (y1 >= yxCur1->yMin && - (y2 >= yxCur1->yMax || curStr->xMax >= yxCur1->xMin))) && - (!yxCur2 || - (y1 < yxCur2->yMin || - (y2 < yxCur2->yMax && curStr->xMax < yxCur2->xMin)))) { - p1 = yxCur1; - p2 = yxCur2; - } else { - for (p1 = NULL, p2 = yxStrings; p2; p1 = p2, p2 = p2->yxNext) { - if (y1 < p2->yMin || (y2 < p2->yMax && curStr->xMax < p2->xMin)) - break; - } - yxCur2 = p2; - } - yxCur1 = curStr; - if (p1) - p1->yxNext = curStr; - else - yxStrings = curStr; - curStr->yxNext = p2; - curStr = NULL; -} - -static const char *strrstr( const char *s, const char *ss ) -{ - const char *p = strstr( s, ss ); - for( const char *pp = p; pp != NULL; pp = strstr( p+1, ss ) ){ - p = pp; - } - return p; -} - -static void CloseTags( GooString *htext, GBool &finish_a, GBool &finish_italic, GBool &finish_bold ) -{ - const char *last_italic = finish_italic && ( finish_bold || finish_a ) ? strrstr( htext->getCString(), "<i>" ) : NULL; - const char *last_bold = finish_bold && ( finish_italic || finish_a ) ? strrstr( htext->getCString(), "<b>" ) : NULL; - const char *last_a = finish_a && ( finish_italic || finish_bold ) ? strrstr( htext->getCString(), "<a " ) : NULL; - if( finish_a && ( finish_italic || finish_bold ) && last_a > ( last_italic > last_bold ? last_italic : last_bold ) ){ - htext->append("</a>", 4); - finish_a = false; - } - if( finish_italic && finish_bold && last_italic > last_bold ){ - htext->append("</i>", 4); - finish_italic = false; - } - if( finish_bold ) - htext->append("</b>", 4); - if( finish_italic ) - htext->append("</i>", 4); - if( finish_a ) - htext->append("</a>"); -} - -void HtmlPage::coalesce() { - HtmlString *str1, *str2; - HtmlFont *hfont1, *hfont2; - double space, horSpace, vertSpace, vertOverlap; - GBool addSpace, addLineBreak; - int n, i; - double curX, curY; - -#if 0 //~ for debugging - for (str1 = yxStrings; str1; str1 = str1->yxNext) { - printf("x=%f..%f y=%f..%f size=%2d '", - str1->xMin, str1->xMax, str1->yMin, str1->yMax, - (int)(str1->yMax - str1->yMin)); - for (i = 0; i < str1->len; ++i) { - fputc(str1->text[i] & 0xff, stdout); - } - printf("'\n"); - } - printf("\n------------------------------------------------------------\n\n"); -#endif - str1 = yxStrings; - - if( !str1 ) return; - - //----- discard duplicated text (fake boldface, drop shadows) - if( !complexMode ) - { /* if not in complex mode get rid of duplicate strings */ - HtmlString *str3; - GBool found; - while (str1) - { - double size = str1->yMax - str1->yMin; - double xLimit = str1->xMin + size * 0.2; - found = gFalse; - for (str2 = str1, str3 = str1->yxNext; - str3 && str3->xMin < xLimit; - str2 = str3, str3 = str2->yxNext) - { - if (str3->len == str1->len && - !memcmp(str3->text, str1->text, str1->len * sizeof(Unicode)) && - fabs(str3->yMin - str1->yMin) < size * 0.2 && - fabs(str3->yMax - str1->yMax) < size * 0.2 && - fabs(str3->xMax - str1->xMax) < size * 0.2) - { - found = gTrue; - //printf("found duplicate!\n"); - break; - } - } - if (found) - { - str2->xyNext = str3->xyNext; - str2->yxNext = str3->yxNext; - delete str3; - } - else - { - str1 = str1->yxNext; - } - } - } /*- !complexMode */ - - str1 = yxStrings; - - hfont1 = getFont(str1); - if( hfont1->isBold() ) - str1->htext->insert(0,"<b>",3); - if( hfont1->isItalic() ) - str1->htext->insert(0,"<i>",3); - if( str1->getLink() != NULL ) { - GooString *ls = str1->getLink()->getLinkStart(); - str1->htext->insert(0, ls); - delete ls; - } - curX = str1->xMin; curY = str1->yMin; - - while (str1 && (str2 = str1->yxNext)) { - hfont2 = getFont(str2); - space = str1->yMax - str1->yMin; - horSpace = str2->xMin - str1->xMax; - addLineBreak = !noMerge && (fabs(str1->xMin - str2->xMin) < 0.4); - vertSpace = str2->yMin - str1->yMax; - -//printf("coalesce %d %d %f? ", str1->dir, str2->dir, d); - - if (str2->yMin >= str1->yMin && str2->yMin <= str1->yMax) - { - vertOverlap = str1->yMax - str2->yMin; - } else - if (str2->yMax >= str1->yMin && str2->yMax <= str1->yMax) - { - vertOverlap = str2->yMax - str1->yMin; - } else - { - vertOverlap = 0; - } - - if ( - ( - ( - ( - (rawOrder && vertOverlap > 0.5 * space) - || - (!rawOrder && str2->yMin < str1->yMax) - ) && - (horSpace > -0.5 * space && horSpace < space) - ) || - (vertSpace >= 0 && vertSpace < 0.5 * space && addLineBreak) - ) && - (!complexMode || (hfont1->isEqualIgnoreBold(*hfont2))) && // in complex mode fonts must be the same, in other modes fonts do not metter - str1->dir == str2->dir // text direction the same - ) - { -// printf("yes\n"); - n = str1->len + str2->len; - if ((addSpace = horSpace > 0.1 * space)) { - ++n; - } - if (addLineBreak) { - ++n; - } - - str1->size = (n + 15) & ~15; - str1->text = (Unicode *)grealloc(str1->text, - str1->size * sizeof(Unicode)); - str1->xRight = (double *)grealloc(str1->xRight, - str1->size * sizeof(double)); - if (addSpace) { - str1->text[str1->len] = 0x20; - str1->htext->append(xml?" ":" "); - str1->xRight[str1->len] = str2->xMin; - ++str1->len; - } - if (addLineBreak) { - str1->text[str1->len] = '\n'; - str1->htext->append("<br>"); - str1->xRight[str1->len] = str2->xMin; - ++str1->len; - str1->yMin = str2->yMin; - str1->yMax = str2->yMax; - str1->xMax = str2->xMax; - int fontLineSize = hfont1->getLineSize(); - int curLineSize = (int)(vertSpace + space); - if( curLineSize != fontLineSize ) - { - HtmlFont *newfnt = new HtmlFont(*hfont1); - newfnt->setLineSize(curLineSize); - str1->fontpos = fonts->AddFont(*newfnt); - delete newfnt; - hfont1 = getFont(str1); - // we have to reget hfont2 because it's location could have - // changed on resize - hfont2 = getFont(str2); - } - } - for (i = 0; i < str2->len; ++i) { - str1->text[str1->len] = str2->text[i]; - str1->xRight[str1->len] = str2->xRight[i]; - ++str1->len; - } - - /* fix <i>, <b> if str1 and str2 differ and handle switch of links */ - HtmlLink *hlink1 = str1->getLink(); - HtmlLink *hlink2 = str2->getLink(); - bool switch_links = !hlink1 || !hlink2 || !hlink1->isEqualDest(*hlink2); - GBool finish_a = switch_links && hlink1 != NULL; - GBool finish_italic = hfont1->isItalic() && ( !hfont2->isItalic() || finish_a ); - GBool finish_bold = hfont1->isBold() && ( !hfont2->isBold() || finish_a || finish_italic ); - CloseTags( str1->htext, finish_a, finish_italic, finish_bold ); - if( switch_links && hlink2 != NULL ) { - GooString *ls = hlink2->getLinkStart(); - str1->htext->append(ls); - delete ls; - } - if( ( !hfont1->isItalic() || finish_italic ) && hfont2->isItalic() ) - str1->htext->append("<i>", 3); - if( ( !hfont1->isBold() || finish_bold ) && hfont2->isBold() ) - str1->htext->append("<b>", 3); - - - str1->htext->append(str2->htext); - // str1 now contains href for link of str2 (if it is defined) - str1->link = str2->link; - hfont1 = hfont2; - if (str2->xMax > str1->xMax) { - str1->xMax = str2->xMax; - } - if (str2->yMax > str1->yMax) { - str1->yMax = str2->yMax; - } - str1->yxNext = str2->yxNext; - delete str2; - } else { // keep strings separate -// printf("no\n"); - GBool finish_a = str1->getLink() != NULL; - GBool finish_bold = hfont1->isBold(); - GBool finish_italic = hfont1->isItalic(); - CloseTags( str1->htext, finish_a, finish_italic, finish_bold ); - - str1->xMin = curX; str1->yMin = curY; - str1 = str2; - curX = str1->xMin; curY = str1->yMin; - hfont1 = hfont2; - if( hfont1->isBold() ) - str1->htext->insert(0,"<b>",3); - if( hfont1->isItalic() ) - str1->htext->insert(0,"<i>",3); - if( str1->getLink() != NULL ) { - GooString *ls = str1->getLink()->getLinkStart(); - str1->htext->insert(0, ls); - delete ls; - } - } - } - str1->xMin = curX; str1->yMin = curY; - - GBool finish_bold = hfont1->isBold(); - GBool finish_italic = hfont1->isItalic(); - GBool finish_a = str1->getLink() != NULL; - CloseTags( str1->htext, finish_a, finish_italic, finish_bold ); - -#if 0 //~ for debugging - for (str1 = yxStrings; str1; str1 = str1->yxNext) { - printf("x=%3d..%3d y=%3d..%3d size=%2d ", - (int)str1->xMin, (int)str1->xMax, (int)str1->yMin, (int)str1->yMax, - (int)(str1->yMax - str1->yMin)); - printf("'%s'\n", str1->htext->getCString()); - } - printf("\n------------------------------------------------------------\n\n"); -#endif - -} - -void HtmlPage::dumpAsXML(FILE* f,int page){ - fprintf(f, "<page number=\"%d\" position=\"absolute\"", page); - fprintf(f," top=\"0\" left=\"0\" height=\"%d\" width=\"%d\">\n", pageHeight,pageWidth); - - for(int i=fontsPageMarker;i < fonts->size();i++) { - GooString *fontCSStyle = fonts->CSStyle(i); - fprintf(f,"\t%s\n",fontCSStyle->getCString()); - delete fontCSStyle; - } - - GooString *str, *str1 = NULL; - for(HtmlString *tmp=yxStrings;tmp;tmp=tmp->yxNext){ - if (tmp->htext){ - str=new GooString(tmp->htext); - fprintf(f,"<text top=\"%d\" left=\"%d\" ",xoutRound(tmp->yMin),xoutRound(tmp->xMin)); - fprintf(f,"width=\"%d\" height=\"%d\" ",xoutRound(tmp->xMax-tmp->xMin),xoutRound(tmp->yMax-tmp->yMin)); - fprintf(f,"font=\"%d\">", tmp->fontpos); - if (tmp->fontpos!=-1){ - str1=fonts->getCSStyle(tmp->fontpos, str); - } - fputs(str1->getCString(),f); - delete str; - delete str1; - fputs("</text>\n",f); - } - } - fputs("</page>\n",f); -} - - -void HtmlPage::dumpComplex(FILE *file, int page){ - FILE* pageFile; - GooString* tmp; - char* htmlEncoding; - - if( firstPage == -1 ) firstPage = page; - - if( !noframes ) - { - GooString* pgNum=GooString::fromInt(page); - tmp = new GooString(DocName); - tmp->append('-')->append(pgNum)->append(".html"); - delete pgNum; - - if (!(pageFile = fopen(tmp->getCString(), "w"))) { - error(-1, "Couldn't open html file '%s'", tmp->getCString()); - delete tmp; - return; - } - delete tmp; - - fprintf(pageFile,"%s\n<HTML>\n<HEAD>\n<TITLE>Page %d</TITLE>\n\n", - DOCTYPE, page); - - htmlEncoding = HtmlOutputDev::mapEncodingToHtml - (globalParams->getTextEncodingName()); - fprintf(pageFile, "<META http-equiv=\"Content-Type\" content=\"text/html; charset=%s\">\n", htmlEncoding); - } - else - { - pageFile = file; - fprintf(pageFile,"<!-- Page %d -->\n", page); - fprintf(pageFile,"<a name=\"%d\"></a>\n", page); - } - - fprintf(pageFile,"<DIV style=\"position:relative;width:%d;height:%d;\">\n", - pageWidth, pageHeight); - - tmp=basename(DocName); - - fputs("<STYLE type=\"text/css\">\n<!--\n",pageFile); - for(int i=fontsPageMarker;i!=fonts->size();i++) { - GooString *fontCSStyle = fonts->CSStyle(i); - fprintf(pageFile,"\t%s\n",fontCSStyle->getCString()); - delete fontCSStyle; - } - - fputs("-->\n</STYLE>\n",pageFile); - - if( !noframes ) - { - fputs("</HEAD>\n<BODY bgcolor=\"#A0A0A0\" vlink=\"blue\" link=\"blue\">\n",pageFile); - } - - if( !ignore ) - { - fprintf(pageFile, - "<IMG width=\"%d\" height=\"%d\" src=\"%s%03d.%s\" alt=\"background image\">\n", - pageWidth, pageHeight, tmp->getCString(), - (page-firstPage+1), imgExt->getCString()); - } - - delete tmp; - - GooString *str, *str1 = NULL; - for(HtmlString *tmp1=yxStrings;tmp1;tmp1=tmp1->yxNext){ - if (tmp1->htext){ - str=new GooString(tmp1->htext); - fprintf(pageFile, - "<DIV style=\"position:absolute;top:%d;left:%d\">", - xoutRound(tmp1->yMin), - xoutRound(tmp1->xMin)); - fputs("<nobr>",pageFile); - if (tmp1->fontpos!=-1){ - str1=fonts->getCSStyle(tmp1->fontpos, str); - } - //printf("%s\n", str1->getCString()); - fputs(str1->getCString(),pageFile); - - delete str; - delete str1; - fputs("</nobr></DIV>\n",pageFile); - } - } - - fputs("</DIV>\n", pageFile); - - if( !noframes ) - { - fputs("</BODY>\n</HTML>\n",pageFile); - fclose(pageFile); - } -} - - -void HtmlPage::dump(FILE *f, int pageNum) -{ - if (complexMode) - { - if (xml) dumpAsXML(f, pageNum); - if (!xml) dumpComplex(f, pageNum); - } - else - { - fprintf(f,"<A name=%d></a>",pageNum); - // Loop over the list of image names on this page - int listlen=HtmlOutputDev::imgList->getLength(); - for (int i = 0; i < listlen; i++) { - GooString *fName= (GooString *)HtmlOutputDev::imgList->del(0); - fprintf(f,"<IMG src=\"%s\"><br>\n",fName->getCString()); - delete fName; - } - HtmlOutputDev::imgNum=1; - - GooString* str; - for(HtmlString *tmp=yxStrings;tmp;tmp=tmp->yxNext){ - if (tmp->htext){ - str=new GooString(tmp->htext); - fputs(str->getCString(),f); - delete str; - fputs("<br>\n",f); - } - } - fputs("<hr>\n",f); - } -} - - - -void HtmlPage::clear() { - HtmlString *p1, *p2; - - if (curStr) { - delete curStr; - curStr = NULL; - } - for (p1 = yxStrings; p1; p1 = p2) { - p2 = p1->yxNext; - delete p1; - } - yxStrings = NULL; - xyStrings = NULL; - yxCur1 = yxCur2 = NULL; - - if( !noframes ) - { - delete fonts; - fonts=new HtmlFontAccu(); - fontsPageMarker = 0; - } - else - { - fontsPageMarker = fonts->size(); - } - - delete links; - links=new HtmlLinks(); - - -} - -void HtmlPage::setDocName(char *fname){ - DocName=new GooString(fname); -} - -//------------------------------------------------------------------------ -// HtmlMetaVar -//------------------------------------------------------------------------ - -HtmlMetaVar::HtmlMetaVar(char *_name, char *_content) -{ - name = new GooString(_name); - content = new GooString(_content); -} - -HtmlMetaVar::~HtmlMetaVar() -{ - delete name; - delete content; -} - -GooString* HtmlMetaVar::toString() -{ - GooString *result = new GooString("<META name=\""); - result->append(name); - result->append("\" content=\""); - result->append(content); - result->append("\">"); - return result; -} - -//------------------------------------------------------------------------ -// HtmlOutputDev -//------------------------------------------------------------------------ - -static char* HtmlEncodings[][2] = { - {"Latin1", "ISO-8859-1"}, - {NULL, NULL} -}; - - -char* HtmlOutputDev::mapEncodingToHtml(GooString* encoding) -{ - char* enc = encoding->getCString(); - for(int i = 0; HtmlEncodings[i][0] != NULL; i++) - { - if( strcmp(enc, HtmlEncodings[i][0]) == 0 ) - { - return HtmlEncodings[i][1]; - } - } - return enc; -} - -void HtmlOutputDev::doFrame(int firstPage){ - GooString* fName=new GooString(Docname); - char* htmlEncoding; - fName->append(".html"); - - if (!(fContentsFrame = fopen(fName->getCString(), "w"))){ - error(-1, "Couldn't open html file '%s'", fName->getCString()); - delete fName; - return; - } - - delete fName; - - fName=basename(Docname); - fputs(DOCTYPE_FRAMES, fContentsFrame); - fputs("\n<HTML>",fContentsFrame); - fputs("\n<HEAD>",fContentsFrame); - fprintf(fContentsFrame,"\n<TITLE>%s</TITLE>",docTitle->getCString()); - htmlEncoding = mapEncodingToHtml(globalParams->getTextEncodingName()); - fprintf(fContentsFrame, "\n<META http-equiv=\"Content-Type\" content=\"text/html; charset=%s\">\n", htmlEncoding); - dumpMetaVars(fContentsFrame); - fprintf(fContentsFrame, "</HEAD>\n"); - fputs("<FRAMESET cols=\"100,*\">\n",fContentsFrame); - fprintf(fContentsFrame,"<FRAME name=\"links\" src=\"%s_ind.html\">\n",fName->getCString()); - fputs("<FRAME name=\"contents\" src=",fContentsFrame); - if (complexMode) - fprintf(fContentsFrame,"\"%s-%d.html\"",fName->getCString(), firstPage); - else - fprintf(fContentsFrame,"\"%ss.html\"",fName->getCString()); - - fputs(">\n</FRAMESET>\n</HTML>\n",fContentsFrame); - - delete fName; - fclose(fContentsFrame); -} - -HtmlOutputDev::HtmlOutputDev(char *fileName, char *title, - char *author, char *keywords, char *subject, char *date, - char *extension, - GBool rawOrder, int firstPage, GBool outline) -{ - char *htmlEncoding; - - fContentsFrame = NULL; - docTitle = new GooString(title); - pages = NULL; - dumpJPEG=gTrue; - //write = gTrue; - this->rawOrder = rawOrder; - this->doOutline = outline; - ok = gFalse; - imgNum=1; - //this->firstPage = firstPage; - //pageNum=firstPage; - // open file - needClose = gFalse; - pages = new HtmlPage(rawOrder, extension); - - glMetaVars = new GooList(); - glMetaVars->append(new HtmlMetaVar("generator", "pdftohtml 0.36")); - if( author ) glMetaVars->append(new HtmlMetaVar("author", author)); - if( keywords ) glMetaVars->append(new HtmlMetaVar("keywords", keywords)); - if( date ) glMetaVars->append(new HtmlMetaVar("date", date)); - if( subject ) glMetaVars->append(new HtmlMetaVar("subject", subject)); - - maxPageWidth = 0; - maxPageHeight = 0; - - pages->setDocName(fileName); - Docname=new GooString (fileName); - - // for non-xml output (complex or simple) with frames generate the left frame - if(!xml && !noframes) - { - GooString* left=new GooString(fileName); - left->append("_ind.html"); - - doFrame(firstPage); - - if (!(fContentsFrame = fopen(left->getCString(), "w"))) - { - error(-1, "Couldn't open html file '%s'", left->getCString()); - delete left; - return; - } - delete left; - fputs(DOCTYPE, fContentsFrame); - fputs("<HTML>\n<HEAD>\n<TITLE></TITLE>\n</HEAD>\n<BODY>\n",fContentsFrame); - - if (doOutline) - { - GooString *str = basename(Docname); - fprintf(fContentsFrame, "<A href=\"%s%s\" target=\"contents\">Outline</a><br>", str->getCString(), complexMode ? "-outline.html" : "s.html#outline"); - delete str; - } - - if (!complexMode) - { /* not in complex mode */ - - GooString* right=new GooString(fileName); - right->append("s.html"); - - if (!(page=fopen(right->getCString(),"w"))){ - error(-1, "Couldn't open html file '%s'", right->getCString()); - delete right; - return; - } - delete right; - fputs(DOCTYPE, page); - fputs("<HTML>\n<HEAD>\n<TITLE></TITLE>\n</HEAD>\n<BODY>\n",page); - } - } - - if (noframes) { - if (stout) page=stdout; - else { - GooString* right=new GooString(fileName); - if (!xml) right->append(".html"); - if (xml) right->append(".xml"); - if (!(page=fopen(right->getCString(),"w"))){ - error(-1, "Couldn't open html file '%s'", right->getCString()); - delete right; - return; - } - delete right; - } - - htmlEncoding = mapEncodingToHtml(globalParams->getTextEncodingName()); - if (xml) - { - fprintf(page, "<?xml version=\"1.0\" encoding=\"%s\"?>\n", htmlEncoding); - fputs("<!DOCTYPE pdf2xml SYSTEM \"pdf2xml.dtd\">\n\n", page); - fputs("<pdf2xml>\n",page); - } - else - { - fprintf(page,"%s\n<HTML>\n<HEAD>\n<TITLE>%s</TITLE>\n", - DOCTYPE, docTitle->getCString()); - - fprintf(page, "<META http-equiv=\"Content-Type\" content=\"text/html; charset=%s\">\n", htmlEncoding); - - dumpMetaVars(page); - fprintf(page,"</HEAD>\n"); - fprintf(page,"<BODY bgcolor=\"#A0A0A0\" vlink=\"blue\" link=\"blue\">\n"); - } - } - ok = gTrue; -} - -HtmlOutputDev::~HtmlOutputDev() { - /*if (mode&&!xml){ - int h=xoutRound(pages->pageHeight/scale); - int w=xoutRound(pages->pageWidth/scale); - fprintf(tin,"%s=%03d\n","PAPER_WIDTH",w); - fprintf(tin,"%s=%03d\n","PAPER_HEIGHT",h); - fclose(tin); - }*/ - - HtmlFont::clear(); - - delete Docname; - delete docTitle; - - deleteGooList(glMetaVars, HtmlMetaVar); - - if (fContentsFrame){ - fputs("</BODY>\n</HTML>\n",fContentsFrame); - fclose(fContentsFrame); - } - if (xml) { - fputs("</pdf2xml>\n",page); - fclose(page); - } else - if ( !complexMode || xml || noframes ) - { - fputs("</BODY>\n</HTML>\n",page); - fclose(page); - } - if (pages) - delete pages; -} - -void HtmlOutputDev::startPage(int pageNum, GfxState *state) { -#if 0 - if (mode&&!xml){ - if (write){ - write=gFalse; - GooString* fname=Dirname(Docname); - fname->append("image.log"); - if((tin=fopen(getFileNameFromPath(fname->getCString(),fname->getLength()),"w"))==NULL){ - printf("Error : can not open %s",fname); - exit(1); - } - delete fname; - // if(state->getRotation()!=0) - // fprintf(tin,"ROTATE=%d rotate %d neg %d neg translate\n",state->getRotation(),state->getX1(),-state->getY1()); - // else - fprintf(tin,"ROTATE=%d neg %d neg translate\n",state->getX1(),state->getY1()); - } - } -#endif - - this->pageNum = pageNum; - GooString *str=basename(Docname); - pages->clear(); - if(!noframes) - { - if (fContentsFrame) - { - if (complexMode) - fprintf(fContentsFrame,"<A href=\"%s-%d.html\"",str->getCString(),pageNum); - else - fprintf(fContentsFrame,"<A href=\"%ss.html#%d\"",str->getCString(),pageNum); - fprintf(fContentsFrame," target=\"contents\" >Page %d</a><br>\n",pageNum); - } - } - - pages->pageWidth=static_cast<int>(state->getPageWidth()); - pages->pageHeight=static_cast<int>(state->getPageHeight()); - - delete str; -} - - -void HtmlOutputDev::endPage() { - Links *linksList = catalog->getPage(pageNum)->getLinks(catalog); - for (int i = 0; i < linksList->getNumLinks(); ++i) - { - doProcessLink(linksList->getLink(i)); - } - delete linksList; - - pages->conv(); - pages->coalesce(); - pages->dump(page, pageNum); - - // I don't yet know what to do in the case when there are pages of different - // sizes and we want complex output: running ghostscript many times - // seems very inefficient. So for now I'll just use last page's size - maxPageWidth = pages->pageWidth; - maxPageHeight = pages->pageHeight; - - //if(!noframes&&!xml) fputs("<br>\n", fContentsFrame); - if(!stout && !globalParams->getErrQuiet()) printf("Page-%d\n",(pageNum)); -} - -void HtmlOutputDev::updateFont(GfxState *state) { - pages->updateFont(state); -} - -void HtmlOutputDev::beginString(GfxState *state, GooString *s) { - pages->beginString(state, s); -} - -void HtmlOutputDev::endString(GfxState *state) { - pages->endString(); -} - -void HtmlOutputDev::drawChar(GfxState *state, double x, double y, - double dx, double dy, - double originX, double originY, - CharCode code, int /*nBytes*/, Unicode *u, int uLen) -{ - if ( !showHidden && (state->getRender() & 3) == 3) { - return; - } - pages->addChar(state, x, y, dx, dy, originX, originY, u, uLen); -} - -void HtmlOutputDev::drawImageMask(GfxState *state, Object *ref, Stream *str, - int width, int height, GBool invert, - GBool interpolate, GBool inlineImg) { - - if (ignore||complexMode) { - OutputDev::drawImageMask(state, ref, str, width, height, invert, interpolate, inlineImg); - return; - } - - FILE *f1; - int c; - - int x0, y0; // top left corner of image - int w0, h0, w1, h1; // size of image - double xt, yt, wt, ht; - GBool rotate, xFlip, yFlip; - - // get image position and size - state->transform(0, 0, &xt, &yt); - state->transformDelta(1, 1, &wt, &ht); - if (wt > 0) { - x0 = xoutRound(xt); - w0 = xoutRound(wt); - } else { - x0 = xoutRound(xt + wt); - w0 = xoutRound(-wt); - } - if (ht > 0) { - y0 = xoutRound(yt); - h0 = xoutRound(ht); - } else { - y0 = xoutRound(yt + ht); - h0 = xoutRound(-ht); - } - state->transformDelta(1, 0, &xt, &yt); - rotate = fabs(xt) < fabs(yt); - if (rotate) { - w1 = h0; - h1 = w0; - xFlip = ht < 0; - yFlip = wt > 0; - } else { - w1 = w0; - h1 = h0; - xFlip = wt < 0; - yFlip = ht > 0; - } - - // dump JPEG file - if (dumpJPEG && str->getKind() == strDCT) { - GooString *fName=new GooString(Docname); - fName->append("-"); - GooString *pgNum=GooString::fromInt(pageNum); - GooString *imgnum=GooString::fromInt(imgNum); - // open the image file - fName->append(pgNum)->append("_")->append(imgnum)->append(".jpg"); - delete pgNum; - delete imgnum; - - ++imgNum; - if (!(f1 = fopen(fName->getCString(), "wb"))) { - error(-1, "Couldn't open image file '%s'", fName->getCString()); - delete fName; - return; - } - - // initialize stream - str = ((DCTStream *)str)->getRawStream(); - str->reset(); - - // copy the stream - while ((c = str->getChar()) != EOF) - fputc(c, f1); - - fclose(f1); - - if (fName) imgList->append(fName); - } - else { - OutputDev::drawImageMask(state, ref, str, width, height, invert, interpolate, inlineImg); - } -} - -void HtmlOutputDev::drawImage(GfxState *state, Object *ref, Stream *str, - int width, int height, GfxImageColorMap *colorMap, - GBool interpolate, int *maskColors, GBool inlineImg) { - - if (ignore||complexMode) { - OutputDev::drawImage(state, ref, str, width, height, colorMap, interpolate, - maskColors, inlineImg); - return; - } - - FILE *f1; - int c; - - int x0, y0; // top left corner of image - int w0, h0, w1, h1; // size of image - double xt, yt, wt, ht; - GBool rotate, xFlip, yFlip; - - // get image position and size - state->transform(0, 0, &xt, &yt); - state->transformDelta(1, 1, &wt, &ht); - if (wt > 0) { - x0 = xoutRound(xt); - w0 = xoutRound(wt); - } else { - x0 = xoutRound(xt + wt); - w0 = xoutRound(-wt); - } - if (ht > 0) { - y0 = xoutRound(yt); - h0 = xoutRound(ht); - } else { - y0 = xoutRound(yt + ht); - h0 = xoutRound(-ht); - } - state->transformDelta(1, 0, &xt, &yt); - rotate = fabs(xt) < fabs(yt); - if (rotate) { - w1 = h0; - h1 = w0; - xFlip = ht < 0; - yFlip = wt > 0; - } else { - w1 = w0; - h1 = h0; - xFlip = wt < 0; - yFlip = ht > 0; - } - - - /*if( !globalParams->getErrQuiet() ) - printf("image stream of kind %d\n", str->getKind());*/ - // dump JPEG file - if (dumpJPEG && str->getKind() == strDCT) { - GooString *fName=new GooString(Docname); - fName->append("-"); - GooString *pgNum= GooString::fromInt(pageNum); - GooString *imgnum= GooString::fromInt(imgNum); - - // open the image file - fName->append(pgNum)->append("_")->append(imgnum)->append(".jpg"); - delete pgNum; - delete imgnum; - - ++imgNum; - - if (!(f1 = fopen(fName->getCString(), "wb"))) { - error(-1, "Couldn't open image file '%s'", fName->getCString()); - delete fName; - return; - } - - // initialize stream - str = ((DCTStream *)str)->getRawStream(); - str->reset(); - - // copy the stream - while ((c = str->getChar()) != EOF) - fputc(c, f1); - - fclose(f1); - - if (fName) imgList->append(fName); - } - else { -#ifdef ENABLE_LIBPNG - // Dump the image as a PNG file. Much of the PNG code - // comes from an example by Guillaume Cottenceau. - Guchar *p; - GfxRGB rgb; - png_byte *row = (png_byte *) malloc(3 * width); // 3 bytes/pixel: RGB - png_bytep *row_pointer= &row; - - // Create the image filename - GooString *fName=new GooString(Docname); - fName->append("-"); - GooString *pgNum= GooString::fromInt(pageNum); - GooString *imgnum= GooString::fromInt(imgNum); - fName->append(pgNum)->append("_")->append(imgnum)->append(".png"); - delete pgNum; - delete imgnum; - - // Open the image file - if (!(f1 = fopen(fName->getCString(), "wb"))) { - error(-1, "Couldn't open image file '%s'", fName->getCString()); - delete fName; - return; - } - - PNGWriter *writer = new PNGWriter(); - if (!writer->init(f1, width, height)) { - delete writer; - fclose(f1); - return; - } - - // Initialize the image stream - ImageStream *imgStr = new ImageStream(str, width, - colorMap->getNumPixelComps(), colorMap->getBits()); - imgStr->reset(); - - // For each line... - for (int y = 0; y < height; y++) { - - // Convert into a PNG row - p = imgStr->getLine(); - for (int x = 0; x < width; x++) { - colorMap->getRGB(p, &rgb); - // Write the RGB pixels into the row - row[3*x]= colToByte(rgb.r); - row[3*x+1]= colToByte(rgb.g); - row[3*x+2]= colToByte(rgb.b); - p += colorMap->getNumPixelComps(); - } - - if (!writer->writeRow(row_pointer)) { - delete writer; - fclose(f1); - return; - } - } - - writer->close(); - delete writer; - fclose(f1); - - free(row); - imgList->append(fName); - ++imgNum; - imgStr->close(); - delete imgStr; -#else - OutputDev::drawImage(state, ref, str, width, height, colorMap, interpolate, - maskColors, inlineImg); -#endif - } -} - - - -void HtmlOutputDev::doProcessLink(Link* link){ - double _x1,_y1,_x2,_y2; - int x1,y1,x2,y2; - - link->getRect(&_x1,&_y1,&_x2,&_y2); - cvtUserToDev(_x1,_y1,&x1,&y1); - - cvtUserToDev(_x2,_y2,&x2,&y2); - - - GooString* _dest=getLinkDest(link,catalog); - HtmlLink t((double) x1,(double) y2,(double) x2,(double) y1,_dest); - pages->AddLink(t); - delete _dest; -} - -GooString* HtmlOutputDev::getLinkDest(Link *link,Catalog* catalog){ - char *p; - switch(link->getAction()->getKind()) - { - case actionGoTo: - { - GooString* file=basename(Docname); - int page=1; - LinkGoTo *ha=(LinkGoTo *)link->getAction(); - LinkDest *dest=NULL; - if (ha->getDest()!=NULL) - dest=ha->getDest()->copy(); - else if (ha->getNamedDest()!=NULL) - dest=catalog->findDest(ha->getNamedDest()); - - if (dest){ - if (dest->isPageRef()){ - Ref pageref=dest->getPageRef(); - page=catalog->findPage(pageref.num,pageref.gen); - } - else { - page=dest->getPageNum(); - } - - delete dest; - - GooString *str=GooString::fromInt(page); - /* complex simple - frames file-4.html files.html#4 - noframes file.html#4 file.html#4 - */ - if (noframes) - { - file->append(".html#"); - file->append(str); - } - else - { - if( complexMode ) - { - file->append("-"); - file->append(str); - file->append(".html"); - } - else - { - file->append("s.html#"); - file->append(str); - } - } - - if (printCommands) printf(" link to page %d ",page); - delete str; - return file; - } - else - { - return new GooString(); - } - } - case actionGoToR: - { - LinkGoToR *ha=(LinkGoToR *) link->getAction(); - LinkDest *dest=NULL; - int page=1; - GooString *file=new GooString(); - if (ha->getFileName()){ - delete file; - file=new GooString(ha->getFileName()->getCString()); - } - if (ha->getDest()!=NULL) dest=ha->getDest()->copy(); - if (dest&&file){ - if (!(dest->isPageRef())) page=dest->getPageNum(); - delete dest; - - if (printCommands) printf(" link to page %d ",page); - if (printHtml){ - p=file->getCString()+file->getLength()-4; - if (!strcmp(p, ".pdf") || !strcmp(p, ".PDF")){ - file->del(file->getLength()-4,4); - file->append(".html"); - } - file->append('#'); - file->append(GooString::fromInt(page)); - } - } - if (printCommands && file) printf("filename %s\n",file->getCString()); - return file; - } - case actionURI: - { - LinkURI *ha=(LinkURI *) link->getAction(); - GooString* file=new GooString(ha->getURI()->getCString()); - // printf("uri : %s\n",file->getCString()); - return file; - } - case actionLaunch: - { - LinkLaunch *ha=(LinkLaunch *) link->getAction(); - GooString* file=new GooString(ha->getFileName()->getCString()); - if (printHtml) { - p=file->getCString()+file->getLength()-4; - if (!strcmp(p, ".pdf") || !strcmp(p, ".PDF")){ - file->del(file->getLength()-4,4); - file->append(".html"); - } - if (printCommands) printf("filename %s",file->getCString()); - - return file; - - } - } - default: - return new GooString(); - } -} - -void HtmlOutputDev::dumpMetaVars(FILE *file) -{ - GooString *var; - - for(int i = 0; i < glMetaVars->getLength(); i++) - { - HtmlMetaVar *t = (HtmlMetaVar*)glMetaVars->get(i); - var = t->toString(); - fprintf(file, "%s\n", var->getCString()); - delete var; - } -} - -GBool HtmlOutputDev::dumpDocOutline(Catalog* catalog) -{ - FILE * output; - GBool bClose = gFalse; - - if (!ok || xml) - return gFalse; - - Object *outlines = catalog->getOutline(); - if (!outlines->isDict()) - return gFalse; - - if (!complexMode && !xml) - { - output = page; - } - else if (complexMode && !xml) - { - if (noframes) - { - output = page; - fputs("<hr>\n", output); - } - else - { - GooString *str = Docname->copy(); - str->append("-outline.html"); - output = fopen(str->getCString(), "w"); - if (output == NULL) - return gFalse; - delete str; - bClose = gTrue; - fputs("<HTML>\n<HEAD>\n<TITLE>Document Outline</TITLE>\n</HEAD>\n<BODY>\n", output); - } - } - - GBool done = newOutlineLevel(output, outlines, catalog); - if (done && !complexMode) - fputs("<hr>\n", output); - - if (bClose) - { - fputs("</BODY>\n</HTML>\n", output); - fclose(output); - } - return done; -} - -GBool HtmlOutputDev::newOutlineLevel(FILE *output, Object *node, Catalog* catalog, int level) -{ - Object curr, next; - GBool atLeastOne = gFalse; - - if (node->dictLookup("First", &curr)->isDict()) { - if (level == 1) - { - fputs("<A name=\"outline\"></a>", output); - fputs("<h1>Document Outline</h1>\n", output); - } - fputs("<ul>",output); - do { - // get title, give up if not found - Object title; - if (curr.dictLookup("Title", &title)->isNull()) { - title.free(); - break; - } - GooString *titleStr = new GooString(title.getString()); - title.free(); - - // get corresponding link - // Note: some code duplicated from HtmlOutputDev::getLinkDest(). - GooString *linkName = NULL;; - Object dest; - if (!curr.dictLookup("Dest", &dest)->isNull()) { - LinkGoTo *link = new LinkGoTo(&dest); - LinkDest *linkdest=NULL; - if (link->getDest()!=NULL) - linkdest=link->getDest()->copy(); - else if (link->getNamedDest()!=NULL) - linkdest=catalog->findDest(link->getNamedDest()); - - delete link; - if (linkdest) { - int page; - if (linkdest->isPageRef()) { - Ref pageref=linkdest->getPageRef(); - page=catalog->findPage(pageref.num,pageref.gen); - } else { - page=linkdest->getPageNum(); - } - delete linkdest; - - /* complex simple - frames file-4.html files.html#4 - noframes file.html#4 file.html#4 - */ - linkName=basename(Docname); - GooString *str=GooString::fromInt(page); - if (noframes) { - linkName->append(".html#"); - linkName->append(str); - } else { - if( complexMode ) { - linkName->append("-"); - linkName->append(str); - linkName->append(".html"); - } else { - linkName->append("s.html#"); - linkName->append(str); - } - } - delete str; - } - } - dest.free(); - - fputs("<li>",output); - if (linkName) - fprintf(output,"<A href=\"%s\">", linkName->getCString()); - fputs(titleStr->getCString(),output); - if (linkName) { - fputs("</A>",output); - delete linkName; - } - fputs("\n",output); - delete titleStr; - atLeastOne = gTrue; - - newOutlineLevel(output, &curr, catalog, level+1); - curr.dictLookup("Next", &next); - curr.free(); - curr = next; - } while(curr.isDict()); - fputs("</ul>",output); - } - curr.free(); - - return atLeastOne; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlOutputDev.h b/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlOutputDev.h deleted file mode 100644 index 24ccfd1c584..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/HtmlOutputDev.h +++ /dev/null @@ -1,329 +0,0 @@ -//======================================================================== -// -// HtmlOutputDev.h -// -// Copyright 1997 Derek B. Noonburg -// -// Changed 1999 by G.Ovtcharov -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006, 2007, 2009 Albert Astals Cid <aacid@kde.org> -// Copyright (C) 2008-2009 Warren Toomey <wkt@tuhs.org> -// Copyright (C) 2009 Carlos Garcia Campos <carlosgc@gnome.org> -// Copyright (C) 2009 Kovid Goyal <kovid@kovidgoyal.net> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#ifndef HTMLOUTPUTDEV_H -#define HTMLOUTPUTDEV_H - -#ifdef __GNUC__ -#pragma interface -#endif - -#include <stdio.h> -#include "goo/gtypes.h" -#include "goo/GooList.h" -#include "GfxFont.h" -#include "OutputDev.h" -#include "HtmlLinks.h" -#include "HtmlFonts.h" -#include "Link.h" -#include "Catalog.h" -#include "UnicodeMap.h" - - -#ifdef _WIN32 -# define SLASH '\\' -#else -# define SLASH '/' -#endif - -#define xoutRound(x) ((int)(x + 0.5)) - -#define DOCTYPE "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">" -#define DOCTYPE_FRAMES "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\"\n\"http://www.w3.org/TR/html4/frameset.dtd\">" - -class GfxState; -class GooString; -//------------------------------------------------------------------------ -// HtmlString -//------------------------------------------------------------------------ - -enum UnicodeTextDirection { - textDirUnknown, - textDirLeftRight, - textDirRightLeft, - textDirTopBottom -}; - - -class HtmlString { -public: - - // Constructor. - HtmlString(GfxState *state, double fontSize, HtmlFontAccu* fonts); - - // Destructor. - ~HtmlString(); - - // Add a character to the string. - void addChar(GfxState *state, double x, double y, - double dx, double dy, - Unicode u); - HtmlLink* getLink() { return link; } - void endString(); // postprocessing - -private: -// aender die text variable - HtmlLink *link; - double xMin, xMax; // bounding box x coordinates - double yMin, yMax; // bounding box y coordinates - int col; // starting column - Unicode *text; // the text - double *xRight; // right-hand x coord of each char - HtmlString *yxNext; // next string in y-major order - HtmlString *xyNext; // next string in x-major order - int fontpos; - GooString* htext; - int len; // length of text and xRight - int size; // size of text and xRight arrays - UnicodeTextDirection dir; // direction (left to right/right to left) - - friend class HtmlPage; - -}; - - -//------------------------------------------------------------------------ -// HtmlPage -//------------------------------------------------------------------------ - - - -class HtmlPage { -public: - - // Constructor. - HtmlPage(GBool rawOrder, char *imgExtVal); - - // Destructor. - ~HtmlPage(); - - // Begin a new string. - void beginString(GfxState *state, GooString *s); - - // Add a character to the current string. - void addChar(GfxState *state, double x, double y, - double dx, double dy, - double ox, double oy, - Unicode *u, int uLen); //Guchar c); - - void updateFont(GfxState *state); - - // End the current string, sorting it into the list of strings. - void endString(); - - // Coalesce strings that look like parts of the same line. - void coalesce(); - - // Find a string. If <top> is true, starts looking at top of page; - // otherwise starts looking at <xMin>,<yMin>. If <bottom> is true, - // stops looking at bottom of page; otherwise stops looking at - // <xMax>,<yMax>. If found, sets the text bounding rectange and - // returns true; otherwise returns false. - - - // new functions - void AddLink(const HtmlLink& x){ - links->AddLink(x); - } - - void dump(FILE *f, int pageNum); - - // Clear the page. - void clear(); - - void conv(); -private: - HtmlFont* getFont(HtmlString *hStr) { return fonts->Get(hStr->fontpos); } - - double fontSize; // current font size - GBool rawOrder; // keep strings in content stream order - - HtmlString *curStr; // currently active string - - HtmlString *yxStrings; // strings in y-major order - HtmlString *xyStrings; // strings in x-major order - HtmlString *yxCur1, *yxCur2; // cursors for yxStrings list - - void setDocName(char* fname); - void dumpAsXML(FILE* f,int page); - void dumpComplex(FILE* f, int page); - - // marks the position of the fonts that belong to current page (for noframes) - int fontsPageMarker; - HtmlFontAccu *fonts; - HtmlLinks *links; - - GooString *DocName; - GooString *imgExt; - int pageWidth; - int pageHeight; - static int pgNum; - int firstPage; // used to begin the numeration of pages - - friend class HtmlOutputDev; -}; - -//------------------------------------------------------------------------ -// HtmlMetaVar -//------------------------------------------------------------------------ -class HtmlMetaVar { -public: - HtmlMetaVar(char *_name, char *_content); - ~HtmlMetaVar(); - - GooString* toString(); - -private: - - GooString *name; - GooString *content; -}; - -//------------------------------------------------------------------------ -// HtmlOutputDev -//------------------------------------------------------------------------ - -class HtmlOutputDev: public OutputDev { -public: - - // Open a text output file. If <fileName> is NULL, no file is written - // (this is useful, e.g., for searching text). If <useASCII7> is true, - // text is converted to 7-bit ASCII; otherwise, text is converted to - // 8-bit ISO Latin-1. <useASCII7> should also be set for Japanese - // (EUC-JP) text. If <rawOrder> is true, the text is kept in content - // stream order. - HtmlOutputDev(char *fileName, char *title, - char *author, - char *keywords, - char *subject, - char *date, - char *extension, - GBool rawOrder, - int firstPage = 1, - GBool outline = 0); - - // Destructor. - virtual ~HtmlOutputDev(); - - // Check if file was successfully created. - virtual GBool isOk() { return ok; } - - //---- get info about output device - - // Does this device use upside-down coordinates? - // (Upside-down means (0,0) is the top left corner of the page.) - virtual GBool upsideDown() { return gTrue; } - - // Does this device use drawChar() or drawString()? - virtual GBool useDrawChar() { return gTrue; } - - // Does this device use beginType3Char/endType3Char? Otherwise, - // text in Type 3 fonts will be drawn with drawChar/drawString. - virtual GBool interpretType3Chars() { return gFalse; } - - // Does this device need non-text content? - virtual GBool needNonText() { return gTrue; } - - //----- initialization and control - - virtual GBool checkPageSlice(Page *page, double hDPI, double vDPI, - int rotate, GBool useMediaBox, GBool crop, - int sliceX, int sliceY, int sliceW, int sliceH, - GBool printing, Catalog * catalogA, - GBool (* abortCheckCbk)(void *data) = NULL, - void * abortCheckCbkData = NULL) - { - catalog = catalogA; - return gTrue; - } - - - // Start a page. - virtual void startPage(int pageNum, GfxState *state); - - // End a page. - virtual void endPage(); - - //----- update text state - virtual void updateFont(GfxState *state); - - //----- text drawing - virtual void beginString(GfxState *state, GooString *s); - virtual void endString(GfxState *state); - virtual void drawChar(GfxState *state, double x, double y, - double dx, double dy, - double originX, double originY, - CharCode code, int nBytes, Unicode *u, int uLen); - - virtual void drawImageMask(GfxState *state, Object *ref, - Stream *str, - int width, int height, GBool invert, - GBool interpolate, GBool inlineImg); - virtual void drawImage(GfxState *state, Object *ref, Stream *str, - int width, int height, GfxImageColorMap *colorMap, - GBool interpolate, int *maskColors, GBool inlineImg); - - //new feature - virtual int DevType() {return 1234;} - - int getPageWidth() { return maxPageWidth; } - int getPageHeight() { return maxPageHeight; } - - GBool dumpDocOutline(Catalog* catalog); - -private: - // convert encoding into a HTML standard, or encoding->getCString if not - // recognized - static char* mapEncodingToHtml(GooString* encoding); - void doProcessLink(Link *link); - GooString* getLinkDest(Link *link,Catalog *catalog); - void dumpMetaVars(FILE *); - void doFrame(int firstPage); - GBool newOutlineLevel(FILE *output, Object *node, Catalog* catalog, int level = 1); - - FILE *fContentsFrame; - FILE *page; // html file - //FILE *tin; // image log file - //GBool write; - GBool needClose; // need to close the file? - HtmlPage *pages; // text for the current page - GBool rawOrder; // keep text in content stream order - GBool doOutline; // output document outline - GBool ok; // set up ok? - GBool dumpJPEG; - int pageNum; - int maxPageWidth; - int maxPageHeight; - static int imgNum; - static GooList *imgList; - GooString *Docname; - GooString *docTitle; - GooList *glMetaVars; - Catalog *catalog; - friend class HtmlPage; -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/ImageOutputDev.cc b/Build/source/libs/poppler/poppler-0.12.4/utils/ImageOutputDev.cc deleted file mode 100644 index 7bf843fc124..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/ImageOutputDev.cc +++ /dev/null @@ -1,246 +0,0 @@ -//======================================================================== -// -// ImageOutputDev.cc -// -// Copyright 1998-2003 Glyph & Cog, LLC -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2005, 2007 Albert Astals Cid <aacid@kde.org> -// Copyright (C) 2006 Rainer Keller <class321@gmx.de> -// Copyright (C) 2008 Timothy Lee <timothy.lee@siriushk.com> -// Copyright (C) 2008 Vasile Gaburici <gaburici@cs.umd.edu> -// Copyright (C) 2009 Carlos Garcia Campos <carlosgc@gnome.org> -// Copyright (C) 2009 William Bader <williambader@hotmail.com> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include "config.h" -#include <poppler-config.h> - -#ifdef USE_GCC_PRAGMAS -#pragma implementation -#endif - -#include <stdio.h> -#include <stdlib.h> -#include <stddef.h> -#include <ctype.h> -#include "goo/gmem.h" -#include "Error.h" -#include "GfxState.h" -#include "Object.h" -#include "Stream.h" -#ifdef ENABLE_LIBJPEG -#include "DCTStream.h" -#endif -#include "ImageOutputDev.h" - -ImageOutputDev::ImageOutputDev(char *fileRootA, GBool dumpJPEGA) { - fileRoot = copyString(fileRootA); - fileName = (char *)gmalloc(strlen(fileRoot) + 20); - dumpJPEG = dumpJPEGA; - imgNum = 0; - ok = gTrue; -} - -ImageOutputDev::~ImageOutputDev() { - gfree(fileName); - gfree(fileRoot); -} - -void ImageOutputDev::drawImageMask(GfxState *state, Object *ref, Stream *str, - int width, int height, GBool invert, - GBool interpolate, GBool inlineImg) { - FILE *f; - int c; - int size, i; - - // dump JPEG file - if (dumpJPEG && str->getKind() == strDCT && !inlineImg) { - - // open the image file - sprintf(fileName, "%s-%03d.jpg", fileRoot, imgNum); - ++imgNum; - if (!(f = fopen(fileName, "wb"))) { - error(-1, "Couldn't open image file '%s'", fileName); - return; - } - - // initialize stream - str = ((DCTStream *)str)->getRawStream(); - str->reset(); - - // copy the stream - while ((c = str->getChar()) != EOF) - fputc(c, f); - - str->close(); - fclose(f); - - // dump PBM file - } else { - - // open the image file and write the PBM header - sprintf(fileName, "%s-%03d.pbm", fileRoot, imgNum); - ++imgNum; - if (!(f = fopen(fileName, "wb"))) { - error(-1, "Couldn't open image file '%s'", fileName); - return; - } - fprintf(f, "P4\n"); - fprintf(f, "%d %d\n", width, height); - - // initialize stream - str->reset(); - - // copy the stream - size = height * ((width + 7) / 8); - for (i = 0; i < size; ++i) { - fputc(str->getChar(), f); - } - - str->close(); - fclose(f); - } -} - -void ImageOutputDev::drawImage(GfxState *state, Object *ref, Stream *str, - int width, int height, - GfxImageColorMap *colorMap, - GBool interpolate, int *maskColors, GBool inlineImg) { - FILE *f; - ImageStream *imgStr; - Guchar *p; - Guchar zero = 0; - GfxGray gray; - GfxRGB rgb; - int x, y; - int c; - int size, i; - int pbm_mask = 0xff; - - // dump JPEG file - if (dumpJPEG && str->getKind() == strDCT && - (colorMap->getNumPixelComps() == 1 || - colorMap->getNumPixelComps() == 3) && - !inlineImg) { - - // open the image file - sprintf(fileName, "%s-%03d.jpg", fileRoot, imgNum); - ++imgNum; - if (!(f = fopen(fileName, "wb"))) { - error(-1, "Couldn't open image file '%s'", fileName); - return; - } - - // initialize stream - str = ((DCTStream *)str)->getRawStream(); - str->reset(); - - // copy the stream - while ((c = str->getChar()) != EOF) - fputc(c, f); - - str->close(); - fclose(f); - - // dump PBM file - } else if (colorMap->getNumPixelComps() == 1 && - colorMap->getBits() == 1) { - - // open the image file and write the PBM header - sprintf(fileName, "%s-%03d.pbm", fileRoot, imgNum); - ++imgNum; - if (!(f = fopen(fileName, "wb"))) { - error(-1, "Couldn't open image file '%s'", fileName); - return; - } - fprintf(f, "P4\n"); - fprintf(f, "%d %d\n", width, height); - - // initialize stream - str->reset(); - - // if 0 comes out as 0 in the color map, the we _flip_ stream bits - // otherwise we pass through stream bits unmolested - colorMap->getGray(&zero, &gray); - if(colToByte(gray)) - pbm_mask = 0; - - // copy the stream - size = height * ((width + 7) / 8); - for (i = 0; i < size; ++i) { - fputc(str->getChar() ^ pbm_mask, f); - } - - str->close(); - fclose(f); - - // dump PPM file - } else { - - // open the image file and write the PPM header - sprintf(fileName, "%s-%03d.ppm", fileRoot, imgNum); - ++imgNum; - if (!(f = fopen(fileName, "wb"))) { - error(-1, "Couldn't open image file '%s'", fileName); - return; - } - fprintf(f, "P6\n"); - fprintf(f, "%d %d\n", width, height); - fprintf(f, "255\n"); - - // initialize stream - imgStr = new ImageStream(str, width, colorMap->getNumPixelComps(), - colorMap->getBits()); - imgStr->reset(); - - // for each line... - for (y = 0; y < height; ++y) { - - // write the line - p = imgStr->getLine(); - for (x = 0; x < width; ++x) { - colorMap->getRGB(p, &rgb); - fputc(colToByte(rgb.r), f); - fputc(colToByte(rgb.g), f); - fputc(colToByte(rgb.b), f); - p += colorMap->getNumPixelComps(); - } - } - imgStr->close(); - delete imgStr; - - fclose(f); - } -} - -void ImageOutputDev::drawMaskedImage( - GfxState *state, Object *ref, Stream *str, - int width, int height, GfxImageColorMap *colorMap, GBool interpolate, - Stream *maskStr, int maskWidth, int maskHeight, GBool maskInvert, GBool maskInterpolate) { - drawImage(state, ref, str, width, height, colorMap, interpolate, NULL, gFalse); - drawImageMask(state, ref, maskStr, maskWidth, maskHeight, maskInvert, - maskInterpolate, gFalse); -} - -void ImageOutputDev::drawSoftMaskedImage( - GfxState *state, Object *ref, Stream *str, - int width, int height, GfxImageColorMap *colorMap, GBool interpolate, - Stream *maskStr, int maskWidth, int maskHeight, - GfxImageColorMap *maskColorMap, GBool maskInterpolate) { - drawImage(state, ref, str, width, height, colorMap, interpolate, NULL, gFalse); - drawImage(state, ref, maskStr, maskWidth, maskHeight, - maskColorMap, maskInterpolate, NULL, gFalse); -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/ImageOutputDev.h b/Build/source/libs/poppler/poppler-0.12.4/utils/ImageOutputDev.h deleted file mode 100644 index f2beab25092..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/ImageOutputDev.h +++ /dev/null @@ -1,106 +0,0 @@ -//======================================================================== -// -// ImageOutputDev.h -// -// Copyright 1998-2003 Glyph & Cog, LLC -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Rainer Keller <class321@gmx.de> -// Copyright (C) 2008 Timothy Lee <timothy.lee@siriushk.com> -// Copyright (C) 2009 Carlos Garcia Campos <carlosgc@gnome.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#ifndef IMAGEOUTPUTDEV_H -#define IMAGEOUTPUTDEV_H - -#include "poppler/poppler-config.h" - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include <stdio.h> -#include "goo/gtypes.h" -#include "OutputDev.h" - -class GfxState; - -//------------------------------------------------------------------------ -// ImageOutputDev -//------------------------------------------------------------------------ - -class ImageOutputDev: public OutputDev { -public: - - // Create an OutputDev which will write images to files named - // <fileRoot>-NNN.<type>. Normally, all images are written as PBM - // (.pbm) or PPM (.ppm) files. If <dumpJPEG> is set, JPEG images are - // written as JPEG (.jpg) files. - ImageOutputDev(char *fileRootA, GBool dumpJPEGA); - - // Destructor. - virtual ~ImageOutputDev(); - - // Check if file was successfully created. - virtual GBool isOk() { return ok; } - - // Does this device use beginType3Char/endType3Char? Otherwise, - // text in Type 3 fonts will be drawn with drawChar/drawString. - virtual GBool interpretType3Chars() { return gFalse; } - - // Does this device need non-text content? - virtual GBool needNonText() { return gTrue; } - - //---- get info about output device - - // Does this device use upside-down coordinates? - // (Upside-down means (0,0) is the top left corner of the page.) - virtual GBool upsideDown() { return gTrue; } - - // Does this device use drawChar() or drawString()? - virtual GBool useDrawChar() { return gFalse; } - - //----- image drawing - virtual void drawImageMask(GfxState *state, Object *ref, Stream *str, - int width, int height, GBool invert, - GBool interpolate, GBool inlineImg); - virtual void drawImage(GfxState *state, Object *ref, Stream *str, - int width, int height, GfxImageColorMap *colorMap, - GBool interpolate, int *maskColors, GBool inlineImg); - virtual void drawMaskedImage(GfxState *state, Object *ref, Stream *str, - int width, int height, - GfxImageColorMap *colorMap, - GBool interpolate, - Stream *maskStr, int maskWidth, int maskHeight, - GBool maskInvert, GBool maskInterpolate); - virtual void drawSoftMaskedImage(GfxState *state, Object *ref, Stream *str, - int width, int height, - GfxImageColorMap *colorMap, - GBool interpolate, - Stream *maskStr, - int maskWidth, int maskHeight, - GfxImageColorMap *maskColorMap, - GBool maskInterpolate); - -private: - - char *fileRoot; // root of output file names - char *fileName; // buffer for output file names - GBool dumpJPEG; // set to dump native JPEG files - int imgNum; // current image number - GBool ok; // set up ok? -}; - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/Makefile.am b/Build/source/libs/poppler/poppler-0.12.4/utils/Makefile.am deleted file mode 100644 index e57c71b9b9a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/Makefile.am +++ /dev/null @@ -1,101 +0,0 @@ -if BUILD_SPLASH_OUTPUT - -pdftoppm_SOURCES = \ - pdftoppm.cc \ - $(common) - -pdftoppm_binary = pdftoppm - -pdftoppm_manpage = pdftoppm.1 - -endif - -INCLUDES = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/goo \ - -I$(top_srcdir)/utils \ - -I$(top_srcdir)/poppler \ - $(UTILS_CFLAGS) \ - $(FONTCONFIG_CFLAGS) \ - $(ABIWORD_CFLAGS) - -LDADD = \ - $(top_builddir)/poppler/libpoppler.la \ - $(UTILS_LIBS) \ - $(FONTCONFIG_LIBS) - -if BUILD_ABIWORD_OUTPUT - -pdftoabw_SOURCES = \ - pdftoabw.cc \ - $(common) - -pdftoabw_LDADD = $(LDADD) $(ABIWORD_LIBS) - -pdftoabw_binary = pdftoabw - -endif - -AM_LDFLAGS = @auto_import_flags@ - -bin_PROGRAMS = \ - pdffonts \ - pdfimages \ - pdfinfo \ - pdftops \ - pdftotext \ - pdftohtml \ - $(pdftoppm_binary) \ - $(pdftoabw_binary) - -dist_man1_MANS = \ - pdffonts.1 \ - pdfimages.1 \ - pdfinfo.1 \ - pdftops.1 \ - pdftotext.1 \ - pdftohtml.1 \ - $(pdftoppm_manpage) - -common = parseargs.c parseargs.h - -pdffonts_SOURCES = \ - pdffonts.cc \ - $(common) - -pdfimages_SOURCES = \ - pdfimages.cc \ - ImageOutputDev.cc \ - ImageOutputDev.h \ - $(common) - -pdfinfo_SOURCES = \ - pdfinfo.cc \ - printencodings.cc \ - printencodings.h \ - $(common) - -pdftops_SOURCES = \ - pdftops.cc \ - $(common) - -pdftotext_SOURCES = \ - pdftotext.cc \ - printencodings.cc \ - printencodings.h \ - $(common) - -pdftohtml_SOURCES = \ - pdftohtml.cc \ - HtmlFonts.cc \ - HtmlFonts.h \ - HtmlLinks.cc \ - HtmlLinks.h \ - HtmlOutputDev.cc \ - HtmlOutputDev.h \ - $(common) - -# Yay, automake! It should be able to figure out that it has to dist -# pdftoppm.1, but nooo. So we just add it here. - -EXTRA_DIST = pdf2xml.dtd pdftoppm.1 diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/Makefile.in b/Build/source/libs/poppler/poppler-0.12.4/utils/Makefile.in deleted file mode 100644 index 99a282ba69d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/Makefile.in +++ /dev/null @@ -1,876 +0,0 @@ -# Makefile.in generated by automake 1.11 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -bin_PROGRAMS = pdffonts$(EXEEXT) pdfimages$(EXEEXT) pdfinfo$(EXEEXT) \ - pdftops$(EXEEXT) pdftotext$(EXEEXT) pdftohtml$(EXEEXT) \ - $(am__EXEEXT_1) $(am__EXEEXT_2) -subdir = utils -DIST_COMMON = $(dist_man1_MANS) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ - $(top_srcdir)/m4/define-dir.m4 $(top_srcdir)/m4/gtk-doc.m4 \ - $(top_srcdir)/m4/libjpeg.m4 $(top_srcdir)/m4/libpng.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/qt.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h \ - $(top_builddir)/poppler/poppler-config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -@BUILD_SPLASH_OUTPUT_TRUE@am__EXEEXT_1 = pdftoppm$(EXEEXT) -@BUILD_ABIWORD_OUTPUT_TRUE@am__EXEEXT_2 = pdftoabw$(EXEEXT) -am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" -PROGRAMS = $(bin_PROGRAMS) -am__objects_1 = parseargs.$(OBJEXT) -am_pdffonts_OBJECTS = pdffonts.$(OBJEXT) $(am__objects_1) -pdffonts_OBJECTS = $(am_pdffonts_OBJECTS) -pdffonts_LDADD = $(LDADD) -am__DEPENDENCIES_1 = -pdffonts_DEPENDENCIES = $(top_builddir)/poppler/libpoppler.la \ - $(am__DEPENDENCIES_1) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) -am__v_lt_0 = --silent -am_pdfimages_OBJECTS = pdfimages.$(OBJEXT) ImageOutputDev.$(OBJEXT) \ - $(am__objects_1) -pdfimages_OBJECTS = $(am_pdfimages_OBJECTS) -pdfimages_LDADD = $(LDADD) -pdfimages_DEPENDENCIES = $(top_builddir)/poppler/libpoppler.la \ - $(am__DEPENDENCIES_1) -am_pdfinfo_OBJECTS = pdfinfo.$(OBJEXT) printencodings.$(OBJEXT) \ - $(am__objects_1) -pdfinfo_OBJECTS = $(am_pdfinfo_OBJECTS) -pdfinfo_LDADD = $(LDADD) -pdfinfo_DEPENDENCIES = $(top_builddir)/poppler/libpoppler.la \ - $(am__DEPENDENCIES_1) -am__pdftoabw_SOURCES_DIST = pdftoabw.cc parseargs.c parseargs.h -@BUILD_ABIWORD_OUTPUT_TRUE@am_pdftoabw_OBJECTS = pdftoabw.$(OBJEXT) \ -@BUILD_ABIWORD_OUTPUT_TRUE@ $(am__objects_1) -pdftoabw_OBJECTS = $(am_pdftoabw_OBJECTS) -am__DEPENDENCIES_2 = $(top_builddir)/poppler/libpoppler.la \ - $(am__DEPENDENCIES_1) -@BUILD_ABIWORD_OUTPUT_TRUE@pdftoabw_DEPENDENCIES = \ -@BUILD_ABIWORD_OUTPUT_TRUE@ $(am__DEPENDENCIES_2) \ -@BUILD_ABIWORD_OUTPUT_TRUE@ $(am__DEPENDENCIES_1) -am_pdftohtml_OBJECTS = pdftohtml.$(OBJEXT) HtmlFonts.$(OBJEXT) \ - HtmlLinks.$(OBJEXT) HtmlOutputDev.$(OBJEXT) $(am__objects_1) -pdftohtml_OBJECTS = $(am_pdftohtml_OBJECTS) -pdftohtml_LDADD = $(LDADD) -pdftohtml_DEPENDENCIES = $(top_builddir)/poppler/libpoppler.la \ - $(am__DEPENDENCIES_1) -am__pdftoppm_SOURCES_DIST = pdftoppm.cc parseargs.c parseargs.h -@BUILD_SPLASH_OUTPUT_TRUE@am_pdftoppm_OBJECTS = pdftoppm.$(OBJEXT) \ -@BUILD_SPLASH_OUTPUT_TRUE@ $(am__objects_1) -pdftoppm_OBJECTS = $(am_pdftoppm_OBJECTS) -pdftoppm_LDADD = $(LDADD) -pdftoppm_DEPENDENCIES = $(top_builddir)/poppler/libpoppler.la \ - $(am__DEPENDENCIES_1) -am_pdftops_OBJECTS = pdftops.$(OBJEXT) $(am__objects_1) -pdftops_OBJECTS = $(am_pdftops_OBJECTS) -pdftops_LDADD = $(LDADD) -pdftops_DEPENDENCIES = $(top_builddir)/poppler/libpoppler.la \ - $(am__DEPENDENCIES_1) -am_pdftotext_OBJECTS = pdftotext.$(OBJEXT) printencodings.$(OBJEXT) \ - $(am__objects_1) -pdftotext_OBJECTS = $(am_pdftotext_OBJECTS) -pdftotext_LDADD = $(LDADD) -pdftotext_DEPENDENCIES = $(top_builddir)/poppler/libpoppler.la \ - $(am__DEPENDENCIES_1) -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/poppler -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_$(V)) -am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) -am__v_CC_0 = @echo " CC " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_$(V)) -am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CCLD_0 = @echo " CCLD " $@; -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -AM_V_CXX = $(am__v_CXX_$(V)) -am__v_CXX_ = $(am__v_CXX_$(AM_DEFAULT_VERBOSITY)) -am__v_CXX_0 = @echo " CXX " $@; -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CXXLD = $(am__v_CXXLD_$(V)) -am__v_CXXLD_ = $(am__v_CXXLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CXXLD_0 = @echo " CXXLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -SOURCES = $(pdffonts_SOURCES) $(pdfimages_SOURCES) $(pdfinfo_SOURCES) \ - $(pdftoabw_SOURCES) $(pdftohtml_SOURCES) $(pdftoppm_SOURCES) \ - $(pdftops_SOURCES) $(pdftotext_SOURCES) -DIST_SOURCES = $(pdffonts_SOURCES) $(pdfimages_SOURCES) \ - $(pdfinfo_SOURCES) $(am__pdftoabw_SOURCES_DIST) \ - $(pdftohtml_SOURCES) $(am__pdftoppm_SOURCES_DIST) \ - $(pdftops_SOURCES) $(pdftotext_SOURCES) -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -man1dir = $(mandir)/man1 -NROFF = nroff -MANS = $(dist_man1_MANS) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ABIWORD_CFLAGS = @ABIWORD_CFLAGS@ -ABIWORD_LIBS = @ABIWORD_LIBS@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CAIRO_CFLAGS = @CAIRO_CFLAGS@ -CAIRO_FEATURE = @CAIRO_FEATURE@ -CAIRO_LIBS = @CAIRO_LIBS@ -CAIRO_REQ = @CAIRO_REQ@ -CAIRO_VERSION = @CAIRO_VERSION@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ -FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ -FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ -FREETYPE_CONFIG = @FREETYPE_CONFIG@ -FREETYPE_LIBS = @FREETYPE_LIBS@ -GDK_CFLAGS = @GDK_CFLAGS@ -GDK_FEATURE = @GDK_FEATURE@ -GDK_LIBS = @GDK_LIBS@ -GLIB_MKENUMS = @GLIB_MKENUMS@ -GREP = @GREP@ -GTKDOC_CHECK = @GTKDOC_CHECK@ -GTK_TEST_CFLAGS = @GTK_TEST_CFLAGS@ -GTK_TEST_LIBS = @GTK_TEST_LIBS@ -HTML_DIR = @HTML_DIR@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LCMS_CFLAGS = @LCMS_CFLAGS@ -LCMS_LIBS = @LCMS_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBJPEG_LIBS = @LIBJPEG_LIBS@ -LIBOBJS = @LIBOBJS@ -LIBOPENJPEG_LIBS = @LIBOPENJPEG_LIBS@ -LIBPNG_LIBS = @LIBPNG_LIBS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -MOCQT4 = @MOCQT4@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PC_REQUIRES = @PC_REQUIRES@ -PC_REQUIRES_PRIVATE = @PC_REQUIRES_PRIVATE@ -PKG_CONFIG = @PKG_CONFIG@ -POPPLER_DATADIR = @POPPLER_DATADIR@ -POPPLER_GLIB_CFLAGS = @POPPLER_GLIB_CFLAGS@ -POPPLER_GLIB_DISABLE_DEPRECATED = @POPPLER_GLIB_DISABLE_DEPRECATED@ -POPPLER_GLIB_DISABLE_SINGLE_INCLUDES = @POPPLER_GLIB_DISABLE_SINGLE_INCLUDES@ -POPPLER_GLIB_LIBS = @POPPLER_GLIB_LIBS@ -POPPLER_MAJOR_VERSION = @POPPLER_MAJOR_VERSION@ -POPPLER_MICRO_VERSION = @POPPLER_MICRO_VERSION@ -POPPLER_MINOR_VERSION = @POPPLER_MINOR_VERSION@ -POPPLER_QT4_CFLAGS = @POPPLER_QT4_CFLAGS@ -POPPLER_QT4_CXXFLAGS = @POPPLER_QT4_CXXFLAGS@ -POPPLER_QT4_LIBS = @POPPLER_QT4_LIBS@ -POPPLER_QT4_TEST_CFLAGS = @POPPLER_QT4_TEST_CFLAGS@ -POPPLER_QT4_TEST_LIBS = @POPPLER_QT4_TEST_LIBS@ -POPPLER_QT_CXXFLAGS = @POPPLER_QT_CXXFLAGS@ -POPPLER_QT_LIBS = @POPPLER_QT_LIBS@ -PTHREAD_CC = @PTHREAD_CC@ -PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ -PTHREAD_LIBS = @PTHREAD_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZLIB_LIBS = @ZLIB_LIBS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -acx_pthread_config = @acx_pthread_config@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -auto_import_flags = @auto_import_flags@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -create_shared_lib = @create_shared_lib@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -win32_libs = @win32_libs@ -@BUILD_SPLASH_OUTPUT_TRUE@pdftoppm_SOURCES = \ -@BUILD_SPLASH_OUTPUT_TRUE@ pdftoppm.cc \ -@BUILD_SPLASH_OUTPUT_TRUE@ $(common) - -@BUILD_SPLASH_OUTPUT_TRUE@pdftoppm_binary = pdftoppm -@BUILD_SPLASH_OUTPUT_TRUE@pdftoppm_manpage = pdftoppm.1 -INCLUDES = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/goo \ - -I$(top_srcdir)/utils \ - -I$(top_srcdir)/poppler \ - $(UTILS_CFLAGS) \ - $(FONTCONFIG_CFLAGS) \ - $(ABIWORD_CFLAGS) - -LDADD = \ - $(top_builddir)/poppler/libpoppler.la \ - $(UTILS_LIBS) \ - $(FONTCONFIG_LIBS) - -@BUILD_ABIWORD_OUTPUT_TRUE@pdftoabw_SOURCES = \ -@BUILD_ABIWORD_OUTPUT_TRUE@ pdftoabw.cc \ -@BUILD_ABIWORD_OUTPUT_TRUE@ $(common) - -@BUILD_ABIWORD_OUTPUT_TRUE@pdftoabw_LDADD = $(LDADD) $(ABIWORD_LIBS) -@BUILD_ABIWORD_OUTPUT_TRUE@pdftoabw_binary = pdftoabw -AM_LDFLAGS = @auto_import_flags@ -dist_man1_MANS = \ - pdffonts.1 \ - pdfimages.1 \ - pdfinfo.1 \ - pdftops.1 \ - pdftotext.1 \ - pdftohtml.1 \ - $(pdftoppm_manpage) - -common = parseargs.c parseargs.h -pdffonts_SOURCES = \ - pdffonts.cc \ - $(common) - -pdfimages_SOURCES = \ - pdfimages.cc \ - ImageOutputDev.cc \ - ImageOutputDev.h \ - $(common) - -pdfinfo_SOURCES = \ - pdfinfo.cc \ - printencodings.cc \ - printencodings.h \ - $(common) - -pdftops_SOURCES = \ - pdftops.cc \ - $(common) - -pdftotext_SOURCES = \ - pdftotext.cc \ - printencodings.cc \ - printencodings.h \ - $(common) - -pdftohtml_SOURCES = \ - pdftohtml.cc \ - HtmlFonts.cc \ - HtmlFonts.h \ - HtmlLinks.cc \ - HtmlLinks.h \ - HtmlOutputDev.cc \ - HtmlOutputDev.h \ - $(common) - - -# Yay, automake! It should be able to figure out that it has to dist -# pdftoppm.1, but nooo. So we just add it here. -EXTRA_DIST = pdf2xml.dtd pdftoppm.1 -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .cc .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign utils/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign utils/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): -install-binPROGRAMS: $(bin_PROGRAMS) - @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" - @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ - for p in $$list; do echo "$$p $$p"; done | \ - sed 's/$(EXEEXT)$$//' | \ - while read p p1; do if test -f $$p || test -f $$p1; \ - then echo "$$p"; echo "$$p"; else :; fi; \ - done | \ - sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ - -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ - sed 'N;N;N;s,\n, ,g' | \ - $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ - { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ - if ($$2 == $$4) files[d] = files[d] " " $$1; \ - else { print "f", $$3 "/" $$4, $$1; } } \ - END { for (d in files) print "f", d, files[d] }' | \ - while read type dir files; do \ - if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ - test -z "$$files" || { \ - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ - } \ - ; done - -uninstall-binPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ - files=`for p in $$list; do echo "$$p"; done | \ - sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ - -e 's/$$/$(EXEEXT)/' `; \ - test -n "$$list" || exit 0; \ - echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(bindir)" && rm -f $$files - -clean-binPROGRAMS: - @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list -pdffonts$(EXEEXT): $(pdffonts_OBJECTS) $(pdffonts_DEPENDENCIES) - @rm -f pdffonts$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(pdffonts_OBJECTS) $(pdffonts_LDADD) $(LIBS) -pdfimages$(EXEEXT): $(pdfimages_OBJECTS) $(pdfimages_DEPENDENCIES) - @rm -f pdfimages$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(pdfimages_OBJECTS) $(pdfimages_LDADD) $(LIBS) -pdfinfo$(EXEEXT): $(pdfinfo_OBJECTS) $(pdfinfo_DEPENDENCIES) - @rm -f pdfinfo$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(pdfinfo_OBJECTS) $(pdfinfo_LDADD) $(LIBS) -pdftoabw$(EXEEXT): $(pdftoabw_OBJECTS) $(pdftoabw_DEPENDENCIES) - @rm -f pdftoabw$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(pdftoabw_OBJECTS) $(pdftoabw_LDADD) $(LIBS) -pdftohtml$(EXEEXT): $(pdftohtml_OBJECTS) $(pdftohtml_DEPENDENCIES) - @rm -f pdftohtml$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(pdftohtml_OBJECTS) $(pdftohtml_LDADD) $(LIBS) -pdftoppm$(EXEEXT): $(pdftoppm_OBJECTS) $(pdftoppm_DEPENDENCIES) - @rm -f pdftoppm$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(pdftoppm_OBJECTS) $(pdftoppm_LDADD) $(LIBS) -pdftops$(EXEEXT): $(pdftops_OBJECTS) $(pdftops_DEPENDENCIES) - @rm -f pdftops$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(pdftops_OBJECTS) $(pdftops_LDADD) $(LIBS) -pdftotext$(EXEEXT): $(pdftotext_OBJECTS) $(pdftotext_DEPENDENCIES) - @rm -f pdftotext$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(pdftotext_OBJECTS) $(pdftotext_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/HtmlFonts.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/HtmlLinks.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/HtmlOutputDev.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ImageOutputDev.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parseargs.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pdffonts.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pdfimages.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pdfinfo.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pdftoabw.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pdftohtml.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pdftoppm.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pdftops.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pdftotext.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/printencodings.Po@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< - -.cc.o: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< - -.cc.obj: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.cc.lo: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCXX_FALSE@ $(AM_V_CXX) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-man1: $(dist_man1_MANS) - @$(NORMAL_INSTALL) - test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" - @list='$(dist_man1_MANS)'; test -n "$(man1dir)" || exit 0; \ - { for i in $$list; do echo "$$i"; done; \ - } | while read p; do \ - if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; echo "$$p"; \ - done | \ - sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ - sed 'N;N;s,\n, ,g' | { \ - list=; while read file base inst; do \ - if test "$$base" = "$$inst"; then list="$$list $$file"; else \ - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ - fi; \ - done; \ - for i in $$list; do echo "$$i"; done | $(am__base_list) | \ - while read files; do \ - test -z "$$files" || { \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ - done; } - -uninstall-man1: - @$(NORMAL_UNINSTALL) - @list='$(dist_man1_MANS)'; test -n "$(man1dir)" || exit 0; \ - files=`{ for i in $$list; do echo "$$i"; done; \ - } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ - test -z "$$files" || { \ - echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(man1dir)" && rm -f $$files; } - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @list='$(MANS)'; if test -n "$$list"; then \ - list=`for p in $$list; do \ - if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ - if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ - if test -n "$$list" && \ - grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ - echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ - grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ - echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ - echo " typically \`make maintainer-clean' will remove them" >&2; \ - exit 1; \ - else :; fi; \ - else :; fi - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) $(MANS) -installdirs: - for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-man - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: install-binPROGRAMS - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: install-man1 - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-binPROGRAMS uninstall-man - -uninstall-man: uninstall-man1 - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ - clean-generic clean-libtool ctags distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-binPROGRAMS install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-man1 install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \ - uninstall-am uninstall-binPROGRAMS uninstall-man \ - uninstall-man1 - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/parseargs.c b/Build/source/libs/poppler/poppler-0.12.4/utils/parseargs.c deleted file mode 100644 index 8e84a9bd3b6..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/parseargs.c +++ /dev/null @@ -1,208 +0,0 @@ -/* - * parseargs.h - * - * Command line argument parser. - * - * Copyright 1996-2003 Glyph & Cog, LLC - */ - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// Poppler project changes to this file are under the GPLv2 or later license -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2008, 2009 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include <stdio.h> -#include <stddef.h> -#include <string.h> -#include <stdlib.h> -#include <ctype.h> -#include "parseargs.h" - -#include "goo/gstrtod.h" - -static const ArgDesc *findArg(const ArgDesc *args, char *arg); -static GBool grabArg(const ArgDesc *arg, int i, int *argc, char *argv[]); - -GBool parseArgs(const ArgDesc *args, int *argc, char *argv[]) { - const ArgDesc *arg; - int i, j; - GBool ok; - - ok = gTrue; - i = 1; - while (i < *argc) { - if (!strcmp(argv[i], "--")) { - --*argc; - for (j = i; j < *argc; ++j) - argv[j] = argv[j+1]; - break; - } else if ((arg = findArg(args, argv[i]))) { - if (!grabArg(arg, i, argc, argv)) - ok = gFalse; - } else { - ++i; - } - } - return ok; -} - -void printUsage(char *program, char *otherArgs, const ArgDesc *args) { - const ArgDesc *arg; - char *typ; - int w, w1; - - w = 0; - for (arg = args; arg->arg; ++arg) { - if ((w1 = strlen(arg->arg)) > w) - w = w1; - } - - fprintf(stderr, "Usage: %s [options]", program); - if (otherArgs) - fprintf(stderr, " %s", otherArgs); - fprintf(stderr, "\n"); - - for (arg = args; arg->arg; ++arg) { - fprintf(stderr, " %s", arg->arg); - w1 = 9 + w - strlen(arg->arg); - switch (arg->kind) { - case argInt: - case argIntDummy: - typ = " <int>"; - break; - case argFP: - case argFPDummy: - typ = " <fp>"; - break; - case argString: - case argStringDummy: - typ = " <string>"; - break; - case argFlag: - case argFlagDummy: - default: - typ = ""; - break; - } - fprintf(stderr, "%-*s", w1, typ); - if (arg->usage) - fprintf(stderr, ": %s", arg->usage); - fprintf(stderr, "\n"); - } -} - -static const ArgDesc *findArg(const ArgDesc *args, char *arg) { - const ArgDesc *p; - - for (p = args; p->arg; ++p) { - if (p->kind < argFlagDummy && !strcmp(p->arg, arg)) - return p; - } - return NULL; -} - -static GBool grabArg(const ArgDesc *arg, int i, int *argc, char *argv[]) { - int n; - int j; - GBool ok; - - ok = gTrue; - n = 0; - switch (arg->kind) { - case argFlag: - *(GBool *)arg->val = gTrue; - n = 1; - break; - case argInt: - if (i + 1 < *argc && isInt(argv[i+1])) { - *(int *)arg->val = atoi(argv[i+1]); - n = 2; - } else { - ok = gFalse; - n = 1; - } - break; - case argFP: - if (i + 1 < *argc && isFP(argv[i+1])) { - *(double *)arg->val = gatof(argv[i+1]); - n = 2; - } else { - ok = gFalse; - n = 1; - } - break; - case argString: - if (i + 1 < *argc) { - strncpy((char *)arg->val, argv[i+1], arg->size - 1); - ((char *)arg->val)[arg->size - 1] = '\0'; - n = 2; - } else { - ok = gFalse; - n = 1; - } - break; - default: - fprintf(stderr, "Internal error in arg table\n"); - n = 1; - break; - } - if (n > 0) { - *argc -= n; - for (j = i; j < *argc; ++j) - argv[j] = argv[j+n]; - } - return ok; -} - -GBool isInt(char *s) { - if (*s == '-' || *s == '+') - ++s; - while (isdigit(*s)) - ++s; - if (*s) - return gFalse; - return gTrue; -} - -GBool isFP(char *s) { - int n; - - if (*s == '-' || *s == '+') - ++s; - n = 0; - while (isdigit(*s)) { - ++s; - ++n; - } - if (*s == '.') - ++s; - while (isdigit(*s)) { - ++s; - ++n; - } - if (n > 0 && (*s == 'e' || *s == 'E')) { - ++s; - if (*s == '-' || *s == '+') - ++s; - n = 0; - if (!isdigit(*s)) - return gFalse; - do { - ++s; - } while (isdigit(*s)); - } - if (*s) - return gFalse; - return gTrue; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/parseargs.h b/Build/source/libs/poppler/poppler-0.12.4/utils/parseargs.h deleted file mode 100644 index 4418421783d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/parseargs.h +++ /dev/null @@ -1,85 +0,0 @@ -/* - * parseargs.h - * - * Command line argument parser. - * - * Copyright 1996-2003 Glyph & Cog, LLC - */ - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2008 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#ifndef PARSEARGS_H -#define PARSEARGS_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include "goo/gtypes.h" - -/* - * Argument kinds. - */ -typedef enum { - argFlag, /* flag (present / not-present) */ - /* [val: GBool *] */ - argInt, /* integer arg */ - /* [val: int *] */ - argFP, /* floating point arg */ - /* [val: double *] */ - argString, /* string arg */ - /* [val: char *] */ - /* dummy entries -- these show up in the usage listing only; */ - /* useful for X args, for example */ - argFlagDummy, - argIntDummy, - argFPDummy, - argStringDummy -} ArgKind; - -/* - * Argument descriptor. - */ -typedef struct { - char *arg; /* the command line switch */ - ArgKind kind; /* kind of arg */ - void *val; /* place to store value */ - int size; /* for argString: size of string */ - char *usage; /* usage string */ -} ArgDesc; - -/* - * Parse command line. Removes all args which are found in the arg - * descriptor list <args>. Stops parsing if "--" is found (and removes - * it). Returns gFalse if there was an error. - */ -extern GBool parseArgs(const ArgDesc *args, int *argc, char *argv[]); - -/* - * Print usage message, based on arg descriptor list. - */ -extern void printUsage(char *program, char *otherArgs, const ArgDesc *args); - -/* - * Check if a string is a valid integer or floating point number. - */ -extern GBool isInt(char *s); -extern GBool isFP(char *s); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/pdf2xml.dtd b/Build/source/libs/poppler/poppler-0.12.4/utils/pdf2xml.dtd deleted file mode 100644 index 1afa4fe9aa0..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/pdf2xml.dtd +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0"?> -<!ELEMENT pdf2xml (page+)> -<!ELEMENT page (fontspec*, text*)> -<!ATTLIST page - number CDATA #REQUIRED - position CDATA #REQUIRED - top CDATA #REQUIRED - left CDATA #REQUIRED - height CDATA #REQUIRED - width CDATA #REQUIRED -> -<!ELEMENT fontspec EMPTY> -<!ATTLIST fontspec - id CDATA #REQUIRED - size CDATA #REQUIRED - family CDATA #REQUIRED - color CDATA #REQUIRED -> -<!ELEMENT text (#PCDATA | b | i)*> -<!ATTLIST text - top CDATA #REQUIRED - left CDATA #REQUIRED - width CDATA #REQUIRED - height CDATA #REQUIRED - font CDATA #REQUIRED -> -<!ELEMENT b (#PCDATA)> -<!ELEMENT i (#PCDATA)> diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/pdffonts.1 b/Build/source/libs/poppler/poppler-0.12.4/utils/pdffonts.1 deleted file mode 100644 index fd7386c4ae2..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/pdffonts.1 +++ /dev/null @@ -1,110 +0,0 @@ -.\" Copyright 1999-2004 Glyph & Cog, LLC -.TH pdffonts 1 "22 January 2004" -.SH NAME -pdffonts \- Portable Document Format (PDF) font analyzer (version -3.00) -.SH SYNOPSIS -.B pdffonts -[options] -.RI [ PDF-file ] -.SH DESCRIPTION -.B Pdffonts -lists the fonts used in a Portable Document Format (PDF) file along -with various information for each font. -.PP -The following information is listed for each font: -.TP -.B name -the font name, exactly as given in the PDF file (potentially including -a subset prefix) -.TP -.B type -the font type -- see below for details -.TP -.B emb -"yes" if the font is embedded in the PDF file -.TP -.B sub -"yes" if the font is a subset -.TP -.B uni -"yes" if there is an explicit "ToUnicode" map in the PDF file (the -absence of a ToUnicode map doesn't necessarily mean that the text -can't be converted to Unicode) -.TP -.B object ID -the font dictionary object ID (number and generation) -.PP -PDF files can contain the following types of fonts: -.PP -.RS -Type 1 -.RE -.RS -Type 1C -- aka Compact Font Format (CFF) -.RE -.RS -Type 3 -.RE -.RS -TrueType -.RE -.RS -CID Type 0 -- 16-bit font with no specified type -.RE -.RS -CID Type 0C -- 16-bit PostScript CFF font -.RE -.RS -CID TrueType -- 16-bit TrueType font -.RE -.SH OPTIONS -.TP -.BI \-f " number" -Specifies the first page to analyze. -.TP -.BI \-l " number" -Specifies the last page to analyze. -.TP -.BI \-opw " password" -Specify the owner password for the PDF file. Providing this will -bypass all security restrictions. -.TP -.BI \-upw " password" -Specify the user password for the PDF file. -.TP -.B \-v -Print copyright and version information. -.TP -.B \-h -Print usage information. -.RB ( \-help -and -.B \-\-help -are equivalent.) -.SH EXIT CODES -The Xpdf tools use the following exit codes: -.TP -0 -No error. -.TP -1 -Error opening a PDF file. -.TP -2 -Error opening an output file. -.TP -3 -Error related to PDF permissions. -.TP -99 -Other error. -.SH AUTHOR -The pdffonts software and documentation are copyright 1996-2004 Glyph -& Cog, LLC. -.SH "SEE ALSO" -.BR pdftops (1), -.BR pdftotext (1), -.BR pdfinfo (1), -.BR pdftoppm (1), -.BR pdfimages (1), diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/pdffonts.cc b/Build/source/libs/poppler/poppler-0.12.4/utils/pdffonts.cc deleted file mode 100644 index 752fa15ea42..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/pdffonts.cc +++ /dev/null @@ -1,320 +0,0 @@ -//======================================================================== -// -// pdffonts.cc -// -// Copyright 2001-2007 Glyph & Cog, LLC -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Dominic Lachowicz <cinamod@hotmail.com> -// Copyright (C) 2007-2008 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include "config.h" -#include <poppler-config.h> -#include <stdio.h> -#include <stdlib.h> -#include <stddef.h> -#include <string.h> -#include <math.h> -#include "parseargs.h" -#include "goo/GooString.h" -#include "goo/gmem.h" -#include "GlobalParams.h" -#include "Error.h" -#include "Object.h" -#include "Dict.h" -#include "GfxFont.h" -#include "Annot.h" -#include "PDFDoc.h" - -static char *fontTypeNames[] = { - "unknown", - "Type 1", - "Type 1C", - "Type 1C (OT)", - "Type 3", - "TrueType", - "TrueType (OT)", - "CID Type 0", - "CID Type 0C", - "CID Type 0C (OT)", - "CID TrueType", - "CID TrueType (OT)" -}; - -static void scanFonts(Dict *resDict, PDFDoc *doc); -static void scanFont(GfxFont *font, PDFDoc *doc); - -static int firstPage = 1; -static int lastPage = 0; -static char ownerPassword[33] = "\001"; -static char userPassword[33] = "\001"; -static GBool printVersion = gFalse; -static GBool printHelp = gFalse; - -static const ArgDesc argDesc[] = { - {"-f", argInt, &firstPage, 0, - "first page to examine"}, - {"-l", argInt, &lastPage, 0, - "last page to examine"}, - {"-opw", argString, ownerPassword, sizeof(ownerPassword), - "owner password (for encrypted files)"}, - {"-upw", argString, userPassword, sizeof(userPassword), - "user password (for encrypted files)"}, - {"-v", argFlag, &printVersion, 0, - "print copyright and version info"}, - {"-h", argFlag, &printHelp, 0, - "print usage information"}, - {"-help", argFlag, &printHelp, 0, - "print usage information"}, - {"--help", argFlag, &printHelp, 0, - "print usage information"}, - {"-?", argFlag, &printHelp, 0, - "print usage information"}, - {NULL} -}; - -static Ref *fonts; -static int fontsLen; -static int fontsSize; - -int main(int argc, char *argv[]) { - PDFDoc *doc; - GooString *fileName; - GooString *ownerPW, *userPW; - GBool ok; - Page *page; - Dict *resDict; - Annots *annots; - Object obj1, obj2; - int pg, i; - int exitCode; - - exitCode = 99; - - // parse args - ok = parseArgs(argDesc, &argc, argv); - if (!ok || argc != 2 || printVersion || printHelp) { - fprintf(stderr, "pdffonts version %s\n", PACKAGE_VERSION); - fprintf(stderr, "%s\n", popplerCopyright); - fprintf(stderr, "%s\n", xpdfCopyright); - if (!printVersion) { - printUsage("pdffonts", "<PDF-file>", argDesc); - } - goto err0; - } - fileName = new GooString(argv[1]); - - // read config file - globalParams = new GlobalParams(); - - // open PDF file - if (ownerPassword[0] != '\001') { - ownerPW = new GooString(ownerPassword); - } else { - ownerPW = NULL; - } - if (userPassword[0] != '\001') { - userPW = new GooString(userPassword); - } else { - userPW = NULL; - } - - if(fileName->cmp("-") != 0) { - doc = new PDFDoc(fileName, ownerPW, userPW); - } else { - Object obj; - - obj.initNull(); - doc = new PDFDoc(new FileStream(stdin, 0, gFalse, 0, &obj), ownerPW, userPW); - } - - if (userPW) { - delete userPW; - } - if (ownerPW) { - delete ownerPW; - } - if (!doc->isOk()) { - exitCode = 1; - goto err1; - } - - // get page range - if (firstPage < 1) { - firstPage = 1; - } - if (lastPage < 1 || lastPage > doc->getNumPages()) { - lastPage = doc->getNumPages(); - } - - // scan the fonts - printf("name type emb sub uni object ID\n"); - printf("------------------------------------ ----------------- --- --- --- ---------\n"); - fonts = NULL; - fontsLen = fontsSize = 0; - for (pg = firstPage; pg <= lastPage; ++pg) { - page = doc->getCatalog()->getPage(pg); - if ((resDict = page->getResourceDict())) { - scanFonts(resDict, doc); - } - annots = new Annots(doc->getXRef(), - doc->getCatalog(), - page->getAnnots(&obj1)); - obj1.free(); - for (i = 0; i < annots->getNumAnnots(); ++i) { - if (annots->getAnnot(i)->getAppearance(&obj1)->isStream()) { - obj1.streamGetDict()->lookup("Resources", &obj2); - if (obj2.isDict()) { - scanFonts(obj2.getDict(), doc); - } - obj2.free(); - } - obj1.free(); - } - delete annots; - } - - exitCode = 0; - - // clean up - gfree(fonts); - err1: - delete doc; - delete globalParams; - err0: - - // check for memory leaks - Object::memCheck(stderr); - gMemReport(stderr); - - return exitCode; -} - -static void scanFonts(Dict *resDict, PDFDoc *doc) { - Object obj1, obj2, xObjDict, xObj, resObj; - Ref r; - GfxFontDict *gfxFontDict; - GfxFont *font; - int i; - - // scan the fonts in this resource dictionary - gfxFontDict = NULL; - resDict->lookupNF("Font", &obj1); - if (obj1.isRef()) { - obj1.fetch(doc->getXRef(), &obj2); - if (obj2.isDict()) { - r = obj1.getRef(); - gfxFontDict = new GfxFontDict(doc->getXRef(), &r, obj2.getDict()); - } - obj2.free(); - } else if (obj1.isDict()) { - gfxFontDict = new GfxFontDict(doc->getXRef(), NULL, obj1.getDict()); - } - if (gfxFontDict) { - for (i = 0; i < gfxFontDict->getNumFonts(); ++i) { - if ((font = gfxFontDict->getFont(i))) { - scanFont(font, doc); - } - } - delete gfxFontDict; - } - obj1.free(); - - // recursively scan any resource dictionaries in objects in this - // resource dictionary - resDict->lookup("XObject", &xObjDict); - if (xObjDict.isDict()) { - for (i = 0; i < xObjDict.dictGetLength(); ++i) { - xObjDict.dictGetVal(i, &xObj); - if (xObj.isStream()) { - xObj.streamGetDict()->lookup("Resources", &resObj); - if (resObj.isDict()) { - scanFonts(resObj.getDict(), doc); - } - resObj.free(); - } - xObj.free(); - } - } - xObjDict.free(); -} - -static void scanFont(GfxFont *font, PDFDoc *doc) { - Ref fontRef, embRef; - Object fontObj, toUnicodeObj; - GooString *name; - GBool emb, subset, hasToUnicode; - int i; - - fontRef = *font->getID(); - - // check for an already-seen font - for (i = 0; i < fontsLen; ++i) { - if (fontRef.num == fonts[i].num && fontRef.gen == fonts[i].gen) { - return; - } - } - - // font name - name = font->getOrigName(); - - // check for an embedded font - if (font->getType() == fontType3) { - emb = gTrue; - } else { - emb = font->getEmbeddedFontID(&embRef); - } - - // look for a ToUnicode map - hasToUnicode = gFalse; - if (doc->getXRef()->fetch(fontRef.num, fontRef.gen, &fontObj)->isDict()) { - hasToUnicode = fontObj.dictLookup("ToUnicode", &toUnicodeObj)->isStream(); - toUnicodeObj.free(); - } - fontObj.free(); - - // check for a font subset name: capital letters followed by a '+' - // sign - subset = gFalse; - if (name) { - for (i = 0; i < name->getLength(); ++i) { - if (name->getChar(i) < 'A' || name->getChar(i) > 'Z') { - break; - } - } - subset = i > 0 && i < name->getLength() && name->getChar(i) == '+'; - } - - // print the font info - printf("%-36s %-17s %-3s %-3s %-3s", - name ? name->getCString() : "[none]", - fontTypeNames[font->getType()], - emb ? "yes" : "no", - subset ? "yes" : "no", - hasToUnicode ? "yes" : "no"); - if (fontRef.gen >= 100000) { - printf(" [none]\n"); - } else { - printf(" %6d %2d\n", fontRef.num, fontRef.gen); - } - - // add this font to the list - if (fontsLen == fontsSize) { - fontsSize += 32; - fonts = (Ref *)grealloc(fonts, fontsSize * sizeof(Ref)); - } - fonts[fontsLen++] = *font->getID(); -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/pdfimages.1 b/Build/source/libs/poppler/poppler-0.12.4/utils/pdfimages.1 deleted file mode 100644 index ff31d850499..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/pdfimages.1 +++ /dev/null @@ -1,82 +0,0 @@ -.\" Copyright 1998-2004 Glyph & Cog, LLC -.TH pdfimages 1 "22 January 2004" -.SH NAME -pdfimages \- Portable Document Format (PDF) image extractor -(version 3.00) -.SH SYNOPSIS -.B pdfimages -[options] -.I PDF-file image-root -.SH DESCRIPTION -.B Pdfimages -saves images from a Portable Document Format (PDF) file as Portable -Pixmap (PPM), Portable Bitmap (PBM), or JPEG files. -.PP -Pdfimages reads the PDF file -.IR PDF-file , -scans one or more pages, and writes one PPM, PBM, or JPEG file for each image, -.IR image-root - nnn . xxx , -where -.I nnn -is the image number and -.I xxx -is the image type (.ppm, .pbm, .jpg). -.SH OPTIONS -.TP -.BI \-f " number" -Specifies the first page to scan. -.TP -.BI \-l " number" -Specifies the last page to scan. -.TP -.B \-j -Normally, all images are written as PBM (for monochrome images) or PPM -(for non-monochrome images) files. With this option, images in DCT -format are saved as JPEG files. All non-DCT images are saved in -PBM/PPM format as usual. -.TP -.BI \-opw " password" -Specify the owner password for the PDF file. Providing this will -bypass all security restrictions. -.TP -.BI \-upw " password" -Specify the user password for the PDF file. -.TP -.B \-q -Don't print any messages or errors. -.TP -.B \-v -Print copyright and version information. -.TP -.B \-h -Print usage information. -.RB ( \-help -and -.B \-\-help -are equivalent.) -.SH EXIT CODES -The Xpdf tools use the following exit codes: -.TP -0 -No error. -.TP -1 -Error opening a PDF file. -.TP -2 -Error opening an output file. -.TP -3 -Error related to PDF permissions. -.TP -99 -Other error. -.SH AUTHOR -The pdfimages software and documentation are copyright 1998-2004 Glyph -& Cog, LLC. -.SH "SEE ALSO" -.BR pdftops (1), -.BR pdftotext (1), -.BR pdfinfo (1), -.BR pdffonts (1), -.BR pdftoppm (1), diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/pdfimages.cc b/Build/source/libs/poppler/poppler-0.12.4/utils/pdfimages.cc deleted file mode 100644 index b821c799205..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/pdfimages.cc +++ /dev/null @@ -1,171 +0,0 @@ -//======================================================================== -// -// pdfimages.cc -// -// Copyright 1998-2003 Glyph & Cog, LLC -// -// Modified for Debian by Hamish Moffatt, 22 May 2002. -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2007-2008 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include "config.h" -#include <poppler-config.h> -#include <stdio.h> -#include <stdlib.h> -#include <stddef.h> -#include <string.h> -#include "parseargs.h" -#include "goo/GooString.h" -#include "goo/gmem.h" -#include "GlobalParams.h" -#include "Object.h" -#include "Stream.h" -#include "Array.h" -#include "Dict.h" -#include "XRef.h" -#include "Catalog.h" -#include "Page.h" -#include "PDFDoc.h" -#include "ImageOutputDev.h" -#include "Error.h" - -static int firstPage = 1; -static int lastPage = 0; -static GBool dumpJPEG = gFalse; -static char ownerPassword[33] = "\001"; -static char userPassword[33] = "\001"; -static GBool quiet = gFalse; -static GBool printVersion = gFalse; -static GBool printHelp = gFalse; - -static const ArgDesc argDesc[] = { - {"-f", argInt, &firstPage, 0, - "first page to convert"}, - {"-l", argInt, &lastPage, 0, - "last page to convert"}, - {"-j", argFlag, &dumpJPEG, 0, - "write JPEG images as JPEG files"}, - {"-opw", argString, ownerPassword, sizeof(ownerPassword), - "owner password (for encrypted files)"}, - {"-upw", argString, userPassword, sizeof(userPassword), - "user password (for encrypted files)"}, - {"-q", argFlag, &quiet, 0, - "don't print any messages or errors"}, - {"-v", argFlag, &printVersion, 0, - "print copyright and version info"}, - {"-h", argFlag, &printHelp, 0, - "print usage information"}, - {"-help", argFlag, &printHelp, 0, - "print usage information"}, - {"--help", argFlag, &printHelp, 0, - "print usage information"}, - {"-?", argFlag, &printHelp, 0, - "print usage information"}, - {NULL} -}; - -int main(int argc, char *argv[]) { - PDFDoc *doc; - GooString *fileName; - char *imgRoot; - GooString *ownerPW, *userPW; - ImageOutputDev *imgOut; - GBool ok; - int exitCode; - - exitCode = 99; - - // parse args - ok = parseArgs(argDesc, &argc, argv); - if (!ok || argc != 3 || printVersion || printHelp) { - fprintf(stderr, "pdfimages version %s\n", PACKAGE_VERSION); - fprintf(stderr, "%s\n", popplerCopyright); - fprintf(stderr, "%s\n", xpdfCopyright); - if (!printVersion) { - printUsage("pdfimages", "<PDF-file> <image-root>", argDesc); - } - goto err0; - } - fileName = new GooString(argv[1]); - imgRoot = argv[2]; - - // read config file - globalParams = new GlobalParams(); - if (quiet) { - globalParams->setErrQuiet(quiet); - } - - // open PDF file - if (ownerPassword[0] != '\001') { - ownerPW = new GooString(ownerPassword); - } else { - ownerPW = NULL; - } - if (userPassword[0] != '\001') { - userPW = new GooString(userPassword); - } else { - userPW = NULL; - } - doc = new PDFDoc(fileName, ownerPW, userPW); - if (userPW) { - delete userPW; - } - if (ownerPW) { - delete ownerPW; - } - if (!doc->isOk()) { - exitCode = 1; - goto err1; - } - - // check for copy permission -#ifdef ENFORCE_PERMISSIONS - if (!doc->okToCopy()) { - error(-1, "Copying of images from this document is not allowed."); - exitCode = 3; - goto err1; - } -#endif - - // get page range - if (firstPage < 1) - firstPage = 1; - if (lastPage < 1 || lastPage > doc->getNumPages()) - lastPage = doc->getNumPages(); - - // write image files - imgOut = new ImageOutputDev(imgRoot, dumpJPEG); - if (imgOut->isOk()) { - doc->displayPages(imgOut, firstPage, lastPage, 72, 72, 0, - gTrue, gFalse, gFalse); - } - delete imgOut; - - exitCode = 0; - - // clean up - err1: - delete doc; - delete globalParams; - err0: - - // check for memory leaks - Object::memCheck(stderr); - gMemReport(stderr); - - return exitCode; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/pdfinfo.1 b/Build/source/libs/poppler/poppler-0.12.4/utils/pdfinfo.1 deleted file mode 100644 index 1f5528a9bb9..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/pdfinfo.1 +++ /dev/null @@ -1,137 +0,0 @@ -.\" Copyright 1999-2004 Glyph & Cog, LLC -.TH pdfinfo 1 "22 January 2004" -.SH NAME -pdfinfo \- Portable Document Format (PDF) document information -extractor (version 3.00) -.SH SYNOPSIS -.B pdfinfo -[options] -.RI [ PDF-file ] -.SH DESCRIPTION -.B Pdfinfo -prints the contents of the \'Info' dictionary (plus some other useful -information) from a Portable Document Format (PDF) file. -.PP -The \'Info' dictionary contains the following values: -.PP -.RS -title -.RE -.RS -subject -.RE -.RS -keywords -.RE -.RS -author -.RE -.RS -creator -.RE -.RS -producer -.RE -.RS -creation date -.RE -.RS -modification date -.RE -.PP -In addition, the following information is printed: -.PP -.RS -tagged (yes/no) -.RE -.RS -page count -.RE -.RS -encrypted flag (yes/no) -.RE -.RS -print and copy permissions (if encrypted) -.RE -.RS -page size -.RE -.RS -file size -.RE -.RS -linearized (yes/no) -.RE -.RS -PDF version -.RE -.RS -metadata (only if requested) -.RE -.SH OPTIONS -.TP -.BI \-f " number" -Specifies the first page to examine. If multiple pages are requested -using the "\-f" and "\-l" options, the size of each requested page (and, -optionally, the bounding boxes for each requested page) are printed. -Otherwise, only page one is examined. -.TP -.BI \-l " number" -Specifies the last page to examine. -.TP -.B \-box -Prints the page box bounding boxes: MediaBox, CropBox, BleedBox, -TrimBox, and ArtBox. -.TP -.B \-meta -Prints document-level metadata. (This is the "Metadata" stream from -the PDF file's Catalog object.) -.TP -.BI \-enc " encoding-name" -Sets the encoding to use for text output. This defaults to "UTF-8". -.TP -.B \-listenc -Lits the available encodings -.TP -.BI \-opw " password" -Specify the owner password for the PDF file. Providing this will -bypass all security restrictions. -.TP -.BI \-upw " password" -Specify the user password for the PDF file. -.TP -.B \-v -Print copyright and version information. -.TP -.B \-h -Print usage information. -.RB ( \-help -and -.B \-\-help -are equivalent.) -.SH EXIT CODES -The Xpdf tools use the following exit codes: -.TP -0 -No error. -.TP -1 -Error opening a PDF file. -.TP -2 -Error opening an output file. -.TP -3 -Error related to PDF permissions. -.TP -99 -Other error. -.SH AUTHOR -The pdfinfo software and documentation are copyright 1996-2004 Glyph & -Cog, LLC. -.SH "SEE ALSO" -.BR pdftops (1), -.BR pdftotext (1), -.BR pdffonts (1), -.BR pdftoppm (1), -.BR pdfimages (1), diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/pdfinfo.cc b/Build/source/libs/poppler/poppler-0.12.4/utils/pdfinfo.cc deleted file mode 100644 index bfbe0b3d985..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/pdfinfo.cc +++ /dev/null @@ -1,410 +0,0 @@ -//======================================================================== -// -// pdfinfo.cc -// -// Copyright 1998-2003 Glyph & Cog, LLC -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Dom Lachowicz <cinamod@hotmail.com> -// Copyright (C) 2007-2009 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include "config.h" -#include <poppler-config.h> -#include <stdio.h> -#include <stdlib.h> -#include <stddef.h> -#include <string.h> -#include <time.h> -#include <math.h> -#include "parseargs.h" -#include "printencodings.h" -#include "goo/GooString.h" -#include "goo/gmem.h" -#include "GlobalParams.h" -#include "Object.h" -#include "Stream.h" -#include "Array.h" -#include "Dict.h" -#include "XRef.h" -#include "Catalog.h" -#include "Page.h" -#include "PDFDoc.h" -#include "CharTypes.h" -#include "UnicodeMap.h" -#include "PDFDocEncoding.h" -#include "Error.h" -#include "DateInfo.h" - -static void printInfoString(Dict *infoDict, char *key, char *text, - UnicodeMap *uMap); -static void printInfoDate(Dict *infoDict, char *key, char *text); -static void printBox(char *text, PDFRectangle *box); - -static int firstPage = 1; -static int lastPage = 0; -static GBool printBoxes = gFalse; -static GBool printMetadata = gFalse; -static char textEncName[128] = ""; -static char ownerPassword[33] = "\001"; -static char userPassword[33] = "\001"; -static GBool printVersion = gFalse; -static GBool printHelp = gFalse; -static GBool printEnc = gFalse; - -static const ArgDesc argDesc[] = { - {"-f", argInt, &firstPage, 0, - "first page to convert"}, - {"-l", argInt, &lastPage, 0, - "last page to convert"}, - {"-box", argFlag, &printBoxes, 0, - "print the page bounding boxes"}, - {"-meta", argFlag, &printMetadata, 0, - "print the document metadata (XML)"}, - {"-enc", argString, textEncName, sizeof(textEncName), - "output text encoding name"}, - {"-listenc",argFlag, &printEnc, 0, - "list available encodings"}, - {"-opw", argString, ownerPassword, sizeof(ownerPassword), - "owner password (for encrypted files)"}, - {"-upw", argString, userPassword, sizeof(userPassword), - "user password (for encrypted files)"}, - {"-v", argFlag, &printVersion, 0, - "print copyright and version info"}, - {"-h", argFlag, &printHelp, 0, - "print usage information"}, - {"-help", argFlag, &printHelp, 0, - "print usage information"}, - {"--help", argFlag, &printHelp, 0, - "print usage information"}, - {"-?", argFlag, &printHelp, 0, - "print usage information"}, - {NULL} -}; - -int main(int argc, char *argv[]) { - PDFDoc *doc; - GooString *fileName; - GooString *ownerPW, *userPW; - UnicodeMap *uMap; - Page *page; - Object info; - char buf[256]; - double w, h, wISO, hISO; - FILE *f; - GooString *metadata; - GBool ok; - int exitCode; - int pg, i; - GBool multiPage; - - exitCode = 99; - - // parse args - ok = parseArgs(argDesc, &argc, argv); - if (!ok || (argc != 2 && !printEnc) || printVersion || printHelp) { - fprintf(stderr, "pdfinfo version %s\n", PACKAGE_VERSION); - fprintf(stderr, "%s\n", popplerCopyright); - fprintf(stderr, "%s\n", xpdfCopyright); - if (!printVersion) { - printUsage("pdfinfo", "<PDF-file>", argDesc); - } - goto err0; - } - - // read config file - globalParams = new GlobalParams(); - - if (printEnc) { - printEncodings(); - delete globalParams; - goto err0; - } - - fileName = new GooString(argv[1]); - - if (textEncName[0]) { - globalParams->setTextEncoding(textEncName); - } - - // get mapping to output encoding - if (!(uMap = globalParams->getTextEncoding())) { - error(-1, "Couldn't get text encoding"); - delete fileName; - goto err1; - } - - // open PDF file - if (ownerPassword[0] != '\001') { - ownerPW = new GooString(ownerPassword); - } else { - ownerPW = NULL; - } - if (userPassword[0] != '\001') { - userPW = new GooString(userPassword); - } else { - userPW = NULL; - } - - if(fileName->cmp("-") != 0) { - doc = new PDFDoc(fileName, ownerPW, userPW); - } else { - Object obj; - - obj.initNull(); - doc = new PDFDoc(new FileStream(stdin, 0, gFalse, 0, &obj), ownerPW, userPW); - } - - if (userPW) { - delete userPW; - } - if (ownerPW) { - delete ownerPW; - } - if (!doc->isOk()) { - exitCode = 1; - goto err2; - } - - // get page range - if (firstPage < 1) { - firstPage = 1; - } - if (lastPage == 0) { - multiPage = gFalse; - lastPage = 1; - } else { - multiPage = gTrue; - } - if (lastPage < 1 || lastPage > doc->getNumPages()) { - lastPage = doc->getNumPages(); - } - - // print doc info - doc->getDocInfo(&info); - if (info.isDict()) { - printInfoString(info.getDict(), "Title", "Title: ", uMap); - printInfoString(info.getDict(), "Subject", "Subject: ", uMap); - printInfoString(info.getDict(), "Keywords", "Keywords: ", uMap); - printInfoString(info.getDict(), "Author", "Author: ", uMap); - printInfoString(info.getDict(), "Creator", "Creator: ", uMap); - printInfoString(info.getDict(), "Producer", "Producer: ", uMap); - printInfoDate(info.getDict(), "CreationDate", "CreationDate: "); - printInfoDate(info.getDict(), "ModDate", "ModDate: "); - } - info.free(); - - // print tagging info - printf("Tagged: %s\n", - doc->getStructTreeRoot()->isDict() ? "yes" : "no"); - - // print page count - printf("Pages: %d\n", doc->getNumPages()); - - // print encryption info - printf("Encrypted: "); - if (doc->isEncrypted()) { - printf("yes (print:%s copy:%s change:%s addNotes:%s)\n", - doc->okToPrint(gTrue) ? "yes" : "no", - doc->okToCopy(gTrue) ? "yes" : "no", - doc->okToChange(gTrue) ? "yes" : "no", - doc->okToAddNotes(gTrue) ? "yes" : "no"); - } else { - printf("no\n"); - } - - // print page size - for (pg = firstPage; pg <= lastPage; ++pg) { - w = doc->getPageCropWidth(pg); - h = doc->getPageCropHeight(pg); - if (multiPage) { - printf("Page %4d size: %g x %g pts", pg, w, h); - } else { - printf("Page size: %g x %g pts", w, h); - } - if ((fabs(w - 612) < 0.1 && fabs(h - 792) < 0.1) || - (fabs(w - 792) < 0.1 && fabs(h - 612) < 0.1)) { - printf(" (letter)"); - } else { - hISO = sqrt(sqrt(2.0)) * 7200 / 2.54; - wISO = hISO / sqrt(2.0); - for (i = 0; i <= 6; ++i) { - if ((fabs(w - wISO) < 1 && fabs(h - hISO) < 1) || - (fabs(w - hISO) < 1 && fabs(h - wISO) < 1)) { - printf(" (A%d)", i); - break; - } - hISO = wISO; - wISO /= sqrt(2.0); - } - } - printf("\n"); - } - - // print the boxes - if (printBoxes) { - if (multiPage) { - for (pg = firstPage; pg <= lastPage; ++pg) { - page = doc->getCatalog()->getPage(pg); - sprintf(buf, "Page %4d MediaBox: ", pg); - printBox(buf, page->getMediaBox()); - sprintf(buf, "Page %4d CropBox: ", pg); - printBox(buf, page->getCropBox()); - sprintf(buf, "Page %4d BleedBox: ", pg); - printBox(buf, page->getBleedBox()); - sprintf(buf, "Page %4d TrimBox: ", pg); - printBox(buf, page->getTrimBox()); - sprintf(buf, "Page %4d ArtBox: ", pg); - printBox(buf, page->getArtBox()); - } - } else { - page = doc->getCatalog()->getPage(firstPage); - printBox("MediaBox: ", page->getMediaBox()); - printBox("CropBox: ", page->getCropBox()); - printBox("BleedBox: ", page->getBleedBox()); - printBox("TrimBox: ", page->getTrimBox()); - printBox("ArtBox: ", page->getArtBox()); - } - } - - // print file size -#ifdef VMS - f = fopen(fileName->getCString(), "rb", "ctx=stm"); -#else - f = fopen(fileName->getCString(), "rb"); -#endif - if (f) { -#if HAVE_FSEEKO - fseeko(f, 0, SEEK_END); - printf("File size: %u bytes\n", (Guint)ftello(f)); -#elif HAVE_FSEEK64 - fseek64(f, 0, SEEK_END); - printf("File size: %u bytes\n", (Guint)ftell64(f)); -#else - fseek(f, 0, SEEK_END); - printf("File size: %d bytes\n", (int)ftell(f)); -#endif - fclose(f); - } - - // print linearization info - printf("Optimized: %s\n", doc->isLinearized() ? "yes" : "no"); - - // print PDF version - printf("PDF version: %d.%d\n", doc->getPDFMajorVersion(), doc->getPDFMinorVersion()); - - // print the metadata - if (printMetadata && (metadata = doc->readMetadata())) { - fputs("Metadata:\n", stdout); - fputs(metadata->getCString(), stdout); - fputc('\n', stdout); - delete metadata; - } - - exitCode = 0; - - // clean up - err2: - uMap->decRefCnt(); - delete doc; - err1: - delete globalParams; - err0: - - // check for memory leaks - Object::memCheck(stderr); - gMemReport(stderr); - - return exitCode; -} - -static void printInfoString(Dict *infoDict, char *key, char *text, - UnicodeMap *uMap) { - Object obj; - GooString *s1; - GBool isUnicode; - Unicode u; - char buf[8]; - int i, n; - - if (infoDict->lookup(key, &obj)->isString()) { - fputs(text, stdout); - s1 = obj.getString(); - if ((s1->getChar(0) & 0xff) == 0xfe && - (s1->getChar(1) & 0xff) == 0xff) { - isUnicode = gTrue; - i = 2; - } else { - isUnicode = gFalse; - i = 0; - } - while (i < obj.getString()->getLength()) { - if (isUnicode) { - u = ((s1->getChar(i) & 0xff) << 8) | - (s1->getChar(i+1) & 0xff); - i += 2; - } else { - u = pdfDocEncoding[s1->getChar(i) & 0xff]; - ++i; - } - n = uMap->mapUnicode(u, buf, sizeof(buf)); - fwrite(buf, 1, n, stdout); - } - fputc('\n', stdout); - } - obj.free(); -} - -static void printInfoDate(Dict *infoDict, char *key, char *text) { - Object obj; - char *s; - int year, mon, day, hour, min, sec, tz_hour, tz_minute; - char tz; - struct tm tmStruct; - char buf[256]; - - if (infoDict->lookup(key, &obj)->isString()) { - fputs(text, stdout); - s = obj.getString()->getCString(); - // TODO do something with the timezone info - if ( parseDateString( s, &year, &mon, &day, &hour, &min, &sec, &tz, &tz_hour, &tz_minute ) ) { - tmStruct.tm_year = year - 1900; - tmStruct.tm_mon = mon - 1; - tmStruct.tm_mday = day; - tmStruct.tm_hour = hour; - tmStruct.tm_min = min; - tmStruct.tm_sec = sec; - tmStruct.tm_wday = -1; - tmStruct.tm_yday = -1; - tmStruct.tm_isdst = -1; - // compute the tm_wday and tm_yday fields - if (mktime(&tmStruct) != (time_t)-1 && - strftime(buf, sizeof(buf), "%c", &tmStruct)) { - fputs(buf, stdout); - } else { - fputs(s, stdout); - } - } else { - fputs(s, stdout); - } - fputc('\n', stdout); - } - obj.free(); -} - -static void printBox(char *text, PDFRectangle *box) { - printf("%s%8.2f %8.2f %8.2f %8.2f\n", - text, box->x1, box->y1, box->x2, box->y2); -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftoabw.cc b/Build/source/libs/poppler/poppler-0.12.4/utils/pdftoabw.cc deleted file mode 100644 index 9c71c766e32..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftoabw.cc +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright (C) 2007 Jauco Noordzij <jauco@jauco.nl> - * Copyright (C) 2007 Dominic Lachowicz <cinamod@hotmail.com> - * Copyright (C) 2007 Kouhei Sutou <kou@cozmixng.org> - * Copyright (C) 2009 Jakub Wilk <ubanus@users.sf.net> - * Copyright (C) 2009 Albert Astals Cid <aacid@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "config.h" -#include <poppler-config.h> -#include <stdio.h> -#include <stdlib.h> -#include <stddef.h> -#include <string.h> -#ifdef HAVE_DIRENT_H -#include <dirent.h> -#endif -#include <time.h> -#include "parseargs.h" -#include "goo/GooString.h" -#include "goo/gmem.h" -#include "Object.h" -#include "Stream.h" -#include "Array.h" -#include "Dict.h" -#include "XRef.h" -#include "Catalog.h" -#include "Page.h" -#include "PDFDoc.h" -#include "ABWOutputDev.h" -#include "PSOutputDev.h" -#include "GlobalParams.h" -#include "Error.h" -#include "goo/gfile.h" -#include <libxml/parser.h> -#include <libxml/tree.h> - -static int firstPage = 1; -static int lastPage = 0; -static GBool quiet = gFalse; -static GBool printHelp = gFalse; -static GBool printVersion = gFalse; -static GBool stout = gFalse; -static char ownerPassword[33] = ""; -static char userPassword[33] = ""; - -// static char textEncName[128] = ""; - -static const ArgDesc argDesc[] = { - {"-f", argInt, &firstPage, 0, - "first page to convert"}, - {"-l", argInt, &lastPage, 0, - "last page to convert"}, - {"--stdout" ,argFlag, &stout, 0, - "use standard output"}, - {"--opw", argString, ownerPassword, sizeof(ownerPassword), - "owner password (for encrypted files)"}, - {"--upw", argString, userPassword, sizeof(userPassword), - "user password (for encrypted files)"}, - {"-q", argFlag, &quiet, 0, - "don't print any messages or errors"}, - {"-v", argFlag, &printVersion, 0, - "print copyright and version info"}, - {"-h", argFlag, &printHelp, 0, - "print usage information"}, - {"-help", argFlag, &printHelp, 0, - "print usage information"}, - {"--help", argFlag, &printHelp, 0, - "print usage information"}, - {"-?", argFlag, &printHelp, 0, - "print usage information"}, - {NULL} -}; - -int main(int argc, char *argv[]) { - GBool ok; - PDFDoc *doc = NULL; - GooString *fileName = NULL; -// GooString *abwFileName = NULL; - ABWOutputDev *abwOut = NULL; -// GBool ok; - GooString *ownerPW, *userPW; - Object info; - - int result = 1; - - char * outpName; - xmlDocPtr XMLdoc = NULL; - - // parse args - ok = parseArgs(argDesc, &argc, argv); - if (!ok || argc < 2 || argc > 3 || printVersion || printHelp) { - fprintf(stderr, "pdftoabw version %s\n", PACKAGE_VERSION); - fprintf(stderr, "%s\n", popplerCopyright); - fprintf(stderr, "%s\n", xpdfCopyright); - if (!printVersion) { - printUsage("pdftoabw", "<PDF-file> [abw-file]", argDesc); - } - goto err0; - } - globalParams = new GlobalParams(); - if (quiet) { - globalParams->setErrQuiet(quiet); - } - - fileName = new GooString(argv[1]); - if (stout || (argc < 3)){ - outpName = "-"; - } - else { - outpName = argv[2]; - } - - if (ownerPassword[0]) { - ownerPW = new GooString(ownerPassword); - } else { - ownerPW = NULL; - } - if (userPassword[0]) { - userPW = new GooString(userPassword); - } else { - userPW = NULL; - } - - doc = new PDFDoc(fileName, ownerPW, userPW); - - if (userPW) { - delete userPW; - } - if (ownerPW) { - delete ownerPW; - } - - if (!doc || !doc->isOk()) - { - fprintf (stderr, "Error opening PDF %s\n", fileName->getCString()); - goto error; - } - - // check for copy permission - if (!doc->okToCopy()) { - fprintf(stderr, "Copying of text from this document is not allowed.\n"); - goto error; - } - - XMLdoc = xmlNewDoc(BAD_CAST "1.0"); - abwOut = new ABWOutputDev(XMLdoc); - abwOut->setPDFDoc(doc); - - if (lastPage == 0 || lastPage > doc->getNumPages ()) lastPage = doc->getNumPages(); - if (firstPage < 1) firstPage = 1; - - if (abwOut->isOk()) - { - doc->displayPages(abwOut, firstPage, lastPage, 72, 72, 0, gTrue, gFalse, gFalse); - abwOut->createABW(); - } - - if (xmlSaveFormatFileEnc(outpName, XMLdoc, "UTF-8", 1) == -1) - { - fprintf (stderr, "Error saving to %s\n", outpName); - goto error; - } - - result = 0; - - error: - // clean up - if(globalParams) delete globalParams; - if(doc) delete doc; - if(XMLdoc) xmlFreeDoc(XMLdoc); - if(abwOut) delete abwOut; - err0: - // check for memory leaks - Object::memCheck(stderr); - gMemReport(stderr); - - return result; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftohtml.1 b/Build/source/libs/poppler/poppler-0.12.4/utils/pdftohtml.1 deleted file mode 100644 index 850aa840cae..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftohtml.1 +++ /dev/null @@ -1,85 +0,0 @@ -.TH PDFTOHTML 1 -.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection -.\" other parms are allowed: see man(7), man(1) -.SH NAME -pdftohtml \- program to convert pdf files into html, xml and png images -.SH SYNOPSIS -.B pdftohtml -.I "[options] <PDF-file> [<html-file> <xml-file>]" -.SH "DESCRIPTION" -This manual page documents briefly the -.BR pdftohtml -command. -This manual page was written for the Debian GNU/Linux distribution -because the original program does not have a manual page. -.PP -.B pdftohtml -is a program that converts pdf documents into html. It generates its output in -the current working directory. -.SH OPTIONS -A summary of options are included below. -.TP -.B \-h, \-help -Show summary of options. -.TP -.B \-f <int> -first page to print -.TP -.B \-l <int> -last page to print -.TP -.B \-q -dont print any messages or errors -.TP -.B \-v -print copyright and version info -.TP -.B \-p -exchange .pdf links with .html -.TP -.B \-c -generate complex output -.TP -.B \-i -ignore images -.TP -.B \-noframes -generate no frames. Not supported in complex output mode. -.TP -.B \-stdout -use standard output -.TP -.B \-zoom <fp> -zoom the pdf document (default 1.5) -.TP -.B \-xml -output for XML post-processing -.TP -.B \-enc <string> -output text encoding name -.TP -.B \-opw <string> -owner password (for encrypted files) -.TP -.B \-upw <string> -user password (for encrypted files) -.TP -.B \-hidden -force hidden text extraction -.TP -.B \-dev -output device name for Ghostscript (png16m, jpeg etc) -.TP -.B \-nomerge -do not merge paragraphs -.TP -.B \-nodrm -override document DRM settings - -.SH AUTHOR - -Pdftohtml was developed by Gueorgui Ovtcharov and Rainer Dorsch. It is -based and benefits a lot from Derek Noonburg's xpdf package. - -This manual page was written by Søren Boll Overgaard <boll@debian.org>, -for the Debian GNU/Linux system (but may be used by others). diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftohtml.cc b/Build/source/libs/poppler/poppler-0.12.4/utils/pdftohtml.cc deleted file mode 100644 index 41312de2fdd..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftohtml.cc +++ /dev/null @@ -1,442 +0,0 @@ -//======================================================================== -// -// pdftohtml.cc -// -// -// Copyright 1999-2000 G. Ovtcharov -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2007-2008 Albert Astals Cid <aacid@kde.org> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include "config.h" -#include <poppler-config.h> -#include <stdio.h> -#include <stdlib.h> -#include <stddef.h> -#include <string.h> -#ifdef HAVE_DIRENT_H -#include <dirent.h> -#endif -#include <time.h> -#include "parseargs.h" -#include "goo/GooString.h" -#include "goo/gmem.h" -#include "Object.h" -#include "Stream.h" -#include "Array.h" -#include "Dict.h" -#include "XRef.h" -#include "Catalog.h" -#include "Page.h" -#include "PDFDoc.h" -#include "HtmlOutputDev.h" -#include "PSOutputDev.h" -#include "GlobalParams.h" -#include "Error.h" -#include "DateInfo.h" -#include "goo/gfile.h" - -#ifndef GHOSTSCRIPT -# define GHOSTSCRIPT "gs" -#endif - -static int firstPage = 1; -static int lastPage = 0; -static GBool rawOrder = gTrue; -GBool printCommands = gTrue; -static GBool printHelp = gFalse; -GBool printHtml = gFalse; -GBool complexMode=gFalse; -GBool ignore=gFalse; -//char extension[5]=".png"; -double scale=1.5; -GBool noframes=gFalse; -GBool stout=gFalse; -GBool xml=gFalse; -static GBool errQuiet=gFalse; -static GBool noDrm=gFalse; - -GBool showHidden = gFalse; -GBool noMerge = gFalse; -static char ownerPassword[33] = ""; -static char userPassword[33] = ""; -static char gsDevice[33] = "png16m"; -static GBool printVersion = gFalse; - -static GooString* getInfoString(Dict *infoDict, char *key); -static GooString* getInfoDate(Dict *infoDict, char *key); - -static char textEncName[128] = ""; - -static const ArgDesc argDesc[] = { - {"-f", argInt, &firstPage, 0, - "first page to convert"}, - {"-l", argInt, &lastPage, 0, - "last page to convert"}, - /*{"-raw", argFlag, &rawOrder, 0, - "keep strings in content stream order"},*/ - {"-q", argFlag, &errQuiet, 0, - "don't print any messages or errors"}, - {"-h", argFlag, &printHelp, 0, - "print usage information"}, - {"-help", argFlag, &printHelp, 0, - "print usage information"}, - {"-p", argFlag, &printHtml, 0, - "exchange .pdf links by .html"}, - {"-c", argFlag, &complexMode, 0, - "generate complex document"}, - {"-i", argFlag, &ignore, 0, - "ignore images"}, - {"-noframes", argFlag, &noframes, 0, - "generate no frames"}, - {"-stdout" ,argFlag, &stout, 0, - "use standard output"}, - {"-zoom", argFP, &scale, 0, - "zoom the pdf document (default 1.5)"}, - {"-xml", argFlag, &xml, 0, - "output for XML post-processing"}, - {"-hidden", argFlag, &showHidden, 0, - "output hidden text"}, - {"-nomerge", argFlag, &noMerge, 0, - "do not merge paragraphs"}, - {"-enc", argString, textEncName, sizeof(textEncName), - "output text encoding name"}, - {"-dev", argString, gsDevice, sizeof(gsDevice), - "output device name for Ghostscript (png16m, jpeg etc)"}, - {"-v", argFlag, &printVersion, 0, - "print copyright and version info"}, - {"-opw", argString, ownerPassword, sizeof(ownerPassword), - "owner password (for encrypted files)"}, - {"-upw", argString, userPassword, sizeof(userPassword), - "user password (for encrypted files)"}, - {"-nodrm", argFlag, &noDrm, 0, - "override document DRM settings"}, - {NULL} -}; - -int main(int argc, char *argv[]) { - PDFDoc *doc = NULL; - GooString *fileName = NULL; - GooString *docTitle = NULL; - GooString *author = NULL, *keywords = NULL, *subject = NULL, *date = NULL; - GooString *htmlFileName = NULL; - GooString *psFileName = NULL; - HtmlOutputDev *htmlOut = NULL; - PSOutputDev *psOut = NULL; - GBool ok; - char *p; - char extension[16] = "png"; - GooString *ownerPW, *userPW; - Object info; - char * extsList[] = {"png", "jpeg", "bmp", "pcx", "tiff", "pbm", NULL}; - - // parse args - ok = parseArgs(argDesc, &argc, argv); - if (!ok || argc < 2 || argc > 3 || printHelp || printVersion) { - fprintf(stderr, "pdftohtml version %s\n", PACKAGE_VERSION); - fprintf(stderr, "%s\n", popplerCopyright); - fprintf(stderr, "%s\n", "Copyright 1999-2003 Gueorgui Ovtcharov and Rainer Dorsch"); - fprintf(stderr, "%s\n\n", xpdfCopyright); - if (!printVersion) { - printUsage("pdftohtml", "<PDF-file> [<html-file> <xml-file>]", argDesc); - } - exit(1); - } - - // init error file - //errorInit(); - - // read config file - globalParams = new GlobalParams(); - - if (errQuiet) { - globalParams->setErrQuiet(errQuiet); - printCommands = gFalse; // I'm not 100% what is the differecne between them - } - - if (textEncName[0]) { - globalParams->setTextEncoding(textEncName); - if( !globalParams->getTextEncoding() ) { - goto error; - } - } - - // open PDF file - if (ownerPassword[0]) { - ownerPW = new GooString(ownerPassword); - } else { - ownerPW = NULL; - } - if (userPassword[0]) { - userPW = new GooString(userPassword); - } else { - userPW = NULL; - } - - fileName = new GooString(argv[1]); - - doc = new PDFDoc(fileName, ownerPW, userPW); - if (userPW) { - delete userPW; - } - if (ownerPW) { - delete ownerPW; - } - if (!doc->isOk()) { - goto error; - } - - // check for copy permission - if (!doc->okToCopy()) { - if (!noDrm) { - error(-1, "Copying of text from this document is not allowed."); - goto error; - } - fprintf(stderr, "Document has copy-protection bit set.\n"); - } - - // construct text file name - if (argc == 3) { - GooString* tmp = new GooString(argv[2]); - p=tmp->getCString()+tmp->getLength()-5; - if (!xml) - if (!strcmp(p, ".html") || !strcmp(p, ".HTML")) - htmlFileName = new GooString(tmp->getCString(), - tmp->getLength() - 5); - else htmlFileName =new GooString(tmp); - else - if (!strcmp(p, ".xml") || !strcmp(p, ".XML")) - htmlFileName = new GooString(tmp->getCString(), - tmp->getLength() - 5); - else htmlFileName =new GooString(tmp); - - delete tmp; - } else { - p = fileName->getCString() + fileName->getLength() - 4; - if (!strcmp(p, ".pdf") || !strcmp(p, ".PDF")) - htmlFileName = new GooString(fileName->getCString(), - fileName->getLength() - 4); - else - htmlFileName = fileName->copy(); - // htmlFileName->append(".html"); - } - - if (scale>3.0) scale=3.0; - if (scale<0.5) scale=0.5; - - if (complexMode) { - //noframes=gFalse; - stout=gFalse; - } - - if (stout) { - noframes=gTrue; - complexMode=gFalse; - } - - if (xml) - { - complexMode = gTrue; - noframes = gTrue; - noMerge = gTrue; - } - - // get page range - if (firstPage < 1) - firstPage = 1; - if (lastPage < 1 || lastPage > doc->getNumPages()) - lastPage = doc->getNumPages(); - - doc->getDocInfo(&info); - if (info.isDict()) { - docTitle = getInfoString(info.getDict(), "Title"); - author = getInfoString(info.getDict(), "Author"); - keywords = getInfoString(info.getDict(), "Keywords"); - subject = getInfoString(info.getDict(), "Subject"); - date = getInfoDate(info.getDict(), "ModDate"); - if( !date ) - date = getInfoDate(info.getDict(), "CreationDate"); - } - info.free(); - if( !docTitle ) docTitle = new GooString(htmlFileName); - - /* determine extensions of output backgroun images */ - {int i; - for(i = 0; extsList[i]; i++) - { - if( strstr(gsDevice, extsList[i]) != (char *) NULL ) - { - strncpy(extension, extsList[i], sizeof(extension)); - break; - } - }} - - rawOrder = complexMode; // todo: figure out what exactly rawOrder do :) - - // write text file - htmlOut = new HtmlOutputDev(htmlFileName->getCString(), - docTitle->getCString(), - author ? author->getCString() : NULL, - keywords ? keywords->getCString() : NULL, - subject ? subject->getCString() : NULL, - date ? date->getCString() : NULL, - extension, - rawOrder, - firstPage, - doc->getCatalog()->getOutline()->isDict()); - delete docTitle; - if( author ) - { - delete author; - } - if( keywords ) - { - delete keywords; - } - if( subject ) - { - delete subject; - } - if( date ) - { - delete date; - } - - if (htmlOut->isOk()) - { - doc->displayPages(htmlOut, firstPage, lastPage, 72, 72, 0, - gTrue, gFalse, gFalse); - if (!xml) - { - htmlOut->dumpDocOutline(doc->getCatalog()); - } - } - - if( complexMode && !xml && !ignore ) { - int h=xoutRound(htmlOut->getPageHeight()/scale); - int w=xoutRound(htmlOut->getPageWidth()/scale); - //int h=xoutRound(doc->getPageHeight(1)/scale); - //int w=xoutRound(doc->getPageWidth(1)/scale); - - psFileName = new GooString(htmlFileName->getCString()); - psFileName->append(".ps"); - - psOut = new PSOutputDev(psFileName->getCString(), doc->getXRef(), - doc->getCatalog(), NULL, firstPage, lastPage, psModePS, w, h); - psOut->setDisplayText(gFalse); - doc->displayPages(psOut, firstPage, lastPage, 72, 72, 0, - gTrue, gFalse, gFalse); - delete psOut; - - /*sprintf(buf, "%s -sDEVICE=png16m -dBATCH -dNOPROMPT -dNOPAUSE -r72 -sOutputFile=%s%%03d.png -g%dx%d -q %s", GHOSTSCRIPT, htmlFileName->getCString(), w, h, - psFileName->getCString());*/ - - GooString *gsCmd = new GooString(GHOSTSCRIPT); - GooString *tw, *th, *sc; - gsCmd->append(" -sDEVICE="); - gsCmd->append(gsDevice); - gsCmd->append(" -dBATCH -dNOPROMPT -dNOPAUSE -r"); - sc = GooString::fromInt(static_cast<int>(72*scale)); - gsCmd->append(sc); - gsCmd->append(" -sOutputFile="); - gsCmd->append("\""); - gsCmd->append(htmlFileName); - gsCmd->append("%03d."); - gsCmd->append(extension); - gsCmd->append("\" -g"); - tw = GooString::fromInt(static_cast<int>(scale*w)); - gsCmd->append(tw); - gsCmd->append("x"); - th = GooString::fromInt(static_cast<int>(scale*h)); - gsCmd->append(th); - gsCmd->append(" -q \""); - gsCmd->append(psFileName); - gsCmd->append("\""); -// printf("running: %s\n", gsCmd->getCString()); - if( !executeCommand(gsCmd->getCString()) && !errQuiet) { - error(-1, "Failed to launch Ghostscript!\n"); - } - unlink(psFileName->getCString()); - delete tw; - delete th; - delete sc; - delete gsCmd; - delete psFileName; - } - - delete htmlOut; - - // clean up - error: - if(doc) delete doc; - if(globalParams) delete globalParams; - - if(htmlFileName) delete htmlFileName; - HtmlFont::clear(); - - // check for memory leaks - Object::memCheck(stderr); - gMemReport(stderr); - - return 0; -} - -static GooString* getInfoString(Dict *infoDict, char *key) { - Object obj; - GooString *s1 = NULL; - - if (infoDict->lookup(key, &obj)->isString()) { - s1 = new GooString(obj.getString()); - } - obj.free(); - return s1; -} - -static GooString* getInfoDate(Dict *infoDict, char *key) { - Object obj; - char *s; - int year, mon, day, hour, min, sec, tz_hour, tz_minute; - char tz; - struct tm tmStruct; - GooString *result = NULL; - char buf[256]; - - if (infoDict->lookup(key, &obj)->isString()) { - s = obj.getString()->getCString(); - // TODO do something with the timezone info - if ( parseDateString( s, &year, &mon, &day, &hour, &min, &sec, &tz, &tz_hour, &tz_minute ) ) { - tmStruct.tm_year = year - 1900; - tmStruct.tm_mon = mon - 1; - tmStruct.tm_mday = day; - tmStruct.tm_hour = hour; - tmStruct.tm_min = min; - tmStruct.tm_sec = sec; - tmStruct.tm_wday = -1; - tmStruct.tm_yday = -1; - tmStruct.tm_isdst = -1; - mktime(&tmStruct); // compute the tm_wday and tm_yday fields - if (strftime(buf, sizeof(buf), "%Y-%m-%dT%H:%M:%S+00:00", &tmStruct)) { - result = new GooString(buf); - } else { - result = new GooString(s); - } - } else { - result = new GooString(s); - } - } - obj.free(); - return result; -} - diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftoppm.1 b/Build/source/libs/poppler/poppler-0.12.4/utils/pdftoppm.1 deleted file mode 100644 index ecadf2250a6..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftoppm.1 +++ /dev/null @@ -1,128 +0,0 @@ -.\" Copyright 2004 Glyph & Cog, LLC -.TH pdftoppm 1 "22 January 2004" -.SH NAME -pdftoppm \- Portable Document Format (PDF) to Portable Pixmap (PPM) -converter (version 3.00) -.SH SYNOPSIS -.B pdftoppm -[options] -.I PDF-file PPM-root -.SH DESCRIPTION -.B Pdftoppm -converts Portable Document Format (PDF) files to color image files in -Portable Pixmap (PPM) format, grayscale image files in Portable -Graymap (PGM) format, or monochrome image files in Portable Bitmap -(PBM) format. -.PP -Pdftoppm reads the PDF file, -.IR PDF-file , -and writes one PPM file for each page, -.IR PPM-root - nnnnnn .ppm, -where -.I nnnnnn -is the page number. -.SH OPTIONS -.TP -.BI \-f " number" -Specifies the first page to convert. -.TP -.BI \-l " number" -Specifies the last page to convert. -.TP -.BI \-r " number" -Specifies the X and Y resolution, in DPI. The default is 150 DPI. -.TP -.BI \-rx " number" -Specifies the X resolution, in DPI. The default is 150 DPI. -.TP -.BI \-ry " number" -Specifies the Y resolution, in DPI. The default is 150 DPI. -.TP -.BI \-scale-to " number" -Scales each page to fit in scale-to*scale-to pixel box. -.TP -.BI \-scale-to-x " number" -Scales each page horizontally to fit in scale-to-x pixels. -.TP -.BI \-scale-to-y " number" -Scales each page vertically to fit in scale-to-y pixels. -.TP -.BI \-x " number" -Specifies the x-coordinate of the crop area top left corner -.TP -.BI \-y " number" -Specifies the y-coordinate of the crop area top left corner -.TP -.BI \-W " number" -Specifies the width of crop area in pixels (default is 0) -.TP -.BI \-H " number" -Specifies the height of crop area in pixels (default is 0) -.TP -.BI \-sz " number" -Specifies the size of crop square in pixels (sets W and H) -.TP -.B \-mono -Generate a monochrome PBM file (instead of a color PPM file). -.TP -.B \-gray -Generate a grayscale PGM file (instead of a color PPM file). -.TP -.B \-png -Generates a PNG file instead a PPM file. -.TP -.BI \-freetype " yes | no" -Enable or disable FreeType (a TrueType / Type 1 font rasterizer). -This defaults to "yes". -.TP -.BI \-aa " yes | no" -Enable or disable font anti-aliasing. This defaults to "yes". -.TP -.BI \-aaVector " yes | no" -Enable or disable vector anti-aliasing. This defaults to "yes". -.TP -.BI \-opw " password" -Specify the owner password for the PDF file. Providing this will -bypass all security restrictions. -.TP -.BI \-upw " password" -Specify the user password for the PDF file. -.TP -.B \-q -Don't print any messages or errors. -.TP -.B \-v -Print copyright and version information. -.TP -.B \-h -Print usage information. -.RB ( \-help -and -.B \-\-help -are equivalent.) -.SH EXIT CODES -The Xpdf tools use the following exit codes: -.TP -0 -No error. -.TP -1 -Error opening a PDF file. -.TP -2 -Error opening an output file. -.TP -3 -Error related to PDF permissions. -.TP -99 -Other error. -.SH AUTHOR -The pdftoppm software and documentation are copyright 1996-2004 Glyph -& Cog, LLC. -.SH "SEE ALSO" -.BR pdftops (1), -.BR pdftotext (1), -.BR pdfinfo (1), -.BR pdffonts (1), -.BR pdfimages (1), diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftoppm.cc b/Build/source/libs/poppler/poppler-0.12.4/utils/pdftoppm.cc deleted file mode 100644 index 38c26fd776a..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftoppm.cc +++ /dev/null @@ -1,325 +0,0 @@ -//======================================================================== -// -// pdftoppm.cc -// -// Copyright 2003 Glyph & Cog, LLC -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2007 Ilmari Heikkinen <ilmari.heikkinen@gmail.com> -// Copyright (C) 2008 Richard Airlie <richard.airlie@maglabs.net> -// Copyright (C) 2009 Michael K. Johnson <a1237@danlj.org> -// Copyright (C) 2009 Shen Liang <shenzhuxi@gmail.com> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include "config.h" -#include <poppler-config.h> -#include <stdio.h> -#include <math.h> -#include "parseargs.h" -#include "goo/gmem.h" -#include "goo/GooString.h" -#include "GlobalParams.h" -#include "Object.h" -#include "PDFDoc.h" -#include "splash/SplashBitmap.h" -#include "splash/Splash.h" -#include "SplashOutputDev.h" - -#define PPM_FILE_SZ 512 - -static int firstPage = 1; -static int lastPage = 0; -static double resolution = 0.0; -static double x_resolution = 150.0; -static double y_resolution = 150.0; -static int scaleTo = 0; -static int x_scaleTo = 0; -static int y_scaleTo = 0; -static int x = 0; -static int y = 0; -static int w = 0; -static int h = 0; -static int sz = 0; -static GBool useCropBox = gFalse; -static GBool mono = gFalse; -static GBool gray = gFalse; -static GBool png = gFalse; -static char enableFreeTypeStr[16] = ""; -static char antialiasStr[16] = ""; -static char vectorAntialiasStr[16] = ""; -static char ownerPassword[33] = ""; -static char userPassword[33] = ""; -static GBool quiet = gFalse; -static GBool printVersion = gFalse; -static GBool printHelp = gFalse; - -static const ArgDesc argDesc[] = { - {"-f", argInt, &firstPage, 0, - "first page to print"}, - {"-l", argInt, &lastPage, 0, - "last page to print"}, - - {"-r", argFP, &resolution, 0, - "resolution, in DPI (default is 150)"}, - {"-rx", argFP, &x_resolution, 0, - "X resolution, in DPI (default is 150)"}, - {"-ry", argFP, &y_resolution, 0, - "Y resolution, in DPI (default is 150)"}, - {"-scale-to", argInt, &scaleTo, 0, - "scales each page to fit within scale-to*scale-to pixel box"}, - {"-scale-to-x", argInt, &x_scaleTo, 0, - "scales each page horizontally to fit in scale-to-x pixels"}, - {"-scale-to-y", argInt, &y_scaleTo, 0, - "scales each page vertically to fit in scale-to-y pixels"}, - - {"-x", argInt, &x, 0, - "x-coordinate of the crop area top left corner"}, - {"-y", argInt, &y, 0, - "y-coordinate of the crop area top left corner"}, - {"-W", argInt, &w, 0, - "width of crop area in pixels (default is 0)"}, - {"-H", argInt, &h, 0, - "height of crop area in pixels (default is 0)"}, - {"-sz", argInt, &sz, 0, - "size of crop square in pixels (sets W and H)"}, - {"-cropbox",argFlag, &useCropBox, 0, - "use the crop box rather than media box"}, - - {"-mono", argFlag, &mono, 0, - "generate a monochrome PBM file"}, - {"-gray", argFlag, &gray, 0, - "generate a grayscale PGM file"}, -#if ENABLE_LIBPNG - {"-png", argFlag, &png, 0, - "generate a PNG file"}, -#endif -#if HAVE_FREETYPE_FREETYPE_H | HAVE_FREETYPE_H - {"-freetype", argString, enableFreeTypeStr, sizeof(enableFreeTypeStr), - "enable FreeType font rasterizer: yes, no"}, -#endif - - {"-aa", argString, antialiasStr, sizeof(antialiasStr), - "enable font anti-aliasing: yes, no"}, - {"-aaVector", argString, vectorAntialiasStr, sizeof(vectorAntialiasStr), - "enable vector anti-aliasing: yes, no"}, - - {"-opw", argString, ownerPassword, sizeof(ownerPassword), - "owner password (for encrypted files)"}, - {"-upw", argString, userPassword, sizeof(userPassword), - "user password (for encrypted files)"}, - - {"-q", argFlag, &quiet, 0, - "don't print any messages or errors"}, - {"-v", argFlag, &printVersion, 0, - "print copyright and version info"}, - {"-h", argFlag, &printHelp, 0, - "print usage information"}, - {"-help", argFlag, &printHelp, 0, - "print usage information"}, - {"--help", argFlag, &printHelp, 0, - "print usage information"}, - {"-?", argFlag, &printHelp, 0, - "print usage information"}, - {NULL} -}; - -static void savePageSlice(PDFDoc *doc, - SplashOutputDev *splashOut, - int pg, int x, int y, int w, int h, - double pg_w, double pg_h, - char *ppmFile) { - if (w == 0) w = (int)ceil(pg_w); - if (h == 0) h = (int)ceil(pg_h); - w = (x+w > pg_w ? (int)ceil(pg_w-x) : w); - h = (y+h > pg_h ? (int)ceil(pg_h-y) : h); - doc->displayPageSlice(splashOut, - pg, x_resolution, y_resolution, - 0, - !useCropBox, gFalse, gFalse, - x, y, w, h - ); - if (ppmFile != NULL) { - if (png) { - splashOut->getBitmap()->writePNGFile(ppmFile); - } else { - splashOut->getBitmap()->writePNMFile(ppmFile); - } - } else { - if (png) { - splashOut->getBitmap()->writePNGFile(stdout); - } else { - splashOut->getBitmap()->writePNMFile(stdout); - } - } -} - -int main(int argc, char *argv[]) { - PDFDoc *doc; - GooString *fileName = NULL; - char *ppmRoot = NULL; - char ppmFile[PPM_FILE_SZ]; - GooString *ownerPW, *userPW; - SplashColor paperColor; - SplashOutputDev *splashOut; - GBool ok; - int exitCode; - int pg, pg_num_len; - double pg_w, pg_h, tmp; - - exitCode = 99; - - // parse args - ok = parseArgs(argDesc, &argc, argv); - if (mono && gray) { - ok = gFalse; - } - if ( resolution != 0.0 && - (x_resolution == 150.0 || - y_resolution == 150.0)) { - x_resolution = resolution; - y_resolution = resolution; - } - if (!ok || argc > 3 || printVersion || printHelp) { - fprintf(stderr, "pdftoppm version %s\n", PACKAGE_VERSION); - fprintf(stderr, "%s\n", popplerCopyright); - fprintf(stderr, "%s\n", xpdfCopyright); - if (!printVersion) { - printUsage("pdftoppm", "[PDF-file [PPM-file-prefix]]", argDesc); - } - goto err0; - } - if (argc > 1) fileName = new GooString(argv[1]); - if (argc == 3) ppmRoot = argv[2]; - - // read config file - globalParams = new GlobalParams(); - if (enableFreeTypeStr[0]) { - if (!globalParams->setEnableFreeType(enableFreeTypeStr)) { - fprintf(stderr, "Bad '-freetype' value on command line\n"); - } - } - if (antialiasStr[0]) { - if (!globalParams->setAntialias(antialiasStr)) { - fprintf(stderr, "Bad '-aa' value on command line\n"); - } - } - if (vectorAntialiasStr[0]) { - if (!globalParams->setVectorAntialias(vectorAntialiasStr)) { - fprintf(stderr, "Bad '-aaVector' value on command line\n"); - } - } - if (quiet) { - globalParams->setErrQuiet(quiet); - } - - // open PDF file - if (ownerPassword[0]) { - ownerPW = new GooString(ownerPassword); - } else { - ownerPW = NULL; - } - if (userPassword[0]) { - userPW = new GooString(userPassword); - } else { - userPW = NULL; - } - if(fileName != NULL && fileName->cmp("-") != 0) { - doc = new PDFDoc(fileName, ownerPW, userPW); - } else { - Object obj; - - obj.initNull(); - doc = new PDFDoc(new FileStream(stdin, 0, gFalse, 0, &obj), ownerPW, userPW); - } - if (userPW) { - delete userPW; - } - if (ownerPW) { - delete ownerPW; - } - if (!doc->isOk()) { - exitCode = 1; - goto err1; - } - - // get page range - if (firstPage < 1) - firstPage = 1; - if (lastPage < 1 || lastPage > doc->getNumPages()) - lastPage = doc->getNumPages(); - - // write PPM files - paperColor[0] = 255; - paperColor[1] = 255; - paperColor[2] = 255; - splashOut = new SplashOutputDev(mono ? splashModeMono1 : - gray ? splashModeMono8 : - splashModeRGB8, 4, - gFalse, paperColor); - splashOut->startDoc(doc->getXRef()); - if (sz != 0) w = h = sz; - pg_num_len = (int)ceil(log((double)doc->getNumPages()) / log((double)10)); - for (pg = firstPage; pg <= lastPage; ++pg) { - if (useCropBox) { - pg_w = doc->getPageCropWidth(pg); - pg_h = doc->getPageCropHeight(pg); - } else { - pg_w = doc->getPageMediaWidth(pg); - pg_h = doc->getPageMediaHeight(pg); - } - - if (scaleTo != 0) { - resolution = (72.0 * scaleTo) / (pg_w > pg_h ? pg_w : pg_h); - x_resolution = y_resolution = resolution; - } else { - if (x_scaleTo != 0) { - x_resolution = (72.0 * x_scaleTo) / pg_w; - } - if (y_scaleTo != 0) { - y_resolution = (72.0 * y_scaleTo) / pg_h; - } - } - pg_w = pg_w * (x_resolution / 72.0); - pg_h = pg_h * (y_resolution / 72.0); - if (doc->getPageRotate(pg)) { - tmp = pg_w; - pg_w = pg_h; - pg_h = tmp; - } - if (ppmRoot != NULL) { - snprintf(ppmFile, PPM_FILE_SZ, "%.*s-%0*d.%s", - PPM_FILE_SZ - 32, ppmRoot, pg_num_len, pg, - png ? "png" : mono ? "pbm" : gray ? "pgm" : "ppm"); - savePageSlice(doc, splashOut, pg, x, y, w, h, pg_w, pg_h, ppmFile); - } else { - savePageSlice(doc, splashOut, pg, x, y, w, h, pg_w, pg_h, NULL); - } - } - delete splashOut; - - exitCode = 0; - - // clean up - err1: - delete doc; - delete globalParams; - err0: - - // check for memory leaks - Object::memCheck(stderr); - gMemReport(stderr); - - return exitCode; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftops.1 b/Build/source/libs/poppler/poppler-0.12.4/utils/pdftops.1 deleted file mode 100644 index 6c4ef61876d..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftops.1 +++ /dev/null @@ -1,211 +0,0 @@ -.\" Copyright 1996-2004 Glyph & Cog, LLC -.TH pdftops 1 "31 July 2009" -.SH NAME -pdftops \- Portable Document Format (PDF) to PostScript converter -(version 3.00) -.SH SYNOPSIS -.B pdftops -[options] -.RI <PDF-file> -.RI [<PS-file>] -.SH DESCRIPTION -.B Pdftops -converts Portable Document Format (PDF) files to PostScript so they -can be printed. -.PP -Pdftops reads the PDF file, -.IR PDF-file , -and writes a PostScript file, -.IR PS-file . -If -.I PS-file -is not specified, pdftops converts -.I file.pdf -to -.I file.ps -(or -.I file.eps -with the \-eps option). If -.I PS-file -is \'-', the PostScript is sent to stdout. -.SH OPTIONS -.TP -.BI \-f " number" -Specifies the first page to print. -.TP -.BI \-l " number" -Specifies the last page to print. -.TP -.B \-level1 -Generate Level 1 PostScript. The resulting PostScript files will be -significantly larger (if they contain images), but will print on Level -1 printers. This also converts all images to black and white. No -more than one of the PostScript level options (\-level1, \-level1sep, -\-level2, \-level2sep, \-level3, \-level3Sep) may be given. -.TP -.B \-level1sep -Generate Level 1 separable PostScript. All colors are converted to -CMYK. Images are written with separate stream data for the four -components. -.TP -.B \-level2 -Generate Level 2 PostScript. Level 2 supports color images and image -compression. This is the default setting. -.TP -.B \-level2sep -Generate Level 2 separable PostScript. All colors are converted to -CMYK. The PostScript separation convention operators are used to -handle custom (spot) colors. -.TP -.B \-level3 -Generate Level 3 PostScript. This enables all Level 2 features plus -CID font embedding. -.TP -.B \-level3Sep -Generate Level 3 separable PostScript. The separation handling is the -same as for \-level2Sep. -.TP -.B \-origpagesizes -Generate a PostScript file with variable page sizes and orientations, -taking for each page the size of the original page in the PDF file. -The PostScript file contains "<</PageSize [WIDTH HEIGHT]>> setpagedevice" -lines in each page header, so that the paper input tray gets correctly -changed on the printer. This option should be used when pdftops is used -as a print filter. Any specification of the page size via \-paper, -\-paperw, or \-paperh will get overridden as long as each page of the -PDF file has a defined paper size. No more than one of the mode options -(\-origpagesizes, \-eps, \-form) may be given. -.TP -.B \-eps -Generate an Encapsulated PostScript (EPS) file. An EPS file contains -a single image, so if you use this option with a multi-page PDF file, -you must use \-f and \-l to specify a single page. No more than one of -the mode options (\-origpagesizes, \-eps, \-form) may be given. -.TP -.B \-form -Generate a PostScript form which can be imported by software that -understands forms. A form contains a single page, so if you use this -option with a multi-page PDF file, you must use \-f and \-l to specify a -single page. The \-level1 option cannot be used with \-form. No more -than one of the mode options (\-origpagesizes, \-eps, \-form) may be -given. -.TP -.B \-opi -Generate OPI comments for all images and forms which have OPI -information. (This option is only available if pdftops was compiled -with OPI support.) -.TP -.B \-noembt1 -By default, any Type 1 fonts which are embedded in the PDF file are -copied into the PostScript file. This option causes pdftops to -substitute base fonts instead. Embedded fonts make PostScript files -larger, but may be necessary for readable output. -.TP -.B \-noembtt -By default, any TrueType fonts which are embedded in the PDF file are -copied into the PostScript file. This option causes pdftops to -substitute base fonts instead. Embedded fonts make PostScript files -larger, but may be necessary for readable output. Also, some -PostScript interpreters do not have TrueType rasterizers. -.TP -.B \-noembcidps -By default, any CID PostScript fonts which are embedded in the PDF -file are copied into the PostScript file. This option disables that -embedding. No attempt is made to substitute for non-embedded CID -PostScript fonts. -.TP -.B \-noembcidtt -By default, any CID TrueType fonts which are embedded in the PDF file -are copied into the PostScript file. This option disables that -embedding. No attempt is made to substitute for non-embedded CID -TrueType fonts. -.TP -.B \-passfonts -By default, references to non-embedded 8-bit fonts in the PDF file are -substituted with the closest "Helvetica", "Times-Roman", or "Courier" font. -This option passes references to non-embedded fonts -through to the PostScript file. -.TP -.B \-preload -preload images and forms -.TP -.BI \-paper " size" -Set the paper size to one of "letter", "legal", "A4", or "A3". This -can also be set to "match", which will set the paper size to match the -size specified in the PDF file. \-origpagesizes overrides this setting -if the PDF file has defined page sizes. -.TP -.BI \-paperw " size" -Set the paper width, in points. \-origpagesizes overrides this setting -if the PDF file has defined page sizes. -.TP -.BI \-paperh " size" -Set the paper height, in points. \-origpagesizes overrides this setting -if the PDF file has defined page sizes. -.TP -.B \-nocrop -By default, output is cropped to the CropBox specified in the PDF -file. This option disables cropping. -.TP -.B \-expand -Expand PDF pages smaller than the paper to fill the paper. By -default, these pages are not scaled. -.TP -.B \-noshrink -Don't scale PDF pages which are larger than the paper. By default, -pages larger than the paper are shrunk to fit. -.TP -.B \-nocenter -By default, PDF pages smaller than the paper (after any scaling) are -centered on the paper. This option causes them to be aligned to the -lower-left corner of the paper instead. -.TP -.B \-duplex -Set the Duplex pagedevice entry in the PostScript file. This tells -duplex-capable printers to enable duplexing. -.TP -.BI \-opw " password" -Specify the owner password for the PDF file. Providing this will -bypass all security restrictions. -.TP -.BI \-upw " password" -Specify the user password for the PDF file. -.TP -.B \-q -Don't print any messages or errors. -.TP -.B \-v -Print copyright and version information. -.TP -.B \-h -Print usage information. -.RB ( \-help -and -.B \-\-help -are equivalent.) -.SH EXIT CODES -The Xpdf tools use the following exit codes: -.TP -0 -No error. -.TP -1 -Error opening a PDF file. -.TP -2 -Error opening an output file. -.TP -3 -Error related to PDF permissions. -.TP -99 -Other error. -.SH AUTHOR -The pdftops software and documentation are copyright 1996-2004 Glyph & -Cog, LLC. -.SH "SEE ALSO" -.BR pdftotext (1), -.BR pdfinfo (1), -.BR pdffonts (1), -.BR pdftoppm (1), -.BR pdfimages (1), diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftops.cc b/Build/source/libs/poppler/poppler-0.12.4/utils/pdftops.cc deleted file mode 100644 index 69d5c329405..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftops.cc +++ /dev/null @@ -1,382 +0,0 @@ -//======================================================================== -// -// pdftops.cc -// -// Copyright 1996-2003 Glyph & Cog, LLC -// -// Modified for Debian by Hamish Moffatt, 22 May 2002. -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Kristian Høgsberg <krh@redhat.com> -// Copyright (C) 2007-2008 Albert Astals Cid <aacid@kde.org> -// Copyright (C) 2009 Till Kamppeter <till.kamppeter@gmail.com> -// Copyright (C) 2009 Sanjoy Mahajan <sanjoy@mit.edu> -// Copyright (C) 2009 William Bader <williambader@hotmail.com> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include "config.h" -#include <poppler-config.h> -#include <stdio.h> -#include <stdlib.h> -#include <stddef.h> -#include <string.h> -#include "parseargs.h" -#include "goo/GooString.h" -#include "goo/gmem.h" -#include "GlobalParams.h" -#include "Object.h" -#include "Stream.h" -#include "Array.h" -#include "Dict.h" -#include "XRef.h" -#include "Catalog.h" -#include "Page.h" -#include "PDFDoc.h" -#include "PSOutputDev.h" -#include "Error.h" - -static GBool setPSPaperSize(char *size, int &psPaperWidth, int &psPaperHeight) { - if (!strcmp(size, "match")) { - psPaperWidth = psPaperHeight = -1; - } else if (!strcmp(size, "letter")) { - psPaperWidth = 612; - psPaperHeight = 792; - } else if (!strcmp(size, "legal")) { - psPaperWidth = 612; - psPaperHeight = 1008; - } else if (!strcmp(size, "A4")) { - psPaperWidth = 595; - psPaperHeight = 842; - } else if (!strcmp(size, "A3")) { - psPaperWidth = 842; - psPaperHeight = 1190; - } else { - return gFalse; - } - return gTrue; -} - - -static int firstPage = 1; -static int lastPage = 0; -static GBool level1 = gFalse; -static GBool level1Sep = gFalse; -static GBool level2 = gFalse; -static GBool level2Sep = gFalse; -static GBool level3 = gFalse; -static GBool level3Sep = gFalse; -static GBool doOrigPageSizes = gFalse; -static GBool doEPS = gFalse; -static GBool doForm = gFalse; -#if OPI_SUPPORT -static GBool doOPI = gFalse; -#endif -static GBool noEmbedT1Fonts = gFalse; -static GBool noEmbedTTFonts = gFalse; -static GBool noEmbedCIDPSFonts = gFalse; -static GBool noEmbedCIDTTFonts = gFalse; -static GBool noSubstFonts = gFalse; -static GBool preload = gFalse; -static char paperSize[15] = ""; -static int paperWidth = -1; -static int paperHeight = -1; -static GBool noCrop = gFalse; -static GBool expand = gFalse; -static GBool noShrink = gFalse; -static GBool noCenter = gFalse; -static GBool duplex = gFalse; -static char ownerPassword[33] = "\001"; -static char userPassword[33] = "\001"; -static GBool quiet = gFalse; -static GBool printVersion = gFalse; -static GBool printHelp = gFalse; - -static const ArgDesc argDesc[] = { - {"-f", argInt, &firstPage, 0, - "first page to print"}, - {"-l", argInt, &lastPage, 0, - "last page to print"}, - {"-level1", argFlag, &level1, 0, - "generate Level 1 PostScript"}, - {"-level1sep", argFlag, &level1Sep, 0, - "generate Level 1 separable PostScript"}, - {"-level2", argFlag, &level2, 0, - "generate Level 2 PostScript"}, - {"-level2sep", argFlag, &level2Sep, 0, - "generate Level 2 separable PostScript"}, - {"-level3", argFlag, &level3, 0, - "generate Level 3 PostScript"}, - {"-level3sep", argFlag, &level3Sep, 0, - "generate Level 3 separable PostScript"}, - {"-origpagesizes",argFlag, &doOrigPageSizes,0, - "conserve original page sizes"}, - {"-eps", argFlag, &doEPS, 0, - "generate Encapsulated PostScript (EPS)"}, - {"-form", argFlag, &doForm, 0, - "generate a PostScript form"}, -#if OPI_SUPPORT - {"-opi", argFlag, &doOPI, 0, - "generate OPI comments"}, -#endif - {"-noembt1", argFlag, &noEmbedT1Fonts, 0, - "don't embed Type 1 fonts"}, - {"-noembtt", argFlag, &noEmbedTTFonts, 0, - "don't embed TrueType fonts"}, - {"-noembcidps", argFlag, &noEmbedCIDPSFonts, 0, - "don't embed CID PostScript fonts"}, - {"-noembcidtt", argFlag, &noEmbedCIDTTFonts, 0, - "don't embed CID TrueType fonts"}, - {"-passfonts", argFlag, &noSubstFonts,0, - "don't substitute missing fonts"}, - {"-preload", argFlag, &preload, 0, - "preload images and forms"}, - {"-paper", argString, paperSize, sizeof(paperSize), - "paper size (letter, legal, A4, A3, match)"}, - {"-paperw", argInt, &paperWidth, 0, - "paper width, in points"}, - {"-paperh", argInt, &paperHeight, 0, - "paper height, in points"}, - {"-nocrop", argFlag, &noCrop, 0, - "don't crop pages to CropBox"}, - {"-expand", argFlag, &expand, 0, - "expand pages smaller than the paper size"}, - {"-noshrink", argFlag, &noShrink, 0, - "don't shrink pages larger than the paper size"}, - {"-nocenter", argFlag, &noCenter, 0, - "don't center pages smaller than the paper size"}, - {"-duplex", argFlag, &duplex, 0, - "enable duplex printing"}, - {"-opw", argString, ownerPassword, sizeof(ownerPassword), - "owner password (for encrypted files)"}, - {"-upw", argString, userPassword, sizeof(userPassword), - "user password (for encrypted files)"}, - {"-q", argFlag, &quiet, 0, - "don't print any messages or errors"}, - {"-v", argFlag, &printVersion, 0, - "print copyright and version info"}, - {"-h", argFlag, &printHelp, 0, - "print usage information"}, - {"-help", argFlag, &printHelp, 0, - "print usage information"}, - {"--help", argFlag, &printHelp, 0, - "print usage information"}, - {"-?", argFlag, &printHelp, 0, - "print usage information"}, - {NULL} -}; - -int main(int argc, char *argv[]) { - PDFDoc *doc; - GooString *fileName; - GooString *psFileName; - PSLevel level; - PSOutMode mode; - GooString *ownerPW, *userPW; - PSOutputDev *psOut; - GBool ok; - char *p; - int exitCode; - - exitCode = 99; - - // parse args - ok = parseArgs(argDesc, &argc, argv); - if (!ok || argc < 2 || argc > 3 || printVersion || printHelp) { - fprintf(stderr, "pdftops version %s\n", PACKAGE_VERSION); - fprintf(stderr, "%s\n", popplerCopyright); - fprintf(stderr, "%s\n", xpdfCopyright); - if (!printVersion) { - printUsage("pdftops", "<PDF-file> [<PS-file>]", argDesc); - } - exit(1); - } - if ((level1 ? 1 : 0) + - (level1Sep ? 1 : 0) + - (level2 ? 1 : 0) + - (level2Sep ? 1 : 0) + - (level3 ? 1 : 0) + - (level3Sep ? 1 : 0) > 1) { - fprintf(stderr, "Error: use only one of the 'level' options.\n"); - exit(1); - } - if ((doOrigPageSizes ? 1 : 0) + - (doEPS ? 1 : 0) + - (doForm ? 1 : 0) > 1) { - fprintf(stderr, "Error: use only one of -origpagesizes, -eps, and -form\n"); - exit(1); - } - if (level1) { - level = psLevel1; - } else if (level1Sep) { - level = psLevel1Sep; - } else if (level2Sep) { - level = psLevel2Sep; - } else if (level3) { - level = psLevel3; - } else if (level3Sep) { - level = psLevel3Sep; - } else { - level = psLevel2; - } - if (doForm && level < psLevel2) { - fprintf(stderr, "Error: forms are only available with Level 2 output.\n"); - exit(1); - } - mode = doOrigPageSizes ? psModePSOrigPageSizes - : doEPS ? psModeEPS - : doForm ? psModeForm - : psModePS; - fileName = new GooString(argv[1]); - - // read config file - globalParams = new GlobalParams(); - if (paperSize[0]) { - if (!setPSPaperSize(paperSize, paperWidth, paperHeight)) { - fprintf(stderr, "Invalid paper size\n"); - delete fileName; - goto err0; - } - } - if (expand) { - globalParams->setPSExpandSmaller(gTrue); - } - if (noShrink) { - globalParams->setPSShrinkLarger(gFalse); - } - if (noCenter) { - globalParams->setPSCenter(gFalse); - } - if (level1 || level1Sep || level2 || level2Sep || level3 || level3Sep) { - globalParams->setPSLevel(level); - } - if (noEmbedT1Fonts) { - globalParams->setPSEmbedType1(!noEmbedT1Fonts); - } - if (noEmbedTTFonts) { - globalParams->setPSEmbedTrueType(!noEmbedTTFonts); - } - if (noEmbedCIDPSFonts) { - globalParams->setPSEmbedCIDPostScript(!noEmbedCIDPSFonts); - } - if (noEmbedCIDTTFonts) { - globalParams->setPSEmbedCIDTrueType(!noEmbedCIDTTFonts); - } - if (noSubstFonts) { - globalParams->setPSSubstFonts(!noSubstFonts); - } - if (preload) { - globalParams->setPSPreload(preload); - } -#if OPI_SUPPORT - if (doOPI) { - globalParams->setPSOPI(doOPI); - } -#endif - if (quiet) { - globalParams->setErrQuiet(quiet); - } - - // open PDF file - if (ownerPassword[0] != '\001') { - ownerPW = new GooString(ownerPassword); - } else { - ownerPW = NULL; - } - if (userPassword[0] != '\001') { - userPW = new GooString(userPassword); - } else { - userPW = NULL; - } - doc = new PDFDoc(fileName, ownerPW, userPW); - if (userPW) { - delete userPW; - } - if (ownerPW) { - delete ownerPW; - } - if (!doc->isOk()) { - exitCode = 1; - goto err1; - } - -#ifdef ENFORCE_PERMISSIONS - // check for print permission - if (!doc->okToPrint()) { - error(-1, "Printing this document is not allowed."); - exitCode = 3; - goto err1; - } -#endif - - // construct PostScript file name - if (argc == 3) { - psFileName = new GooString(argv[2]); - } else { - p = fileName->getCString() + fileName->getLength() - 4; - if (!strcmp(p, ".pdf") || !strcmp(p, ".PDF")) { - psFileName = new GooString(fileName->getCString(), - fileName->getLength() - 4); - } else { - psFileName = fileName->copy(); - } - psFileName->append(doEPS ? ".eps" : ".ps"); - } - - // get page range - if (firstPage < 1) { - firstPage = 1; - } - if (lastPage < 1 || lastPage > doc->getNumPages()) { - lastPage = doc->getNumPages(); - } - - // check for multi-page EPS or form - if ((doEPS || doForm) && firstPage != lastPage) { - error(-1, "EPS and form files can only contain one page."); - goto err2; - } - - // write PostScript file - psOut = new PSOutputDev(psFileName->getCString(), doc->getXRef(), - doc->getCatalog(), NULL, firstPage, lastPage, mode, - paperWidth, - paperHeight, - duplex); - if (psOut->isOk()) { - doc->displayPages(psOut, firstPage, lastPage, 72, 72, - 0, noCrop, !noCrop, gTrue); - } else { - delete psOut; - exitCode = 2; - goto err2; - } - delete psOut; - - exitCode = 0; - - // clean up - err2: - delete psFileName; - err1: - delete doc; - err0: - delete globalParams; - - // check for memory leaks - Object::memCheck(stderr); - gMemReport(stderr); - - return exitCode; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftotext.1 b/Build/source/libs/poppler/poppler-0.12.4/utils/pdftotext.1 deleted file mode 100644 index 4e3cb0b78d7..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftotext.1 +++ /dev/null @@ -1,126 +0,0 @@ -.\" Copyright 1997-2004 Glyph & Cog, LLC -.TH pdftotext 1 "22 January 2004" -.SH NAME -pdftotext \- Portable Document Format (PDF) to text converter -(version 3.00) -.SH SYNOPSIS -.B pdftotext -[options] -.RI [ PDF-file -.RI [ text-file ]] -.SH DESCRIPTION -.B Pdftotext -converts Portable Document Format (PDF) files to plain text. -.PP -Pdftotext reads the PDF file, -.IR PDF-file , -and writes a text file, -.IR text-file . -If -.I text-file -is not specified, pdftotext converts -.I file.pdf -to -.IR file.txt . -If -.I text-file -is \'-', the text is sent to stdout. -.SH OPTIONS -.TP -.BI \-f " number" -Specifies the first page to convert. -.TP -.BI \-l " number" -Specifies the last page to convert. -.TP -.BI \-r " number" -Specifies the resolution, in DPI. The default is 72 DPI. -.TP -.BI \-x " number" -Specifies the x-coordinate of the crop area top left corner -.TP -.BI \-y " number" -Specifies the y-coordinate of the crop area top left corner -.TP -.BI \-W " number" -Specifies the width of crop area in pixels (default is 0) -.TP -.BI \-H " number" -Specifies the height of crop area in pixels (default is 0) -.TP -.B \-layout -Maintain (as best as possible) the original physical layout of the -text. The default is to \'undo' physical layout (columns, -hyphenation, etc.) and output the text in reading order. -.TP -.B \-raw -Keep the text in content stream order. This is a hack which often -"undoes" column formatting, etc. Use of raw mode is no longer -recommended. -.TP -.B \-htmlmeta -Generate a simple HTML file, including the meta information. This -simply wraps the text in <pre> and </pre> and prepends the meta -headers. -.TP -.BI \-enc " encoding-name" -Sets the encoding to use for text output. This defaults to "UTF-8". -.TP -.B \-listenc -Lits the available encodings -.TP -.BI \-eol " unix | dos | mac" -Sets the end-of-line convention to use for text output. -.TP -.B \-nopgbrk -Don't insert page breaks (form feed characters) between pages. -.TP -.BI \-opw " password" -Specify the owner password for the PDF file. Providing this will -bypass all security restrictions. -.TP -.BI \-upw " password" -Specify the user password for the PDF file. -.TP -.B \-q -Don't print any messages or errors. -.TP -.B \-v -Print copyright and version information. -.TP -.B \-h -Print usage information. -.RB ( \-help -and -.B \-\-help -are equivalent.) -.SH BUGS -Some PDF files contain fonts whose encodings have been mangled beyond -recognition. There is no way (short of OCR) to extract text from -these files. -.SH EXIT CODES -The Xpdf tools use the following exit codes: -.TP -0 -No error. -.TP -1 -Error opening a PDF file. -.TP -2 -Error opening an output file. -.TP -3 -Error related to PDF permissions. -.TP -99 -Other error. -.SH AUTHOR -The pdftotext software and documentation are copyright 1996-2004 Glyph -& Cog, LLC. -.SH "SEE ALSO" -.BR pdftops (1), -.BR pdfinfo (1), -.BR pdffonts (1), -.BR pdftoppm (1), -.BR pdfimages (1), diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftotext.cc b/Build/source/libs/poppler/poppler-0.12.4/utils/pdftotext.cc deleted file mode 100644 index 4ebda19bd41..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/pdftotext.cc +++ /dev/null @@ -1,398 +0,0 @@ -//======================================================================== -// -// pdftotext.cc -// -// Copyright 1997-2003 Glyph & Cog, LLC -// -// Modified for Debian by Hamish Moffatt, 22 May 2002. -// -//======================================================================== - -//======================================================================== -// -// Modified under the Poppler project - http://poppler.freedesktop.org -// -// All changes made under the Poppler project to this file are licensed -// under GPL version 2 or later -// -// Copyright (C) 2006 Dominic Lachowicz <cinamod@hotmail.com> -// Copyright (C) 2007-2008 Albert Astals Cid <aacid@kde.org> -// Copyright (C) 2009 Jan Jockusch <jan@jockusch.de> -// -// To see a description of the changes please see the Changelog file that -// came with your tarball or type make ChangeLog if you are building from git -// -//======================================================================== - -#include "config.h" -#include <poppler-config.h> -#include <stdio.h> -#include <stdlib.h> -#include <stddef.h> -#include <string.h> -#include "parseargs.h" -#include "printencodings.h" -#include "goo/GooString.h" -#include "goo/gmem.h" -#include "GlobalParams.h" -#include "Object.h" -#include "Stream.h" -#include "Array.h" -#include "Dict.h" -#include "XRef.h" -#include "Catalog.h" -#include "Page.h" -#include "PDFDoc.h" -#include "TextOutputDev.h" -#include "CharTypes.h" -#include "UnicodeMap.h" -#include "Error.h" - -static void printInfoString(FILE *f, Dict *infoDict, char *key, - char *text1, char *text2, UnicodeMap *uMap); -static void printInfoDate(FILE *f, Dict *infoDict, char *key, char *fmt); - -static int firstPage = 1; -static int lastPage = 0; -static double resolution = 72.0; -static int x = 0; -static int y = 0; -static int w = 0; -static int h = 0; -static GBool physLayout = gFalse; -static GBool rawOrder = gFalse; -static GBool htmlMeta = gFalse; -static char textEncName[128] = ""; -static char textEOL[16] = ""; -static GBool noPageBreaks = gFalse; -static char ownerPassword[33] = "\001"; -static char userPassword[33] = "\001"; -static GBool quiet = gFalse; -static GBool printVersion = gFalse; -static GBool printHelp = gFalse; -static GBool printEnc = gFalse; - -static const ArgDesc argDesc[] = { - {"-f", argInt, &firstPage, 0, - "first page to convert"}, - {"-l", argInt, &lastPage, 0, - "last page to convert"}, - {"-r", argFP, &resolution, 0, - "resolution, in DPI (default is 72)"}, - {"-x", argInt, &x, 0, - "x-coordinate of the crop area top left corner"}, - {"-y", argInt, &y, 0, - "y-coordinate of the crop area top left corner"}, - {"-W", argInt, &w, 0, - "width of crop area in pixels (default is 0)"}, - {"-H", argInt, &h, 0, - "height of crop area in pixels (default is 0)"}, - {"-layout", argFlag, &physLayout, 0, - "maintain original physical layout"}, - {"-raw", argFlag, &rawOrder, 0, - "keep strings in content stream order"}, - {"-htmlmeta", argFlag, &htmlMeta, 0, - "generate a simple HTML file, including the meta information"}, - {"-enc", argString, textEncName, sizeof(textEncName), - "output text encoding name"}, - {"-listenc",argFlag, &printEnc, 0, - "list available encodings"}, - {"-eol", argString, textEOL, sizeof(textEOL), - "output end-of-line convention (unix, dos, or mac)"}, - {"-nopgbrk", argFlag, &noPageBreaks, 0, - "don't insert page breaks between pages"}, - {"-opw", argString, ownerPassword, sizeof(ownerPassword), - "owner password (for encrypted files)"}, - {"-upw", argString, userPassword, sizeof(userPassword), - "user password (for encrypted files)"}, - {"-q", argFlag, &quiet, 0, - "don't print any messages or errors"}, - {"-v", argFlag, &printVersion, 0, - "print copyright and version info"}, - {"-h", argFlag, &printHelp, 0, - "print usage information"}, - {"-help", argFlag, &printHelp, 0, - "print usage information"}, - {"--help", argFlag, &printHelp, 0, - "print usage information"}, - {"-?", argFlag, &printHelp, 0, - "print usage information"}, - {NULL} -}; - -int main(int argc, char *argv[]) { - PDFDoc *doc; - GooString *fileName; - GooString *textFileName; - GooString *ownerPW, *userPW; - TextOutputDev *textOut; - FILE *f; - UnicodeMap *uMap; - Object info; - GBool ok; - char *p; - int exitCode; - - exitCode = 99; - - // parse args - ok = parseArgs(argDesc, &argc, argv); - if (!ok || (argc < 2 && !printEnc) || argc > 3 || printVersion || printHelp) { - fprintf(stderr, "pdftotext version %s\n", PACKAGE_VERSION); - fprintf(stderr, "%s\n", popplerCopyright); - fprintf(stderr, "%s\n", xpdfCopyright); - if (!printVersion) { - printUsage("pdftotext", "<PDF-file> [<text-file>]", argDesc); - } - goto err0; - } - - // read config file - globalParams = new GlobalParams(); - - if (printEnc) { - printEncodings(); - delete globalParams; - goto err0; - } - - fileName = new GooString(argv[1]); - - if (textEncName[0]) { - globalParams->setTextEncoding(textEncName); - } - if (textEOL[0]) { - if (!globalParams->setTextEOL(textEOL)) { - fprintf(stderr, "Bad '-eol' value on command line\n"); - } - } - if (noPageBreaks) { - globalParams->setTextPageBreaks(gFalse); - } - if (quiet) { - globalParams->setErrQuiet(quiet); - } - - // get mapping to output encoding - if (!(uMap = globalParams->getTextEncoding())) { - error(-1, "Couldn't get text encoding"); - delete fileName; - goto err1; - } - - // open PDF file - if (ownerPassword[0] != '\001') { - ownerPW = new GooString(ownerPassword); - } else { - ownerPW = NULL; - } - if (userPassword[0] != '\001') { - userPW = new GooString(userPassword); - } else { - userPW = NULL; - } - - if(fileName->cmp("-") != 0) { - doc = new PDFDoc(fileName, ownerPW, userPW); - } else { - Object obj; - - obj.initNull(); - doc = new PDFDoc(new FileStream(stdin, 0, gFalse, 0, &obj), ownerPW, userPW); - } - - if (userPW) { - delete userPW; - } - if (ownerPW) { - delete ownerPW; - } - if (!doc->isOk()) { - exitCode = 1; - goto err2; - } - -#ifdef ENFORCE_PERMISSIONS - // check for copy permission - if (!doc->okToCopy()) { - error(-1, "Copying of text from this document is not allowed."); - exitCode = 3; - goto err2; - } -#endif - - // construct text file name - if (argc == 3) { - textFileName = new GooString(argv[2]); - } else { - p = fileName->getCString() + fileName->getLength() - 4; - if (!strcmp(p, ".pdf") || !strcmp(p, ".PDF")) { - textFileName = new GooString(fileName->getCString(), - fileName->getLength() - 4); - } else { - textFileName = fileName->copy(); - } - textFileName->append(htmlMeta ? ".html" : ".txt"); - } - - // get page range - if (firstPage < 1) { - firstPage = 1; - } - if (lastPage < 1 || lastPage > doc->getNumPages()) { - lastPage = doc->getNumPages(); - } - - // write HTML header - if (htmlMeta) { - if (!textFileName->cmp("-")) { - f = stdout; - } else { - if (!(f = fopen(textFileName->getCString(), "wb"))) { - error(-1, "Couldn't open text file '%s'", textFileName->getCString()); - exitCode = 2; - goto err3; - } - } - fputs("<html>\n", f); - fputs("<head>\n", f); - doc->getDocInfo(&info); - if (info.isDict()) { - printInfoString(f, info.getDict(), "Title", "<title>", "</title>\n", - uMap); - printInfoString(f, info.getDict(), "Subject", - "<meta name=\"Subject\" content=\"", "\">\n", uMap); - printInfoString(f, info.getDict(), "Keywords", - "<meta name=\"Keywords\" content=\"", "\">\n", uMap); - printInfoString(f, info.getDict(), "Author", - "<meta name=\"Author\" content=\"", "\">\n", uMap); - printInfoString(f, info.getDict(), "Creator", - "<meta name=\"Creator\" content=\"", "\">\n", uMap); - printInfoString(f, info.getDict(), "Producer", - "<meta name=\"Producer\" content=\"", "\">\n", uMap); - printInfoDate(f, info.getDict(), "CreationDate", - "<meta name=\"CreationDate\" content=\"\">\n"); - printInfoDate(f, info.getDict(), "LastModifiedDate", - "<meta name=\"ModDate\" content=\"\">\n"); - } - info.free(); - fputs("</head>\n", f); - fputs("<body>\n", f); - fputs("<pre>\n", f); - if (f != stdout) { - fclose(f); - } - } - - // write text file - textOut = new TextOutputDev(textFileName->getCString(), - physLayout, rawOrder, htmlMeta); - if (textOut->isOk()) { - if ((w==0) && (h==0) && (x==0) && (y==0)) { - doc->displayPages(textOut, firstPage, lastPage, resolution, resolution, 0, - gTrue, gFalse, gFalse); - } else { - int page; - - for (page = firstPage; page <= lastPage; ++page) { - doc->displayPageSlice(textOut, page, resolution, resolution, 0, - gTrue, gFalse, gFalse, - x, y, w, h); - } - } - - } else { - delete textOut; - exitCode = 2; - goto err3; - } - delete textOut; - - // write end of HTML file - if (htmlMeta) { - if (!textFileName->cmp("-")) { - f = stdout; - } else { - if (!(f = fopen(textFileName->getCString(), "ab"))) { - error(-1, "Couldn't open text file '%s'", textFileName->getCString()); - exitCode = 2; - goto err3; - } - } - fputs("</pre>\n", f); - fputs("</body>\n", f); - fputs("</html>\n", f); - if (f != stdout) { - fclose(f); - } - } - - exitCode = 0; - - // clean up - err3: - delete textFileName; - err2: - delete doc; - uMap->decRefCnt(); - err1: - delete globalParams; - err0: - - // check for memory leaks - Object::memCheck(stderr); - gMemReport(stderr); - - return exitCode; -} - -static void printInfoString(FILE *f, Dict *infoDict, char *key, - char *text1, char *text2, UnicodeMap *uMap) { - Object obj; - GooString *s1; - GBool isUnicode; - Unicode u; - char buf[8]; - int i, n; - - if (infoDict->lookup(key, &obj)->isString()) { - fputs(text1, f); - s1 = obj.getString(); - if ((s1->getChar(0) & 0xff) == 0xfe && - (s1->getChar(1) & 0xff) == 0xff) { - isUnicode = gTrue; - i = 2; - } else { - isUnicode = gFalse; - i = 0; - } - while (i < obj.getString()->getLength()) { - if (isUnicode) { - u = ((s1->getChar(i) & 0xff) << 8) | - (s1->getChar(i+1) & 0xff); - i += 2; - } else { - u = s1->getChar(i) & 0xff; - ++i; - } - n = uMap->mapUnicode(u, buf, sizeof(buf)); - fwrite(buf, 1, n, f); - } - fputs(text2, f); - } - obj.free(); -} - -static void printInfoDate(FILE *f, Dict *infoDict, char *key, char *fmt) { - Object obj; - char *s; - - if (infoDict->lookup(key, &obj)->isString()) { - s = obj.getString()->getCString(); - if (s[0] == 'D' && s[1] == ':') { - s += 2; - } - fprintf(f, fmt, s); - } - obj.free(); -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/printencodings.cc b/Build/source/libs/poppler/poppler-0.12.4/utils/printencodings.cc deleted file mode 100644 index dec6f98fbbd..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/printencodings.cc +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2008, Albert Astals Cid <aacid@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "printencodings.h" - -#include "GlobalParams.h" -#include "goo/GooList.h" -#include "goo/GooString.h" - -void printEncodings() -{ - GooList *encNames = globalParams->getEncodingNames(); - printf("Available encodings are:\n"); - for (int i = 0; i < encNames->getLength(); ++i) { - GooString *enc = (GooString*)encNames->get(i); - printf("%s\n", enc->getCString()); - } - delete encNames; -} diff --git a/Build/source/libs/poppler/poppler-0.12.4/utils/printencodings.h b/Build/source/libs/poppler/poppler-0.12.4/utils/printencodings.h deleted file mode 100644 index 5be2819f2f1..00000000000 --- a/Build/source/libs/poppler/poppler-0.12.4/utils/printencodings.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008, Albert Astals Cid <aacid@kde.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef PRINTENCODINGS_H -#define PRINTENCODINGS_H - -void printEncodings(); - -#endif diff --git a/Build/source/libs/poppler/poppler/Makefile.in b/Build/source/libs/poppler/poppler/Makefile.in index f8708783f16..1e54ed24332 100644 --- a/Build/source/libs/poppler/poppler/Makefile.in +++ b/Build/source/libs/poppler/poppler/Makefile.in @@ -39,8 +39,7 @@ am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/aconf.h \ - $(top_builddir)/poppler-0.12.4/config.h +CONFIG_HEADER = $(top_builddir)/aconf.h $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = |