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: gallery.inc,v $
13 '* last change: $Author: jsi $ $Date: 2008-06-16 10:42:41 $
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 : Global Required/resource test: Checking the gallery
38 '*******************************************************************
40 ' #1 tGallery_DialogTest ' Open gallery, pin - unpin, dock - undock, close gallery
41 ' #1 tGallery_ActivateAndUpdateAllThemes ' Activate all gallery-themes and update this theme
42 ' #1 tGallery_CheckNames ' Check the names for all themes depends on language
43 ' #1 tGallery_CheckContextMenuForGalleryThemes ' Test the context menu on themes window
44 ' #1 tGallery_CreateAndWorkWithANewGalleryThemes ' Create a new theme, add graphics and work with it
45 ' #1 tGallery_GalleryView_Preview ' Preview-feature in Gallery Beamer-window
46 ' #1 tGallery_GalleryView_Insert ' Insert gallery objects in all applications
47 ' #1 tGallery_GalleryView_Delete ' Delete gallery objects out of Beamer window
48 ' #0 hOpenGallery ' Open the gallery
49 ' #1 tGallery_Quick_check
51 '\******************************************************************
52 testcase tGallery_DialogTest
53 printlog "- Working with Gallery-Beamer!"
54 gApplication = "WRITER"
57 Kontext "DocumentWriter"
58 printlog "- undock the Gallery Beamer"
60 Gallery.Undock ( AlignTop )
62 printlog " - move the gallery window"
63 Gallery.move ( 20, 20 )
65 printlog "- dock the Gallery Beamer"
66 Gallery.Dock ( AlignTop )
68 printlog "- close the Gallery Beamer"
73 '-------------------------------------------------------------------------
75 testcase tGallery_ActivateAndUpdateAllThemes
76 Dim iThemeCount as Integer
79 Dim Gallerytext as string
80 printlog "activate and update all gallery-themes"
81 gApplication = "WRITER"
86 iThemeCount = Gallerys.GetItemCount
87 for i=1 to iThemeCount
88 if gNetzInst = FALSE then
90 Gallerytext = Gallerys.GetItemText(i)
91 printlog "- " + i + ". entry (" & Gallerytext & ")"
93 Gallerys.MouseMove ( 10, 10 )
94 Gallerys.OpenContextMenu
100 if Messagebox.Exists(3) then
101 if Messagebox.getRT=304 then
102 printlog "- 'MyTheme' is the " & i & "'s entry."
107 Kontext "AktualisierenGallery"
108 if AktualisierenGallery.Exists then
109 printlog "DEBUG (j): " & j
112 printlog "DEBUG: 800 reached!"
122 '-------------------------------------------------------------------------
124 testcase tGallery_CheckNames
125 Dim iThemeCount as Integer
128 Dim ssList (100) as String
129 Dim siList (100) as String
130 Dim sFileName as String
131 Dim iGalleryThemes as integer
134 sFileName = ConvertPath ( gTesttoolPath + "graphics\required\input\gallery\gal_oo_" + iSprache + ".txt" )
136 sFileName = ConvertPath ( gTesttoolPath + "graphics\required\input\gallery\gal_" + iSprache + ".txt" )
139 gApplication = "WRITER"
143 printlog "- check the number of gallery-themes"
147 iGalleryThemes = 29 ' Flags are not allowed!
153 iGalleryThemes = 6 ' Flags are not allowed!
158 iThemeCount = Gallerys.GetItemCount
159 if (iThemeCount <> iGalleryThemes) then
160 warnlog "Difference in count of gallery themes; found: '" + iThemeCount + "'; expected: '"+ iGalleryThemes +"'"
162 for i=1 to iThemeCount
164 ListAppend ( siList(), Gallerys.GetSelText )
166 printlog "- check the names of gallery-themes"
167 if Dir ( sFilename ) = "" then
168 warnlog "The file for comparison does not exists. The file will be written!"
169 warnlog "Please control : " + sFilename
170 ListWrite ( siList(), sFilename, "utf8" )
172 printlog " file for comparison is : " + sFilename
173 ListRead ( ssList (), sFilename, "uft8" )
174 gCompare2Lists ( siList(), ssList () )
180 '-------------------------------------------------------------------------
182 testcase tGallery_CheckContextMenuForGalleryThemes
183 Dim iForBidden as Integer
184 Dim iMenuEntries as Integer
186 Dim iThemeCount as Integer
187 printlog "check the contextmenu for the gallery-themes"
188 gApplication = "WRITER"
192 iThemeCount = Gallerys.GetItemCount
193 Gallerys.MouseMove ( 10, 10 )
194 for i=1 to iThemeCount
196 printlog "- " + i + ". entry"
202 Gallerys.OpenContextMenu
204 iMenuEntries = hMenuItemGetCount
205 if iMenuEntries <> 3 then
206 if gNetzInst = FALSE then
207 warnlog "There are not 3 entries! => no test on the contextmenu!"
209 if iMenuEntries <> 1 then
210 warnlog "Net-Inst : There are not 1 entries! => no test on the contextmenu!"
215 if Active.GetPageCount <> 1 then
216 warnlog "There are more than 1 Tabpage in Net-Installation ( perhaps no root-installation )!"
218 Active.SetPage TabAllgemeinGallery
219 Kontext "TabAllgemeinGallery"
220 TabAllgemeinGallery.Cancel
227 Kontext "GalleryNewTitle"
228 GalleryNewTitle.Cancel
231 Gallerys.OpenContextMenu
235 Active.SetPage TabAllgemeinGallery
236 Active.SetPage TabDateien
246 '-------------------------------------------------------------------------
248 testcase tGallery_CreateAndWorkWithANewGalleryThemes
249 Dim iMenuEntries as Integer
251 printlog "Open a new Writer document"
252 printlog "Tools / Gallery"
253 printlog "create a new gallery-theme ( TT-theme )"
254 gApplication = "WRITER"
257 iMenuEntries = Gallerys.GetItemCount
258 printlog "- Clicking on 'New Theme' and creating a new theme"
260 printlog "+Activate General tabpage and insert TT-theme as name"
262 Active.SetPage TabAllgemeinGallery
263 Kontext "TabAllgemeinGallery"
264 NeuesThema.SetText "TT-theme"
266 printlog " - named the new theme 'TT-theme' on the general-page"
267 printlog " - insert all files out of '[gTestToolpath]\global\input\graf_inp' in the files-page"
268 printlog "+Activate Files tabpage"
270 Active.SetPage TabDateien
272 printlog " - click 'add' without a selected file => insert-graphic-dialog has to be be visible"
273 printlog "+Click on Add (If no file is selected the Graphic-Insert dialog has to be be opened -> close it)"
276 Kontext "GrafikEinfuegenDlg"
277 GrafikEinfuegenDlg.Cancel
279 printlog " - click 'find files' to insert the path for graphics"
280 printlog "+Click on Find Files => select-path dialog will be visible"
284 printlog "+Insert [gTesttoolPath]/input/global/graf_inp as path-name as click on Select"
286 Pfad.SetText ( convertPath ( gTesttoolPath + "global\input\graf_inp" ) )
290 printlog "+Click on Add for some graphics"
291 printlog " - 'add' one by one"
296 printlog "Checking if Apply window is closed"
297 Kontext "ApplyGallery"
299 if ApplyGallery.Exists then
308 printlog "add the 2nd one"
311 printlog "Checking if Apply window is closed"
312 Kontext "ApplyGallery"
314 if ApplyGallery.Exists then
323 printlog "+Click on Add all for rest of the graphics"
324 printlog " - 'add all' for the rest of the files"
326 HinzufuegenAlle.Click
328 printlog " - apply-dialog -> cancel"
329 Kontext "ApplyGallery"
331 if ApplyGallery.Exists then
340 if DateiListe.GetItemCount > 1 then
341 printlog " - 'add all' for the rest of the files"
343 HinzufuegenAlle.Click
345 Kontext "ApplyGallery"
347 If ApplyGallery.Exists then
355 printlog " - click 'OK' for the tabpages"
357 printlog "+Check if the new entry is inserted and select it"
358 printlog " - check if the new entrie is inserted and select it"
360 if Gallerys.GetItemCount <> ( iMenuEntries + 1 ) then
361 warnlog "No new theme was created => the test ends here"
365 printlog "make mouseclick to set focus"
368 Gallerys.Select "TT-theme"
369 Gallerys.MouseMove ( 10, 10 )
371 Gallerys.OpenContextMenu
372 printlog "+Update the entry (1. entry in context menu ) => cancel it"
376 Kontext "AktualisierenGallery"
377 if AktualisierenGallery.Exists <> TRUE then
378 AktualisierenGallery.Cancel
382 loop while AktualisierenGallery.Exists
384 Gallerys.Select "TT-theme"
385 Gallerys.OpenContextMenu
386 printlog "+Update it (1. entry in context menu )"
390 Kontext "AktualisierenGallery"
391 if AktualisierenGallery.Exists <> TRUE then
397 printlog " - rename ( 3. entry in context-menu )"
399 Gallerys.OpenContextMenu
402 Kontext "GalleryNewTitle"
403 Title.SetText "New TT-theme"
406 Gallerys.Select "New TT-theme"
407 printlog " - add new graphics in properties ( 4. entry in context-menu )"
409 Gallerys.OpenContextMenu
413 Active.SetPage TabDateien
417 Pfad.SetText ( convertPath ( gTesttoolPath + "global\input\graf_inp" ) )
424 printlog " - delete the entry ( 2. entry in context-menu )"
425 printlog " - messagebox -> no"
427 Gallerys.Select "New TT-theme"
429 Gallerys.OpenContextMenu
435 printlog " - messagebox -> yes"
438 Gallerys.Select "New TT-theme"
440 Gallerys.OpenContextMenu
447 Gallerys.Select "New TT-theme"
448 warnlog "The entry isn't deleted!"
457 '-------------------------------------------------------------------------
459 testcase tGallery_GalleryView_Preview
460 Dim jpeg_bkg as Integer
461 Dim iAnimation as Integer
462 Dim iSound as Integer
464 Dim iPreview as Integer
465 Dim iTitle as Integer
468 case 01 : jpeg_bkg = 3 : iAnimation = 1 : iSound = 28
469 case 07 : jpeg_bkg = 29 : iAnimation = 1 : iSound = 6
470 case 31 : jpeg_bkg = 3 : iAnimation = 3 : iSound = 11
471 case 33 : jpeg_bkg = 13 : iAnimation = 1 : iSound = 29
472 case 34 : jpeg_bkg = 11 : iAnimation = 1 : iSound = 28
473 case 36 : jpeg_bkg = 12 : iAnimation = 1 : iSound = 10
474 case 39 : jpeg_bkg = 10 : iAnimation = 1 : iSound = 27
475 case 46 : jpeg_bkg = 2 : iAnimation = 1 : iSound = 17
476 case 48 : jpeg_bkg = 2 : iAnimation = 1 : iSound = 17
477 case 49 : jpeg_bkg = 12 : iAnimation = 1 : iSound = 16
478 case 55 : jpeg_bkg = 21 : iAnimation = 1 : iSound = 28
479 case 81 : jpeg_bkg = 21 : iAnimation = 1 : iSound = 10 'FHA TODO: Find out the right numbers for Asian languages.
480 case 82 : jpeg_bkg = 1 : iAnimation = 17 : iSound = 12
481 case 86 : jpeg_bkg = 1 : iAnimation = 9 : iSound = 13
482 case 88 : jpeg_bkg = 1 : iAnimation = 7 : iSound = 20
483 case else : jpeg_bkg = 10 : iAnimation = 1 : iSound = 17
484 warnlog "Please insert the entrienumbers for 'Backgrounds', 'Sounds' and one with normal files ( Animations )"
488 case 01 : jpeg_bkg = 1 : iAnimation = 5 : iSound = 2
489 case 07 : jpeg_bkg = 1 : iAnimation = 5 : iSound = 2
490 case 31 : jpeg_bkg = 3 : iAnimation = 1 : iSound = 1
491 case 33 : jpeg_bkg = 3 : iAnimation = 1 : iSound = 2
492 case 34 : jpeg_bkg = 1 : iAnimation = 1 : iSound = 2
493 case 36 : jpeg_bkg = 2 : iAnimation = 1 : iSound = 2
494 case 39 : jpeg_bkg = 2 : iAnimation = 1 : iSound = 2
495 case 46 : jpeg_bkg = 2 : iAnimation = 5 : iSound = 2
496 case 48 : jpeg_bkg = 2 : iAnimation = 5 : iSound = 2
497 case 49 : jpeg_bkg = 2 : iAnimation = 5 : iSound = 2
498 case 55 : jpeg_bkg = 2 : iAnimation = 5 : iSound = 2
499 case 81 : jpeg_bkg = 2 : iAnimation = 5 : iSound = 2 'FHA TODO: Find out the right numbers for Asian languages.
500 case 82 : jpeg_bkg = 1 : iAnimation = 5 : iSound = 2
501 case 86 : jpeg_bkg = 1 : iAnimation = 5 : iSound = 3
502 case 88 : jpeg_bkg = 1 : iAnimation = 5 : iSound = 2
503 case else : jpeg_bkg = 1 : iAnimation = 5 : iSound = 2
504 warnlog "Please insert the entrienumbers for 'Backgrounds', 'Sounds' and one with normal files ( Animations )"
507 printlog "open a writer and the gallery"
508 gApplication = "WRITER"
514 Gallerys.Select jpeg_bkg
515 printlog "selected gallery-theme : Backgrounds (Jpeg-files)"
518 Gallerys.Select iAnimation
519 printlog "selected gallery-theme : Animation"
522 Gallerys.Select iSound
523 printlog "selected gallery-theme : Sound"
525 if gNetzInst = FALSE then
526 iPreview = 2 : iTitle = 3
528 iPreview = 2 : iTitle = 0
530 printlog "- list-view"
531 printlog " - open the list-view"
534 printlog " - Press Home + Enter to focus and enter Preview-mode."
535 View.TypeKeys "<HOME>"
536 View.TypeKeys "<RETURN>"
538 View.TypeKeys "<RETURN>"
540 printlog " - preview out of context menu on/off"
541 View.TypeKeys "<HOME>"
543 View.OpenContextMenu true
545 hMenuSelectNr ( iPreview )
549 View.OpenContextMenu true
551 hMenuSelectNr ( iPreview )
553 if gNetzInst = FALSE then
557 View.OpenContextMenu true
559 hMenuSelectNr ( iTitle )
560 Kontext "GalleryNewTitle"
562 GalleryNewTitle.Cancel
566 View.OpenContextMenu true
568 hMenuSelectNr ( iPreview )
570 View.OpenContextMenu true
572 printlog MenuIsItemChecked (MenuGetItemID(iPreview+1))
573 if MenuIsItemChecked (MenuGetItemID(iPreview+1)) then
574 Printlog " Entered Preview-mode correctly"
577 Warnlog " Didnt seem to enter preview-mode correctly."
581 printlog "- icon-view"
582 if IconView.isEnabled then
584 qaErrorLog "The bug 64543 has been fixed! Please report to FHA."
587 View.TypeKeys "<HOME>"
588 printlog " - Enter to get out of Preview-mode"
589 View.TypeKeys "<RETURN>"
591 View.TypeKeys "<RETURN>"
593 printlog " - preview out of context menu on/off"
594 View.TypeKeys "<HOME>"
596 View.OpenContextMenu true
598 hMenuSelectNr ( iPreview )
600 View.OpenContextMenu true
602 hMenuSelectNr ( iPreview )
604 if gNetzInst = FALSE then
607 View.OpenContextMenu true
610 warnlog "Could not open Contextmenu for Title nr:" +iTitle
612 hMenuSelectNr ( iTitle )
613 Kontext "GalleryNewTitle"
614 GalleryNewTitle.Cancel
622 if Mplayer.Exists then
623 if (gApplication = "IMPRESS") then
624 kontext "DocumentImpress"
626 kontext "DocumentDraw"
630 if (gApplication = "IMPRESS") then
631 kontext "DocumentImpress"
633 kontext "DocumentDraw"
640 '-------------------------------------------------------------------------
642 testcase tGallery_GalleryView_Insert
643 Dim jpeg_bkg as Integer
644 Dim iAnimation as Integer
650 case 01 : jpeg_bkg = 3 : iAnimation = 1
651 case 07 : jpeg_bkg = 29 : iAnimation = 1
652 case 31 : jpeg_bkg = 3 : iAnimation = 3
653 case 33 : jpeg_bkg = 13 : iAnimation = 1
654 case 34 : jpeg_bkg = 7 : iAnimation = 1
655 case 36 : jpeg_bkg = 12 : iAnimation = 1
656 case 39 : jpeg_bkg = 10 : iAnimation = 1
657 case 46 : jpeg_bkg = 1 : iAnimation = 2
658 case 48 : jpeg_bkg = 3 : iAnimation = 1
659 case 49 : jpeg_bkg = 1 : iAnimation = 2
660 case 55 : jpeg_bkg = 8 : iAnimation = 1
661 case 81 : jpeg_bkg = 1 : iAnimation = 3
662 case 82 : jpeg_bkg = 1 : iAnimation = 17
663 case 86 : jpeg_bkg = 17 : iAnimation = 15
664 case 88 : jpeg_bkg = 17 : iAnimation = 15
665 case else : jpeg_bkg = 1 : iAnimation = 2
666 warnlog "Please insert the entrienumbers for 'Backgrounds' and one with normal files ( Animations )"
670 case 01 : jpeg_bkg = 3 : iAnimation = 1
671 case 07 : jpeg_bkg = 5 : iAnimation = 1
672 case 31 : jpeg_bkg = 3 : iAnimation = 3
673 case 33 : jpeg_bkg = 5 : iAnimation = 1
674 case 34 : jpeg_bkg = 6 : iAnimation = 1
675 case 36 : jpeg_bkg = 5 : iAnimation = 1
676 case 39 : jpeg_bkg = 5 : iAnimation = 1
677 case 46 : jpeg_bkg = 1 : iAnimation = 2
678 case 48 : jpeg_bkg = 3 : iAnimation = 1
679 case 49 : jpeg_bkg = 1 : iAnimation = 2
680 case 55 : jpeg_bkg = 6 : iAnimation = 1
681 case 81 : jpeg_bkg = 1 : iAnimation = 3
682 case 82 : jpeg_bkg = 1 : iAnimation = 1
683 case 86 : jpeg_bkg = 5 : iAnimation = 5
684 case 88 : jpeg_bkg = 5 : iAnimation = 1
685 case else : jpeg_bkg = 1 : iAnimation = 2
686 warnlog "Please insert the entrienumbers for 'Backgrounds' and one with normal files ( Animations )"
689 for i=1 to 4 ' each application
690 if i=1 then gApplication = "WRITER"
691 if i=2 then gApplication = "CALC"
692 if i=3 then gApplication = "IMPRESS"
693 if i=4 then gApplication = "DRAW"
695 printlog gApplication 'Chr(13)
698 ' kontext "GraphicObjectbar"
699 ' if GraphicObjectbar.Exists then GraphicObjectbar.Close
700 for j=1 to 2 ' the two gallery-theme
702 Gallerys.Select jpeg_bkg
703 printlog " selected gallery-theme : Backgrounds"
707 Gallerys.Select iAnimation
708 printlog " selected gallery-theme : Animation"
711 if i=1 then ' test for writer
715 printlog " - insert on list view"
718 printlog " - insert on icon view"
722 View.Mousedown ( 5, 18 )
723 View.Mouseup ( 5, 18 )
724 View.typekeys "<DOWN>,<UP>"
727 View.TypeKeys "<SHIFT F10>" ' OpenContextMenu
743 View.TypeKeys "<SHIFT F10>" 'OpenContextMenu
749 printlog " - background -> page"
750 View.TypeKeys "<SHIFT F10>" 'OpenContextMenu
757 printlog " - background -> paragraph"
758 View.TypeKeys "<SHIFT F10>" 'OpenContextMenu
766 kontext "GraphicObjectbar"
767 if GraphicObjectbar.Exists then
768 if GraphicObjectbar.isDocked = False then
769 GraphicObjectbar.Move 900,900
775 else ' test for other applications ( calc, impress, draw )
776 kontext "GraphicObjectbar"
777 if GraphicObjectbar.Exists then
778 if GraphicObjectbar.isDocked = False then
779 GraphicObjectbar.Move 900,900
784 kontext "Gluepointsobjectbar"
785 if Gluepointsobjectbar.Exists then
786 if Gluepointsobjectbar.isDocked = false then
787 Gluepointsobjectbar.Move 900,900
793 if Optionsbar.Exists then
794 if Optionsbar.isDocked = false then
795 Optionsbar.Move 900,900
803 printlog " - insert on list view"
806 printlog " - insert on icon view"
810 View.Mousedown ( 5, 18 )
811 View.Mouseup ( 5, 18 )
812 View.typekeys "<DOWN>,<UP>"
815 View.TypeKeys "<SHIFT F10>" 'OpenContextMenu
823 View.TypeKeys "<SHIFT F10>" 'OpenContextMenu
841 '-------------------------------------------------------------------------
843 testcase tGallery_GalleryView_Delete
844 Dim jpeg_bkg as Integer
845 Dim iAnimation as Integer
846 Dim iSound as Integer
851 if gNetzInst = TRUE then
852 ' TODO: since we now only know net- installations, make it work!
853 printlog "No test for 'net' installations, because there are no rights to delete objects out of Gallery!"
854 'NOTE: Jump to NotForNetInst...
859 case 01 : jpeg_bkg = 1 : iAnimation = 2 : iSound = 28
860 case 07 : jpeg_bkg = 29 : iAnimation = 1 : iSound = 6
861 case 31 : jpeg_bkg = 1 : iAnimation = 2 : iSound = 28
862 case 33 : jpeg_bkg = 13 : iAnimation = 1 : iSound = 29
863 case 34 : jpeg_bkg = 7 : iAnimation = 1 : iSound = 28
864 case 36 : jpeg_bkg = 12 : iAnimation = 1 : iSound = 10
865 case 39 : jpeg_bkg = 10 : iAnimation = 1 : iSound = 27
866 case 46 : jpeg_bkg = 1 : iAnimation = 2 : iSound = 18
867 case 49 : jpeg_bkg = 1 : iAnimation = 2 : iSound = 17
868 case 55 : jpeg_bkg = 8 : iAnimation = 1 : iSound = 30
869 case 81 : jpeg_bkg = 1 : iAnimation = 3 : iSound = 10
870 case 82 : jpeg_bkg = 1 : iAnimation = 17 : iSound = 12
871 case 86 : jpeg_bkg = 1 : iAnimation = 9 : iSound = 13
872 case 88 : jpeg_bkg = 1 : iAnimation = 7 : iSound = 20
873 case else : jpeg_bkg = 1 : iAnimation = 2 : iSound = 17
874 warnlog "Please insert the entrienumbers for '3D-graphics', 'Sounds' and one with normal files ( Animations )"
877 gApplication = "WRITER"
883 Gallerys.Select jpeg_bkg
884 printlog " selected gallery-theme : Backgrounds"
888 Gallerys.Select iAnimation
889 printlog " selected gallery-theme : Animation"
893 Gallerys.Select iSound
894 printlog " selected gallery-theme : Sound"
901 printlog " Icon view"
906 printlog " List view"
912 View.MouseMove ( 5, 15 )
913 View.TypeKeys "<SHIFT F10>" 'OpenContextMenu true
918 printlog " delete one object => no"
921 printlog " delete one object => yes"
928 'NOTE: Jump End NotForNetInst
932 '-------------------------------------------------------------------------
933 testcase tGallery_Quick_check
935 dim sFile(1) as string
938 sFile(0) = ConvertPath ( gOfficeBasisPath + "share/gallery/apples.gif" ) '
939 sFile(1) = ConvertPath ( gOfficeBasisPath + "share/gallery/bullets/coffee_1.gif" ) '
943 if FileExists(sFile(i)) then
944 if (FileLen(sFile(i)) > 0 ) then
945 call hGrafikEinfuegen ( sFile(i) )
947 warnlog "File lenght is 0: '" + sFile(i) + "'"
950 warnlog "File doesn't exist: '" + sFile(i) + "'"