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 2000, 2010 Oracle and/or its affiliates.
7 ' OpenOffice.org - a multi-platform office productivity suite
9 ' This file is part of OpenOffice.org.
11 ' OpenOffice.org is free software: you can redistribute it and/or modify
12 ' it under the terms of the GNU Lesser General Public License version 3
13 ' only, as published by the Free Software Foundation.
15 ' OpenOffice.org is distributed in the hope that it will be useful,
16 ' but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ' GNU Lesser General Public License version 3 for more details
19 ' (a copy is included in the LICENSE file that accompanied this code).
21 ' You should have received a copy of the GNU Lesser General Public License
22 ' version 3 along with OpenOffice.org. If not, see
23 ' <http://www.openoffice.org/license.html>
24 ' for a copy of the LGPLv3 License.
26 '/************************************************************************
28 '* owner : oliver.craemer@oracle.com
30 '* short description : Chart resource test - section toolbars
32 '************************************************************************
36 '\************************************************************************
40 printlog " Load simple chart document"
41 if fLoadVerySimpleChartAndSaveLocal() > 0 then
42 warnlog "Loading test document seems to have failed -> Check this out!"
45 printlog " Select chart using navigator"
47 printlog " Invoke Edit::Object::Edit to enter Inplace Mode"
49 printlog " Verify that the drawbar is visible"
52 qaerrorlog "#i107003# disabled because of bug in toolbars"
53 ' if Not DrawBar.Exists then
54 ' Call hToolbarSelect("Drawing", true)
57 printlog " Check if all items on drawbar are available"
58 if DrawBar.GetItemCount <> 16 then
59 warnlog "There are " & DrawBar.GetItemCount & " instead of 16 items on drawbar"
61 printlog " Click on every button on the Drawingbar"
76 printlog " Open menubutton BasicShapes"
79 printlog " Check that there are 25 BasicShapes"
80 if BasicShapes.GetItemCount <> 25 then
81 warnlog "There are " & BasicShapes.GetItemCount & " instead of 25 BasicShapes"
85 printlog " Open menubutton SymbolShapes"
87 Kontext "SymbolShapes"
88 printlog " Check that there are 20 SymbolShapes"
89 if SymbolShapes.GetItemCount <> 20 then
90 warnlog "There are " & SymbolShapes.GetItemCount & " instead of 25 SymbolShapes"
94 printlog " Open menubutton BlockArrows"
97 printlog " Check that there are 30 ArrowShapes"
98 if ArrowShapes.GetItemCount <> 30 then
99 warnlog "There are " & ArrowShapes.GetItemCount & " instead of 25 ArrowShapes"
103 printlog " Open menubutton Flowcharts"
106 printlog " Check that there are 32 FlowChartShapes"
107 if Flowchart.GetItemCount <> 32 then
108 warnlog "There are " & Flowchart.GetItemCount & " instead of 32 Flowchartshapes"
112 printlog " Open menubutton Callouts"
115 printlog " Check that there are 7 Callouts"
116 if Callouts.GetItemCount <> 7 then
117 warnlog "There are " & Callouts.GetItemCount & " instead of 7 Callouts"
121 printlog " Open menubutton Stars"
124 printlog " Check that there are 13 StarShapes"
125 if Starshapes.GetItemCount <> 13 then
126 warnlog "There are " & Starshapes.GetItemCount & " instead of 13 StarShapes"
129 printlog " Insert a shape to the chart by <STRG-RETURN>"
132 DrawBar.typekeys "<TAB>",TRUE
133 DrawBar.typekeys "<TAB>",TRUE
134 DrawBar.typekeys "<TAB>",TRUE
135 DrawBar.typekeys "<TAB>",TRUE
136 DrawBar.typekeys "<MOD1 RETURN>",TRUE
137 printlog " Rename inserted shape"
138 Kontext "DocumentChart"
139 DocumentChart.OpenContextMenu
143 Kontext "NameDlgObject"
144 NameField.SetText "ChartShape1"
146 printlog " Leave Chart"
147 Kontext "DocumentCalc"
148 DocumentCalc.TypeKeys "<Escape>"
149 printlog "Select chart using navigator"
151 printlog "Invoke Edit::Object::Edit to enter Inplace Mode"
153 printlog " Check if shape is still there"
154 Kontext "DocumentChart"
155 DocumentChart.typekeys "<SHIFT TAB>",TRUE
158 if ChartElementSelector.GetSelText <> "ChartShape1" then
159 warnlog "Something is wrong with the shape"
161 printlog " Leave Chart"
162 Kontext "DocumentCalc"
163 DocumentCalc.TypeKeys "<Escape>"
164 printlog " Close document"