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 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 : Tools->Options: OpenOffice.org Accessibility
32 '\******************************************************************************
34 testcase tOOoAccessibility
36 Dim lbSave ( 10 ) as Boolean
39 printlog " - save default setting"
41 hToolsOptions ( "StarOffice", "Accessibility" )
43 lbSave (9) = AutomaticDetectHC.IsChecked
44 lbSave (2) = ForPagePreviews.IsChecked
45 lbSave (3) = HelpTips.IsChecked
47 lbSave (4) = AllowAnimatedGraphics.IsChecked
48 lbSave (5) = AllowAnimatedText.IsChecked
49 lbSave (6) = AlwaysUseAutomaticFontColor.IsChecked
50 'lbSave (7) = UseSystemFont.IsChecked
51 lbSave (10) = UseTextSelectionCursor.IsChecked
52 if SupportAssistiveTechnologyTools.Exists and SupportAssistiveTechnologyTools.IsVisible then
53 lbSave (8) = SupportAssistiveTechnologyTools.IsChecked
57 printlog " - revers/change settings"
58 if lbSave (9) = TRUE then AutomaticDetectHC.UnCheck else AutomaticDetectHC.Check
59 if lbSave (2) = TRUE then ForPagePreviews.Uncheck else ForPagePreviews.Check
62 if lbSave (3) = TRUE then HelpTips.Uncheck else HelpTips.Check
63 if lbSave (4) = TRUE then AllowAnimatedGraphics.Uncheck else AllowAnimatedGraphics.Check
64 if lbSave (5) = TRUE then AllowAnimatedText.Uncheck else AllowAnimatedText.Check
65 if lbSave (6) = TRUE then AlwaysUseAutomaticFontColor.Uncheck else AlwaysUseAutomaticFontColor.Check
66 'if lbSave (7) = TRUE then UseSystemFont.Uncheck else UseSystemFont.Check
67 if lbSave (10) = TRUE then UseTextSelectionCursor.Uncheck else UseTextSelectionCursor.Check
68 if SupportAssistiveTechnologyTools.Exists and SupportAssistiveTechnologyTools.IsVisible then
69 if (gPlatgroup <> "unx") then
70 Printlog "'Support assistive technology tools' won't be tested due to system dialog could come up and look the test out :-("
72 Warnlog "unexpected error 4711 :-)"
74 ' if lbSave (8) = TRUE then SupportAssistiveTechnologyTools.Uncheck else SupportAssistiveTechnologyTools.Check
76 if (gPlatgroup <> "unx") then
77 Warnlog "'Support assistive technology tools' is not available :-("
81 printlog " - press OK at the options dialog"
82 Kontext "ExtrasOptionenDlg"
86 printlog " - exit/restart StarOffice"
89 printlog " - check settings"
91 hToolsOptions ( "StarOffice", "Accessibility" )
93 if AutomaticDetectHC.IsChecked = lbSave (9) then warnlog "Automatic Detect HC ... : => changes not saved!"
94 if ForPagePreviews.IsChecked = lbSave (2) then warnlog "For Page Previews : => changes not saved!"
95 if HelpTips.IsChecked = lbSave (3) then warnlog "Help Tips : => changes not saved!"
97 if After.GetText <> "17" then warnlog "After... : => changes not saved!"
98 if AllowAnimatedGraphics.IsChecked = lbSave (4) then warnlog "Allow Animated Graphics : => changes not saved!"
99 if AllowAnimatedText.IsChecked = lbSave (5) then warnlog "Allow Animated Text : => changes not saved!"
100 if AlwaysUseAutomaticFontColor.IsChecked = lbSave (6) then warnlog "Always Use Automatic Font Color : => changes not saved!"
101 'if UseSystemFont.IsChecked = lbSave (7) then warnlog "Use System Font : => changes not saved!"
102 if UseTextSelectionCursor.IsChecked = lbSave (10) then warnlog "Use Text Selection Cursor : => changes not saved!"
103 ' if SupportAssistiveTechnologyTools.Exists and SupportAssistiveTechnologyTools.IsVisible then
104 ' if SupportAssistiveTechnologyTools.IsChecked = lbSave (8) then warnlog "Support Assistive Technology Tools : => changes not saved!"
107 printlog " - second settings"
108 AutomaticDetectHC.UnCheck
109 ForPagePreviews.Check
112 AllowAnimatedGraphics.Uncheck
113 AllowAnimatedText.Check
114 AlwaysUseAutomaticFontColor.Uncheck
116 UseTextSelectionCursor.UnCheck
117 if SupportAssistiveTechnologyTools.Exists and SupportAssistiveTechnologyTools.IsVisible then
118 SupportAssistiveTechnologyTools.Uncheck
121 printlog " - press OK at the options dialog"
122 Kontext "ExtrasOptionenDlg"
126 printlog " - check changes"
128 hToolsOptions ( "StarOffice", "Accessibility" )
130 if AutomaticDetectHC.IsChecked <> FALSE then warnlog "Automatic Detect HC ... : => changes not saved!"
131 if ForPagePreviews.IsChecked <> TRUE then warnlog "For Page Previews : => changes not saved!"
132 if HelpTips.IsChecked <> TRUE then warnlog "Help Tips : => changes not saved!"
133 if After.GetText <> "1" then warnlog "After... : => changes not saved!"
134 if AllowAnimatedGraphics.IsChecked <> FALSE then warnlog "Allow Animated Graphics : => changes not saved!"
135 if AllowAnimatedText.IsChecked <> TRUE then warnlog "Allow Animated Text : => changes not saved!"
136 if AlwaysUseAutomaticFontColor.IsChecked <> FALSE then warnlog "Always Use Automatic Font Color : => changes not saved!"
137 'if UseSystemFont.IsChecked <> TRUE then warnlog "Use System Font : => changes not saved!"
138 if UseTextSelectionCursor.IsChecked <> FALSE then warnlog "Use Text Selection Cursor : => changes not saved!"
139 if SupportAssistiveTechnologyTools.Exists and SupportAssistiveTechnologyTools.IsVisible then
140 if SupportAssistiveTechnologyTools.IsChecked <> FALSE then warnlog "Support Assistive Technology Tools : => changes not saved!"
143 if lbSave (9) = TRUE then AutomaticDetectHC.Check else AutomaticDetectHC.UnCheck
144 if lbSave (2) = TRUE then ForPagePreviews.Check else ForPagePreviews.UnCheck
147 if lbSave (3) = TRUE then HelpTips.Check else HelpTips.UnCheck
148 if lbSave (4) = TRUE then AllowAnimatedGraphics.Check else AllowAnimatedGraphics.UnCheck
149 if lbSave (5) = TRUE then AllowAnimatedText.Check else AllowAnimatedText.UnCheck
150 if lbSave (6) = TRUE then AlwaysUseAutomaticFontColor.Check else AlwaysUseAutomaticFontColor.UnCheck
151 'if lbSave (7) = TRUE then UseSystemFont.Check else UseSystemFont.UnCheck
152 if lbSave (10) = TRUE then UseTextSelectionCursor.Check else UseTextSelectionCursor.UnCheck
153 if SupportAssistiveTechnologyTools.Exists and SupportAssistiveTechnologyTools.IsVisible then
154 if lbSave (8) = TRUE then SupportAssistiveTechnologyTools.Check else SupportAssistiveTechnologyTools.UnCheck
157 printlog " - press OK at the options dialog"
158 Kontext "ExtrasOptionenDlg"
162 printlog " - check reset"
164 hToolsOptions ( "StarOffice", "Accessibility" )
166 if AutomaticDetectHC.IsChecked <> lbSave (9) then warnlog "Automatic Detect HC ... : => changes not saved!"
167 if ForPagePreviews.IsChecked <> lbSave (2) then warnlog "For Page Previews : => changes not saved!"
168 if HelpTips.IsChecked <> lbSave (3) then warnlog "Help Tips : => changes not saved!"
170 if After.GetText <> sSave then warnlog "After... : => changes not saved!"
171 if AllowAnimatedGraphics.IsChecked <> lbSave (4) then warnlog "Allow Animated Graphics : => changes not saved!"
172 if AllowAnimatedText.IsChecked <> lbSave (5) then warnlog "Allow Animated Text : => changes not saved!"
173 if AlwaysUseAutomaticFontColor.IsChecked <> lbSave (6) then warnlog "Always Use Automatic Font Color : => changes not saved!"
174 'if UseSystemFont.IsChecked <> lbSave (7) then warnlog "Use System Font : => changes not saved!"
175 if UseTextSelectionCursor.IsChecked <> lbSave (10) then warnlog "Use Text Selection Cursor : => changes not saved!"
176 if SupportAssistiveTechnologyTools.Exists and SupportAssistiveTechnologyTools.IsVisible then
177 if SupportAssistiveTechnologyTools.IsChecked <> lbSave (8) then warnlog "Support Assistive Technology Tools : => changes not saved!"
179 printlog " - press OK at the options dialog"
180 Kontext "ExtrasOptionenDlg"