/usr/include/libgnomeprint-2.2/libgnomeprint/private/gnome-print-private.h is in libgnomeprint2.2-dev 2.18.8-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* gnome-print-private.h:
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License
* as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Authors:
* Raph Levien <raph@acm.org>
* Miguel de Icaza <miguel@kernel.org>
* Lauris Kaplinski <lauris@ximian.com>
* Chema Celorio <chema@celorio.com>
*
* Copyright (C) 1999-2003 Ximian Inc. and authors
*/
#ifndef __GNOME_PRINT_PRIVATE_H__
#define __GNOME_PRINT_PRIVATE_H__
#include <glib.h>
G_BEGIN_DECLS
#ifndef WE_ARE_LIBGNOMEPRINT_INTERNALS
#error You should not be using this header, do so at your own risk.
#endif
#include <libart_lgpl/art_svp.h>
#include <libart_lgpl/art_svp_wind.h>
#include <libgnomeprint/gp-gc.h>
#include <libgnomeprint/gnome-print-config.h>
#include <libgnomeprint/gnome-print.h>
#include <libgnomeprint/gnome-print-transport.h>
#define GNOME_PRINT_CONTEXT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GNOME_TYPE_PRINT_CONTEXT, GnomePrintContextClass))
#define GNOME_IS_PRINT_CONTEXT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GNOME_TYPE_PRINT_CONTEXT))
#define GNOME_PRINT_CONTEXT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GNOME_TYPE_PRINT_CONTEXT, GnomePrintContextClass))
#define NEEDED_SUBSETTING(font) ((font)->face->entry->type == GP_FONT_ENTRY_TRUETYPE)
typedef struct _GnomePrintContextPrivate GnomePrintContextPrivate;
typedef struct _GnomePrintContextClass GnomePrintContextClass;
struct _GnomePrintContext {
GObject object;
GnomePrintConfig *config;
GnomePrintTransport *transport;
GPGC * gc;
gboolean haspage;
gint pages;
GnomePrintContextPrivate *priv;
};
struct _GnomePrintContextClass {
GObjectClass parent_class;
gint (* construct) (GnomePrintContext *pc);
gint (* beginpage) (GnomePrintContext *pc, const guchar *name);
gint (* showpage) (GnomePrintContext *pc);
gint (* end_doc) (GnomePrintContext *pc);
gint (* gsave) (GnomePrintContext *pc);
gint (* grestore) (GnomePrintContext *pc);
gint (* clip) (GnomePrintContext *pc, const ArtBpath *bpath, ArtWindRule rule);
gint (* fill) (GnomePrintContext *pc, const ArtBpath *bpath, ArtWindRule rule);
gint (* stroke) (GnomePrintContext *pc, const ArtBpath *bpath);
gint (* image) (GnomePrintContext *pc, const gdouble *affine, const guchar *px, gint w, gint h, gint rowstride, gint ch);
gint (* glyphlist) (GnomePrintContext *pc, const gdouble *affine, GnomeGlyphList *gl);
gint (* close) (GnomePrintContext *pc);
};
gint gnome_print_context_construct (GnomePrintContext *ctx, GnomePrintConfig *config);
gint gnome_print_context_create_transport (GnomePrintContext *ctx);
GnomePrintContext *gnome_print_context_new_from_module_name (const gchar *);
gint gnome_print_clip_bpath_rule (GnomePrintContext *pc, const ArtBpath *bpath, ArtWindRule rule);
gint gnome_print_fill_bpath_rule (GnomePrintContext *pc, const ArtBpath *bpath, ArtWindRule rule);
gint gnome_print_stroke_bpath (GnomePrintContext *pc, const ArtBpath *bpath);
gint gnome_print_image_transform (GnomePrintContext *pc, const gdouble *affine, const guchar *px, gint w, gint h, gint rowstride, gint ch);
gint gnome_print_glyphlist_transform (GnomePrintContext *pc, const gdouble *affine, GnomeGlyphList *gl);
/* Pass through */
gint gnome_print_beginpage_real (GnomePrintContext *, const guchar *);
gint gnome_print_showpage_real (GnomePrintContext *);
gint gnome_print_gsave_real (GnomePrintContext *);
gint gnome_print_grestore_real (GnomePrintContext *);
gint gnome_print_clip_bpath_rule_real (GnomePrintContext *, const ArtBpath *, ArtWindRule);
gint gnome_print_fill_bpath_rule_real (GnomePrintContext *, const ArtBpath *, ArtWindRule);
gint gnome_print_stroke_bpath_real (GnomePrintContext *, const ArtBpath *);
gint gnome_print_image_transform_real (GnomePrintContext *, const gdouble *, const guchar *, gint, gint, gint, gint);
gint gnome_print_glyphlist_transform_real (GnomePrintContext *, const gdouble *, GnomeGlyphList *);
gint gnome_print_setrgbcolor_real (GnomePrintContext *, gdouble, gdouble, gdouble);
gint gnome_print_setopacity_real (GnomePrintContext *, gdouble);
gint gnome_print_setlinewidth_real (GnomePrintContext *, gdouble);
typedef struct _GnomePrintLayout GnomePrintLayout;
typedef struct _GnomePrintLayoutPage GnomePrintLayoutPage;
typedef struct _GnomePrintLayoutData GnomePrintLayoutData;
typedef struct _GnomePrintLayoutPageData GnomePrintLayoutPageData;
struct _GnomePrintLayout {
gdouble PP2PA[6]; /* physical page -> printed area matrix */
gdouble PAW, PAH; /* printed area width and height */
gdouble LP2LY[6]; /* logical page -> layout matrix */
gdouble LYW, LYH; /* layout dimensions */
gdouble LW, LH; /* logical dimensions */
gint NLY; /* number of layout pages */
GnomePrintLayoutPage *LYP; /* layout pages */
};
struct _GnomePrintLayoutPage {
gdouble matrix[6];
};
struct _GnomePrintLayoutData {
gdouble pw, ph; /* Physical width and height */
gdouble porient[6]; /* Physical orientation */
gdouble lorient[6]; /* Logical orientation */
gdouble lyw, lyh; /* Layout width and height */
gint num_pages; /* Number of pages */
GnomePrintLayoutPageData *pages; /* Pages */
};
struct _GnomePrintLayoutPageData {
gdouble matrix[6];
};
/* All keys can be NULL */
GnomePrintLayoutData *gnome_print_config_get_layout_data (GnomePrintConfig *config,
const guchar *pagekey,
const guchar *porientkey,
const guchar *lorientkey,
const guchar *layoutkey);
void gnome_print_layout_data_free (GnomePrintLayoutData *layoutdata);
GnomePrintLayout *gnome_print_layout_new_from_data (const GnomePrintLayoutData *layoutdata);
void gnome_print_layout_free (GnomePrintLayout *layout);
/* I'm putting this util funcs here for the mean time, find
* the right plance for them (Chema) */
typedef struct _GnomePrintBuffer GnomePrintBuffer;
struct _GnomePrintBuffer {
guchar *buf;
gint buf_size;
int fd;
gboolean was_mmaped;
};
void gnome_print_buffer_munmap (GnomePrintBuffer *b);
gint gnome_print_buffer_mmap (GnomePrintBuffer *b, const guchar *file_name);
gboolean gnome_print_parse_transform (guchar *str, gdouble *transform);
/* End */
G_END_DECLS
#endif /* __GNOME_PRINT_PRIVATE_H__ */
|