merge the formfield patch from ooo-build
[ooovba.git] / qadevOOo / tests / basic / mod / sc / ScIndexEnumeration_CellAreaLinksEnumeration / sc_ScIndexEnumeration_CellAreaLinksEnumeration.xba
blobd0ac2dbf7ae5d6f01bd68b4d5ae8148f4f500eb8
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="sc_ScIndexEnumeration_CellAreaLinksEnumeration" 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: sc_ScIndexEnumeration_CellAreaLinksEnumeration.xba,v $
15 ' $Revision: 1.3 $
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 ' sc.ScIndexEnumeration_CellAreaLinksEnumeration
51 '*************************************************************************
52 On Error Goto ErrHndl
54 Dim oLinks As Variant
56 oDoc = utils.createDocument("scalc", cObjectName)
58 oLinks = oDoc.AreaLinks
59 oLinks.InsertAtPosition(com.sun.star.table.CellAddress(1, 2, 3), "dummy_fname", "a1:b2", "", "")
61 oObj = oLinks.createEnumeration()
63 Exit Sub
64 ErrHndl:
65 Test.Exception()
66 End Sub
67 </script:module>