optimprove.cxx (2ee96f1c) | optimprove.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 --- 24 unchanged lines hidden (view full) --- 33#include <vcl/msgbox.hxx> 34#include <svx/dialogs.hrc> 35#include "optimprove.hrc" 36#include "helpid.hrc" 37#include <cuires.hrc> 38 39#include <com/sun/star/uno/Any.hxx> 40#include <com/sun/star/lang/XMultiServiceFactory.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 --- 24 unchanged lines hidden (view full) --- 33#include <vcl/msgbox.hxx> 34#include <svx/dialogs.hrc> 35#include "optimprove.hrc" 36#include "helpid.hrc" 37#include <cuires.hrc> 38 39#include <com/sun/star/uno/Any.hxx> 40#include <com/sun/star/lang/XMultiServiceFactory.hpp> |
41#include <com/sun/star/system/XSystemShellExecute.hpp> | 41#include <com/sun/star/system/SystemShellExecute.hpp> |
42#include <com/sun/star/system/SystemShellExecuteFlags.hpp> 43#include <com/sun/star/oooimprovement/XCoreController.hpp> 44#include <comphelper/configurationhelper.hxx> 45#include <comphelper/processfactory.hxx> 46#include <comphelper/uieventslogger.hxx> 47#include <tools/testtoolloader.hxx> 48 49namespace lang = ::com::sun::star::lang; --- 87 unchanged lines hidden (view full) --- 137IMPL_LINK( SvxImprovementDialog, HandleHyperlink, svt::FixedHyperlinkImage*, pHyperlinkImage ) 138{ 139 ::rtl::OUString sURL( pHyperlinkImage->GetURL() ); 140 141 if ( sURL.getLength() > 0 ) 142 { 143 try 144 { | 42#include <com/sun/star/system/SystemShellExecuteFlags.hpp> 43#include <com/sun/star/oooimprovement/XCoreController.hpp> 44#include <comphelper/configurationhelper.hxx> 45#include <comphelper/processfactory.hxx> 46#include <comphelper/uieventslogger.hxx> 47#include <tools/testtoolloader.hxx> 48 49namespace lang = ::com::sun::star::lang; --- 87 unchanged lines hidden (view full) --- 137IMPL_LINK( SvxImprovementDialog, HandleHyperlink, svt::FixedHyperlinkImage*, pHyperlinkImage ) 138{ 139 ::rtl::OUString sURL( pHyperlinkImage->GetURL() ); 140 141 if ( sURL.getLength() > 0 ) 142 { 143 try 144 { |
145 uno::Reference< lang::XMultiServiceFactory > xSMGR = 146 ::comphelper::getProcessServiceFactory(); | |
147 uno::Reference< XSystemShellExecute > xSystemShell( | 145 uno::Reference< XSystemShellExecute > xSystemShell( |
148 xSMGR->createInstance( ::rtl::OUString( 149 RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.system.SystemShellExecute" ) ) ), 150 uno::UNO_QUERY_THROW ); | 146 com::sun::star::system::SystemShellExecute::create( 147 ::comphelper::getProcessComponentContext() ) ); |
151 if ( xSystemShell.is() ) 152 { 153 xSystemShell->execute( 154 sURL, ::rtl::OUString(), SystemShellExecuteFlags::DEFAULTS ); 155 } 156 } 157 catch( const uno::Exception& e ) 158 { --- 37 unchanged lines hidden --- | 148 if ( xSystemShell.is() ) 149 { 150 xSystemShell->execute( 151 sURL, ::rtl::OUString(), SystemShellExecuteFlags::DEFAULTS ); 152 } 153 } 154 catch( const uno::Exception& e ) 155 { --- 37 unchanged lines hidden --- |