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