Update ooo320-m1
[ooovba.git] / unoxml / source / dom / domimplementation.cxx
blobf17d77d1b3e3ee3a4db08e2327d14e46acf02b6c
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: domimplementation.cxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #include "domimplementation.hxx"
33 namespace DOM
35 CDOMImplementation* CDOMImplementation::aDOMImplementation = new CDOMImplementation();
36 CDOMImplementation* CDOMImplementation::get()
38 return CDOMImplementation::aDOMImplementation;
41 /**
42 Creates a DOM Document object of the specified type with its document element.
44 Reference <XDocument > SAL_CALL CDOMImplementation::createDocument(
45 const OUString& namespaceURI,
46 const OUString& qualifiedName,
47 const Reference< XDocumentType >& doctype)
48 throw (RuntimeException)
50 OUString aNamespaceURI = namespaceURI;
51 OUString aQName = qualifiedName;
52 Reference< XDocumentType > aType = doctype;
53 return Reference<XDocument>();
56 /**
57 Creates an empty DocumentType node.
59 Reference< XDocumentType > SAL_CALL CDOMImplementation::createDocumentType(
60 const OUString& qualifiedName, const OUString& publicId, const OUString& systemId)
61 throw (RuntimeException)
63 OUString qName = qualifiedName;
64 OUString aPublicId = publicId;
65 OUString aSystemId = systemId;
66 return Reference<XDocumentType>();
68 /**
69 Test if the DOM implementation implements a specific feature.
71 sal_Bool SAL_CALL CDOMImplementation::hasFeature(const OUString& feature, const OUString& ver)
72 throw (RuntimeException)
74 OUString aFeature = feature;
75 OUString aVersion = ver;
76 return sal_False;