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 : gregor.hartmann@oracle.com
30 '* short description : 1. test for general group userdata ... view)
32 '\******************************************************************************
36 Dim lsSave (7) as String
40 dim bHasQuickstarter as boolean
44 hToolsOptions ( "StarOffice", "Memory" )
46 printlog " - check platform dependences "
48 if ( LoadQuickstarter.exists() and LoadQuickstarter.isVisible() and LoadQuickstarter.isEnabled() ) then
49 bHasQuickstarter = TRUE
50 printlog( "Quickstarter is available" )
52 bHasQuickstarter = FALSE
53 printlog( "Quickstarter is NOT available on this platform" )
56 printlog " - save old data"
57 lsSave(1) = UndoSteps.GetText
58 lsSave(2) = StarOffice.GetText
59 lsSave(3) = MemoryPerObject.GetText
60 lsSave(4) = RemoveFromMemoryAfter.GetText
61 lsSave(5) = NumberOfObjects.GetText
62 if ( bHasQuickstarter ) then
63 lbSave = LoadQuickstarter.IsChecked
66 printlog " - invert/change data"
67 UndoSteps.SetText "80"
68 StarOffice.SetText "50"
69 if Instr ( lsSave(3), "," ) <> 0 then
74 MemoryPerObject.SetText sValue
75 RemoveFromMemoryAfter.SetText "00:41"
76 NumberOfObjects.SetText "81"
77 if ( bHasQuickstarter ) then
78 LoadQuickstarter.UnCheck
81 Kontext "ExtrasOptionenDlg"
83 if ( ExtrasOptionenDlg.notExists( 3 ) ) then
84 printlog( "Options closed" )
90 printlog " - exit/restart StarOffice"
93 printlog " - check data"
95 hToolsOptions ( "StarOffice", "Memory" )
97 if UndoSteps.GetText <> "80" then
98 Warnlog "Undo steps => changes not saved!"
100 if StarOffice.GetText <> "50" then
101 Warnlog "Use For StarOffice => changes not saved!"
103 if MemoryPerObject.GetText <> sValue then
104 Warnlog "Memory per object => changes not saved! => " + MemoryPerObject.GetText
106 if RemoveFromMemoryAfter.GetText <> "00:41" then
107 Warnlog "Remove from memory after => changes not saved! =>" + RemoveFromMemoryAfter.GetText
109 if NumberOfObjects.GetText <> "81" then
110 Warnlog "Number of objects => changes not saved!"
112 if ( bHasQuickstarter ) then
113 if LoadQuickstarter.IsEnabled then
114 if LoadQuickstarter.IsChecked = TRUE then
115 Warnlog "Load StarOffice during system-startup => changes not saved!"
120 printlog " - 2. change data"
121 UndoSteps.SetText "5"
122 StarOffice.SetText "11"
123 if Instr ( lsSave(3), "," ) <> 0 then
128 MemoryPerObject.SetText sValue
129 RemoveFromMemoryAfter.SetText "01:32"
130 NumberOfObjects.SetText "2"
131 if ( bHasQuickstarter ) then
132 LoadQuickstarter.Check
135 Kontext "ExtrasOptionenDlg"
137 if ( ExtrasOptionenDlg.notExists( 3 ) ) then
138 printlog( "Options closed" )
141 printlog " - check data"
143 hToolsOptions ( "StarOffice", "Memory" )
145 if UndoSteps.GetText <> "5" then
146 Warnlog "Undo steps => changes not saved!"
148 if StarOffice.GetText <> "11" then
149 Warnlog "Use For StarOffice => changes not saved!"
151 if MemoryPerObject.GetText <> sValue then
152 Warnlog "Memory per object => changes not saved! => " + MemoryPerObject.GetText
154 if RemoveFromMemoryAfter.GetText <> "01:32" then
155 Warnlog "Remove from memory after => changes not saved! => " + RemoveFromMemoryAfter.GetText
157 if NumberOfObjects.GetText <> "2" then
158 Warnlog "Number of objects => changes not saved!"
160 if ( bHasQuickstarter ) then
161 if LoadQuickstarter.IsChecked <> TRUE then
162 Warnlog "Load StarOffice during system-startup => changes not saved!"
166 printlog " - reset to saved data"
167 UndoSteps.SetText lsSave(1)
168 StarOffice.SetText lsSave(2)
169 MemoryPerObject.SetText lsSave(3)
170 RemoveFromMemoryAfter.SetText lsSave(4)
171 NumberOfObjects.SetText lsSave(5)
173 if ( bHasQuickstarter ) then
174 if lbSave = TRUE then
175 LoadQuickstarter.Check else LoadQuickstarter.UnCheck
179 Kontext "ExtrasOptionenDlg"
181 if ( ExtrasOptionenDlg.notExists( 3 ) ) then
182 printlog( "Options closed" )
186 hToolsOptions ( "StarOffice", "Memory" )
188 printlog " - check the reset data"
189 if UndoSteps.GetText <> lsSave(1) then
190 Warnlog "Undo steps => changes not saved!"
192 if StarOffice.GetText <> lsSave(2) then
193 Warnlog "Use For StarOffice => changes not saved!"
195 if MemoryPerObject.GetText <> lsSave(3) then
196 Warnlog "Memory per object => changes not saved! => " + MemoryPerObject.GetText
198 if RemoveFromMemoryAfter.GetText <> lsSave(4) then
199 Warnlog "Remove from memory after => changes not saved! =>" + RemoveFromMemoryAfter.GetText
201 if NumberOfObjects.GetText <> lsSave(5) then
202 Warnlog "Number of objects => changes not saved!"
204 if ( bHasQuickstarter ) then
205 if LoadQuickstarter.IsChecked <> lbSave then
206 Warnlog "Load StarOffice during system-startup => changes not saved!"
210 Kontext "ExtrasOptionenDlg"
212 if ( ExtrasOptionenDlg.notExists( 3 ) ) then
213 printlog( "Options closed" )