diff options
author | Tino Rachui <tra@openoffice.org> | 2001-04-27 08:36:07 +0000 |
---|---|---|
committer | Tino Rachui <tra@openoffice.org> | 2001-04-27 08:36:07 +0000 |
commit | f0f3ba9f66b6d2013d198ebd1dacda59bdc46162 (patch) | |
tree | d797f4a794350b5047454e6aa1324e4fd0ba0d19 /offapi | |
parent | e5b9a4f355ac660d0160f68523ef89d6698274eb (diff) |
*** empty log message ***
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/com/sun/star/system/SystemShellExecute.idl | 112 | ||||
-rw-r--r-- | offapi/com/sun/star/system/SystemShellExecuteException.idl | 93 | ||||
-rw-r--r-- | offapi/com/sun/star/system/SystemShellExecuteFlags.idl | 90 | ||||
-rw-r--r-- | offapi/com/sun/star/system/XSystemShellExecute.idl | 126 | ||||
-rw-r--r-- | offapi/com/sun/star/system/makefile.mk | 84 | ||||
-rw-r--r-- | offapi/prj/build.lst | 3 | ||||
-rw-r--r-- | offapi/prj/d.lst | 2 | ||||
-rw-r--r-- | offapi/util/makefile.mk | 5 |
8 files changed, 512 insertions, 3 deletions
diff --git a/offapi/com/sun/star/system/SystemShellExecute.idl b/offapi/com/sun/star/system/SystemShellExecute.idl new file mode 100644 index 000000000000..63cfe8a2c805 --- /dev/null +++ b/offapi/com/sun/star/system/SystemShellExecute.idl @@ -0,0 +1,112 @@ +/************************************************************************* + * + * $RCSfile: SystemShellExecute.idl,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: tra $ $Date: 2001-04-27 09:33:37 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (the "License"); You may not use this file + * except in compliance with the License. You may obtain a copy of the + * License at http://www.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef __com_sun_star_system_SystemShellExecute_idl__ +#define __com_sun_star_system_SystemShellExecute_idl__ + +#ifndef __com_sun_star_lang_XServiceInfo_idl__ +#include <com/sun/star/lang/XServiceInfo.idl> +#endif + +#ifndef __com_sun_star_lang_XTypeProvider_idl__ +#include <com/sun/star/lang/XTypeProvider.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module system { + +//============================================================================= + +//============================================================================= +/** A SystemExecute service implements an interface to execute an abrbitrary + system command. + + @see XSystemExecute +*/ + +interface XSystemShellExecute; + +service SystemShellExecute +{ + //------------------------------------------------------------------------- + /** Provides access to a XSystemExecute interface. + + @see XSystemExecute + */ + interface XSystemShellExecute; + + //------------------------------------------------------------------------- + /** service should always support this interface. + */ + interface com::sun::star::lang::XServiceInfo; + + //------------------------------------------------------------------------- + /** service should always support this interface. + */ + interface com::sun::star::lang::XTypeProvider; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/system/SystemShellExecuteException.idl b/offapi/com/sun/star/system/SystemShellExecuteException.idl new file mode 100644 index 000000000000..93b382f2008a --- /dev/null +++ b/offapi/com/sun/star/system/SystemShellExecuteException.idl @@ -0,0 +1,93 @@ +/************************************************************************* + * + * $RCSfile: SystemShellExecuteException.idl,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: tra $ $Date: 2001-04-27 09:33:45 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (the "License"); You may not use this file + * except in compliance with the License. You may obtain a copy of the + * License at http://www.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef __com_sun_star_system_SystemShellExecuteException_idl__ +#define __com_sun_star_system_SystemShellExecuteException_idl__ + +#ifndef __com_sun_star_uno_Exception_idl__ +#include <com/sun/star/uno/Exception.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module system { + +//============================================================================= +/** SystemExecuteException + the inherited member of ::com::sun::star::uno::Exception may contain a + system error message but that's not mandatory + The member PosixError specifies an POSIX conforming error code or -1 for + unknown errors + */ +exception SystemShellExecuteException: com::sun::star::uno::Exception +{ + long PosixError; +}; + +//============================================================================= + +}; }; }; }; + +/*============================================================================= + + +=============================================================================*/ +#endif diff --git a/offapi/com/sun/star/system/SystemShellExecuteFlags.idl b/offapi/com/sun/star/system/SystemShellExecuteFlags.idl new file mode 100644 index 000000000000..f3cdf6135d49 --- /dev/null +++ b/offapi/com/sun/star/system/SystemShellExecuteFlags.idl @@ -0,0 +1,90 @@ +/************************************************************************* + * + * $RCSfile: SystemShellExecuteFlags.idl,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: tra $ $Date: 2001-04-27 09:33:29 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (the "License"); You may not use this file + * except in compliance with the License. You may obtain a copy of the + * License at http://www.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef __com_sun_star_system_SystemShellExecuteFlags_idl__ +#define __com_sun_star_system_SystemShellExecuteFlags_idl__ + + +module com { module sun { module star { module system { + +//============================================================================= +/** These constants are used to specify a mode of the file dialog + */ + +constants SystemShellExecuteFlags +{ + //--------------------------------------------------------------------- + /** Uses the default settings for the execute command + */ + const long SSEF_DEFAULTS = 0; + + //--------------------------------------------------------------------- + /** Prevents the display of system error message boxes if the + method execute of ::com::sun::star::sys::XSystemExecute fails + */ + const long SSEF_NO_SYSTEM_ERROR_MESSAGE = 1; +}; + +//============================================================================= + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/system/XSystemShellExecute.idl b/offapi/com/sun/star/system/XSystemShellExecute.idl new file mode 100644 index 000000000000..73ce8c77de2d --- /dev/null +++ b/offapi/com/sun/star/system/XSystemShellExecute.idl @@ -0,0 +1,126 @@ +/************************************************************************* + * + * $RCSfile: XSystemShellExecute.idl,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: tra $ $Date: 2001-04-27 09:33:22 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (the "License"); You may not use this file + * except in compliance with the License. You may obtain a copy of the + * License at http://www.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef __com_sun_star_system_XSystemShellExecute_idl__ +#define __com_sun_star_system_XSystemShellExecute_idl__ + +#ifndef __com_sun_star_uno_RuntimeException_idl__ +#include <com/sun/star/uno/RuntimeException.idl> +#endif + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ +#include <com/sun/star/lang/IllegalArgumentException.idl> +#endif + +#ifndef __com_sun_star_system_SystemShellExecuteException_idl__ +#include <com/sun/star/system/SystemShellExecuteException.idl> +#endif + +//============================================================================= + +module com { module sun { module star { module system { + +//============================================================================= +/** specifies an interface for executing a system command + + @author tra + @version 0.1 +*/ + + +interface XSystemShellExecute: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + /** Executes an abitrary system command. + + @param aCommand + specifies the command to execute, this may be an executable file or a + document which is registered with an application etc. + + @param aParameter + specifies a list of space separated parameters, the method doesn't + validate the given parameter but only give it as parameter to the + command specified + + @param nFlags + specifies different flags to control the execution of this method, e.g. + avoid showing system error messages in case of failures etc. + @see ::com::sun::star::sys::shell::SystemShellExecuteFlags + + @throws + a ::com::sun::star::lang::IllegalArgumentException when the specified + flags are wrong or exclude each other + a ::com::sun::star::sys::SystemExecuteException in the case of errors + */ + void execute( [in] string aCommand, [in] string aParameter, [in] long nFlags ) + raises( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::system::SystemShellExecuteException ); +}; + +//============================================================================= + +}; }; }; }; + +#endif + diff --git a/offapi/com/sun/star/system/makefile.mk b/offapi/com/sun/star/system/makefile.mk new file mode 100644 index 000000000000..7f5160c8f96f --- /dev/null +++ b/offapi/com/sun/star/system/makefile.mk @@ -0,0 +1,84 @@ +#************************************************************************* +# +# $RCSfile: makefile.mk,v $ +# +# $Revision: 1.1 $ +# +# last change: $Author: tra $ $Date: 2001-04-27 09:33:16 $ +# +# The Contents of this file are made available subject to the terms of +# either of the following licenses +# +# - GNU Lesser General Public License Version 2.1 +# - Sun Industry Standards Source License Version 1.1 +# +# Sun Microsystems Inc., October, 2000 +# +# GNU Lesser General Public License Version 2.1 +# ============================================= +# Copyright 2000 by Sun Microsystems, Inc. +# 901 San Antonio Road, Palo Alto, CA 94303, USA +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License version 2.1, as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# +# +# Sun Industry Standards Source License Version 1.1 +# ================================================= +# The contents of this file are subject to the Sun Industry Standards +# Source License Version 1.1 (the "License"); You may not use this file +# except in compliance with the License. You may obtain a copy of the +# License at http://www.openoffice.org/license.html. +# +# Software provided under this License is provided on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, +# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, +# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. +# See the License for the specific provisions governing your rights and +# obligations concerning the Software. +# +# The Initial Developer of the Original Code is: Sun Microsystems, Inc. +# +# Copyright: 2000 by Sun Microsystems, Inc. +# +# All Rights Reserved. +# +# Contributor(s): _______________________________________ +# +# +# +#************************************************************************* + +PRJ=..$/..$/..$/.. + +PRJNAME=api + +TARGET=csssystem +PACKAGE=com$/sun$/star$/system + +# --- Settings ----------------------------------------------------- +.INCLUDE : $(PRJ)$/util$/makefile.pmk + +# ------------------------------------------------------------------------ + +IDLFILES=\ + SystemShellExecute.idl\ + SystemShellExecuteException.idl\ + SystemShellExecuteFlags.idl\ + XSystemShellExecute.idl + +# ------------------------------------------------------------------ + +.INCLUDE : target.mk +.INCLUDE : $(PRJ)$/util$/target.pmk diff --git a/offapi/prj/build.lst b/offapi/prj/build.lst index cea47574defe..652c9615a7b3 100644 --- a/offapi/prj/build.lst +++ b/offapi/prj/build.lst @@ -31,6 +31,7 @@ oa offapi\com\sun\star\sheet nmake - all oa_sheet NULL oa offapi\com\sun\star\style nmake - all oa_style NULL oa offapi\com\sun\star\svg nmake - all oa_svg NULL oa offapi\com\sun\star\sync nmake - all oa_sync NULL +oa offapi\com\sun\star\system nmake - all oa_system NULL oa offapi\com\sun\star\table nmake - all oa_table NULL oa offapi\com\sun\star\task nmake - all oa_task NULL oa offapi\com\sun\star\text nmake - all oa_text NULL @@ -44,4 +45,4 @@ oa offapi\com\sun\star\sdbcx nmake - all oa_sdbcx NULL oa offapi\com\sun\star\sdbc nmake - all oa_sdbc NULL oa offapi\com\sun\star\sdb nmake - all oa_sdb NULL oa offapi\com\sun\star\image nmake - all oa_image NULL -oa offapi\util nmake - all oa_util oa_awt oa_chart oa_config oa_datatrans_clip oa_datatrans_dnd oa_datatransfer oa_docu oa_draw oa_fcomp oa_fcontr oa_fieldmaster oa_form oa_formula oa_frame oa_i18n oa_inst oa_ling2 oa_mozilla oa_packages oa_manifest oa_pgp oa_plug oa_pres oa_putil oa_resrc oa_sax oa_scan oa_sdb oa_sdbc oa_sdbcx oa_setup oa_sheet oa_style oa_svg oa_sync oa_table oa_task oa_text oa_textfield oa_ucb oa_ui oa_view oa_xml oa_image NULL +oa offapi\util nmake - all oa_util oa_awt oa_chart oa_config oa_datatrans_clip oa_datatrans_dnd oa_datatransfer oa_docu oa_draw oa_fcomp oa_fcontr oa_fieldmaster oa_form oa_formula oa_frame oa_i18n oa_inst oa_ling2 oa_mozilla oa_packages oa_manifest oa_pgp oa_plug oa_pres oa_putil oa_resrc oa_sax oa_scan oa_sdb oa_sdbc oa_sdbcx oa_setup oa_sheet oa_style oa_svg oa_sync oa_system oa_table oa_task oa_text oa_textfield oa_ucb oa_ui oa_view oa_xml oa_image NULL diff --git a/offapi/prj/d.lst b/offapi/prj/d.lst index 2b92a3a38b3f..9366ab666dd8 100644 --- a/offapi/prj/d.lst +++ b/offapi/prj/d.lst @@ -31,6 +31,7 @@ mkdir: %_DEST%\idl%_EXT%\com\sun\star\sdbcx mkdir: %_DEST%\idl%_EXT%\com\sun\star\setup mkdir: %_DEST%\idl%_EXT%\com\sun\star\sheet mkdir: %_DEST%\idl%_EXT%\com\sun\star\style +mkdir: %_DEST%\idl%_EXT%\com\sun\star\system mkdir: %_DEST%\idl%_EXT%\com\sun\star\svg mkdir: %_DEST%\idl%_EXT%\com\sun\star\sync mkdir: %_DEST%\idl%_EXT%\com\sun\star\table @@ -80,6 +81,7 @@ mkdir: %_DEST%\idl%_EXT%\com\sun\star\xml\sax ..\com\sun\star\style\*.idl %_DEST%\idl%_EXT%\com\sun\star\style\*.idl ..\com\sun\star\svg\*.idl %_DEST%\idl%_EXT%\com\sun\star\svg\*.idl ..\com\sun\star\sync\*.idl %_DEST%\idl%_EXT%\com\sun\star\sync\*.idl +..\com\sun\star\system\*.idl %_DEST%\idl%_EXT%\com\sun\star\system\*.idl ..\com\sun\star\table\*.idl %_DEST%\idl%_EXT%\com\sun\star\table\*.idl ..\com\sun\star\task\*.idl %_DEST%\idl%_EXT%\com\sun\star\task\*.idl ..\com\sun\star\text\*.idl %_DEST%\idl%_EXT%\com\sun\star\text\*.idl diff --git a/offapi/util/makefile.mk b/offapi/util/makefile.mk index 14762e8fb914..3e4ac0b89892 100644 --- a/offapi/util/makefile.mk +++ b/offapi/util/makefile.mk @@ -2,9 +2,9 @@ # # $RCSfile: makefile.mk,v $ # -# $Revision: 1.14 $ +# $Revision: 1.15 $ # -# last change: $Author: mtg $ $Date: 2001-04-19 14:03:19 $ +# last change: $Author: tra $ $Date: 2001-04-27 09:35:11 $ # # The Contents of this file are made available subject to the terms of # either of the following licenses @@ -111,6 +111,7 @@ UNOIDLDBFILES= \ $(UCR)$/csssdbcx.db \ $(UCR)$/csssheet.db \ $(UCR)$/cssstyle.db \ + $(UCR)$/csssystem.db\ $(UCR)$/csstable.db \ $(UCR)$/csstask.db \ $(UCR)$/csstext.db \ |