diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-06-04 10:25:47 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-06-04 10:25:47 +0000 |
commit | 4a44828bc42ebfcfe8be3cddb4d1812c9c73ad44 (patch) | |
tree | 9853d9d73ab499fb7b0e25eea387d8534ce9a68c /sfx2 | |
parent | 32b7999e528418a53bffa6be611362ac8e61c35f (diff) |
INTEGRATION: CWS touchpoints01 (1.75.52); FILE MERGED
2008/06/03 10:13:59 pb 1.75.52.2: fix: #i89981# syntax error fixed
2008/06/02 12:38:50 pb 1.75.52.1: fix: #i89981# SID_MORE_DICTIONARIES added
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appserv.cxx | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index 57870fb74a..f9855a8563 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -1,13 +1,13 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: appserv.cxx,v $ - * $Revision: 1.75 $ + * $Revision: 1.76 $ * * This file is part of OpenOffice.org. * @@ -151,6 +151,8 @@ using namespace ::com::sun::star::system; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::document; +namespace css = com::sun::star; + //------------------------------------------------------------------------- long QuitAgain_Impl( void* pObj, void* pArg ) { @@ -806,6 +808,25 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq ) break; } + case SID_MORE_DICTIONARIES: + { + try + { + uno::Reference< lang::XMultiServiceFactory > xSMGR = + ::comphelper::getProcessServiceFactory(); + uno::Reference< css::system::XSystemShellExecute > xSystemShell( + xSMGR->createInstance( DEFINE_CONST_UNICODE("com.sun.star.system.SystemShellExecute" ) ), + uno::UNO_QUERY_THROW ); + if ( xSystemShell.is() ) + xSystemShell->execute( DEFINE_CONST_UNICODE("http://extensions.services.openoffice.org/taxonomy/term/88"), ::rtl::OUString(), css::system::SystemShellExecuteFlags::DEFAULTS ); + } + catch( const ::com::sun::star::uno::Exception& ) + { + DBG_ERRORFILE( "SfxApplication::OfaExec_Impl(SID_MORE_DICTIONARIES): caught an exception!" ); + } + break; + } + case SID_ONLINE_REGISTRATION: { try |