From 43d65dc03325bcce8561423b9607f7e114355f7d Mon Sep 17 00:00:00 2001 From: ferbas Date: Wed, 13 Jan 2010 09:41:29 +0000 Subject: initial import git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@545 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../sources/import/API/ASKey.h | 128 +++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/API/ASKey.h (limited to 'Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/API/ASKey.h') diff --git a/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/API/ASKey.h b/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/API/ASKey.h new file mode 100644 index 0000000..9c036a6 --- /dev/null +++ b/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/API/ASKey.h @@ -0,0 +1,128 @@ +/********************************************************************* + + ADOBE SYSTEMS INCORPORATED + Copyright (C) 1994-2006 Adobe Systems Incorporated + All rights reserved. + + NOTICE: Adobe permits you to use, modify, and distribute this file + in accordance with the terms of the Adobe license agreement + accompanying it. If you have received this file from a source other + than Adobe, then your use, modification, or distribution of it + requires the prior written permission of Adobe. + + --------------------------------------------------------------------- + + ASKey.h + + - Definition of standard key codes for Mac and Windows. + +*********************************************************************/ + +#ifndef _H_ASKey +#define _H_ASKey + +#include "Environ.h" +#if WIN_PLATFORM +#include +#endif + +/** @ingroup KeyCodeAllPlatforms */ +#define ASKEY_ESCAPE 27 +/** @ingroup KeyCodeAllPlatforms */ +#define ASKEY_SPACE 32 +/** @ingroup KeyCodeAllPlatforms */ +#define ASKEY_TAB 9 +/** @ingroup KeyCodeAllPlatforms */ +#define ASKEY_ARROW_R 29 +/** @ingroup KeyCodeAllPlatforms */ +#define ASKEY_ARROW_D 31 +/** @ingroup KeyCodeAllPlatforms */ +#define ASKEY_ARROW_L 28 +/** @ingroup KeyCodeAllPlatforms */ +#define ASKEY_ARROW_U 30 +/** @ingroup KeyCodeAllPlatforms */ +#define ASKEY_PAGE_U 11 +/** @ingroup KeyCodeAllPlatforms */ +#define ASKEY_PAGE_D 12 +/** @ingroup KeyCodeAllPlatforms */ +#define ASKEY_HELP 5 + +#if WIN_PLATFORM +/** @ingroup KeyCodeWindows */ +#define ASKEY_ENTER 13 +/** + Deprecated. Use ASKEY_RIGHT_DELETE or ASKEY_BACKSPACE. + @ingroup KeyCodeWindows +*/ +#define ASKEY_DEL 127 +/** @ingroup KeyCodeWindows */ +#define ASKEY_RIGHT_DELETE 127 +/** @ingroup KeyCodeWindows */ +#define ASKEY_INSERT 126 +/** @ingroup KeyCodeWindows */ +#define ASKEY_BACKSPACE 8 +/** @ingroup KeyCodeWindows */ +#define ASKEY_HOME 4 +/** @ingroup KeyCodeWindows */ +#define ASKEY_END 1 +/** @ingroup KeyCodeWindows */ +#define ASKEY_MENU 2 +#endif + +#if MAC_PLATFORM +/** @ingroup KeyCodeMacintosh */ +#define ASKEY_ENTER 3 +/** + Deprecated. Please use ASKEY_RIGHT_DELETE or ASKEY_BACKSPACE. + @ingroup KeyCodeMacintosh +*/ +#define ASKEY_DEL 8 +/** @ingroup KeyCodeMacintosh */ +#define ASKEY_RIGHT_DELETE 127 +/** @ingroup KeyCodeMacintosh */ +#define ASKEY_INSERT 126 +/** @ingroup KeyCodeMacintosh */ +#define ASKEY_BACKSPACE 8 +/** @ingroup KeyCodeMacintosh */ +#define ASKEY_HOME 1 +/** @ingroup KeyCodeMacintosh */ +#define ASKEY_END 4 +/** @ingroup KeyCodeMacintosh */ +#define ASKEY_CR 13 +/** @ingroup KeyCodeMacintosh */ +#define ASKEY_CLEAR 27 +#endif + +#if UNIX_PLATFORM +/** @ingroup KeyCodeUNIX */ +#define ASKEY_ENTER 10 +/** @ingroup KeyCodeUNIX */ +#define ASKEY_CR 13 +/** @ingroup KeyCodeUNIX */ +#define ASKEY_CLEAR 27 +/** + Deprecated. Please use ASKEY_RIGHT_DELETE or ASKEY_BACKSPACE. + @ingroup KeyCodeUNIX +*/ +#define ASKEY_DEL 8 +/** @ingroup KeyCodeUNIX */ +#define ASKEY_RIGHT_DELETE 127 +/** @ingroup KeyCodeUNIX */ +#define ASKEY_BACKSPACE 8 +/** @ingroup KeyCodeUNIX */ +#define ASKEY_HOME 1 +/** @ingroup KeyCodeUNIX */ +#define ASKEY_END 4 + +#define ASKEY_MENU 2 +#define ASKEY_INSERT 17 + +#endif + +#ifdef ASKEY_CR +#define ASKEYIsReturnOrEnter(key) ((key == ASKEY_CR) || (key == ASKEY_ENTER)) +#else +#define ASKEYIsReturnOrEnter(key) (key == ASKEY_ENTER) +#endif /* ASKEY_CR */ + +#endif /* _H_ASKey */ -- cgit v1.2.3