diff options
Diffstat (limited to 'offapi/com/sun/star/script/vba')
-rw-r--r-- | offapi/com/sun/star/script/vba/VBAEventId.idl | 140 | ||||
-rw-r--r-- | offapi/com/sun/star/script/vba/VBAEventProcessor.idl | 49 | ||||
-rw-r--r-- | offapi/com/sun/star/script/vba/VBAMacroResolver.idl | 49 | ||||
-rw-r--r-- | offapi/com/sun/star/script/vba/VBAScriptEvent.idl | 73 | ||||
-rw-r--r-- | offapi/com/sun/star/script/vba/VBAScriptEventId.idl | 100 | ||||
-rw-r--r-- | offapi/com/sun/star/script/vba/VBASpreadsheetEventProcessor.idl | 50 | ||||
-rw-r--r-- | offapi/com/sun/star/script/vba/VBATextEventProcessor.idl | 50 | ||||
-rw-r--r-- | offapi/com/sun/star/script/vba/XVBACompatibility.idl | 68 | ||||
-rw-r--r-- | offapi/com/sun/star/script/vba/XVBAEventProcessor.idl | 102 | ||||
-rw-r--r-- | offapi/com/sun/star/script/vba/XVBAMacroResolver.idl | 94 | ||||
-rw-r--r-- | offapi/com/sun/star/script/vba/XVBAModuleInfo.idl | 75 | ||||
-rw-r--r-- | offapi/com/sun/star/script/vba/XVBAScriptListener.idl | 51 | ||||
-rw-r--r-- | offapi/com/sun/star/script/vba/makefile.mk | 57 |
13 files changed, 0 insertions, 958 deletions
diff --git a/offapi/com/sun/star/script/vba/VBAEventId.idl b/offapi/com/sun/star/script/vba/VBAEventId.idl deleted file mode 100644 index af0527a16..000000000 --- a/offapi/com/sun/star/script/vba/VBAEventId.idl +++ /dev/null @@ -1,140 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org 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 version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_VBAEventId_idl__ -#define __com_sun_star_script_vba_VBAEventId_idl__ - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -//============================================================================= - -/** Constants used to identify VBA document events. - - <p>If one of these events is fired, a specific VBA macro in a specific - document code module will be executed.</p> - - <p>Each event expects some specific arguments to be passed to - <member>XVBAEventProcessor::processVbaEvent</member>.</p> - - @see XVBAEventProcessor - */ -constants VBAEventId -{ - //========================================================================= - - /** An identifier not corresponding to any VBA document event. */ - const long NO_EVENT = -1; - - //========================================================================= - // Global events (identifiers from 1 to 999) - - /** New document opened from template. No arguments. */ - const long AUTO_NEW = 1; - /** Document opened (loaded). No arguments. */ - const long AUTO_OPEN = 2; - /** Document about to be closed. No arguments. */ - const long AUTO_CLOSE = 3; - /** Application start. No arguments. */ - const long AUTO_EXEC = 4; - /** Application exit. No arguments. */ - const long AUTO_EXIT = 5; - - //========================================================================= - // MS Word (identifiers from 1001 to 1999) - - /** New text document opened from template. No arguments. */ - const long DOCUMENT_NEW = 1001; - /** Text document opened (loaded). No arguments. */ - const long DOCUMENT_OPEN = 1002; - /** Document about to be closed. No arguments. */ - const long DOCUMENT_CLOSE = 1003; - - //========================================================================= - // MS Excel (identifiers from 2001 to 2999) - - //------------------------------------------------------------------------- - // document events (2001-2099) - - /** Document activated. No arguments. */ - const long WORKBOOK_ACTIVATE = 2001; - /** Document deactivated. No arguments. */ - const long WORKBOOK_DEACTIVATE = 2002; - /** Document opened (loaded). No arguments. */ - const long WORKBOOK_OPEN = 2003; - /** Document about to be closed. Arguments: [out] boolean bCancel. */ - const long WORKBOOK_BEFORECLOSE = 2004; - /** Document about to be printed. Arguments: [out] boolean bCancel. */ - const long WORKBOOK_BEFOREPRINT = 2005; - /** Document about to be saved. Arguments: boolean bSaveAs, [out] boolean bCancel. */ - const long WORKBOOK_BEFORESAVE = 2006; - /** Document has been saved. Arguments: boolean bSuccess. */ - const long WORKBOOK_AFTERSAVE = 2007; - /** New sheet inserted. Arguments: short nSheet. */ - const long WORKBOOK_NEWSHEET = 2008; - /** Document window has been activated. Arguments: XController aController. */ - const long WORKBOOK_WINDOWACTIVATE = 2009; - /** Document window has been deactivated. Arguments: XController aController. */ - const long WORKBOOK_WINDOWDEACTIVATE = 2010; - /** Document window has been resized. Arguments: XController aController. */ - const long WORKBOOK_WINDOWRESIZE = 2011; - - //------------------------------------------------------------------------- - // sheet events (2101-2199) - - /** Worksheet has been activated (made visible). Arguments: short nSheet. */ - const long WORKSHEET_ACTIVATE = 2101; - /** Worksheet has been activated (made visible). Arguments: short nSheet. */ - const long WORKSHEET_DEACTIVATE = 2102; - /** Double click in the sheet. Arguments: XRange/XSheetCellRangeContainer aRange, [out] boolean bCancel. */ - const long WORKSHEET_BEFOREDOUBLECLICK = 2103; - /** Right click in the sheet. Arguments: XRange/XSheetCellRangeContainer aRange, [out] boolean bCancel. */ - const long WORKSHEET_BEFORERIGHTCLICK = 2104; - /** Cells in sheet have been recalculated. Arguments: short nSheet. */ - const long WORKSHEET_CALCULATE = 2105; - /** Cells in sheet have been changed. Arguments: XRange/XSheetCellRangeContainer aRange. */ - const long WORKSHEET_CHANGE = 2106; - /** Selection in sheet has been changed. Arguments: XRange/XSheetCellRangeContainer aRange. */ - const long WORKSHEET_SELECTIONCHANGE = 2107; - /** Hyperlink has been clicked. Arguments: XCell aCell. */ - const long WORKSHEET_FOLLOWHYPERLINK = 2108; - - //========================================================================= - - /** Implementations are allowed to use identifiers above this value for any - internal purpose. */ - const long USERDEFINED_START = 1000000; -}; - -//============================================================================= - -}; }; }; }; }; - -//============================================================================= - -#endif diff --git a/offapi/com/sun/star/script/vba/VBAEventProcessor.idl b/offapi/com/sun/star/script/vba/VBAEventProcessor.idl deleted file mode 100644 index 94ca1bc57..000000000 --- a/offapi/com/sun/star/script/vba/VBAEventProcessor.idl +++ /dev/null @@ -1,49 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org 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 version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_VBAEventProcessor_idl__ -#define __com_sun_star_script_vba_VBAEventProcessor_idl__ - -#include <com/sun/star/script/vba/XVBAEventProcessor.idl> - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -//============================================================================= - -service VBAEventProcessor : XVBAEventProcessor -{ -}; - -//============================================================================= - -}; }; }; }; }; - -//============================================================================= - -#endif diff --git a/offapi/com/sun/star/script/vba/VBAMacroResolver.idl b/offapi/com/sun/star/script/vba/VBAMacroResolver.idl deleted file mode 100644 index de0de0d82..000000000 --- a/offapi/com/sun/star/script/vba/VBAMacroResolver.idl +++ /dev/null @@ -1,49 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org 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 version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_VBAMacroResolver_idl__ -#define __com_sun_star_script_vba_VBAMacroResolver_idl__ - -#include <com/sun/star/script/vba/XVBAMacroResolver.idl> - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -//============================================================================= - -service VBAMacroResolver : XVBAMacroResolver -{ -}; - -//============================================================================= - -}; }; }; }; }; - -//============================================================================= - -#endif diff --git a/offapi/com/sun/star/script/vba/VBAScriptEvent.idl b/offapi/com/sun/star/script/vba/VBAScriptEvent.idl deleted file mode 100644 index c1fc7096b..000000000 --- a/offapi/com/sun/star/script/vba/VBAScriptEvent.idl +++ /dev/null @@ -1,73 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org 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 version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_VBAScriptEvent_idl__ -#define __com_sun_star_script_vba_VBAScriptEvent_idl__ - -#include <com/sun/star/lang/EventObject.idl> - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -//============================================================================= - -/** Describes a VBA script event fired via <member>XVBACompatibility:: - broadcastVBAScriptEvent</member>, and received by <member> - XVBAScriptListener::notifyVBAScriptEvent</member>. - - @see XVBACompatibility - @see XVBAScriptListener - */ -struct VBAScriptEvent : ::com::sun::star::lang::EventObject -{ - //------------------------------------------------------------------------- - - /** Identifies the type of the event. - - @see VBAScriptEventId - */ - long Identifier; - - //------------------------------------------------------------------------- - - /** Contains the name of the involved VBA module. - - @see VBAScriptEventId - */ - string ModuleName; - - //------------------------------------------------------------------------- -}; - -//============================================================================= - -}; }; }; }; }; - -//============================================================================= - -#endif diff --git a/offapi/com/sun/star/script/vba/VBAScriptEventId.idl b/offapi/com/sun/star/script/vba/VBAScriptEventId.idl deleted file mode 100644 index cc66a3fc0..000000000 --- a/offapi/com/sun/star/script/vba/VBAScriptEventId.idl +++ /dev/null @@ -1,100 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org 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 version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_VBAScriptEventId_idl__ -#define __com_sun_star_script_vba_VBAScriptEventId_idl__ - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -//============================================================================= - -/** Identifies a VBA script event fired via <member>XVBACompatibility:: - broadcastVBAScriptEvent</member>, and received by <member> - XVBAScriptListener::notifyVBAScriptEvent</member>. - - @see VBAScriptEvent - @see XVBACompatibility - @see XVBAScriptListener - */ -constants VBAScriptEventId -{ - //------------------------------------------------------------------------- - /** This event is fired when a VBA script in the current document has been - started. - - <p>Several scripts may run simultaneously, e.g. when a running script - triggers a document event that starts another script.</p> - - <p>The number of running scripts can be obtained via <member> - XVBACompatibility::RunningVBAScripts</member>. The number returned - there will already contain the new script notified with this event.</p> - - <p>The member <member>VBAScriptEvent::ModuleName</member> of the event - object will contain the name of the code module that contains the - started script.</p> - */ - const long SCRIPT_STARTED = 0; - - //------------------------------------------------------------------------- - /** This event is fired when a VBA script in the current document stops - running. - - <p>Several scripts may run simultaneously, e.g. when a running script - triggers a document event that starts another script.</p> - - <p>The number of scripts still running can be obtained via <member> - XVBACompatibility::RunningVBAScripts</member>. The number returned - there will not contain the stopped script notified with this event - anymore.</p> - - <p>The member <member>VBAScriptEvent::ModuleName</member> of the event - object will contain the name of the code module that contains the - script that has been stopped.</p> - */ - const long SCRIPT_STOPPED = 1; - - //------------------------------------------------------------------------- - /** This event is fired when a VBA script in the current document tries to - instanciate a userform. - - <p>The member <member>VBAScriptEvent::ModuleName</member> of the event - object will contain the name of the userform module.</p> - */ - const long INITIALIZE_USERFORM = 2; - - //------------------------------------------------------------------------- -}; - -//============================================================================= - -}; }; }; }; }; - -//============================================================================= - -#endif diff --git a/offapi/com/sun/star/script/vba/VBASpreadsheetEventProcessor.idl b/offapi/com/sun/star/script/vba/VBASpreadsheetEventProcessor.idl deleted file mode 100644 index e55ea5fec..000000000 --- a/offapi/com/sun/star/script/vba/VBASpreadsheetEventProcessor.idl +++ /dev/null @@ -1,50 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org 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 version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_VBASpreadsheetEventProcessor_idl__ -#define __com_sun_star_script_vba_VBASpreadsheetEventProcessor_idl__ - -#include <com/sun/star/script/vba/VBAEventProcessor.idl> - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -//============================================================================= - -service VBASpreadsheetEventProcessor -{ - service VBAEventProcessor; -}; - -//============================================================================= - -}; }; }; }; }; - -//============================================================================= - -#endif diff --git a/offapi/com/sun/star/script/vba/VBATextEventProcessor.idl b/offapi/com/sun/star/script/vba/VBATextEventProcessor.idl deleted file mode 100644 index ce986cd05..000000000 --- a/offapi/com/sun/star/script/vba/VBATextEventProcessor.idl +++ /dev/null @@ -1,50 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org 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 version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_VBATextEventProcessor_idl__ -#define __com_sun_star_script_vba_VBATextEventProcessor_idl__ - -#include <com/sun/star/script/vba/VBAEventProcessor.idl> - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -//============================================================================= - -service VBATextEventProcessor -{ - service VBAEventProcessor; -}; - -//============================================================================= - -}; }; }; }; }; - -//============================================================================= - -#endif diff --git a/offapi/com/sun/star/script/vba/XVBACompatibility.idl b/offapi/com/sun/star/script/vba/XVBACompatibility.idl deleted file mode 100644 index 9f93bb08f..000000000 --- a/offapi/com/sun/star/script/vba/XVBACompatibility.idl +++ /dev/null @@ -1,68 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org 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 version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_XVBACompatibility_idl__ -#define __com_sun_star_script_vba_XVBACompatibility_idl__ - -#include <com/sun/star/frame/XModel.idl> -#include <com/sun/star/script/vba/XVBAScriptListener.idl> - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -interface XVBACompatibility -{ - //------------------------------------------------------------------------- - - [attribute] boolean VBACompatibilityMode; - [attribute ] string ProjectName; - - //------------------------------------------------------------------------- - - [attribute, readonly] long RunningVBAScripts; - - //------------------------------------------------------------------------- - - [oneway] void addVBAScriptListener( [in] XVBAScriptListener Listener ); - - //------------------------------------------------------------------------- - - [oneway] void removeVBAScriptListener( [in] XVBAScriptListener Listener ); - - //------------------------------------------------------------------------- - - void broadcastVBAScriptEvent( [in] long Identifier, [in] string ModuleName ); - - //------------------------------------------------------------------------- -}; - -}; }; }; }; }; - -//============================================================================= - -#endif diff --git a/offapi/com/sun/star/script/vba/XVBAEventProcessor.idl b/offapi/com/sun/star/script/vba/XVBAEventProcessor.idl deleted file mode 100644 index ab7d3aad7..000000000 --- a/offapi/com/sun/star/script/vba/XVBAEventProcessor.idl +++ /dev/null @@ -1,102 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org 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 version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_XVBAEventProcessor_idl__ -#define __com_sun_star_script_vba_XVBAEventProcessor_idl__ - -#include <com/sun/star/uno/XInterface.idl> -#include <com/sun/star/lang/IllegalArgumentException.idl> -#include <com/sun/star/util/VetoException.idl> - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -//============================================================================= - -/** Executes VBA event handlers. - */ -interface XVBAEventProcessor -{ - //------------------------------------------------------------------------- - - /** Returns whether a VBA event handler exists. - - @param nEventId - The identifier of the event. Must be a constant from <type>VBAEventId</type>. - - @param aArgs - Additional arguments needed to identify some event handlers, e.g. a - sheet index for spreadsheet events. - - @return - <TRUE/>, if the VBA event handler exists. - - @throws <type scope="::com::sun::star::lang">IllegalArgumentException</type> - if the passed event identifier is not supported, or if the passed - specifier is required but invalid. - **/ - boolean hasVbaEventHandler( [in] long nEventId, [in] sequence< any > aArgs ) - raises (::com::sun::star::lang::IllegalArgumentException); - - //------------------------------------------------------------------------- - - /** Executes a VBA event handler. - - @param nEventId - The identifier of the event. Must be a constant from <type>VBAEventId</type>. - - @param aArgs - The input arguments needed to create the argument list of the VBA - event handler. - - @return - <TRUE/>, if event handing is enabled, and the event handler macro - exists and has been invoked. - - @throws <type scope="::com::sun::star::lang">IllegalArgumentException</type> - if the passed event identifier is not supported, or if the passed - arguments do not conform to the arguments expected by the specified - event. - - @throws <type scope="::com::sun::star::util">VetoException</type> - if the VBA event handler has indicated to veto the event. - **/ - boolean processVbaEvent( [in] long nEventId, [in] sequence< any > aArgs ) - raises (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::util::VetoException); - - //------------------------------------------------------------------------- -}; - -//============================================================================= - -}; }; }; }; }; - -//============================================================================= - -#endif diff --git a/offapi/com/sun/star/script/vba/XVBAMacroResolver.idl b/offapi/com/sun/star/script/vba/XVBAMacroResolver.idl deleted file mode 100644 index 5e4a251d1..000000000 --- a/offapi/com/sun/star/script/vba/XVBAMacroResolver.idl +++ /dev/null @@ -1,94 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org 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 version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_XVBAMacroResolver_idl__ -#define __com_sun_star_script_vba_XVBAMacroResolver_idl__ - -#include <com/sun/star/lang/IllegalArgumentException.idl> - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -//============================================================================= - -/** Converts VBA macro names to script URLs and vice versa. - */ -interface XVBAMacroResolver -{ - //------------------------------------------------------------------------- - - /** Returns the script URL representing the passed VBA macro name. - - @param aVBAMacroName - The VBA macro name to be resolved to a script URL. The macro name - may consist of up to three parts, divided by periods. The first two - parts are optional. The first part represents the VBA project name. - The second part represents the module name. The third part - represents the procedure name. Example: All the VBA macro names - "VBAProject.Module1.TestMacro", "Module1.TestMacro", - "VBAProject.TestMacro", and "TestMacro" may refer to the same VBA - procedure located in "Module" of the project "VBAProject". If the - module name is missing, then all modules are searched for a macro - with the specified name. - - @return - The script URL referring to the passed VBA macro. - - @throws <type scope="::com::sun::star::lang">IllegalArgumentException</type> - if a macro with the passed name does not exist. - **/ - string resolveVBAMacroToScriptURL( [in] string aVBAMacroName ) - raises (::com::sun::star::lang::IllegalArgumentException); - - //------------------------------------------------------------------------- - - /** Returns the VBA macro name for a macro with the passed script URL. - - @param aScriptURL - The script URL to be resolved to a VBA macro name. Must be a - document-local script. - - @return - The VBA macro name referring to a macro with the passed script URL. - - @throws <type scope="::com::sun::star::lang">IllegalArgumentException</type> - if a macro with the passed name does not exist. - **/ - string resolveScriptURLtoVBAMacro( [in] string aScriptURL ) - raises (::com::sun::star::lang::IllegalArgumentException); - - //------------------------------------------------------------------------- -}; - -//============================================================================= - -}; }; }; }; }; - -//============================================================================= - -#endif diff --git a/offapi/com/sun/star/script/vba/XVBAModuleInfo.idl b/offapi/com/sun/star/script/vba/XVBAModuleInfo.idl deleted file mode 100644 index 25f3f9114..000000000 --- a/offapi/com/sun/star/script/vba/XVBAModuleInfo.idl +++ /dev/null @@ -1,75 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org 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 version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_XVBAModuleInfo_idl__ -#define __com_sun_star_script_vba_XVBAModuleInfo_idl__ - -#include <com/sun/star/uno/XInterface.idl> -#include <com/sun/star/script/ModuleInfo.idl> -#include <com/sun/star/lang/IllegalArgumentException.idl> -#include <com/sun/star/container/ElementExistException.idl> -#include <com/sun/star/lang/WrappedTargetException.idl> -#include <com/sun/star/container/NoSuchElementException.idl> - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -interface XVBAModuleInfo -{ - //------------------------------------------------------------------------- - - com::sun::star::script::ModuleInfo getModuleInfo( [in] string ModuleName ) - raises( com::sun::star::container::NoSuchElementException, - com::sun::star::lang::WrappedTargetException ); - - //------------------------------------------------------------------------- - - boolean hasModuleInfo( [in] string ModuleName ); - - //------------------------------------------------------------------------- - - void insertModuleInfo( [in] string ModuleName, - [in] com::sun::star::script::ModuleInfo ModuleInfo ) - raises( com::sun::star::lang::IllegalArgumentException, - com::sun::star::container::ElementExistException, - com::sun::star::lang::WrappedTargetException ); - - //------------------------------------------------------------------------- - - void removeModuleInfo( [in] string ModuleName ) - raises( com::sun::star::container::NoSuchElementException, - com::sun::star::lang::WrappedTargetException ); - - //------------------------------------------------------------------------- -}; - -}; }; }; }; }; - -//============================================================================= - -#endif diff --git a/offapi/com/sun/star/script/vba/XVBAScriptListener.idl b/offapi/com/sun/star/script/vba/XVBAScriptListener.idl deleted file mode 100644 index 2f5594d3b..000000000 --- a/offapi/com/sun/star/script/vba/XVBAScriptListener.idl +++ /dev/null @@ -1,51 +0,0 @@ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org 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 version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_XVBAScriptListener_idl__ -#define __com_sun_star_script_vba_XVBAScriptListener_idl__ - -#include <com/sun/star/lang/XEventListener.idl> -#include <com/sun/star/script/vba/VBAScriptEvent.idl> - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -//============================================================================= - -interface XVBAScriptListener : ::com::sun::star::lang::XEventListener -{ - void notifyVBAScriptEvent( [in] VBAScriptEvent Event ); -}; - -//============================================================================= - -}; }; }; }; }; - -//============================================================================= - -#endif diff --git a/offapi/com/sun/star/script/vba/makefile.mk b/offapi/com/sun/star/script/vba/makefile.mk deleted file mode 100644 index 6f13245f7..000000000 --- a/offapi/com/sun/star/script/vba/makefile.mk +++ /dev/null @@ -1,57 +0,0 @@ -#************************************************************************* -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# Copyright 2000, 2010 Oracle and/or its affiliates. -# -# OpenOffice.org - a multi-platform office productivity suite -# -# This file is part of OpenOffice.org. -# -# OpenOffice.org is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License version 3 -# only, as published by the Free Software Foundation. -# -# OpenOffice.org 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 version 3 for more details -# (a copy is included in the LICENSE file that accompanied this code). -# -# You should have received a copy of the GNU Lesser General Public License -# version 3 along with OpenOffice.org. If not, see -# <http://www.openoffice.org/license.html> -# for a copy of the LGPLv3 License. -# -#************************************************************************* - -PRJ=..$/..$/..$/..$/.. - -PRJNAME=offapi - -TARGET=cssscriptvba -PACKAGE=com$/sun$/star$/script$/vba - -# --- Settings ----------------------------------------------------- -.INCLUDE : $(PRJ)$/util$/makefile.pmk - -# ------------------------------------------------------------------------ - -IDLFILES=\ - VBAEventId.idl \ - VBAEventProcessor.idl \ - VBAMacroResolver.idl \ - VBAScriptEvent.idl \ - VBAScriptEventId.idl \ - VBASpreadsheetEventProcessor.idl \ - VBATextEventProcessor.idl \ - XVBACompatibility.idl \ - XVBAEventProcessor.idl \ - XVBAMacroResolver.idl \ - XVBAModuleInfo.idl \ - XVBAScriptListener.idl - -# ------------------------------------------------------------------ - -.INCLUDE : target.mk -.INCLUDE : $(PRJ)$/util$/target.pmk |