diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-11-16 10:10:44 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-11-16 10:10:44 +0000 |
commit | 783a3385c8dd02d72eee250394bed12418bf0d63 (patch) | |
tree | b1e7b661f618f9f09bdfffed861fb689c9e5c106 /offapi/com/sun/star/xforms | |
parent | 45d7c66b50b9b44960ec4a0ffb035bb9b6a53a25 (diff) |
INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED
2004/07/15 09:51:36 fs 1.1.2.2: #114856# +getBasicDataType
2004/04/26 12:22:27 fs 1.1.2.1: repository of XSD data types
Diffstat (limited to 'offapi/com/sun/star/xforms')
-rw-r--r-- | offapi/com/sun/star/xforms/XDataTypeRepository.idl | 154 |
1 files changed, 154 insertions, 0 deletions
diff --git a/offapi/com/sun/star/xforms/XDataTypeRepository.idl b/offapi/com/sun/star/xforms/XDataTypeRepository.idl new file mode 100644 index 000000000000..6fed3f78e4de --- /dev/null +++ b/offapi/com/sun/star/xforms/XDataTypeRepository.idl @@ -0,0 +1,154 @@ +/************************************************************************* + * + * $RCSfile: XDataTypeRepository.idl,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: obo $ $Date: 2004-11-16 11:10:44 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef __com_sun_star_xsd_XDataTypeRepository_idl__ +#define __com_sun_star_xsd_XDataTypeRepository_idl__ + +#ifndef __com_sun_star_container_XEnumerationAccess_idl__ +#include <com/sun/star/container/XEnumerationAccess.idl> +#endif +#ifndef __com_sun_star_container_XNameAccess_idl__ +#include <com/sun/star/container/XNameAccess.idl> +#endif +#ifndef __com_sun_star_xsd_XDataType_idl__ +#include <com/sun/star/xsd/XDataType.idl> +#endif +#ifndef __com_sun_star_container_NoSuchElementException_idl__ +#include <com/sun/star/container/NoSuchElementException.idl> +#endif +#ifndef __com_sun_star_container_ElementExistException_idl__ +#include <com/sun/star/container/ElementExistException.idl> +#endif +#ifndef __com_sun_star_util_VetoException_idl__ +#include <com/sun/star/util/VetoException.idl> +#endif + + +//============================================================================= +module com { module sun { module star { module xforms { + +//----------------------------------------------------------------------------- +/** specifies a repository of XSD data types + + <p>The elements of the repository are instances supporting the <type scope="com::sun::star::xsd">XDataType</type> + interface.</p> +*/ +interface XDataTypeRepository +{ + /** provides access to an enumeration of the contained data types + */ + interface com::sun::star::container::XEnumerationAccess; + + /** provides untyped access to the elements of the repository, as well as meta information + such as the names of all contained types, and the existence of a named type + */ + interface com::sun::star::container::XNameAccess; + + /** retrieves the basic type for the given type class + + @see com::sun::star::xsd::DataTypeClass + + @throws com::sun::star::container::NoSuchElementException + if in the repository, there is no data type with the given class + */ + com::sun::star::xsd::XDataType + getBasicDataType( [in] short dataTypeClass ) + raises ( com::sun::star::container::NoSuchElementException ); + + /** creates a clone of the given data type, and inserts it into the repository + + @throws com::sun::star::container::NoSuchElementException + if the given name does not refer to a type in the repository + + @throws com::sun::star::container::ElementExistException + if the new name is already used in the repository + */ + com::sun::star::xsd::XDataType + cloneDataType( [in] string sourceName, [in] string newName ) + raises( com::sun::star::container::NoSuchElementException, com::sun::star::container::ElementExistException ); + + /** removes a data type given by name from the repository + + @throws com::sun::star::container::NoSuchElementException + if the given name does not refer to a type in the repository + + @throws com::sun::star::util::VetoException + if the specified data type is a built-in (basic) data type, and cannot + be removed + + @see com::sun::star::xsd::XDataType + */ + void + revokeDataType( [in] string typeName ) + raises( com::sun::star::container::NoSuchElementException, com::sun::star::util::VetoException ); + + /** + */ + com::sun::star::xsd::XDataType + getDataType( [in] string typeName ) + raises( com::sun::star::container::NoSuchElementException ); +}; + +//============================================================================= + +}; }; }; }; + +#endif |