summaryrefslogtreecommitdiff
path: root/libvisio
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-11-11 19:00:34 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-11-11 19:01:13 +0100
commit81afef77ecac3fa83b9d48ba6d7de14a9a02fe51 (patch)
treeeedd7b4f4f7c826fcf616ea8f70c340afedc3794 /libvisio
parent6207ae5e0bca8540a5d27ccacd300099a97665cd (diff)
Uploading libvisio-0.0.10
Diffstat (limited to 'libvisio')
-rw-r--r--libvisio/libvisio-0.0.10.patch20
-rw-r--r--libvisio/libvisio-0.0.9-valgrind.patch190
-rw-r--r--libvisio/libvisio-0.0.9.patch30
-rw-r--r--libvisio/makefile.mk7
4 files changed, 23 insertions, 224 deletions
diff --git a/libvisio/libvisio-0.0.10.patch b/libvisio/libvisio-0.0.10.patch
new file mode 100644
index 000000000000..5bd3265e310c
--- /dev/null
+++ b/libvisio/libvisio-0.0.10.patch
@@ -0,0 +1,20 @@
+--- misc/libvisio-0.0.10/src/lib/libvisio_utils.h
++++ misc/build/libvisio-0.0.10/src/lib/libvisio_utils.h
+@@ -41,17 +41,8 @@
+
+ #else
+
+-#ifdef HAVE_CONFIG_H
+-#include <config.h>
+-#endif
+-
+-#ifdef HAVE_STDINT_H
+ #include <stdint.h>
+-#endif
+-
+-#ifdef HAVE_INTTYPES_H
+ #include <inttypes.h>
+-#endif
+
+ #endif
+
diff --git a/libvisio/libvisio-0.0.9-valgrind.patch b/libvisio/libvisio-0.0.9-valgrind.patch
deleted file mode 100644
index 39442a91918c..000000000000
--- a/libvisio/libvisio-0.0.9-valgrind.patch
+++ /dev/null
@@ -1,190 +0,0 @@
---- misc/libvisio-0.0.9/src/lib/VSDXStyles.cpp 2011-10-22 15:25:55.000000000 +0200
-+++ misc/build/libvisio-0.0.9/src/lib/VSDXStyles.cpp 2011-10-23 03:18:45.209282989 +0200
-@@ -37,8 +37,151 @@
- {
- }
-
-+libvisio::VSDXStyles::VSDXStyles(const libvisio::VSDXStyles &styles) :
-+ m_lineStyles(), m_fillStyles(), m_textBlockStyles(), m_charStyles(), m_paraStyles(),
-+ m_lineStyleMasters(styles.m_lineStyleMasters), m_fillStyleMasters(styles.m_fillStyleMasters),
-+ m_textStyleMasters(styles.m_textStyleMasters)
-+{
-+ for (std::map<unsigned, VSDXFillStyle *>::const_iterator iterFillStyle = styles.m_fillStyles.begin();
-+ iterFillStyle != styles.m_fillStyles.end(); iterFillStyle++)
-+ {
-+ if (iterFillStyle->second)
-+ m_fillStyles[iterFillStyle->first] = new VSDXFillStyle(*(iterFillStyle->second));
-+ }
-+ for (std::map<unsigned, VSDXLineStyle *>::const_iterator iterLineStyle = styles.m_lineStyles.begin();
-+ iterLineStyle != styles.m_lineStyles.end(); iterLineStyle++)
-+ {
-+ if (iterLineStyle->second)
-+ m_lineStyles[iterLineStyle->first] = new VSDXLineStyle(*(iterLineStyle->second));
-+ }
-+ for (std::map<unsigned, VSDXTextBlockStyle *>::const_iterator iterTextBlockStyle = styles.m_textBlockStyles.begin();
-+ iterTextBlockStyle != styles.m_textBlockStyles.end(); iterTextBlockStyle++)
-+ {
-+ if (iterTextBlockStyle->second)
-+ m_textBlockStyles[iterTextBlockStyle->first] = new VSDXTextBlockStyle(*(iterTextBlockStyle->second));
-+ }
-+ for (std::map<unsigned, VSDXCharStyle *>::const_iterator iterCharStyle = styles.m_charStyles.begin();
-+ iterCharStyle != styles.m_charStyles.end(); iterCharStyle++)
-+ {
-+ if (iterCharStyle->second)
-+ m_charStyles[iterCharStyle->first] = new VSDXCharStyle(*(iterCharStyle->second));
-+ }
-+ for (std::map<unsigned, VSDXParaStyle *>::const_iterator iterParaStyle = styles.m_paraStyles.begin();
-+ iterParaStyle != styles.m_paraStyles.end(); iterParaStyle++)
-+ {
-+ if (iterParaStyle->second)
-+ m_paraStyles[iterParaStyle->first] = new VSDXParaStyle(*(iterParaStyle->second));
-+ }
-+}
-+
- libvisio::VSDXStyles::~VSDXStyles()
- {
-+ for (std::map<unsigned, VSDXFillStyle *>::iterator iterFillStyle = m_fillStyles.begin();
-+ iterFillStyle != m_fillStyles.end(); iterFillStyle++)
-+ {
-+ if (iterFillStyle->second)
-+ delete iterFillStyle->second;
-+ }
-+ for (std::map<unsigned, VSDXLineStyle *>::iterator iterLineStyle = m_lineStyles.begin();
-+ iterLineStyle != m_lineStyles.end(); iterLineStyle++)
-+ {
-+ if (iterLineStyle->second)
-+ delete iterLineStyle->second;
-+ }
-+ for (std::map<unsigned, VSDXTextBlockStyle *>::iterator iterTextBlockStyle = m_textBlockStyles.begin();
-+ iterTextBlockStyle != m_textBlockStyles.end(); iterTextBlockStyle++)
-+ {
-+ if (iterTextBlockStyle->second)
-+ delete (iterTextBlockStyle->second);
-+ }
-+ for (std::map<unsigned, VSDXCharStyle *>::iterator iterCharStyle = m_charStyles.begin();
-+ iterCharStyle != m_charStyles.end(); iterCharStyle++)
-+ {
-+ if (iterCharStyle->second)
-+ delete (iterCharStyle->second);
-+ }
-+ for (std::map<unsigned, VSDXParaStyle *>::iterator iterParaStyle = m_paraStyles.begin();
-+ iterParaStyle != m_paraStyles.end(); iterParaStyle++)
-+ {
-+ if (iterParaStyle->second)
-+ delete iterParaStyle->second;
-+ }
-+}
-+
-+libvisio::VSDXStyles & libvisio::VSDXStyles::operator=(const libvisio::VSDXStyles &styles)
-+{
-+ for (std::map<unsigned, VSDXFillStyle *>::iterator iterFillStyle = m_fillStyles.begin();
-+ iterFillStyle != m_fillStyles.end(); iterFillStyle++)
-+ {
-+ if (iterFillStyle->second)
-+ delete iterFillStyle->second;
-+ }
-+ m_fillStyles.clear();
-+ for (std::map<unsigned, VSDXLineStyle *>::iterator iterLineStyle = m_lineStyles.begin();
-+ iterLineStyle != m_lineStyles.end(); iterLineStyle++)
-+ {
-+ if (iterLineStyle->second)
-+ delete iterLineStyle->second;
-+ }
-+ m_lineStyles.clear();
-+ for (std::map<unsigned, VSDXTextBlockStyle *>::iterator iterTextBlockStyle = m_textBlockStyles.begin();
-+ iterTextBlockStyle != m_textBlockStyles.end(); iterTextBlockStyle++)
-+ {
-+ if (iterTextBlockStyle->second)
-+ delete (iterTextBlockStyle->second);
-+ }
-+ m_textBlockStyles.clear();
-+ for (std::map<unsigned, VSDXCharStyle *>::iterator iterCharStyle = m_charStyles.begin();
-+ iterCharStyle != m_charStyles.end(); iterCharStyle++)
-+ {
-+ if (iterCharStyle->second)
-+ delete (iterCharStyle->second);
-+ }
-+ m_charStyles.clear();
-+ for (std::map<unsigned, VSDXParaStyle *>::iterator iterParaStyle = m_paraStyles.begin();
-+ iterParaStyle != m_paraStyles.end(); iterParaStyle++)
-+ {
-+ if (iterParaStyle->second)
-+ delete iterParaStyle->second;
-+ }
-+ m_paraStyles.clear();
-+
-+ for (std::map<unsigned, VSDXFillStyle *>::const_iterator iterFillStyle = styles.m_fillStyles.begin();
-+ iterFillStyle != styles.m_fillStyles.end(); iterFillStyle++)
-+ {
-+ if (iterFillStyle->second)
-+ m_fillStyles[iterFillStyle->first] = new VSDXFillStyle(*(iterFillStyle->second));
-+ }
-+ for (std::map<unsigned, VSDXLineStyle *>::const_iterator iterLineStyle = styles.m_lineStyles.begin();
-+ iterLineStyle != styles.m_lineStyles.end(); iterLineStyle++)
-+ {
-+ if (iterLineStyle->second)
-+ m_lineStyles[iterLineStyle->first] = new VSDXLineStyle(*(iterLineStyle->second));
-+ }
-+ for (std::map<unsigned, VSDXTextBlockStyle *>::const_iterator iterTextBlockStyle = styles.m_textBlockStyles.begin();
-+ iterTextBlockStyle != styles.m_textBlockStyles.end(); iterTextBlockStyle++)
-+ {
-+ if (iterTextBlockStyle->second)
-+ m_textBlockStyles[iterTextBlockStyle->first] = new VSDXTextBlockStyle(*(iterTextBlockStyle->second));
-+ }
-+ for (std::map<unsigned, VSDXCharStyle *>::const_iterator iterCharStyle = styles.m_charStyles.begin();
-+ iterCharStyle != styles.m_charStyles.end(); iterCharStyle++)
-+ {
-+ if (iterCharStyle->second)
-+ m_charStyles[iterCharStyle->first] = new VSDXCharStyle(*(iterCharStyle->second));
-+ }
-+ for (std::map<unsigned, VSDXParaStyle *>::const_iterator iterParaStyle = styles.m_paraStyles.begin();
-+ iterParaStyle != styles.m_paraStyles.end(); iterParaStyle++)
-+ {
-+ if (iterParaStyle->second)
-+ m_paraStyles[iterParaStyle->first] = new VSDXParaStyle(*(iterParaStyle->second));
-+ }
-+
-+ m_lineStyleMasters = styles.m_lineStyleMasters;
-+ m_fillStyleMasters = styles.m_fillStyleMasters;
-+ m_textStyleMasters = styles.m_textStyleMasters;
-+
-+ return *this;
- }
-
- void libvisio::VSDXStyles::addLineStyle(unsigned lineStyleIndex, VSDXLineStyle *lineStyle)
---- misc/libvisio-0.0.9/src/lib/VSDXStyles.h 2011-10-21 17:53:42.000000000 +0200
-+++ misc/build/libvisio-0.0.9/src/lib/VSDXStyles.h 2011-10-23 03:18:45.209282989 +0200
-@@ -119,6 +119,7 @@
- superscript(super),
- subscript(sub),
- face(f) {}
-+ ~VSDXCharStyle() {}
- unsigned charCount;
- unsigned short faceID;
- Colour colour;
-@@ -158,6 +159,7 @@
- spBefore(sb),
- spAfter(sa),
- align(a) {}
-+ ~VSDXParaStyle() {}
- unsigned charCount;
- double indFirst;
- double indLeft;
-@@ -190,6 +192,7 @@
- textBkgndColour(bgClr),
- defaultTabStop(defTab),
- textDirection(td) {}
-+ ~VSDXTextBlockStyle() {}
- double leftMargin;
- double rightMargin;
- double topMargin;
-@@ -205,7 +208,9 @@
- {
- public:
- VSDXStyles();
-+ VSDXStyles(const VSDXStyles &styles);
- ~VSDXStyles();
-+ VSDXStyles &operator=(const VSDXStyles &styles);
- void addLineStyle(unsigned lineStyleIndex, VSDXLineStyle *lineStyle);
- void addFillStyle(unsigned fillStyleIndex, VSDXFillStyle *fillStyle);
- void addTextBlockStyle(unsigned textStyleIndex, VSDXTextBlockStyle *textBlockStyle);
diff --git a/libvisio/libvisio-0.0.9.patch b/libvisio/libvisio-0.0.9.patch
deleted file mode 100644
index ae903df47de4..000000000000
--- a/libvisio/libvisio-0.0.9.patch
+++ /dev/null
@@ -1,30 +0,0 @@
---- misc/libvisio-0.0.9/src/lib/libvisio_utils.h
-+++ misc/build/libvisio-0.0.9/src/lib/libvisio_utils.h
-@@ -41,17 +41,8 @@
-
- #else
-
--#ifdef HAVE_CONFIG_H
--#include <config.h>
--#endif
--
--#ifdef HAVE_STDINT_H
- #include <stdint.h>
--#endif
--
--#ifdef HAVE_INTTYPES_H
- #include <inttypes.h>
--#endif
-
- #endif
-
---- misc/libvisio-0.0.9/src/lib/makefile.mk 2011-10-16 21:23:32.000000000 +0200
-+++ misc/build/libvisio-0.0.9/src/lib/makefile.mk 2011-10-23 09:50:39.110165001 +0200
-@@ -41,6 +41,7 @@
- $(SLO)$/VSDXGeometryList.obj \
- $(SLO)$/VSDXOutputElementList.obj \
- $(SLO)$/VSDXPages.obj \
-+ $(SLO)$/VSDXParagraphList.obj \
- $(SLO)$/VSDXParser.obj \
- $(SLO)$/VSDXShapeList.obj \
- $(SLO)$/VSDXStencils.obj \
diff --git a/libvisio/makefile.mk b/libvisio/makefile.mk
index a10a5bd99307..a9b20c250c72 100644
--- a/libvisio/makefile.mk
+++ b/libvisio/makefile.mk
@@ -54,12 +54,11 @@ INCPRE+=$(WPG_CFLAGS)
INCPRE+=$(SOLARVER)$/$(UPD)$/$(INPATH)$/inc$/libwpg
.ENDIF
-TARFILE_NAME=libvisio-0.0.9
-TARFILE_MD5=6b44e084c84c721423bf855ebe674e76
+TARFILE_NAME=libvisio-0.0.10
+TARFILE_MD5=8f107ffb3fc9d9b920b7bbd0bc79c7e8
PATCH_FILES=\
- libvisio-0.0.9-valgrind.patch \
- libvisio-0.0.9.patch
+ libvisio-0.0.10.patch
BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS)