1*d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d1766043SAndrew Rist * distributed with this work for additional information
6*d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9*d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10*d1766043SAndrew Rist *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*d1766043SAndrew Rist *
13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d1766043SAndrew Rist * software distributed under the License is distributed on an
15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17*d1766043SAndrew Rist * specific language governing permissions and limitations
18*d1766043SAndrew Rist * under the License.
19*d1766043SAndrew Rist *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22*d1766043SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef __com_sun_star_xml_dom_events_EventType_idl__
25cdf0e10cSrcweir#define __com_sun_star_xml_dom_events_EventType_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweirmodule com { module sun { module star { module xml { module dom { module events {
28cdf0e10cSrcweir
29cdf0e10cSrcweirenum EventType
30cdf0e10cSrcweir{
31cdf0e10cSrcweir    DOMFocusIn,
32cdf0e10cSrcweir    /*
33cdf0e10cSrcweir    The DOMFocusIn event occurs when an EventTarget receives focus, for instance via a pointing device being moved onto an element or by tabbing navigation to the element. Unlike the HTML event focus, DOMFocusIn can be applied to any focusable EventTarget, not just FORM controls.
34cdf0e10cSrcweir    * Bubbles: Yes
35cdf0e10cSrcweir    * Cancelable: No
36cdf0e10cSrcweir    * Context Info: None
37cdf0e10cSrcweir    */
38cdf0e10cSrcweir
39cdf0e10cSrcweir    DOMFocusOut,
40cdf0e10cSrcweir    /*
41cdf0e10cSrcweir    The DOMFocusOut event occurs when a EventTarget loses focus, for instance via a pointing device being moved out of an element or by tabbing navigation out of the element. Unlike the HTML event blur, DOMFocusOut can be applied to any focusable EventTarget, not just FORM controls.
42cdf0e10cSrcweir    * Bubbles: Yes
43cdf0e10cSrcweir    * Cancelable: No
44cdf0e10cSrcweir    * Context Info: None
45cdf0e10cSrcweir    */
46cdf0e10cSrcweir
47cdf0e10cSrcweir    DOMActivate,
48cdf0e10cSrcweir    /*
49cdf0e10cSrcweir    The activate event occurs when an element is activated, for instance, thru a mouse click or a keypress. A numerical argument is provided to give an indication of the type of activation that occurs: 1 for a simple activation (e.g. a simple click or Enter), 2 for hyperactivation (for instance a double click or Shift Enter).
50cdf0e10cSrcweir    * Bubbles: Yes
51cdf0e10cSrcweir    * Cancelable: Yes
52cdf0e10cSrcweir    * Context Info: detail (the numerical value)
53cdf0e10cSrcweir    */
54cdf0e10cSrcweir
55cdf0e10cSrcweir    click,
56cdf0e10cSrcweir    /*
57cdf0e10cSrcweir    The click event occurs when the pointing device button is clicked over an element.
58cdf0e10cSrcweir    A click is defined as a mousedown and mouseup over the same screen location.
59cdf0e10cSrcweir    The sequence of these events is:
60cdf0e10cSrcweir
61cdf0e10cSrcweir    mousedown
62cdf0e10cSrcweir    mouseup
63cdf0e10cSrcweir    click
64cdf0e10cSrcweir
65cdf0e10cSrcweir    If multiple clicks occur at the same screen location, the sequence repeats with the detail attribute incrementing with each repetition. This event is valid for most elements.
66cdf0e10cSrcweir
67cdf0e10cSrcweir    * Bubbles: Yes
68cdf0e10cSrcweir    * Cancelable: Yes
69cdf0e10cSrcweir    * Context Info: screenX, screenY, clientX, clientY, altKey, ctrlKey, shiftKey, metaKey, button, detail
70cdf0e10cSrcweir    */
71cdf0e10cSrcweir
72cdf0e10cSrcweir    mousedown,
73cdf0e10cSrcweir    /*
74cdf0e10cSrcweir    The mousedown event occurs when the pointing device button is pressed over an element. This event is valid for most elements.
75cdf0e10cSrcweir    * Bubbles: Yes
76cdf0e10cSrcweir    * Cancelable: Yes
77cdf0e10cSrcweir    * Context Info: screenX, screenY, clientX, clientY, altKey, ctrlKey, shiftKey, metaKey, button, detail
78cdf0e10cSrcweir    */
79cdf0e10cSrcweir
80cdf0e10cSrcweir    mouseup,
81cdf0e10cSrcweir    /*
82cdf0e10cSrcweir    The mouseup event occurs when the pointing device button is released over an element. This event is valid for most elements.
83cdf0e10cSrcweir    * Bubbles: Yes
84cdf0e10cSrcweir    * Cancelable: Yes
85cdf0e10cSrcweir    * Context Info: screenX, screenY, clientX, clientY, altKey, ctrlKey, shiftKey, metaKey, button, detail
86cdf0e10cSrcweir    */
87cdf0e10cSrcweir
88cdf0e10cSrcweir    mouseover,
89cdf0e10cSrcweir    /*
90cdf0e10cSrcweir    The mouseover event occurs when the pointing device is moved onto an element. This event is valid for most elements.
91cdf0e10cSrcweir    * Bubbles: Yes
92cdf0e10cSrcweir    * Cancelable: Yes
93cdf0e10cSrcweir    * Context Info: screenX, screenY, clientX, clientY, altKey, ctrlKey, shiftKey, metaKey, relatedTarget indicates the EventTarget the pointing device is exiting.
94cdf0e10cSrcweir    */
95cdf0e10cSrcweir
96cdf0e10cSrcweir    mousemove,
97cdf0e10cSrcweir    /*
98cdf0e10cSrcweir    The mousemove event occurs when the pointing device is moved while it is over an element. This event is valid for most elements.
99cdf0e10cSrcweir    * Bubbles: Yes
100cdf0e10cSrcweir    * Cancelable: No
101cdf0e10cSrcweir    * Context Info: screenX, screenY, clientX, clientY, altKey, ctrlKey, shiftKey, metaKey
102cdf0e10cSrcweir    */
103cdf0e10cSrcweir
104cdf0e10cSrcweir    mouseout,
105cdf0e10cSrcweir    /*
106cdf0e10cSrcweir    The mouseout event occurs when the pointing device is moved away from an element. This event is valid for most elements..
107cdf0e10cSrcweir    * Bubbles: Yes
108cdf0e10cSrcweir    * Cancelable: Yes
109cdf0e10cSrcweir    * Context Info: screenX, screenY, clientX, clientY, altKey, ctrlKey, shiftKey, metaKey, relatedTarget indicates the EventTarget the pointing device is entering.
110cdf0e10cSrcweir    */
111cdf0e10cSrcweir
112cdf0e10cSrcweir    DOMSubtreeModified,
113cdf0e10cSrcweir    /*
114cdf0e10cSrcweir    This is a general event for notification of all changes to the document. It can be used instead of the more specific events listed below. It may be fired after a single modification to the document or, at the implementation's discretion, after multiple changes have occurred. The latter use should generally be used to accomodate multiple changes which occur either simultaneously or in rapid succession. The target of this event is the lowest common parent of the changes which have taken place. This event is dispatched after any other events caused by the mutation have fired.
115cdf0e10cSrcweir    * Bubbles: Yes
116cdf0e10cSrcweir    * Cancelable: No
117cdf0e10cSrcweir    * Context Info: None
118cdf0e10cSrcweir    */
119cdf0e10cSrcweir
120cdf0e10cSrcweir    DOMNodeInserted,
121cdf0e10cSrcweir    /*
122cdf0e10cSrcweir    Fired when a node has been added as a child of another node. This event is dispatched after the insertion has taken place. The target of this event is the node being inserted.
123cdf0e10cSrcweir    * Bubbles: Yes
124cdf0e10cSrcweir    * Cancelable: No
125cdf0e10cSrcweir    * Context Info: relatedNode holds the parent node
126cdf0e10cSrcweir    */
127cdf0e10cSrcweir
128cdf0e10cSrcweir    DOMNodeRemoved,
129cdf0e10cSrcweir    /*
130cdf0e10cSrcweir    Fired when a node is being removed from its parent node. This event is dispatched before the node is removed from the tree. The target of this event is the node being removed.
131cdf0e10cSrcweir    * Bubbles: Yes
132cdf0e10cSrcweir    * Cancelable: No
133cdf0e10cSrcweir    * Context Info: relatedNode holds the parent node
134cdf0e10cSrcweir    */
135cdf0e10cSrcweir
136cdf0e10cSrcweir    DOMNodeRemovedFromDocument,
137cdf0e10cSrcweir    /*
138cdf0e10cSrcweir    Fired when a node is being removed from a document, either through direct removal of the Node or removal of a subtree in which it is contained. This event is dispatched before the removal takes place. The target of this event is the Node being removed. If the Node is being directly removed the DOMNodeRemoved event will fire before the DOMNodeRemovedFromDocument event.
139cdf0e10cSrcweir    * Bubbles: No
140cdf0e10cSrcweir    * Cancelable: No
141cdf0e10cSrcweir    * Context Info: None
142cdf0e10cSrcweir    */
143cdf0e10cSrcweir
144cdf0e10cSrcweir    DOMNodeInsertedIntoDocument,
145cdf0e10cSrcweir    /*
146cdf0e10cSrcweir    Fired when a node is being inserted into a document, either through direct insertion of the Node or insertion of a subtree in which it is contained. This event is dispatched after the insertion has taken place. The target of this event is the node being inserted. If the Node is being directly inserted the DOMNodeInserted event will fire before the DOMNodeInsertedIntoDocument event.
147cdf0e10cSrcweir    * Bubbles: No
148cdf0e10cSrcweir    * Cancelable: No
149cdf0e10cSrcweir    * Context Info: None
150cdf0e10cSrcweir    */
151cdf0e10cSrcweir
152cdf0e10cSrcweir    DOMAttrModified,
153cdf0e10cSrcweir    /*
154cdf0e10cSrcweir    Fired after an Attr has been modified on a node. The target of this event is the Node whose Attr changed. The value of attrChange indicates whether the Attr was modified, added, or removed. The value of relatedNode indicates the Attr node whose value has been affected. It is expected that string based replacement of an Attr value will be viewed as a modification of the Attr since its identity does not change. Subsequently replacement of the Attr node with a different Attr node is viewed as the removal of the first Attr node and the addition of the second.
155cdf0e10cSrcweir    * Bubbles: Yes
156cdf0e10cSrcweir    * Cancelable: No
157cdf0e10cSrcweir    * Context Info: attrName, attrChange, prevValue, newValue, relatedNode
158cdf0e10cSrcweir    */
159cdf0e10cSrcweir
160cdf0e10cSrcweir    DOMCharacterDataModified
161cdf0e10cSrcweir    /*
162cdf0e10cSrcweir    Fired after CharacterData within a node has been modified but the node itself has not been inserted or deleted. This event is also triggered by modifications to PI elements. The target of this event is the CharacterData node.
163cdf0e10cSrcweir    * Bubbles: Yes
164cdf0e10cSrcweir    * Cancelable: No
165cdf0e10cSrcweir    * Context Info: prevValue, newValue
166cdf0e10cSrcweir    */
167cdf0e10cSrcweir};
168cdf0e10cSrcweir}; }; }; }; }; };
169cdf0e10cSrcweir
170cdf0e10cSrcweir#endif
171