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 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_xmloff.hxx"
26 #include "EventMap.hxx"
27 #include "xmloff/xmlnmspe.hxx"
28 
29 
30 XMLTransformerEventMapEntry aTransformerEventMap[] =
31 {
32 	{ XML_NAMESPACE_DOM,	"select",	"on-select" },
33 	{ XML_NAMESPACE_OFFICE,	"insert-start",	"on-insert-start" },
34 	{ XML_NAMESPACE_OFFICE,	"insert-done",	"on-insert-done" },
35 	{ XML_NAMESPACE_OFFICE,	"mail-merge",	"on-mail-merge" },
36 	{ XML_NAMESPACE_OFFICE,	"alpha-char-input",	"on-alpha-char-input" },
37 	{ XML_NAMESPACE_OFFICE,	"non-alpha-char-input",	"on-non-alpha-char-input" },
38 	{ XML_NAMESPACE_DOM,	"resize",	"on-resize" },
39 	{ XML_NAMESPACE_OFFICE,	"move",	"on-move" },
40 	{ XML_NAMESPACE_OFFICE, "page-count-change", "on-page-count-change" },
41 	{ XML_NAMESPACE_DOM,	"mouseover",	"on-mouse-over" },
42 	{ XML_NAMESPACE_DOM,	"click",	"on-click" },
43 	{ XML_NAMESPACE_DOM,	"mouseout",	"on-mouse-out" },
44 	{ XML_NAMESPACE_OFFICE,	"load-error",	"on-load-error" },
45 	{ XML_NAMESPACE_OFFICE,	"load-cancel",	"on-load-cancel" },
46 	{ XML_NAMESPACE_OFFICE,	"load-done",	"on-load-done" },
47 	{ XML_NAMESPACE_DOM,	"load",	"on-load" },
48 	{ XML_NAMESPACE_DOM,	"unload",	"on-unload" },
49 	{ XML_NAMESPACE_OFFICE,	"start-app",	"on-start-app" },
50 	{ XML_NAMESPACE_OFFICE,	"close-app",	"on-close-app" },
51 	{ XML_NAMESPACE_OFFICE,	"new",	"on-new" },
52 	{ XML_NAMESPACE_OFFICE,	"save",	"on-save" },
53 	{ XML_NAMESPACE_OFFICE,	"save-as",	"on-save-as" },
54 	{ XML_NAMESPACE_DOM,	"DOMFocusIn",	"on-focus" },
55 	{ XML_NAMESPACE_DOM,	"DOMFocusOut",	"on-unfocus" },
56 	{ XML_NAMESPACE_OFFICE,	"print",	"on-print" },
57 	{ XML_NAMESPACE_DOM,	"error",	"on-error" },
58 	{ XML_NAMESPACE_OFFICE,	"load-finished",	"on-load-finished" },
59 	{ XML_NAMESPACE_OFFICE,	"save-finished",	"on-save-finished" },
60 	{ XML_NAMESPACE_OFFICE,	"modify-changed",	"on-modify-changed" },
61 	{ XML_NAMESPACE_OFFICE,	"prepare-unload",	"on-prepare-unload" },
62 	{ XML_NAMESPACE_OFFICE,	"new-mail",	"on-new-mail" },
63 	{ XML_NAMESPACE_OFFICE,	"toggle-fullscreen",	"on-toggle-fullscreen" },
64 	{ XML_NAMESPACE_OFFICE,	"save-done",	"on-save-done" },
65 	{ XML_NAMESPACE_OFFICE,	"save-as-done",	"on-save-as-done" },
66     { XML_NAMESPACE_OFFICE, "create",    "on-create" },
67     { XML_NAMESPACE_OFFICE, "save-as-failed",    "on-save-as-failed" },
68     { XML_NAMESPACE_OFFICE, "save-failed",    "on-save-failed" },
69     { XML_NAMESPACE_OFFICE, "copy-to-failed",    "on-copy-to-failed" },
70     { XML_NAMESPACE_OFFICE, "title-changed",    "on-title-changed" },
71 
72 	{ XML_NAMESPACE_FORM,	"approveaction",	"on-approveaction" },
73 	{ XML_NAMESPACE_FORM,	"performaction",	"on-performaction" },
74 	{ XML_NAMESPACE_DOM,	"change",	"on-change" },
75 	{ XML_NAMESPACE_FORM,	"textchange",	"on-textchange" },
76 	{ XML_NAMESPACE_FORM,	"itemstatechange",	"on-itemstatechange" },
77 	{ XML_NAMESPACE_DOM,	"keydown",	"on-keydown" },
78 	{ XML_NAMESPACE_DOM,	"keyup",	"on-keyup" },
79 	{ XML_NAMESPACE_FORM,	"mousedrag",	"on-mousedrag" },
80 	{ XML_NAMESPACE_DOM,	"mousemove",	"on-mousemove" },
81 	{ XML_NAMESPACE_DOM,	"mousedown",	"on-mousedown" },
82 	{ XML_NAMESPACE_DOM,	"mouseup",	"on-mouseup" },
83 	{ XML_NAMESPACE_FORM,	"approvereset",	"on-approvereset" },
84 	{ XML_NAMESPACE_DOM,	"reset",	"on-reset" },
85 	{ XML_NAMESPACE_DOM,	"submit",	"on-submit" },
86 	{ XML_NAMESPACE_FORM,	"approveupdate",	"on-approveupdate" },
87 	{ XML_NAMESPACE_FORM,	"update",	"on-update" },
88 	{ XML_NAMESPACE_FORM,	"startreload",	"on-startreload" },
89 	{ XML_NAMESPACE_FORM,	"reload",	"on-reload" },
90 	{ XML_NAMESPACE_FORM,	"startunload",	"on-startunload" },
91 	{ XML_NAMESPACE_FORM,	"confirmdelete",	"on-confirmdelete" },
92 	{ XML_NAMESPACE_FORM,	"approverowchange",	"on-approverowchange" },
93 	{ XML_NAMESPACE_FORM,	"rowchange",	"on-rowchange" },
94 	{ XML_NAMESPACE_FORM,	"approvecursormove",	"on-approvecursormove" },
95 	{ XML_NAMESPACE_FORM,	"cursormove",	"on-cursormove" },
96 	{ XML_NAMESPACE_FORM,	"supplyparameter",	"on-supplyparameter" },
97 	{ XML_NAMESPACE_FORM,	"adjust",	"on-adjust" },
98 	{ 0, 0, 0 }
99 };
100 
101 XMLTransformerEventMapEntry aFormTransformerEventMap[] =
102 {
103 	{ XML_NAMESPACE_DOM,	"mouseover",	"on-mouseover" },
104 	{ XML_NAMESPACE_DOM,	"mouseout",	"on-mouseout" },
105 	{ XML_NAMESPACE_DOM,	"DOMFocusOut",	"on-blur" },
106 	{ 0, 0, 0 }
107 };
108