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 "formevents.hxx"
27 #include "xmloff/xmlnmspe.hxx"
28 #include <xmloff/xmlevent.hxx>
29 
30 //.........................................................................
31 namespace xmloff
32 {
33 //.........................................................................
34 
35 	//=====================================================================
36 	//= event translation table
37 	//=====================================================================
38 	static const XMLEventNameTranslation aEventTranslations[] =
39 	{
40 		{ "XApproveActionListener::approveAction",		XML_NAMESPACE_FORM, "approveaction" }, // "on-approveaction"
41 		{ "XActionListener::actionPerformed",			XML_NAMESPACE_FORM, "performaction" }, // "on-performaction"
42 		{ "XChangeListener::changed",					XML_NAMESPACE_DOM, "change" }, // "on-change"
43 		{ "XTextListener::textChanged",					XML_NAMESPACE_FORM, "textchange" }, // "on-textchange"
44 		{ "XItemListener::itemStateChanged",			XML_NAMESPACE_FORM, "itemstatechange" }, // "on-itemstatechange"
45 		{ "XFocusListener::focusGained",				XML_NAMESPACE_DOM, "DOMFocusIn" }, // "on-focus"
46 		{ "XFocusListener::focusLost",					XML_NAMESPACE_DOM, "DOMFocusOut" }, // "on-blur"
47 		{ "XKeyListener::keyPressed",					XML_NAMESPACE_DOM, "keydown" }, // "on-keydown"
48 		{ "XKeyListener::keyReleased",					XML_NAMESPACE_DOM, "keyup" }, // "on-keyup"
49 		{ "XMouseListener::mouseEntered",				XML_NAMESPACE_DOM, "mouseover" }, // "on-mouseover"
50 		{ "XMouseMotionListener::mouseDragged",			XML_NAMESPACE_FORM, "mousedrag" }, // "on-mousedrag"
51 		{ "XMouseMotionListener::mouseMoved",			XML_NAMESPACE_DOM, "mousemove" }, // "on-mousemove"
52 		{ "XMouseListener::mousePressed",				XML_NAMESPACE_DOM, "mousedown" }, // "on-mousedown"
53 		{ "XMouseListener::mouseReleased",				XML_NAMESPACE_DOM, "mouseup" }, // "on-mouseup"
54 		{ "XMouseListener::mouseExited",				XML_NAMESPACE_DOM, "mouseout" }, // "on-mouseout"
55 		{ "XResetListener::approveReset",				XML_NAMESPACE_FORM, "approvereset" }, // "on-approvereset"
56 		{ "XResetListener::resetted",					XML_NAMESPACE_DOM, "reset" }, // "on-reset"
57 		{ "XSubmitListener::approveSubmit",				XML_NAMESPACE_DOM, "submit" }, // "on-submit"
58 		{ "XUpdateListener::approveUpdate",				XML_NAMESPACE_FORM, "approveupdate" }, // "on-approveupdate"
59 		{ "XUpdateListener::updated",					XML_NAMESPACE_FORM, "update" }, // "on-update"
60 		{ "XLoadListener::loaded",						XML_NAMESPACE_DOM, "load" }, // "on-load"
61 		{ "XLoadListener::reloading",					XML_NAMESPACE_FORM, "startreload" }, // "on-startreload"
62 		{ "XLoadListener::reloaded",					XML_NAMESPACE_FORM, "reload" }, // "on-reload"
63 		{ "XLoadListener::unloading",					XML_NAMESPACE_FORM, "startunload" }, // "on-startunload"
64 		{ "XLoadListener::unloaded",					XML_NAMESPACE_DOM, "unload" }, // "on-unload"
65 		{ "XConfirmDeleteListener::confirmDelete",		XML_NAMESPACE_FORM, "confirmdelete" }, // "on-confirmdelete"
66 		{ "XRowSetApproveListener::approveRowChange",	XML_NAMESPACE_FORM, "approverowchange" }, // "on-approverowchange"
67 		{ "XRowSetListener::rowChanged",				XML_NAMESPACE_FORM, "rowchange" }, // "on-rowchange"
68 		{ "XRowSetApproveListener::approveCursorMove",	XML_NAMESPACE_FORM, "approvecursormove" }, // "on-approvecursormove"
69 		{ "XRowSetListener::cursorMoved",				XML_NAMESPACE_FORM, "cursormove" }, // "on-cursormove"
70 		{ "XDatabaseParameterListener::approveParameter",XML_NAMESPACE_FORM, "supplyparameter" }, // "on-supplyparameter"
71 		{ "XSQLErrorListener::errorOccured",			XML_NAMESPACE_DOM, "error" }, // "on-error"
72 		{ "XAdjustmentListener::adjustmentValueChanged",XML_NAMESPACE_FORM, "adjust" }, // "on-adjust"
73 		{ 0, 0, 0 }
74 	};
75 
76 	const XMLEventNameTranslation* g_pFormsEventTranslation = aEventTranslations;
77 
78 //.........................................................................
79 }	// namespace xmloff
80 //.........................................................................
81 
82