xmlImportDocumentHandler.cxx (b63233d8) xmlImportDocumentHandler.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

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

331}
332void SAL_CALL ImportDocumentHandler::initialize( const uno::Sequence< uno::Any >& _aArguments ) throw (uno::Exception, uno::RuntimeException)
333{
334 ::osl::MutexGuard aGuard(m_aMutex);
335 comphelper::SequenceAsHashMap aArgs(_aArguments);
336 m_xDelegatee = aArgs.getUnpackedValueOrDefault(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("DocumentHandler")),m_xDelegatee);
337 m_xModel = aArgs.getUnpackedValueOrDefault(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Model")),m_xModel);
338
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

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

331}
332void SAL_CALL ImportDocumentHandler::initialize( const uno::Sequence< uno::Any >& _aArguments ) throw (uno::Exception, uno::RuntimeException)
333{
334 ::osl::MutexGuard aGuard(m_aMutex);
335 comphelper::SequenceAsHashMap aArgs(_aArguments);
336 m_xDelegatee = aArgs.getUnpackedValueOrDefault(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("DocumentHandler")),m_xDelegatee);
337 m_xModel = aArgs.getUnpackedValueOrDefault(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Model")),m_xModel);
338
339 OSL_ENSURE(m_xDelegatee.is(),"No document handler avialable!");
339 OSL_ENSURE(m_xDelegatee.is(),"No document handler available!");
340 if ( !m_xDelegatee.is() || !m_xModel.is() )
341 throw uno::Exception();
342
343 m_xDatabaseDataProvider.set(m_xModel->getDataProvider(),uno::UNO_QUERY);
344 if ( !m_xDatabaseDataProvider.is() )
345 {
346 const static ::rtl::OUString s_sDatabaseDataProvider(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.chart2.data.DatabaseDataProvider"));
347 m_xDatabaseDataProvider.set(m_xContext->getServiceManager()->createInstanceWithContext(s_sDatabaseDataProvider

--- 46 unchanged lines hidden ---
340 if ( !m_xDelegatee.is() || !m_xModel.is() )
341 throw uno::Exception();
342
343 m_xDatabaseDataProvider.set(m_xModel->getDataProvider(),uno::UNO_QUERY);
344 if ( !m_xDatabaseDataProvider.is() )
345 {
346 const static ::rtl::OUString s_sDatabaseDataProvider(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.chart2.data.DatabaseDataProvider"));
347 m_xDatabaseDataProvider.set(m_xContext->getServiceManager()->createInstanceWithContext(s_sDatabaseDataProvider

--- 46 unchanged lines hidden ---