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_204b_.inc,v $
13 '* last change: $Author: vg $ $Date: 2008-08-18 12:37:14 $
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 : Writer Table test
38 '\***********************************************************************
41 Call wSplittingTableCellsIntoEqualProportions
45 testcase wSplittingTableCellsIntoEqualProportions
47 Dim DaRowHeight as string
48 Dim SetRowHeight as boolean
51 printlog "Based on feature ID: 103485"
52 printlog " Open a new writer document"
54 printlog "Insert a table with 4 rows and 4 lines"
55 Call TBOhTabelleEinfuegen("SplittingTable", 0, 1, 0, 1, "4", "4")
56 printlog "Select the table ( Strg + A )"
57 Call wTypeKeys ( "<Mod1 A>" )
58 printlog "Format / Row / Height"
60 TableAutoFitSetRowHeight
61 printlog "In upcoming dialog (Row Height) set height to 1,2cm and check 'Fit to size'"
62 if iSystemSprache = 01 or iSystemSprache = 48 or iSystemSprache = 07 then
68 DaRowHeight = Hoehe.Gettext
69 printlog "Close 'Row Height' with 'OK'"
71 printlog "Point cursor to first cell in first row ( Strg + Home )"
72 Call wTypeKeys ( "<Mod1 Home>" )
74 if wCheckRowHeight( DaRowHeight ) = False then SetRowHeight = False
75 Call wTypeKeys ( "<Down>" )
77 if SetRowHeight = True then
78 Call wTypeKeys ( "<Up>", 4 )
79 printlog "Select 1st and 2nd column"
80 Call wTypeKeys ( "<Shift Down>", 3 )
81 Call wTypeKeys ( "<Shift Right>" )
82 printlog "Format / Cell / Merge to merge all cells"
84 printlog "Now split previous merged cell into 4 pieces ( horizontally )"
85 printlog "Format / Cell / Split"
87 Kontext "ZellenTeilen"
88 printlog "In 'Split Cells' Dialog set 'Split cell into' to 4"
90 printlog "Check 'Horizontally' and 'Into equal proportions'"
92 GleichmaessigTeilen.Check
93 printlog "Close dialog with 'OK'"
95 printlog "Now the cell has to be splitted into 4 rows of height 1,2cm"
97 if wCheckRowHeight( DaRowHeight ) = False then SetRowHeight = False
98 Call wTypeKeys ( "<Down>" )
101 Warnlog "Error setting the row height !"