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: g_dimensions.inc,v $
13 '* last change: $Author: jsi $ $Date: 2008-06-16 10:42:40 $
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 : wolfram.garten@sun.com
36 '* short description :
38 '***********************************************************************************
40 ' #1 tdFormatDimensioning
42 '\***********************************************************************************
44 Sub testFormatDimensioning
46 call tdFormatDimensioning
50 testcase tdFormatDimensioning
59 PrintLog LinienDistanz.GetText + " = minimum value"
61 PrintLog LinienDistanz.GetText + " = maximum value"
64 PrintLog HLUeberhang.GetText + " = minimum value"
66 PrintLog HLUeberhang.GetText + " = maximum value"
69 PrintLog HLDistanz.GetText + " = minimum value"
71 PrintLog HLDistanz.GetText + " = maximum value"
74 PrintLog LinkeHL.GetText + " = minimum value"
76 PrintLog LinkeHL.GetText + " = maximum valuet"
79 PrintLog RechteHL.GetText + " = minimum value"
81 PrintLog RechteHL.GetText + " = maximum value"
83 MetrikList.GetItemCount
84 ZaehlerMetrik=MetrikList.GetItemCount
85 for i = 1 to ZaehlerMetrik
87 PrintLog MetrikList.GetSelText + " set"
90 AnzeigeUnterhalb.Check
92 AutomatischHorizontal.Check
93 AutomatischVertikal.Check
99 MetrikAnzeigen.GetState
100 AnzeigeUnterhalb.GetState
101 AnzeigeParallel.GetState
102 AutomatischHorizontal.GetState
103 AutomatischVertikal.GetState
104 if MetrikAnzeigen.GetState = 1 Then
105 PrintLog " show metric works"
107 WarnLog " show metric does not work"
109 if AnzeigeUnterhalb.GetState= 1 Then
110 PrintLog " AnzeigeUnterhalb does work"
112 WarnLog " TriStateBox AnzeigeUnterhalb does not work"
114 if AnzeigeParallel.GetState= 1 Then
115 PrintLog " AnzeigeParallel does work"
117 WarnLog " TriStateBox AnzeigeParallel does not work properly"