oleembed.cxx (bfd08df8) | oleembed.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 --- 31 unchanged lines hidden (view full) --- 40#include <com/sun/star/lang/DisposedException.hpp> 41#include <com/sun/star/beans/NamedValue.hpp> 42#include <com/sun/star/beans/XPropertySet.hpp> 43#include <com/sun/star/frame/XLoadable.hpp> 44#include <com/sun/star/document/XStorageBasedDocument.hpp> 45#include <com/sun/star/ucb/XSimpleFileAccess.hpp> 46#include <com/sun/star/container/XNameAccess.hpp> 47#include <com/sun/star/container/XNameContainer.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 --- 31 unchanged lines hidden (view full) --- 40#include <com/sun/star/lang/DisposedException.hpp> 41#include <com/sun/star/beans/NamedValue.hpp> 42#include <com/sun/star/beans/XPropertySet.hpp> 43#include <com/sun/star/frame/XLoadable.hpp> 44#include <com/sun/star/document/XStorageBasedDocument.hpp> 45#include <com/sun/star/ucb/XSimpleFileAccess.hpp> 46#include <com/sun/star/container/XNameAccess.hpp> 47#include <com/sun/star/container/XNameContainer.hpp> |
48#include <com/sun/star/system/XSystemShellExecute.hpp> | 48#include <com/sun/star/system/SystemShellExecute.hpp> |
49#include <com/sun/star/system/SystemShellExecuteFlags.hpp> 50 51#include <rtl/logfile.hxx> 52#include <cppuhelper/interfacecontainer.h> 53#include <comphelper/mimeconfighelper.hxx> 54#include <comphelper/storagehelper.hxx> | 49#include <com/sun/star/system/SystemShellExecuteFlags.hpp> 50 51#include <rtl/logfile.hxx> 52#include <cppuhelper/interfacecontainer.h> 53#include <comphelper/mimeconfighelper.hxx> 54#include <comphelper/storagehelper.hxx> |
55#include <comphelper/processfactory.hxx> |
|
55 | 56 |
56 | |
57#include <targetstatecontrol.hxx> 58 59#include <olecomponent.hxx> 60 61#include "ownview.hxx" 62 63using namespace ::com::sun::star; 64 --- 808 unchanged lines hidden (view full) --- 873 { 874 //Make a RO copy and see if the OS can find something to at 875 //least display the content for us 876 if (!m_aTempDumpURL.getLength()) 877 m_aTempDumpURL = lcl_ExtractObject(m_xFactory, m_xObjectStream); 878 879 if (m_aTempDumpURL.getLength()) 880 { | 57#include <targetstatecontrol.hxx> 58 59#include <olecomponent.hxx> 60 61#include "ownview.hxx" 62 63using namespace ::com::sun::star; 64 --- 808 unchanged lines hidden (view full) --- 873 { 874 //Make a RO copy and see if the OS can find something to at 875 //least display the content for us 876 if (!m_aTempDumpURL.getLength()) 877 m_aTempDumpURL = lcl_ExtractObject(m_xFactory, m_xObjectStream); 878 879 if (m_aTempDumpURL.getLength()) 880 { |
881 uno::Reference< ::com::sun::star::system::XSystemShellExecute > xSystemShellExecute( m_xFactory->createInstance( 882 ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.system.SystemShellExecute"))), 883 uno::UNO_QUERY_THROW); | 881 uno::Reference< ::com::sun::star::system::XSystemShellExecute > xSystemShellExecute( 882 ::com::sun::star::system::SystemShellExecute::create( 883 ::comphelper::getProcessComponentContext() ) ); |
884 xSystemShellExecute->execute(m_aTempDumpURL, ::rtl::OUString(), ::com::sun::star::system::SystemShellExecuteFlags::DEFAULTS); 885 } 886 else 887 throw embed::UnreachableStateException(); 888 } 889 } 890 else 891 { --- 236 unchanged lines hidden --- | 884 xSystemShellExecute->execute(m_aTempDumpURL, ::rtl::OUString(), ::com::sun::star::system::SystemShellExecuteFlags::DEFAULTS); 885 } 886 else 887 throw embed::UnreachableStateException(); 888 } 889 } 890 else 891 { --- 236 unchanged lines hidden --- |