vclxwindows.cxx (b6dc695e) vclxwindows.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

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

32#include <toolkit/helper/convert.hxx>
33#include <toolkit/helper/imagealign.hxx>
34#include <toolkit/helper/accessibilityclient.hxx>
35#include <toolkit/helper/fixedhyperbase.hxx>
36#include <toolkit/helper/tkresmgr.hxx>
37#include <cppuhelper/typeprovider.hxx>
38#include <com/sun/star/awt/VisualEffect.hpp>
39#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

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

32#include <toolkit/helper/convert.hxx>
33#include <toolkit/helper/imagealign.hxx>
34#include <toolkit/helper/accessibilityclient.hxx>
35#include <toolkit/helper/fixedhyperbase.hxx>
36#include <toolkit/helper/tkresmgr.hxx>
37#include <cppuhelper/typeprovider.hxx>
38#include <com/sun/star/awt/VisualEffect.hpp>
39#include <com/sun/star/lang/XMultiServiceFactory.hpp>
40#include <com/sun/star/system/XSystemShellExecute.hpp>
40#include <com/sun/star/system/SystemShellExecute.hpp>
41#include <com/sun/star/system/SystemShellExecuteFlags.hpp>
42#include <com/sun/star/resource/XStringResourceResolver.hpp>
43#include <com/sun/star/awt/ImageScaleMode.hpp>
44#include <com/sun/star/awt/XItemList.hpp>
45#include <comphelper/componentcontext.hxx>
46#include <comphelper/namedvaluecollection.hxx>
47#include <comphelper/processfactory.hxx>
48

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

2621 else
2622 {
2623 // open the URL
2624 ::rtl::OUString sURL;
2625 ::toolkit::FixedHyperlinkBase* pBase = (::toolkit::FixedHyperlinkBase*)GetWindow();
2626 if ( pBase )
2627 sURL = pBase->GetURL();
2628 Reference< ::com::sun::star::system::XSystemShellExecute > xSystemShellExecute(
41#include <com/sun/star/system/SystemShellExecuteFlags.hpp>
42#include <com/sun/star/resource/XStringResourceResolver.hpp>
43#include <com/sun/star/awt/ImageScaleMode.hpp>
44#include <com/sun/star/awt/XItemList.hpp>
45#include <comphelper/componentcontext.hxx>
46#include <comphelper/namedvaluecollection.hxx>
47#include <comphelper/processfactory.hxx>
48

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

2621 else
2622 {
2623 // open the URL
2624 ::rtl::OUString sURL;
2625 ::toolkit::FixedHyperlinkBase* pBase = (::toolkit::FixedHyperlinkBase*)GetWindow();
2626 if ( pBase )
2627 sURL = pBase->GetURL();
2628 Reference< ::com::sun::star::system::XSystemShellExecute > xSystemShellExecute(
2629 ::comphelper::getProcessServiceFactory()->createInstance(
2630 ::rtl::OUString::createFromAscii( "com.sun.star.system.SystemShellExecute" )), uno::UNO_QUERY );
2629 ::com::sun::star::system::SystemShellExecute::create(
2630 ::comphelper::getProcessComponentContext() ) );
2631 if ( sURL.getLength() > 0 && xSystemShellExecute.is() )
2632 {
2633 try
2634 {
2635 // start browser
2636 xSystemShellExecute->execute(
2637 sURL, ::rtl::OUString(), ::com::sun::star::system::SystemShellExecuteFlags::DEFAULTS );
2638 }

--- 3606 unchanged lines hidden ---
2631 if ( sURL.getLength() > 0 && xSystemShellExecute.is() )
2632 {
2633 try
2634 {
2635 // start browser
2636 xSystemShellExecute->execute(
2637 sURL, ::rtl::OUString(), ::com::sun::star::system::SystemShellExecuteFlags::DEFAULTS );
2638 }

--- 3606 unchanged lines hidden ---