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
32 '\******************************************************************************
36 dim lsSave (4) as String
37 dim lbSave (3) as Boolean
42 hToolsOptions ( "StarOffice", "General" )
44 printlog " - save old data"
45 lsSave ( 1 ) = Zweistellig.GetText
46 lbSave ( 1 ) = Aktivieren.IsChecked
49 if gPlatgroup = "w95" then
50 lbSave (2) = StarOfficeDialogeBenutzen.IsChecked
53 lbSave ( 3 ) = DruckenStatus.IsChecked
54 lsSave ( 3 ) = StyleSheet.GetSelText
56 printlog " - invert/change data"
57 Zweistellig.SetText "1950"
60 if gPlatgroup = "w95" then
62 StarOfficeDialogeBenutzen.Uncheck
64 StarOfficeDialogeBenutzen.Check
76 Kontext "ExtrasOptionenDlg"
77 hCloseDialog( ExtrasOptionenDlg, "ok" )
80 printlog " - exit/restart StarOffice"
83 printlog " - check data"
85 hToolsOptions ( "StarOffice", "General" )
87 if Zweistellig.GetText <> "1950" then
89 Warnlog "Year ( 2 digits ) => changes not saved: " + Zweistellig.GetText
92 if not Aktivieren.IsChecked then
93 Warnlog "Enable HelpAgent => changes not saved"
98 if gPlatgroup = "w95" then
99 if StarOfficeDialogeBenutzen.IsChecked = lbSave (2) then
100 Warnlog "Use StarOffice dialogs => changes not saved!"
104 If DruckenStatus.IsChecked = lbSave ( 3 ) then
105 Warnlog "Printing sets 'Document modified' status => changes not saved!"
108 printlog " - 2. change data"
109 Zweistellig.SetText "1800"
110 DruckenStatus.UnCheck
112 Kontext "ExtrasOptionenDlg"
113 hCloseDialog( ExtrasOptionenDlg, "ok" )
115 printlog " - check data"
117 hToolsOptions ( "StarOffice", "General" )
119 if ( Zweistellig.GetText <> "1800" ) then
121 Warnlog( "Year ( 2 digits ) => changes not saved : " & Zweistellig.GetText() )
124 If DruckenStatus.IsChecked then
125 Warnlog "Printing sets 'Document modified' status => changes not saved!"
128 if StyleSheet.GetSelIndex <> 3 then
129 Warnlog "Style sheet for StarOffice Help => changes not saved!"
132 printlog " - reset to saved data"
133 Zweistellig.SetText lsSave ( 1 )
143 if gPlatgroup = "w95" then
145 StarOfficeDialogeBenutzen.Check
147 StarOfficeDialogeBenutzen.UnCheck
154 DruckenStatus.UnCheck
157 StyleSheet.Select lsSave(3)
159 Kontext "ExtrasOptionenDlg"
160 hCloseDialog( ExtrasOptionenDlg, "ok" )
163 hToolsOptions ( "StarOffice", "General" )
165 printlog " - check the reset data"
166 if Zweistellig.GetText <> lsSave ( 1 ) then
167 Warnlog "Year ( 2 digits ) => changes not saved"
170 if Aktivieren.IsChecked <> lbSave (1) then
171 Warnlog "Enable HelpAgent => changes not saved"
178 Aktivieren.Check else Aktivieren.Uncheck
181 if gPlatgroup = "w95" then
182 if StarOfficeDialogeBenutzen.IsChecked <> lbSave (2) then
183 Warnlog "Use StarOffice dialogs => changes not saved!"
187 If DruckenStatus.IsChecked <> lbSave(3) then
188 Warnlog "Printing sets 'Document modified' status => changes not saved!"
191 if StyleSheet.GetSelText <> lsSave (3) then
192 Warnlog "Style sheet for StarOffice Help => changes not saved!"
195 Kontext "ExtrasOptionenDlg"
196 hCloseDialog( ExtrasOptionenDlg, "ok" )