1 diff -Naur OOO_STABLE_1.orig/config_office/configure.in OOO_STABLE_1/config_office/configure.in
2 --- OOO_STABLE_1.orig/config_office/configure.in Wed Apr 24 20:54:58 2002
3 +++ OOO_STABLE_1/config_office/configure.in Wed Apr 24 20:55:18 2002
4 @@ -1073,23 +1073,23 @@
5 dnl Test for the presence of the required gpc.{c,h} files
6 dnl ===================================================================
8 -AC_MSG_CHECKING([GPC files])
9 -if test -f ../external/gpc/gpc.h; then
14 -if test -f ../external/gpc/gpc.c; then
19 +dnl AC_MSG_CHECKING([GPC files])
20 +dnl if test -f ../external/gpc/gpc.h; then
25 +dnl if test -f ../external/gpc/gpc.c; then
31 -if test "$HAVE_GPC_H" = "yes" -a "$HAVE_GPC_C" = "yes"; then
32 - AC_MSG_RESULT([GPC files found])
34 - AC_MSG_ERROR([GPC files not found])
36 +dnl if test "$HAVE_GPC_H" = "yes" -a "$HAVE_GPC_C" = "yes"; then
37 +dnl AC_MSG_RESULT([GPC files found])
39 +dnl AC_MSG_ERROR([GPC files not found])
42 dnl ===================================================================
43 dnl Setting up the environment.
44 diff -Naur OOO_STABLE_1.orig/external/prj/build.lst OOO_STABLE_1/external/prj/build.lst
45 --- OOO_STABLE_1.orig/external/prj/build.lst Fri Jan 11 19:47:18 2002
46 +++ OOO_STABLE_1/external/prj/build.lst Wed Apr 24 20:50:33 2002
48 es external\expat\rtufiles\xmltok nmake - all ex_expatxmltok NULL
49 es external\glibc nmake - all es_glibc NULL
50 es external\glibc\rtufiles nmake - all es_glibcrtu es_glibc NULL
51 -es external\gpc nmake - u es_gpc NULL
52 -es external\gpc nmake - w es_gpc NULL
53 es external\jpeg nmake - all es_jpeg NULL
54 es external\jpeg\rtufiles nmake - all es_jpegrtu es_jpeg NULL
55 es external\npsdk nmake - all es_npsdk NULL
56 diff -Naur OOO_STABLE_1.orig/external/prj/d.lst OOO_STABLE_1/external/prj/d.lst
57 --- OOO_STABLE_1.orig/external/prj/d.lst Tue Jun 26 15:07:02 2001
58 +++ OOO_STABLE_1/external/prj/d.lst Wed Apr 24 20:55:24 2002
60 mkdir: %_DEST%\inc%_EXT%\external\freetype\config
61 mkdir: %_DEST%\inc%_EXT%\external\freetype\internal
62 mkdir: %_DEST%\inc%_EXT%\external\glibc
63 -mkdir: %_DEST%\inc%_EXT%\external\gpc
64 mkdir: %_DEST%\inc%_EXT%\external\jpeg
65 mkdir: %_DEST%\inc%_EXT%\external\npsdk
66 mkdir: %_DEST%\inc%_EXT%\external\odbc
67 diff -Naur OOO_STABLE_1.orig/gpc.diff OOO_STABLE_1/gpc.diff
68 diff -Naur OOO_STABLE_1.orig/solenv/inc/libs.mk OOO_STABLE_1/solenv/inc/libs.mk
69 --- OOO_STABLE_1.orig/solenv/inc/libs.mk Fri Oct 26 17:14:41 2001
70 +++ OOO_STABLE_1/solenv/inc/libs.mk Wed Apr 24 20:50:33 2002
74 ICUI18NLIB=-licui18n -licuuc -licule -licudata
77 SALHELPERLIB=-lsalhelper$(UDK_MAJOR)$(COMID)
78 XMLSCRIPTLIB =-lxcr$(OFFICEUPD)$(DLLPOSTFIX)
79 COMPHELPERLIB=-lcomphelp2
80 diff -Naur OOO_STABLE_1.orig/vcl/source/gdi/poly2.cxx OOO_STABLE_1/vcl/source/gdi/poly2.cxx
81 --- OOO_STABLE_1.orig/vcl/source/gdi/poly2.cxx Thu Mar 22 16:20:15 2001
82 +++ OOO_STABLE_1/vcl/source/gdi/poly2.cxx Wed Apr 24 20:55:25 2002
90 - #include <external/gpc/gpc.h>
96 +// #include <external/gpc/gpc.h>
101 #include <tools/svwin.h>
102 @@ -406,107 +406,108 @@
104 void PolyPolygon::GetIntersection( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const
106 - ImplDoOperation( rPolyPoly, rResult, GPC_INT );
107 + ImplDoOperation( rPolyPoly, rResult, /* GPC_INT */ 0 );
110 // -----------------------------------------------------------------------
112 void PolyPolygon::GetUnion( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const
114 - ImplDoOperation( rPolyPoly, rResult, GPC_UNION );
115 + ImplDoOperation( rPolyPoly, rResult, /* GPC_UNION */ 0 );
118 // -----------------------------------------------------------------------
120 void PolyPolygon::GetDifference( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const
122 - ImplDoOperation( rPolyPoly, rResult, GPC_DIFF );
123 + ImplDoOperation( rPolyPoly, rResult, /* GPC_DIFF */ 0 );
126 // -----------------------------------------------------------------------
128 void PolyPolygon::GetXOR( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const
130 - ImplDoOperation( rPolyPoly, rResult, GPC_XOR );
131 + ImplDoOperation( rPolyPoly, rResult, /* GPC_XOR */ 0 );
134 // -----------------------------------------------------------------------
136 void* PolyPolygon::ImplCreateGPCPolygon() const
138 - gpc_polygon* pRet = new gpc_polygon;
140 - pRet->num_contours = 0;
142 - pRet->contour = NULL;
144 - for( USHORT i = 0, nCount = Count(); i < nCount; i++ )
146 - const Polygon& rPoly = GetObject( i );
147 - const USHORT nSize = rPoly.GetSize();
151 - gpc_vertex_list aVertexList;
152 - gpc_vertex* pVertex;
154 - aVertexList.num_vertices = nSize;
155 - aVertexList.vertex = pVertex = new gpc_vertex[ nSize ];
157 - for( USHORT nPos = 0; nPos < nSize; nPos++, pVertex++ )
159 - const Point& rPoint = rPoly[ nPos ];
160 - pVertex->x = rPoint.X();
161 - pVertex->y = rPoint.Y();
163 +// gpc_polygon* pRet = new gpc_polygon;
165 - gpc_add_contour( pRet, &aVertexList, 0 );
166 - delete[] aVertexList.vertex;
169 +// pRet->num_contours = 0;
170 +// pRet->hole = NULL;
171 +// pRet->contour = NULL;
173 +// for( USHORT i = 0, nCount = Count(); i < nCount; i++ )
175 +// const Polygon& rPoly = GetObject( i );
176 +// const USHORT nSize = rPoly.GetSize();
180 +// gpc_vertex_list aVertexList;
181 +// gpc_vertex* pVertex;
183 +// aVertexList.num_vertices = nSize;
184 +// aVertexList.vertex = pVertex = new gpc_vertex[ nSize ];
186 +// for( USHORT nPos = 0; nPos < nSize; nPos++, pVertex++ )
188 +// const Point& rPoint = rPoly[ nPos ];
189 +// pVertex->x = rPoint.X();
190 +// pVertex->y = rPoint.Y();
193 +// gpc_add_contour( pRet, &aVertexList, 0 );
194 +// delete[] aVertexList.vertex;
203 // -----------------------------------------------------------------------
205 void PolyPolygon::ImplDoOperation( const PolyPolygon& rPolyPoly, PolyPolygon& rResult, ULONG nOperation ) const
207 - gpc_polygon* pGPCPoly1 = (gpc_polygon*) ImplCreateGPCPolygon();
208 - gpc_polygon* pGPCPoly2 = (gpc_polygon*) rPolyPoly.ImplCreateGPCPolygon();
209 - gpc_polygon* pResult = new gpc_polygon;
211 - pResult->num_contours = 0;
212 - pResult->hole = NULL;
213 - pResult->contour = NULL;
214 +// gpc_polygon* pGPCPoly1 = (gpc_polygon*) ImplCreateGPCPolygon();
215 +// gpc_polygon* pGPCPoly2 = (gpc_polygon*) rPolyPoly.ImplCreateGPCPolygon();
216 +// gpc_polygon* pResult = new gpc_polygon;
218 +// pResult->num_contours = 0;
219 +// pResult->hole = NULL;
220 +// pResult->contour = NULL;
222 - gpc_polygon_clip( (gpc_op) nOperation, pGPCPoly1, pGPCPoly2, pResult );
223 +// gpc_polygon_clip( (gpc_op) nOperation, pGPCPoly1, pGPCPoly2, pResult );
227 - for( int i = 0; i < pResult->num_contours; i++ )
229 - gpc_vertex_list& rVertexList = pResult->contour[ i ];
230 - Polygon aPoly( rVertexList.num_vertices );
232 - for( int j = 0; j < rVertexList.num_vertices; j++ )
234 - Point& rPt = aPoly[ j ];
235 - rPt.X() = FRound( rVertexList.vertex[ j ].x );
236 - rPt.Y() = FRound( rVertexList.vertex[ j ].y );
239 - rResult.Insert( aPoly );
241 +// for( int i = 0; i < pResult->num_contours; i++ )
243 +// gpc_vertex_list& rVertexList = pResult->contour[ i ];
244 +// Polygon aPoly( rVertexList.num_vertices );
246 +// for( int j = 0; j < rVertexList.num_vertices; j++ )
248 +// Point& rPt = aPoly[ j ];
249 +// rPt.X() = FRound( rVertexList.vertex[ j ].x );
250 +// rPt.Y() = FRound( rVertexList.vertex[ j ].y );
253 +// rResult.Insert( aPoly );
256 - gpc_free_polygon( pGPCPoly1 );
258 +// gpc_free_polygon( pGPCPoly1 );
259 +// delete pGPCPoly1;
261 - gpc_free_polygon( pGPCPoly2 );
263 +// gpc_free_polygon( pGPCPoly2 );
264 +// delete pGPCPoly2;
266 - gpc_free_polygon( pResult );
268 +// gpc_free_polygon( pResult );
272 // -----------------------------------------------------------------------
273 diff -Naur OOO_STABLE_1.orig/vcl/util/makefile.mk OOO_STABLE_1/vcl/util/makefile.mk
274 --- OOO_STABLE_1.orig/vcl/util/makefile.mk Fri Feb 15 14:44:54 2002
275 +++ OOO_STABLE_1/vcl/util/makefile.mk Wed Apr 24 20:55:25 2002
285 .IF "$(OS)$(CPU)"=="SOLARISS"
286 SHL1VERSIONMAP=libvcl641ss.so.mapfile