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