1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 #ifndef __UNOMSAAEVENT_HXX
23 #define __UNOMSAAEVENT_HXX
24 
25 //STATE_CHANGED with get FOCUSED -> EVENT_OBJECT_FOCUS
26 const short UM_EVENT_STATE_FOCUSED = 0 ;
27 
28 //STATE_CHANGED --> EVENT_OBJECT_STATECHANGE
29 const short UM_EVENT_STATE_CHECKED  = 1 ;
30 const short UM_EVENT_STATE_ARMED    = 2 ;
31 const short UM_EVENT_STATE_PRESSED  = 3 ;
32 const short UM_EVENT_STATE_SELECTED = 4 ;
33 const short UM_EVENT_STATE_SHOWING  = 5 ;
34 
35 //if acc role is MENU_BAR, STATE_CHANGED with get FOCUSED -> EVENT_SYSTEM_MENUSTART
36 const short UM_EVENT_MENU_START = 6 ;
37 
38 //if acc role is MENU_BAR, STATE_CHANGED with lose FOCUSED -> EVENT_SYSTEM_MENUEND
39 const short UM_EVENT_MENU_END = 7 ;
40 
41 //if acc role is POPUP_MENU, STATE_CHANGED with get FOCUSED -> EVENT_SYSTEM_MENUPOPUPSTART
42 const short UM_EVENT_MENUPOPUPSTART = 8 ;
43 
44 //if acc role is POPUP_MENU, STATE_CHANGED with lose FOCUSED -> EVENT_SYSTEM_MENUPOPUPEND
45 const short UM_EVENT_MENUPOPUPEND = 9 ;
46 
47 //SELECTION_CHANGED -> EVENT_OBJECT_SELECTION
48 const short UM_EVENT_SELECTION_CHANGED = 10 ;
49 
50 //INVALIDATE_ALL_CHILDREN --> EVENT_OBJECT_SHOW
51 const short UM_EVENT_INVALIDATE_ALL_CHILDREN = 11 ;
52 
53 //VALUE_CHANGED --> EVENT_OBJECT_VALUECHANGE
54 const short UM_EVENT_OBJECT_VALUECHANGE = 12 ;
55 
56 //NAME_CHANGED --> EVENT_OBJECT_NAMECHANGE
57 const short UM_EVENT_OBJECT_NAMECHANGE = 13 ;
58 
59 //DESCRIPTION_CHANGED --> EVENT_OBJECT_DESCRIPTIONCHANGE
60 const short UM_EVENT_OBJECT_DESCRIPTIONCHANGE = 14 ;
61 
62 //ACTION_CHANGED --> EVENT_OBJECT_DEFACTIONCHANGE
63 const short UM_EVENT_OBJECT_DEFACTIONCHANGE = 15 ;
64 
65 //CARET_CHANGED --> EVENT_OBJECT_LOCATIONCHANGED
66 const short UM_EVENT_OBJECT_CARETCHANGE = 16 ;
67 
68 //TEXT_CHANGED --> EVENT_OBJECT_VALUECHANGE
69 const short UM_EVENT_OBJECT_TEXTCHANGE = 17 ;
70 
71 //ACTIVE_DESCENDANT_CHANGED --> EVENT_OBJECT_FOCUS
72 const short UM_EVENT_ACTIVE_DESCENDANT_CHANGED = 18 ;
73 
74 //BOUNDRECT_CHANGED --> EVENT_OBJECT_LOCATIONCHANGE
75 const short UM_EVENT_BOUNDRECT_CHANGED = 19 ;
76 
77 //VISIBLE_DATA_CHANGED --> EVENT_OBJECT_VALUECHANGE
78 const short UM_EVENT_VISIBLE_DATA_CHANGED = 20 ;
79 
80 //to enable SHOW on dialogs, windows, frames
81 const short UM_EVENT_SHOW = 21 ;
82 
83 const short UM_EVENT_STATE_BUSY = 22 ;
84 
85 const short UM_EVENT_TABLE_CAPTION_CHANGED = 24;
86 const short UM_EVENT_TABLE_COLUMN_DESCRIPTION_CHANGED = 25;
87 const short UM_EVENT_TABLE_COLUMN_HEADER_CHANGED = 26;
88 const short UM_EVENT_TABLE_MODEL_CHANGED = 27;
89 const short UM_EVENT_TABLE_ROW_HEADER_CHANGED = 28;
90 const short UM_EVENT_TABLE_SUMMARY_CHANGED = 29;
91 const short UM_EVENT_OBJECT_REORDER = 30;
92 const short UM_EVENT_PAGE_CHANGED =31;
93 const short UM_EVENT_CHILD_ADDED =32;
94 const short UM_EVENT_CHILD_REMOVED =33;
95 const short UM_EVENT_TABLE_ROW_DESCRIPTION_CHANGED =    34;
96 const short UM_EVENT_SELECTION_CHANGED_ADD = 35 ;
97 const short UM_EVENT_SELECTION_CHANGED_REMOVE = 36 ;
98 const short UM_EVENT_SELECTION_CHANGED_WITHIN = 37 ;
99 
100 //support for PAGE_CHANGED event
101 const short UM_EVENT_OBJECT_PAGECHANGED = 38;
102 
103 //to add TEXT_SELECTION_CHANGED event
104 const short UM_EVENT_TEXT_SELECTION_CHANGED = 39;
105 
106 //for section change and column chang event
107 const short UM_EVENT_SECTION_CHANGED = 40;
108 const short UM_EVENT_COLUMN_CHANGED = 41;
109 
110 #endif
111