optlingu.cxx (2ee96f1c) | optlingu.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 --- 40 unchanged lines hidden (view full) --- 49#include <com/sun/star/linguistic2/XAvailableLocales.hpp> 50#include <com/sun/star/lang/XServiceDisplayName.hpp> 51#include <com/sun/star/linguistic2/DictionaryListEventFlags.hpp> 52#include <com/sun/star/linguistic2/DictionaryListEvent.hpp> 53#include <com/sun/star/linguistic2/XDictionaryListEventListener.hpp> 54#include <com/sun/star/linguistic2/XDictionaryList.hpp> 55#include <com/sun/star/frame/XStorable.hpp> 56#include <com/sun/star/ucb/CommandAbortedException.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 --- 40 unchanged lines hidden (view full) --- 49#include <com/sun/star/linguistic2/XAvailableLocales.hpp> 50#include <com/sun/star/lang/XServiceDisplayName.hpp> 51#include <com/sun/star/linguistic2/DictionaryListEventFlags.hpp> 52#include <com/sun/star/linguistic2/DictionaryListEvent.hpp> 53#include <com/sun/star/linguistic2/XDictionaryListEventListener.hpp> 54#include <com/sun/star/linguistic2/XDictionaryList.hpp> 55#include <com/sun/star/frame/XStorable.hpp> 56#include <com/sun/star/ucb/CommandAbortedException.hpp> |
57#include <com/sun/star/system/XSystemShellExecute.hpp> | 57#include <com/sun/star/system/SystemShellExecute.hpp> |
58#include <com/sun/star/system/SystemShellExecuteFlags.hpp> 59#include <unotools/extendedsecurityoptions.hxx> 60#include <svtools/svlbox.hxx> 61#include <svl/eitem.hxx> 62#include <svl/intitem.hxx> 63#include <sfx2/viewfrm.hxx> 64#include <vcl/svapp.hxx> 65#define _SVX_OPTLINGU_CXX --- 77 unchanged lines hidden (view full) --- 143} 144 145static void lcl_OpenURL( const ::rtl::OUString& rURL ) 146{ 147 if ( rURL.getLength() > 0 ) 148 { 149 try 150 { | 58#include <com/sun/star/system/SystemShellExecuteFlags.hpp> 59#include <unotools/extendedsecurityoptions.hxx> 60#include <svtools/svlbox.hxx> 61#include <svl/eitem.hxx> 62#include <svl/intitem.hxx> 63#include <sfx2/viewfrm.hxx> 64#include <vcl/svapp.hxx> 65#define _SVX_OPTLINGU_CXX --- 77 unchanged lines hidden (view full) --- 143} 144 145static void lcl_OpenURL( const ::rtl::OUString& rURL ) 146{ 147 if ( rURL.getLength() > 0 ) 148 { 149 try 150 { |
151 uno::Reference< lang::XMultiServiceFactory > xSMGR = 152 ::comphelper::getProcessServiceFactory(); | |
153 uno::Reference< css::system::XSystemShellExecute > xSystemShell( | 151 uno::Reference< css::system::XSystemShellExecute > xSystemShell( |
154 xSMGR->createInstance( ::rtl::OUString( 155 RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.system.SystemShellExecute" ) ) ), 156 uno::UNO_QUERY_THROW ); | 152 css::system::SystemShellExecute::create( 153 ::comphelper::getProcessComponentContext() ) ); |
157 if ( xSystemShell.is() ) 158 xSystemShell->execute( rURL, ::rtl::OUString(), css::system::SystemShellExecuteFlags::DEFAULTS ); 159 } 160 catch( const uno::Exception& e ) 161 { 162 OSL_TRACE( "Caught exception: %s\n thread terminated.\n", 163 rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr()); 164 } --- 2391 unchanged lines hidden --- | 154 if ( xSystemShell.is() ) 155 xSystemShell->execute( rURL, ::rtl::OUString(), css::system::SystemShellExecuteFlags::DEFAULTS ); 156 } 157 catch( const uno::Exception& e ) 158 { 159 OSL_TRACE( "Caught exception: %s\n thread terminated.\n", 160 rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr()); 161 } --- 2391 unchanged lines hidden --- |