LibreOffice LibreOffice 25.2 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
21module com { module sun { module star { module script { module vba {
22
23
34constants VBAEventId
35{
36
38 const long NO_EVENT = -1;
39
40 // Global events (identifiers from 1 to 999)
41
43 const long AUTO_NEW = 1;
45 const long AUTO_OPEN = 2;
47 const long AUTO_CLOSE = 3;
49 const long AUTO_EXEC = 4;
51 const long AUTO_EXIT = 5;
52
53 // MS Word (identifiers from 1001 to 1999)
54
56 const long DOCUMENT_NEW = 1001;
58 const long DOCUMENT_OPEN = 1002;
60 const long DOCUMENT_CLOSE = 1003;
61
62 // MS Excel (identifiers from 2001 to 2999)
63
64 // document events (2001-2099)
65
67 const long WORKBOOK_ACTIVATE = 2001;
69 const long WORKBOOK_DEACTIVATE = 2002;
71 const long WORKBOOK_OPEN = 2003;
73 const long WORKBOOK_BEFORECLOSE = 2004;
75 const long WORKBOOK_BEFOREPRINT = 2005;
77 const long WORKBOOK_BEFORESAVE = 2006;
79 const long WORKBOOK_AFTERSAVE = 2007;
81 const long WORKBOOK_NEWSHEET = 2008;
83 const long WORKBOOK_WINDOWACTIVATE = 2009;
85 const long WORKBOOK_WINDOWDEACTIVATE = 2010;
87 const long WORKBOOK_WINDOWRESIZE = 2011;
88
89 // sheet events (2101-2199)
90
92 const long WORKSHEET_ACTIVATE = 2101;
94 const long WORKSHEET_DEACTIVATE = 2102;
96 const long WORKSHEET_BEFOREDOUBLECLICK = 2103;
98 const long WORKSHEET_BEFORERIGHTCLICK = 2104;
100 const long WORKSHEET_CALCULATE = 2105;
102 const long WORKSHEET_CHANGE = 2106;
104 const long WORKSHEET_SELECTIONCHANGE = 2107;
106 const long WORKSHEET_FOLLOWHYPERLINK = 2108;
107
108
111 const long USERDEFINED_START = 1000000;
112};
113
114
115}; }; }; }; };
116
117
118/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
com::sun::star::script::vba::VBAEventId::AUTO_NEW
const long AUTO_NEW
New document opened from template.
Definition: VBAEventId.idl:43
com::sun::star::script::vba::VBAEventId::WORKSHEET_CHANGE
const long WORKSHEET_CHANGE
Cells in sheet have been changed.
Definition: VBAEventId.idl:102
com::sun::star::script::vba::VBAEventId::DOCUMENT_OPEN
const long DOCUMENT_OPEN
Text document opened (loaded).
Definition: VBAEventId.idl:58
com::sun::star::script::vba::VBAEventId::WORKBOOK_BEFORESAVE
const long WORKBOOK_BEFORESAVE
Document about to be saved.
Definition: VBAEventId.idl:77
com::sun::star::script::vba::VBAEventId::WORKBOOK_WINDOWDEACTIVATE
const long WORKBOOK_WINDOWDEACTIVATE
Document window has been deactivated.
Definition: VBAEventId.idl:85
com::sun::star::script::vba::VBAEventId::USERDEFINED_START
const long USERDEFINED_START
Implementations are allowed to use identifiers above this value for any internal purpose.
Definition: VBAEventId.idl:111
com::sun::star::script::vba::VBAEventId::WORKSHEET_BEFOREDOUBLECLICK
const long WORKSHEET_BEFOREDOUBLECLICK
Double click in the sheet.
Definition: VBAEventId.idl:96
com::sun::star::script::vba::VBAEventId::NO_EVENT
const long NO_EVENT
An identifier not corresponding to any VBA document event.
Definition: VBAEventId.idl:38
com::sun::star::script::vba::VBAEventId::WORKBOOK_NEWSHEET
const long WORKBOOK_NEWSHEET
New sheet inserted.
Definition: VBAEventId.idl:81
com::sun::star::script::vba::VBAEventId::WORKSHEET_ACTIVATE
const long WORKSHEET_ACTIVATE
Worksheet has been activated (made visible).
Definition: VBAEventId.idl:92
com::sun::star::script::vba::VBAEventId::AUTO_CLOSE
const long AUTO_CLOSE
Document about to be closed.
Definition: VBAEventId.idl:47
com::sun::star::script::vba::VBAEventId::DOCUMENT_CLOSE
const long DOCUMENT_CLOSE
Document about to be closed.
Definition: VBAEventId.idl:60
com::sun::star::script::vba::VBAEventId::WORKBOOK_BEFOREPRINT
const long WORKBOOK_BEFOREPRINT
Document about to be printed.
Definition: VBAEventId.idl:75
com::sun::star::script::vba::VBAEventId::AUTO_OPEN
const long AUTO_OPEN
Document opened (loaded).
Definition: VBAEventId.idl:45
com::sun::star::script::vba::VBAEventId::DOCUMENT_NEW
const long DOCUMENT_NEW
New text document opened from template.
Definition: VBAEventId.idl:56
com::sun::star::script::vba::VBAEventId::WORKBOOK_BEFORECLOSE
const long WORKBOOK_BEFORECLOSE
Document about to be closed.
Definition: VBAEventId.idl:73
com::sun::star::script::vba::VBAEventId::WORKBOOK_WINDOWACTIVATE
const long WORKBOOK_WINDOWACTIVATE
Document window has been activated.
Definition: VBAEventId.idl:83
com::sun::star::script::vba::VBAEventId::WORKSHEET_CALCULATE
const long WORKSHEET_CALCULATE
Cells in sheet have been recalculated.
Definition: VBAEventId.idl:100
com::sun::star::script::vba::VBAEventId::WORKBOOK_DEACTIVATE
const long WORKBOOK_DEACTIVATE
Document deactivated.
Definition: VBAEventId.idl:69
com::sun::star::script::vba::VBAEventId::WORKSHEET_FOLLOWHYPERLINK
const long WORKSHEET_FOLLOWHYPERLINK
Hyperlink has been clicked.
Definition: VBAEventId.idl:106
com::sun::star::script::vba::VBAEventId::WORKBOOK_ACTIVATE
const long WORKBOOK_ACTIVATE
Document activated.
Definition: VBAEventId.idl:67
com::sun::star::script::vba::VBAEventId::WORKSHEET_DEACTIVATE
const long WORKSHEET_DEACTIVATE
Worksheet has been deactivated (made not visible).
Definition: VBAEventId.idl:94
com::sun::star::script::vba::VBAEventId::WORKBOOK_WINDOWRESIZE
const long WORKBOOK_WINDOWRESIZE
Document window has been resized.
Definition: VBAEventId.idl:87
com::sun::star::script::vba::VBAEventId::AUTO_EXEC
const long AUTO_EXEC
Application start.
Definition: VBAEventId.idl:49
com::sun::star::script::vba::VBAEventId::WORKSHEET_SELECTIONCHANGE
const long WORKSHEET_SELECTIONCHANGE
Selection in sheet has been changed.
Definition: VBAEventId.idl:104
com::sun::star::script::vba::VBAEventId::AUTO_EXIT
const long AUTO_EXIT
Application exit.
Definition: VBAEventId.idl:51
com::sun::star::script::vba::VBAEventId::WORKSHEET_BEFORERIGHTCLICK
const long WORKSHEET_BEFORERIGHTCLICK
Right click in the sheet.
Definition: VBAEventId.idl:98
com::sun::star::script::vba::VBAEventId::WORKBOOK_AFTERSAVE
const long WORKBOOK_AFTERSAVE
Document has been saved.
Definition: VBAEventId.idl:79
com::sun::star::script::vba::VBAEventId::WORKBOOK_OPEN
const long WORKBOOK_OPEN
Document opened (loaded).
Definition: VBAEventId.idl:71
com
Definition: Ambiguous.idl:20