1 'encoding UTF-8 Do not remove or change this line!
2 '**************************************************************************
3 '* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 '* Copyright 2008 by Sun Microsystems, Inc.
7 '* OpenOffice.org - a multi-platform office productivity suite
9 '* $RCSfile: sxd7_01.inc,v $
13 '* last change: $Author: rt $ $Date: 2008-07-11 07:32:19 $
15 '* This file is part of OpenOffice.org.
17 '* OpenOffice.org is free software: you can redistribute it and/or modify
18 '* it under the terms of the GNU Lesser General Public License version 3
19 '* only, as published by the Free Software Foundation.
21 '* OpenOffice.org is distributed in the hope that it will be useful,
22 '* but WITHOUT ANY WARRANTY; without even the implied warranty of
23 '* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 '* GNU Lesser General Public License version 3 for more details
25 '* (a copy is included in the LICENSE file that accompanied this code).
27 '* You should have received a copy of the GNU Lesser General Public License
28 '* version 3 along with OpenOffice.org. If not, see
29 '* <http://www.openoffice.org/license.html>
30 '* for a copy of the LGPLv3 License.
32 '/************************************************************************
34 '* owner : wolfram.garten@sun.com
36 '* short description : XML Draw Include File
38 '\***********************************************************************************
39 Dim Isliste(250) as string
40 Dim OutputPath as string
43 printlog "------------------- sxd_01.inc ---------------------"
44 printlog "----------------------------------------------------"
45 call talien_attributes
46 printlog "---------------------- C J K -----------------------"
51 printlog "----------------------------------------------------"
65 '-------------------------------------------------------------------------
67 testcase talien_attributes
69 Dim AttrNameInDOM as string
70 Dim AttributeSearch(5) as string
71 Dim AttributeValue(5) as string
72 printlog "+- Impress: alien.sxd"
73 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\graphics\ooo10\alien.sxd"))
74 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\draw\level1\alien.sxd") , "StarOffice XML (Draw)") then
76 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\draw\level1\alien.sxd") , gOfficePath & ConvertPath("user\work\xml\draw\level1\alien\") )
77 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\alien\styles.xml")) = FALSE then
78 warnlog "XML-file 'styles.xml' not well formed!"
80 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\alien\meta.xml")) = FALSE then
81 warnlog "XML-file 'meta.xml' not well formed!"
83 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\alien\content.xml")) = FALSE then
84 warnlog "XML-file 'content.xml' not well formed!"
86 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\draw\level1\alien.sxd")
90 SAXReadFile(gOfficePath & ConvertPath("user\work\xml\draw\level1\alien\content.xml"))
91 printlog "-----------------"
92 printlog "Hidden Namespaces"
93 printlog "-----------------"
94 '/// <u><b>content.xml</u></b>
95 '/// <u>Hidden attributes in namespaces</u>
96 '///+ Searching for: xmlns:alien="http://openoffice.org/2000/alien"
97 '-------------------------------------------------------------------------
98 AttributeSearch(1) = "xmlns:alien"
99 AttributeValue(1) = "http://openoffice.org/2000/alien"
100 printlog "++ Feature(s) to be searched for:"
102 '-------------------------------------------------------------------------
103 SAXSeekElement("office:document-content")
104 printlog " +- " & AttributeSearch(1)
105 if SAXGetAttributeValue(AttributeSearch(1)) <> AttributeValue(1) then
106 warnlog "Hidden attributes (in namespace): " & AttributeSearch(1) & " is not " & AttributeValue(1) & "!"
110 '/// <u>hidden attributes</u>
111 '///+<ol><li><b>in a drawing-page style</b></li>
112 '///+<li><b>in a graphics style</b></li>
113 '///+<li><b>in a paragraph style (twice)</b></li>
114 '///+<li><b>in a text style</b></li></ol>
115 '///+ Searching for: alien:key="page"
116 '///+ Searching for: alien:key="shape"
117 '///+ Searching for: alien:key="para"
118 '///+ Searching for: alien:key="shape-text"
119 '///+ Searching for: alien:key="text"
120 AttributeSearch(1) = "alien:key"
121 AttributeValue(1) = "page"
123 AttributeSearch(2) = "alien:key"
124 AttributeValue(2) = "shape"
126 AttributeSearch(3) = "alien:key"
127 AttributeValue(3) = "para"
129 AttributeSearch(4) = "alien:key"
130 AttributeValue(4) = "shape-text"
132 AttributeSearch(5) = "alien:key"
133 AttributeValue(5) = "text"
134 '-------------------------------------------------------------------------
135 printlog "++ Feature(s) to be searched for:"
137 '-------------------------------------------------------------------------
140 printlog "-----------------------------------------"
141 printlog "Hidden attributes in a drawing-page style"
142 printlog "-----------------------------------------"
145 printlog "-------------------------------------"
146 printlog "Hidden attributes in a graphics style"
147 printlog "-------------------------------------"
149 if i = 3 or i = 4 then
150 printlog "-------------------------------------------"
151 printlog "Hidden attributes in a paragraph style (" & i-2 & ")"
152 printlog "-------------------------------------------"
155 printlog "---------------------------------"
156 printlog "Hidden attributes in a text style"
157 printlog "---------------------------------"
159 'The hidden attributes are in a known sequence included,
160 'so the same routine will be used for different styles!
162 SAXSeekElement("office:document-content")
163 SAXSeekElement("office:automatic-styles")
164 SAXSeekElement("style:style" , i )
165 AttrNameInDOM = SAXGetAttributeValue("style:name")
166 printlog " + Style name (" & i & "): " & AttrNameInDOM
168 SAXSeekElement("style:properties")
169 printlog " +- " & AttributeSearch(i)
170 if SAXGetAttributeValue(AttributeSearch(i)) <> AttributeValue(i) then
171 'i = <nr> means <nr>'th style:style in DOM tree
173 warnlog "Hidden attributes (in a drawing-page style): " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
176 warnlog "Hidden attributes (in a graphics style): " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
178 if i = 3 or i = 4 then
179 warnlog "Hidden attributes (in a paragraph style): " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
182 warnlog "Hidden attributes (in a text style): " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
188 '-------------------------------------------------------------------------
190 SAXReadFile(gOfficePath & ConvertPath("user\work\xml\draw\level1\alien\styles.xml"))
191 '-------------------------------------------------------------------------
192 printlog " -------------------"
193 printlog " s t y l e s . x m l"
194 printlog " -------------------"
195 printlog "-----------------"
196 printlog "Hidden Namespaces"
197 printlog "-----------------"
198 '/// <u><b>styles.xml</u></b>
199 '/// <u>Hidden attributes in namespaces</u>
200 '///+ Searching for: xmlns:alien="http://openoffice.org/2000/alien"
201 '-------------------------------------------------------------------------
202 AttributeSearch(1) = "xmlns:alien"
203 AttributeValue(1) = "http://openoffice.org/2000/alien"
204 printlog "++ Feature(s) to be searched for:"
206 '-------------------------------------------------------------------------
207 SAXSeekElement("office:document-styles")
208 printlog " +- " & AttributeSearch(1)
209 if SAXGetAttributeValue(AttributeSearch(1)) <> AttributeValue(1) then
210 warnlog "Hidden attributes (in namespace): " & AttributeSearch(1) & " is not " & AttributeValue(1) & "!"
214 printlog "----------------------------------------"
215 printlog "Hidden attributes in a master-page style"
216 printlog "----------------------------------------"
217 '-------------------------------------------------------------------------
218 '/// <u>hidden attributes</u>
219 '///+<ol><li><b>in a master-page style</b></li></ol>
220 '///+ Searching for: alien:key="master-page"
221 '-------------------------------------------------------------------------
222 AttributeSearch(1) = "alien:key"
223 AttributeValue(1) = "master-page"
224 printlog "++ Feature(s) to be searched for:"
226 '-------------------------------------------------------------------------
227 SAXSeekElement("office:document-styles")
228 SAXSeekElement("office:automatic-styles")
229 SAXSeekElement("style:style")
230 SAXSeekElement("style:properties")
231 printlog " +- " & AttributeSearch(1)
232 if SAXGetAttributeValue(AttributeSearch(1)) <> AttributeValue(1) then
233 warnlog "Hidden attributes (in master-page style): " & AttributeSearch(1) & " is not " & AttributeValue(1) & "!"
236 '-------------------------------------------------------------------------
244 '-------------------------------------------------------------------------
247 printlog "+- Impress: chin.sxd"
248 '/// Opening chin.sxd which includes chinese characters. ///
249 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\graphics\ooo10\chin.sxd"))
250 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\draw\level1\chin.sxd") , "StarOffice XML (Draw)") then
253 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\draw\level1\chin.sxd") , gOfficePath & ConvertPath("user\work\xml\draw\level1\chin\") )
254 '/// Checking well formness of meta.xml, styles.xml and content.xml. ///
255 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\chin\styles.xml")) = FALSE then
256 warnlog "XML-file 'styles.xml' not well formed!"
258 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\chin\meta.xml")) = FALSE then
259 warnlog "XML-file 'meta.xml' not well formed!"
261 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\chin\content.xml")) = FALSE then
262 warnlog "XML-file 'content.xml' not well formed!"
264 '/// Opening the exported document again (GPF check). ///
265 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\draw\level1\chin.sxd")
267 '/// Closing document. ///
276 '-------------------------------------------------------------------------
279 printlog "+- Impress: japan.sxd"
280 '/// Opening japan.sxd which includes japanese characters. ///
281 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\graphics\ooo10\japan.sxd"))
282 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\draw\level1\japan.sxd") , "StarOffice XML (Draw)") then
285 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\draw\level1\japan.sxd") , gOfficePath & ConvertPath("user\work\xml\draw\level1\japan\") )
286 '/// Checking well formness of meta.xml, styles.xml and content.xml. ///
287 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\japan\styles.xml")) = FALSE then
288 warnlog "XML-file 'styles.xml' not well formed!"
290 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\japan\meta.xml")) = FALSE then
291 warnlog "XML-file 'meta.xml' not well formed!"
293 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\japan\content.xml")) = FALSE then
294 warnlog "XML-file 'content.xml' not well formed!"
296 '/// Opening the exported document again (GPF check). ///
297 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\draw\level1\japan.sxd")
300 '/// Closing document. ///
308 '-------------------------------------------------------------------------
311 printlog "+- Impress: korean.sxd"
312 '/// Opening korean.sxd which includes korean characters. ///
313 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\graphics\ooo10\korean.sxd"))
314 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\draw\level1\korean.sxd") , "StarOffice XML (Draw)") then
317 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\draw\level1\korean.sxd") , gOfficePath & ConvertPath("user\work\xml\draw\level1\korean\") )
318 '/// Checking well formness of meta.xml, styles.xml and content.xml. ///
319 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\korean\styles.xml")) = FALSE then
320 warnlog "XML-file 'styles.xml' not well formed!"
322 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\korean\meta.xml")) = FALSE then
323 warnlog "XML-file 'meta.xml' not well formed!"
325 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\korean\content.xml")) = FALSE then
326 warnlog "XML-file 'content.xml' not well formed!"
328 '/// Opening the exported document again (GPF check). ///
329 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\draw\level1\korean.sxd")
331 '/// Closing document. ///
340 '-------------------------------------------------------------------------
343 printlog "+- Impress: trad_chin.sxd"
344 '/// Opening trad_chin.sxd which includes traditional chinese characters. ///
345 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\graphics\ooo10\trad_chin.sxd"))
347 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\draw\level1\trad_chin.sxd") , "StarOffice XML (Draw)") then
349 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\draw\level1\trad_chin.sxd") , gOfficePath & ConvertPath("user\work\xml\draw\level1\trad_chin\") )
350 '/// Checking well formness of meta.xml, styles.xml and content.xml. ///
351 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\trad_chin\styles.xml")) = FALSE then
352 warnlog "XML-file 'styles.xml' not well formed!"
354 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\trad_chin\meta.xml")) = FALSE then
355 warnlog "XML-file 'meta.xml' not well formed!"
357 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\trad_chin\content.xml")) = FALSE then
358 warnlog "XML-file 'content.xml' not well formed!"
360 '/// Opening the exported document again (GPF check). ///
361 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\draw\level1\trad_chin.sxd")
363 '/// Closing document. ///
372 '-------------------------------------------------------------------------
375 printlog "+- Draw: 18092.sda"
377 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\graphics\so_bin\18092.sda"))
378 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\draw\level1\18092.sxd") , "StarOffice XML (Draw)") then
381 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\draw\level1\18092.sxd") , gOfficePath & ConvertPath("user\work\xml\draw\level1\18092\") )
382 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18092\styles.xml")) = FALSE then
383 warnlog "XML-file 'styles.xml' not well formed!"
385 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18092\meta.xml")) = FALSE then
386 warnlog "XML-file 'meta.xml' not well formed!"
388 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18092\content.xml")) = FALSE then
389 warnlog "XML-file 'content.xml' not well formed!"
391 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\draw\level1\18092.sxd")
399 '-------------------------------------------------------------------------
402 printlog "+- Draw: 18093.sda"
403 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\graphics\so_bin\18093.sda"))
404 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\draw\level1\18093.sxd") , "StarOffice XML (Draw)") then
407 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\draw\level1\18093.sxd") , gOfficePath & ConvertPath("user\work\xml\draw\level1\18093\") )
408 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18093\styles.xml")) = FALSE then
409 warnlog "XML-file 'styles.xml' not well formed!"
411 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18093\meta.xml")) = FALSE then
412 warnlog "XML-file 'meta.xml' not well formed!"
414 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18093\content.xml")) = FALSE then
415 warnlog "XML-file 'content.xml' not well formed!"
417 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\draw\level1\18093.sxd")
425 '-------------------------------------------------------------------------
428 printlog "+- Draw: 18094.sda"
430 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\graphics\so_bin\18094.sda"))
431 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\draw\level1\18094.sxd") , "StarOffice XML (Draw)") then
434 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\draw\level1\18094.sxd") , gOfficePath & ConvertPath("user\work\xml\draw\level1\18094\") )
435 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18094\styles.xml")) = FALSE then
436 warnlog "XML-file 'styles.xml' not well formed!"
438 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18094\meta.xml")) = FALSE then
439 warnlog "XML-file 'meta.xml' not well formed!"
441 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18094\content.xml")) = FALSE then
442 warnlog "XML-file 'content.xml' not well formed!"
444 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\draw\level1\18094.sxd")
452 '-------------------------------------------------------------------------
455 printlog "+- Draw: 18098.sda"
457 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\graphics\so_bin\18098.sda"))
458 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\draw\level1\18098.sxd") , "StarOffice XML (Draw)") then
461 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\draw\level1\18098.sxd") , gOfficePath & ConvertPath("user\work\xml\draw\level1\18098\") )
462 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18098\styles.xml")) = FALSE then
463 warnlog "XML-file 'styles.xml' not well formed!"
465 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18098\meta.xml")) = FALSE then
466 warnlog "XML-file 'meta.xml' not well formed!"
468 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18098\content.xml")) = FALSE then
469 warnlog "XML-file 'content.xml' not well formed!"
471 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\draw\level1\18098.sxd")
479 '-------------------------------------------------------------------------
482 printlog "+- Draw: 18099.sda"
484 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\graphics\so_bin\18099.sda"))
485 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\draw\level1\18099.sxd") , "StarOffice XML (Draw)") then
488 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\draw\level1\18099.sxd") , gOfficePath & ConvertPath("user\work\xml\draw\level1\18099\") )
489 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18099\styles.xml")) = FALSE then
490 warnlog "XML-file 'styles.xml' not well formed!"
492 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18099\meta.xml")) = FALSE then
493 warnlog "XML-file 'meta.xml' not well formed!"
495 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18099\content.xml")) = FALSE then
496 warnlog "XML-file 'content.xml' not well formed!"
498 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\draw\level1\18099.sxd")
506 '-------------------------------------------------------------------------
509 printlog "+- Draw: 18100.sda"
511 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\graphics\so_bin\18100.sda"))
512 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\draw\level1\18100.sxd") , "StarOffice XML (Draw)") then
515 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\draw\level1\18100.sxd") , gOfficePath & ConvertPath("user\work\xml\draw\level1\18100\") )
516 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18100\styles.xml")) = FALSE then
517 warnlog "XML-file 'styles.xml' not well formed!"
519 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18100\meta.xml")) = FALSE then
520 warnlog "XML-file 'meta.xml' not well formed!"
522 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18100\content.xml")) = FALSE then
523 warnlog "XML-file 'content.xml' not well formed!"
525 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\draw\level1\18100.sxd")
533 '-------------------------------------------------------------------------
536 printlog "+- Draw: 18101.sda"
538 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\graphics\so_bin\18101.sda"))
539 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\draw\level1\18101.sxd") , "StarOffice XML (Draw)") then
542 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\draw\level1\18101.sxd") , gOfficePath & ConvertPath("user\work\xml\draw\level1\18101\") )
543 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18101\styles.xml")) = FALSE then
544 warnlog "XML-file 'styles.xml' not well formed!"
546 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18101\meta.xml")) = FALSE then
547 warnlog "XML-file 'meta.xml' not well formed!"
549 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18101\content.xml")) = FALSE then
550 warnlog "XML-file 'content.xml' not well formed!"
552 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\draw\level1\18101.sxd")
560 '-------------------------------------------------------------------------
563 printlog "+- Draw: 18102.sda"
565 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\graphics\so_bin\18102.sda"))
566 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\draw\level1\18102.sxd") , "StarOffice XML (Draw)") then
569 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\draw\level1\18102.sxd") , gOfficePath & ConvertPath("user\work\xml\draw\level1\18102\") )
570 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18102\styles.xml")) = FALSE then
571 warnlog "XML-file 'styles.xml' not well formed!"
573 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18102\meta.xml")) = FALSE then
574 warnlog "XML-file 'meta.xml' not well formed!"
576 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18102\content.xml")) = FALSE then
577 warnlog "XML-file 'content.xml' not well formed!"
579 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\draw\level1\18102.sxd")
587 '-------------------------------------------------------------------------
590 printlog "+- Draw: 18106.sda"
592 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\graphics\so_bin\18106.sda"))
593 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\draw\level1\18106.sxd") , "StarOffice XML (Draw)") then
596 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\draw\level1\18106.sxd") , gOfficePath & ConvertPath("user\work\xml\draw\level1\18106\") )
597 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18106\styles.xml")) = FALSE then
598 warnlog "XML-file 'styles.xml' not well formed!"
600 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18106\meta.xml")) = FALSE then
601 warnlog "XML-file 'meta.xml' not well formed!"
603 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18106\content.xml")) = FALSE then
604 warnlog "XML-file 'content.xml' not well formed!"
606 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\draw\level1\18106.sxd")
614 '-------------------------------------------------------------------------
617 printlog "+- Draw: 18107.sda"
619 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\graphics\so_bin\18107.sda"))
620 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\draw\level1\18107.sxd") , "StarOffice XML (Draw)") then
623 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\draw\level1\18107.sxd") , gOfficePath & ConvertPath("user\work\xml\draw\level1\18107\") )
624 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18107\styles.xml")) = FALSE then
625 warnlog "XML-file 'styles.xml' not well formed!"
627 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18107\meta.xml")) = FALSE then
628 warnlog "XML-file 'meta.xml' not well formed!"
630 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\draw\level1\18107\content.xml")) = FALSE then
631 warnlog "XML-file 'content.xml' not well formed!"
633 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\draw\level1\18107.sxd")