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: standard_toolbar_5.inc,v $
13 '* last change: $Author: jsi $ $Date: 2008-06-16 12:19:03 $
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 : joerg.skottke@sun.com
36 '* short description : global update test (Standardbar)
38 '\***************************************************************************
41 testcase tStandardBar_5
43 '///<h1>Update test: Configure the Standard Bar via Tools/Customize</h1>
46 '///+<li>open a new document</li>
49 '///+<li>open context menu on Standardbar and select the 2'th item (Customize)</li>
50 printlog "Customize ..."
53 Standardbar.OpenContextmenu()
58 '///+<li>Select all tabpages ( Menu, Keyboard, Toolbars, Events )</li>
61 hToolsCustomizeSelectTab( "menu" )
62 call dialogtest( TabCustomizeMenu )
64 '///+<li>Keyboard</li>
65 hToolsCustomizeSelectTab( "keyboard" )
66 call dialogtest( Tabtastatur )
68 '///+<li>Toolbars</li>
69 hToolsCustomizeSelectTab( "toolbars" )
70 call dialogtest( TabCustomizeToolbars )
73 hToolsCustomizeSelectTab( "events" )
74 call dialogtest( TabCustomizeEvents )
76 '///+<li>Click on 'OK' at Event-Tabpage</li>
77 kontext "tabcustomizeevents"
78 TabCustomizeEvents.OK()
81 '///+<li>Open context menu on Standardbar and select the 2nd item (Customize Toolbar)</li>
83 Standardbar.OpenContextmenu()
88 '///+<li>Close the Customize-Toolbars-Dialog with OK</li>
89 kontext "tabcustomizetoolbars"
90 TabCustomizeToolbars.OK()
92 '///+<li>Reset the StandardBar to defaults</li>
96 '///+<li>close the document</li>