merge the formfield patch from ooo-build
[ooovba.git] / qadevOOo / tests / basic / mod / sc / ScIndexEnumeration_TableColumnsEnumeration / sc_ScIndexEnumeration_TableColumnsEnumeration.xba
blob8514ca30dd60aff8d054da720dce626416c477f1
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_TableColumnsEnumeration" 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_TableColumnsEnumeration.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_TableColumnsEnumeration
51 '*************************************************************************
52 On Error Goto ErrHndl
53 Dim oTable as Object
55 oDoc = utils.createDocument("scalc", cObjectName)
56 oTable = oDoc.Sheets(0)
57 oObj = oTable.getColumns().createEnumeration()
59 Exit Sub
60 ErrHndl:
61 Test.Exception()
62 End Sub
63 </script:module>