/* -*- 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 an 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 an 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:

  • TypeClass::MODULE
  • TypeClass::INTERFACE
  • TypeClass::SERVICE
  • TypeClass::STRUCT
  • TypeClass::ENUM
  • TypeClass::EXCEPTION
  • TypeClass::TYPEDEF
  • TypeClass::CONSTANT
  • TypeClass::CONSTANTS
  • TypeClass::SINGLETON
@param depth specifies the depth of search in the underlying tree of type descriptions. Clients should be aware of the fact that specifiying 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
enum XEnumTypeDescription
struct XCompoundTypeDescription (the returned object should actually implement XStructTypeDescription)
exception XCompoundTypeDescription
interface XInterfaceTypeDescription (the returned object should actually implement XInterfaceTypeDescription2)
service XServiceTypeDescription (the returned object should actually implement XServiceTypeDescription2)
singleton XSingletonTypeDescription (the returned object should actually implement XSingletonTypeDescription2)
module XModuleTypeDescription
typedef XIndirectTypeDescription
constant XConstantTypeDescription
constants XConstantsTypeDescription
@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 an 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: */