1 '*******************************************************************************
2 '* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 '* Copyright 2008 by Sun Microsystems, Inc.
6 '* OpenOffice.org - a multi-platform office productivity suite
8 '* $RCSfile: w_tool1.inc,v $
12 '* last change: $Author: vg $ $Date: 2008-08-18 12:43:01 $
14 '* This file is part of OpenOffice.org.
16 '* OpenOffice.org is free software: you can redistribute it and/or modify
17 '* it under the terms of the GNU Lesser General Public License version 3
18 '* only, as published by the Free Software Foundation.
20 '* OpenOffice.org is distributed in the hope that it will be useful,
21 '* but WITHOUT ANY WARRANTY; without even the implied warranty of
22 '* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 '* GNU Lesser General Public License version 3 for more details
24 '* (a copy is included in the LICENSE file that accompanied this code).
26 '* You should have received a copy of the GNU Lesser General Public License
27 '* version 3 along with OpenOffice.org. If not, see
28 '* <http://www.openoffice.org/license.html>
29 '* for a copy of the LGPLv3 License.
31 '/******************************************************************************
33 '* owner : helge.delfs@sun.com
35 '* short description : Put description here
37 ' \*****************************************************************************
44 if ( hUseAsyncSlot( "EditCut" ) = -1 ) then
45 Warnlog "Unable to execute 'Edit / Cut'!. Maybe object not selected!"
50 Call gMouseClick ( 99,80 )
53 hUseAsyncSlot( "EditPasteSpecialWriter" )
55 Kontext "InhaltEinfuegen"
56 if ( InhaltEinfuegen.exists( 1 ) ) then
57 Anzahl = Auswahl.GetItemCount
62 if ( hUseAsyncSlot( "EditDeleteContents" ) = -1 ) then
63 Warnlog "Unable to execute Edit / Delete / Contents ! Entry: " + i
65 Call gMouseClick ( 99,80 )
66 if ( hUseAsyncSlot( "EditPasteSpecialWriter" ) = -1 ) then
67 warnlog "Unable to execute Edit / Paste / Special!"
70 Kontext "InhaltEinfuegen"
72 InhaltEinfuegen.Cancel
74 warnlog( "Dialog <InhaltEinfuegen> is not available" )
78 ' -----------------------------------------------------------------------
81 Kontext "DocumentWriter"
82 DocumentWriter.MouseDown 35, 25
83 DocumentWriter.MouseMove 70, 60
84 DocumentWriter.MouseUp 70, 60
88 ' -----------------------------------------------------------------------
92 if ( hUseAsyncSlot( "EditCut" ) = -1 ) then
93 Warnlog "Unable to Cut object. 'Edit / Cut' is disabled!"
97 Call wTypeKeys "<Escape>"
98 hUseAsyncSlot( "EditPaste" )
100 hUseAsyncSlot( "EditCopy" )
101 Call wTypeKeys "<Escape>"
103 hUseAsyncSlot( "EditPaste" )
105 Call wTypeKeys "<Delete>"
107 Call wTypeKeys "<Escape>"
111 ' -----------------------------------------------------------------------
113 sub FeldbefehlAendernUndKontrollieren ( Selektion as Integer )
115 Dim Merk_dir_das as String
117 Call wTypeKeys "<Left>"
119 Kontext "FeldbefehlBearbeitenDokument"
120 if ( FeldbefehlBearbeitenDokument.exists( 1 ) ) then
121 if Formatliste.IsVisible AND Formatliste.IsEnabled then
122 Formatliste.Select Selektion
123 Merk_dir_das=Formatliste.GetSelText
125 if Zahlenformat.IsVisible AND Zahlenformat.IsEnabled then
126 Zahlenformat.Select Selektion
127 Merk_dir_das=Zahlenformat.GetSelText
132 FeldbefehlBearbeitenDokument.OK
134 warnlog( "Dialog <FeldbefehlBearbeitenDokument> not available" )
138 Kontext "FeldbefehlBearbeitenDokument"
139 if ( FeldbefehlBearbeitenDokument.exists( 1 ) ) then
140 if Formatliste.IsVisible AND Formatliste.IsEnabled then
141 if Formatliste.GetSelText <> Merk_dir_das then Warnlog "Changing the field has not been worked. Format " + Merk_dir_das + " Is : Format " + Formatliste.GetSelText
143 if Zahlenformat.IsVisible AND Zahlenformat.IsEnabled then
144 if Zahlenformat.GetSelText <> Merk_dir_das then Warnlog "Changing the field has not been worked. Format " + Merk_dir_das + " Is : Format " + Zahlenformat.GetSelText
146 if Auswahl.GetSelIndex <> 2 then Warnlog "Changing the field has not been worked."
149 FeldbefehlBearbeitenDokument.OK
151 warnlog( "Dialog <FeldbefehlBearbeitenDokument> not available" )
153 Call wTypeKeys "<End>"
155 Call wTypeKeys "<Return>"
158 ' -----------------------------------------------------------------------
160 sub hEinfuegenFloatingFrame
163 Kontext "TabEigenschaften"
164 FrameName.SetText "Hallo"
165 Inhalt.SetText ConvertPath ( gTesttoolpath + "input\desktop\frameset.htm" )
171 ' -----------------------------------------------------------------------
176 Active.SetPage TabType
182 ' -----------------------------------------------------------------------
186 Kontext "AutoformatDiagramm1"
191 ' -----------------------------------------------------------------------
199 Kontext "DocumentWriter"
200 DocumentWriter.MouseDown 20, 20
201 DocumentWriter.MouseMove 40, 40
202 DocumentWriter.MouseUp 40, 40
207 ' -----------------------------------------------------------------------
209 sub wWriterKickBoxAway
210 ' Call this routine if you don't expect a messagebox
211 ' expect on an error. Closes messagebox and gives a Warnlog
213 if Active.Exists then
214 if Active.GetRT = 304 then
215 Warnlog Active.Gettext
225 '----------------------------------------------------------------
227 sub tCheckAutotextInGroup(NumberOff as integer, NumberVariant as integer)
229 for j = 1 to NumberOff
230 Liste.Select j + NumberVariant
231 printlog "- " & Liste.GetSelText
236 Kontext "Active" ' Messagebox bei Basic-Fehler
237 if Active.Exists then
238 Warnlog Active.Gettext + "Group " + NumberVariant + " Entry " + j
242 Kontext "Eingabefeld"
243 if Eingabefeld.Exists then Eingabefeld.Cancel
245 Call wTypeKeys "<Mod1 a>"
247 if GetClipboard = "" then Warnlog "No autotext inserted. Variant: "+ NumberVariant + " " + j
249 Warnlog "Variant "+ NumberVariant + " " + j +" has a Problem."
251 Call wTypeKeys "<Delete>" ' only text
252 Call wMarkObjects(TRUE)
255 if active.Exists then
256 QAErrorlog Active.Gettext
260 if not Vorschau_anzeigen.IsChecked then Warnlog "Preview isn't checked anymore!"
264 '----------------------------------------------------------------
266 sub hMalZeichnenMitSelektion ( xS, yS, xE, yE )
267 Select Case gApplication
269 Kontext "DocumentWriter"
270 DocumentWriter.MouseDown ( xS, yS )
271 DocumentWriter.MouseMove ( xE, yE )
272 DocumentWriter.MouseUp ( xE, yE )
275 Kontext "DocumentWriterWeb"
276 DocumentWriterWeb.MouseDown ( xS, yS )
277 DocumentWriterWeb.MouseMove ( xE, yE )
278 DocumentWriterWeb.MouseUp ( xE, yE )
280 Case "MASTERDOCUMENT"
281 Kontext "DocumentMasterDoc"
282 DocumentMasterDoc.MouseDown ( xS, yS )
283 DocumentMasterDoc.MouseMove ( xE, yE )
284 DocumentMasterDoc.MouseUp ( xE, yE )
290 '----------------------------------------------------------------
292 sub hMalZeichnen ( xS, yS, xE, yE )
293 Select Case gApplication
295 Kontext "DocumentWriter"
296 DocumentWriter.MouseDown ( xS, yS )
297 DocumentWriter.MouseMove ( xE, yE )
298 DocumentWriter.MouseUp ( xE, yE )
300 if DocumentWriter.IsEnabled then Call wTypeKeys "<Escape>"
303 Kontext "DocumentWriterWeb"
304 DocumentWriterWeb.MouseDown ( xS, yS )
305 DocumentWriterWeb.MouseMove ( xE, yE )
306 DocumentWriterWeb.MouseUp ( xE, yE )
308 if DocumentWriterWeb.IsEnabled then DocumentWriterWeb.TypeKeys "<Escape>"
310 Case "MASTERDOCUMENT"
311 Kontext "DocumentMasterDoc"
312 DocumentMasterDoc.MouseDown ( xS, yS )
313 DocumentMasterDoc.MouseMove ( xE, yE )
314 DocumentMasterDoc.MouseUp ( xE, yE )
316 if DocumentMasterDoc.IsEnabled then DocumentMasterDoc.TypeKeys "<Escape>"
321 '----------------------------------------------------------------
323 sub sMenufunktionen(Fuer_Was as string)
326 Kontext "FormControls"
329 if ControlProperties.IsEnabled then
330 ControlProperties.Click ' Formularfunktion über Toolbox abschalten
335 if gPlatform = "osx" then
336 Warnlog "#i82427#-Mac OS X (Aqua): Drawing function does not draw anything"
338 Warnlog "Button (" + i + ")" + Fuer_Was + " is disabled "
348 Kontext "ControlPropertiesDialog"
349 if ControlPropertiesDialog.Exists then
350 ControlPropertiesDialog.Close
354 Kontext "ControlPropertiesDialog"
355 if ControlPropertiesDialog.Exists then
356 ControlPropertiesDialog.Close
358 Warnlog " - Controlfieldproperties "+ Fuer_Was +" from Menu not available!"
363 if gPlatform = "osx" then
364 Warnlog "#i82427#-Mac OS X (Aqua): Drawing function does not draw anything"
366 Warnlog " - Controlfieldproperties "+ Fuer_Was +" from Menu not available!"
370 Call wTypeKeys "<Escape>"
371 Kontext "FormControls"
374 '----------------------------------------------------------------
376 sub sAutopilot_Groupelement
377 Kontext "AutopilotGroupelement"
378 if AutopilotGroupelement.Exists then
379 printlog " -Autopilot-Group-Box Page 1"
380 Kontext "TabGroupBoxData"
381 Call DialogTest ( TabGroupBoxData )
382 Names.Settext "Optionsfeld 1"
383 if AddTo.IsEnabled then
386 Warnlog "Entry couldn't be overtaken in 1st Window of the Group Box-Autopilot!"
387 Kontext "AutopilotGroupelement"
391 Kontext "AutopilotGroupelement"
392 if NextButton.IsEnabled then
395 Warnlog "In 1st Window the 'Next'-button is disabled!"
399 printlog " -Autopilot-Group-Box Page 2"
400 Kontext "TabDefaultFieldSelection"
401 Call DialogTest ( TabDefaultFieldSelection )
402 Kontext "AutopilotGroupelement"
403 if NextButton.IsEnabled then
406 Warnlog "In 2nd Window the 'Next'-button is disabled!!"
407 AutopilotGroupelement.Cancel
410 printlog " -Autopilot-Group-Box Page 3"
411 Kontext "TabDatabaseValues"
412 Call DialogTest ( TabDatabaseValues )
413 Kontext "AutopilotGroupelement"
414 if NextButton.IsEnabled then
417 Warnlog "In 3rd Window the 'Next'-button is disabled!"
418 AutopilotGroupelement.Cancel
421 printlog " -Autopilot-Group-Box Page 4"
422 Kontext "TabCreateOptionGroup"
423 Call DialogTest ( TabCreateOptionGroup )
424 Kontext "AutopilotGroupelement"
425 if CreateButton.IsEnabled then
428 Warnlog "In 4th Window the 'Create'-button is disabled!"
429 AutopilotGroupelement.Cancel
432 Warnlog "- Autopilot for Group Box didn't appear!"
437 '----------------------------------------------------------------
439 sub sAutopilot_ListboxCombobox(WhichBox as String)
440 Kontext "AutoPilotListComboBox"
441 if AutoPilotListComboBox.Exists then
442 printlog " -Autopilot-Listbox Page 1"
443 Kontext "TabListBoxData"
444 if TabListboxData.Exists then
445 Call DialogTest( TabListBoxData )
447 if Table.GetItemCount > 0 then
452 if Messagebox.Exists then
453 Warnlog Messagebox.Gettext
456 Warnlog "No table selectable!"
460 Kontext "AutoPilotListComboBox"
466 Kontext "AutoPilotListComboBox"
467 if NextButton.IsEnabled then
469 printlog " -Autopilot-Listbox Page 2"
470 Kontext "TabTableSelection"
471 Call DialogTest ( TabTableSelection )
472 if TableSelection.GetItemCount > 0 then
473 TableSelection.Select 1
474 Kontext "AutoPilotListComboBox"
475 if NextButton.IsEnabled then
477 printlog " -Autopilot-Listbox Page 3"
478 Kontext "TabFieldSelection"
479 Call DialogTest ( TabFieldSelection )
480 ExistingFields.Select 1
481 Kontext "AutoPilotListComboBox"
482 if NextButton.IsEnabled then
484 Select Case Ucase(WhichBox)
486 printlog " -Autopilot-Listbox Page 4"
487 Kontext "TabFieldLink"
488 Call DialogTest ( TabFieldLink )
490 Kontext "TabDatabaseField"
491 Call DialogTest ( TabDatabaseField )
493 Kontext "AutoPilotListComboBox"
496 Warnlog "Next-Button on 3rd Tabpage disabled!"
501 Warnlog "Next-Button on Second Tabpage disabled!"
506 Warnlog "Unable to select table on second tabpage!"
511 Warnlog "Next-Button on first Tabpage disabled!"
516 Warnlog "Autopilot is not up!"
520 '----------------------------------------------------------------
522 sub sAutopilotTableElement
523 Kontext "AutopilotTableElement"
524 if AutopilotTableElement.Exists then
525 Call DialogTest ( AutopilotTableElement )
526 Kontext "TabListBoxData"
527 if TabListboxData.Exists then
528 Call DialogTest( TabListBoxData )
530 if Table.GetItemCount > 0 then
534 if Messagebox.Exists then
535 Warnlog Messagebox.Gettext
538 Warnlog "No table selectable!"
540 Kontext "AutopilotTableElement"
545 Kontext "AutopilotTableElement"
548 Warnlog "Autopilot Table Element is not up"
552 ' *****************************************************
553 ' ************* Subroutines for Fields ****************
554 ' *****************************************************
556 function uTabDokument as Integer
557 Dim i : Dim j : Dim k : Dim Ende : Dim NichtMachen
559 Dim AlterWert as String : Dim Naechster as String
561 printlog " - Tabpage Document"
564 Active.SetPage TabDokumentFeldbefehle
565 Kontext "TabDokumentFeldbefehle"
566 for i=1 to Feldtyp.GetItemCount
569 if Formatliste.IsVisible then
570 if Formatliste.IsEnabled then
571 if Auswahl.IsEnabled then
572 for j=1 to Auswahl.GetItemCount
574 for k=1 to Formatliste.GetItemCount
583 for k=1 to Formatliste.GetItemCount
591 if Auswahl.IsEnabled then
592 for j=1 to Auswahl.GetItemCount
601 if Zahlenformat.IsEnabled then
602 if Auswahl.IsEnabled then
603 for j=1 to Auswahl.GetItemCount
605 for k=1 to Zahlenformat.GetItemCount
606 Zahlenformat.Select k
615 for k=1 to Zahlenformat.GetItemCount
616 Zahlenformat.Select k
624 if Auswahl.IsEnabled then
625 for j=1 to Auswahl.GetItemCount
636 printlog " here are " + Zaehler + " Fields selectable"
639 Warnlog "Tabpage Document: Error in variant " + i + " " + j + " " + k
641 uTabDokument = Zaehler
644 ' -----------------------------------------------------------------------
646 function uTabReferenzen as Integer
649 printlog " - Tabpage Reference"
653 Active.SetPage TabReferenzen
654 Kontext "TabReferenzen"
655 if NOT NameFeld.IsEnabled then Feldtyp.Select 2
656 NameFeld.SetText "Testtool"
659 if NameFeld.IsEnabled then Feldtyp.Select 2
660 for i=1 to Formatliste.GetItemCount
663 if Einfuegen.IsEnabled then Einfuegen.Click
666 printlog " - here are " + Zaehler + " Fields selectable"
669 Warnlog "Tabpage References: Error in Listentry Type " + i
671 uTabReferenzen = Zaehler
674 ' -----------------------------------------------------------------------
676 function uTabFunktionen as Integer
677 Dim i : Dim j : Dim k : Dim Ende : Dim NichtMachen
678 Dim Zaehler, x as integer
679 Dim weiter as Boolean
680 Dim AlterWert as String : Dim Naechster as String
682 printlog " - Tabpage Function"
684 Zaehler = 0 : i=0 : j=0 : k= 0
686 Active.SetPage TabFunktionen
687 Kontext "TabFunktionen"
688 for i=1 to Feldtyp.GetItemCount
691 if Formatliste.IsVisible AND Formatliste.IsEnabled then
692 for j=1 to FormatListe.GetItemCount
694 Platzhalter.SetText "Ein"
695 Hinweis.SetText "Test"
697 if Einfuegen.IsEnabled then Einfuegen.Click
702 if Dann.IsVisible AND Dann.IsEnabled then
703 Bedingung.SetText "Hallo"
707 if Einfuegen.IsEnabled then Einfuegen.Click
711 if weiter = TRUE then
712 if ( Hinweis.IsVisible AND Hinweis.IsEnabled ) AND NOT Namefeld.IsEnabled then
713 Hinweis.SetText "Testtool"
716 Kontext "Eingabefeld"
717 if Eingabefeld.Exists then
720 Warnlog "The textfield is missing in Variant " + i + " " + j + " " + k + " !"
722 Kontext "TabFunktionen"
727 if weiter = TRUE then
728 if MakroButton.IsEnabled then
730 ' if no JRE is installed a messagebox appears
734 if Active.Exists then
735 if Active.GetRT = 304 then
736 if x = 1 then Warnlog Active.Gettext
746 if Ausfuehren.IsEnabled then
751 Kontext "TabFunktionen"
753 if Einfuegen.IsEnabled then Einfuegen.Click
758 if weiter = TRUE then
759 if Bedingung.IsEnabled AND TextEinfuegen.IsEnabled then
760 Bedingung.SetText "Ein"
761 TextEinfuegen.SetText "Test"
763 if Einfuegen.IsEnabled then Einfuegen.Click
768 if weiter = TRUE then
769 if Bedingung.IsEnabled AND NOT Wert.IsEnabled then
770 Bedingung.SetText "Ein Test"
772 if Einfuegen.IsEnabled then Einfuegen.Click
779 printlog " - here are " + Zaehler + " Fields selectable"
782 Warnlog "Tabpage Functions: Error in entry type " + i + " " + j
784 uTabFunktionen = Zaehler
787 ' -----------------------------------------------------------------------
789 function uTabDokumentinfo as Integer
790 Dim i : Dim j : Dim k : Dim Ende : Dim NichtMachen
792 Dim AlterWert as String : Dim Naechster as String
794 printlog " - Tabpage DocInformation"
796 Zaehler = 0 : i=0 : j=0 : k= 0
798 Active.SetPage TabDokumentInfoFeldbefehle
799 Kontext "TabDokumentInfoFeldbefehle"
802 AlterWert = Feldtyp.GetText
803 Feldtyp.TypeKeys "<Down>"
804 Naechster = Feldtyp.GetText
805 Feldtyp.TypeKeys "<Up>"
806 Feldtyp.TypeKeys "<Add>"
807 Feldtyp.TypeKeys "<Down>"
808 if Feldtyp.GetText <> Naechster then NichtMachen=i
809 Feldtyp.TypeKeys "<Up>"
810 Feldtyp.TypeKeys "<Down>"
811 if Feldtyp.GetText = AlterWert then
817 Feldtyp.TypeKeys "<Up>", Ende+1
820 for i=1 to Ende ' Alle Feldtypen
822 if Auswahl.IsEnabled then
823 for j=1 to Auswahl.GetItemCount
825 if Zahlenformat.IsEnabled then
826 for k=1 to Zahlenformat.GetItemCount
827 Zahlenformat.Select k
828 Zaehler = Zaehler + 1
830 if TabZahlen.Exists then TabZahlen.Cancel
831 Kontext "TabDokumentinfoFeldbefehle"
832 if Einfuegen.IsEnabled then Einfuegen.Click
836 Zaehler = Zaehler + 1
837 if Einfuegen.IsEnabled then Einfuegen.Click
842 if Zahlenformat.IsEnabled then
843 for k=1 to Zahlenformat.GetItemCount
844 Zahlenformat.Select k
845 Zaehler = Zaehler + 1
847 if TabZahlen.Exists then TabZahlen.Cancel
848 Kontext "TabDokumentinfoFeldbefehle"
849 if Einfuegen.IsEnabled then Einfuegen.Click
853 Zaehler = Zaehler + 1
854 if Einfuegen.IsEnabled then Einfuegen.Click
857 if i = NichtMachen-1 then
858 Feldtyp.TypeKeys "<Down><Down>"
860 Feldtyp.TypeKeys "<Down>"
864 printlog " - here are " + Zaehler + " Fields selectable"
867 Warnlog "Tabpage Variables: Error on type entry " + i + " " + j + " " + k
869 uTabDokumentinfo = Zaehler
872 ' -----------------------------------------------------------------------
874 function uTabVariablen as Integer
875 Dim i : Dim j : Dim k : Dim Ende : Dim NichtMachen
877 Dim AlterWert as String : Dim Naechster as String
878 printlog " - Tabpage Variables"
881 Zaehler = 0 : i=0 : j=0 : k=0
883 Active.SetPage TabVariablen
884 Kontext "TabVariablen"
886 for i=1 to Feldtyp.GetItemCount
889 Feldtyp.TypeKeys "<Up>"
890 Feldtyp.TypeKeys "<Down>"
892 if NameText.IsEnabled then NameText.SetText "Hallo"
893 if Wert.IsEnabled then Wert.SetText "189882"
895 if Auswahl.IsEnabled AND ( Formatliste.IsEnabled OR Zahlenformat.IsEnabled )then
896 for j=1 to Auswahl.GetItemCount
898 if FormatListe.IsVisible AND FormatListe.IsEnabled then
899 for k=1 to Formatliste.GetItemCount
901 Zaehler = Zaehler + 1
902 if Einfuegen.IsEnabled then Einfuegen.Click
906 if Zahlenformat.IsVisible AND Zahlenformat.IsEnabled then
907 for k=1 to Zahlenformat.GetItemCount
908 Zahlenformat.Select k
909 Zaehler = Zaehler + 1
911 if TabZahlen.Exists then TabZahlen.OK
912 Kontext "TabVariablen"
913 if Einfuegen.IsEnabled then Einfuegen.Click
914 Kontext "Eingabefeld"
915 if Eingabefeld.Exists then Eingabefeld.OK
916 Kontext "TabVariablen"
924 if FormatListe.IsVisible AND FormatListe.IsEnabled then
925 for k=1 to Formatliste.GetItemCount
927 Zaehler = Zaehler + 1
928 if Einfuegen.IsEnabled then Einfuegen.Click
930 if TabZahlen.Exists then TabZahlen.OK
931 Kontext "TabVariablen"
935 if Zahlenformat.IsVisible AND Zahlenformat.IsEnabled then
936 for k=1 to Zahlenformat.GetItemCount
937 Zahlenformat.Select k
938 Zaehler = Zaehler + 1
940 if TabZahlen.Exists then TabZahlen.OK
941 Kontext "TabVariablen"
942 if Einfuegen.IsEnabled then Einfuegen.Click
943 Kontext "Eingabefeld"
944 if Eingabefeld.Exists then Eingabefeld.OK
945 Kontext "TabVariablen"
954 printlog " - here are " + Zaehler + " Fields selectable"
957 Warnlog "Tabpage Variables: Error on entry type" + i + " " + j + " " + k
959 uTabVariablen = Zaehler
962 ' -----------------------------------------------------------------------
964 function uTabDatenbank as Integer
965 Dim i : Dim j : Dim k : Dim Ende : Dim NichtMachen
967 Dim AlterWert as String : Dim Naechster as String
969 printlog " - Tabpage Database"
971 Zaehler = 0 : i=0 : j=0 : k= 0
973 Active.SetPage TabDatenbank
974 Kontext "TabDatenbank"
976 Datenbankauswahl.TypeKeys "<Up>", 5
977 for i=1 to Feldtyp.GetItemCount
980 if Satznummer.IsEnabled then Satznummer.SetText "Na_mal_sehen"
982 AlterWert = Datenbankauswahl.GetText
984 Datenbankauswahl.TypeKeys "<Add>"
985 Datenbankauswahl.TypeKeys "<Down>"
986 Datenbankauswahl.TypeKeys "<Add>"
987 Datenbankauswahl.TypeKeys "<Down>"
989 Datenbankauswahl.TypeKeys "<Down>"
991 if Datenbankauswahl.GetText = AlterWert then
992 if j=1 then printlog "Address book contains no data"
995 if Selbstdefiniert.IsEnabled AND Selbstdefiniert.IsChecked then
996 for k=1 to Formatliste.GetItemCount
998 Zaehler = Zaehler + 1
999 if Einfuegen.IsEnabled then Einfuegen.Click
1002 Zaehler = Zaehler + 1
1003 if Einfuegen.IsEnabled then Einfuegen.Click
1007 Datenbankauswahl.TypeKeys "<up>", 20
1011 printlog " - here are " + Zaehler + " Fields selectable"
1014 Warnlog "Tabpage Database: Error on field entry " + i + " " + j + " " + k
1016 uTabDatenbank = Zaehler
1019 ' -----------------------------------------------------------------------
1021 sub BeseitigeTabZahlen
1023 if TabZahlen.Exists then TabZahlen.Cancel
1024 Kontext "TabDokumentFeldbefehle"