Version 4.0.2.1, tag libreoffice-4.0.2.1
[LibreOffice.git] / oovbaapi / ooo / vba / XCollectionBase.idl
blobcbedf1f9fe998dd9db4c43f5406ad32a07565ee6
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef OOO_VBA_XOLLECTIONBASE_IDL
20 #define OOO_VBA_XOLLECTIONBASE_IDL
22 #include <com/sun/star/container/XEnumerationAccess.idl>
23 #include <com/sun/star/script/XDefaultMethod.idl>
25 //=============================================================================
27 module ooo { module vba {
29 //=============================================================================
31 /** Base interface for VBA collections.
33 Every VBA collection provides the number of items, an enumeration access of
34 all collection items (e.g. for the "For Each" loop), and a way to access
35 single items, usually via the method "Item".
37 The various VBA collection objects expect a specific number of arguments in
38 the "Item" method, therefore this method is not part of this base interface
39 but has to be specified seperately in every derived interface.
41 interface XCollectionBase
43 //-------------------------------------------------------------------------
44 /** Provides an enumeration of all items in this collection.
46 interface ::com::sun::star::container::XEnumerationAccess;
48 //-------------------------------------------------------------------------
49 /** Provides the name of the default item access method.
51 Usually this method is called "Item". The access method has to be
52 specified and implemented separately by every derived class.
54 interface ::com::sun::star::script::XDefaultMethod;
56 //-------------------------------------------------------------------------
57 /** Returns the number of items contained in this collection.
59 [attribute, readonly] long Count;
61 //-------------------------------------------------------------------------
64 //=============================================================================
66 }; };
68 #endif