~ubuntu-branches/ubuntu/saucy/luatex/saucy

« back to all changes in this revision

Viewing changes to source/texk/web2c/luatexdir/pdf/pdflistout.h

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2009-12-25 09:47:05 UTC
  • mfrom: (1.1.9 upstream) (4.2.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091225094705-y33rpflo8t4u9nag
Tags: 0.50.0-1
* new upstream release
* disable fix-hurd-ftbfs patch, included upstream
* disable upstram-fixes, included upstream
* disable ubuntu_libpoppler-0.11, not needed anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* pdflistout.h
 
2
 
 
3
   Copyright 2009 Taco Hoekwater <taco@luatex.org>
 
4
 
 
5
   This file is part of LuaTeX.
 
6
 
 
7
   LuaTeX is free software; you can redistribute it and/or modify it under
 
8
   the terms of the GNU General Public License as published by the Free
 
9
   Software Foundation; either version 2 of the License, or (at your
 
10
   option) any later version.
 
11
 
 
12
   LuaTeX is distributed in the hope that it will be useful, but WITHOUT
 
13
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
14
   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
 
15
   License for more details.
 
16
 
 
17
   You should have received a copy of the GNU General Public License along
 
18
   with LuaTeX; if not, see <http://www.gnu.org/licenses/>. */
 
19
 
 
20
/* $Id: pdflistout.h 3046 2009-09-13 18:39:58Z hhenkel $ */
 
21
 
 
22
#ifndef PDFLISTOUT_H
 
23
#  define PDFLISTOUT_H
 
24
 
 
25
/* a few small helpers */
 
26
#  define pos_right(A) pdf->posstruct->pos.h = pdf->posstruct->pos.h + (A)
 
27
#  define pos_left(A)  pdf->posstruct->pos.h = pdf->posstruct->pos.h - (A)
 
28
#  define pos_up(A)    pdf->posstruct->pos.v = pdf->posstruct->pos.v + (A)
 
29
#  define pos_down(A)  pdf->posstruct->pos.v = pdf->posstruct->pos.v - (A)
 
30
 
 
31
typedef void (*backend_function) ();
 
32
 
 
33
typedef struct {
 
34
    char *name;                 /* name of the backend */
 
35
    backend_function *node_fu;  /* array of node output functions */
 
36
    backend_function *whatsit_fu;       /* array of whatsit output functions */
 
37
} backend_struct;
 
38
 
 
39
extern pos_info_structure pos_info;
 
40
 
 
41
extern backend_function *backend_out;
 
42
extern backend_function *backend_out_whatsit;
 
43
 
 
44
extern void init_backend_functionpointers(output_mode o_mode);
 
45
 
 
46
extern void hlist_out(PDF pdf, halfword this_box);
 
47
extern void vlist_out(PDF pdf, halfword this_box);
 
48
extern void out_what(PDF pdf, halfword p);
 
49
 
 
50
#endif