summaryrefslogtreecommitdiff
path: root/testautomation/writer
diff options
context:
space:
mode:
Diffstat (limited to 'testautomation/writer')
-rwxr-xr-xtestautomation/writer/optional/includes/dropdownLB/w_dropdownLB1.inc8
-rwxr-xr-xtestautomation/writer/optional/includes/insertgraphic/w_insertgraphic2.inc344
-rwxr-xr-xtestautomation/writer/optional/includes/regression/issuezilla/w_issuezilla_regression.inc3
-rwxr-xr-xtestautomation/writer/required/includes/w_005b_.inc37
-rwxr-xr-xtestautomation/writer/required/includes/w_020_.inc14
-rwxr-xr-xtestautomation/writer/required/w_updt.bas2
-rwxr-xr-xtestautomation/writer/tools/includes/w_tool1.inc11
-rwxr-xr-xtestautomation/writer/tools/includes/w_tool2.inc18
8 files changed, 219 insertions, 218 deletions
diff --git a/testautomation/writer/optional/includes/dropdownLB/w_dropdownLB1.inc b/testautomation/writer/optional/includes/dropdownLB/w_dropdownLB1.inc
index 1112d4b62551..3f7d55cb8be7 100755
--- a/testautomation/writer/optional/includes/dropdownLB/w_dropdownLB1.inc
+++ b/testautomation/writer/optional/includes/dropdownLB/w_dropdownLB1.inc
@@ -1032,6 +1032,10 @@ testcase tDropDownLB_17
PrintLog "- Open a word document which includes 2 entries."
Call hFileOpen(sTestFile)
Call sMakeReadOnlyDocumentEditable
+
+ Kontext "EditInputList"
+ if EditInputList.Exists then EditInputList.Cancel
+
PrintLog "- Set focus in front of first line."
Call wTypeKeys "<MOD1 Home>"
PrintLog "- Edit/Fields."
@@ -1085,7 +1089,9 @@ testcase tDropDownLB_17
FeldbefehlBearbeitenFunktionen.Cancel
- Call hCloseDocument ' <- close word document
+ Do Until GetDocumentCount = 0
+ Call hCloseDocument
+ Loop
endcase
diff --git a/testautomation/writer/optional/includes/insertgraphic/w_insertgraphic2.inc b/testautomation/writer/optional/includes/insertgraphic/w_insertgraphic2.inc
index 3c0595bdff3f..d6eefcacad1e 100755
--- a/testautomation/writer/optional/includes/insertgraphic/w_insertgraphic2.inc
+++ b/testautomation/writer/optional/includes/insertgraphic/w_insertgraphic2.inc
@@ -631,116 +631,116 @@ endcase
testcase tInsertGraphic_18
- Dim sGraphicName1 as String
- Dim sGraphicName2 as String
- Dim sGraphicName3 as String
- Dim sWidth as String
- Dim sHeight as String
-
- sGraphicName1 = "TEST1"
- sGraphicName2 = "TEST2"
- sGraphicName3 = "TEST3"
-
- sWidth = "7"+ gSeperator + "00" + gMeasurementUnit
- sHeight = "6"+ gSeperator + "00" + gMeasurementUnit
+ Dim sGraphicName1 as String
+ Dim sGraphicName2 as String
+ Dim sGraphicName3 as String
+ Dim sWidth as String
+ Dim sHeight as String
- PrintLog "- Test Set different attributes via Contextmenu Arrange (send backward)"
- '/// Test Set different attributes via Contextmenu Arrange (send backward)
+ sGraphicName1 = "TEST1"
+ sGraphicName2 = "TEST2"
+ sGraphicName3 = "TEST3"
- Call hNewDocument
+ sWidth = "7"+ gSeperator + "00" + gMeasurementUnit
+ sHeight = "6"+ gSeperator + "00" + gMeasurementUnit
- Call wTypeKeys "<Return>"
+ PrintLog "- Test Set different attributes via Contextmenu Arrange (send backward)"
+ '/// Test Set different attributes via Contextmenu Arrange (send backward)
- '/// Insert three Graphics at the same place , and named in series
+ Call hNewDocument
- 'the 1st graphic
- fInsertGraphics("Bughunter.jpg")
+ Call wTypeKeys "<Return>"
- fFormatGraphic("TabZusaetze")
- Sleep 1
- ObjektName.SetText sGraphicName1
- TabZusaetze.OK
+ '/// Insert three Graphics at the same place , and named in series
- fFormatGraphic("TabType")
- KeepRatio.UnCheck
- Sleep 1
- Width.SetText sWidth
- wait 500
- Height.SetText sHeight
- wait 500
- TabType.OK
+ 'the 1st graphic
+ fInsertGraphics("Bughunter.jpg")
- Call wTypeKeys "<ESCape>"
+ fFormatGraphic("TabZusaetze")
+ Sleep 1
+ ObjektName.SetText sGraphicName1
+ Kontext
+ Active.Setpage TabType
+ Kontext "TabType"
+ KeepRatio.UnCheck
+ Sleep 1
+ Width.SetText sWidth
+ wait 500
+ Height.SetText sHeight
+ wait 500
+ TabType.OK
- 'the 2nd graphic
- fInsertGraphics("flowers.gif")
+ Call wTypeKeys "<ESCape>"
- fFormatGraphic("TabZusaetze")
- Sleep 1
- ObjektName.SetText sGraphicName2
- TabZusaetze.OK
+ 'the 2nd graphic
+ fInsertGraphics("flowers.gif")
- fFormatGraphic("TabType")
- KeepRatio.UnCheck
- Sleep 1
- Width.SetText sWidth
- wait 500
- Height.SetText sHeight
- wait 500
- TabType.OK
+ fFormatGraphic("TabZusaetze")
+ Sleep 1
+ ObjektName.SetText sGraphicName2
+ TabZusaetze.OK
- Call wTypeKeys "<ESCape>"
+ fFormatGraphic("TabType")
+ KeepRatio.UnCheck
+ Sleep 1
+ Width.SetText sWidth
+ wait 500
+ Height.SetText sHeight
+ wait 500
+ TabType.OK
- 'the 3rd graphic
- fInsertGraphics("game.bmp")
+ Call wTypeKeys "<ESCape>"
- fFormatGraphic("TabZusaetze")
- Sleep 1
- ObjektName.SetText sGraphicName3
- TabZusaetze.OK
+ 'the 3rd graphic
+ fInsertGraphics("game.bmp")
- fFormatGraphic("TabType")
- KeepRatio.UnCheck
- Sleep 1
- Width.SetText sWidth
- wait 500
- Height.SetText sHeight
- wait 500
- TabType.OK
+ fFormatGraphic("TabZusaetze")
+ Sleep 1
+ ObjektName.SetText sGraphicName3
+ TabZusaetze.OK
- '/// ContextMenu Arrange / Send backward
- Call wOpenContextMenu
+ fFormatGraphic("TabType")
+ KeepRatio.UnCheck
+ Sleep 1
+ Width.SetText sWidth
+ wait 500
+ Height.SetText sHeight
+ wait 500
+ TabType.OK
+
+ '/// ContextMenu Arrange / Send backward
+ Call wOpenContextMenu
hMenuSelectNr(1)
Sleep 2
hMenuSelectNr(3)
Sleep 1
- Call wTypeKeys "<ESCape>"
- Sleep 1
+ Call wTypeKeys "<ESCape>"
+ Sleep 1
- '/// Check if the attributes Arrange (send to back) works well
- Call wNavigatorAuswahl(4,1)
- Sleep 1
- fFormatGraphic("TabZusaetze")
- Sleep 1
- if ObjektName.GetText <> sGraphicName1 then Warnlog "The graphic's name is not correct ,should be "+sGraphicName1 + " but get " +ObjektName.GetText
- TabZusaetze.Cancel
+ '/// Check if the attributes Arrange (send to back) works well
+ Call wNavigatorAuswahl(4,1)
+ Sleep 1
+ fFormatGraphic("TabZusaetze")
+ Sleep 1
+ if ObjektName.GetText <> sGraphicName1 then Warnlog "The graphic's name is not correct ,should be "+sGraphicName1 + " but get " +ObjektName.GetText
+ TabZusaetze.Cancel
- Call wNavigatorAuswahl(4,2)
- Sleep 1
- fFormatGraphic("TabZusaetze")
- Sleep 1
- if ObjektName.GetText <> sGraphicName2 then Warnlog "The graphic's name is not correct ,should be "+sGraphicName2 + " but get " +ObjektName.GetText
- TabZusaetze.Cancel
+ Call wNavigatorAuswahl(4,2)
+ Sleep 1
+ fFormatGraphic("TabZusaetze")
+ Sleep 1
+ if ObjektName.GetText <> sGraphicName2 then Warnlog "The graphic's name is not correct ,should be "+sGraphicName2 + " but get " +ObjektName.GetText
+ TabZusaetze.Cancel
- Call wNavigatorAuswahl(4,3)
- Sleep 1
- fFormatGraphic("TabZusaetze")
- Sleep 1
- if ObjektName.GetText <> sGraphicName3 then Warnlog "The graphic's name is not correct ,should be "+sGraphicName3 + " but get " +ObjektName.GetText
- TabZusaetze.Cancel
+ Call wNavigatorAuswahl(4,3)
+ Sleep 1
+ fFormatGraphic("TabZusaetze")
+ Sleep 1
+ if ObjektName.GetText <> sGraphicName3 then Warnlog "The graphic's name is not correct ,should be "+sGraphicName3 + " but get " +ObjektName.GetText
+ TabZusaetze.Cancel
- Call hCloseDocument
+ Call hCloseDocument
endcase
@@ -748,120 +748,122 @@ endcase
testcase tInsertGraphic_19
- Dim sGraphicName1 as String
- Dim sGraphicName2 as String
- Dim sGraphicName3 as String
- Dim sWidth as String
- Dim sHeight as String
+ Dim sGraphicName1 as String
+ Dim sGraphicName2 as String
+ Dim sGraphicName3 as String
+ Dim sWidth as String
+ Dim sHeight as String
- sGraphicName1 = "TEST1"
- sGraphicName2 = "TEST2"
- sGraphicName3 = "TEST3"
+ sGraphicName1 = "TEST1"
+ sGraphicName2 = "TEST2"
+ sGraphicName3 = "TEST3"
- sWidth = "7"+ gSeperator + "00" + gMeasurementUnit
- sHeight = "6"+ gSeperator + "00" + gMeasurementUnit
+ sWidth = "7"+ gSeperator + "00" + gMeasurementUnit
+ sHeight = "6"+ gSeperator + "00" + gMeasurementUnit
- PrintLog "- Test Set different attributes via Contextmenu Arrange (bring to front)"
- '/// Test Set different attributes via Contextmenu Arrange (bring to front)
+ PrintLog "- Test Set different attributes via Contextmenu Arrange (bring to front)"
+ '/// Test Set different attributes via Contextmenu Arrange (bring to front)
- Call hNewDocument
+ Call hNewDocument
- Call wTypeKeys "<Return>"
+ Call wTypeKeys "<Return>"
- '/// Insert three Graphics at the same place , and named in series
+ '/// Insert three Graphics at the same place , and named in series
- 'the 1st graphic
- fInsertGraphics("Bughunter.jpg")
+ 'the 1st graphic
+ fInsertGraphics("Bughunter.jpg")
- fFormatGraphic("TabZusaetze")
- Sleep 1
- ObjektName.SetText sGraphicName1
- TabZusaetze.OK
+ fFormatGraphic("TabZusaetze")
+ Sleep 1
+ ObjektName.SetText sGraphicName1
- fFormatGraphic("TabType")
- KeepRatio.UnCheck
- Sleep 1
- Width.SetText sWidth
- wait 500
- Height.SetText sHeight
- wait 500
- TabType.OK
+ Kontext
+ Active.Setpage TabType
+ Kontext "TabType"
- Call wTypeKeys "<ESCape>"
+ KeepRatio.UnCheck
+ Sleep 1
+ Width.SetText sWidth
+ wait 500
+ Height.SetText sHeight
+ wait 500
+ TabType.OK
- 'the 2nd graphic
- fInsertGraphics("flowers.gif")
+ Call wTypeKeys "<ESCape>"
- fFormatGraphic("TabZusaetze")
- Sleep 1
- ObjektName.SetText sGraphicName2
- TabZusaetze.OK
+ 'the 2nd graphic
+ fInsertGraphics("flowers.gif")
- fFormatGraphic("TabType")
- KeepRatio.UnCheck
- Sleep 1
- Width.SetText sWidth
- wait 500
- Height.SetText sHeight
- wait 500
- TabType.OK
+ fFormatGraphic("TabZusaetze")
+ Sleep 1
+ ObjektName.SetText sGraphicName2
+ TabZusaetze.OK
- Call wTypeKeys "<ESCape>"
+ fFormatGraphic("TabType")
+ KeepRatio.UnCheck
+ Sleep 1
+ Width.SetText sWidth
+ wait 500
+ Height.SetText sHeight
+ wait 500
+ TabType.OK
- 'the 3rd graphic
- fInsertGraphics("game.bmp")
+ Call wTypeKeys "<ESCape>"
- fFormatGraphic("TabZusaetze")
- Sleep 1
- ObjektName.SetText sGraphicName3
- TabZusaetze.OK
+ 'the 3rd graphic
+ fInsertGraphics("game.bmp")
- fFormatGraphic("TabType")
- KeepRatio.UnCheck
- Sleep 1
- Width.SetText sWidth
- wait 500
- Height.SetText sHeight
- wait 500
- TabType.OK
+ fFormatGraphic("TabZusaetze")
+ Sleep 1
+ ObjektName.SetText sGraphicName3
+ TabZusaetze.OK
- '/// Format / Arrange / Send to back
- FormatArrangeSendToBack
- Sleep 2
+ fFormatGraphic("TabType")
+ KeepRatio.UnCheck
+ Sleep 1
+ Width.SetText sWidth
+ wait 500
+ Height.SetText sHeight
+ wait 500
+ TabType.OK
+
+ '/// Format / Arrange / Send to back
+ FormatArrangeSendToBack
+ Sleep 2
- '/// ContextMenu Arrange / bring to front
- Call wOpenContextMenu
+ '/// ContextMenu Arrange / bring to front
+ Call wOpenContextMenu
hMenuSelectNr(1)
Sleep 2
hMenuSelectNr(1)
Sleep 1
- Call wTypeKeys "<ESCape>"
- Sleep 1
+ Call wTypeKeys "<ESCape>"
+ Sleep 1
- '/// Check if the attributes Arrange (send to back) works well
- Call wNavigatorAuswahl(4,1)
- Sleep 1
- fFormatGraphic("TabZusaetze")
- Sleep 1
- if ObjektName.GetText <> sGraphicName1 then Warnlog "The graphic's name is not correct ,should be "+sGraphicName1 + " but get " +ObjektName.GetText
- TabZusaetze.Cancel
+ '/// Check if the attributes Arrange (send to back) works well
+ Call wNavigatorAuswahl(4,1)
+ Sleep 1
+ fFormatGraphic("TabZusaetze")
+ Sleep 1
+ if ObjektName.GetText <> sGraphicName1 then Warnlog "The graphic's name is not correct ,should be "+sGraphicName1 + " but get " +ObjektName.GetText
+ TabZusaetze.Cancel
- Call wNavigatorAuswahl(4,2)
- Sleep 1
- fFormatGraphic("TabZusaetze")
- Sleep 1
- if ObjektName.GetText <> sGraphicName2 then Warnlog "The graphic's name is not correct ,should be "+sGraphicName2 + " but get " +ObjektName.GetText
- TabZusaetze.Cancel
+ Call wNavigatorAuswahl(4,2)
+ Sleep 1
+ fFormatGraphic("TabZusaetze")
+ Sleep 1
+ if ObjektName.GetText <> sGraphicName2 then Warnlog "The graphic's name is not correct ,should be "+sGraphicName2 + " but get " +ObjektName.GetText
+ TabZusaetze.Cancel
- Call wNavigatorAuswahl(4,3)
- Sleep 1
- fFormatGraphic("TabZusaetze")
- Sleep 1
- if ObjektName.GetText <> sGraphicName3 then Warnlog "The graphic's name is not correct ,should be "+sGraphicName3 + " but get " +ObjektName.GetText
- TabZusaetze.Cancel
+ Call wNavigatorAuswahl(4,3)
+ Sleep 1
+ fFormatGraphic("TabZusaetze")
+ Sleep 1
+ if ObjektName.GetText <> sGraphicName3 then Warnlog "The graphic's name is not correct ,should be "+sGraphicName3 + " but get " +ObjektName.GetText
+ TabZusaetze.Cancel
- Call hCloseDocument
+ Call hCloseDocument
endcase
diff --git a/testautomation/writer/optional/includes/regression/issuezilla/w_issuezilla_regression.inc b/testautomation/writer/optional/includes/regression/issuezilla/w_issuezilla_regression.inc
index 9a7c142d0b1d..d7f96d0635f3 100755
--- a/testautomation/writer/optional/includes/regression/issuezilla/w_issuezilla_regression.inc
+++ b/testautomation/writer/optional/includes/regression/issuezilla/w_issuezilla_regression.inc
@@ -451,6 +451,7 @@ testcase i103265
Call hNewDocument
printlog "- Open test document"
Call hFileOpen ( gTesttoolPath + "writer\optional\input\regression\issuezilla\i103265.odt" )
+ Call sMakeReadOnlyDocumentEditable
printlog "- Update TOC"
ToolsUpdateAllIndexes
@@ -483,7 +484,7 @@ testcase i103265
printlog "- Save as HTML"
gApplication = "HTML"
- Call hFileSaveAsWithFilterKill ( gOfficePath + "user\work\ODFHyperlinksInTOCs.html", "HTML" )
+ Call hFileSaveAsWithFilterKill ( gOfficePath + "user\work\ODFHyperlinksInTOCs.html", "HTML (StarWriter)" )
Call hCloseDocument
printlog "- Reload"
diff --git a/testautomation/writer/required/includes/w_005b_.inc b/testautomation/writer/required/includes/w_005b_.inc
index 0e4f8ea17f23..ce7ce264e3b1 100755
--- a/testautomation/writer/required/includes/w_005b_.inc
+++ b/testautomation/writer/required/includes/w_005b_.inc
@@ -892,16 +892,9 @@ testcase tFormatAlignmentArea
Call hNewDocument
printlog " Paste a rectangle from draw via clipboard"
- if gPlatgroup = "unx" then
- Call wZeichenobjektEinfuegen ( "Rechteck", 10, 30, 20, 45 )
- sleep (1)
- gMouseClick ( 15, 38 )
- else
- Call wZeichenobjektEinfuegen ( "Rechteck", 45, 30, 55, 45 )
- sleep (1)
- Call wObjektSelektieren ( 43, 25, 60, 50 )
- endif
-
+ Call wZeichenobjektEinfuegen ( "Rechteck", 45, 30, 55, 45 )
+ sleep (1)
+ Call wObjektSelektieren ( 43, 25, 60, 50 )
Sleep 1
try
printlog " Format / Anchor / As Character"
@@ -1158,11 +1151,7 @@ testcase tFormatStyleEdit
printlog " Insert a textobject from toolbar"
Sleep 2
- if gPlatgroup = "unx" then
- Call gMouseMove(10, 20, 30, 40)
- else
- Call gMouseMove(50, 20, 70, 40)
- endif
+ Call gMouseMove(50, 20, 70, 40)
hUseAsyncSlot( "FormatStyleBold" )
printlog " Format / Style / Bold"
@@ -1231,11 +1220,7 @@ testcase tFormatAlignmentEdit
Textobjekt.Click
printlog " Insert a textbox via 'Draw functions' toolbar"
- if gPlatgroup = "unx" then
- Call gMouseMove(10, 20, 30, 40)
- else
- Call gMouseMove(50, 20, 70, 40)
- endif
+ Call gMouseMove(50, 20, 70, 40)
printlog " Insert some text in document"
Call wTypeKeys ("Ein Wort")
@@ -1274,11 +1259,7 @@ testcase tFormatLineSpacing
Textobjekt.Click
printlog " In a textbox via 'Draw Functions' toolbox"
- if gPlatgroup = "unx" then
- Call gMouseMove(10, 20, 30, 40)
- else
- Call gMouseMove(50, 20, 70, 40)
- endif
+ Call gMouseMove(50, 20, 70, 40)
Sleep 1
printlog " Format / Spacing / Single line"
@@ -1319,11 +1300,7 @@ testcase tFormatParagraphEdit
Textobjekt.Click
printlog " In a textbox via 'Draw Functions' toolbox"
- if gPlatgroup = "unx" then
- Call gMouseMove(10, 20, 30, 40)
- else
- Call gMouseMove(50, 20, 70, 40)
- endif
+ Call gMouseMove(50, 20, 70, 40)
printlog " Format / Paragraph "
hUseAsyncSlot( "FormatParagraph" )
diff --git a/testautomation/writer/required/includes/w_020_.inc b/testautomation/writer/required/includes/w_020_.inc
index 05d11681efe7..df888de1b429 100755
--- a/testautomation/writer/required/includes/w_020_.inc
+++ b/testautomation/writer/required/includes/w_020_.inc
@@ -417,15 +417,11 @@ testcase t_TB_Form
Call sMenufunktionen("-Checkbox-")
Kontext "FormControls"
- if Ucase(gApplication) <> "HTML" then
+ if gApplication <> "HTML" then
wait 500
Label.Click
printlog " Insert a textbox from toolbox"
- if gplatgroup = "unx" then
- Call hMalZeichnenMitSelektion ( 10, 40, 21, 25 )
- else
- Call hMalZeichnenMitSelektion ( 57, 20, 68, 25 )
- endif
+ Call hMalZeichnenMitSelektion ( 57, 20, 68, 25 )
printlog "+ Open Control Properties"
Call sMenufunktionen("-Textbox-")
end if
@@ -454,11 +450,7 @@ testcase t_TB_Form
Combobox.Click
printlog " Insert a Combobox from toolbox"
Wait 500
- if gPlatgroup = "unx" then
- Call hMalZeichnenMitSelektion ( 41, 40, 52, 35 )
- else
- Call hMalZeichnenMitSelektion ( 57, 30, 68, 35 )
- endif
+ Call hMalZeichnenMitSelektion ( 57, 30, 68, 35 )
printlog "+ Step through pages of upcoming Autopilot"
Call sAutopilot_ListboxCombobox("Combo")
printlog "+ Open Control Properties"
diff --git a/testautomation/writer/required/w_updt.bas b/testautomation/writer/required/w_updt.bas
index 77c8d5350e00..992a4cc9f194 100755
--- a/testautomation/writer/required/w_updt.bas
+++ b/testautomation/writer/required/w_updt.bas
@@ -61,6 +61,8 @@ sub main
Printlog "******* Ressource-Test Writer Document *******"
+ Call wChangeDefaultView()
+
Call hStatusIn ( "writer", "w_updt.bas" )
Call w_001_ ' Menu File
Call w_001a_ ' Menu File
diff --git a/testautomation/writer/tools/includes/w_tool1.inc b/testautomation/writer/tools/includes/w_tool1.inc
index 19ef41a711de..4515c86811ec 100755
--- a/testautomation/writer/tools/includes/w_tool1.inc
+++ b/testautomation/writer/tools/includes/w_tool1.inc
@@ -343,17 +343,20 @@ sub sMenufunktionen(Fuer_Was as string)
Kontext
try
- FormatControl
- Sleep 1
+ FormatControl
+ WaitSlot()
+
Kontext "ControlPropertiesDialog"
- if ControlPropertiesDialog.Exists then
+ if ControlPropertiesDialog.Exists( 2 ) then
ControlPropertiesDialog.Close
+ ControlPropertiesDialog.notExists( 2 )
else
FormatControl
Wait 500
Kontext "ControlPropertiesDialog"
- if ControlPropertiesDialog.Exists then
+ if ControlPropertiesDialog.Exists( 2 ) then
ControlPropertiesDialog.Close
+ ControlPropertiesDialog.notExists( 2 )
else
Warnlog " - Controlfieldproperties "+ Fuer_Was +" from Menu not available!"
end if
diff --git a/testautomation/writer/tools/includes/w_tool2.inc b/testautomation/writer/tools/includes/w_tool2.inc
index 280d18b51677..a68a5eea9ea4 100755
--- a/testautomation/writer/tools/includes/w_tool2.inc
+++ b/testautomation/writer/tools/includes/w_tool2.inc
@@ -409,3 +409,21 @@ function wDeleteAutotext(vAutotextName as string) as boolean
next ik
end function
+
+
+sub wChangeDefaultView()
+
+ ' #i107038: This code forces the writer to display one page only which is
+ ' zoomed to pagewidth, filling the entire - previously maximized - window.
+ ' This is required because the VCL Testtool might eventually draw objects
+ ' outside the document window depending on display size
+
+ Call hNewDocument
+ ViewZoom
+ Kontext "Massstab"
+ Vergroesserung100.check
+ Singlepage.check
+ Massstab.Ok
+ Call hCloseDocument
+
+end sub \ No newline at end of file