summaryrefslogtreecommitdiff
path: root/libwps
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-05-03 11:06:36 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-05-03 11:08:44 +0200
commit1457ace0d08188ab9151152902ae65627793a2c4 (patch)
tree569eec07302dcec43c6139d56a8f864f03db8832 /libwps
parentd650ba3a6c91e2b271e19cb08cb825bebe3446f0 (diff)
Uploading updated versions of libwpd and libwps
libwps: some conversion improvements and fixing of leaks libwpd: improve loading of corrupted WP6+ documents, conversion of Mac 2-byte script characters + miscellaneous improvement of WP charsets to unicode conversion
Diffstat (limited to 'libwps')
-rw-r--r--libwps/libwps-0.1.1.diff93
-rw-r--r--libwps/libwps-0.2.0.patch11
-rw-r--r--libwps/makefile.mk6
3 files changed, 2 insertions, 108 deletions
diff --git a/libwps/libwps-0.1.1.diff b/libwps/libwps-0.1.1.diff
deleted file mode 100644
index 6977cf33ceec..000000000000
--- a/libwps/libwps-0.1.1.diff
+++ /dev/null
@@ -1,93 +0,0 @@
-*** misc/libwps-0.1.1/src/lib/WPSListener.h Thu Nov 29 20:58:57 2007
---- misc/build/libwps-0.1.1/src/lib/WPSListener.h Sun Dec 2 20:54:35 2007
-***************
-*** 39,45 ****
- virtual ~WPSListener();
-
- bool isUndoOn() { return m_isUndoOn; }
-! void setUndoOn(bool isUndoOn) { m_isUndoOn = isUndoOn; }
-
- std::list<WPSPageSpan> &m_pageList;
-
---- 39,45 ----
- virtual ~WPSListener();
-
- bool isUndoOn() { return m_isUndoOn; }
-! void setUndoOn(bool undoOn) { m_isUndoOn = undoOn; }
-
- std::list<WPSPageSpan> &m_pageList;
-
-*** misc/libwps-0.1.1/src/lib/WPSContentListener.cpp Thu Nov 29 20:58:57 2007
---- misc/build/libwps-0.1.1/src/lib/WPSContentListener.cpp Sun Dec 2 21:09:11 2007
-***************
-*** 36,62 ****
- #define LIBWPS_MAX std::max
- #endif
-
-- namespace {
--
-- WPXString doubleToString(const double value)
-- {
-- WPXString tempString;
-- tempString.sprintf("%.4f", value);
-- std::string decimalPoint(localeconv()->decimal_point);
-- if ((decimalPoint.size() == 0) || (decimalPoint == "."))
-- return tempString;
-- std::string stringValue(tempString.cstr());
-- if (!stringValue.empty())
-- {
-- std::string::size_type pos;
-- while ((pos = stringValue.find(decimalPoint)) != std::string::npos)
-- stringValue.replace(pos,decimalPoint.size(),".");
-- }
-- return WPXString(stringValue.c_str());
-- }
--
-- } // namespace
--
- _WPSContentParsingState::_WPSContentParsingState() :
- m_textAttributeBits(0),
- m_fontSize(12.0f/*WP6_DEFAULT_FONT_SIZE*/), // FIXME ME!!!!!!!!!!!!!!!!!!! HELP WP6_DEFAULT_FONT_SIZE
---- 36,41 ----
-***************
-*** 578,585 ****
- _closePageSpan();
- }
-
-- const float WPS_DEFAULT_SUPER_SUB_SCRIPT = 58.0f;
--
- void WPSContentListener::_openSpan()
- {
- if (!m_ps->m_isParagraphOpened && !m_ps->m_isListElementOpened)
---- 557,562 ----
-***************
-*** 622,639 ****
- }
-
- WPXPropertyList propList;
-! if (attributeBits & WPS_SUPERSCRIPT_BIT) {
-! WPXString sSuperScript("super ");
-! sSuperScript.append(doubleToString(WPS_DEFAULT_SUPER_SUB_SCRIPT));
-! sSuperScript.append("%");
-! propList.insert("style:text-position", sSuperScript);
-! }
-! else if (attributeBits & WPS_SUBSCRIPT_BIT) {
-! WPXString sSubScript("sub ");
-! sSubScript.append(doubleToString(WPS_DEFAULT_SUPER_SUB_SCRIPT));
-! sSubScript.append("%");
-! propList.insert("style:text-position", sSubScript);
-! }
- if (attributeBits & WPS_ITALICS_BIT)
- propList.insert("fo:font-style", "italic");
- if (attributeBits & WPS_BOLD_BIT)
---- 599,608 ----
- }
-
- WPXPropertyList propList;
-! if (m_ps->m_textAttributeBits & WPS_SUPERSCRIPT_BIT)
-! propList.insert("style:text-position", "super 58%");
-! else if (m_ps->m_textAttributeBits & WPS_SUBSCRIPT_BIT)
-! propList.insert("style:text-position", "sub 58%");
- if (attributeBits & WPS_ITALICS_BIT)
- propList.insert("fo:font-style", "italic");
- if (attributeBits & WPS_BOLD_BIT)
diff --git a/libwps/libwps-0.2.0.patch b/libwps/libwps-0.2.0.patch
deleted file mode 100644
index 6af2989b70af..000000000000
--- a/libwps/libwps-0.2.0.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -up misc/build/libwps-0.2.0/src/lib/libwps_internal.h.old misc/build/libwps-0.2.0/src/lib/libwps_internal.h
---- misc/build/libwps-0.2.0/src/lib/libwps_internal.h.old 2010-11-17 20:47:23.288507198 +0100
-+++ misc/build/libwps-0.2.0/src/lib/libwps_internal.h 2010-11-17 20:47:26.596839807 +0100
-@@ -23,6 +23,7 @@
- #define LIBWPS_INTERNAL_H
- #ifdef DEBUG
- #include <bitset>
-+#include <stdio.h>
- #endif
- #include <libwpd-stream/libwpd-stream.h>
- #include <libwpd/libwpd.h>
diff --git a/libwps/makefile.mk b/libwps/makefile.mk
index 3f9667bf008f..7d0ec2db727c 100644
--- a/libwps/makefile.mk
+++ b/libwps/makefile.mk
@@ -49,13 +49,11 @@ INCPRE+=$(SOLARVER)$/$(UPD)$/$(INPATH)$/inc$/libwpd
INCPRE+=$(SOLARVER)$/$(UPD)$/$(INPATH)$/inc$/libwpd-stream
.ENDIF
-TARFILE_NAME=libwps-0.2.0
-TARFILE_MD5=9e436bff44c60dc8b97cba0c7fc11a5c
+TARFILE_NAME=libwps-0.2.1
+TARFILE_MD5=83d4029aebf290c0a9a8fee9c99638d3
BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS)
BUILD_DIR=src/lib
-PATCH_FILES=libwps-0.2.0.patch
-
# --- Targets ------------------------------------------------------
.INCLUDE : set_ext.mk