summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/basic/mod/sch/AccAxis/sch_AccAxis.xba
blob: 587f63042582462065a8d2d0960976dca7c63157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="sch_AccAxis" script:language="StarBasic">

&apos;*************************************************************************
&apos;*
&apos;*  $RCSfile: sch_AccAxis.xba,v $ 
&apos;*
&apos;*  $Revision: 1.1 $ 
&apos;*
&apos;*  last change:$Date: 2003-01-27 18:01:00 $ 
&apos;*
&apos;*  The Contents of this file are made available subject to the terms of
&apos;*  either of the following licenses
&apos;*
&apos;*         - GNU Lesser General Public License Version 2.1
&apos;*         - Sun Industry Standards Source License Version 1.1
&apos;*
&apos;*  Sun Microsystems Inc., October, 2000
&apos;*
&apos;*  GNU Lesser General Public License Version 2.1
&apos;*  =============================================
&apos;*  Copyright 2000 by Sun Microsystems, Inc.
&apos;*  901 San Antonio Road, Palo Alto, CA 94303, USA
&apos;*
&apos;*  This library is free software; you can redistribute it and/or
&apos;*  modify it under the terms of the GNU Lesser General Public
&apos;*  License version 2.1, as published by the Free Software Foundation.
&apos;*
&apos;*  This library is distributed in the hope that it will be useful,
&apos;*  but WITHOUT ANY WARRANTY; without even the implied warranty of
&apos;*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
&apos;*  Lesser General Public License for more details.
&apos;*
&apos;*  You should have received a copy of the GNU Lesser General Public
&apos;*  License along with this library; if not, write to the Free Software
&apos;*  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
&apos;*  MA  02111-1307  USA
&apos;*
&apos;*
&apos;*  Sun Industry Standards Source License Version 1.1
&apos;*  =================================================
&apos;*  The contents of this file are subject to the Sun Industry Standards
&apos;*  Source License Version 1.1 (the &quot;License&quot;); You may not use this file
&apos;*  except in compliance with the License. You may obtain a copy of the
&apos;*  License at http://www.openoffice.org/license.html.
&apos;*
&apos;*  Software provided under this License is provided on an &quot;AS IS&quot; basis,
&apos;*  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
&apos;*  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
&apos;*  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
&apos;*  See the License for the specific provisions governing your rights and
&apos;*  obligations concerning the Software.
&apos;*
&apos;*  The Initial Developer of the Original Code is: Sun Microsystems, Inc.
&apos;*
&apos;*  Copyright: 2000 by Sun Microsystems, Inc.
&apos;*
&apos;*  All Rights Reserved.
&apos;*
&apos;*  Contributor(s): _______________________________________
&apos;*
&apos;*
&apos;*************************************************************************
&apos;*************************************************************************





&apos; REQUIRED VARIABLES for interface/service tests:

Dim oListener1 As Object
Dim oListener2 As Object
Dim bL1called As Boolean
Dim bL2called As Boolean
Dim oDoc as Object

Sub CreateObj()

&apos;*************************************************************************
&apos; COMPONENT: 
&apos; sch.AccAxis
&apos;*************************************************************************


    Dim xRoot As Object
    Dim oWin As Object

    oDoc = utils.loadTestDocument("emptyChart.sds", cObjectName)
	wait(1000)
    oWin = utils.at_getCurrentWindow(oDoc)
    xRoot = utils.at_getAccessibleObject(oWin)
    oObj = utils.at_getAccessibleObjectForRole(xRoot, 111, &quot;axis&quot;)

	Exit Sub
ErrHndl:
    Test.Exception()
End Sub

Sub fireEvent()
	oObj.grabFocus()
End Sub

</script:module>