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: wiz_ReportWizard.inc,v $
13 '* last change: $Author: jsi $ $Date: 2008-06-16 07:43:42 $
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 : marc.neumann@sun.com
36 '* short description : Report Wizard Test
38 '\***********************************************************************
44 '-------------------------------------------------------------------------
47 qaerrorlog "#i92543# crash when closing report"
50 call fOpenDatabase(gOfficePath + ConvertPath("user/database/biblio.odb"))
56 Database.MouseDown(50,50)
57 Database.MouseUp(50,50)
64 Kontext "ReportWizard"
67 '/// add the third field
68 printlog "add the third field"
69 AvailableFields.select 1
90 printlog "click Finish"
94 Kontext "DocumentWriter"
95 DocumentWriter.TypeKeys "<MOD1 SHIFT I>" , true ' EDIT / SELECT TEXT
96 DocumentWriter.TypeKeys "<DOWN>" ,2, true
97 DocumentWriter.TypeKeys "<SHIFT DOWN>" , true
98 DocumentWriter.TypeKeys "<MOD1 C>" , true
103 if left(s,10) = "Identifier" then
104 printlog "Report Table Header contains " + left(s,10) + ". -> OK"
106 warnlog "Report Table Header contains " + left(s,10) + " instead of IDENTIFIER"
109 'for windows a "new Line" are two characters
110 'so I need to start at char 13 and not on 12
111 dim iFromCharacter as integer
112 if gPlatGroup = "w95" then
118 if mid(s,iFromCharacter,5) = "GUR00" OR mid(s,iFromCharacter,5) = "BOR04" then
119 printlog "1. record is " + mid(s,iFromCharacter,5) + ". -> OK"
121 warnlog "1. record is " + mid(s,iFromCharacter,5) + " instead of GUR00 OR BOR04"
124 call fCloseForm ' should be changed to a CloseReport