1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * Copyright 2010, Oracle and/or its affiliates. All rights reserved.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir ************************************************************************/
6*cdf0e10cSrcweir
7*cdf0e10cSrcweir#ifndef OOO_VBA_XOLLECTIONBASE_IDL
8*cdf0e10cSrcweir#define OOO_VBA_XOLLECTIONBASE_IDL
9*cdf0e10cSrcweir
10*cdf0e10cSrcweir#include <com/sun/star/container/XEnumerationAccess.idl>
11*cdf0e10cSrcweir#include <com/sun/star/script/XDefaultMethod.idl>
12*cdf0e10cSrcweir
13*cdf0e10cSrcweir//=============================================================================
14*cdf0e10cSrcweir
15*cdf0e10cSrcweirmodule ooo { module vba {
16*cdf0e10cSrcweir
17*cdf0e10cSrcweir//=============================================================================
18*cdf0e10cSrcweir
19*cdf0e10cSrcweir/** Base interface for VBA collections.
20*cdf0e10cSrcweir
21*cdf0e10cSrcweir    Every VBA collection provides the number of items, an enumeration access of
22*cdf0e10cSrcweir    all collection items (e.g. for the "For Each" loop), and a way to access
23*cdf0e10cSrcweir    single items, usually via the method "Item".
24*cdf0e10cSrcweir
25*cdf0e10cSrcweir    The various VBA collection objects expect a specific number of arguments in
26*cdf0e10cSrcweir    the "Item" method, therefore this method is not part of this base interface
27*cdf0e10cSrcweir    but has to be specified seperately in every derived interface.
28*cdf0e10cSrcweir */
29*cdf0e10cSrcweirinterface XCollectionBase
30*cdf0e10cSrcweir{
31*cdf0e10cSrcweir    //-------------------------------------------------------------------------
32*cdf0e10cSrcweir    /** Provides an enumeration of all items in this collection.
33*cdf0e10cSrcweir     */
34*cdf0e10cSrcweir    interface ::com::sun::star::container::XEnumerationAccess;
35*cdf0e10cSrcweir
36*cdf0e10cSrcweir    //-------------------------------------------------------------------------
37*cdf0e10cSrcweir    /** Provides the name of the default item access method.
38*cdf0e10cSrcweir
39*cdf0e10cSrcweir        Usually this method is called "Item". The access method has to be
40*cdf0e10cSrcweir        specified and implemented separately by every derived class.
41*cdf0e10cSrcweir     */
42*cdf0e10cSrcweir    interface ::com::sun::star::script::XDefaultMethod;
43*cdf0e10cSrcweir
44*cdf0e10cSrcweir    //-------------------------------------------------------------------------
45*cdf0e10cSrcweir    /** Returns the number of items contained in this collection.
46*cdf0e10cSrcweir     */
47*cdf0e10cSrcweir    [attribute, readonly] long Count;
48*cdf0e10cSrcweir
49*cdf0e10cSrcweir    //-------------------------------------------------------------------------
50*cdf0e10cSrcweir};
51*cdf0e10cSrcweir
52*cdf0e10cSrcweir//=============================================================================
53*cdf0e10cSrcweir
54*cdf0e10cSrcweir}; };
55*cdf0e10cSrcweir
56*cdf0e10cSrcweir#endif
57