oo3extensionmigration.cxx (2722cedd) oo3extensionmigration.cxx (5e679a6c)
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

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

41#include <com/sun/star/ucb/XCommandInfo.hpp>
42#include <com/sun/star/ucb/TransferInfo.hpp>
43#include <com/sun/star/ucb/NameClash.hpp>
44#include <com/sun/star/ucb/XCommandEnvironment.hpp>
45#include <com/sun/star/xml/xpath/XXPathAPI.hpp>
46#include <com/sun/star/beans/NamedValue.hpp>
47#include <com/sun/star/deployment/ExtensionManager.hpp>
48
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

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

41#include <com/sun/star/ucb/XCommandInfo.hpp>
42#include <com/sun/star/ucb/TransferInfo.hpp>
43#include <com/sun/star/ucb/NameClash.hpp>
44#include <com/sun/star/ucb/XCommandEnvironment.hpp>
45#include <com/sun/star/xml/xpath/XXPathAPI.hpp>
46#include <com/sun/star/beans/NamedValue.hpp>
47#include <com/sun/star/deployment/ExtensionManager.hpp>
48
49#include <com/sun/star/deployment/VersionException.hpp>
50#include <dp_gui_handleversionexception.hxx>
51
49using namespace ::com::sun::star;
50using namespace ::com::sun::star::uno;
51
52namespace migration
53{
54
55static ::rtl::OUString sExtensionSubDir = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/user/uno_packages/" ) );
56static ::rtl::OUString sSubDirName = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "cache" ) );

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

512 throw ( uno::RuntimeException )
513{
514 uno::Any request( xRequest->getRequest() );
515 OSL_ASSERT( request.getValueTypeClass() == uno::TypeClass_EXCEPTION );
516
517 bool approve = true;
518 bool abort = false;
519
52using namespace ::com::sun::star;
53using namespace ::com::sun::star::uno;
54
55namespace migration
56{
57
58static ::rtl::OUString sExtensionSubDir = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/user/uno_packages/" ) );
59static ::rtl::OUString sSubDirName = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "cache" ) );

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

515 throw ( uno::RuntimeException )
516{
517 uno::Any request( xRequest->getRequest() );
518 OSL_ASSERT( request.getValueTypeClass() == uno::TypeClass_EXCEPTION );
519
520 bool approve = true;
521 bool abort = false;
522
523 deployment::VersionException verExc;
524 if ( xRequest->getRequest() >>= verExc )
525 {
526 // user interaction, if an extension is already been installed.
527 approve = dp_gui::handleVersionException( verExc );
528 abort = !approve;
529 }
530
520 // select:
521 uno::Sequence< Reference< task::XInteractionContinuation > > conts(
522 xRequest->getContinuations() );
523 Reference< task::XInteractionContinuation > const * pConts =
524 conts.getConstArray();
525 sal_Int32 len = conts.getLength();
526 for ( sal_Int32 pos = 0; pos < len; ++pos )
527 {

--- 52 unchanged lines hidden ---
531 // select:
532 uno::Sequence< Reference< task::XInteractionContinuation > > conts(
533 xRequest->getContinuations() );
534 Reference< task::XInteractionContinuation > const * pConts =
535 conts.getConstArray();
536 sal_Int32 len = conts.getLength();
537 for ( sal_Int32 pos = 0; pos < len; ++pos )
538 {

--- 52 unchanged lines hidden ---