diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-04-13 15:19:14 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-04-13 15:19:14 +0000 |
commit | f02b998363c6a5dc9d7d36977dc380e81b6233e7 (patch) | |
tree | 9a16cebcb61820326cf458fbc3bdcf3fa7156c53 /xmlscript | |
parent | 2da2517f8123077f00ab9e7505511edbf1d6ca9f (diff) |
INTEGRATION: CWS unopkg1 (1.7.10); FILE MERGED
2004/03/24 10:32:26 dbo 1.7.10.2: RESYNC: (1.7-1.8); FILE MERGED
2003/11/04 14:50:41 dbo 1.7.10.1: #i20304# namespace mapping
Diffstat (limited to 'xmlscript')
-rw-r--r-- | xmlscript/source/xmllib_imexp/xmllib_import.cxx | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/xmlscript/source/xmllib_imexp/xmllib_import.cxx b/xmlscript/source/xmllib_imexp/xmllib_import.cxx index 08d99cf819dc..df521dec62e7 100644 --- a/xmlscript/source/xmllib_imexp/xmllib_import.cxx +++ b/xmlscript/source/xmllib_imexp/xmllib_import.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xmllib_import.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: obo $ $Date: 2004-03-17 13:42:51 $ + * last change: $Author: hr $ $Date: 2004-04-13 16:19:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -174,18 +174,13 @@ LibElementBase::~LibElementBase() //______________________________________________________________________________ void LibraryImport::startDocument( - Reference< container::XNameAccess > const & xUidMapping ) + Reference< xml::input::XNamespaceMapping > const & xNamespaceMapping ) throw (xml::sax::SAXException, RuntimeException) { - if (!(xUidMapping->getByName( OUSTR(XMLNS_LIBRARY_URI) ) >>= - XMLNS_LIBRARY_UID) || - !(xUidMapping->getByName( OUSTR(XMLNS_XLINK_URI) ) >>= - XMLNS_XLINK_UID)) - { - throw xml::sax::SAXException( - OUSTR("cannot get uids!"), - Reference< XInterface >(), Any() ); - } + XMLNS_LIBRARY_UID = xNamespaceMapping->getUidByUri( + OUSTR(XMLNS_LIBRARY_URI) ); + XMLNS_XLINK_UID = xNamespaceMapping->getUidByUri( + OUSTR(XMLNS_XLINK_URI) ); } //__________________________________________________________________________________________________ void LibraryImport::endDocument() |