File: special.h

package info (click to toggle)
xdvik-ja 22.84.16-j1.40%2Bt1lib-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 16,628 kB
  • ctags: 10,310
  • sloc: ansic: 88,999; sh: 5,309; makefile: 1,031; perl: 245; lisp: 244
file content (79 lines) | stat: -rw-r--r-- 2,640 bytes parent folder | download | duplicates (9)
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
/*
 * Copyright (c) 2002-2004 the xdvik development team
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * PAUL VOJTA OR ANY OTHER AUTHOR OF THIS SOFTWARE BE LIABLE FOR ANY CLAIM,
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 */

#ifndef SPECIAL_H_
#define SPECIAL_H_

#include "xdvi-config.h"
#include "xdvi.h"
#include "events.h"

extern Boolean scan_special(char *str, int str_len, void *data);

#if PS

struct psprocs {
    void (*toggle)	(int flag);
    void (*destroy)	(void);
    void (*interrupt)	(void);
    void (*endpage)	(void);
    void (*drawbegin)	(int, int, const char *);
    void (*drawraw)	(const char *);
    void (*drawfile)	(const char *, FILE *);
    void (*drawend)	(const char *);
    void (*beginheader)	(void);
    void (*endheader)	(void);
    void (*newdoc)	(void);
};

extern void ps_clear_cache(void);
extern void ps_destroy(void);
extern void drawbegin_none(int, int, const char *);
extern void draw_bbox(void);
extern void display_bboxes(void);
extern void clear_bboxes(void);
extern void save_bbox(void);

#endif

extern void applicationDoSpecial(char *str, size_t len);
extern void geom_do_special(struct scan_info *, char *, double);
extern void color_special(const char *colorspec);

extern void init_prescan(void);

/*
  info on whether this DVI file contains papersize specials,
  and a resetting method.
*/
extern void reset_papersize_special(void);
extern Boolean have_papersize_special(void);

#if COLOR
extern void init_page_colors(struct rgb *foreground, struct rgb *background);
extern void scan_color_eop(void);
extern void scan_color(const char *color);
struct rgb; /* forward declaration */
extern void set_fg_color(const struct rgb *);
#endif

#endif /* SPECIAL_H_ */