Lines 7-15
Link Here
|
7 |
--> |
7 |
--> |
8 |
<project name="w2l" default="help" basedir="."> |
8 |
<project name="w2l" default="help" basedir="."> |
9 |
|
9 |
|
10 |
<!-- set this property to the location of your SO/OOo installation --> |
|
|
11 |
<property name="OFFICE_HOME" location="c:/programmer/sun/staroffice 8"/> |
12 |
|
13 |
<description>writer2latex - build file</description> |
10 |
<description>writer2latex - build file</description> |
14 |
|
11 |
|
15 |
<target name="help" description="Displays usage information"> |
12 |
<target name="help" description="Displays usage information"> |
Lines 40-46
Link Here
|
40 |
<property name="target.lib" location="target/lib"/> |
37 |
<property name="target.lib" location="target/lib"/> |
41 |
<!-- classpath for the application; needs java-uno classes --> |
38 |
<!-- classpath for the application; needs java-uno classes --> |
42 |
<path id="main.class.path"> |
39 |
<path id="main.class.path"> |
43 |
<filelist dir="${OFFICE_HOME}/program/classes" |
40 |
<filelist dir="${solar.jar}" |
44 |
files="jurt.jar,unoil.jar,ridl.jar,juh.jar"/> |
41 |
files="jurt.jar,unoil.jar,ridl.jar,juh.jar"/> |
45 |
</path> |
42 |
</path> |
46 |
|
43 |
|
Lines 85-91
Link Here
|
85 |
<attribute name="Main-Class" value="writer2latex.Application"/> |
85 |
<attribute name="Main-Class" value="writer2latex.Application"/> |
86 |
<!-- OOo needs this to register the filter: --> |
86 |
<!-- OOo needs this to register the filter: --> |
87 |
<attribute name="RegistrationClassName" value="writer2latex.filter.W2LExportFilter" /> |
87 |
<attribute name="RegistrationClassName" value="writer2latex.filter.W2LExportFilter" /> |
88 |
<attribute name="Class-Path" value="jaxp.jar parser.jar"/> |
88 |
<attribute name="Class-Path" value="jaxp.jar jaxp_parser_impl.jar"/> |
89 |
</manifest> |
89 |
</manifest> |
90 |
</jar> |
90 |
</jar> |
91 |
</target> |
91 |
</target> |
92 |
-- misc/build/writer2latex05/source/writer2latex/office/ImageLoader.java 2007-04-17 09:30:42.000000000 +0200 |
92 |
++ misc/build/writer2latex05/source/writer2latex/office/ImageLoader.java 2007-11-20 21:18:32.000000000 +0100 |
Lines 107-114
Link Here
|
107 |
} |
107 |
} |
108 |
// TODO: Use another base64 decoder. This one is "nonstandard" |
108 |
// TODO: Use another base64 decoder. This one is "nonstandard" |
109 |
try { |
109 |
try { |
110 |
blob = new sun.misc.BASE64Decoder().decodeBuffer(buf.toString()); |
110 |
blob = org.apache.xerces.impl.dv.util.Base64.decode(buf.toString()); |
111 |
} catch (IOException e) { |
111 |
} catch (Exception e) { |
112 |
System.err.println("Oops - error converting base64"); |
112 |
System.err.println("Oops - error converting base64"); |
113 |
} |
113 |
} |
114 |
sMIME = MIMETypes.getMagicMIMEType(blob); |
114 |
sMIME = MIMETypes.getMagicMIMEType(blob); |