merge the formfield patch from ooo-build
[ooovba.git] / qadevOOo / tests / basic / mod / sch / AccLegendEntry / sch_AccLegendEntry.xba
blob7b0f27cc865ebff4d57d9c008372031969bb5e97
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
3 <script:module xmlns:script="http://openoffice.org/2000/script" script:name="sch_AccLegendEntry" script:language="StarBasic">
5 '*************************************************************************
7 ' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8 '
9 ' Copyright 2008 by Sun Microsystems, Inc.
11 ' OpenOffice.org - a multi-platform office productivity suite
13 ' $RCSfile: sch_AccLegendEntry.xba,v $
15 ' $Revision: 1.4 $
17 ' This file is part of OpenOffice.org.
19 ' OpenOffice.org is free software: you can redistribute it and/or modify
20 ' it under the terms of the GNU Lesser General Public License version 3
21 ' only, as published by the Free Software Foundation.
23 ' OpenOffice.org is distributed in the hope that it will be useful,
24 ' but WITHOUT ANY WARRANTY; without even the implied warranty of
25 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ' GNU Lesser General Public License version 3 for more details
27 ' (a copy is included in the LICENSE file that accompanied this code).
29 ' You should have received a copy of the GNU Lesser General Public License
30 ' version 3 along with OpenOffice.org. If not, see
31 ' <http://www.openoffice.org/license.html>
32 ' for a copy of the LGPLv3 License.
34 '*************************************************************************
35 '*************************************************************************
39 ' Be sure that all variables are dimensioned:
40 option explicit
43 ' REQUIRED VARIABLES for interface/service tests:
46 Sub CreateObj()
48 '*************************************************************************
49 ' COMPONENT:
50 ' sch.AccLegendEntry
51 '*************************************************************************
52 On Error Goto ErrHndl
53 Dim xRoot As Object
54 Dim oWin As Object
56 oDoc = utils.loadTestDocument("emptyChart.sds", cObjectName)
57 wait(1000)
58 oWin = utils.at_getCurrentWindow(oDoc)
59 xRoot = utils.at_getAccessibleObject(oWin)
60 oObj = utils.at_getAccessibleObjectForRole(xRoot, com.sun.star.accessibility.AccessibleRole.SHAPE, "LegendEntry")
62 Exit Sub
63 ErrHndl:
64 Test.Exception()
65 End Sub
67 Sub fireEvent()
68 oObj.grabFocus()
69 End Sub
71 </script:module>