xmlExportDocumentHandler.cxx (b63233d8) xmlExportDocumentHandler.cxx (de739a45)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 303 unchanged lines hidden (view full) ---

312}
313void SAL_CALL ExportDocumentHandler::initialize( const uno::Sequence< uno::Any >& _aArguments ) throw (uno::Exception, uno::RuntimeException)
314{
315 ::osl::MutexGuard aGuard(m_aMutex);
316 comphelper::SequenceAsHashMap aArgs(_aArguments);
317 m_xDelegatee = aArgs.getUnpackedValueOrDefault(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("DocumentHandler")),m_xDelegatee);
318 m_xModel = aArgs.getUnpackedValueOrDefault(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Model")),m_xModel);
319
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 303 unchanged lines hidden (view full) ---

312}
313void SAL_CALL ExportDocumentHandler::initialize( const uno::Sequence< uno::Any >& _aArguments ) throw (uno::Exception, uno::RuntimeException)
314{
315 ::osl::MutexGuard aGuard(m_aMutex);
316 comphelper::SequenceAsHashMap aArgs(_aArguments);
317 m_xDelegatee = aArgs.getUnpackedValueOrDefault(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("DocumentHandler")),m_xDelegatee);
318 m_xModel = aArgs.getUnpackedValueOrDefault(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Model")),m_xModel);
319
320 OSL_ENSURE(m_xDelegatee.is(),"No document handler avialable!");
320 OSL_ENSURE(m_xDelegatee.is(),"No document handler available!");
321 if ( !m_xDelegatee.is() || !m_xModel.is() )
322 throw uno::Exception();
323
324 m_xDatabaseDataProvider.set(m_xModel->getDataProvider(),uno::UNO_QUERY);
325 if ( !m_xDatabaseDataProvider.is() || !m_xDatabaseDataProvider->getActiveConnection().is() )
326 throw uno::Exception();
327
328 uno::Reference< reflection::XProxyFactory > xProxyFactory( m_xContext->getServiceManager()->createInstanceWithContext(

--- 123 unchanged lines hidden ---
321 if ( !m_xDelegatee.is() || !m_xModel.is() )
322 throw uno::Exception();
323
324 m_xDatabaseDataProvider.set(m_xModel->getDataProvider(),uno::UNO_QUERY);
325 if ( !m_xDatabaseDataProvider.is() || !m_xDatabaseDataProvider->getActiveConnection().is() )
326 throw uno::Exception();
327
328 uno::Reference< reflection::XProxyFactory > xProxyFactory( m_xContext->getServiceManager()->createInstanceWithContext(

--- 123 unchanged lines hidden ---