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: f_CJK_GridLayout.bas,v $
13 '* last change: $Author: jsk $ $Date: 2008-06-20 07:02:00 $
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: thorsten.bosbach@sun.com
36 '* short description: Grid Layout for CJK feature test
38 '\*********************************************************************
40 global sAsianLanguageFlag
as String
43 PrintLog
"---------------------------------------------------------------------"
44 Printlog
"----- Grid Layout for CJK in Writer -----"
45 PrintLog
"---------------------------------------------------------------------"
47 use
"framework\optional\includes\w_grid_layout1.inc"
49 sAsianLanguageFlag
= CheckAsianLanguageSupport("Current")
50 Call CheckAsianLanguageSupport("On")
52 Call hStatusIn("framework", "f_CJK_GridLayout.bas")
54 printLog
Chr(13) + "- Grid Layout for CJK test in Writer"
56 Call tTextGridDialog_1
'Check if tabpage 'Text Grid' appears when "Asian Language support" is checked . (vice versa)
57 Call tTextGridDialog_2
'No grid is active, no changes to existing version
58 Call tTextGridDialog_3
'Grid (lines only): The page is set up with a defined number of lines
59 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
61 Call tGridDisplay_1
'Printgrid: The grid lines will be printed. (vice versa)
63 Call tUserDefineLayout_1
'Decrease characters per line will cause lines per page decrease accordingly
65 Call tFontSizeChanges_1
'Change the font size to bigger enough will change the layout
67 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.
69 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.
71 'Excluded until errors resolved by HLI.
72 'Call tObjectsTest_1 'If objects are anchored to text they will "wander" with its surrounding text. If they are anchored as character they will snap to the appropriate grid cell (since they are a character).
76 if sAsianLanguageFlag
= "Off" Then
77 Call CheckAsianLanguageSupport("Off")
79 Call CheckAsianLanguageSupport("On")
85 use
"global\system\includes\master.inc"
86 use
"global\system\includes\gvariabl.inc"
88 use
"global\tools\includes\required\t_doc1.inc"
89 use
"global\tools\includes\required\t_tools1.inc"
91 use
"framework\tools\includes\CJK_tools.inc"
93 gApplication
= "WRITER"