summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in9
-rw-r--r--filter/source/config/fragments/fcfg_writer.mk13
-rw-r--r--libwpd/libwpd-0.8.8-gcc46.patch11
-rw-r--r--libwpd/libwpd-0.8.8.diff908
-rw-r--r--libwpd/makefile.mk61
-rw-r--r--libwpd/prj/build.lst3
-rw-r--r--libwpd/prj/d.lst12
-rw-r--r--ooo.lst1
-rw-r--r--postprocess/packcomponents/makefile.mk2
-rwxr-xr-xscp2/source/ooo/file_library_ooo.scp2
-rw-r--r--scp2/source/ooo/makefile.mk4
-rw-r--r--set_soenv.in4
-rw-r--r--sw/prj/build.lst2
-rw-r--r--writerperfect/prj/build.lst2
-rw-r--r--writerperfect/source/filter/makefile.mk4
-rw-r--r--writerperfect/source/stream/makefile.mk4
-rw-r--r--writerperfect/source/wpdimp/makefile.mk4
-rw-r--r--writerperfect/util/makefile.mk4
18 files changed, 27 insertions, 1023 deletions
diff --git a/configure.in b/configure.in
index 947d9d75dbdb..681b39a1c5cc 100644
--- a/configure.in
+++ b/configure.in
@@ -1240,7 +1240,6 @@ if test "$enable_copyleft" != "yes"; then
DISABLE_HUNSPELL="TRUE"
DISABLE_HYPHEN="TRUE"
- DISABLE_LIBWPD="TRUE"
DISABLE_SAXON="TRUE"
BUILD_EPM="NO"
@@ -1251,7 +1250,6 @@ else
DISABLE_HUNSPELL=
DISABLE_HYPHEN=
- DISABLE_LIBWPD=
DISABLE_SAXON=
AC_MSG_RESULT([no])
@@ -1259,7 +1257,6 @@ else
fi
AC_SUBST(DISABLE_HUNSPELL)
AC_SUBST(DISABLE_HYPHEN)
-AC_SUBST(DISABLE_LIBWPD)
AC_SUBST(DISABLE_SAXON)
AC_SUBST(BUILD_EPM)
@@ -3671,22 +3668,16 @@ AC_SUBST(SYSTEM_EXPAT)
dnl ===================================================================
dnl Check for system libwpd
dnl ===================================================================
-if test -n "$enable_copyleft" -a "$enable_copyleft" != "no"; then
AC_MSG_CHECKING([which libwpd to use])
if test -n "$with_system_libwpd" -o -n "$with_system_libs" && \
test "$with_system_libwpd" != "no"; then
AC_MSG_RESULT([external])
SYSTEM_LIBWPD=YES
PKG_CHECK_MODULES( LIBWPD, libwpd-0.8 )
-else
- AC_MSG_RESULT([internal])
- SYSTEM_LIBWPD=NO
- BUILD_TYPE="$BUILD_TYPE LIBWPD"
fi
AC_SUBST(SYSTEM_LIBWPD)
AC_SUBST(LIBWPD_CFLAGS)
AC_SUBST(LIBWPD_LIBS)
-fi
dnl ===================================================================
dnl Check for system cppunit
diff --git a/filter/source/config/fragments/fcfg_writer.mk b/filter/source/config/fragments/fcfg_writer.mk
index 220788049f79..47bd1106671e 100644
--- a/filter/source/config/fragments/fcfg_writer.mk
+++ b/filter/source/config/fragments/fcfg_writer.mk
@@ -17,7 +17,6 @@ T4_WRITER = \
writer_MS_Word_97_Vorlage \
writer_Rich_Text_Format \
writer_StarOffice_XML_Writer \
- writer_WordPerfect_Document \
writer_T602_Document \
writer_Text \
writer_Text_encoded \
@@ -30,8 +29,12 @@ T4_WRITER = \
writer_MS_Word_2007_XML \
writer_MS_Word_2007_XML_Template
+.IF "$(SYSTEM_LIBWPD)" == "YES"
+T4_WRITER += writer_WordPerfect_Document
+.ENDIF
+
# -----------------------------------------------
-# count = 39
+# count = 38
F4_WRITER = \
HTML__StarWriter_ \
Lotus_1_2_3_1_0__DOS___StarWriter_ \
@@ -47,7 +50,6 @@ F4_WRITER = \
MS_Word_97_Vorlage \
Rich_Text_Format \
StarOffice_XML__Writer_ \
- WordPerfect \
T602Document \
Text \
Text__encoded_ \
@@ -60,6 +62,11 @@ F4_WRITER = \
MS_Word_2007_XML \
MS_Word_2007_XML_Template
+.IF "$(SYSTEM_LIBWPD)" == "YES"
+F4_WRITER += WordPerfect
+.ENDIF
+
+
# -----------------------------------------------
# count = 14
F4_UI_WRITER = \
diff --git a/libwpd/libwpd-0.8.8-gcc46.patch b/libwpd/libwpd-0.8.8-gcc46.patch
deleted file mode 100644
index c2be1261cea4..000000000000
--- a/libwpd/libwpd-0.8.8-gcc46.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- misc/libwpd-0.8.8/src/lib/WPXTable.h 2007-01-03 14:07:56.000000000 +0100
-+++ misc/build/libwpd-0.8.8/src/lib/WPXTable.h 2011-06-18 23:32:22.000000000 +0200
-@@ -34,6 +34,8 @@
-
- #ifndef _WPXTABLE_H
- #define _WPXTABLE_H
-+
-+#include <stddef.h>
- #include <vector>
- #include "libwpd_types.h"
-
diff --git a/libwpd/libwpd-0.8.8.diff b/libwpd/libwpd-0.8.8.diff
deleted file mode 100644
index 79840efc639c..000000000000
--- a/libwpd/libwpd-0.8.8.diff
+++ /dev/null
@@ -1,908 +0,0 @@
-*** misc/libwpd-0.8.8/configure Tue Jan 9 10:35:10 2007
---- misc/build/libwpd-0.8.8/configure Thu Feb 21 11:37:54 2008
-***************
-*** 8089,8095 ****
- ;;
-
- freebsd*)
-! objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
---- 8089,8095 ----
- ;;
-
- freebsd*)
-! objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf`
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
-***************
-*** 11808,11814 ****
- ;;
-
- freebsd*)
-! objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
---- 11808,11814 ----
- ;;
-
- freebsd*)
-! objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf`
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
-***************
-*** 14978,14984 ****
- ;;
-
- freebsd*)
-! objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
---- 14978,14984 ----
- ;;
-
- freebsd*)
-! objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf`
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
-***************
-*** 17346,17352 ****
- ;;
-
- freebsd*)
-! objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
---- 17346,17352 ----
- ;;
-
- freebsd*)
-! objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf`
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
-*** misc/libwpd-0.8.8/src/lib/WP1Heuristics.cpp Wed Jan 3 13:07:55 2007
---- misc/build/libwpd-0.8.8/src/lib/WP1Heuristics.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 27,32 ****
---- 27,33 ----
- #include "WP1Heuristics.h"
- #include "WP1FileStructure.h"
- #include "libwpd_internal.h"
-+ #include <limits>
-
- WPDConfidence WP1Heuristics::isWP1FileFormat(WPXInputStream *input, bool partialContent)
- {
-***************
-*** 74,81 ****
- // <function code>{function length}...{function length}<function code>
- // that we observed in variable length WP1 functions
-
-! long functionLength = readU32(input, true);
-! long closingFunctionLength = 0;
- WPD_DEBUG_MSG(("WP1Heuristics functionLength = 0x%.8x\n", (unsigned int)functionLength));
-
- input->seek(functionLength, WPX_SEEK_CUR);
---- 75,84 ----
- // <function code>{function length}...{function length}<function code>
- // that we observed in variable length WP1 functions
-
-! unsigned long functionLength = readU32(input, true);
-! if (functionLength > ((std::numeric_limits<uint32_t>::max)() / 2))
-! return WPD_CONFIDENCE_NONE;
-! unsigned long closingFunctionLength = 0;
- WPD_DEBUG_MSG(("WP1Heuristics functionLength = 0x%.8x\n", (unsigned int)functionLength));
-
- input->seek(functionLength, WPX_SEEK_CUR);
-*** misc/libwpd-0.8.8/src/lib/WP1Part.cpp Wed Jan 3 13:07:55 2007
---- misc/build/libwpd-0.8.8/src/lib/WP1Part.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 46,51 ****
---- 46,58 ----
- }
- else if (WP1_FUNCTION_GROUP_SIZE[readVal-0xC0] == -1)
- {
-+ // Should not happen because the heuristics would not recognize this file as a well formed WP1 file,
-+ // Nonetheless if we ever change the parts using the heuristics, this will be a check useful to have
-+ if (!WP1VariableLengthGroup::isGroupConsistent(input, readVal))
-+ {
-+ WPD_DEBUG_MSG(("WordPerfect: Consistency Check (variable length) failed; ignoring this byte\n"));
-+ return 0;
-+ }
- WPD_DEBUG_MSG(("WordPerfect: constructVariableLengthGroup\n"));
- return WP1VariableLengthGroup::constructVariableLengthGroup(input, readVal);
- }
-*** misc/libwpd-0.8.8/src/lib/WP1SetTabsGroup.cpp Fri Jan 5 10:21:16 2007
---- misc/build/libwpd-0.8.8/src/lib/WP1SetTabsGroup.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 39,45 ****
- void WP1SetTabsGroup::_readContents(WPXInputStream *input)
- {
- // Skip first the old condensed tab table
-! while (readU8(input) != 0xff)
- input->seek(2, WPX_SEEK_CUR);
-
- // Now read the new condensed tab table
---- 39,45 ----
- void WP1SetTabsGroup::_readContents(WPXInputStream *input)
- {
- // Skip first the old condensed tab table
-! while (readU8(input) != 0xff && !input->atEOS())
- input->seek(2, WPX_SEEK_CUR);
-
- // Now read the new condensed tab table
-***************
-*** 47,54 ****
- float tmpTabPosition = 0.0f;
- WPXTabStop tmpTabStop = WPXTabStop();
-
-! while ((tmpTabType = read8(input)) & 0xff != 0xff)
- {
- tmpTabPosition = (float)((double)readU16(input, true) / 72.0f);
-
- if (tmpTabType < 0)
---- 47,56 ----
- float tmpTabPosition = 0.0f;
- WPXTabStop tmpTabStop = WPXTabStop();
-
-! while (((tmpTabType = read8(input)) & 0xff) != 0xff)
- {
-+ if (input->atEOS())
-+ throw FileException();
- tmpTabPosition = (float)((double)readU16(input, true) / 72.0f);
-
- if (tmpTabType < 0)
-*** misc/libwpd-0.8.8/src/lib/WP1SubDocument.cpp Wed Jan 3 13:07:55 2007
---- misc/build/libwpd-0.8.8/src/lib/WP1SubDocument.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 26,32 ****
- #include "WP1Parser.h"
- #include "libwpd_internal.h"
-
-! WP1SubDocument::WP1SubDocument(WPXInputStream *input, const int dataSize) :
- WPXSubDocument(input, dataSize)
- {
- }
---- 26,32 ----
- #include "WP1Parser.h"
- #include "libwpd_internal.h"
-
-! WP1SubDocument::WP1SubDocument(WPXInputStream *input, const unsigned dataSize) :
- WPXSubDocument(input, dataSize)
- {
- }
-*** misc/libwpd-0.8.8/src/lib/WP1SubDocument.h Wed Jan 3 13:07:56 2007
---- misc/build/libwpd-0.8.8/src/lib/WP1SubDocument.h Thu Feb 21 11:37:54 2008
-***************
-*** 32,38 ****
- class WP1SubDocument : public WPXSubDocument
- {
- public:
-! WP1SubDocument(WPXInputStream *input, const int dataSize);
- void parse(WP1Listener *listener) const;
-
- };
---- 32,38 ----
- class WP1SubDocument : public WPXSubDocument
- {
- public:
-! WP1SubDocument(WPXInputStream *input, const unsigned dataSize);
- void parse(WP1Listener *listener) const;
-
- };
-*** misc/libwpd-0.8.8/src/lib/WP1VariableLengthGroup.cpp Wed Jan 3 13:07:55 2007
---- misc/build/libwpd-0.8.8/src/lib/WP1VariableLengthGroup.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 31,36 ****
---- 31,37 ----
- #include "WP1FootnoteEndnoteGroup.h"
- #include "WP1FileStructure.h"
- #include "libwpd_internal.h"
-+ #include <limits>
-
- WP1VariableLengthGroup::WP1VariableLengthGroup(uint8_t group)
- : m_group(group)
-***************
-*** 60,65 ****
---- 61,68 ----
- try
- {
- uint32_t size = readU32(input, true);
-+ if (size > ((std::numeric_limits<uint32_t>::max)() / 2))
-+ return false;
-
- if (input->seek(size, WPX_SEEK_CUR) || input->atEOS())
- {
-***************
-*** 94,104 ****
---- 97,114 ----
- WPD_DEBUG_MSG(("WordPerfect: handling a variable length group\n"));
-
- m_size = readU32(input, true); // the length is the number of data bytes minus 4 (ie. the function codes)
-+
-+ if (m_size + startPosition < startPosition)
-+ throw FileException();
-
- WPD_DEBUG_MSG(("WordPerfect: Read variable group header (start_position: %i, size: %i)\n", startPosition, m_size));
-
- _readContents(input);
-
-+ if ((m_size + startPosition + 4 < m_size + startPosition) ||
-+ (m_size + startPosition + 4) > ((std::numeric_limits<uint32_t>::max)() / 2))
-+ throw FileException();
-+
- input->seek(startPosition + m_size + 4, WPX_SEEK_SET);
-
- if (m_size != readU32(input, true))
-***************
-*** 112,117 ****
---- 122,130 ----
- throw FileException();
- }
-
-+ if ((m_size + startPosition + 9 < m_size + startPosition) ||
-+ (m_size + startPosition + 9) > ((std::numeric_limits<uint32_t>::max)() / 2))
-+ throw FileException();
- input->seek(startPosition + m_size + 9, WPX_SEEK_SET);
-
- }
-*** misc/libwpd-0.8.8/src/lib/WP3PageFormatGroup.cpp Fri Jan 5 10:21:13 2007
---- misc/build/libwpd-0.8.8/src/lib/WP3PageFormatGroup.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 91,98 ****
-
- m_isRelative = (readU8(input) & 0x01);
-
-! while ((tmpTabType = read8(input)) & 0xff != 0xff)
- {
- tmpTabPosition = fixedPointToFloat(readU32(input, true)) / 72.0f;
-
- if (tmpTabType < 0)
---- 91,100 ----
-
- m_isRelative = (readU8(input) & 0x01);
-
-! while (((tmpTabType = read8(input)) & 0xff) != 0xff)
- {
-+ if (input->atEOS())
-+ throw FileException();
- tmpTabPosition = fixedPointToFloat(readU32(input, true)) / 72.0f;
-
- if (tmpTabType < 0)
-*** misc/libwpd-0.8.8/src/lib/WP3SubDocument.cpp Wed Jan 3 13:07:55 2007
---- misc/build/libwpd-0.8.8/src/lib/WP3SubDocument.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 26,32 ****
- #include "WP3Parser.h"
- #include "libwpd_internal.h"
-
-! WP3SubDocument::WP3SubDocument(WPXInputStream *input, const int dataSize) :
- WPXSubDocument(input, dataSize)
- {
- }
---- 26,32 ----
- #include "WP3Parser.h"
- #include "libwpd_internal.h"
-
-! WP3SubDocument::WP3SubDocument(WPXInputStream *input, const unsigned dataSize) :
- WPXSubDocument(input, dataSize)
- {
- }
-*** misc/libwpd-0.8.8/src/lib/WP3SubDocument.h Wed Jan 3 13:07:56 2007
---- misc/build/libwpd-0.8.8/src/lib/WP3SubDocument.h Thu Feb 21 11:37:54 2008
-***************
-*** 32,38 ****
- class WP3SubDocument : public WPXSubDocument
- {
- public:
-! WP3SubDocument(WPXInputStream *input, const int dataSize);
- void parse(WP3Listener *listener) const;
-
- };
---- 32,38 ----
- class WP3SubDocument : public WPXSubDocument
- {
- public:
-! WP3SubDocument(WPXInputStream *input, const unsigned dataSize);
- void parse(WP3Listener *listener) const;
-
- };
-*** misc/libwpd-0.8.8/src/lib/WP3TablesGroup.cpp Wed Jan 3 13:07:55 2007
---- misc/build/libwpd-0.8.8/src/lib/WP3TablesGroup.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 50,59 ****
- {
- // this group can contain different kinds of data, thus we need to read
- // the contents accordingly
-! uint8_t i;
- switch (getSubGroup())
- {
- case WP3_TABLES_GROUP_TABLE_FUNCTION:
- input->seek(71, WPX_SEEK_CUR);
- m_tableMode = readU8(input);
- m_offsetFromLeftEdge = readU32(input, true);
---- 50,61 ----
- {
- // this group can contain different kinds of data, thus we need to read
- // the contents accordingly
-! uint8_t i=0;
-! long startPosition = 0;
- switch (getSubGroup())
- {
- case WP3_TABLES_GROUP_TABLE_FUNCTION:
-+ startPosition = input->tell();
- input->seek(71, WPX_SEEK_CUR);
- m_tableMode = readU8(input);
- m_offsetFromLeftEdge = readU32(input, true);
-***************
-*** 63,70 ****
---- 65,76 ----
- m_rightGutterSpacing = readU32(input, true);
- input->seek(3, WPX_SEEK_CUR);
- m_numColumns = readU8(input);
-+ if ((m_numColumns > 32) || ((input->tell() - startPosition + m_numColumns*10) > (getSize() - 4)))
-+ throw FileException();
- for (i=0; i<m_numColumns; i++)
- {
-+ if (input->atEOS())
-+ throw FileException();
- m_columnMode[i] = readU8(input);
- m_numberFormat[i] = readU8(input);
- m_columnWidth[i] = readU32(input, true);
-***************
-*** 120,126 ****
- {
- case WP3_TABLES_GROUP_TABLE_FUNCTION:
- listener->defineTable(m_tableMode, fixedPointToWPUs(m_offsetFromLeftEdge));
-! for (i=0; i<m_numColumns; i++)
- listener->addTableColumnDefinition(fixedPointToWPUs(m_columnWidth[i]), fixedPointToWPUs(m_leftGutterSpacing),
- fixedPointToWPUs(m_rightGutterSpacing), 0, LEFT);
- listener->startTable();
---- 126,132 ----
- {
- case WP3_TABLES_GROUP_TABLE_FUNCTION:
- listener->defineTable(m_tableMode, fixedPointToWPUs(m_offsetFromLeftEdge));
-! for (i=0; i<m_numColumns && i <= 32; i++)
- listener->addTableColumnDefinition(fixedPointToWPUs(m_columnWidth[i]), fixedPointToWPUs(m_leftGutterSpacing),
- fixedPointToWPUs(m_rightGutterSpacing), 0, LEFT);
- listener->startTable();
-*** misc/libwpd-0.8.8/src/lib/WP3VariableLengthGroup.cpp Wed Jan 3 13:07:55 2007
---- misc/build/libwpd-0.8.8/src/lib/WP3VariableLengthGroup.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 36,41 ****
---- 36,42 ----
- #include "WP3FootnoteEndnoteGroup.h"
- #include "WP3TablesGroup.h"
- #include "libwpd_internal.h"
-+ #include <limits>
-
- WP3VariableLengthGroup::WP3VariableLengthGroup()
- {
-***************
-*** 72,82 ****
---- 73,90 ----
- bool WP3VariableLengthGroup::isGroupConsistent(WPXInputStream *input, const uint8_t group)
- {
- uint32_t startPosition = input->tell();
-+ if (startPosition > ((std::numeric_limits<unsigned long>::max)() / 2))
-+ return false;
-
- try
- {
- uint8_t subGroup = readU8(input);
- uint16_t size = readU16(input, true);
-+ if (startPosition + size < startPosition)
-+ {
-+ input->seek(startPosition, WPX_SEEK_SET);
-+ return false;
-+ }
-
- if (input->seek((startPosition + size - 1 - input->tell()), WPX_SEEK_CUR) || input->atEOS())
- {
-*** misc/libwpd-0.8.8/src/lib/WP42SubDocument.cpp Wed Jan 3 13:07:55 2007
---- misc/build/libwpd-0.8.8/src/lib/WP42SubDocument.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 26,37 ****
- #include "WP42Parser.h"
- #include "libwpd_internal.h"
-
-! WP42SubDocument::WP42SubDocument(uint8_t * streamData, const int dataSize) :
- WPXSubDocument(streamData, dataSize)
- {
- }
-
-! WP42SubDocument::WP42SubDocument(WPXInputStream *input, const int dataSize) :
- WPXSubDocument(input, dataSize)
- {
- }
---- 26,37 ----
- #include "WP42Parser.h"
- #include "libwpd_internal.h"
-
-! WP42SubDocument::WP42SubDocument(uint8_t * streamData, const unsigned dataSize) :
- WPXSubDocument(streamData, dataSize)
- {
- }
-
-! WP42SubDocument::WP42SubDocument(WPXInputStream *input, const unsigned dataSize) :
- WPXSubDocument(input, dataSize)
- {
- }
-*** misc/libwpd-0.8.8/src/lib/WP42SubDocument.h Wed Jan 3 13:07:56 2007
---- misc/build/libwpd-0.8.8/src/lib/WP42SubDocument.h Thu Feb 21 11:37:54 2008
-***************
-*** 32,39 ****
- class WP42SubDocument : public WPXSubDocument
- {
- public:
-! WP42SubDocument(uint8_t * streamData, const int dataSize);
-! WP42SubDocument(WPXInputStream *input, const int dataSize);
- void parse(WP42Listener *listener) const;
-
- };
---- 32,39 ----
- class WP42SubDocument : public WPXSubDocument
- {
- public:
-! WP42SubDocument(uint8_t * streamData, const unsigned dataSize);
-! WP42SubDocument(WPXInputStream *input, const unsigned dataSize);
- void parse(WP42Listener *listener) const;
-
- };
-*** misc/libwpd-0.8.8/src/lib/WP5DefinitionGroup.cpp Wed Jan 3 13:07:55 2007
---- misc/build/libwpd-0.8.8/src/lib/WP5DefinitionGroup.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 26,32 ****
- #include "WP5Listener.h"
- #include "libwpd_internal.h"
-
-! WP5DefinitionGroup_DefineTablesSubGroup::WP5DefinitionGroup_DefineTablesSubGroup(WPXInputStream *input) :
- WP5VariableLengthGroup_SubGroup(),
- m_position(0),
- m_numColumns(0),
---- 26,32 ----
- #include "WP5Listener.h"
- #include "libwpd_internal.h"
-
-! WP5DefinitionGroup_DefineTablesSubGroup::WP5DefinitionGroup_DefineTablesSubGroup(WPXInputStream *input, uint16_t subGroupSize) :
- WP5VariableLengthGroup_SubGroup(),
- m_position(0),
- m_numColumns(0),
-***************
-*** 34,39 ****
---- 34,40 ----
- m_leftGutter(0),
- m_rightGutter(0)
- {
-+ long startPosition = input->tell();
- // Skip useless old values to read the old column number
- input->seek(2, WPX_SEEK_CUR);
- m_numColumns = readU16(input);
-***************
-*** 50,61 ****
---- 51,76 ----
- input->seek(10, WPX_SEEK_CUR);
- m_leftOffset = readU16(input);
- int i;
-+ if ((m_numColumns > 32) || ((input->tell() - startPosition + m_numColumns*5) > (subGroupSize - 4)))
-+ throw FileException();
- for (i=0; i < m_numColumns; i++)
-+ {
-+ if (input->atEOS())
-+ throw FileException();
- m_columnWidth[i] = readU16(input);
-+ }
- for (i=0; i < m_numColumns; i++)
-+ {
-+ if (input->atEOS())
-+ throw FileException();
- m_attributeBits[i] = readU16(input);
-+ }
- for (i=0; i < m_numColumns; i++)
-+ {
-+ if (input->atEOS())
-+ throw FileException();
- m_columnAlignment[i] = readU8(input);
-+ }
- }
-
- void WP5DefinitionGroup_DefineTablesSubGroup::parse(WP5Listener *listener)
-***************
-*** 88,94 ****
- switch(getSubGroup())
- {
- case WP5_TOP_DEFINITION_GROUP_DEFINE_TABLES:
-! m_subGroupData = new WP5DefinitionGroup_DefineTablesSubGroup(input);
- break;
- default:
- break;
---- 103,109 ----
- switch(getSubGroup())
- {
- case WP5_TOP_DEFINITION_GROUP_DEFINE_TABLES:
-! m_subGroupData = new WP5DefinitionGroup_DefineTablesSubGroup(input, getSize());
- break;
- default:
- break;
-*** misc/libwpd-0.8.8/src/lib/WP5DefinitionGroup.h Wed Jan 3 13:07:56 2007
---- misc/build/libwpd-0.8.8/src/lib/WP5DefinitionGroup.h Thu Feb 21 11:37:54 2008
-***************
-*** 31,37 ****
- class WP5DefinitionGroup_DefineTablesSubGroup : public WP5VariableLengthGroup_SubGroup
- {
- public:
-! WP5DefinitionGroup_DefineTablesSubGroup(WPXInputStream *input);
- void parse(WP5Listener *listener);
-
- private:
---- 31,37 ----
- class WP5DefinitionGroup_DefineTablesSubGroup : public WP5VariableLengthGroup_SubGroup
- {
- public:
-! WP5DefinitionGroup_DefineTablesSubGroup(WPXInputStream *input, uint16_t subGroupSize);
- void parse(WP5Listener *listener);
-
- private:
-***************
-*** 58,64 ****
-
- private:
- WP5VariableLengthGroup_SubGroup * m_subGroupData;
--
- };
-
- #endif /* WP5DEFINITIONGROUP_H */
---- 58,63 ----
-*** misc/libwpd-0.8.8/src/lib/WP5SubDocument.cpp Wed Jan 3 13:07:55 2007
---- misc/build/libwpd-0.8.8/src/lib/WP5SubDocument.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 26,32 ****
- #include "WP5Parser.h"
- #include "libwpd_internal.h"
-
-! WP5SubDocument::WP5SubDocument(WPXInputStream *input, const int dataSize) :
- WPXSubDocument(input, dataSize)
- {
- }
---- 26,32 ----
- #include "WP5Parser.h"
- #include "libwpd_internal.h"
-
-! WP5SubDocument::WP5SubDocument(WPXInputStream *input, const unsigned dataSize) :
- WPXSubDocument(input, dataSize)
- {
- }
-*** misc/libwpd-0.8.8/src/lib/WP5SubDocument.h Wed Jan 3 13:07:56 2007
---- misc/build/libwpd-0.8.8/src/lib/WP5SubDocument.h Thu Feb 21 11:37:54 2008
-***************
-*** 32,38 ****
- class WP5SubDocument : public WPXSubDocument
- {
- public:
-! WP5SubDocument(WPXInputStream *input, const int dataSize);
- void parse(WP5Listener *listener) const;
-
- };
---- 32,38 ----
- class WP5SubDocument : public WPXSubDocument
- {
- public:
-! WP5SubDocument(WPXInputStream *input, const unsigned dataSize);
- void parse(WP5Listener *listener) const;
-
- };
-*** misc/libwpd-0.8.8/src/lib/WP6ExtendedDocumentSummaryPacket.cpp Fri Jan 5 10:30:07 2007
---- misc/build/libwpd-0.8.8/src/lib/WP6ExtendedDocumentSummaryPacket.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 24,29 ****
---- 24,30 ----
- * Corel Corporation or Corel Corporation Limited."
- */
- #include <string.h>
-+ #include <limits>
-
- #include "WP6ExtendedDocumentSummaryPacket.h"
- #include "libwpd_internal.h"
-***************
-*** 47,52 ****
---- 48,55 ----
- {
- if (m_dataSize <= 0)
- return;
-+ if (m_dataSize > ((std::numeric_limits<uint32_t>::max)() / 2))
-+ m_dataSize = ((std::numeric_limits<uint32_t>::max)() / 2);
- uint8_t *streamData = new uint8_t[m_dataSize];
- for(unsigned i=0; i<(unsigned)m_dataSize; i++)
- streamData[i] = readU8(input);
-*** misc/libwpd-0.8.8/src/lib/WP6FontDescriptorPacket.cpp Thu Jan 4 11:52:35 2007
---- misc/build/libwpd-0.8.8/src/lib/WP6FontDescriptorPacket.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 23,29 ****
- * Corel Corporation or Corel Corporation Limited."
- */
- #include <string.h>
-!
- #include "WP6FontDescriptorPacket.h"
- #include "libwpd_internal.h"
-
---- 23,29 ----
- * Corel Corporation or Corel Corporation Limited."
- */
- #include <string.h>
-! #include <limits>
- #include "WP6FontDescriptorPacket.h"
- #include "libwpd_internal.h"
-
-***************
-*** 69,77 ****
-
- m_fontNameLength = readU16(input);
-
-! // TODO: re-do sanity checking
-! //if(m_fontNameLength < WP_FONT_NAME_MAX_LENGTH)
-! //{
- if (m_fontNameLength == 0)
- {
- m_fontName = new char[1];
---- 69,77 ----
-
- m_fontNameLength = readU16(input);
-
-!
-! if (m_fontNameLength > ((std::numeric_limits<uint16_t>::max)() / 2))
-! m_fontNameLength = ((std::numeric_limits<uint16_t>::max)() / 2);
- if (m_fontNameLength == 0)
- {
- m_fontName = new char[1];
-*** misc/libwpd-0.8.8/src/lib/WP6GeneralTextPacket.cpp Wed Jan 3 13:07:55 2007
---- misc/build/libwpd-0.8.8/src/lib/WP6GeneralTextPacket.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 43,48 ****
---- 43,49 ----
-
- void WP6GeneralTextPacket::_readContents(WPXInputStream *input)
- {
-+ long startPosition = input->tell();
- uint16_t numTextBlocks = readU16(input);
- input->seek(4, WPX_SEEK_CUR);
-
-***************
-*** 53,65 ****
- }
-
- uint32_t *blockSizes = new uint32_t[numTextBlocks];
-! int totalSize = 0;
-! unsigned int i;
-
- for(i=0; i<numTextBlocks; i++)
- {
- blockSizes[i] = readU32(input);
-! totalSize += blockSizes[i];
- }
-
- if (totalSize <= 0)
---- 54,71 ----
- }
-
- uint32_t *blockSizes = new uint32_t[numTextBlocks];
-! unsigned int totalSize = 0;
-! unsigned int i = 0;
-
- for(i=0; i<numTextBlocks; i++)
- {
-+ if ((input->tell() - startPosition + 4) > getDataSize() || input->atEOS())
-+ throw FileException();
- blockSizes[i] = readU32(input);
-! unsigned int newTotalSize = totalSize + blockSizes[i];
-! if (newTotalSize < totalSize)
-! throw FileException();
-! totalSize = newTotalSize;
- }
-
- if (totalSize <= 0)
-***************
-*** 73,78 ****
---- 79,86 ----
- int streamPos = 0;
- for(i=0; i<numTextBlocks; i++)
- {
-+ if ((input->tell() - startPosition + blockSizes[i]) > getDataSize() || input->atEOS())
-+ throw FileException();
- for (unsigned int j=0; j<blockSizes[i]; j++)
- {
- streamData[streamPos] = readU8(input);
-*** misc/libwpd-0.8.8/src/lib/WP6PrefixDataPacket.cpp Wed Jan 3 13:07:55 2007
---- misc/build/libwpd-0.8.8/src/lib/WP6PrefixDataPacket.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 35,41 ****
- #include "libwpd.h"
- #include "libwpd_internal.h"
-
-! WP6PrefixDataPacket::WP6PrefixDataPacket(WPXInputStream * /* input */)
- {
- }
-
---- 35,42 ----
- #include "libwpd.h"
- #include "libwpd_internal.h"
-
-! WP6PrefixDataPacket::WP6PrefixDataPacket(WPXInputStream * /* input */) :
-! m_dataSize(0)
- {
- }
-
-***************
-*** 74,80 ****
-
- void WP6PrefixDataPacket::_read(WPXInputStream *input, uint32_t dataOffset, uint32_t dataSize)
- {
-! if (!dataSize)
- return;
-
- input->seek(dataOffset, WPX_SEEK_SET);
---- 75,83 ----
-
- void WP6PrefixDataPacket::_read(WPXInputStream *input, uint32_t dataOffset, uint32_t dataSize)
- {
-! m_dataSize = dataSize;
-!
-! if (!m_dataSize)
- return;
-
- input->seek(dataOffset, WPX_SEEK_SET);
-*** misc/libwpd-0.8.8/src/lib/WP6PrefixDataPacket.h Wed Jan 3 13:07:56 2007
---- misc/build/libwpd-0.8.8/src/lib/WP6PrefixDataPacket.h Thu Feb 21 11:37:54 2008
-***************
-*** 39,50 ****
---- 39,54 ----
- virtual ~WP6PrefixDataPacket() {}
- virtual void parse(WP6Listener * /* listener */) const {}
- virtual WP6SubDocument * getSubDocument() const { return 0; }
-+ const uint32_t getDataSize() const { return m_dataSize; }
-
- static WP6PrefixDataPacket * constructPrefixDataPacket(WPXInputStream * input, WP6PrefixIndice *prefixIndice);
-
- protected:
- virtual void _readContents(WPXInputStream *input) = 0;
- void _read(WPXInputStream *input, uint32_t dataOffset, uint32_t dataSize);
-+
-+ private:
-+ uint32_t m_dataSize;
- };
-
- #endif /* WP6PREFIXDATAPACKET_H */
-*** misc/libwpd-0.8.8/src/lib/WP6SubDocument.cpp Wed Jan 3 13:07:55 2007
---- misc/build/libwpd-0.8.8/src/lib/WP6SubDocument.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 26,32 ****
- #include "WP6Parser.h"
- #include "libwpd_internal.h"
-
-! WP6SubDocument::WP6SubDocument(uint8_t * streamData, const int dataSize) :
- WPXSubDocument(streamData, dataSize)
- {
- }
---- 26,32 ----
- #include "WP6Parser.h"
- #include "libwpd_internal.h"
-
-! WP6SubDocument::WP6SubDocument(uint8_t * streamData, const unsigned dataSize) :
- WPXSubDocument(streamData, dataSize)
- {
- }
-*** misc/libwpd-0.8.8/src/lib/WP6SubDocument.h Wed Jan 3 13:07:56 2007
---- misc/build/libwpd-0.8.8/src/lib/WP6SubDocument.h Thu Feb 21 11:37:54 2008
-***************
-*** 32,38 ****
- class WP6SubDocument : public WPXSubDocument
- {
- public:
-! WP6SubDocument(uint8_t * streamData, const int dataSize);
- void parse(WP6Listener *listener) const;
- };
- #endif /* WP6SUBDOCUMENT_H */
---- 32,38 ----
- class WP6SubDocument : public WPXSubDocument
- {
- public:
-! WP6SubDocument(uint8_t * streamData, const unsigned dataSize);
- void parse(WP6Listener *listener) const;
- };
- #endif /* WP6SUBDOCUMENT_H */
-*** misc/libwpd-0.8.8/src/lib/WPXHeader.cpp Wed Jan 3 16:40:14 2007
---- misc/build/libwpd-0.8.8/src/lib/WPXHeader.cpp Thu Feb 21 11:40:46 2008
-***************
-*** 31,36 ****
---- 31,37 ----
- #include "WP61Header.h"
- #include "WPXFileStructure.h"
- #include "libwpd_internal.h"
-+ #include <string.h>
-
- WPXHeader::WPXHeader(WPXInputStream * /* input */, uint32_t documentOffset, uint8_t productType,
- uint8_t fileType, uint8_t majorVersion, uint8_t minorVersion, uint16_t documentEncryption) :
-*** misc/libwpd-0.8.8/src/lib/WPXSubDocument.cpp Wed Jan 3 13:07:56 2007
---- misc/build/libwpd-0.8.8/src/lib/WPXSubDocument.cpp Thu Feb 21 11:37:54 2008
-***************
-*** 32,49 ****
- {
- }
-
-! WPXSubDocument::WPXSubDocument(WPXInputStream *input, const int dataSize) :
- m_stream(0)
- {
- uint8_t *streamData = new uint8_t[dataSize];
- for (int i=0; i<dataSize; i++)
- {
- streamData[i] = readU8(input);
- }
- m_stream = new WPXMemoryInputStream(streamData, dataSize);
- }
-
-! WPXSubDocument::WPXSubDocument(uint8_t * streamData, const int dataSize) :
- m_stream(0)
- {
- m_stream = new WPXMemoryInputStream(streamData, dataSize);
---- 32,51 ----
- {
- }
-
-! WPXSubDocument::WPXSubDocument(WPXInputStream *input, const unsigned dataSize) :
- m_stream(0)
- {
- uint8_t *streamData = new uint8_t[dataSize];
- for (int i=0; i<dataSize; i++)
- {
-+ if (input->atEOS())
-+ throw FileException();
- streamData[i] = readU8(input);
- }
- m_stream = new WPXMemoryInputStream(streamData, dataSize);
- }
-
-! WPXSubDocument::WPXSubDocument(uint8_t * streamData, const unsigned dataSize) :
- m_stream(0)
- {
- m_stream = new WPXMemoryInputStream(streamData, dataSize);
-*** misc/libwpd-0.8.8/src/lib/WPXSubDocument.h Wed Jan 3 13:07:56 2007
---- misc/build/libwpd-0.8.8/src/lib/WPXSubDocument.h Thu Feb 21 11:37:54 2008
-***************
-*** 33,40 ****
- {
- public:
- WPXSubDocument();
-! WPXSubDocument(WPXInputStream *input, const int dataSize);
-! WPXSubDocument(uint8_t * streamData, const int dataSize);
- virtual ~WPXSubDocument();
- WPXMemoryInputStream *getStream() const { return m_stream;}
-
---- 33,40 ----
- {
- public:
- WPXSubDocument();
-! WPXSubDocument(WPXInputStream *input, const unsigned dataSize);
-! WPXSubDocument(uint8_t * streamData, const unsigned dataSize);
- virtual ~WPXSubDocument();
- WPXMemoryInputStream *getStream() const { return m_stream;}
-
-*** misc/libwpd-0.8.8/src/lib/makefile.mk Tue Nov 14 14:45:50 2006
---- misc/build/libwpd-0.8.8/src/lib/makefile.mk Thu Feb 21 11:37:54 2008
-***************
-*** 7,15 ****
- ENABLE_EXCEPTIONS=TRUE
- LIBTARGET=NO
-
-- .INCLUDE : svpre.mk
- .INCLUDE : settings.mk
-- .INCLUDE : sv.mk
-
- .IF "$(GUI)"=="WNT"
- CFLAGS+=-GR
---- 7,13 ----
diff --git a/libwpd/makefile.mk b/libwpd/makefile.mk
deleted file mode 100644
index 9048492b1c81..000000000000
--- a/libwpd/makefile.mk
+++ /dev/null
@@ -1,61 +0,0 @@
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2000, 2010 Oracle and/or its affiliates.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# This file is part of OpenOffice.org.
-#
-# OpenOffice.org is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# only, as published by the Free Software Foundation.
-#
-# OpenOffice.org 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 Lesser General Public License version 3 for more details
-# (a copy is included in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU Lesser General Public License
-# version 3 along with OpenOffice.org. If not, see
-# <http://www.openoffice.org/license.html>
-# for a copy of the LGPLv3 License.
-#
-#*************************************************************************
-
-PRJ=.
-
-PRJNAME=wpd
-TARGET=wpd
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : settings.mk
-
-# --- Files --------------------------------------------------------
-
-.IF "$(DISABLE_LIBWPD)" == ""
-
-.IF "$(SYSTEM_LIBWPD)" == "YES"
-@all:
- @echo "Using system libwpd..."
-.ENDIF
-
-TARFILE_NAME=libwpd-0.8.8
-TARFILE_MD5=cd5997284f4ba1e8dde5d1e5869fc342
-PATCH_FILES=$(TARFILE_NAME)-gcc46.patch $(TARFILE_NAME).diff
-BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS)
-BUILD_DIR=src$/lib
-
-# --- Targets ------------------------------------------------------
-
-.INCLUDE : set_ext.mk
-.INCLUDE : target.mk
-.INCLUDE : tg_ext.mk
-
-.ELSE
-all:
- @echo "libwpd disabled"
-.ENDIF
diff --git a/libwpd/prj/build.lst b/libwpd/prj/build.lst
deleted file mode 100644
index 7e5ae5ce9ce2..000000000000
--- a/libwpd/prj/build.lst
+++ /dev/null
@@ -1,3 +0,0 @@
-lw libwpd : soltools stlport NULL
-lw libwpd usr1 - all lw_mkout NULL
-lw libwpd nmake - all lw_libwpd NULL
diff --git a/libwpd/prj/d.lst b/libwpd/prj/d.lst
deleted file mode 100644
index beb6d5879bde..000000000000
--- a/libwpd/prj/d.lst
+++ /dev/null
@@ -1,12 +0,0 @@
-mkdir: %_DEST%\inc%_EXT%\libwpd
-..\%__SRC%\misc\build\libwpd*\src\lib\libwpd.h %_DEST%\inc%_EXT%\libwpd\
-..\%__SRC%\misc\build\libwpd*\src\lib\libwpd_types.h %_DEST%\inc%_EXT%\libwpd\
-..\%__SRC%\misc\build\libwpd*\src\lib\WPXStream.h %_DEST%\inc%_EXT%\libwpd\
-..\%__SRC%\misc\build\libwpd*\src\lib\WPXProperty.h %_DEST%\inc%_EXT%\libwpd\
-..\%__SRC%\misc\build\libwpd*\src\lib\WPXPropertyList.h %_DEST%\inc%_EXT%\libwpd\
-..\%__SRC%\misc\build\libwpd*\src\lib\WPXString.h %_DEST%\inc%_EXT%\libwpd\
-..\%__SRC%\misc\build\libwpd*\src\lib\WPXPropertyListVector.h %_DEST%\inc%_EXT%\libwpd\
-..\%__SRC%\misc\build\libwpd*\src\lib\WPDocument.h %_DEST%\inc%_EXT%\libwpd\
-..\%__SRC%\misc\build\libwpd*\src\lib\WPXHLListenerImpl.h %_DEST%\inc%_EXT%\libwpd\
-..\%__SRC%\lib\*.a %_DEST%\lib%_EXT%\*.a
-..\%__SRC%\slb\*.lib %_DEST%\lib%_EXT%\*.lib
diff --git a/ooo.lst b/ooo.lst
index 42ef7b66b12c..5d939dacb4a8 100644
--- a/ooo.lst
+++ b/ooo.lst
@@ -41,7 +41,6 @@ af3c3acf618de6108d65fcdc92b492e1-commons-codec-1.3-src.tar.gz
bc702168a2af16869201dbe91e46ae48-LICENSE_Python-2.6.1
c441926f3a552ed3e5b274b62e86af16-STLport-4.0.tar.gz
ca66e26082cab8bb817185a116db809b-redland-1.0.8.tar.gz
-cd5997284f4ba1e8dde5d1e5869fc342-libwpd-0.8.8.tar.gz
d35724900f6a4105550293686688bbb3-silgraphite-2.3.1.tar.gz
d70951c80dabecc2892c919ff5d07172-db-4.7.25.NC-custom.tar.gz
e0707ff896045731ff99e99799606441-README_db-4.7.25.NC-custom.txt
diff --git a/postprocess/packcomponents/makefile.mk b/postprocess/packcomponents/makefile.mk
index 74da9c5d033a..e7942ece843d 100644
--- a/postprocess/packcomponents/makefile.mk
+++ b/postprocess/packcomponents/makefile.mk
@@ -206,7 +206,7 @@ my_components += \
spell
.END
-.IF "$(DISABLE_LIBWPD)" == ""
+.IF "$(SYSTEM_LIBWPD)" == "YES"
my_components += wpft
.END
diff --git a/scp2/source/ooo/file_library_ooo.scp b/scp2/source/ooo/file_library_ooo.scp
index 2cc7a8c44c86..aebedc2df1bd 100755
--- a/scp2/source/ooo/file_library_ooo.scp
+++ b/scp2/source/ooo/file_library_ooo.scp
@@ -873,7 +873,7 @@ End
#endif
-#ifndef DISABLE_LIBWPD
+#ifdef SYSTEM_LIBWPD
STD_LIB_FILE(gid_File_Lib_Wpft,wpft)
#endif
diff --git a/scp2/source/ooo/makefile.mk b/scp2/source/ooo/makefile.mk
index 9550b58fba2a..ce9b9b725709 100644
--- a/scp2/source/ooo/makefile.mk
+++ b/scp2/source/ooo/makefile.mk
@@ -109,6 +109,10 @@ SCPDEFS+=-DENABLE_CAIRO
SCPDEFS+=-DSYSTEM_LIBXML
.ENDIF
+.IF "$(SYSTEM_LIBWPD)" == "YES"
+SCPDEFS+=-DSYSTEM_LIBWPD
+.ENDIF
+
.IF "$(SYSTEM_LIBXSLT)" == "YES"
SCPDEFS+=-DSYSTEM_LIBXSLT
.ELSE
diff --git a/set_soenv.in b/set_soenv.in
index 939958e2369d..f661bfe3905a 100644
--- a/set_soenv.in
+++ b/set_soenv.in
@@ -90,7 +90,7 @@ my ( $oldPATH, $SRC_ROOT, $SO_HOME, $JAVA_HOME, $JDK, $JAVAFLAGS, $OOO_SHELL,
$COMMON_BUILD_TOOLS, $WIN_GREP, $WIN_FIND, $WIN_LS,
$WIN_GNUCOPY, $WIN_TOUCH, $STLPORT4, $MOZILLA_VERSION, $MOZILLA_TOOLKIT, $PREBUILD_MOZAB, $MOZILLABUILD,
$PROEXT, $TARFILE_LOCATION,
- $DISABLE_SAXON, $DISABLE_HUNSPELL, $DISABLE_HYPHEN, $DISABLE_LIBWPD,
+ $DISABLE_SAXON, $DISABLE_HUNSPELL, $DISABLE_HYPHEN,
$SYSTEM_PYTHON, $SYSTEM_MOZILLA, $EPM_FLAGS);
#
#-------------------------------------------
@@ -1771,8 +1771,6 @@ if ( $platform =~ m/cygwin/ )
ToFile( "DISABLE_SAXON", "@DISABLE_SAXON@", "e" );
ToFile( "DISABLE_HUNSPELL", "@DISABLE_HUNSPELL@", "e" );
ToFile( "DISABLE_HYPHEN", "@DISABLE_HYPHEN@", "e" );
-ToFile( "DISABLE_LIBWPD", "@DISABLE_LIBWPD@", "e" );
-
ToFile( "PERL", $PERL, "e" );
ToFile( "RPM", "@RPM@", "e" );
diff --git a/sw/prj/build.lst b/sw/prj/build.lst
index 26f518fe72cd..25b4b789df26 100644
--- a/sw/prj/build.lst
+++ b/sw/prj/build.lst
@@ -1,2 +1,2 @@
-sw sw : filter L10N:l10n connectivity LIBWPD:writerperfect vbahelper svx stoc writerfilter LIBXSLT:libxslt NULL
+sw sw : filter L10N:l10n connectivity vbahelper svx stoc writerfilter LIBXSLT:libxslt NULL
sw sw\prj nmake - all sw_prj NULL
diff --git a/writerperfect/prj/build.lst b/writerperfect/prj/build.lst
index 9c1fbafc16eb..95fa539dd4ab 100644
--- a/writerperfect/prj/build.lst
+++ b/writerperfect/prj/build.lst
@@ -1,4 +1,4 @@
-wp writerperfect : LIBWPD:libwpd sot comphelper xmloff LIBXSLT:libxslt NULL
+wp writerperfect : sot comphelper xmloff LIBXSLT:libxslt NULL
wp writerperfect usr1 - all wp_mkout NULL
wp writerperfect\source\stream nmake - all wp_stream NULL
wp writerperfect\source\filter nmake - all wp_filter NULL
diff --git a/writerperfect/source/filter/makefile.mk b/writerperfect/source/filter/makefile.mk
index 3288ca17d3ed..c24a69c1177e 100644
--- a/writerperfect/source/filter/makefile.mk
+++ b/writerperfect/source/filter/makefile.mk
@@ -6,7 +6,7 @@ ENABLE_EXCEPTIONS=true
.INCLUDE : settings.mk
-.IF "$(DISABLE_LIBWPD)" == ""
+.IF "$(SYSTEM_LIBWPD)" == "YES"
.IF "$(SYSTEM_LIBWPD)" == "YES"
INCPRE+=$(LIBWPD_CFLAGS) -I..
@@ -30,5 +30,5 @@ SLOFILES= \
.ELSE
all:
- @echo "libwpd disabled"
+ @echo "no system libwpd is used..."
.ENDIF
diff --git a/writerperfect/source/stream/makefile.mk b/writerperfect/source/stream/makefile.mk
index 2b2658d04d22..79d776b207d7 100644
--- a/writerperfect/source/stream/makefile.mk
+++ b/writerperfect/source/stream/makefile.mk
@@ -6,7 +6,7 @@ ENABLE_EXCEPTIONS=true
.INCLUDE : settings.mk
-.IF "$(DISABLE_LIBWPD)" == ""
+.IF "$(SYSTEM_LIBWPD)" == "YES"
.IF "$(SYSTEM_LIBWPD)" == "YES"
INCPRE+=$(LIBWPD_CFLAGS)
@@ -21,5 +21,5 @@ SLOFILES= $(SLO)$/WPXSvStream.obj
.ELSE
all:
- @echo "libwpd disabled"
+ @echo "no system libwpd is used..."
.ENDIF
diff --git a/writerperfect/source/wpdimp/makefile.mk b/writerperfect/source/wpdimp/makefile.mk
index 763e698d8774..d3ae1bd9ddb0 100644
--- a/writerperfect/source/wpdimp/makefile.mk
+++ b/writerperfect/source/wpdimp/makefile.mk
@@ -6,7 +6,7 @@ ENABLE_EXCEPTIONS=true
.INCLUDE : settings.mk
-.IF "$(DISABLE_LIBWPD)" == ""
+.IF "$(SYSTEM_LIBWPD)" == "YES"
.IF "$(SYSTEM_LIBWPD)" == "YES"
INCPRE+=$(LIBWPD_CFLAGS) -I..
@@ -24,5 +24,5 @@ SLOFILES= \
.ELSE
all:
- @echo "libwpd disabled"
+ @echo "no system libwpd is used..."
.ENDIF
diff --git a/writerperfect/util/makefile.mk b/writerperfect/util/makefile.mk
index 239c09ba45d6..8b79f9762e69 100644
--- a/writerperfect/util/makefile.mk
+++ b/writerperfect/util/makefile.mk
@@ -4,7 +4,7 @@ TARGET=writerperfect
.INCLUDE : settings.mk
-.IF "$(DISABLE_LIBWPD)" == ""
+.IF "$(SYSTEM_LIBWPD)" == "YES"
.IF "$(GUI)"=="UNX"
.IF "$(SYSTEM_LIBWPD)" == "YES"
@@ -56,5 +56,5 @@ $(MISC)/wpft.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
.ELSE
all:
- @echo "libwpd disabled"
+ @echo "no system libpwd is used..."
.ENDIF