From 9f2bcf335924039ac1b791a12fac8485bb7ba449 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sat, 23 Dec 2023 12:20:08 +0100 Subject: [PATCH] Remove unused headers found by bin/find-unusedheaders.sh Change-Id: I859138dee575ef7fd76db28b619c673782914782 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161235 Tested-by: Jenkins Reviewed-by: Gabor Kelemen --- include/tools/simd.hxx | 30 --- sal/qa/OStringBuffer/rtl_String_Utils_Const.h | 45 ---- sd/source/ui/sidebar/IDisposable.hxx | 31 --- sd/source/ui/sidebar/ISidebarReceiver.hxx | 31 --- sfx2/source/inc/templatesearchviewitem.hxx | 28 --- solenv/clang-format/excludelist | 4 - svtools/CppunitTest_svtools_dialogs_test.mk | 1 - svtools/Executable_langsupport.mk | 1 - svtools/Library_svt.mk | 1 - svtools/source/inc/unoiface.hxx | 29 --- sw/inc/swcommands.h | 26 -- vcl/inc/WidgetThemeLibraryTypes.hxx | 235 ------------------ .../source/UAccCOM/AccessibleKeyStroke.h | 152 ----------- 13 files changed, 614 deletions(-) delete mode 100644 include/tools/simd.hxx delete mode 100644 sal/qa/OStringBuffer/rtl_String_Utils_Const.h delete mode 100644 sd/source/ui/sidebar/IDisposable.hxx delete mode 100644 sd/source/ui/sidebar/ISidebarReceiver.hxx delete mode 100644 sfx2/source/inc/templatesearchviewitem.hxx delete mode 100644 svtools/source/inc/unoiface.hxx delete mode 100644 sw/inc/swcommands.h delete mode 100644 vcl/inc/WidgetThemeLibraryTypes.hxx delete mode 100644 winaccessibility/source/UAccCOM/AccessibleKeyStroke.h diff --git a/include/tools/simd.hxx b/include/tools/simd.hxx deleted file mode 100644 index bdfdb8928271..000000000000 --- a/include/tools/simd.hxx +++ /dev/null @@ -1,30 +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/. - * - */ - -#ifndef INCLUDED_TOOLS_SIMD_HXX -#define INCLUDED_TOOLS_SIMD_HXX - -namespace simd -{ -template inline bool isAligned(const T* pointer) -{ - return 0 == (uintptr_t(pointer) % N); -} - -template inline T roundDown(T value, unsigned int multiple) -{ - return value & ~(multiple - 1); -} - -} // end namespace simd - -#endif // INCLUDED_TOOLS_SIMD_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sal/qa/OStringBuffer/rtl_String_Utils_Const.h b/sal/qa/OStringBuffer/rtl_String_Utils_Const.h deleted file mode 100644 index fc258ead340f..000000000000 --- a/sal/qa/OStringBuffer/rtl_String_Utils_Const.h +++ /dev/null @@ -1,45 +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 . - */ - -#ifndef INCLUDED_SAL_QA_OSTRINGBUFFER_RTL_STRING_UTILS_CONST_H -#define INCLUDED_SAL_QA_OSTRINGBUFFER_RTL_STRING_UTILS_CONST_H - -#include - -#ifdef __cplusplus -extern "C" -{ -#endif - -static const sal_Int32 kErrCompareAStringToUString = -2; -static const sal_Int32 kErrCompareNAStringToUString = -3; -static const sal_Int32 kErrCompareAStringToRTLUString = -4; -static const sal_Int32 kErrCompareNAStringToRTLUString = -5; -static const sal_Int32 kErrAStringToByteStringCompare = -6; -static const sal_Int32 kErrAStringToByteStringNCompare = -7; -static const sal_Int32 kErrCompareAStringToString = -8; -static const sal_Int32 kErrCompareNAStringToString = -9; - -#ifdef __cplusplus -} -#endif - -#endif // INCLUDED_SAL_QA_OSTRINGBUFFER_RTL_STRING_UTILS_CONST_H - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sd/source/ui/sidebar/IDisposable.hxx b/sd/source/ui/sidebar/IDisposable.hxx deleted file mode 100644 index e2c1afe2785d..000000000000 --- a/sd/source/ui/sidebar/IDisposable.hxx +++ /dev/null @@ -1,31 +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 . - */ -#pragma once - -namespace sd::sidebar -{ -class IDisposable -{ -public: - virtual ~IDisposable(); -}; - -} // end of namespace ::sd::sidebar - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sd/source/ui/sidebar/ISidebarReceiver.hxx b/sd/source/ui/sidebar/ISidebarReceiver.hxx deleted file mode 100644 index bf51cbe12831..000000000000 --- a/sd/source/ui/sidebar/ISidebarReceiver.hxx +++ /dev/null @@ -1,31 +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 . - */ -#pragma once - -namespace sd::sidebar -{ -class ISidebarReceiver -{ -public: - virtual ~ISidebarReceiver(); -}; - -} // end of namespace ::sd::sidebar - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/inc/templatesearchviewitem.hxx b/sfx2/source/inc/templatesearchviewitem.hxx deleted file mode 100644 index e9ba57f1cd75..000000000000 --- a/sfx2/source/inc/templatesearchviewitem.hxx +++ /dev/null @@ -1,28 +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/. - */ - -#ifndef INCLUDED_SFX2_SOURCE_INC_TEMPLATESEARCHVIEWITEM_HXX -#define INCLUDED_SFX2_SOURCE_INC_TEMPLATESEARCHVIEWITEM_HXX - -#include - -struct TemplateSearchViewItem final : public TemplateViewItem -{ - TemplateSearchViewItem(ThumbnailView& rView, sal_uInt16 nId) - : TemplateViewItem(rView, nId) - , mnAssocId(0) - { - } - - sal_uInt16 mnAssocId; //Associated item id to the TemplateViews -}; - -#endif // INCLUDED_SFX2_SOURCE_INC_TEMPLATESEARCHVIEWITEM_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/solenv/clang-format/excludelist b/solenv/clang-format/excludelist index 981877ea114d..232b346921d1 100644 --- a/solenv/clang-format/excludelist +++ b/solenv/clang-format/excludelist @@ -5264,7 +5264,6 @@ include/framework/desktop.hxx include/framework/documentundoguard.hxx include/framework/framecontainer.hxx include/framework/framelistanalyzer.hxx -include/framework/gate.hxx include/framework/generictoolbarcontroller.hxx include/framework/imutex.hxx include/framework/sfxhelperfunctions.hxx @@ -7552,7 +7551,6 @@ sal/osl/w32/time.cxx sal/qa/ByteSequence/ByteSequence.cxx sal/qa/OStringBuffer/rtl_OStringBuffer.cxx sal/qa/OStringBuffer/rtl_String_Const.h -sal/qa/OStringBuffer/rtl_String_Utils_Const.h sal/qa/inc/valueequal.hxx sal/qa/osl/condition/osl_Condition.cxx sal/qa/osl/file/osl_File.cxx @@ -14124,7 +14122,6 @@ vcl/headless/svpvd.cxx vcl/inc/IconThemeSelector.hxx vcl/inc/IPrioritable.hxx vcl/inc/ResampleKernel.hxx -vcl/inc/WidgetThemeLibraryTypes.hxx vcl/inc/bitmap/bmpfast.hxx vcl/inc/accel.hxx vcl/inc/accmgr.hxx @@ -15150,7 +15147,6 @@ writerfilter/source/ooxml/OOXMLFastContextHandler.cxx writerfilter/source/ooxml/OOXMLFastContextHandler.hxx writerfilter/source/ooxml/OOXMLFastDocumentHandler.cxx writerfilter/source/ooxml/OOXMLFastDocumentHandler.hxx -writerfilter/source/ooxml/OOXMLFastHelper.hxx writerfilter/source/ooxml/OOXMLParserState.cxx writerfilter/source/ooxml/OOXMLPropertySet.cxx writerfilter/source/ooxml/OOXMLStreamImpl.cxx diff --git a/svtools/CppunitTest_svtools_dialogs_test.mk b/svtools/CppunitTest_svtools_dialogs_test.mk index 70f8a00e4bf7..a9fa35707c0b 100644 --- a/svtools/CppunitTest_svtools_dialogs_test.mk +++ b/svtools/CppunitTest_svtools_dialogs_test.mk @@ -18,7 +18,6 @@ $(eval $(call gb_CppunitTest_add_exception_objects,svtools_dialogs_test, \ $(eval $(call gb_CppunitTest_use_sdk_api,svtools_dialogs_test)) $(eval $(call gb_CppunitTest_set_include,svtools_dialogs_test,\ - -I$(SRCDIR)/svtools/source/inc \ -I$(SRCDIR)/svtools/inc \ $$(INCLUDE) \ )) diff --git a/svtools/Executable_langsupport.mk b/svtools/Executable_langsupport.mk index 176a88b15fad..36b5723bc715 100644 --- a/svtools/Executable_langsupport.mk +++ b/svtools/Executable_langsupport.mk @@ -14,7 +14,6 @@ $(eval $(call gb_Executable_set_targettype_gui,langsupport,YES)) $(eval $(call gb_Executable_set_include,langsupport,\ $$(INCLUDE) \ -I$(SRCDIR)/svtools/inc \ - -I$(SRCDIR)/svtools/source/inc \ )) $(eval $(call gb_Executable_use_external,langsupport,boost_headers)) diff --git a/svtools/Library_svt.mk b/svtools/Library_svt.mk index 46b68fb149e6..1b353f90d265 100644 --- a/svtools/Library_svt.mk +++ b/svtools/Library_svt.mk @@ -31,7 +31,6 @@ $(eval $(call gb_Library_use_sdk_api,svt)) $(eval $(call gb_Library_set_include,svt,\ $$(INCLUDE) \ - -I$(SRCDIR)/svtools/source/inc \ -I$(SRCDIR)/svtools/inc \ )) diff --git a/svtools/source/inc/unoiface.hxx b/svtools/source/inc/unoiface.hxx deleted file mode 100644 index fbfdc1b61609..000000000000 --- a/svtools/source/inc/unoiface.hxx +++ /dev/null @@ -1,29 +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 . - */ - -#pragma once - -namespace com::sun::star::util -{ -class XNumberFormatsSupplier; -} - -class SvNumberFormatsSupplierObj; - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/swcommands.h b/sw/inc/swcommands.h deleted file mode 100644 index 61f5c554be75..000000000000 --- a/sw/inc/swcommands.h +++ /dev/null @@ -1,26 +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 . - */ -#ifndef INCLUDED_SW_INC_SWCOMMANDS_H -#define INCLUDED_SW_INC_SWCOMMANDS_H - -#define CMD_FN_READONLY_SELECTION_MODE ".uno:SelectTextMode" - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/inc/WidgetThemeLibraryTypes.hxx b/vcl/inc/WidgetThemeLibraryTypes.hxx deleted file mode 100644 index b3270bf23eb8..000000000000 --- a/vcl/inc/WidgetThemeLibraryTypes.hxx +++ /dev/null @@ -1,235 +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/. - * - */ - -#ifndef INCLUDED_VCL_INC_WIDGETTHEMETYPES_HXX -#define INCLUDED_VCL_INC_WIDGETTHEMETYPES_HXX - -#include - -/** - * These types are all based on the supported variants - * vcl/salnativewidgets.hxx and must be kept in-sync. - **/ - -/* Control Types: - * - * Specify the overall, whole control - * type (as opposed to parts of the - * control if it were composite). - */ - -enum class ControlType { -// for use in general purpose ImplControlValue - Generic = 0, -// Normal PushButton/Command Button - Pushbutton = 1, -// Normal single radio button - Radiobutton = 2, -// Normal single checkbox - Checkbox = 10, -// Combobox, i.e. a ListBox -// that allows data entry by user - Combobox = 20, -// Control that allows text entry - Editbox = 30, -// Control that allows text entry, but without the usual border -// Has to be handled separately, because this one cannot handle -// ControlPart::HasBackgroundTexture, which is drawn in the edit box'es -// border window. - EditboxNoBorder = 31, -// Control that allows text entry -// ( some systems distinguish between single and multi line edit boxes ) - MultilineEditbox = 32, -// Control that pops up a menu, -// but does NOT allow data entry - Listbox = 35, -// An edit field together with two little -// buttons on the side (aka spin field) - Spinbox = 40, -// Two standalone spin buttons -// without an edit field - SpinButtons = 45, -// A single tab - TabItem = 50, -// The border around a tab area, -// but without the tabs themselves. -// May have a gap at the top for -// the active tab - TabPane = 55, -// The background to the tab area - TabHeader = 56, -// Background of a Tab Pane - TabBody = 57, -// Normal scrollbar, including -// all parts like slider, buttons - Scrollbar = 60, - Slider = 65, -// A separator line - Fixedline = 80, -// A toolbar control with buttons and a grip - Toolbar = 100, -// The menubar - Menubar = 120, -// popup menu - MenuPopup = 121, - Progress = 131, -// Progress bar for the intro window -// (aka splash screen), in case some -// wants native progress bar in the -// application but not for the splash -// screen (used in desktop/) - IntroProgress = 132, -// tool tips - Tooltip = 140, -// to draw the implemented theme - WindowBackground = 150, -//to draw border of frames natively - Frame = 160, -// for nodes in listviews -// used in svtools/source/contnr/svtreebx.cxx - ListNode = 170, -// nets between elements of listviews -// with nodes - ListNet = 171, -// for list headers - ListHeader = 172, -}; - - -/* Control Parts: - * - * Uniquely identify a part of a control, - * for example the slider of a scroll bar. - */ - -enum class ControlPart -{ - NONE = 0, - Entire = 1, - ListboxWindow = 5, // the static listbox window containing the list - Button = 100, - ButtonUp = 101, - ButtonDown = 102, // Also for ComboBoxes/ListBoxes - ButtonLeft = 103, - ButtonRight = 104, - AllButtons = 105, - SeparatorHorz = 106, - SeparatorVert = 107, - TrackHorzLeft = 200, - TrackVertUpper = 201, - TrackHorzRight = 202, - TrackVertLower = 203, - TrackHorzArea = 204, - TrackVertArea = 205, - Arrow = 220, - ThumbHorz = 210, // Also used as toolbar grip - ThumbVert = 211, // Also used as toolbar grip - MenuItem = 250, - MenuItemCheckMark = 251, - MenuItemRadioMark = 252, - Separator = 253, - SubmenuArrow = 254, - -/* #i77549# - HACK: for scrollbars in case of thumb rect, page up and page down rect we - abuse the HitTestNativeScrollbar interface. All theming engines but aqua - are actually able to draw the thumb according to our internal representation. - However aqua draws a little outside. The canonical way would be to enhance the - HitTestNativeScrollbar passing a ScrollbarValue additionally so all necessary - information is available in the call. - . - However since there is only this one small exception we will deviate a little and - instead pass the respective rect as control region to allow for a small correction. - - So all places using HitTestNativeScrollbar on ControlPart::ThumbHorz, ControlPart::ThumbVert, - ControlPart::TrackHorzLeft, ControlPart::TrackHorzRight, ControlPart::TrackVertUpper, ControlPart::TrackVertLower - do not use the control rectangle as region but the actual part rectangle, making - only small deviations feasible. -*/ - -/** The edit field part of a control, e.g. of the combo box. - - Currently used just for combo boxes and just for GetNativeControlRegion(). - It is valid only if GetNativeControlRegion() supports ControlPart::ButtonDown as - well. -*/ - SubEdit = 300, - -// For controls that require the entire background -// to be drawn first, and then other pieces over top. -// (GTK+ scrollbars for example). Control region passed -// in to draw this part is expected to be the entire -// area of the control. -// A control may respond to one or both. - DrawBackgroundHorz = 1000, - DrawBackgroundVert = 1001, - -// GTK+ also draws tabs right->left since there is a -// hardcoded 2 pixel overlap between adjacent tabs - TabsDrawRtl = 3000, - -// For themes that do not want to have the focus -// rectangle part drawn by VCL but take care of the -// whole inner control part by themselves -// eg, listboxes or comboboxes or spinbuttons - HasBackgroundTexture = 4000, - -// For scrollbars that have 3 buttons (most KDE themes) - HasThreeButtons = 5000, - - BackgroundWindow = 6000, - BackgroundDialog = 6001, - -//to draw natively the border of frames - Border = 7000, - -//to draw natively the focus rects - Focus = 8000 -}; - -/* Control State: - * - * Specify how a particular part of the control - * is to be drawn. Constants are bitwise OR-ed - * together to compose a final drawing state. - * A _disabled_ state is assumed by the drawing - * functions until an ENABLED or HIDDEN is passed - * in the ControlState. - */ -enum class ControlState { - NONE = 0, - ENABLED = 0x0001, - FOCUSED = 0x0002, - PRESSED = 0x0004, - ROLLOVER = 0x0008, - DEFAULT = 0x0020, - SELECTED = 0x0040, - DOUBLEBUFFERING = 0x4000, ///< Set when the control is painted using double-buffering via VirtualDevice. - CACHING_ALLOWED = 0x8000, ///< Set when the control is completely visible (i.e. not clipped). -}; - -template<> struct o3tl::typed_flags: o3tl::is_typed_flags {}; - -/* ButtonValue: - * - * Identifies the tri-state value options - * that buttons allow - */ - -enum class ButtonValue { - DontKnow, - On, - Off, - Mixed -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/winaccessibility/source/UAccCOM/AccessibleKeyStroke.h b/winaccessibility/source/UAccCOM/AccessibleKeyStroke.h deleted file mode 100644 index db3903cbd6e7..000000000000 --- a/winaccessibility/source/UAccCOM/AccessibleKeyStroke.h +++ /dev/null @@ -1,152 +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 . - */ - -#pragma once - -struct ACCESSIBLE_KEYSTROKE -{ - short modifiers; - short keyCode; - char keyChar; - short keyFunc; -}; - -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: */