about.cxx (7168672c) about.cxx (4ad1da77)
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

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

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();
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

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

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< system::XSystemShellExecute > xSystemShell(
537 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 );
542 if ( xSystemShell.is() )
538 xContext->getServiceManager()->createInstanceWithContext(
539 rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.system.SystemShellExecute" ) ),
540 xContext ),
541 uno::UNO_QUERY_THROW );
542 if ( xSystemShell.is() )
543 xSystemShell->execute( sURL, rtl::OUString(), system::SystemShellExecuteFlags::DEFAULTS );
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 }
550 }
551
552 return 0;
553}
554
555IMPL_LINK ( AboutDialog, ShowReadme_Impl, PushButton*, EMPTYARG )
556{
557 ReadmeDialog aDlg( this );
558 aDlg.Execute();
559
560 return 0;
561}
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 }
550 }
551
552 return 0;
553}
554
555IMPL_LINK ( AboutDialog, ShowReadme_Impl, PushButton*, EMPTYARG )
556{
557 ReadmeDialog aDlg( this );
558 aDlg.Execute();
559
560 return 0;
561}