Debian Codegraph @

texk/web2c/synctexdir/synctex-pdftex.h

raw
1 /*
2 Copyright (c) 2008-2017 jerome DOT laurens AT u-bourgogne DOT fr
3
4 This file is part of the SyncTeX package.
5
6 Version 1
7 Latest Revision: Sat Apr 22 10:07:05 UTC 2017
8
9 License:
10 --------
11 Permission is hereby granted, free of charge, to any person
12 obtaining a copy of this software and associated documentation
13 files (the "Software"), to deal in the Software without
14 restriction, including without limitation the rights to use,
15 copy, modify, merge, publish, distribute, sublicense, and/or sell
16 copies of the Software, and to permit persons to whom the
17 Software is furnished to do so, subject to the following
18 conditions:
19
20 The above copyright notice and this permission notice shall be
21 included in all copies or substantial portions of the Software.
22
23 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
25 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
27 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
28 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
29 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
30 OTHER DEALINGS IN THE SOFTWARE
31
32 Except as contained in this notice, the name of the copyright holder
33 shall not be used in advertising or otherwise to promote the sale,
34 use or other dealings in this Software without prior written
35 authorization from the copyright holder.
36
37 Acknowledgments:
38 ----------------
39 The author received useful remarks from the pdfTeX developers, especially Hahn The Thanh,
40 and significant help from XeTeX developer Jonathan Kew
41
42 Nota Bene:
43 ----------
44 If you include or use a significant part of the synctex package into a software,
45 I would appreciate to be listed as contributor and see "SyncTeX" highlighted.
46
47 */
48
49 # include "pdftexd.h"
50
51 /* We observe pdfoutputvalue in order to determine whether output mode is
52 * pdf or dvi.
53 * We will assume that pdf_output_value equals pdf_output entering
54 * the synctex_sheet function below, in the including synctex.c file.
55 */
56 # define SYNCTEX_OFFSET_IS_PDF (pdfoutputvalue>0)
57 # define SYNCTEX_OUTPUT ((pdfoutputvalue>0)?"pdf":"dvi")
58
59 /* Adding support for pdf forms
60 */
61 # define SYNCTEX_SUPPORT_PDF_FORM (1)
62 # define SYNCTEX_PDF_CUR_FORM (pdfcurform)
63
64 /* these messages should be sent to record information
65 * for a form node (\pdfrefxform).
66 * No engine discrimination.
67 */
68 extern void synctexpdfxform(halfword p);
69 extern void synctexmrofxfdp();
70 extern void synctexpdfrefxform(int objnum);
71
72 #define SYNCTEX_interaction interaction