viewsh.cxx (d119d52d) viewsh.cxx (9807c9de)
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

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

31#include <svl/intitem.hxx>
32#include <svtools/sfxecode.hxx>
33#include <svtools/ehdl.hxx>
34#include <com/sun/star/frame/XLayoutManager.hpp>
35#include <com/sun/star/frame/XModuleManager.hpp>
36#include <com/sun/star/beans/XPropertySet.hpp>
37#include <com/sun/star/embed/EmbedStates.hpp>
38#include <com/sun/star/embed/EmbedMisc.hpp>
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

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

31#include <svl/intitem.hxx>
32#include <svtools/sfxecode.hxx>
33#include <svtools/ehdl.hxx>
34#include <com/sun/star/frame/XLayoutManager.hpp>
35#include <com/sun/star/frame/XModuleManager.hpp>
36#include <com/sun/star/beans/XPropertySet.hpp>
37#include <com/sun/star/embed/EmbedStates.hpp>
38#include <com/sun/star/embed/EmbedMisc.hpp>
39#include <com/sun/star/system/XSystemShellExecute.hpp>
39#include <com/sun/star/system/SystemShellExecute.hpp>
40#include <com/sun/star/system/SystemShellExecuteFlags.hpp>
41#include <com/sun/star/container/XContainerQuery.hpp>
42#include <com/sun/star/frame/XStorable.hpp>
43#include <com/sun/star/datatransfer/clipboard/XClipboard.hpp>
44#include <cppuhelper/implbase1.hxx>
45
46#include <osl/file.hxx>
47#include <vos/mutex.hxx>

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

704 xStorable->storeToURL( aFileURL, aArgs );
705 }
706 catch ( com::sun::star::io::IOException& )
707 {
708 rReq.Done(sal_False);
709 return;
710 }
711
40#include <com/sun/star/system/SystemShellExecuteFlags.hpp>
41#include <com/sun/star/container/XContainerQuery.hpp>
42#include <com/sun/star/frame/XStorable.hpp>
43#include <com/sun/star/datatransfer/clipboard/XClipboard.hpp>
44#include <cppuhelper/implbase1.hxx>
45
46#include <osl/file.hxx>
47#include <vos/mutex.hxx>

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

704 xStorable->storeToURL( aFileURL, aArgs );
705 }
706 catch ( com::sun::star::io::IOException& )
707 {
708 rReq.Done(sal_False);
709 return;
710 }
711
712 ::com::sun::star::uno::Reference< XSystemShellExecute > xSystemShellExecute( xSMGR->createInstance(
713 ::rtl::OUString::createFromAscii( "com.sun.star.system.SystemShellExecute" )),
714 css::uno::UNO_QUERY );
712 ::com::sun::star::uno::Reference< XSystemShellExecute > xSystemShellExecute(
713 com::sun::star::system::SystemShellExecute::create(
714 ::comphelper::getProcessComponentContext() ) );
715
716 sal_Bool bRet( sal_True );
717 if ( xSystemShellExecute.is() )
718 {
719 try
720 {
721 xSystemShellExecute->execute(
722 aFileURL, ::rtl::OUString(), SystemShellExecuteFlags::DEFAULTS );

--- 1600 unchanged lines hidden ---
715
716 sal_Bool bRet( sal_True );
717 if ( xSystemShellExecute.is() )
718 {
719 try
720 {
721 xSystemShellExecute->execute(
722 aFileURL, ::rtl::OUString(), SystemShellExecuteFlags::DEFAULTS );

--- 1600 unchanged lines hidden ---