1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 // MARKER(update_precomp.py): autogen include statement, do not remove 29 #include "precompiled_xmloff.hxx" 30 #include "formevents.hxx" 31 #include "xmloff/xmlnmspe.hxx" 32 #include <xmloff/xmlevent.hxx> 33 34 //......................................................................... 35 namespace xmloff 36 { 37 //......................................................................... 38 39 //===================================================================== 40 //= event translation table 41 //===================================================================== 42 static const XMLEventNameTranslation aEventTranslations[] = 43 { 44 { "XApproveActionListener::approveAction", XML_NAMESPACE_FORM, "approveaction" }, // "on-approveaction" 45 { "XActionListener::actionPerformed", XML_NAMESPACE_FORM, "performaction" }, // "on-performaction" 46 { "XChangeListener::changed", XML_NAMESPACE_DOM, "change" }, // "on-change" 47 { "XTextListener::textChanged", XML_NAMESPACE_FORM, "textchange" }, // "on-textchange" 48 { "XItemListener::itemStateChanged", XML_NAMESPACE_FORM, "itemstatechange" }, // "on-itemstatechange" 49 { "XFocusListener::focusGained", XML_NAMESPACE_DOM, "DOMFocusIn" }, // "on-focus" 50 { "XFocusListener::focusLost", XML_NAMESPACE_DOM, "DOMFocusOut" }, // "on-blur" 51 { "XKeyListener::keyPressed", XML_NAMESPACE_DOM, "keydown" }, // "on-keydown" 52 { "XKeyListener::keyReleased", XML_NAMESPACE_DOM, "keyup" }, // "on-keyup" 53 { "XMouseListener::mouseEntered", XML_NAMESPACE_DOM, "mouseover" }, // "on-mouseover" 54 { "XMouseMotionListener::mouseDragged", XML_NAMESPACE_FORM, "mousedrag" }, // "on-mousedrag" 55 { "XMouseMotionListener::mouseMoved", XML_NAMESPACE_DOM, "mousemove" }, // "on-mousemove" 56 { "XMouseListener::mousePressed", XML_NAMESPACE_DOM, "mousedown" }, // "on-mousedown" 57 { "XMouseListener::mouseReleased", XML_NAMESPACE_DOM, "mouseup" }, // "on-mouseup" 58 { "XMouseListener::mouseExited", XML_NAMESPACE_DOM, "mouseout" }, // "on-mouseout" 59 { "XResetListener::approveReset", XML_NAMESPACE_FORM, "approvereset" }, // "on-approvereset" 60 { "XResetListener::resetted", XML_NAMESPACE_DOM, "reset" }, // "on-reset" 61 { "XSubmitListener::approveSubmit", XML_NAMESPACE_DOM, "submit" }, // "on-submit" 62 { "XUpdateListener::approveUpdate", XML_NAMESPACE_FORM, "approveupdate" }, // "on-approveupdate" 63 { "XUpdateListener::updated", XML_NAMESPACE_FORM, "update" }, // "on-update" 64 { "XLoadListener::loaded", XML_NAMESPACE_DOM, "load" }, // "on-load" 65 { "XLoadListener::reloading", XML_NAMESPACE_FORM, "startreload" }, // "on-startreload" 66 { "XLoadListener::reloaded", XML_NAMESPACE_FORM, "reload" }, // "on-reload" 67 { "XLoadListener::unloading", XML_NAMESPACE_FORM, "startunload" }, // "on-startunload" 68 { "XLoadListener::unloaded", XML_NAMESPACE_DOM, "unload" }, // "on-unload" 69 { "XConfirmDeleteListener::confirmDelete", XML_NAMESPACE_FORM, "confirmdelete" }, // "on-confirmdelete" 70 { "XRowSetApproveListener::approveRowChange", XML_NAMESPACE_FORM, "approverowchange" }, // "on-approverowchange" 71 { "XRowSetListener::rowChanged", XML_NAMESPACE_FORM, "rowchange" }, // "on-rowchange" 72 { "XRowSetApproveListener::approveCursorMove", XML_NAMESPACE_FORM, "approvecursormove" }, // "on-approvecursormove" 73 { "XRowSetListener::cursorMoved", XML_NAMESPACE_FORM, "cursormove" }, // "on-cursormove" 74 { "XDatabaseParameterListener::approveParameter",XML_NAMESPACE_FORM, "supplyparameter" }, // "on-supplyparameter" 75 { "XSQLErrorListener::errorOccured", XML_NAMESPACE_DOM, "error" }, // "on-error" 76 { "XAdjustmentListener::adjustmentValueChanged",XML_NAMESPACE_FORM, "adjust" }, // "on-adjust" 77 { 0, 0, 0 } 78 }; 79 80 const XMLEventNameTranslation* g_pFormsEventTranslation = aEventTranslations; 81 82 //......................................................................... 83 } // namespace xmloff 84 //......................................................................... 85 86