summaryrefslogtreecommitdiffstats
path: root/xmlscript
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-04-13 15:18:48 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-04-13 15:18:48 +0000
commit9dfd23048142c7cd85320f2499663249885c367f (patch)
tree783d450fa48363c69781a54f16efe659a37c321e /xmlscript
parentINTEGRATION: CWS unopkg1 (1.21.10); FILE MERGED (diff)
downloadcore-9dfd23048142c7cd85320f2499663249885c367f.tar.gz
core-9dfd23048142c7cd85320f2499663249885c367f.zip
INTEGRATION: CWS unopkg1 (1.26.2); FILE MERGED
2004/01/06 13:24:41 dbo 1.26.2.2: RESYNC: (1.26-1.27); FILE MERGED 2003/11/04 14:50:39 dbo 1.26.2.1: #i20304# namespace mapping
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_import.cxx18
1 files changed, 7 insertions, 11 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
index 44456b530c57..c92bd5e11cd5 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmldlg_import.cxx,v $
*
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
*
- * last change: $Author: kz $ $Date: 2003-11-18 17:24:12 $
+ * last change: $Author: hr $ $Date: 2004-04-13 16:18:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1530,17 +1530,13 @@ ElementBase::~ElementBase()
//______________________________________________________________________________
void DialogImport::startDocument(
- Reference< container::XNameAccess > const & xUidMapping )
+ Reference< xml::input::XNamespaceMapping > const & xNamespaceMapping )
throw (xml::sax::SAXException, RuntimeException)
{
- if (!(xUidMapping->getByName( OUSTR(XMLNS_DIALOGS_URI) ) >>=
- XMLNS_DIALOGS_UID) ||
- !(xUidMapping->getByName( OUSTR(XMLNS_SCRIPT_URI) ) >>=
- XMLNS_SCRIPT_UID))
- {
- throw xml::sax::SAXException(
- OUSTR("cannot get uids!"), Reference< XInterface >(), Any() );
- }
+ XMLNS_DIALOGS_UID = xNamespaceMapping->getUidByUri(
+ OUSTR(XMLNS_DIALOGS_URI) );
+ XMLNS_SCRIPT_UID = xNamespaceMapping->getUidByUri(
+ OUSTR(XMLNS_SCRIPT_URI) );
}
//__________________________________________________________________________________________________
void DialogImport::endDocument()