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 2009 by Sun Microsystems, Inc.
7 '* OpenOffice.org - a multi-platform office productivity suite
9 '* $RCSfile: ch2_lvl1a.inc,v $
13 '* last change: $Author: hde $ $Date: 2009-04-14 15:12:01 $
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 : oliver.craemer@sun.com
36 '* short description : Chart2 functional tests
38 '\************************************************************************
49 Dim sOutputFile as string
50 sOutputFile = convertpath(gOfficepath & "user\work\hiddenCells.ods")
52 printlog "Load simple chart document"
53 if fLoadVerySimpleChartAndSaveLocal() > 0 then
54 warnlog "Loading test document seems to have failed -> Check this out!"
57 printlog "Select chart using navigator"
58 if fSelectFirstOLE = -1 then
59 warnlog "It was not possible to select the chart object!"
64 printlog "Edit / Object / Edit"
67 printlog "Select DataSeries A by toolbar selectorbox"
68 Kontext "DocumentChart"
69 call fChartSelectElement (8)
71 printlog "Invoke Format::ObjectProperties"
75 printlog "Select tab page Options"
77 Active.SetPage TabDataSeriesOptions
78 Kontext "TabDataSeriesOptions"
79 printlog "activate checkbox 'Include values from hidden cells'"
81 IncludeHiddenCells.Check
83 Warnlog "checkbox hidden or disabled"
88 printlog "Close and reopen data series dialog - checkbox should be still activated"
89 TabDataSeriesOptions.Ok
90 Kontext "DocumentChart"
92 printlog "Select tab page Options"
94 Active.SetPage TabDataSeriesOptions
95 Kontext "TabDataSeriesOptions"
96 if Not IncludeHiddenCells.IsChecked then
97 Warnlog "After closing and reopening of Data-Series dialog the checkbox isn't checked anymore"
98 TabDataSeriesOptions.Cancel
99 Kontext "DocumentCalc"
100 DocumentCalc.TypeKeys "<Escape>"
105 TabDataSeriesOptions.Ok
107 printlog "save and reopen file - checkbox still must be checked"
108 if NOT hFileSaveAsKill (sOutputFile) then
109 warnlog "Saving test document failed -> Aborting"
110 Kontext "DocumentCalc"
111 DocumentCalc.TypeKeys "<Escape>"
117 Call hFileOpen(sOutputFile)
118 if fSelectFirstOLE = -1 then
119 warnlog "It was not possible to select the chart object!"
126 printlog "Select DataSeries A by toolbar selectorbox"
127 call fChartSelectElement (8)
129 printlog "Invoke Format::ObjectProperties"
131 FormatSelection.Click
133 Active.SetPage TabDataSeriesOptions
134 Kontext "TabDataSeriesOptions"
135 if Not IncludeHiddenCells.IsChecked then
136 Warnlog "After closing and reopening of Data-Series dialog the checkbox isn't checked anymore"
137 TabDataSeriesOptions.Cancel
138 Kontext "DocumentCalc"
139 DocumentCalc.TypeKeys "<Escape>"
144 '/// Close dialog with Cancel-button
145 TabDataSeriesOptions.Cancel
147 Kontext "DocumentCalc"
148 DocumentCalc.TypeKeys "<Escape>"