1*ebfcd9afSAndrew Rist/************************************************************** 2*ebfcd9afSAndrew Rist * 3*ebfcd9afSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*ebfcd9afSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*ebfcd9afSAndrew Rist * distributed with this work for additional information 6*ebfcd9afSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*ebfcd9afSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*ebfcd9afSAndrew Rist * "License"); you may not use this file except in compliance 9*ebfcd9afSAndrew Rist * with the License. You may obtain a copy of the License at 10*ebfcd9afSAndrew Rist * 11*ebfcd9afSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*ebfcd9afSAndrew Rist * 13*ebfcd9afSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*ebfcd9afSAndrew Rist * software distributed under the License is distributed on an 15*ebfcd9afSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*ebfcd9afSAndrew Rist * KIND, either express or implied. See the License for the 17*ebfcd9afSAndrew Rist * specific language governing permissions and limitations 18*ebfcd9afSAndrew Rist * under the License. 19*ebfcd9afSAndrew Rist * 20*ebfcd9afSAndrew Rist *************************************************************/ 21*ebfcd9afSAndrew Rist 22*ebfcd9afSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir#ifndef __com_sun_star_script_vba_VBAScriptEventId_idl__ 25cdf0e10cSrcweir#define __com_sun_star_script_vba_VBAScriptEventId_idl__ 26cdf0e10cSrcweir 27cdf0e10cSrcweir//============================================================================= 28cdf0e10cSrcweir 29cdf0e10cSrcweirmodule com { module sun { module star { module script { module vba { 30cdf0e10cSrcweir 31cdf0e10cSrcweir//============================================================================= 32cdf0e10cSrcweir 33cdf0e10cSrcweir/** Identifies a VBA script event fired via <member>XVBACompatibility:: 34cdf0e10cSrcweir broadcastVBAScriptEvent</member>, and received by <member> 35cdf0e10cSrcweir XVBAScriptListener::notifyVBAScriptEvent</member>. 36cdf0e10cSrcweir 37cdf0e10cSrcweir @see VBAScriptEvent 38cdf0e10cSrcweir @see XVBACompatibility 39cdf0e10cSrcweir @see XVBAScriptListener 40cdf0e10cSrcweir */ 41cdf0e10cSrcweirconstants VBAScriptEventId 42cdf0e10cSrcweir{ 43cdf0e10cSrcweir //------------------------------------------------------------------------- 44cdf0e10cSrcweir /** This event is fired when a VBA script in the current document has been 45cdf0e10cSrcweir started. 46cdf0e10cSrcweir 47cdf0e10cSrcweir <p>Several scripts may run simultaneously, e.g. when a running script 48cdf0e10cSrcweir triggers a document event that starts another script.</p> 49cdf0e10cSrcweir 50cdf0e10cSrcweir <p>The number of running scripts can be obtained via <member> 51cdf0e10cSrcweir XVBACompatibility::RunningVBAScripts</member>. The number returned 52cdf0e10cSrcweir there will already contain the new script notified with this event.</p> 53cdf0e10cSrcweir 54cdf0e10cSrcweir <p>The member <member>VBAScriptEvent::ModuleName</member> of the event 55cdf0e10cSrcweir object will contain the name of the code module that contains the 56cdf0e10cSrcweir started script.</p> 57cdf0e10cSrcweir */ 58cdf0e10cSrcweir const long SCRIPT_STARTED = 0; 59cdf0e10cSrcweir 60cdf0e10cSrcweir //------------------------------------------------------------------------- 61cdf0e10cSrcweir /** This event is fired when a VBA script in the current document stops 62cdf0e10cSrcweir running. 63cdf0e10cSrcweir 64cdf0e10cSrcweir <p>Several scripts may run simultaneously, e.g. when a running script 65cdf0e10cSrcweir triggers a document event that starts another script.</p> 66cdf0e10cSrcweir 67cdf0e10cSrcweir <p>The number of scripts still running can be obtained via <member> 68cdf0e10cSrcweir XVBACompatibility::RunningVBAScripts</member>. The number returned 69cdf0e10cSrcweir there will not contain the stopped script notified with this event 70cdf0e10cSrcweir anymore.</p> 71cdf0e10cSrcweir 72cdf0e10cSrcweir <p>The member <member>VBAScriptEvent::ModuleName</member> of the event 73cdf0e10cSrcweir object will contain the name of the code module that contains the 74cdf0e10cSrcweir script that has been stopped.</p> 75cdf0e10cSrcweir */ 76cdf0e10cSrcweir const long SCRIPT_STOPPED = 1; 77cdf0e10cSrcweir 78cdf0e10cSrcweir //------------------------------------------------------------------------- 79cdf0e10cSrcweir /** This event is fired when a VBA script in the current document tries to 80cdf0e10cSrcweir instanciate a userform. 81cdf0e10cSrcweir 82cdf0e10cSrcweir <p>The member <member>VBAScriptEvent::ModuleName</member> of the event 83cdf0e10cSrcweir object will contain the name of the userform module.</p> 84cdf0e10cSrcweir */ 85cdf0e10cSrcweir const long INITIALIZE_USERFORM = 2; 86cdf0e10cSrcweir 87cdf0e10cSrcweir //------------------------------------------------------------------------- 88cdf0e10cSrcweir}; 89cdf0e10cSrcweir 90cdf0e10cSrcweir//============================================================================= 91cdf0e10cSrcweir 92cdf0e10cSrcweir}; }; }; }; }; 93cdf0e10cSrcweir 94cdf0e10cSrcweir//============================================================================= 95cdf0e10cSrcweir 96cdf0e10cSrcweir#endif 97