1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28#ifndef __com_sun_star_xml_dom_XDOMImplementation_idl__ 29#define __com_sun_star_xml_dom_XDOMImplementation_idl__ 30 31#ifndef __com_sun_star_uno__XInterface_idl__ 32#include <com/sun/star/uno/XInterface.idl> 33#endif 34#ifndef __com_sun_star_xml_dom_DOMException_idl__ 35#include <com/sun/star/xml/dom/DOMException.idl> 36#endif 37 38 39module com { module sun { module star { module xml { module dom { 40 41interface XDocument; 42interface XDocumentType; 43 44interface XDOMImplementation : com::sun::star::uno::XInterface 45{ 46 /** 47 Creates a DOM Document object of the specified type with its document element. 48 Throws: 49 DOMException - INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character. 50 NAMESPACE_ERR: Raised if the qualifiedName is malformed, if the qualifiedName has a prefix 51 and the namespaceURI is null, or if the qualifiedName has a prefix that is "xml" and 52 the namespaceURI is different from " http://www.w3.org/XML/1998/namespace" , or if the 53 DOM implementation does not support the "XML" feature but a non-null namespace URI was 54 provided, since namespaces were defined by XML. 55 WRONG_DOCUMENT_ERR: Raised if doctype has already been used with a different document or 56 was created from a different implementation. 57 NOT_SUPPORTED_ERR: May be raised by DOM implementations which do not support the 58 "XML" feature, if they choose not to support this method. Other features introduced 59 in the future, by the DOM WG or in extensions defined by other groups, may also 60 demand support for this method; please consult the definition of the feature to see 61 if it requires this method. 62 */ 63 XDocument createDocument([in] string namespaceURI, [in] string qualifiedName, [in] XDocumentType doctype) 64 raises (DOMException); 65 66 /** 67 Creates an empty DocumentType node. 68 Throws: 69 DOMException - INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character. 70 NAMESPACE_ERR: Raised if the qualifiedName is malformed. 71 NOT_SUPPORTED_ERR: May be raised by DOM implementations which do not support the 72 "XML" feature, if they choose not to support this method. Other features introduced 73 in the future, by the DOM WG or in extensions defined by other groups, may also demand 74 support for this method; please consult the definition of the feature to see if it 75 requires this method. 76 */ 77 XDocumentType createDocumentType([in] string qualifiedName, [in] string publicId, [in] string systemId) 78 raises (DOMException); 79 80 /** 81 Test if the DOM implementation implements a specific feature. 82 */ 83 boolean hasFeature([in] string feature, [in] string ver); 84}; 85 86}; }; }; }; }; 87 88#endif 89