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