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: options_ooo_fontreplacement.inc,v $
13 '* last change: $Author: jsi $ $Date: 2008-06-16 12:18:15 $
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 : Tools->Options: OpenOffice.org Fonts
38 '\******************************************************************************
40 testcase tOOoFontReplacement
43 '///check if all settings are saved in configuration ( StarOffice / Font Replacement )
44 '///creat a new document and open tools/options/staroffice/font replacement
46 hToolsOptions ( "StarOffice", "Fontreplacement" )
49 printlog " - change settings"
50 '///if 'Apply replacement table' is check as default => BUG
51 if Anwenden.IsChecked then
52 Warnlog "The default for this page is wrong. 'Apply replacement table' has top be unchecked!"
57 '///check 'Apply replacement table'
58 '///insert 2 new replacements ( Font / Replace with : 4 / 6 and 10 / 5 )
60 ErsetzenDurch.Select 6
64 ErsetzenDurch.Select 5
67 '///close options dialog with OK
68 Kontext "ExtrasOptionenDlg"
72 printlog " - exit/restart StarOffice"
73 '///exit and restart StarOffice
76 printlog " - check changes"
78 '///open tools/options/staroffice/font replacement
80 hToolsOptions ( "StarOffice", "Fontreplacement" )
82 '///if 'Apply replacement table' is not check => BUG
83 if Anwenden.IsChecked = FALSE then
84 Warnlog "Apply replacement table' => changes not saved!"
89 '///check the 2 replacements
90 il = Liste.GetItemCount
91 if il <> 2 then Warnlog "Not all entries are saved!"
95 Liste.TypeKeys "<Down><Up>"
97 Liste.TypeKeys "<Down>"
100 if Schriftart.GetSelIndex <> 4 then Warnlog "Font : the first entrie is not correctly saved!"
101 if ErsetzenDurch.GetSelIndex <> 6 then Warnlog "Replace with : the first entrie is not correctly saved!"
104 if Schriftart.GetSelIndex <> 10 then Warnlog "Font : the first entrie is not correctly saved!"
105 if ErsetzenDurch.GetSelIndex <> 5 then Warnlog "Replace with : the first entrie is not correctly saved!"
109 '///reset to defaut and delete the 2 new replacements
110 printlog " - reset to default"
112 Liste.TypeKeys "<Down><Up>"
118 '///close options dialog with OK
119 Kontext "ExtrasOptionenDlg"
124 printlog " - check the default"
126 hToolsOptions ( "StarOffice", "Fontreplacement" )
128 if Anwenden.IsChecked = TRUE then
129 Warnlog "Apply replacement table' => changes not saved!"
133 if Liste.GetItemCount <> 0 then Warnlog "Not all deleted entries are realy deleted!"
136 '///close options dialog with OK
137 Kontext "ExtrasOptionenDlg"