From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- .../XTypeDescriptionEnumerationAccess.idl | 164 +++++++++++++++++++++ 1 file changed, 164 insertions(+) create mode 100644 udkapi/com/sun/star/reflection/XTypeDescriptionEnumerationAccess.idl (limited to 'udkapi/com/sun/star/reflection/XTypeDescriptionEnumerationAccess.idl') diff --git a/udkapi/com/sun/star/reflection/XTypeDescriptionEnumerationAccess.idl b/udkapi/com/sun/star/reflection/XTypeDescriptionEnumerationAccess.idl new file mode 100644 index 000000000..6627c52d2 --- /dev/null +++ b/udkapi/com/sun/star/reflection/XTypeDescriptionEnumerationAccess.idl @@ -0,0 +1,164 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#ifndef __com_sun_star_reflection_XTypeDescriptionEnumerationAccess_idl__ +#define __com_sun_star_reflection_XTypeDescriptionEnumerationAccess_idl__ + +#include +#include +#include +#include +#include +#include + + + module com { module sun { module star { module reflection { + + +/** Defines an interface for creating enumerations for type descriptions. + + @since OOo 1.1.2 + + */ +published interface XTypeDescriptionEnumerationAccess : com::sun::star::uno::XInterface +{ + /** Creates an enumeration for type descriptions. + +

An enumeration is always created for a UNOIDL module. The + enumeration contents can be restricted by specifying type classes. + Only types that match one of the supplied type classes will be part of + the collection. Additionally, it is possible to specify the depth + for the search within the underlying type description tree. + + @param moduleName + contains the name of a UNOIDL module. Modules are separated by a + single '.' (i.e., "com.sun.star.reflection"). The root of the module + hierarchy is specified with an empty string. Module names are always + absolute, never relative. + + @param types + restricts the contents of the enumeration. It will only contain + type descriptions that match one of the supplied type classes. An + empty sequence specifies that the enumeration shall contain all + type descriptions. + +

Valid types classes are: +

    +
  • com::sun::star::uno::TypeClass::MODULE +
  • com::sun::star::uno::TypeClass::INTERFACE +
  • com::sun::star::uno::TypeClass::SERVICE +
  • com::sun::star::uno::TypeClass::STRUCT +
  • com::sun::star::uno::TypeClass::ENUM +
  • com::sun::star::uno::TypeClass::EXCEPTION +
  • com::sun::star::uno::TypeClass::TYPEDEF +
  • com::sun::star::uno::TypeClass::CONSTANT +
  • com::sun::star::uno::TypeClass::CONSTANTS +
  • com::sun::star::uno::TypeClass::SINGLETON +
+ + @param depth + specifies the depth of search in the underlying tree of type + descriptions. Clients should be aware of the fact that specifying + TypeDescriptionSearchDepth::INFINITE can lead to + larger delays when constructing or using the + XTypeDescriptionEnumeration instance. + + @returns + an enumeration of type descriptions. + +

The enumeration returns implementations of + XTypeDescription. Following concrete UNOIDL parts + represented by specialized interfaces derived from + XTypeDescription can be returned by the enumerator: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
IDLinterface
enumXEnumTypeDescription
structXCompoundTypeDescription (the returned + object should actually implement + XStructTypeDescription)
exceptionXCompoundTypeDescription
interfaceXInterfaceTypeDescription (the returned + object should actually implement + XInterfaceTypeDescription2)
serviceXServiceTypeDescription (the returned + object should actually implement + XServiceTypeDescription2)
singletonXSingletonTypeDescription (the returned + object should actually implement + XSingletonTypeDescription2)
moduleXModuleTypeDescription
typedefXIndirectTypeDescription
constantXConstantTypeDescription
constantsXConstantsTypeDescription
+ + @throws NoSuchTypeNameException + in case that the given module name does not exist. This exception + will never be thrown in case moduleName is the empty string. + + @throws InvalidTypeNameException + in case that the given module name does exist, but does not specify + a UNOIDL module. This exception will never be thrown in case + moduleName is the empty string. + */ + XTypeDescriptionEnumeration + createTypeDescriptionEnumeration( + [in] string moduleName, + [in] sequence< com::sun::star::uno::TypeClass > types, + [in] TypeDescriptionSearchDepth depth ) + raises( NoSuchTypeNameException, InvalidTypeNameException ); +}; + + +}; }; }; }; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3