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: w_insertgraphic1.inc,v $
13 '* last change: $Author: vg $ $Date: 2008-08-18 12:30:39 $
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 : Test of the insert graphic function - 1
38 '************************************************************************
40 ' #1 tInsertGraphic_1 'Test default directory of inserting graphic -1
41 ' #1 tInsertGraphic_2 'Test default directory of inserting graphic -2
42 ' #1 tInsertGraphic_3 'Call up dialog Insert / Graphic via Menu ?Insert - Graphics - From File...
43 ' #1 tInsertGraphic_4 'Call up dialog Insert / Graphic via button from Insert-Toolbox of the Toolbar
44 ' #1 tInsertGraphic_5 'Insert a graphic with open button
45 ' #1 tInsertGraphic_6 'Insert a graphic with double click (Return)
46 ' #1 Tinsertgraphic_7 'Default setting in insert/graphic dialog
47 ' #1 tInsertGraphic_8 'Test preselect Filter (Format <All>)
48 ' #1 tInsertGraphic_9 'Test preselect Filter excepte for (Format <All>)
49 ' #1 tInsertGraphic_10 'Insert linked graphics and break the links via Menu Edit - Link
50 ' #1 tInsertGraphic_11 'Insert graphics from clipboard -- Edit/Paste
51 ' #1 tInsertGraphic_12 'Insert graphics from clipboard -- Edit/Paste special
52 ' #1 fInsertGraphics 'This function will insert a graphic with Link checked
54 '\***********************************************************************
56 testcase tInsertGraphic_1
59 Dim sPathName as String
62 PrintLog "- Test default dirtory of inserting graphic -1"
63 '/// Test default directory of inserting graphic -1
78 case else : QAErrorLog "The test does not support the language " + iSprache
84 '/// Tools / Options / StarOffice / Paths
86 call hToolsOptions ("StarOffice", "Paths")
88 Typ.TypeKeys "<HOME><SPACE>"
90 if iJump-1 > 0 then Typ.TypeKeys "<DOWN>", iJump-1
95 '/// Set a new path to Graphic
96 Pfad.SetText (ConvertPath (gTesttoolpath + "writer\optional\input\insertgraphic\"))
101 Kontext "ExtrasOptionenDlg"
105 '/// Insert / Graphic / From file
106 InsertGraphicsFromFile
107 Kontext "GrafikEinfuegenDlg"
109 '/// Input the jpg file's name which exists in the graphic dirtory , then press open button
110 Dateiname.Settext "Bughunter.jpg"
117 if Active.Exists then
118 if Active.GetRT = 304 then
120 QAErrorLog "#112220#The graphic directory in Tools/options doesn't work"
124 Kontext "GrafikEinfuegenDlg"
125 if GrafikEinfuegenDlg.Exists then GrafikEinfuegenDlg.Cancel
127 '/// Reset to default path
129 call hToolsOptions ("StarOffice", "Paths")
130 Typ.TypeKeys "<HOME>"
132 if iJump-1 > 0 then Typ.TypeKeys "<DOWN>", iJump-1
136 Kontext "ExtrasOptionenDlg"
143 '-------------------------------------------------------------------------------------------
145 testcase tInsertGraphic_2
147 PrintLog "- Test default dirtory of inserting graphic -2"
148 '/// Test default dirtory of inserting graphic -2
152 '/// Input the 1st picture which exists in the dirtory1(full path) ,
153 '/// + then press open button
154 InsertGraphicsFromFile
155 Kontext "GrafikEinfuegenDlg"
156 Dateiname.Settext ConvertPath(gTesttoolpath + "writer\optional\input\insertgraphic\Bughunter.jpg")
162 if Active.Exists then
163 if Active.GetRT = 304 then
166 Warnlog "1 - the file isn't in the dirtory " + ConvertPath(gTesttoolpath + "writer\optional\input\insertgraphic\")
169 Kontext "GrafikEinfuegenDlg"
170 GrafikEinfuegenDlg.Cancel
173 Call wTypeKeys "<ESCAPE>"
175 '/// Input the 2nd picture which exists in the dirtory2(only file name) ,
176 '/// + then press open button
177 InsertGraphicsFromFile
178 Kontext "GrafikEinfuegenDlg"
179 Dateiname.Settext "jolink.jpg"
185 if Active.Exists then
186 if Active.GetRT = 304 then
190 Warnlog "2 - Should get the warning messagebox"
193 Kontext "GrafikEinfuegenDlg"
194 GrafikEinfuegenDlg.Cancel
197 Call wTypeKeys "<ESCAPE>"
199 '/// Input the 3rd picture which exists in the dirtory2(full path) ,
200 '/// + then press open button
201 InsertGraphicsFromFile
202 Kontext "GrafikEinfuegenDlg"
203 Dateiname.Settext ConvertPath(gTesttoolpath + "writer\optional\input\graphics\bild.jpg")
209 if Active.Exists then
210 if Active.GetRT = 304 then
213 Warnlog "3 - the file isn't in the dirtory " + ConvertPath(gTesttoolpath + "writer\optional\input\grafik")
216 Kontext "GrafikEinfuegenDlg"
217 GrafikEinfuegenDlg.Cancel
220 Call wTypeKeys "<ESCAPE>"
222 '/// Input the 2nd picture which exists in the dirtory2(only file name) again,
223 '/// + then press open button
224 InsertGraphicsFromFile
225 Kontext "GrafikEinfuegenDlg"
226 Dateiname.Settext "jolink.jpg"
232 if Active.Exists then
233 if Active.GetRT = 304 then
236 Warnlog "2 - the file isn't in the dirtory " + ConvertPath(gTesttoolpath + "writer\optional\input\grafik")
239 Kontext "GrafikEinfuegenDlg"
240 GrafikEinfuegenDlg.Cancel
247 '-------------------------------------------------------------------------------------------
249 testcase tInsertGraphic_3
251 PrintLog "- Call up dialog Insert / Graphic via Menu ?Insert - Graphics - From File..."
252 '/// Call up dialog Insert / Graphic via Menu ?Insert - Graphics - From File
257 InsertGraphicsFromFile
258 Kontext "GrafikEinfuegenDlg"
260 if GrafikEinfuegenDlg.Exists then
261 GrafikEinfuegenDlg.Cancel
263 Warnlog "The dialogue can't be opened from Menu Insert - Graphics - From File..."
266 Warnlog "Something wrong when calling up dialogue from Menu Insert - Graphics - From File..."
273 '-------------------------------------------------------------------------------------------
275 testcase tInsertGraphic_X
276 Dim sShortcut as string
277 PrintLog "- Call up dialog Insert / Picture via Alt+I+U+F ..."
278 '/// Call up dialog Insert / Graphic via Alt+I+G+F
281 case 01: sShortcut = "<MOD2 I U F>"
283 QAErrorlog "Please add shortcut for Insert->Picture"
290 Call wTypeKeys sShortcut
291 Kontext "GrafikEinfuegenDlg"
293 if GrafikEinfuegenDlg.Exists then
294 GrafikEinfuegenDlg.Cancel
296 Warnlog "The dialogue can't be opened from Menu Insert - Picture - From File..."
299 Warnlog "Something wrong when calling up dialogue from Menu Insert - Picture - From File..."
306 '-------------------------------------------------------------------------------------------
308 testcase tInsertGraphic_4
310 PrintLog "- Call up dialog Insert / Graphic via button from Insert-Toolbox of the Toolbar "
311 '/// Call up dialog Insert / Graphic via button from Insert-Toolbox of the Toolbar
315 Call hToolbarSelect("INSERT", true )
320 Kontext "GrafikEinfuegenDlg"
322 if GrafikEinfuegenDlg.Exists then
323 GrafikEinfuegenDlg.Cancel
325 Warnlog "The dialogue can't be opened from Insert-Toolbox of the Toolbar"
332 '-------------------------------------------------------------------------------------------
334 testcase tInsertGraphic_5
336 PrintLog "- Insert a graphic with open button"
337 '/// Insert a graphic with open button
341 '/// Insert a Graphic , Insert/Graphics/From file
342 InsertGraphicsFromFile
343 Kontext "GrafikEinfuegenDlg"
344 Dateiname.Settext (ConvertPath (gTesttoolpath + "writer\optional\input\insertgraphic") )
348 if NOT GrafikEinfuegenDlg.Exists then Warnlog "The insert graphic dialog should be still there!"
350 Dateiname.Settext ("boy.gif")
352 '/// check if open button can insert a graphic or not
356 if GrafikEinfuegenDlg.Exists then Warnlog "The insert graphic dialog should NOT be there!"
359 fFormatGraphic("TabZusaetze")
360 Kontext "TabZusaetze"
363 Warnlog "The graphic is NOT inserted correctly !"
370 '-------------------------------------------------------------------------------------------
372 testcase tInsertGraphic_6
374 PrintLog "- Insert a graphic with double click (Return)"
375 '/// Insert a graphic with double click (Return)
379 '/// Insert a Graphic , Insert/Graphics/From file
380 InsertGraphicsFromFile
381 Kontext "GrafikEinfuegenDlg"
382 Dateiname.Settext (ConvertPath (gTesttoolpath + "writer\optional\input\insertgraphic") )
386 if NOT GrafikEinfuegenDlg.Exists then Warnlog "The insert graphic dialog should be still there!"
388 Dateiname.Settext ("boy.gif")
390 '/// check if double click (return) can insert a graphic or not
391 '/// [Note : the first is CVS directory]
392 DateiAuswahl.Select 2
395 DateiAuswahl.TypeKeys "<Return>"
398 if GrafikEinfuegenDlg.Exists then Warnlog "The insert graphic dialog should NOT be there!"
401 fFormatGraphic("TabZusaetze")
402 Kontext "TabZusaetze"
405 Warnlog "The graphic is NOT inserted correctly !"
412 '-------------------------------------------------------------------------------------------
414 testcase tInsertGraphic_7
416 Dim iFileType as Integer
422 case 01 : sStyle = "Graphics"
423 case 31 : sStyle = "Afbeeldingen"
424 case 33 : sStyle = "Image"
425 case 34 : sStyle = "Imagen"
426 case 39 : sStyle = "Immagine"
427 case 46 : sStyle = "Grafik"
428 case 49 : sStyle = "Grafik"
429 case 55 : sStyle = "Figuras"
430 case 81 : sStyle = "図"
431 case 82 : sStyle = "그래픽"
432 case 86 : sStyle = "图形"
433 case 88 : sStyle = "圖形"
434 case else : QAErrorLog "Now, this testcase does not support for the language " +iSprache
438 PrintLog "- Default setting in insert/graphic dialog"
439 '/// Default setting in insert/graphic dialog
443 '/// Insert a Graphic , Insert/Graphics/From file
444 InsertGraphicsFromFile
445 Kontext "GrafikEinfuegenDlg"
446 if Stil.GetItemText(Stil.GetSelIndex) <> sStyle then Warnlog "The default setting for Style is wrong ! should be "+ sStyle + " but get " + Stil.GetItemText(Stil.GetSelIndex)
447 if Dateityp.GetSelIndex <> iFileType then Warnlog "The default setting for file type is wrong ! should be "+ Dateityp.GetItemText(iFileType) + " but get " + Dateityp.GetItemText(Dateityp.GetSelIndex)
448 GrafikEinfuegenDlg.Cancel
454 '-------------------------------------------------------------------------------------------
456 testcase tInsertGraphic_8
458 Dim iFileType as Integer
459 Dim iFileNumber as Integer
461 iFileType = 1 'filter (Format <All>)
463 if gPlatGroup = "unx" then
464 iFileNumber = 4 '4 graphic files. (directory hidden on Unix)
466 iFileNumber = 5 '4 graphic files and 1 directory.
469 PrintLog "- Test preselect Filter (Format <All>)"
470 '/// Test preselect Filter (Format <All>)
474 '/// Insert a Graphic , Insert/Graphics/From file
475 InsertGraphicsFromFile
477 '/// Select filter (Format <All>)
478 Kontext "GrafikEinfuegenDlg"
479 Dateiname.Settext (ConvertPath (gTesttoolpath + "writer\optional\input\insertgraphic") )
483 Dateityp.Select iFileType
486 '/// Check if Filter (Format <All>) works well
487 if DateiAuswahl.GetItemCount <> iFileNumber then Warnlog "Filter (Format <All>) does NOT work well"
488 GrafikEinfuegenDlg.Cancel
494 '-------------------------------------------------------------------------------------------
496 testcase tInsertGraphic_9
498 Dim iFileType as Integer
499 Dim iFileNumber as Integer
501 iFileType = 2 'another filter except for (Format <All>) -- bmp
503 if gPlatGroup = "unx" then
506 iFileNumber = 2 'the first is the .svn-directory
509 PrintLog "- Test preselect Filter excepte for (Format <All>)"
510 '/// Test preselect Filter excepte for (Format <All>)
514 '/// Insert a Graphic , Insert/Graphics/From file
515 InsertGraphicsFromFile
517 '/// Select filter 'BMP'
518 Kontext "GrafikEinfuegenDlg"
519 Dateiname.Settext (ConvertPath (gTesttoolpath + "writer\optional\input\insertgraphic") )
523 Dateityp.Select iFileType
526 '/// Check if Filter BMP works well
527 if DateiAuswahl.GetItemCount <> iFileNumber then Warnlog "Filter BMP does NOT work well"
528 GrafikEinfuegenDlg.Cancel
534 '-------------------------------------------------------------------------------------------
536 testcase tInsertGraphic_10
538 Dim sTestFile as String
540 sTestFile = ConvertPath(gOfficepath + "user\work\tInsertGraphic_5.sxw")
542 PrintLog "- Insert linked graphics and break the links via Menu Edit - Link"
543 '/// Insert linked graphics and break the links via Menu Edit - Link
547 Call wTypeKeys "<Return>" , 2
549 '/// Insert a jpg Graphic
550 Call fInsertGraphics("Bughunter.jpg")
552 '/// + and set name as TEST1
553 Call fFormatGraphic("TabZusaetze")
555 Kontext "TabZusaetze"
556 ObjektName.SetText "TEST1"
560 Kontext "DocumentWriter"
561 Call wTypeKeys "<ESCAPE>"
562 Call wTypeKeys "<Return>" , 2
565 '/// Insert a gif Graphic (animated)
566 Call fInsertGraphics("boy.gif")
568 '/// + and set name as TEST2
569 Call fFormatGraphic("TabZusaetze")
571 Kontext "TabZusaetze"
572 ObjektName.SetText "TEST2"
576 Kontext "DocumentWriter"
577 Call wTypeKeys "<ESCAPE>"
578 Call wTypeKeys "<Return>" , 2
581 '/// Insert a bmp Graphic
582 Call fInsertGraphics("game.bmp")
584 '/// + and set name as TEST3
585 Call fFormatGraphic("TabZusaetze")
587 Kontext "TabZusaetze"
588 ObjektName.SetText "TEST3"
592 Kontext "DocumentWriter"
593 Call wTypeKeys "<ESCAPE>"
594 Call wTypeKeys "<Return>" , 2
599 Kontext "VerknuepfungenBearbeiten"
601 '/// Select all graphics
602 Liste.TypeKeys "<Shift End>"
609 if Active.Exists(1) then
612 warnlog "Messagebox should appear!"
616 '/// Close the edit/link dialogue
617 Kontext "VerknuepfungenBearbeiten"
618 VerknuepfungenBearbeiten.Close
621 '/// Check if the inserted graphics are still there
622 Kontext "DocumentWriter"
623 Call wTypeKeys ( "<Shift F4>" )
625 fFormatGraphic("TabZusaetze")
627 Kontext "TabZusaetze"
628 if ObjektName.GetText <> "TEST1" then warnlog "The first graphic isn't right!"
632 Kontext "DocumentWriter"
633 Call wTypeKeys "<Tab>"
634 Call fFormatGraphic("TabZusaetze")
636 Kontext "TabZusaetze"
637 if ObjektName.GetText <> "TEST2" then Warnlog "The second graphic isn't right!"
641 Kontext "DocumentWriter"
642 Call wTypeKeys "<Tab>"
643 Call fFormatGraphic("TabZusaetze")
645 Kontext "TabZusaetze"
646 if ObjektName.GetText <> "TEST3" then Warnlog "The third graphic isn't right!"
650 Kontext "DocumentWriter"
651 Call wTypeKeys "<ESCAPE><Home>"
652 PrintLog "- Save and Reload the file"
654 '/// Save the file and close the file
655 Call hFileSaveAsWithFilterKill(gOfficepath + "user\work\tInsertGraphic_5.odt", "writer8")
661 Call hFileOpen(gOfficepath + "user\work\tInsertGraphic_5.odt")
663 Call sMakeReadOnlyDocumentEditable
665 '/// Check if the inserted graphics are still there
666 Kontext "DocumentWriter"
667 Call wTypeKeys ( "<Shift F4>" )
669 if fFormatGraphic("TabZusaetze") = false then
670 Warnlog "#i46300#linked JPEG pictures will disappear when doc is modified."
675 Kontext "TabZusaetze"
676 if ObjektName.GetText <> "TEST1" then Warnlog "The first graphic isn't right!"
680 Kontext "DocumentWriter"
681 Call wTypeKeys "<Tab>"
683 Call fFormatGraphic("TabZusaetze")
685 Kontext "TabZusaetze"
686 if ObjektName.GetText <> "TEST2" then Warnlog "The second graphic isn't right!"
690 Kontext "DocumentWriter"
691 Call wTypeKeys "<Tab>"
693 Call fFormatGraphic("TabZusaetze")
695 Kontext "TabZusaetze"
696 if ObjektName.GetText <> "TEST3" then Warnlog "The third graphic isn't right!"
703 '-------------------------------------------------------------------------------------------
705 testcase tInsertGraphic_11
707 Dim sGraphicName as String
709 Dim sHeight as String
712 Dim iFromLeft as Integer
713 Dim iFromUp as Integer
716 sGraphicName = "TEST1"
717 sWidth = "5"+ gSeperator + "00" + gMeasurementUnit
718 sHeight = "4"+ gSeperator + "00" + gMeasurementUnit
719 sLeft = "2"+ gSeperator + "00" + gMeasurementUnit
720 sUp = "3"+ gSeperator + "00" + gMeasurementUnit
725 sURL = "http://www.sun.com/"
727 PrintLog "- Insert graphics from clipboard -- Edit/Paste"
728 '/// Insert graphics from clipboard -- Edit/Paste
732 '/// Insert a jpg Graphic and do some configuration
733 fInsertGraphics("Bughunter.jpg")
735 fFormatGraphic("TabZusaetze")
737 Kontext "TabZusaetze"
738 ObjektName.SetText sGraphicName
741 fFormatGraphic("TabType")
747 Height.SetText sHeight
749 Horizontal.Select iFromLeft
751 Vertical.Select iFromUp
753 HorizontalBy.SetText sLeft
755 VerticalBy.SetText sUp
759 Call fFormatGraphic("TabHyperlinkRahmen")
760 Kontext "TabHyperlinkRahmen"
764 TabHyperlinkRahmen.OK
766 '/// copy graphic to clipboard
774 '/// paste the graphic from clipboard
778 '/// Check if the pasted graphic is correct
779 Call fFormatGraphic("TabZusaetze")
781 Kontext "TabZusaetze"
782 if ObjektName.GetText <> sGraphicName then Warnlog "The graphic's name is not correct ! "
785 Call fFormatGraphic("TabType")
788 if Width.GetText <> sWidth then Warnlog "The graphic's width is not correct ! "
790 if Height.GetText <> sHeight then Warnlog "The graphic's height is not correct ! "
792 if Horizontal.GetSelIndex <> iFromLeft then Warnlog "The graphic's Horizontal option is not correct ! "
794 if Vertical.GetSelIndex <> iFromUp then Warnlog "The graphic's vertical option is not correct ! "
796 if HorizontalBy.GetText <> sLeft then Warnlog "The graphic's Horizontal is not correct ! "
798 if VerticalBy.GetText <> sUp then Warnlog "The graphic's vertical is not correct ! "
802 Call fFormatGraphic("TabHyperlinkRahmen")
804 Kontext "TabHyperlinkRahmen"
805 if URL.GetText <> sURL then Warnlog "The graphic's URL is not correct ! "
807 TabHyperlinkRahmen.Cancel
812 '-------------------------------------------------------------------------------------------
814 testcase tInsertGraphic_12
816 Dim sGraphicName as String
817 Dim sOriginalGraphicName as String
819 Dim sHeight as String
822 Dim sOriginalWidth as String
823 Dim sOriginalHeight as String
824 Dim sOriginalLeft as String
825 Dim sOriginalUp as String
826 Dim iFromLeft as Integer
827 Dim iFromUp as Integer
828 Dim iOriginalFromLeft as Integer
829 Dim iOriginalFromUp as Integer
833 sGraphicName = "TEST1"
834 sWidth = "5"+ gSeperator + "00" + gMeasurementUnit
835 sHeight = "4"+ gSeperator + "00" + gMeasurementUnit
836 sLeft = "2"+ gSeperator + "00" + gMeasurementUnit
837 sUp = "3"+ gSeperator + "00" + gMeasurementUnit
842 sURL = "http://www.sun.com/"
844 PrintLog "- Insert graphics from clipboard -- Edit/Paste special"
845 '/// Insert graphics from clipboard -- Edit/Paste special
849 '/// Insert a jpg Graphic and do some configuration
850 fInsertGraphics("Bughunter.jpg")
852 fFormatGraphic("TabZusaetze")
854 sOriginalGraphicName = ObjektName.GetText
856 ObjektName.SetText sGraphicName
860 fFormatGraphic("TabType")
863 sOriginalWidth = Width.GetText
864 sOriginalHeight = Height.GetText
865 iOriginalFromLeft = Horizontal.GetSelIndex
866 iOriginalFromUp = Vertical.GetSelIndex
867 sOriginalLeft = HorizontalBy.GetText
868 sOriginalUp = VerticalBy.GetText
873 Height.SetText sHeight
875 Horizontal.Select iFromLeft
877 Vertical.Select iFromUp
879 HorizontalBy.SetText sLeft
881 VerticalBy.SetText sUp
885 fFormatGraphic("TabHyperlinkRahmen")
889 TabHyperlinkRahmen.OK
891 '/// copy graphic to clipboard
895 '/// delete the graphic
896 Call wTypeKeys "<Delete>"
899 '/// 1. Edit/Paste special the graphic from
900 '/// + Graphic [StarOffice Writer]
901 EditPasteSpecialWriter
903 Kontext "InhaltEinfuegen"
904 if Auswahl.GetItemCount < 4 then
905 QAErrorlog "#i47320#Only " & Auswahl.GetItemCount & " graphic formats available"
906 InhaltEinfuegen.Cancel
909 PrintLog "- " & Auswahl.GetSelText
913 '/// Check if the pasted graphic properties are correct
916 Active.Setpage TabZusaetze
917 Kontext "TabZusaetze"
919 if ObjektName.GetText <> sGraphicName then Warnlog "The graphic's name is not correct ! "
922 Active.Setpage TabType
925 if Width.GetText <> sWidth then Warnlog "The graphic's width is not correct ! "
927 if Height.GetText <> sHeight then Warnlog "The graphic's height is not correct ! "
929 if Horizontal.GetSelIndex <> iFromLeft then Warnlog "The graphic's Horizontal option is not correct ! "
931 if Vertical.GetSelIndex <> iFromUp then Warnlog "The graphic's vertical option is not correct ! "
933 if HorizontalBy.GetText <> sLeft then Warnlog "The graphic's Horizontal is not correct ! "
935 if VerticalBy.GetText <> sUp then Warnlog "The graphic's vertical is not correct ! "
939 Active.Setpage TabHyperlinkRahmen
940 Kontext "TabHyperlinkRahmen"
942 if URL.GetText <> sURL then Warnlog "The graphic's URL is not correct ! "
944 TabHyperlinkRahmen.Ok
947 Call wTypeKeys "<Delete>"
954 '-------------------------------------------------------------------------------------------
956 function fInsertGraphics (sFileName as String)
957 'This function will insert a graphic with Link checked
959 InsertGraphicsFromFile
960 Kontext "GrafikEinfuegenDlg"
961 Dateiname.Settext (ConvertPath (gTesttoolpath + "writer\optional\input\insertgraphic\" + sFileName) )