LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / oovbaapi / ooo / vba / XCollectionBase.idl
blobcd76766da8d0ebf247f573bf6711b683aabc36fe
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef OOO_VBA_XOLLECTIONBASE_IDL
21 #define OOO_VBA_XOLLECTIONBASE_IDL
23 #include <com/sun/star/container/XEnumerationAccess.idl>
24 #include <com/sun/star/script/XDefaultMethod.idl>
28 module ooo { module vba {
32 /** Base interface for VBA collections.
34 Every VBA collection provides the number of items, an enumeration access of
35 all collection items (e.g. for the "For Each" loop), and a way to access
36 single items, usually via the method "Item".
38 The various VBA collection objects expect a specific number of arguments in
39 the "Item" method, therefore this method is not part of this base interface
40 but has to be specified separately in every derived interface.
42 interface XCollectionBase
45 /** Provides an enumeration of all items in this collection.
47 interface ::com::sun::star::container::XEnumerationAccess;
50 /** Provides the name of the default item access method.
52 Usually this method is called "Item". The access method has to be
53 specified and implemented separately by every derived class.
55 interface ::com::sun::star::script::XDefaultMethod;
58 /** Returns the number of items contained in this collection.
60 [attribute, readonly] long Count;
67 }; };
69 #endif
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */