xref: /aoo4110/main/unoxml/source/dom/entitiesmap.cxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #include <entitiesmap.hxx>
25 
26 #include <documenttype.hxx>
27 
28 
29 namespace DOM
30 {
CEntitiesMap(::rtl::Reference<CDocumentType> const & pDocType,::osl::Mutex & rMutex)31     CEntitiesMap::CEntitiesMap(::rtl::Reference<CDocumentType> const& pDocType,
32             ::osl::Mutex & rMutex)
33         : m_pDocType(pDocType)
34         , m_rMutex(rMutex)
35     {
36     }
37 
38     /**
39     The number of nodes in this map.
40     */
getLength()41     sal_Int32 SAL_CALL CEntitiesMap::getLength() throw (RuntimeException)
42     {
43         OSL_ENSURE(false,
44             "CEntitiesMap::getLength: not implemented (#i113683#)");
45         return 0;
46     }
47 
48     /**
49     Retrieves a node specified by local name
50     */
51     Reference< XNode > SAL_CALL
getNamedItem(OUString const &)52     CEntitiesMap::getNamedItem(OUString const& /*name*/) throw (RuntimeException)
53     {
54         OSL_ENSURE(false,
55             "CEntitiesMap::getNamedItem: not implemented (#i113683#)");
56         return Reference< XNode >();
57     }
58 
59     /**
60     Retrieves a node specified by local name and namespace URI.
61     */
62     Reference< XNode > SAL_CALL
getNamedItemNS(OUString const &,OUString const &)63     CEntitiesMap::getNamedItemNS(
64         OUString const& /*namespaceURI*/, OUString const& /*localName*/)
65     throw (RuntimeException)
66     {
67         OSL_ENSURE(false,
68             "CEntitiesMap::getNamedItemNS: not implemented (#i113683#)");
69         return Reference< XNode >();
70     }
71 
72     /**
73     Returns the indexth item in the map.
74     */
75     Reference< XNode > SAL_CALL
item(sal_Int32)76     CEntitiesMap::item(sal_Int32 /*index*/) throw (RuntimeException)
77     {
78         OSL_ENSURE(false, "CEntitiesMap::item: not implemented (#i113683#)");
79         return Reference< XNode >();
80     }
81 
82     /**
83     Removes a node specified by name.
84     */
85     Reference< XNode > SAL_CALL
removeNamedItem(OUString const &)86     CEntitiesMap::removeNamedItem(OUString const& /*name*/)
87     throw (RuntimeException)
88     {
89         OSL_ENSURE(false,
90             "CEntitiesMap::removeNamedItem: not implemented (#i113683#)");
91         return Reference< XNode >();
92     }
93 
94     /**
95     // Removes a node specified by local name and namespace URI.
96     */
97     Reference< XNode > SAL_CALL
removeNamedItemNS(OUString const &,OUString const &)98     CEntitiesMap::removeNamedItemNS(
99         OUString const& /*namespaceURI*/, OUString const& /*localName*/)
100     throw (RuntimeException)
101     {
102         OSL_ENSURE(false,
103             "CEntitiesMap::removeNamedItemNS: not implemented (#i113683#)");
104         return Reference< XNode >();
105     }
106 
107     /**
108     // Adds a node using its nodeName attribute.
109     */
110     Reference< XNode > SAL_CALL
setNamedItem(Reference<XNode> const &)111     CEntitiesMap::setNamedItem(Reference< XNode > const& /*arg*/)
112     throw (RuntimeException)
113     {
114         OSL_ENSURE(false,
115             "CEntitiesMap::setNamedItem: not implemented (#i113683#)");
116         return Reference< XNode >();
117     }
118 
119     /**
120     Adds a node using its namespaceURI and localName.
121     */
122     Reference< XNode > SAL_CALL
setNamedItemNS(Reference<XNode> const &)123     CEntitiesMap::setNamedItemNS(Reference< XNode > const& /*arg*/)
124     throw (RuntimeException)
125     {
126         OSL_ENSURE(false,
127             "CEntitiesMap::setNamedItemNS: not implemented (#i113683#)");
128         return Reference< XNode >();
129     }
130 }
131