optimprove2.cxx (2ee96f1c) optimprove2.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

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

35#include "optimprove.hrc"
36#include "helpid.hrc"
37#include <cuires.hrc>
38#include <svx/dialogs.hrc>
39#include <com/sun/star/beans/PropertyValue.hpp>
40#include <com/sun/star/lang/XComponent.hpp>
41#include <com/sun/star/oooimprovement/XCore.hpp>
42#include <com/sun/star/oooimprovement/XCoreController.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

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

35#include "optimprove.hrc"
36#include "helpid.hrc"
37#include <cuires.hrc>
38#include <svx/dialogs.hrc>
39#include <com/sun/star/beans/PropertyValue.hpp>
40#include <com/sun/star/lang/XComponent.hpp>
41#include <com/sun/star/oooimprovement/XCore.hpp>
42#include <com/sun/star/oooimprovement/XCoreController.hpp>
43#include <com/sun/star/system/XSystemShellExecute.hpp>
43#include <com/sun/star/system/SystemShellExecute.hpp>
44#include <com/sun/star/system/SystemShellExecuteFlags.hpp>
45#include <com/sun/star/util/XStringSubstitution.hpp>
46#include <comphelper/configurationhelper.hxx>
47#include <comphelper/processfactory.hxx>
48#include <comphelper/synchronousdispatch.hxx>
49#include <comphelper/uieventslogger.hxx>
50#include <tools/testtoolloader.hxx>
51#include <osl/file.hxx>

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

106IMPL_LINK( SvxImprovementOptionsPage, HandleHyperlink, svt::FixedHyperlinkImage*, EMPTYARG )
107{
108 ::rtl::OUString sURL( m_aInfoFI.GetURL() );
109
110 if ( sURL.getLength() > 0 )
111 {
112 try
113 {
44#include <com/sun/star/system/SystemShellExecuteFlags.hpp>
45#include <com/sun/star/util/XStringSubstitution.hpp>
46#include <comphelper/configurationhelper.hxx>
47#include <comphelper/processfactory.hxx>
48#include <comphelper/synchronousdispatch.hxx>
49#include <comphelper/uieventslogger.hxx>
50#include <tools/testtoolloader.hxx>
51#include <osl/file.hxx>

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

106IMPL_LINK( SvxImprovementOptionsPage, HandleHyperlink, svt::FixedHyperlinkImage*, EMPTYARG )
107{
108 ::rtl::OUString sURL( m_aInfoFI.GetURL() );
109
110 if ( sURL.getLength() > 0 )
111 {
112 try
113 {
114 uno::Reference< lang::XMultiServiceFactory > xSMGR =
115 ::comphelper::getProcessServiceFactory();
116 uno::Reference< XSystemShellExecute > xSystemShell(
114 uno::Reference< XSystemShellExecute > xSystemShell(
117 xSMGR->createInstance( ::rtl::OUString(
118 RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.system.SystemShellExecute" ) ) ),
119 uno::UNO_QUERY_THROW );
115 com::sun::star::system::SystemShellExecute::create(
116 ::comphelper::getProcessComponentContext() ) );
120 if ( xSystemShell.is() )
121 {
122 xSystemShell->execute(
123 sURL, ::rtl::OUString(), SystemShellExecuteFlags::DEFAULTS );
124 }
125 }
126 catch( const uno::Exception& e )
127 {

--- 141 unchanged lines hidden ---
117 if ( xSystemShell.is() )
118 {
119 xSystemShell->execute(
120 sURL, ::rtl::OUString(), SystemShellExecuteFlags::DEFAULTS );
121 }
122 }
123 catch( const uno::Exception& e )
124 {

--- 141 unchanged lines hidden ---