LibreOffice
LibreOffice 4.3 SDK API Reference
VBAEventId.idl
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef __com_sun_star_script_vba_VBAEventId_idl__
21 #define __com_sun_star_script_vba_VBAEventId_idl__
22 
23 
24 module com { module sun { module star { module script { module vba {
25 
26 
37 constants VBAEventId
38 {
39 
41  const long NO_EVENT = -1;
42 
43  // Global events (identifiers from 1 to 999)
44 
46  const long AUTO_NEW = 1;
48  const long AUTO_OPEN = 2;
50  const long AUTO_CLOSE = 3;
52  const long AUTO_EXEC = 4;
54  const long AUTO_EXIT = 5;
55 
56  // MS Word (identifiers from 1001 to 1999)
57 
59  const long DOCUMENT_NEW = 1001;
61  const long DOCUMENT_OPEN = 1002;
63  const long DOCUMENT_CLOSE = 1003;
64 
65  // MS Excel (identifiers from 2001 to 2999)
66 
67  // document events (2001-2099)
68 
70  const long WORKBOOK_ACTIVATE = 2001;
72  const long WORKBOOK_DEACTIVATE = 2002;
74  const long WORKBOOK_OPEN = 2003;
76  const long WORKBOOK_BEFORECLOSE = 2004;
78  const long WORKBOOK_BEFOREPRINT = 2005;
80  const long WORKBOOK_BEFORESAVE = 2006;
82  const long WORKBOOK_AFTERSAVE = 2007;
84  const long WORKBOOK_NEWSHEET = 2008;
86  const long WORKBOOK_WINDOWACTIVATE = 2009;
88  const long WORKBOOK_WINDOWDEACTIVATE = 2010;
90  const long WORKBOOK_WINDOWRESIZE = 2011;
91 
92  // sheet events (2101-2199)
93 
95  const long WORKSHEET_ACTIVATE = 2101;
97  const long WORKSHEET_DEACTIVATE = 2102;
99  const long WORKSHEET_BEFOREDOUBLECLICK = 2103;
101  const long WORKSHEET_BEFORERIGHTCLICK = 2104;
103  const long WORKSHEET_CALCULATE = 2105;
105  const long WORKSHEET_CHANGE = 2106;
107  const long WORKSHEET_SELECTIONCHANGE = 2107;
109  const long WORKSHEET_FOLLOWHYPERLINK = 2108;
110 
111 
114  const long USERDEFINED_START = 1000000;
115 };
116 
117 
118 }; }; }; }; };
119 
120 
121 #endif
122 
123 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const long WORKBOOK_ACTIVATE
Document activated.
Definition: VBAEventId.idl:70
const long WORKSHEET_CHANGE
Cells in sheet have been changed.
Definition: VBAEventId.idl:105
const long WORKBOOK_BEFORESAVE
Document about to be saved.
Definition: VBAEventId.idl:80
const long WORKSHEET_SELECTIONCHANGE
Selection in sheet has been changed.
Definition: VBAEventId.idl:107
const long WORKSHEET_BEFOREDOUBLECLICK
Double click in the sheet.
Definition: VBAEventId.idl:99
const long WORKBOOK_BEFOREPRINT
Document about to be printed.
Definition: VBAEventId.idl:78
const long AUTO_EXEC
Application start.
Definition: VBAEventId.idl:52
const long DOCUMENT_NEW
New text document opened from template.
Definition: VBAEventId.idl:59
const long NO_EVENT
An identifier not corresponding to any VBA document event.
Definition: VBAEventId.idl:41
const long WORKBOOK_DEACTIVATE
Document deactivated.
Definition: VBAEventId.idl:72
– idl definition –
Definition: Ambiguous.idl:22
const long WORKBOOK_AFTERSAVE
Document has been saved.
Definition: VBAEventId.idl:82
const long DOCUMENT_OPEN
Text document opened (loaded).
Definition: VBAEventId.idl:61
const long AUTO_NEW
New document opened from template.
Definition: VBAEventId.idl:46
const long WORKBOOK_OPEN
Document opened (loaded).
Definition: VBAEventId.idl:74
const long AUTO_CLOSE
Document about to be closed.
Definition: VBAEventId.idl:50
const long WORKSHEET_ACTIVATE
Worksheet has been activated (made visible).
Definition: VBAEventId.idl:95
const long WORKBOOK_NEWSHEET
New sheet inserted.
Definition: VBAEventId.idl:84
const long AUTO_EXIT
Application exit.
Definition: VBAEventId.idl:54
const long WORKBOOK_WINDOWDEACTIVATE
Document window has been deactivated.
Definition: VBAEventId.idl:88
const long WORKSHEET_CALCULATE
Cells in sheet have been recalculated.
Definition: VBAEventId.idl:103
const long USERDEFINED_START
Implementations are allowed to use identifiers above this value for any internal purpose.
Definition: VBAEventId.idl:114
const long AUTO_OPEN
Document opened (loaded).
Definition: VBAEventId.idl:48
const long WORKSHEET_BEFORERIGHTCLICK
Right click in the sheet.
Definition: VBAEventId.idl:101
const long DOCUMENT_CLOSE
Document about to be closed.
Definition: VBAEventId.idl:63
const long WORKBOOK_WINDOWACTIVATE
Document window has been activated.
Definition: VBAEventId.idl:86
const long WORKBOOK_BEFORECLOSE
Document about to be closed.
Definition: VBAEventId.idl:76
const long WORKSHEET_FOLLOWHYPERLINK
Hyperlink has been clicked.
Definition: VBAEventId.idl:109
const long WORKSHEET_DEACTIVATE
Worksheet has been activated (made visible).
Definition: VBAEventId.idl:97
const long WORKBOOK_WINDOWRESIZE
Document window has been resized.
Definition: VBAEventId.idl:90