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: sxw7_01.inc,v $
13 '* last change: $Author: rt $ $Date: 2008-07-11 07:34:18 $
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 : helge.delfs@sun.com
36 '* short description : XML Writer Include File
38 '\***********************************************************************************
39 Dim Isliste(250) as string
40 Dim OutputPath as string
44 printlog "-------------------------- SXW7_01.INC ------------------------------"
46 printlog "------------------------ Alien Attributes ---------------------------"
50 printlog "---------------------- File Format Changes --------------------------"
54 printlog "---------------------------------------------------------------------"
59 '-------------------------------------------------------------------------
64 Dim xXMLStyleName as string
66 Dim AttributeSearch(50) as string
67 Dim AttributeValue(50) as string
68 Dim iStylesToCount as integer
69 Dim sStyleStyleValueA as string
71 printlog "+- fiscus.sxw"
72 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\writer\fiscus.sxw"))
73 '/// Saving (and if already exiting overwriting) the document.
74 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus.sxw") , "StarOffice XML (Writer)") then
75 '/// Closing the document also if there is a verification dialog.
78 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus.sxw") , gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus") )
79 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus\meta.xml")) = FALSE then
80 warnlog "XML-file 'meta.xml' not well formed!"
82 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus\styles.xml")) = FALSE then
83 warnlog "XML-file 'styles.xml' not well formed!"
85 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus\content.xml")) = FALSE then
86 warnlog "XML-file 'content.xml' not well formed!"
88 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus.sxw"))
92 SAXReadFile(gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus\content.xml"))
93 printlog " ---------------------"
94 printlog " c o n t e n t . x m l"
95 printlog " ---------------------"
97 printlog "-----------------"
98 printlog "Hidden Namespaces"
99 printlog "-----------------"
100 '/// <u><b>content.xml</u></b>
101 '/// <u>Hidden Namespaces</u>
102 '///+ Searching for: xmlns:foo="http://www.foo.com"
103 '///+ Searching for: xmlns:bar="http://www.bar.com" ///
104 '-------------------------------------------------------------------------
105 AttributeSearch(1) = "xmlns:foo"
106 AttributeValue(1) = "http://www.foo.com"
108 AttributeSearch(2) = "xmlns:bar"
109 AttributeValue(2) = "http://www.bar.com"
110 printlog "++ Feature(s) to be searched for:"
112 '-------------------------------------------------------------------------
113 SAXSeekElement("office:document-content")
115 printlog " +- " & AttributeSearch(i)
116 if SAXGetAttributeValue(AttributeSearch(i)) <> AttributeValue(i) then
117 warnlog "Hidden attributes (in namespace): " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
122 '/// <u>hidden attributes <b>in a table style</b></u>
123 '///+ Searching for: attr1="42"
124 '///+ Searching for: foo:attr2="43"
125 '///+ Searching for: bar:attr3="44" ///
126 '/// <u>hidden attributes <b>in a table cell style</b></u>
127 '///+ Searching for: attr1="42"
128 '///+ Searching for: foo:attr2="43"
129 '///+ Searching for: bar:attr3="44" ///
130 '/// <u>hidden attributes <b>in a paragraph style</b></u>
131 '///+ Searching for: attr1="42"
132 '///+ Searching for: foo:attr2="43"
133 '///+ Searching for: bar:attr3="44" ///
134 '/// <u>hidden attributes <b>in a text style</b></u>
135 '///+ Searching for: attr1="42"
136 '///+ Searching for: foo:attr2="43"
137 '///+ Searching for: bar:attr3="44" ///
138 '/// <u>hidden attributes <b>in a frame style</b></u>
139 '///+ Searching for: attr1="42"
140 '///+ Searching for: foo:attr2="43"
141 '///+ Searching for: bar:attr3="44" ///
142 '-------------------------------------------------------------------------
143 AttributeSearch(1) = "attr1"
144 AttributeValue(1) = "42"
146 AttributeSearch(2) = "foo:attr2"
147 AttributeValue(2) = "43"
149 AttributeSearch(3) = "bar:attr3"
150 AttributeValue(3) = "44"
151 '-------------------------------------------------------------------------
154 printlog "----------------------------------"
155 printlog "Hidden attributes in a table style"
156 printlog "----------------------------------"
159 printlog "---------------------------------------"
160 printlog "Hidden attributes in a table cell style"
161 printlog "---------------------------------------"
164 printlog "--------------------------------------"
165 printlog "Hidden attributes in a paragraph style"
166 printlog "--------------------------------------"
169 printlog "---------------------------------"
170 printlog "Hidden attributes in a text style"
171 printlog "---------------------------------"
174 printlog "----------------------------------"
175 printlog "Hidden attributes in a frame style"
176 printlog "----------------------------------"
178 if a = 1 or a = 4 or a = 6 or a = 7 or a = 8 then
179 SAXSeekElement("office:document-content")
180 SAXSeekElement("office:automatic-styles")
181 SAXSeekElement("style:style" , a)
182 SAXSeekElement("style:properties")
183 printlog "++ Feature(s) to be searched for:"
186 printlog " +- " & AttributeSearch(i)
187 if SAXGetAttributeValue(AttributeSearch(i)) <> AttributeValue(i) then
189 warnlog "Hidden attributes (in a table style): " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
192 warnlog "Hidden attributes (in a table cell style): " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
195 warnlog "Hidden attributes (in a paragraph style): " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
198 warnlog "#i74125# - Alien attributes get lost in text style properties."
199 ' warnlog "Hidden attributes (in a text style): " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
202 warnlog "Hidden attributes (in a frame style): " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
211 SAXReadFile(gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus\styles.xml"))
212 '-------------------------------------------------------------------------
213 printlog " -------------------"
214 printlog " s t y l e s . x m l"
215 printlog " -------------------"
216 printlog "-----------------"
217 printlog "Hidden Namespaces"
218 printlog "-----------------"
219 '/// <u><b>STYLES.XML</u></b>
220 '/// <u>Hidden Namespace</u>
221 '///+ Searching for: xmlns:foo="http://www.foo.com"
222 '///+ Searching for: xmlns:bar="http://www.bar.com" ///
223 '-------------------------------------------------------------------------
224 AttributeSearch(1) = "xmlns:foo"
225 AttributeValue(1) = "http://www.foo.com"
227 AttributeSearch(2) = "xmlns:bar"
228 AttributeValue(2) = "http://www.bar.com"
229 printlog "++ Feature(s) to be searched for:"
231 '-------------------------------------------------------------------------
232 SAXSeekElement("office:document-styles")
234 printlog " +- " & AttributeSearch(i)
235 if SAXGetAttributeValue(AttributeSearch(i)) <> AttributeValue(i) then
236 warnlog "Hidden attributes (in namespace): " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
240 '-------------------------------------------------------------------------
242 printlog "-----------------------------------------------"
243 printlog "Hidden attributes in TEMPLATE STYLE 'Text body'"
244 printlog "-----------------------------------------------"
245 '/// <u>hidden attributes <b>in the template style ´Text body´</b></u>
246 '///+ Searching for: attr1="42"
247 '///+ Searching for: foo:attr2="43"
248 '///+ Searching for: bar:attr3="44" ///
249 '-------------------------------------------------------------------------
250 AttributeSearch(1) = "attr1"
251 AttributeValue(1) = "42"
253 AttributeSearch(2) = "foo:attr2"
254 AttributeValue(2) = "43"
256 AttributeSearch(3) = "bar:attr3"
257 AttributeValue(3) = "44"
259 printlog "++ Feature(s) to be searched for:"
261 '-------------------------------------------------------------------------
262 SAXSeekElement("office:document-styles")
263 SAXSeekElement("office:styles")
264 ' There are 7 style:style elements; it is important to get
265 ' the 'Text body' titled one because it is the onliest which
266 ' has one additional 'style:properties' element.
267 ' Executing SAXSeekElement without having an additional
268 ' element interrupts the test run!
269 for iStylesToCount = 1 to 7
270 SAXSeekElement("style:style", iStylesToCount)
271 sStyleStyleValueA = SAXGetAttributeValue("style:name")
272 if sStyleStyleValueA = "Text body" then
278 ' Go into the style:propries element in 'Text body' named style:style element.
279 ' There the three hidden attributes should be stored.
280 SAXSeekElement("style:properties")
282 printlog " +- " & AttributeSearch(i)
283 if SAXGetAttributeValue(AttributeSearch(i)) <> AttributeValue(i) then
284 warnlog "Hidden attributes (in a template style): " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
287 '-------------------------------------------------------------------------
296 '-------------------------------------------------------------------------
300 Dim xXMLStyleName as string
301 Dim AttributeSearch(50) as string
302 Dim AttributeValue(50) as string
303 printlog "+- fiscus2.sxw"
304 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\writer\fiscus2.sxw"))
305 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus2.sxw") , "StarOffice XML (Writer)") then
306 '/// Closing the document also if there is a verification dialog.
307 call hCloseDocument()
309 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus2.sxw") , gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus2") )
310 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus2\meta.xml")) = FALSE then
311 warnlog "XML-file 'meta.xml' not well formed!"
313 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus2\styles.xml")) = FALSE then
314 warnlog "XML-file 'styles.xml' not well formed!"
316 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus2\content.xml")) = FALSE then
317 warnlog "XML-file 'content.xml' not well formed!"
319 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus2.sxw"))
323 SAXReadFile(gOfficePath & ConvertPath("user\work\xml\writer\level1\fiscus2\content.xml"))
324 printlog " ---------------------"
325 printlog " c o n t e n t . x m l"
326 printlog " ---------------------"
328 printlog "-----------------"
329 printlog "Hidden Namespaces"
330 printlog "-----------------"
331 '/// <u><b>content.xml</u></b>
332 '/// <u>Hidden Namespaces</u>
333 '///+ Searching for: xmlns:foo="http://www.foo.com"
334 '///+ Searching for: xmlns:bar="http://www.bar.com" ///
335 '-------------------------------------------------------------------------
336 AttributeSearch(1) = "xmlns:foo"
337 AttributeValue(1) = "http://www.foo.com"
339 AttributeSearch(2) = "xmlns:bar"
340 AttributeValue(2) = "http://www.bar.com"
341 printlog "++ Feature(s) to be searched for:"
343 '-------------------------------------------------------------------------
344 SAXSeekElement("office:document-content")
346 printlog " +- " & AttributeSearch(i)
347 if SAXGetAttributeValue(AttributeSearch(i)) <> AttributeValue(i) then
348 warnlog "Hidden attributes (in namespace): " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
353 printlog "--------------------------------------------------------------------------"
354 printlog "Hidden attributes in text style but a 'span'-item over the whole paragraph"
355 printlog "--------------------------------------------------------------------------"
356 '/// <u>hidden attributes <b>in a text style</b></u>
357 '///+ where a 'span'-item exists in a whole paragraph.
358 '///+ Searching for: attr1="42"
359 '///+ Searching for: foo:attr2="43"
360 '///+ Searching for: bar:attr3="44" ///
361 '-------------------------------------------------------------------------
362 AttributeSearch(1) = "attr1"
363 AttributeValue(1) = "42"
365 AttributeSearch(2) = "foo:attr2"
366 AttributeValue(2) = "43"
368 AttributeSearch(3) = "bar:attr3"
369 AttributeValue(3) = "44"
371 printlog "++ Feature(s) to be searched for:"
373 '-------------------------------------------------------------------------
374 SAXSeekElement("office:document-content")
375 SAXSeekElement("office:automatic-styles")
376 SAXSeekElement("style:style" , 9)
377 SAXSeekElement("style:properties")
379 printlog " +- " & AttributeSearch(i)
380 if SAXGetAttributeValue(AttributeSearch(i)) <> AttributeValue(i) then
381 warnlog "Hidden attributes (in a text style with a 'span'-item over the whole paragraph): " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
392 '-------------------------------------------------------------------------
397 Dim xXMLStyleName as string
399 Dim AttributeSearch(50) as string
400 Dim AttributeValue(50) as string
401 printlog "+- feat476.sxw"
402 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\writer\feat476.sxw"))
403 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\writer\level1\feat476.sxw") , "StarOffice XML (Writer)") then
404 '/// Closing the document also if there is a verification dialog.
405 call hCloseDocument()
407 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\writer\level1\feat476.sxw") , gOfficePath & ConvertPath("user\work\xml\writer\level1\feat476") )
408 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\writer\level1\feat476\meta.xml")) = FALSE then
409 warnlog "XML-file 'meta.xml' not well formed!"
411 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\writer\level1\feat476\styles.xml")) = FALSE then
412 warnlog "XML-file 'styles.xml' not well formed!"
414 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\writer\level1\feat476\content.xml")) = FALSE then
415 warnlog "XML-file 'content.xml' not well formed!"
417 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\writer\level1\feat476.sxw"))
421 SAXReadFile(gOfficePath & ConvertPath("user\work\xml\writer\level1\feat476\content.xml"))
422 printlog " ---------------------"
423 printlog " c o n t e n t . x m l"
424 printlog " ---------------------"
426 printlog "-----------------"
427 printlog "Vertical Relation"
428 printlog "-----------------"
429 '/// <u><b>content.xml</u></b>
430 '/// <u>Vertical Relation</u>
431 '///+ <blockquote>The <i>style:vertical-rel</i> attribute has a new value "text".
432 '///+ It is used by frames (i.e. images, text-boxes, etc.) that
433 '///+ are bound as characters to specify a vertical alignment
434 '///+ relative to the text height of the line that contains the
436 '///+ Before this change, the value "char" was used for this
437 '///+ purpose. This lead to an ambiguity, because the same value
438 '///+ is used with a different meaning for frames bound at a character.</blockquote>
439 '/// Searching for: style:vertical-rel="text"
441 '-------------------------------------------------------------------------
442 AttributeSearch(1) = "style:vertical-rel"
443 AttributeValue(1) = "text"
444 printlog "++ Feature(s) to be searched for:"
446 '-------------------------------------------------------------------------
447 SAXSeekElement("office:document-content")
448 SAXSeekElement("office:automatic-styles")
449 SAXSeekElement("style:style")
450 SAXSeekElement("style:properties")
452 printlog " +- " & AttributeSearch(i)
453 if SAXGetAttributeValue(AttributeSearch(i)) <> AttributeValue(i) then
454 warnlog "Vertical Relation (XML file format change 476): " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
466 '-------------------------------------------------------------------------
471 Dim xXMLStyleName as string
473 Dim AttributeSearch(50) as string
474 Dim AttributeValue(50) as string
475 printlog "+- feat1318.sxw"
476 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\writer\feat1318.sxw"))
477 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\writer\level1\feat1318.sxw") , "StarOffice XML (Writer)") then
478 '/// Closing the document also if there is a verification dialog.
479 call hCloseDocument()
481 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\writer\level1\feat1318.sxw") , gOfficePath & ConvertPath("user\work\xml\writer\level1\feat1318") )
482 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\writer\level1\feat1318\meta.xml")) = FALSE then
483 warnlog "XML-file 'meta.xml' not well formed!"
485 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\writer\level1\feat1318\styles.xml")) = FALSE then
486 warnlog "XML-file 'styles.xml' not well formed!"
488 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\writer\level1\feat1318\content.xml")) = FALSE then
489 warnlog "XML-file 'content.xml' not well formed!"
491 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\writer\level1\feat1318.sxw"))
495 SAXReadFile(gOfficePath & ConvertPath("user\work\xml\writer\level1\feat1318\content.xml"))
496 printlog " ---------------------"
497 printlog " c o n t e n t . x m l"
498 printlog " ---------------------"
500 printlog "-----------------"
501 printlog "Vertical Position"
502 printlog "-----------------"
503 '/// <u><b>content.xml</u></b>
504 '/// <u>Vertical Position</u>
505 '///+ <blockquote>The <i>style:vertical-pos</i> attribute that can be attached to the
506 '///+ <i><style:properties></i> element of graphic styles has got the new
507 '///+ value "below". It can be used for frames that are bound to a
508 '///+ character only and means that the frame is displayed right
509 '///+ below the anchor character.
510 '///+ The meaning of any other value of the <i>style:vertical-pos</i>
511 '///+ attribute is unchanged. There also was no other way to set
512 '///+ the vertical position of a frame to "below the anchor
513 '///+ character".</blockquote>
514 '/// Searching for: style:vertical-pos="below"
516 '-------------------------------------------------------------------------
517 AttributeSearch(1) = "style:vertical-pos"
518 AttributeValue(1) = "below"
519 printlog "++ Feature(s) to be searched for:"
521 '-------------------------------------------------------------------------
522 SAXSeekElement("office:document-content")
523 SAXSeekElement("office:automatic-styles")
524 SAXSeekElement("style:style")
525 SAXSeekElement("style:properties")
527 printlog " +- " & AttributeSearch(i)
528 if SAXGetAttributeValue(AttributeSearch(i)) <> AttributeValue(i) then
529 warnlog "Vertical Relation (XML file format change 1318): " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
541 '-------------------------------------------------------------------------
549 Dim xXMLStyleName as string
551 Dim AttributeSearch(50) as string
552 Dim AttributeValue(50) as string
553 printlog "+- characters.sdw"
554 '/// Opening the characters.sdw file from the input directory.
555 call hFileOpen (gTesttoolPath & ConvertPath("xml\optional\input\writer\characters.sdw"))
556 '/// Saving the document in OOo XML 1.0 file format.
557 if hFileSaveAsWithFilterKill (gOfficePath & ConvertPath("user\work\xml\writer\level1\characters.sxw") , "StarOffice XML (Writer)") then
558 '/// Closing the document also if there is a verification dialog.
559 call hCloseDocument()
561 '/// Unpack the complete file (ZIP archieve) into a seperate directory.
562 UnpackStorage( gOfficePath & ConvertPath("user\work\xml\writer\level1\characters.sxw") , gOfficePath & ConvertPath("user\work\xml\writer\level1\characters") )
563 '/// Verifying the wellformness of content.xml, styles.xml and meta.xml.
564 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\writer\level1\characters\meta.xml")) = FALSE then
565 warnlog "XML-file 'meta.xml' not well formed!"
567 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\writer\level1\characters\styles.xml")) = FALSE then
568 warnlog "XML-file 'styles.xml' not well formed!"
570 if XMLWellformed (gOfficePath & ConvertPath("user\work\xml\writer\level1\characters\content.xml")) = FALSE then
571 warnlog "XML-file 'content.xml' not well formed!"
573 '/// Opening the exported document (GPF-check).
574 call hFileOpen (gOfficePath & ConvertPath("user\work\xml\writer\level1\characters.sxw"))
576 '/// Closing the document.
579 SAXReadFile(gOfficePath & ConvertPath("user\work\xml\writer\level1\characters\content.xml"))
580 printlog " ---------------------"
581 printlog " c o n t e n t . x m l"
582 printlog " ---------------------"
584 printlog "----------"
585 printlog "Paragraphs"
586 printlog "----------"
587 '-------------------------------------------------------------------------
588 '/// <u><b>CONTENT.XML</u></b>
589 '/// <u>Paragraph Style P2</u>
590 SAXSeekElement("office:document-content")
591 SAXSeekElement("office:body")
592 SAXSeekElement("text:p" , 15)
593 xXMLStyleName = SAXGetAttributeValue("text:style-name")
594 printlog "text:style-name: " & xXMLStyleName
595 '///+ Searching for: style:text-position="super 90%"
596 '///+ Searching for: style:text-blinking="true" ///
597 AttributeSearch(1) = "style:text-position"
598 AttributeValue(1) = "super 90%"
600 AttributeSearch(2) = "style:text-blinking"
601 AttributeValue(2) = "true"
602 printlog "++ Feature(s) to be searched for:"
605 SAXSeekElement("office:document-content")
606 SAXSeekElement("office:automatic-styles")
610 if SAXGetAttributeValue("style:name") = xXMLStyleName then
611 SAXSeekElement("style:properties")
613 printlog " +- " & AttributeSearch(i)
614 if SAXGetAttributeValue(AttributeSearch(i)) <> AttributeValue(i) then
615 warnlog "Paragraph style: " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"
624 '-------------------------------------------------------------------------
625 printlog "----------"
626 printlog "Textstyles"
627 printlog "----------"
628 printlog "++ Feature(s) to be searched for:"
630 SAXSeekElement("office:document-content")
631 SAXSeekElement("office:body")
632 SAXSeekElement("text:p", 12)
633 SAXSeekElement("text:span")
634 xXMLStyleName = SAXGetAttributeValue("text:style-name")
635 printlog "text:style-name: " & xXMLStyleName
636 '/// <u>Text Style T8</u>
637 '///+ Searching for: style:text-outline="true"
638 '///+ Searching for: style:text-crossing-out="single-line"
639 '///+ Searching for: fo:font-size="22pt"
640 '///+ Searching for: fo:text-shadow="1pt 1pt"
641 '///+ Searching for: style:text-underline="single"
642 '///+ Searching for: style:text-underline-color="font-color" ///
643 AttributeSearch(1) = "style:text-outline"
644 AttributeValue(1) = "true"
646 AttributeSearch(2) = "style:text-crossing-out"
647 AttributeValue(2) = "single-line"
649 AttributeSearch(3) = "fo:font-size"
650 AttributeValue(3) = "22pt"
652 AttributeSearch(4) = "fo:text-shadow"
653 AttributeValue(4) = "1pt 1pt"
655 AttributeSearch(5) = "style:text-underline"
656 AttributeValue(5) = "single"
658 AttributeSearch(6) = "style:text-underline-color"
659 AttributeValue(6) = "font-color"
662 SAXSeekElement("office:document-content")
663 SAXSeekElement("office:automatic-styles")
667 if SAXGetAttributeValue("style:name") = xXMLStyleName then
668 SAXSeekElement("style:properties")
670 printlog " +- " & AttributeSearch(g)
671 if SAXGetAttributeValue(AttributeSearch(g)) <> AttributeValue(g) then
672 warnlog "Textstyle: " & AttributeSearch(g) & " is not " & AttributeValue(g) & "!"
681 '-------------------------------------------------------------------------
682 printlog "++ Feature(s) to be searched for:"
685 SAXSeekElement("office:document-content")
686 SAXSeekElement("office:body")
687 SAXSeekElement("text:p" , 8)
689 xXMLStyleName = SAXGetAttributeValue("text:style-name")
690 printlog "text:style-name: " & xXMLStyleName
691 '/// <u>Text Style T5</u>
692 '///+ Searching for: fo:font-style="italic" ///
693 '/// <u>Text Style T6</u>
694 '///+ Searching for: fo:font-weight="bold" ///
695 '/// <u>Text Style T7</u>
696 '///+ Searching for: style:text-underline="single"
697 '///+ Searching for: style:text-underline-color="font-color" ///
699 AttributeSearch(1) = "fo:font-style"
700 AttributeValue(1) = "italic"
702 AttributeSearch(2) = "fo:font-weight"
703 AttributeValue(2) = "bold"
705 AttributeSearch(3) = "style:text-underline"
706 AttributeValue(3) = "single"
708 AttributeSearch(4) = "style:text-underline-color"
709 AttributeValue(4) = "font-color"
712 SAXSeekElement("office:document-content")
713 SAXSeekElement("office:automatic-styles")
717 if SAXGetAttributeValue("style:name") = xXMLStyleName then
718 SAXSeekElement("style:properties")
721 printlog " +- " & AttributeSearch(i+2)
722 if SAXGetAttributeValue(AttributeSearch(i+2)) <> AttributeValue(i+2) then
723 warnlog "Textstyle: " & AttributeSearch(i+2) & " is not " & AttributeValue(i+2) & "!"
727 printlog " +- " & AttributeSearch(g)
728 if SAXGetAttributeValue(AttributeSearch(g)) <> AttributeValue(g) then
729 warnlog "Textstyle: " & AttributeSearch(g) & " is not " & AttributeValue(g) & "!"
740 '-------------------------------------------------------------------------
741 printlog "++ Feature(s) to be searched for:"
743 SAXSeekElement("office:document-content")
744 SAXSeekElement("office:body")
745 SAXSeekElement("text:p", 19)
746 xXMLStyleName = SAXGetAttributeValue("text:style-name")
747 printlog "paragraph:style-name: " & xXMLStyleName
748 '/// <u>Paragraph Style P3</u>
749 '///+ Searching in language 01 for : fo:letter-spacing="0.06cm"
750 '///+ Searching in other language for: fo:letter-spacing="
751 '///+ Searching for: style:letter-kerning="true"
752 '-------------------------------------------------------------------------
753 AttributeSearch(1) = "style:letter-kerning"
754 AttributeValue(1) = "true"
756 AttributeSearch(2) = "fo:letter-spacing"
757 AttributeValue(2) = "0.106cm"
760 SAXSeekElement("office:document-content")
761 SAXSeekElement("office:automatic-styles")
766 if SAXGetAttributeValue("style:name") = xXMLStyleName then
767 SAXSeekElement("style:properties")
768 if gLanguage = 1 then
774 printlog " +- " & AttributeSearch(g)
775 if SAXGetAttributeValue(AttributeSearch(g)) <> AttributeValue(g) then
776 warnlog "Textstyle: " & AttributeSearch(g) & " is not " & AttributeValue(g) & "!"
783 '-------------------------------------------------------------------------
786 '-------------------------------------------------------------------------
787 printlog "++ Feature(s) to be searched for:"
790 SAXSeekElement("office:document-content")
791 SAXSeekElement("office:body")
792 SAXSeekElement("text:p", 26)
794 xXMLStyleName = SAXGetAttributeValue("text:style-name")
795 printlog "text:style-name: " & xXMLStyleName
796 '/// <u>Text Style T10</u>
797 '///+ Searching for: style:text-background-color="#00dcff" ///
798 '/// <u>Text Style T11</u>
799 '///+ Searching for: style:text-background-color="#ffcc99" ///
800 '-------------------------------------------------------------------------
801 AttributeSearch(1) = "style:text-background-color"
802 AttributeValue(1) = "#00dcff"
804 AttributeSearch(2) = "style:text-background-color"
805 AttributeValue(2) = "#ffcc99"
808 SAXSeekElement("office:document-content")
809 SAXSeekElement("office:automatic-styles")
814 if SAXGetAttributeValue("style:name") = xXMLStyleName then
815 SAXSeekElement("style:properties")
816 printlog " +- " & AttributeSearch(g)
817 if SAXGetAttributeValue(AttributeSearch(g)) <> AttributeValue(g) then
818 warnlog "Textstyle: " & AttributeSearch(g) & " is not " & AttributeValue(g) & "!"
826 '-------------------------------------------------------------------------
830 '/// <u>Other (Link)</u>
831 '///+ Searching for: <text:a xlink:type="simple" xlink:href="http://www.hyperlink.de/" office:target-frame-name="_blank" xlink:show="new">Hyperlink</text:a> ///
834 '-------------------------------------------------------------------------
835 printlog "++ Feature(s) to be searched for:"
837 SAXSeekElement("office:document-content")
838 SAXSeekElement("office:body")
839 SAXSeekElement("text:p", 29)
840 SAXSeekElement("text:a")
841 xXMLStyleName = SAXGetAttributeValue("text:style-name")
842 printlog "text:style-name: " & xXMLStyleName
844 AttributeSearch(1) = "xlink:type"
845 AttributeValue(1) = "simple"
847 AttributeSearch(2) = "xlink:href"
848 AttributeValue(2) = "http://www.hyperlink.de/"
850 AttributeSearch(3) = "office:target-frame-name"
851 AttributeValue(3) = "_blank"
853 AttributeSearch(4) = "xlink:show"
854 AttributeValue(4) = "new"
857 if SAXGetAttributeValue(AttributeSearch(i)) <> AttributeValue(i) then
859 warnlog "#i80480# Hyperlink attribute office:target-frame-name gets lost sometimes."
861 warnlog "#i80480# Hyperlink attribute xlink:show gets lost sometimes."
863 warnlog "Other: " & AttributeSearch(i) & " is not " & AttributeValue(i) & "!"