jl165 merging heads
[LibreOffice.git] / testautomation / framework / optional / f_CJK_GridLayout.bas
blob12954fae117063440867ac0a39ca8d3bb6a46ca5
1 'encoding UTF-8 Do not remove or change this line!
2 '**************************************************************************
3 ' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 '
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: thorsten.bosbach@oracle.com
30 '* short description: Grid Layout for CJK feature test
32 '\*********************************************************************
34 global sAsianLanguageFlag as String
36 sub main
37 PrintLog "---------------------------------------------------------------------"
38 Printlog "----- Grid Layout for CJK in Writer -----"
39 PrintLog "---------------------------------------------------------------------"
41 use "framework\optional\includes\w_grid_layout1.inc"
43 sAsianLanguageFlag = CheckAsianLanguageSupport("Current")
44 Call CheckAsianLanguageSupport("On")
46 Call hStatusIn("framework", "f_CJK_GridLayout.bas")
48 printLog Chr(13) + "- Grid Layout for CJK test in Writer"
50 Call tTextGridDialog_1 'Check if tabpage 'Text Grid' appears when "Asian Language support" is checked . (vice versa)
51 Call tTextGridDialog_2 'No grid is active, no changes to existing version
52 Call tTextGridDialog_3 'Grid (lines only): The page is set up with a defined number of lines
53 Call tTextGridDialog_4 'Grid (lines and characters): The page is set up with a defined number of lines and a defined number of characters in each line
55 Call tGridDisplay_1 'Printgrid: The grid lines will be printed. (vice versa)
57 Call tFontSizeChanges_1 'Change the font size to bigger enough will change the layout
59 Call tRubyText_1 'If Ruby Text is applied and longer than its Base Text it will stretch over more grid cells than the base text itself.
61 Call tIndentsTest_1 'Indents should work and always indenting as close as possible to their measurements by snapping to the appropriate grid cell. Tabs therefore will be ignored.
63 Call hStatusOut
65 if sAsianLanguageFlag = "Off" Then
66 Call CheckAsianLanguageSupport("Off")
67 else
68 Call CheckAsianLanguageSupport("On")
69 end if
70 end sub
72 sub LoadIncludeFiles
73 use "global\system\includes\master.inc"
74 use "global\system\includes\gvariabl.inc"
75 use "global\tools\includes\optional\t_docfuncs.inc"
77 use "framework\tools\includes\CJK_tools.inc"
78 gApplication = "WRITER"
79 Call GetUseFiles
80 end sub