newerverwarn.cxx (859212d1) | newerverwarn.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 --- 13 unchanged lines hidden (view full) --- 22 23 24#include "newerverwarn.hxx" 25#include "newerverwarn.hrc" 26#include "ids.hrc" 27 28#include <com/sun/star/frame/XDesktop.hpp> 29#include <com/sun/star/frame/XDispatchProvider.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 --- 13 unchanged lines hidden (view full) --- 22 23 24#include "newerverwarn.hxx" 25#include "newerverwarn.hrc" 26#include "ids.hrc" 27 28#include <com/sun/star/frame/XDesktop.hpp> 29#include <com/sun/star/frame/XDispatchProvider.hpp> |
30#include <com/sun/star/system/XSystemShellExecute.hpp> | 30#include <com/sun/star/system/SystemShellExecute.hpp> |
31#include <com/sun/star/system/SystemShellExecuteFlags.hpp> 32#include <com/sun/star/util/XURLTransformer.hpp> 33#include <com/sun/star/container/XNameReplace.hpp> 34 35#include <comphelper/processfactory.hxx> 36#include <comphelper/configurationhelper.hxx> 37#include <comphelper/componentcontext.hxx> 38#include <rtl/bootstrap.hxx> --- 54 unchanged lines hidden (view full) --- 93 ::rtl::Bootstrap aIniFile( sIniFileName ); 94 ::rtl::OUString sNotifyURL; 95 aIniFile.getFrom( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ODFNotifyURL" ) ), sNotifyURL ); 96 97 try 98 { 99 if ( ( sNotifyURL.getLength() > 0 ) && ( m_sVersion.getLength() > 0 ) ) 100 { | 31#include <com/sun/star/system/SystemShellExecuteFlags.hpp> 32#include <com/sun/star/util/XURLTransformer.hpp> 33#include <com/sun/star/container/XNameReplace.hpp> 34 35#include <comphelper/processfactory.hxx> 36#include <comphelper/configurationhelper.hxx> 37#include <comphelper/componentcontext.hxx> 38#include <rtl/bootstrap.hxx> --- 54 unchanged lines hidden (view full) --- 93 ::rtl::Bootstrap aIniFile( sIniFileName ); 94 ::rtl::OUString sNotifyURL; 95 aIniFile.getFrom( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ODFNotifyURL" ) ), sNotifyURL ); 96 97 try 98 { 99 if ( ( sNotifyURL.getLength() > 0 ) && ( m_sVersion.getLength() > 0 ) ) 100 { |
101 uno::Reference< lang::XMultiServiceFactory > xSMGR = 102 ::comphelper::getProcessServiceFactory(); | |
103 uno::Reference< XSystemShellExecute > xSystemShell( | 101 uno::Reference< XSystemShellExecute > xSystemShell( |
104 xSMGR->createInstance( ::rtl::OUString( 105 RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.system.SystemShellExecute" ) ) ), 106 uno::UNO_QUERY_THROW ); | 102 com::sun::star::system::SystemShellExecute::create( 103 ::comphelper::getProcessComponentContext() ) ); |
107 sNotifyURL += m_sVersion; 108 if ( xSystemShell.is() && sNotifyURL.getLength() ) 109 { 110 xSystemShell->execute( 111 sNotifyURL, ::rtl::OUString(), SystemShellExecuteFlags::DEFAULTS ); 112 } 113 } 114 else --- 83 unchanged lines hidden --- | 104 sNotifyURL += m_sVersion; 105 if ( xSystemShell.is() && sNotifyURL.getLength() ) 106 { 107 xSystemShell->execute( 108 sNotifyURL, ::rtl::OUString(), SystemShellExecuteFlags::DEFAULTS ); 109 } 110 } 111 else --- 83 unchanged lines hidden --- |