1*e9cbe144SAndrew Rist /**************************************************************
2*e9cbe144SAndrew Rist  *
3*e9cbe144SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*e9cbe144SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*e9cbe144SAndrew Rist  * distributed with this work for additional information
6*e9cbe144SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*e9cbe144SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*e9cbe144SAndrew Rist  * "License"); you may not use this file except in compliance
9*e9cbe144SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*e9cbe144SAndrew Rist  *
11*e9cbe144SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*e9cbe144SAndrew Rist  *
13*e9cbe144SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*e9cbe144SAndrew Rist  * software distributed under the License is distributed on an
15*e9cbe144SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*e9cbe144SAndrew Rist  * KIND, either express or implied.  See the License for the
17*e9cbe144SAndrew Rist  * specific language governing permissions and limitations
18*e9cbe144SAndrew Rist  * under the License.
19*e9cbe144SAndrew Rist  *
20*e9cbe144SAndrew Rist  *************************************************************/
21*e9cbe144SAndrew Rist 
22*e9cbe144SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #include <domimplementation.hxx>
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <rtl/instance.hxx>
27cdf0e10cSrcweir 
28cdf0e10cSrcweir 
29cdf0e10cSrcweir namespace DOM
30cdf0e10cSrcweir {
31cdf0e10cSrcweir     // why the heck is this thing static?
32cdf0e10cSrcweir     // perhaps it would be helpful to know what the implementation should
33cdf0e10cSrcweir     // do to answer this question...
34cdf0e10cSrcweir     namespace {
35cdf0e10cSrcweir         struct DOMImplementation
36cdf0e10cSrcweir             : public ::rtl::Static<CDOMImplementation, DOMImplementation> {};
37cdf0e10cSrcweir     }
38cdf0e10cSrcweir 
get()39cdf0e10cSrcweir     CDOMImplementation* CDOMImplementation::get()
40cdf0e10cSrcweir     {
41cdf0e10cSrcweir         return & DOMImplementation::get();
42cdf0e10cSrcweir     }
43cdf0e10cSrcweir 
44cdf0e10cSrcweir     // there is just 1 static instance, so these must not delete it!
acquire()45cdf0e10cSrcweir     void SAL_CALL CDOMImplementation::acquire() throw () { }
release()46cdf0e10cSrcweir     void SAL_CALL CDOMImplementation::release() throw () { }
47cdf0e10cSrcweir 
48cdf0e10cSrcweir     /**
49cdf0e10cSrcweir     Creates a DOM Document object of the specified type with its document element.
50cdf0e10cSrcweir     */
createDocument(OUString const &,OUString const &,Reference<XDocumentType> const &)51cdf0e10cSrcweir     Reference <XDocument > SAL_CALL CDOMImplementation::createDocument(
52cdf0e10cSrcweir            OUString const& /*rNamespaceURI*/,
53cdf0e10cSrcweir            OUString const& /*rQualifiedName*/,
54cdf0e10cSrcweir            Reference< XDocumentType > const& /*xDoctype*/)
55cdf0e10cSrcweir         throw (RuntimeException)
56cdf0e10cSrcweir     {
57cdf0e10cSrcweir         OSL_ENSURE(false,
58cdf0e10cSrcweir             "CDOMImplementation::createDocument: not implemented (#i113683#)");
59cdf0e10cSrcweir         return Reference<XDocument>();
60cdf0e10cSrcweir     }
61cdf0e10cSrcweir 
62cdf0e10cSrcweir     /**
63cdf0e10cSrcweir     Creates an empty DocumentType node.
64cdf0e10cSrcweir     */
createDocumentType(OUString const &,OUString const &,OUString const &)65cdf0e10cSrcweir     Reference< XDocumentType > SAL_CALL CDOMImplementation::createDocumentType(
66cdf0e10cSrcweir             OUString const& /*rQualifiedName*/,
67cdf0e10cSrcweir             OUString const& /*rPublicId*/, OUString const& /*rSystemId*/)
68cdf0e10cSrcweir         throw (RuntimeException)
69cdf0e10cSrcweir     {
70cdf0e10cSrcweir         OSL_ENSURE(false, "CDOMImplementation::createDocumentType: "
71cdf0e10cSrcweir                 "not implemented (#i113683#)");
72cdf0e10cSrcweir         return Reference<XDocumentType>();
73cdf0e10cSrcweir     }
74cdf0e10cSrcweir 
75cdf0e10cSrcweir     /**
76cdf0e10cSrcweir     Test if the DOM implementation implements a specific feature.
77cdf0e10cSrcweir     */
78cdf0e10cSrcweir     sal_Bool SAL_CALL
hasFeature(OUString const &,OUString const &)79cdf0e10cSrcweir     CDOMImplementation::hasFeature(OUString const& /*feature*/, OUString const& /*ver*/)
80cdf0e10cSrcweir         throw (RuntimeException)
81cdf0e10cSrcweir     {
82cdf0e10cSrcweir         OSL_ENSURE(false,
83cdf0e10cSrcweir             "CDOMImplementation::hasFeature: not implemented (#i113683#)");
84cdf0e10cSrcweir         return sal_False;
85cdf0e10cSrcweir     }
86cdf0e10cSrcweir }
87