1*841807c9SAndrew Rist/************************************************************** 2*841807c9SAndrew Rist * 3*841807c9SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*841807c9SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*841807c9SAndrew Rist * distributed with this work for additional information 6*841807c9SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*841807c9SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*841807c9SAndrew Rist * "License"); you may not use this file except in compliance 9*841807c9SAndrew Rist * with the License. You may obtain a copy of the License at 10*841807c9SAndrew Rist * 11*841807c9SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*841807c9SAndrew Rist * 13*841807c9SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*841807c9SAndrew Rist * software distributed under the License is distributed on an 15*841807c9SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*841807c9SAndrew Rist * KIND, either express or implied. See the License for the 17*841807c9SAndrew Rist * specific language governing permissions and limitations 18*841807c9SAndrew Rist * under the License. 19*841807c9SAndrew Rist * 20*841807c9SAndrew Rist *************************************************************/ 21cdf0e10cSrcweir 22cdf0e10cSrcweir#ifndef OOO_VBA_XOLLECTIONBASE_IDL 23cdf0e10cSrcweir#define OOO_VBA_XOLLECTIONBASE_IDL 24cdf0e10cSrcweir 25cdf0e10cSrcweir#include <com/sun/star/container/XEnumerationAccess.idl> 26cdf0e10cSrcweir#include <com/sun/star/script/XDefaultMethod.idl> 27cdf0e10cSrcweir 28cdf0e10cSrcweir//============================================================================= 29cdf0e10cSrcweir 30cdf0e10cSrcweirmodule ooo { module vba { 31cdf0e10cSrcweir 32cdf0e10cSrcweir//============================================================================= 33cdf0e10cSrcweir 34cdf0e10cSrcweir/** Base interface for VBA collections. 35cdf0e10cSrcweir 36cdf0e10cSrcweir Every VBA collection provides the number of items, an enumeration access of 37cdf0e10cSrcweir all collection items (e.g. for the "For Each" loop), and a way to access 38cdf0e10cSrcweir single items, usually via the method "Item". 39cdf0e10cSrcweir 40cdf0e10cSrcweir The various VBA collection objects expect a specific number of arguments in 41cdf0e10cSrcweir the "Item" method, therefore this method is not part of this base interface 42cdf0e10cSrcweir but has to be specified seperately in every derived interface. 43cdf0e10cSrcweir */ 44cdf0e10cSrcweirinterface XCollectionBase 45cdf0e10cSrcweir{ 46cdf0e10cSrcweir //------------------------------------------------------------------------- 47cdf0e10cSrcweir /** Provides an enumeration of all items in this collection. 48cdf0e10cSrcweir */ 49cdf0e10cSrcweir interface ::com::sun::star::container::XEnumerationAccess; 50cdf0e10cSrcweir 51cdf0e10cSrcweir //------------------------------------------------------------------------- 52cdf0e10cSrcweir /** Provides the name of the default item access method. 53cdf0e10cSrcweir 54cdf0e10cSrcweir Usually this method is called "Item". The access method has to be 55cdf0e10cSrcweir specified and implemented separately by every derived class. 56cdf0e10cSrcweir */ 57cdf0e10cSrcweir interface ::com::sun::star::script::XDefaultMethod; 58cdf0e10cSrcweir 59cdf0e10cSrcweir //------------------------------------------------------------------------- 60cdf0e10cSrcweir /** Returns the number of items contained in this collection. 61cdf0e10cSrcweir */ 62cdf0e10cSrcweir [attribute, readonly] long Count; 63cdf0e10cSrcweir 64cdf0e10cSrcweir //------------------------------------------------------------------------- 65cdf0e10cSrcweir}; 66cdf0e10cSrcweir 67cdf0e10cSrcweir//============================================================================= 68cdf0e10cSrcweir 69cdf0e10cSrcweir}; }; 70cdf0e10cSrcweir 71cdf0e10cSrcweir#endif 72