From 9eaf48be9b8a9317459383caf11b98e68b038955 Mon Sep 17 00:00:00 2001 From: Daniel Rentz Date: Mon, 12 Jul 2010 11:17:00 +0200 Subject: mib17: #i112634# API changes --- offapi/com/sun/star/script/vba/EventIdentifier.idl | 140 --------------------- offapi/com/sun/star/script/vba/EventProcessor.idl | 51 -------- .../star/script/vba/SpreadsheetEventProcessor.idl | 50 -------- .../com/sun/star/script/vba/TextEventProcessor.idl | 50 -------- offapi/com/sun/star/script/vba/VBAEventId.idl | 140 +++++++++++++++++++++ .../com/sun/star/script/vba/VBAEventProcessor.idl | 49 ++++++++ .../script/vba/VBASpreadsheetEventProcessor.idl | 50 ++++++++ .../sun/star/script/vba/VBATextEventProcessor.idl | 50 ++++++++ offapi/com/sun/star/script/vba/XEventProcessor.idl | 113 ----------------- .../com/sun/star/script/vba/XVBAEventProcessor.idl | 111 ++++++++++++++++ offapi/com/sun/star/script/vba/makefile.mk | 10 +- 11 files changed, 405 insertions(+), 409 deletions(-) delete mode 100755 offapi/com/sun/star/script/vba/EventIdentifier.idl delete mode 100755 offapi/com/sun/star/script/vba/EventProcessor.idl delete mode 100755 offapi/com/sun/star/script/vba/SpreadsheetEventProcessor.idl delete mode 100755 offapi/com/sun/star/script/vba/TextEventProcessor.idl create mode 100755 offapi/com/sun/star/script/vba/VBAEventId.idl create mode 100755 offapi/com/sun/star/script/vba/VBAEventProcessor.idl create mode 100755 offapi/com/sun/star/script/vba/VBASpreadsheetEventProcessor.idl create mode 100755 offapi/com/sun/star/script/vba/VBATextEventProcessor.idl delete mode 100755 offapi/com/sun/star/script/vba/XEventProcessor.idl create mode 100755 offapi/com/sun/star/script/vba/XVBAEventProcessor.idl (limited to 'offapi/com/sun/star') diff --git a/offapi/com/sun/star/script/vba/EventIdentifier.idl b/offapi/com/sun/star/script/vba/EventIdentifier.idl deleted file mode 100755 index f70a84d9ace8..000000000000 --- a/offapi/com/sun/star/script/vba/EventIdentifier.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 - * - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_EventIdentifier_idl__ -#define __com_sun_star_script_vba_EventIdentifier_idl__ - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -//============================================================================= - -/** Constants used to identify VBA document events. - -

If one of these events is fired, a specific VBA macro in a specific - document code module will be executed.

- -

Each event expects some specific arguments to be passed to - XEventProcessor::processVbaEvent.

- - @see XEventProcessor - */ -constants EventIdentifier -{ - //========================================================================= - - /** 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. No arguments. */ - const long WORKBOOK_WINDOWACTIVATE = 2009; - /** Document window has been deactivated. No arguments. */ - const long WORKBOOK_WINDOWDEACTIVATE = 2010; - /** Document window has been resized. No arguments. */ - 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/EventProcessor.idl b/offapi/com/sun/star/script/vba/EventProcessor.idl deleted file mode 100755 index 78b2d9c23fdb..000000000000 --- a/offapi/com/sun/star/script/vba/EventProcessor.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 - * - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_EventProcessor_idl__ -#define __com_sun_star_script_vba_EventProcessor_idl__ - -#include - -module com { module sun { module star { module frame { interface XModel; }; }; }; }; - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -//============================================================================= - -service EventProcessor : XEventProcessor -{ -}; - -//============================================================================= - -}; }; }; }; }; - -//============================================================================= - -#endif diff --git a/offapi/com/sun/star/script/vba/SpreadsheetEventProcessor.idl b/offapi/com/sun/star/script/vba/SpreadsheetEventProcessor.idl deleted file mode 100755 index 680a0e1069aa..000000000000 --- a/offapi/com/sun/star/script/vba/SpreadsheetEventProcessor.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 - * - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_SpreadsheetEventProcessor_idl__ -#define __com_sun_star_script_vba_SpreadsheetEventProcessor_idl__ - -#include - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -//============================================================================= - -service SpreadsheetEventProcessor -{ - service EventProcessor; -}; - -//============================================================================= - -}; }; }; }; }; - -//============================================================================= - -#endif diff --git a/offapi/com/sun/star/script/vba/TextEventProcessor.idl b/offapi/com/sun/star/script/vba/TextEventProcessor.idl deleted file mode 100755 index ae2d36a223c6..000000000000 --- a/offapi/com/sun/star/script/vba/TextEventProcessor.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 - * - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_TextEventProcessor_idl__ -#define __com_sun_star_script_vba_TextEventProcessor_idl__ - -#include - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -//============================================================================= - -service TextEventProcessor -{ - service EventProcessor; -}; - -//============================================================================= - -}; }; }; }; }; - -//============================================================================= - -#endif diff --git a/offapi/com/sun/star/script/vba/VBAEventId.idl b/offapi/com/sun/star/script/vba/VBAEventId.idl new file mode 100755 index 000000000000..fda83a18d495 --- /dev/null +++ b/offapi/com/sun/star/script/vba/VBAEventId.idl @@ -0,0 +1,140 @@ +/************************************************************************* + * + * 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 + * + * 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. + +

If one of these events is fired, a specific VBA macro in a specific + document code module will be executed.

+ +

Each event expects some specific arguments to be passed to + XVBAEventProcessor::processVbaEvent.

+ + @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. No arguments. */ + const long WORKBOOK_WINDOWACTIVATE = 2009; + /** Document window has been deactivated. No arguments. */ + const long WORKBOOK_WINDOWDEACTIVATE = 2010; + /** Document window has been resized. No arguments. */ + 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 new file mode 100755 index 000000000000..d993b37ae250 --- /dev/null +++ b/offapi/com/sun/star/script/vba/VBAEventProcessor.idl @@ -0,0 +1,49 @@ +/************************************************************************* + * + * 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 + * + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_script_vba_VBAEventProcessor_idl__ +#define __com_sun_star_script_vba_VBAEventProcessor_idl__ + +#include + +//============================================================================= + +module com { module sun { module star { module script { module vba { + +//============================================================================= + +service VBAEventProcessor : XVBAEventProcessor +{ +}; + +//============================================================================= + +}; }; }; }; }; + +//============================================================================= + +#endif diff --git a/offapi/com/sun/star/script/vba/VBASpreadsheetEventProcessor.idl b/offapi/com/sun/star/script/vba/VBASpreadsheetEventProcessor.idl new file mode 100755 index 000000000000..ce202da4f54c --- /dev/null +++ b/offapi/com/sun/star/script/vba/VBASpreadsheetEventProcessor.idl @@ -0,0 +1,50 @@ +/************************************************************************* + * + * 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 + * + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_script_vba_VBASpreadsheetEventProcessor_idl__ +#define __com_sun_star_script_vba_VBASpreadsheetEventProcessor_idl__ + +#include + +//============================================================================= + +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 new file mode 100755 index 000000000000..fd3c7f895d8d --- /dev/null +++ b/offapi/com/sun/star/script/vba/VBATextEventProcessor.idl @@ -0,0 +1,50 @@ +/************************************************************************* + * + * 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 + * + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_script_vba_VBATextEventProcessor_idl__ +#define __com_sun_star_script_vba_VBATextEventProcessor_idl__ + +#include + +//============================================================================= + +module com { module sun { module star { module script { module vba { + +//============================================================================= + +service VBATextEventProcessor +{ + service VBAEventProcessor; +}; + +//============================================================================= + +}; }; }; }; }; + +//============================================================================= + +#endif diff --git a/offapi/com/sun/star/script/vba/XEventProcessor.idl b/offapi/com/sun/star/script/vba/XEventProcessor.idl deleted file mode 100755 index d856aeaa0a99..000000000000 --- a/offapi/com/sun/star/script/vba/XEventProcessor.idl +++ /dev/null @@ -1,113 +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 - * - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef __com_sun_star_script_vba_XEventProcessor_idl__ -#define __com_sun_star_script_vba_XEventProcessor_idl__ - -#include -#include -#include - -//============================================================================= - -module com { module sun { module star { module script { module vba { - -//============================================================================= - -/** Executes VBA event handlers. - */ -interface XEventProcessor -{ - //------------------------------------------------------------------------- - - /** Specifies whether VBA event handling is currently disabled. - */ - [attribute] boolean IgnoreEvents; - - //------------------------------------------------------------------------- - - /** Returns whether a VBA event handler exists. - - @param nEventId - The identifier of the event. Must be a constant from - EventIdentifier. - - @param aArgs - Additional arguments needed to identify some event handlers, e.g. a - sheet index for spreadsheet events. - - @return - , if the VBA event handler exists. - - @throws IllegalArgumentException - 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 - EventIdentifier. - - @param aArgs - The input arguments needed to create the argument list of the VBA - event handler. - - @throws IllegalArgumentException - 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 ScriptFrameworkErrorException - if the VBA event handler could not be invoked. Reasons may be, that - handling of VBA events is not enabled, that the VBA event handler - macro has not been found, or that the execution of the macro has - been aborted with an error. - - @throws VetoException - if the VBA event handler has indicated to veto the event. - **/ - void processVbaEvent( [in] long nEventId, [in] sequence< any > aArgs ) - raises (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::script::provider::ScriptFrameworkErrorException, - ::com::sun::star::util::VetoException); - - //------------------------------------------------------------------------- -}; - -//============================================================================= - -}; }; }; }; }; - -//============================================================================= - -#endif diff --git a/offapi/com/sun/star/script/vba/XVBAEventProcessor.idl b/offapi/com/sun/star/script/vba/XVBAEventProcessor.idl new file mode 100755 index 000000000000..7853d71d65ac --- /dev/null +++ b/offapi/com/sun/star/script/vba/XVBAEventProcessor.idl @@ -0,0 +1,111 @@ +/************************************************************************* + * + * 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 + * + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +#ifndef __com_sun_star_script_vba_XVBAEventProcessor_idl__ +#define __com_sun_star_script_vba_XVBAEventProcessor_idl__ + +#include +#include +#include + +//============================================================================= + +module com { module sun { module star { module script { module vba { + +//============================================================================= + +/** Executes VBA event handlers. + */ +interface XVBAEventProcessor +{ + //------------------------------------------------------------------------- + + /** Specifies whether VBA event handling is currently disabled. + */ + [attribute] boolean IgnoreEvents; + + //------------------------------------------------------------------------- + + /** Returns whether a VBA event handler exists. + + @param nEventId + The identifier of the event. Must be a constant from VBAEventId. + + @param aArgs + Additional arguments needed to identify some event handlers, e.g. a + sheet index for spreadsheet events. + + @return + , if the VBA event handler exists. + + @throws IllegalArgumentException + 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 VBAEventId. + + @param aArgs + The input arguments needed to create the argument list of the VBA + event handler. + + @throws IllegalArgumentException + 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 ScriptFrameworkErrorException + if the VBA event handler could not be invoked. Reasons may be, that + handling of VBA events is not enabled, that the VBA event handler + macro has not been found, or that the execution of the macro has + been aborted with an error. + + @throws VetoException + if the VBA event handler has indicated to veto the event. + **/ + void processVbaEvent( [in] long nEventId, [in] sequence< any > aArgs ) + raises (::com::sun::star::lang::IllegalArgumentException, + ::com::sun::star::script::provider::ScriptFrameworkErrorException, + ::com::sun::star::util::VetoException); + + //------------------------------------------------------------------------- +}; + +//============================================================================= + +}; }; }; }; }; + +//============================================================================= + +#endif diff --git a/offapi/com/sun/star/script/vba/makefile.mk b/offapi/com/sun/star/script/vba/makefile.mk index c9526d86b070..857df4f9bf63 100755 --- a/offapi/com/sun/star/script/vba/makefile.mk +++ b/offapi/com/sun/star/script/vba/makefile.mk @@ -38,12 +38,12 @@ PACKAGE=com$/sun$/star$/script$/vba # ------------------------------------------------------------------------ IDLFILES=\ - EventIdentifier.idl \ - EventProcessor.idl \ - SpreadsheetEventProcessor.idl \ - TextEventProcessor.idl \ + VBAEventId.idl \ + VBAEventProcessor.idl \ + VBASpreadsheetEventProcessor.idl \ + VBATextEventProcessor.idl \ XCoreEventProcessor.idl \ - XEventProcessor.idl + XVBAEventProcessor.idl # ------------------------------------------------------------------ -- cgit