Get the style color and number just once
[LibreOffice.git] / offapi / com / sun / star / xml / dom / XDOMImplementation.idl
blobb2f455ab5df58650c012c2c2b36588be4bcb0800
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 module com { module sun { module star { module xml { module dom {
23 interface XDocument;
24 interface XDocumentType;
26 interface XDOMImplementation : com::sun::star::uno::XInterface
28 /**
29 Creates a DOM Document object of the specified type with its document element.
30 Throws:
31 DOMException - INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.
32 NAMESPACE_ERR: Raised if the qualifiedName is malformed, if the qualifiedName has a prefix
33 and the namespaceURI is null, or if the qualifiedName has a prefix that is "xml" and
34 the namespaceURI is different from " http://www.w3.org/XML/1998/namespace" , or if the
35 DOM implementation does not support the "XML" feature but a non-null namespace URI was
36 provided, since namespaces were defined by XML.
37 WRONG_DOCUMENT_ERR: Raised if doctype has already been used with a different document or
38 was created from a different implementation.
39 NOT_SUPPORTED_ERR: May be raised by DOM implementations which do not support the
40 "XML" feature, if they choose not to support this method. Other features introduced
41 in the future, by the DOM WG or in extensions defined by other groups, may also
42 demand support for this method; please consult the definition of the feature to see
43 if it requires this method.
45 XDocument createDocument([in] string namespaceURI, [in] string qualifiedName, [in] XDocumentType doctype)
46 raises (DOMException);
48 /**
49 Creates an empty DocumentType node.
50 Throws:
51 DOMException - INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.
52 NAMESPACE_ERR: Raised if the qualifiedName is malformed.
53 NOT_SUPPORTED_ERR: May be raised by DOM implementations which do not support the
54 "XML" feature, if they choose not to support this method. Other features introduced
55 in the future, by the DOM WG or in extensions defined by other groups, may also demand
56 support for this method; please consult the definition of the feature to see if it
57 requires this method.
59 XDocumentType createDocumentType([in] string qualifiedName, [in] string publicId, [in] string systemId)
60 raises (DOMException);
62 /**
63 Test if the DOM implementation implements a specific feature.
65 boolean hasFeature([in] string feature, [in] string ver);
68 }; }; }; }; };
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */