-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathspecials.lisp
More file actions
142 lines (121 loc) · 5.24 KB
/
specials.lisp
File metadata and controls
142 lines (121 loc) · 5.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: PDF-PLUGIN-TOOLS; Base: 10 -*-
;;; Copyright (c) 2022, Chun Tian (binghe). All rights reserved.
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:
;;; * Redistributions of source code must retain the above copyright
;;; notice, this list of conditions and the following disclaimer.
;;; * Redistributions in binary form must reproduce the above
;;; copyright notice, this list of conditions and the following
;;; disclaimer in the documentation and/or other materials
;;; provided with the distribution.
;;; THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESSED
;;; OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
;;; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
;;; ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
;;; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
;;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
;;; GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
;;; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
;;; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
;;; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
;;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
(in-package :pdf-plugin-tools)
(defvar *plugin-id*)
(defvar *plugin-name*)
#+:macosx
(defvar *plugin-bundle*)
#+:macosx
(defvar *plugin-bundle-identifier*)
(defvar *plugin-help-text*)
(defvar *plugin-version*)
(defvar *copyright-message*)
(defvar *company-name*)
#+:macosx
(defvar *app-bundle*)
(defvar *extension-id*)
(defvar *av-app-language*)
#+:mswindows
(defvar *g-hwnd*)
#+:mswindows
(defvar *g-hinstance*)
;; we set the documentation here so that the values above stay unbound
(setf (documentation '*plugin-id* 'variable)
"The ID of the plug-in. A four character creator code - see
FileMaker documentation."
(documentation '*plugin-name* 'variable)
"The name of the plug-in."
#+:macosx #+:macosx
(documentation '*plugin-bundle* 'variable)
"It holds the plugin bundle as a CFBundleRef foreign object
(after called by CFRetain)"
#+:macosx #+:macosx
(documentation '*plugin-bundle-identifier* 'variable)
"Used as the `CFBundleIdentifier' for the bundles generated on OS X."
(documentation '*plugin-help-text* 'variable)
"The help text for the plug-in to display in FileMaker's
preferences dialog box."
(documentation '*plugin-version* 'variable)
"Version number of the plug-in. Should be a list of at
most four integers, e.g. (4 2 1) would correspond to version
\"4.2.1\"."
(documentation '*company-name* 'variable)
"The name of the company which created the plug-in. Will
be used for entries into the Windows registry and in the DLL
version info."
(documentation '*copyright-message* 'variable)
"The copyright message for the DLL version info."
#+:macosx #+:macosx
(documentation '*app-bundle* 'variable)
"It holds the Acrobat Pro application bundle as a CFBundleRef foreign
object (after called by CFRetain)"
(documentation '*extension-id* 'variable)
"A identifying cookie sometimes needed by the application"
(documentation '*av-app-language* 'variable)
"The country-language keyword of the host application, e.g. :zh-cn"
)
(defvar *product-name* nil
"Will be used as the product name for the DLL version info.
The default value is NIL. If no name is set, *PLUGIN-NAME* is
used instead.")
(defvar *plugin-logfile* t
"Target file for the PLUGIN-LOG function. A pathname designator,
or T for a default location in the user's local application data
folder, or NIL for no logging at all.")
(defparameter *last-gc* (load-time-value (get-universal-time))
"The last time we collected all generations.")
(defvar *gc-interval* 600
"How often \(in seconds) to collect all generations if the user
is idle. This will only happen if idle messages are enabled.
Set to NIL if you don't want explicit collections.")
(defvar *log-errors-p* t
"Whether errors occurring during the execution of a plug-in
function should be logged using FM-LOG.")
(defvar *log-backtraces-p* nil
"Whether error log entries created due to *LOG-ERROR-P* should
be followed by a backtrace.")
(defvar *symbols-to-keep* nil
"The list of symbols which must remain in the delivered DLL
image. Only needed for delivery level 5.")
;; HFTs <PIMain.c>
(defvar *g-core-hft*)
(defvar *g-core-version*)
(defvar *g-acro-support-hft*)
(defvar *g-acro-support-version*)
(defvar *g-as-extra-hft*)
(defvar *g-as-extra-version*)
(defvar *g-acro-view-hft*)
(defvar *g-acro-view-version*)
(defvar *g-pd-model-hft*)
(defvar *g-pd-model-version*)
(defvar *g-cos-hft*)
(defvar *g-cos-version*)
(defconstant +about-extensions+ "AboutExtensions"
"A fixed menu name reserved by Adobe for plug-ins.")
(defconstant +using-extensions+ "UsingExtensions"
"A fixed menu name (under Help) reserved by Adobe for plug-ins.")
(defconstant +extensions+ "Extensions"
"A fixed menu name reserved by Adobe for plug-ins.")
(defvar *about-menu-item* nil)
(defvar *help-menu-item* nil)
(defvar *extension-menu* nil)