about.cxx (325547ba) | about.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 --- 32 unchanged lines hidden (view full) --- 41#include <vcl/imagerepository.hxx> 42#include <vcl/msgbox.hxx> 43#include <vcl/svapp.hxx> 44#include <vcl/tabctrl.hxx> 45#include <vcl/tabdlg.hxx> 46#include <vcl/tabpage.hxx> 47 48#include <com/sun/star/system/SystemShellExecuteFlags.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 --- 32 unchanged lines hidden (view full) --- 41#include <vcl/imagerepository.hxx> 42#include <vcl/msgbox.hxx> 43#include <vcl/svapp.hxx> 44#include <vcl/tabctrl.hxx> 45#include <vcl/tabdlg.hxx> 46#include <vcl/tabpage.hxx> 47 48#include <com/sun/star/system/SystemShellExecuteFlags.hpp> |
49#include <com/sun/star/system/XSystemShellExecute.hpp> | 49#include <com/sun/star/system/SystemShellExecute.hpp> |
50#include <com/sun/star/uno/Any.h> 51 52#include "about.hxx" 53#include "about.hrc" 54 55#define _STRINGIFY(x) #x 56#define STRINGIFY(x) _STRINGIFY(x) 57 --- 469 unchanged lines hidden (view full) --- 527 528IMPL_LINK ( AboutDialog, OpenLinkHdl_Impl, svt::FixedHyperlink*, EMPTYARG ) 529{ 530 ::rtl::OUString sURL( maCreditsLink.GetURL() ); 531 if ( sURL.getLength() > 0 ) 532 { 533 try 534 { | 50#include <com/sun/star/uno/Any.h> 51 52#include "about.hxx" 53#include "about.hrc" 54 55#define _STRINGIFY(x) #x 56#define STRINGIFY(x) _STRINGIFY(x) 57 --- 469 unchanged lines hidden (view full) --- 527 528IMPL_LINK ( AboutDialog, OpenLinkHdl_Impl, svt::FixedHyperlink*, EMPTYARG ) 529{ 530 ::rtl::OUString sURL( maCreditsLink.GetURL() ); 531 if ( sURL.getLength() > 0 ) 532 { 533 try 534 { |
535 uno::Reference< uno::XComponentContext > xContext = 536 ::comphelper::getProcessComponentContext(); | |
537 uno::Reference< com::sun::star::system::XSystemShellExecute > xSystemShell( | 535 uno::Reference< com::sun::star::system::XSystemShellExecute > xSystemShell( |
538 xContext->getServiceManager()->createInstanceWithContext( 539 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.system.SystemShellExecute" ) ), 540 xContext ), 541 uno::UNO_QUERY_THROW ); | 536 com::sun::star::system::SystemShellExecute::create( 537 ::comphelper::getProcessComponentContext() ) ); |
542 if ( xSystemShell.is() ) 543 xSystemShell->execute( sURL, rtl::OUString(), com::sun::star::system::SystemShellExecuteFlags::DEFAULTS ); 544 } 545 catch( const uno::Exception& e ) 546 { 547 OSL_TRACE( "Caught exception: %s\n thread terminated.\n", 548 rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr()); 549 } --- 12 unchanged lines hidden --- | 538 if ( xSystemShell.is() ) 539 xSystemShell->execute( sURL, rtl::OUString(), com::sun::star::system::SystemShellExecuteFlags::DEFAULTS ); 540 } 541 catch( const uno::Exception& e ) 542 { 543 OSL_TRACE( "Caught exception: %s\n thread terminated.\n", 544 rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr()); 545 } --- 12 unchanged lines hidden --- |