1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: notationsmap.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #include "notationsmap.hxx"
35 CNotationsMap::CNotationsMap(const CDocumentType
* aDocType
)
36 : m_pDocType(aDocType
)
41 The number of nodes in this map.
43 sal_Int32 SAL_CALL
CNotationsMap::getLength() throw (RuntimeException
)
49 Retrieves a node specified by local name
51 Reference
< XNode
> SAL_CALL
CNotationsMap::getNamedItem(const OUString
& /* name */) throw (RuntimeException
)
53 return Reference
< XNode
>();
57 Retrieves a node specified by local name and namespace URI.
59 Reference
< XNode
> SAL_CALL
CNotationsMap::getNamedItemNS(const OUString
& /*namespaceURI*/, const OUString
& /*localName*/)
60 throw (RuntimeException
)
62 return Reference
< XNode
>();
66 Returns the indexth item in the map.
68 Reference
< XNode
> SAL_CALL
CNotationsMap::item(sal_Int32
/*index*/) throw (RuntimeException
)
70 return Reference
< XNode
>();
74 Removes a node specified by name.
76 Reference
< XNode
> SAL_CALL
CNotationsMap::removeNamedItem(const OUString
& /*name*/) throw (RuntimeException
)
78 return Reference
< XNode
>();
82 // Removes a node specified by local name and namespace URI.
84 Reference
< XNode
> SAL_CALL
CNotationsMap::removeNamedItemNS(const OUString
& /*namespaceURI*/, const OUString
& /*localName*/) throw (RuntimeException
)
86 return Reference
< XNode
>();
90 // Adds a node using its nodeName attribute.
92 Reference
< XNode
> SAL_CALL
CNotationsMap::setNamedItem(const Reference
< XNode
>& /*arg*/) throw (RuntimeException
)
94 return Reference
< XNode
>();
98 Adds a node using its namespaceURI and localName.
100 Reference
< XNode
> SAL_CALL
CNotationsMap::setNamedItemNS(const Reference
< XNode
>& /*arg*/) throw (RuntimeException
)
102 return Reference
< XNode
>();