xref: /aoo42x/main/unoxml/source/dom/entitiesmap.cxx (revision e9cbe144)
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 <entitiesmap.hxx>
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <documenttype.hxx>
27cdf0e10cSrcweir 
28cdf0e10cSrcweir 
29cdf0e10cSrcweir namespace DOM
30cdf0e10cSrcweir {
CEntitiesMap(::rtl::Reference<CDocumentType> const & pDocType,::osl::Mutex & rMutex)31cdf0e10cSrcweir     CEntitiesMap::CEntitiesMap(::rtl::Reference<CDocumentType> const& pDocType,
32cdf0e10cSrcweir             ::osl::Mutex & rMutex)
33cdf0e10cSrcweir         : m_pDocType(pDocType)
34cdf0e10cSrcweir         , m_rMutex(rMutex)
35cdf0e10cSrcweir     {
36cdf0e10cSrcweir     }
37cdf0e10cSrcweir 
38cdf0e10cSrcweir     /**
39cdf0e10cSrcweir     The number of nodes in this map.
40cdf0e10cSrcweir     */
getLength()41cdf0e10cSrcweir     sal_Int32 SAL_CALL CEntitiesMap::getLength() throw (RuntimeException)
42cdf0e10cSrcweir     {
43cdf0e10cSrcweir         OSL_ENSURE(false,
44cdf0e10cSrcweir             "CEntitiesMap::getLength: not implemented (#i113683#)");
45cdf0e10cSrcweir         return 0;
46cdf0e10cSrcweir     }
47cdf0e10cSrcweir 
48cdf0e10cSrcweir     /**
49cdf0e10cSrcweir     Retrieves a node specified by local name
50cdf0e10cSrcweir     */
51cdf0e10cSrcweir     Reference< XNode > SAL_CALL
getNamedItem(OUString const &)52cdf0e10cSrcweir     CEntitiesMap::getNamedItem(OUString const& /*name*/) throw (RuntimeException)
53cdf0e10cSrcweir     {
54cdf0e10cSrcweir         OSL_ENSURE(false,
55cdf0e10cSrcweir             "CEntitiesMap::getNamedItem: not implemented (#i113683#)");
56cdf0e10cSrcweir         return Reference< XNode >();
57cdf0e10cSrcweir     }
58cdf0e10cSrcweir 
59cdf0e10cSrcweir     /**
60cdf0e10cSrcweir     Retrieves a node specified by local name and namespace URI.
61cdf0e10cSrcweir     */
62cdf0e10cSrcweir     Reference< XNode > SAL_CALL
getNamedItemNS(OUString const &,OUString const &)63cdf0e10cSrcweir     CEntitiesMap::getNamedItemNS(
64cdf0e10cSrcweir         OUString const& /*namespaceURI*/, OUString const& /*localName*/)
65cdf0e10cSrcweir     throw (RuntimeException)
66cdf0e10cSrcweir     {
67cdf0e10cSrcweir         OSL_ENSURE(false,
68cdf0e10cSrcweir             "CEntitiesMap::getNamedItemNS: not implemented (#i113683#)");
69cdf0e10cSrcweir         return Reference< XNode >();
70cdf0e10cSrcweir     }
71cdf0e10cSrcweir 
72cdf0e10cSrcweir     /**
73cdf0e10cSrcweir     Returns the indexth item in the map.
74cdf0e10cSrcweir     */
75cdf0e10cSrcweir     Reference< XNode > SAL_CALL
item(sal_Int32)76cdf0e10cSrcweir     CEntitiesMap::item(sal_Int32 /*index*/) throw (RuntimeException)
77cdf0e10cSrcweir     {
78cdf0e10cSrcweir         OSL_ENSURE(false, "CEntitiesMap::item: not implemented (#i113683#)");
79cdf0e10cSrcweir         return Reference< XNode >();
80cdf0e10cSrcweir     }
81cdf0e10cSrcweir 
82cdf0e10cSrcweir     /**
83cdf0e10cSrcweir     Removes a node specified by name.
84cdf0e10cSrcweir     */
85cdf0e10cSrcweir     Reference< XNode > SAL_CALL
removeNamedItem(OUString const &)86cdf0e10cSrcweir     CEntitiesMap::removeNamedItem(OUString const& /*name*/)
87cdf0e10cSrcweir     throw (RuntimeException)
88cdf0e10cSrcweir     {
89cdf0e10cSrcweir         OSL_ENSURE(false,
90cdf0e10cSrcweir             "CEntitiesMap::removeNamedItem: not implemented (#i113683#)");
91cdf0e10cSrcweir         return Reference< XNode >();
92cdf0e10cSrcweir     }
93cdf0e10cSrcweir 
94cdf0e10cSrcweir     /**
95cdf0e10cSrcweir     // Removes a node specified by local name and namespace URI.
96cdf0e10cSrcweir     */
97cdf0e10cSrcweir     Reference< XNode > SAL_CALL
removeNamedItemNS(OUString const &,OUString const &)98cdf0e10cSrcweir     CEntitiesMap::removeNamedItemNS(
99cdf0e10cSrcweir         OUString const& /*namespaceURI*/, OUString const& /*localName*/)
100cdf0e10cSrcweir     throw (RuntimeException)
101cdf0e10cSrcweir     {
102cdf0e10cSrcweir         OSL_ENSURE(false,
103cdf0e10cSrcweir             "CEntitiesMap::removeNamedItemNS: not implemented (#i113683#)");
104cdf0e10cSrcweir         return Reference< XNode >();
105cdf0e10cSrcweir     }
106cdf0e10cSrcweir 
107cdf0e10cSrcweir     /**
108cdf0e10cSrcweir     // Adds a node using its nodeName attribute.
109cdf0e10cSrcweir     */
110cdf0e10cSrcweir     Reference< XNode > SAL_CALL
setNamedItem(Reference<XNode> const &)111cdf0e10cSrcweir     CEntitiesMap::setNamedItem(Reference< XNode > const& /*arg*/)
112cdf0e10cSrcweir     throw (RuntimeException)
113cdf0e10cSrcweir     {
114cdf0e10cSrcweir         OSL_ENSURE(false,
115cdf0e10cSrcweir             "CEntitiesMap::setNamedItem: not implemented (#i113683#)");
116cdf0e10cSrcweir         return Reference< XNode >();
117cdf0e10cSrcweir     }
118cdf0e10cSrcweir 
119cdf0e10cSrcweir     /**
120cdf0e10cSrcweir     Adds a node using its namespaceURI and localName.
121cdf0e10cSrcweir     */
122cdf0e10cSrcweir     Reference< XNode > SAL_CALL
setNamedItemNS(Reference<XNode> const &)123cdf0e10cSrcweir     CEntitiesMap::setNamedItemNS(Reference< XNode > const& /*arg*/)
124cdf0e10cSrcweir     throw (RuntimeException)
125cdf0e10cSrcweir     {
126cdf0e10cSrcweir         OSL_ENSURE(false,
127cdf0e10cSrcweir             "CEntitiesMap::setNamedItemNS: not implemented (#i113683#)");
128cdf0e10cSrcweir         return Reference< XNode >();
129cdf0e10cSrcweir     }
130cdf0e10cSrcweir }
131