/**************************************************************
*
* 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
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef __com_sun_star_reflection_XPublished_idl__
#define __com_sun_star_reflection_XPublished_idl__
#include "com/sun/star/uno/XInterface.idl"
module com { module sun { module star { module reflection {
/**
Reflects the “published” status of a UNOIDL entity.
This interface is intended to be supported by objects that also support
XTypeDescription.
(This interface could have been made an optional sub-interface of
XTypeDescription, but is
instead kept independent for reasons of backwards compatibility.)
For the various kinds of UNOIDL entities that are represented by objects
supporting XTypeDescription
and its subtypes, this optional interface should be supported as follows:
- Enum types
(XEnumTypeDescription),
plain struct types
(XStructTypeDescription),
polymorphic struct type templates
(XStructTypeDescription),
exception types (XCompoundTypeDescription),
interface types (XInterfaceTypeDescription2),
typedefs (XIndirectTypeDescription),
individual constants (XConstantTypeDescription),
constant groups (XConstantsTypeDescription),
single-interface–based services (XServiceTypeDescription2),
accumulation-based services (XServiceTypeDescription2),
interface-based singletons (XSingletonTypeDescription2),
and service-based singletons (XSingletonTypeDescription2)
support the notion of being published. Therefore, for an object that
represents any such entity,
XPublished should be
supported.
- Sequence types (XIndirectTypeDescription),
type parameters of polymorphic struct type templates
(XTypeDescription),
instantiated polymorphic struct types
(XStructTypeDescription),
attributes of interface types (
XInterfaceAttributeTypeDescription2), methods of interface types
(
XInterfaceMethodTypeDescription), properties of
accumulation-based services (XPropertyTypeDescription),
deprecated
XArrayTypeDescriptions,
and deprecated
XUnionTypeDescriptions do
not support the notion of being published. Therefore, for an object that
represents any such entity,
XPublished should not be
supported.
@since OpenOffice 2.0
*/
interface XPublished {
/**
Returns the “published” status of a UNOIDL entity.
@return if the UNOIDL entity represented by this object is
published
*/
boolean isPublished();
};
}; }; }; };
#endif