LibreOffice Module xmloff (master)  1
formevents.cxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #include "formevents.hxx"
21 #include <xmloff/xmlnamespace.hxx>
22 #include <xmloff/xmlevent.hxx>
23 
24 namespace xmloff
25 {
26 
27  //= event translation table
29  {
30  { "XApproveActionListener::approveAction", XML_NAMESPACE_FORM, "approveaction" }, // "on-approveaction"
31  { "XActionListener::actionPerformed", XML_NAMESPACE_FORM, "performaction" }, // "on-performaction"
32  { "XChangeListener::changed", XML_NAMESPACE_DOM, "change" }, // "on-change"
33  { "XTextListener::textChanged", XML_NAMESPACE_FORM, "textchange" }, // "on-textchange"
34  { "XItemListener::itemStateChanged", XML_NAMESPACE_FORM, "itemstatechange" }, // "on-itemstatechange"
35  { "XFocusListener::focusGained", XML_NAMESPACE_DOM, "DOMFocusIn" }, // "on-focus"
36  { "XFocusListener::focusLost", XML_NAMESPACE_DOM, "DOMFocusOut" }, // "on-blur"
37  { "XKeyListener::keyPressed", XML_NAMESPACE_DOM, "keydown" }, // "on-keydown"
38  { "XKeyListener::keyReleased", XML_NAMESPACE_DOM, "keyup" }, // "on-keyup"
39  { "XMouseListener::mouseEntered", XML_NAMESPACE_DOM, "mouseover" }, // "on-mouseover"
40  { "XMouseMotionListener::mouseDragged", XML_NAMESPACE_FORM, "mousedrag" }, // "on-mousedrag"
41  { "XMouseMotionListener::mouseMoved", XML_NAMESPACE_DOM, "mousemove" }, // "on-mousemove"
42  { "XMouseListener::mousePressed", XML_NAMESPACE_DOM, "mousedown" }, // "on-mousedown"
43  { "XMouseListener::mouseReleased", XML_NAMESPACE_DOM, "mouseup" }, // "on-mouseup"
44  { "XMouseListener::mouseExited", XML_NAMESPACE_DOM, "mouseout" }, // "on-mouseout"
45  { "XResetListener::approveReset", XML_NAMESPACE_FORM, "approvereset" }, // "on-approvereset"
46  { "XResetListener::resetted", XML_NAMESPACE_DOM, "reset" }, // "on-reset"
47  { "XSubmitListener::approveSubmit", XML_NAMESPACE_DOM, "submit" }, // "on-submit"
48  { "XUpdateListener::approveUpdate", XML_NAMESPACE_FORM, "approveupdate" }, // "on-approveupdate"
49  { "XUpdateListener::updated", XML_NAMESPACE_FORM, "update" }, // "on-update"
50  { "XLoadListener::loaded", XML_NAMESPACE_DOM, "load" }, // "on-load"
51  { "XLoadListener::reloading", XML_NAMESPACE_FORM, "startreload" }, // "on-startreload"
52  { "XLoadListener::reloaded", XML_NAMESPACE_FORM, "reload" }, // "on-reload"
53  { "XLoadListener::unloading", XML_NAMESPACE_FORM, "startunload" }, // "on-startunload"
54  { "XLoadListener::unloaded", XML_NAMESPACE_DOM, "unload" }, // "on-unload"
55  { "XConfirmDeleteListener::confirmDelete", XML_NAMESPACE_FORM, "confirmdelete" }, // "on-confirmdelete"
56  { "XRowSetApproveListener::approveRowChange", XML_NAMESPACE_FORM, "approverowchange" }, // "on-approverowchange"
57  { "XRowSetListener::rowChanged", XML_NAMESPACE_FORM, "rowchange" }, // "on-rowchange"
58  { "XRowSetApproveListener::approveCursorMove", XML_NAMESPACE_FORM, "approvecursormove" }, // "on-approvecursormove"
59  { "XRowSetListener::cursorMoved", XML_NAMESPACE_FORM, "cursormove" }, // "on-cursormove"
60  { "XDatabaseParameterListener::approveParameter",XML_NAMESPACE_FORM, "supplyparameter" }, // "on-supplyparameter"
61  { "XSQLErrorListener::errorOccured", XML_NAMESPACE_DOM, "error" }, // "on-error"
62  { "XAdjustmentListener::adjustmentValueChanged",XML_NAMESPACE_FORM, "adjust" }, // "on-adjust"
63  { nullptr, 0, nullptr }
64  };
65 
67 
68 } // namespace xmloff
69 
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
constexpr sal_uInt16 XML_NAMESPACE_DOM
constexpr sal_uInt16 XML_NAMESPACE_FORM
const XMLEventNameTranslation aEventTranslations[]
Definition: formevents.cxx:28
const XMLEventNameTranslation * g_pFormsEventTranslation
Definition: formevents.cxx:66
XMLEventNameTranslation: define tables that translate between event names as used in the XML file for...
Definition: xmlevent.hxx:75