summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2022-08-05 12:46:16 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2022-08-05 17:35:16 +0200
commit56145f237b63a35c142dbccd434fd780badcf489 (patch)
tree6539190f684aac1b5f3ca2a511a38f9e9286d4b2
parent245f39eb1279455f5af0e2329cf9617c79b6e240 (diff)
wina11y: Drop unused AccessibleKey{Binding,Stroke}.idl
The only include of the generated header file `AccessibleKeyBinding.h` was in `AccActionBase.cxx`, but that doesn't make any use of what's defined in the header, so just drop the include and the unused IDL files altogether. (The IDL files are part of the winaccessibility-specific UAccCOMIDL, unrelated to the IDL files for the UNO API.) `CMAccessible::get_accKeyboardShortcut` directly operates on the `XAccessibleKeyBinding` UNO interface ever since commit a18bdb3bc05e761704cc345a66a9d642bc4f4a0a Date: Thu Nov 14 08:18:05 2013 +0000 Integrate branch of IAccessible2 Just the winaccessibility directory initially. (the commit also adding those 2 IDL files), so it's unclear to me what might have been the intended use. Change-Id: I1a08e8ea789ca92e52640a0006f20fac219f6733 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137866 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r--winaccessibility/CustomTarget_ia2_idl.mk2
-rw-r--r--winaccessibility/source/UAccCOM/AccActionBase.cxx2
-rw-r--r--winaccessibility/source/UAccCOMIDL/AccessibleKeyBinding.idl60
-rw-r--r--winaccessibility/source/UAccCOMIDL/AccessibleKeyStroke.idl149
4 files changed, 0 insertions, 213 deletions
diff --git a/winaccessibility/CustomTarget_ia2_idl.mk b/winaccessibility/CustomTarget_ia2_idl.mk
index 2dcd1a2328ab..ed22a28432d3 100644
--- a/winaccessibility/CustomTarget_ia2_idl.mk
+++ b/winaccessibility/CustomTarget_ia2_idl.mk
@@ -15,8 +15,6 @@ wina11y_SOURCE := $(SRCDIR)/winaccessibility/source/UAccCOMIDL
# We cannot depend on *.tlb because they only produced by IDL compiler
# if idl contains 'library' statement.
$(call gb_CustomTarget_get_target,winaccessibility/ia2/idl) : \
- $(wina11y_COMIDLDIR)/AccessibleKeyBinding.h \
- $(wina11y_COMIDLDIR)/AccessibleKeyStroke.h \
$(wina11y_COMIDLDIR)/UAccCOM.h \
$(wina11y_COMIDLDIR)/defines.h \
$(wina11y_COMIDLDIR)/ia2_api_all.h
diff --git a/winaccessibility/source/UAccCOM/AccActionBase.cxx b/winaccessibility/source/UAccCOM/AccActionBase.cxx
index cd68f3032ec3..3062e96a855c 100644
--- a/winaccessibility/source/UAccCOM/AccActionBase.cxx
+++ b/winaccessibility/source/UAccCOM/AccActionBase.cxx
@@ -32,8 +32,6 @@
#include <o3tl/char16_t2wchar_t.hxx>
#include <comphelper/AccessibleImplementationHelper.hxx>
-#include "AccessibleKeyStroke.h"
-
#include "acccommon.h"
using namespace com::sun::star::accessibility::AccessibleRole;
diff --git a/winaccessibility/source/UAccCOMIDL/AccessibleKeyBinding.idl b/winaccessibility/source/UAccCOMIDL/AccessibleKeyBinding.idl
deleted file mode 100644
index 91d17de0539e..000000000000
--- a/winaccessibility/source/UAccCOMIDL/AccessibleKeyBinding.idl
+++ /dev/null
@@ -1,60 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-import "objidl.idl";
-import "oaidl.idl";
-import "oleacc.idl";
-import "AccessibleKeyStroke.idl";
-
-[object, uuid(6B1923AC-3E9A-4336-99E1-A69EA4E946E9)]
-interface IAccessibleKeyBinding : IUnknown
-{
- // get number of key bindings for this object
- [propget] HRESULT nKeyBindings
- (
- [out, retval] long *nKeyBindings
- );
-
- // get length of keystroke sequence for specified key binding
- [propget] HRESULT keyStrokeSequenceLength
- (
- [in] long keyBindingIndex,
- [out] long *sequenceLength
- );
-
- // The returned sequence of key strokes describes one method
- // to invoke the associated action (the one from which you
- // obtained the object at which you called this method) by
- // pressing keys. The keys specified by each of the returned
- // key strokes have to be pressed at the same time (the
- // Control-key and the A-key for example). The keys of one key
- // stroke have to be released before pressing those of the next.
- // The order of the key strokes in the sequence define the order
- // in which to press them.
- [propget] HRESULT keyBinding
- (
- [in] long keyBindingIndex,
- [in] long keyStrokeSequenceLength,
- [out, size_is(,keyStrokeSequenceLength), length_is(,*actualKeyStrokeSequenceLength)]
- ACCESSIBLE_KEYSTROKE **keyStroke,
- [out, retval] long *actualKeyStrokeSequenceLength
- );
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/winaccessibility/source/UAccCOMIDL/AccessibleKeyStroke.idl b/winaccessibility/source/UAccCOMIDL/AccessibleKeyStroke.idl
deleted file mode 100644
index 5166014f68fe..000000000000
--- a/winaccessibility/source/UAccCOMIDL/AccessibleKeyStroke.idl
+++ /dev/null
@@ -1,149 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-typedef struct _ACCESSIBLE_KEYSTROKE {
- short modifiers;
- short keyCode;
- char keyChar;
- short keyFunc;
-} ACCESSIBLE_KEYSTROKE;
-
-const short MODIFIER_SHIFT = 1;
-const short MODIFIER_CTRL = 2;
-const short MODIFIER_ALT = 4;
-
-const short KEYCODE_NUM0 = 256;
-const short KEYCODE_NUM1 = 257;
-const short KEYCODE_NUM2 = 258;
-const short KEYCODE_NUM3 = 259;
-const short KEYCODE_NUM4 = 260;
-const short KEYCODE_NUM5 = 261;
-const short KEYCODE_NUM6 = 262;
-const short KEYCODE_NUM7 = 263;
-const short KEYCODE_NUM8 = 264;
-const short KEYCODE_NUM9 = 265;
-const short KEYCODE_A = 512;
-const short KEYCODE_B = 513;
-const short KEYCODE_C = 514;
-const short KEYCODE_D = 515;
-const short KEYCODE_E = 516;
-const short KEYCODE_F = 517;
-const short KEYCODE_G = 518;
-const short KEYCODE_H = 519;
-const short KEYCODE_I = 520;
-const short KEYCODE_J = 521;
-const short KEYCODE_K = 522;
-const short KEYCODE_L = 523;
-const short KEYCODE_M = 524;
-const short KEYCODE_N = 525;
-const short KEYCODE_O = 526;
-const short KEYCODE_P = 527;
-const short KEYCODE_Q = 528;
-const short KEYCODE_R = 529;
-const short KEYCODE_S = 530;
-const short KEYCODE_T = 531;
-const short KEYCODE_U = 532;
-const short KEYCODE_V = 533;
-const short KEYCODE_W = 534;
-const short KEYCODE_X = 535;
-const short KEYCODE_Y = 536;
-const short KEYCODE_Z = 537;
-const short KEYCODE_F1 = 768;
-const short KEYCODE_F2 = 769;
-const short KEYCODE_F3 = 770;
-const short KEYCODE_F4 = 771;
-const short KEYCODE_F5 = 772;
-const short KEYCODE_F6 = 773;
-const short KEYCODE_F7 = 774;
-const short KEYCODE_F8 = 775;
-const short KEYCODE_F9 = 776;
-const short KEYCODE_F10 = 777;
-const short KEYCODE_F11 = 778;
-const short KEYCODE_F12 = 779;
-const short KEYCODE_F13 = 780;
-const short KEYCODE_F14 = 781;
-const short KEYCODE_F15 = 782;
-const short KEYCODE_F16 = 783;
-const short KEYCODE_F17 = 784;
-const short KEYCODE_F18 = 785;
-const short KEYCODE_F19 = 786;
-const short KEYCODE_F20 = 787;
-const short KEYCODE_F21 = 788;
-const short KEYCODE_F22 = 789;
-const short KEYCODE_F23 = 790;
-const short KEYCODE_F24 = 791;
-const short KEYCODE_F25 = 792;
-const short KEYCODE_F26 = 793;
-const short KEYCODE_DOWN = 1024;
-const short KEYCODE_UP = 1025;
-const short KEYCODE_LEFT = 1026;
-const short KEYCODE_RIGHT = 1027;
-const short KEYCODE_HOME = 1028;
-const short KEYCODE_END = 1029;
-const short KEYCODE_PAGEUP = 1030;
-const short KEYCODE_PAGEDOWN = 1031;
-const short KEYCODE_RETURN = 1280;
-const short KEYCODE_ESCAPE = 1281;
-const short KEYCODE_TAB = 1282;
-const short KEYCODE_BACKSPACE = 1283;
-const short KEYCODE_SPACE = 1284;
-const short KEYCODE_INSERT = 1285;
-const short KEYCODE_DELETE = 1286;
-const short KEYCODE_ADD = 1287;
-const short KEYCODE_SUBTRACT = 1288;
-const short KEYCODE_MULTIPLY = 1289;
-const short KEYCODE_DIVIDE = 1290;
-const short KEYCODE_POINT = 1291;
-const short KEYCODE_COMMA = 1292;
-const short KEYCODE_LESS = 1293;
-const short KEYCODE_GREATER = 1294;
-const short KEYCODE_EQUAL = 1295;
-const short KEYCODE_OPEN = 1296;
-const short KEYCODE_CUT = 1297;
-const short KEYCODE_COPY = 1298;
-const short KEYCODE_PASTE = 1299;
-const short KEYCODE_UNDO = 1300;
-const short KEYCODE_REPEAT = 1301;
-const short KEYCODE_FIND = 1302;
-const short KEYCODE_PROPERTIES = 1303;
-const short KEYCODE_FRONT = 1304;
-const short KEYCODE_CONTEXTMENU = 1305;
-const short KEYCODE_HELP = 1306;
-
-const short SHORTCUT_DONTKNOW = 0;
-const short NEW = 1;
-const short OPEN = 2;
-const short SAVE = 3;
-const short SAVEAS = 4;
-const short PRINT = 5;
-const short CLOSE = 6;
-const short QUIT = 7;
-const short CUT = 8;
-const short COPY = 9;
-const short PASTE = 10;
-const short UNDO = 11;
-const short REDO = 12;
-const short UNODELETE = 13;
-const short REPEAT = 14;
-const short FIND = 15;
-const short FINDBACKWARD = 16;
-const short PROPERTIES = 17;
-const short FRONT = 18;
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */