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: w_006_.inc,v $
13 '* last change: $Author: vg $ $Date: 2008-08-18 12:41:36 $
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 : helge.delfs@sun.com
36 '* short description : Call all functions in table menu
38 '\***********************************************************************
42 printLog Chr(13) + "--------- Table Menu (w_006_.inc) ----------"
43 gApplication = "WRITER"
46 Call tFormatSplitTables
47 Call tFormatJoinTables
48 Call tFormatNumberFormat
51 Call tFormatAutoformatTable
55 '---------------------------------------------------------------------------------------------------------
58 PrintLog "- Format / Table"
60 printlog " Open new document"
63 printlog " Insert a table"
64 Call hTabelleEinfuegen
66 printlog " Format / Table"
70 printlog " In dialog step through all tabpages"
71 Active.SetPage TabTabelle
73 Call DialogTest ( TabTabelle )
76 Active.SetPage TabTextflussTabelle
77 Kontext "TabTextflussTabelle"
78 Call DialogTest ( TabTextflussTabelle )
81 Active.SetPage TabSpaltenTabelle
82 Kontext "TabSpaltenTabelle"
83 Call DialogTest ( TabSpaltenTabelle )
86 Active.SetPage TabUmrandung
87 Kontext "TabUmrandung"
88 Call DialogTest ( TabUmrandung )
91 Active.SetPage TabHintergrund
92 Kontext "TabHintergrund"
93 Call DialogTest ( TabHintergrund )
95 printlog " Close dialog"
98 printlog " Close active document"
103 '----------------------------------------------------------
105 testcase tFormatSplitTables
106 PrintLog "- Format / Split Table"
107 printlog " Open new document"
109 printlog " Insert a table"
110 Call hTabelleEinfuegen
111 printlog " Select all"
112 Call wTypeKeys ("<Mod1 a>")
114 printlog " Format / Split Table"
116 Kontext "TabelleAuftrennen"
117 Call DialogTest ( TabelleAuftrennen )
118 printlog " Close dialog"
119 TabelleAuftrennen.Cancel
120 printlog " Close active document"
124 '-----------------------------------------------------------
126 testcase tFormatJoinTables
127 PrintLog "- Format / Join Table"
128 printlog " Open new document"
130 printlog " Insert a table"
131 Call hTabelleEinfuegen
132 printlog " Point cursor under the table"
133 Call wTypeKeys ("<Down><Down>")
134 printlog " Insert a table"
135 Call hTabelleEinfuegen
136 printlog " Point cursor under the table"
137 Call wTypeKeys ("<Down><Down>")
138 printlog " Insert a table"
139 Call hTabelleEinfuegen
140 printlog " Point cursor in 3rd table"
141 Call wTypeKeys ("<Up><Up>")
142 printlog " Format / Merge Tables"
144 Kontext "TabellenVerbinden"
145 Call DialogTest (TabellenVerbinden)
146 printlog " Close dialog"
147 TabellenVerbinden.Cancel
148 printlog " Close active document"
152 '-----------------------------------------------------------
154 testcase tFormatNumberFormat
155 printLog "- Format / Number Format"
156 printlog " Open new document"
158 printlog " Format / Number Format"
159 Call hTabelleEinfuegen
161 Kontext "Zahlenformat"
162 Call DialogTest ( Zahlenformat )
163 printlog " Close dialog"
165 printlog " Close active document"
169 '-----------------------------------------------------------
172 PrintLog "- Format / Cell"
173 printlog " Open new document"
175 printlog " Insert a table"
176 Call hTabelleEinfuegen
178 printlog " Table / Column / Select"
180 printlog " Table / Merge Cells"
182 printlog " Table / Split Cells"
185 Kontext "ZellenTeilen"
186 Call DialogTest ( ZellenTeilen )
187 printlog " Close dialog 'Split Table'"
189 printlog " Table / Protect Cells"
192 Call wTypeKeys ("<Left>")
193 printlog " Open Contextmenu"
194 printlog " Select 'Cell->Unprotect"
195 Kontext "DocumentWriter"
196 Call wTypeKeys "<Shift F10>"
198 Call hMenuFindSelect (".uno:CellMenu", true, 9, false) 'Find "CellMenu" and call the slot.
201 Call hMenuFindSelect (20519, true, 1, false) 'Find "UnProtect" and call the slot.
203 Warnlog "Unable to unprotect cell"
205 printlog " Close active document"
209 '-----------------------------------------------------------
212 PrintLog "- Format / Row"
213 printlog " Open new document"
215 printlog " Insert a table"
216 Call hTabelleEinfuegen
218 printlog " Format / Row / Height"
220 Kontext "ZellenHoehe"
222 Call DialogTest ( ZellenHoehe )
223 printlog " Close dialog"
225 printlog " Format / Column / Select"
228 printlog " Format / Row / Space equally"
229 FormatRowSpaceEqually
231 printlog " Format / Row / Select"
234 printlog " Format / Row / Optimal Height"
235 TableAutoFitSetOptimalRowHeight
237 printlog " Format / Row / Insert"
239 Kontext "EinfuegenZeilen"
241 Call DialogTest ( EinfuegenZeilen )
242 printlog " Close dialog"
244 printlog " Format / Row / Delete"
247 printlog " Close active document"
251 '-----------------------------------------------------------
253 testcase tFormatAutoformatTable
254 PrintLog "- Format / Autoformat - Table"
257 printlog " Open new document"
259 printlog " Insert a table"
260 Call hTabelleEinfuegen
262 printlog " Format / Autoformat"
266 Kontext "AutoformatTabelle"
267 printlog " In dialog click 'More..'"
269 Call DialogTest ( AutoformatTabelle )
271 printlog " Click 'Add'"
273 Kontext "AutoformatHinzufuegenWriter"
274 Call DialogTest ( AutoformatHinzufuegenWriter )
275 TabellenName.SetText "Hallo"
276 printlog " Enter a new table name"
277 AutoformatHinzufuegenWriter.OK
279 Kontext "AutoformatTabelle"
280 printlog " Click 'Rename'"
282 Kontext "AutoformatHinzufuegenWriter"
283 Call DialogTest ( AutoformatHinzufuegenWriter )
284 printlog " Enter an new table name"
285 TabellenName.SetText "Hallo1"
286 AutoformatHinzufuegenWriter.OK
287 Kontext "AutoformatTabelle"
288 printlog " Click 'Delete'"
292 printlog " Close dialog"
293 AutoformatTabelle.Cancel
295 printlog " Close active document"