xref: /aoo42x/main/unoxml/source/dom/notationsmap.cxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #include <notationsmap.hxx>
29 
30 #include <documenttype.hxx>
31 
32 
33 namespace DOM
34 {
35     CNotationsMap::CNotationsMap(
36             ::rtl::Reference<CDocumentType> const& pDocType,
37             ::osl::Mutex & rMutex)
38         : m_pDocType(pDocType)
39         , m_rMutex(rMutex)
40     {
41     }
42 
43     /**
44     The number of nodes in this map.
45     */
46     sal_Int32 SAL_CALL CNotationsMap::getLength() throw (RuntimeException)
47     {
48         OSL_ENSURE(false,
49             "CNotationsMap::getLength: not implemented (#i113683#)");
50         return 0;
51     }
52 
53     /**
54     Retrieves a node specified by local name
55     */
56     Reference< XNode > SAL_CALL
57     CNotationsMap::getNamedItem(OUString const& /*name*/)
58     throw (RuntimeException)
59     {
60         OSL_ENSURE(false,
61             "CNotationsMap::getNamedItem: not implemented (#i113683#)");
62         return Reference< XNode >();
63     }
64 
65     /**
66     Retrieves a node specified by local name and namespace URI.
67     */
68     Reference< XNode > SAL_CALL
69     CNotationsMap::getNamedItemNS(
70         OUString const& /*namespaceURI*/, OUString const& /*localName*/)
71     throw (RuntimeException)
72     {
73         OSL_ENSURE(false,
74             "CNotationsMap::getNamedItemNS: not implemented (#i113683#)");
75         return Reference< XNode >();
76     }
77 
78     /**
79     Returns the indexth item in the map.
80     */
81     Reference< XNode > SAL_CALL
82     CNotationsMap::item(sal_Int32 /*index*/) throw (RuntimeException)
83     {
84         OSL_ENSURE(false, "CNotationsMap::item: not implemented (#i113683#)");
85         return Reference< XNode >();
86     }
87 
88     /**
89     Removes a node specified by name.
90     */
91     Reference< XNode > SAL_CALL
92     CNotationsMap::removeNamedItem(OUString const& /*name*/)
93     throw (RuntimeException)
94     {
95         OSL_ENSURE(false,
96             "CNotationsMap::removeNamedItem: not implemented (#i113683#)");
97         return Reference< XNode >();
98     }
99 
100     /**
101     // Removes a node specified by local name and namespace URI.
102     */
103     Reference< XNode > SAL_CALL
104     CNotationsMap::removeNamedItemNS(
105         OUString const& /*namespaceURI*/, OUString const& /*localName*/)
106     throw (RuntimeException)
107     {
108         OSL_ENSURE(false,
109             "CNotationsMap::removeNamedItemNS: not implemented (#i113683#)");
110         return Reference< XNode >();
111     }
112 
113     /**
114     // Adds a node using its nodeName attribute.
115     */
116     Reference< XNode > SAL_CALL
117     CNotationsMap::setNamedItem(Reference< XNode > const& /*arg*/)
118     throw (RuntimeException)
119     {
120         OSL_ENSURE(false,
121             "CNotationsMap::setNamedItem: not implemented (#i113683#)");
122         return Reference< XNode >();
123     }
124 
125     /**
126     Adds a node using its namespaceURI and localName.
127     */
128     Reference< XNode > SAL_CALL
129     CNotationsMap::setNamedItemNS(Reference< XNode > const& /*arg*/)
130     throw (RuntimeException)
131     {
132         OSL_ENSURE(false,
133             "CNotationsMap::setNamedItemNS: not implemented (#i113683#)");
134         return Reference< XNode >();
135     }
136 }
137