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: rpt_Grouping.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 : Function Wizard
38 '\***********************************************************************************
39 sub rpt_FunctionWizard
41 printlog "------------------ rpt_FunctionWizard.inc ---------------------"
46 '-------------------------------------------------------------------------
47 '-------------------------------------------------------------------------
48 '-------------------------------------------------------------------------
49 testcase tFunctionWizard
51 printlog "open Bibliography database"
52 call fOpenDatabase(gOfficePath + ConvertPath("user/database/biblio.odb"))
54 printlog "open the report designer"
55 call fOpenNewReportDesign
57 printlog "select the first table in the content list box"
58 Kontext "ReportDataProperties"
60 Content.typeKeys("<RETURN>",true) ' important to leave the listbox
62 Kontext "ReportDesign"
63 ReportDesign.TypeKeys("<MOD1 TAB>",true)
64 ReportDesign.TypeKeys("<MOD1 TAB>",true)
66 Kontext "ReportAddField"
67 ReportAddFieldList.select 1
68 ReportAddField.TypeKeys("<RETURN>",true)
70 'close the Add Field dialog to get the focus back to the design
71 call fCloseAddFieldDialog()
73 'press 2 time tab to select the edit field
74 Kontext "ReportDesign"
75 ReportDesign.TypeKeys("<TAB>",true)
76 ReportDesign.TypeKeys("<TAB>",true)
80 printlog "click on the ... button behind the datafield property in the property browser"
81 Kontext "ReportDataProperties"
82 OpenFormularWizard.Click
84 printlog "check if the function wizard appear"
85 Kontext "FunctionWizard"
86 if(FunctionWizard.exists(5)) then
87 printlog "The function wizard appear -> OK"
95 Editfield1.setText("""12/18/2008""")
100 warnlog "The function wizard does not appear -> FAILED"
107 '/// check if the report is created
108 printlog "check if the report is created"
109 Kontext "DocumentWriter"
110 if (DocumentWriter.exists(10)) then
111 call fCloseReportView
113 warnlog "No report is created."
116 printlog "close the report designer"
117 call fCloseReportDesign
118 printlog "close the database"
122 '-------------------------------------------------------------------------