update dev300-m58
[ooovba.git] / shell / source / win32 / SysShExec.hxx
blob2ed0a3bb3dfbc57d6863d8a7c76cc582cad944c1
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: SysShExec.hxx,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SYSSHEXEC_HXX_
32 #define _SYSSHEXEC_HXX_
34 //_______________________________________________________________________________________________________________________
35 // includes of other projects
36 //_______________________________________________________________________________________________________________________
38 #include <cppuhelper/compbase2.hxx>
39 #include <osl/mutex.hxx>
40 #include <com/sun/star/lang/XServiceInfo.hpp>
42 #ifndef _COM_SUN_STAR_SYS_SHELL_XSYSTEMSHELLEXECUTE_HPP_
43 #include <com/sun/star/system/XSystemShellExecute.hpp>
44 #endif
46 //----------------------------------------------------------
47 // class declaration
48 //----------------------------------------------------------
50 class CSysShExecBase
52 protected:
53 osl::Mutex m_aMutex;
56 class CSysShExec :
57 public CSysShExecBase,
58 public cppu::WeakComponentImplHelper2<
59 com::sun::star::system::XSystemShellExecute,
60 com::sun::star::lang::XServiceInfo >
62 public:
63 CSysShExec( );
65 //------------------------------------------------
66 // XSystemShellExecute
67 //------------------------------------------------
69 virtual void SAL_CALL execute( const ::rtl::OUString& aCommand, const ::rtl::OUString& aParameter, sal_Int32 nFlags )
70 throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::system::SystemShellExecuteException, ::com::sun::star::uno::RuntimeException);
72 //------------------------------------------------
73 // XServiceInfo
74 //------------------------------------------------
76 virtual ::rtl::OUString SAL_CALL getImplementationName( )
77 throw(::com::sun::star::uno::RuntimeException);
79 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
80 throw(::com::sun::star::uno::RuntimeException);
82 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
83 throw(::com::sun::star::uno::RuntimeException);
84 };
86 #endif