aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-printable.h
blob: 581b1e6f6300f12c1989baa4f6efdc3d67602b73 (plain) (blame)
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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * e-printable.h: an object printer.
 *
 * Author:
 *   Christopher James Lahey <clahey@helixcode.com>
 *
 * (C) 2000 Helix Code, Inc.
 */
#ifndef _E_PRINTABLE_H_
#define _E_PRINTABLE_H_

#include <gtk/gtkobject.h>
#include <libgnomeprint/gnome-print.h>

BEGIN_GNOME_DECLS

#define E_PRINTABLE_TYPE        (e_printable_get_type ())
#define E_PRINTABLE(o)          (GTK_CHECK_CAST ((o), E_PRINTABLE_TYPE, EPrintable))
#define E_PRINTABLE_CLASS(k)    (GTK_CHECK_CLASS_CAST((k), E_PRINTABLE_TYPE, EPrintableClass))
#define E_IS_PRINTABLE(o)       (GTK_CHECK_TYPE ((o), E_PRINTABLE_TYPE))
#define E_IS_PRINTABLE_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_PRINTABLE_TYPE))

typedef struct {
    GtkObject   base;
} EPrintable;

typedef struct {
    GtkObjectClass parent_class;

    /*
     * Signals
     */

    void        (*print_page)  (EPrintable *etm, GnomePrintContext *context, gdouble width, gdouble height, gboolean quantized);
    gboolean    (*data_left)   (EPrintable *etm);
    void        (*reset)       (EPrintable *etm);
    gdouble     (*height)      (EPrintable *etm, GnomePrintContext *context, gdouble width, gdouble max_height, gboolean quantized);

    /* e_printable_will_fit (ep, ...) should be equal in value to
     * (e_printable_print_page (ep, ...),
     * !e_printable_data_left(ep)) except that the latter has the
     * side effect of doing the printing and advancing the
     * position of the printable.
     */

    gboolean    (*will_fit)    (EPrintable *etm, GnomePrintContext *context, gdouble width, gdouble max_height, gboolean quantized);
} EPrintableClass;

GtkType     e_printable_get_type (void);

EPrintable *e_printable_new                 (void);
    
/*
 * Routines for emitting signals on the e_table */
void        e_printable_print_page          (EPrintable        *e_printable,
                         GnomePrintContext *context,
                         gdouble            width,
                         gdouble            height,
                         gboolean           quantized);
gboolean    e_printable_data_left           (EPrintable        *e_printable);
void        e_printable_reset               (EPrintable        *e_printable);
gdouble     e_printable_height              (EPrintable        *e_printable,
                         GnomePrintContext *context,
                         gdouble            width,
                         gdouble            max_height,
                         gboolean           quantized);
gboolean    e_printable_will_fit            (EPrintable        *e_printable,
                         GnomePrintContext *context,
                         gdouble            width,
                         gdouble            max_height,
                         gboolean           quantized);

END_GNOME_DECLS

#endif /* _E_PRINTABLE_H_ */
1-081-1/+1 * - Update to 1.2.1miwi2009-11-027-212/+43 * Also broken on sparc64-7.linimon2009-10-311-2/+2 * - Update to 2255.stas2009-10-282-4/+4 * Put back previous Linux version check, this time with proper braces. (duh!)nox2009-10-211-4/+4 * Comment out last commit to fix INDEX-8.linimon2009-10-201-4/+4 * Add a conditional IGNORE so people using a too old Linux base get anox2009-10-201-0/+8 * Update to 0.9.9makc2009-10-082-5/+4 * - jkois moved from Vienna to Grazmiwi2009-10-071-1/+1 * - Update to 2221.stas2009-10-052-4/+4 * - Update to 0.026wen2009-10-032-4/+4 * - Use my mirror for now until problems with the official one are resolved.stas2009-10-031-2/+2 * A ZConf based library to facilitate fetching weather informationmiwi2009-09-305-0/+44 * - Fix typodds2009-09-281-7/+7 * Add missing entries thanks to email info received fromdds2009-09-281-0/+4 * - Fix pkg-plist.stas2009-09-252-3/+19 * - Add port for astro/osmosis.stas2009-09-255-0/+153 * - Update to 0.025wen2009-09-252-5/+5 * Chase updated distfile, at 5.1.3509.4636 now.nox2009-09-252-4/+4 * - Update to 0.15.1amdmi32009-09-242-4/+4 * Unbreak on sparc64 by using "-mtune=native" only on i386 and amd64rene2009-09-221-4/+1 * Properly sort the FreeBSD committers markers.ed2009-09-201-10/+10 * Add myself to the markers.ed2009-09-201-0/+1 * - Fix: app_info.xml need to be installed regardless of X11 optionpav2009-09-181-1/+1 * Add missing entries thanks to email info received fromdds2009-09-171-3/+28 * - Install script from astro/prune as bin/prune${PORTVERSION} (currently bin/p...amdmi32009-09-161-5/+3 * * Update setiathome client to 6.08rene2009-09-169-115/+147 * - Add my locationdhn2009-09-161-0/+1 * Disclose my location.makc2009-09-161-0/+1 * Add my GPS coordinatesrene2009-09-161-0/+1 * Add takawata's location.nork2009-09-161-0/+1 * - Add my locationamdmi32009-09-151-0/+1 * Add my location.nwhitehorn2009-09-151-0/+1 * - Add my locationtota2009-09-151-0/+1 * Indicate what I'm not in the hostel where great part of all Moscow committers...az2009-09-151-1/+2 * Add my marker.pho2009-09-151-0/+1 * Add my entryrnoland2009-09-151-0/+1 * - Add my locationbeat2009-09-151-0/+1 * Add myself to the map.motoyuki2009-09-151-0/+1 * Add some missing commas.dds2009-09-151-16/+16 * Bump PORTREVISION for everything that sets USE_FORTRAN=yes which nowgerald2009-09-131-1/+1 * Chase updated distfile, at 5.1.3506.3999 now.nox2009-09-113-371/+120 * - Update to 0.15.0beat2009-09-092-4/+4 * Update to 0.044.tobez2009-09-042-4/+4 * - Update to 0.043jadawin2009-09-032-4/+4 * - Update 0.042jadawin2009-09-012-4/+4 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-2220-31/+21 * - Update to 1981.stas2009-08-212-5/+4 * Update to 0.041.tobez2009-08-202-5/+6 * - Update to 0.024miwi2009-08-203-6/+6 * - Now the version of lib GiNaC was fixed.araujo2009-08-191-2/+2 * - Update of dependency to new math/GiNaC version.araujo2009-08-191-2/+2 * Add slave port for KDE-flavored Celestia.danfe2009-08-182-0/+12 * - Allow to build with KDE3 frontenddanfe2009-08-184-3/+128 * Over to new volunteer.linimon2009-08-171-1/+1 * Reset toxa@toxahost.ru due to maintainer-timeouts and no response tolinimon2009-08-171-1/+1 * Mark as broken on sparc64-8: needs stdlib.h instead of malloc.h. Maylinimon2009-08-171-1/+7 * Augment the description: add information about add-ons.danfe2009-08-171-1/+6 * - Update to version 1.6.0danfe2009-08-167-130/+262 * - Bump PORTREVISION in favor of math/cln update.araujo2009-08-161-2/+2 * Add my locationfluffy2009-08-111-0/+1 * - Add missing dependency.stas2009-08-101-2/+3 * - Fix build after qt updatemiwi2009-08-071-1/+2 * - Limit the stack size for Google Earth. Linux glibc threading behavesnox2009-08-072-2/+14 * - Chase astro/libnova updatedhn2009-08-053-3/+3 * - Update to 0.13.0dhn2009-08-053-10/+7 * - Fix build with qt 4.5miwi2009-08-051-2/+2 * - Add CONFLICTS for graphics/graphviz: both ports install bin/pruneamdmi32009-08-041-0/+3 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-037-7/+7 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-3122-14/+22 * - Update boost to 1.39pav2009-07-281-1/+1 * Update to 3.7.4jpaetzel2009-07-283-17/+30 * - Update to 0.14.1miwi2009-07-262-4/+4 * - Update to 1788.stas2009-07-213-5/+5 * - Fix dependency on jpeg, bump PORTREVISIONamdmi32009-07-211-1/+2 * Add my location & change to more accurate coordinatesyzlin2009-07-201-1/+1 * - update to jpeg7dinoex2009-07-189-17/+18 * If you have astronomical imaging of the sky with celestial coordinates you doamdmi32009-07-187-0/+176 * "WCSLIB is a C library, supplied with a full set of Fortran wrappers, thatamdmi32009-07-185-0/+100 * - Update to 0.10.2amdmi32009-07-072-4/+4 * - cleanup ADDITIONAL_LIB_DIRSdinoex2009-07-051-2/+0 * - Update to 1669.stas2009-07-032-4/+4 * - Fix installationamdmi32009-06-261-2/+2 * Prune is an application for viewing, editing and converting coordinateamdmi32009-06-255-0/+63 * - Update to 1.70miwi2009-06-184-40/+19 * - Update to 0.13.0miwi2009-06-162-4/+4 * - Chase libxcb/xcb-proto updatedhn2009-06-151-1/+1 * QLandkarte GT is the ultimate outdoor aficionado's tool. It supports GPS maps inamdmi32009-06-107-0/+81 * Convert most of remaining ports that depend on xorg-libraries toamdmi32009-06-091-3/+3 * - Update to 0.13.2amdmi32009-06-092-4/+4 * - Update to 1656.stas2009-06-092-5/+4 * - Update to 0.9.0miwi2009-06-083-15/+26 * - Update to 0.3.1miwi2009-06-062-4/+4 * - Update to 0.18dpav2009-06-012-6/+7 * - Chase astro/gpsd shlib bumpmiwi2009-05-312-3/+4 * - Update to 2.39miwi2009-05-313-10/+10 * p5-GPS-Babel is a perl interface to gpsbabel.miwi2009-05-315-0/+38 * Add my locationavl2009-05-301-0/+1 * Fix build with custom PREFIX/LOCALBASE.itetcu2009-05-301-0/+2 * - Support nondefault prefix and building with ccache by passing env through s...amdmi32009-05-301-2/+11 * - Update to 1607.stas2009-05-292-4/+5 * - Update to 1.5miwi2009-05-234-113/+219 * p5::Astro is a set of assorted astronomical routines.miwi2009-05-235-0/+40 * - Mark most of my ports MAKE_JOBS_SAFE=yespgollucci2009-05-166-0/+12 * - Update to 1566.stas2009-05-152-4/+4 * Chase updated distfile, at 5.0.11733.9347 now.nox2009-05-092-4/+4 * Add my coordinatessnb2009-05-051-0/+1 * Chase updated distfile, at 5.0.11729.1014 now.nox2009-05-053-8/+7 * Update my locationahze2009-05-021-1/+1 * - Update to 3.7.3.4miwi2009-05-013-11/+28 * - Update to 0.040jadawin2009-04-242-4/+4 * - Update to 0.13.1, support translationsamdmi32009-04-234-7/+37 * - Update to 1529.stas2009-04-212-5/+4 * Drop maintainerships.bms2009-04-211-1/+1 * - Convert linux dri dependency to USE_LINUX_APPSnox2009-04-121-1/+2 * p5-Astro-SIMBAD-Client provides an object-oriented interface tomiwi2009-04-125-0/+51 * Astro-satpass contains classes needed to predict satellitemiwi2009-04-125-0/+62 * - Update to 3.01pgollucci2009-04-102-4/+4 * Presenting GNOME 2.26 for FreeBSD. Seemarcus2009-04-101-3/+4 * - Update to 1515.stas2009-04-032-4/+5 * - Fix buildmiwi2009-04-0318-33/+295 * adopt this portxride2009-04-031-1/+1 * Add myself to the mapskreuzer2009-03-311-0/+1 * Mark MAKE_JOBS_SAFE and squash some warnings.naddy2009-03-283-0/+21 * Mark MAKE_JOBS_SAFEehaupt2009-03-271-0/+1 * astLib is a set of Python modules that provides some tools for researchmiwi2009-03-265-0/+82 * Update to 0.17ehaupt2009-03-263-8/+4 * - Update to 0.10.1amdmi32009-03-253-106/+251 * - Update to 0.039jadawin2009-03-242-4/+4 * - Do not run depend on moc.stas2009-03-211-1/+1 * - Update to 0.8.6miwi2009-03-212-4/+4 * - MOC is also required.stas2009-03-201-1/+1 * Welcome to the new linux ports infrastructure which allows usingbsam2009-03-201-1/+1 * - Update to new stable snapshot 1504.stas2009-03-193-12/+30 * Mark as broken on sparc64-7.linimon2009-03-181-0/+6 * Mark as broken on sparc64: gcc dumps core.linimon2009-03-161-1/+7 * . update graphics/exiv2 to the new version;bsam2009-03-122-2/+2 * - Update to 0.9.8rafan2009-03-112-5/+4 * - Chase libusb20 rename in r189585.stas2009-03-102-3/+41 * - Use my FreeBSD address on the ports I maintaindhn2009-03-071-1/+1 * - Mark IGNOREpav2009-03-061-0/+2 * Add tangogps 0.9.6, a comprehencive GPS mapping application.stas2009-03-056-0/+67 * - Update to 2.38miwi2009-03-013-13/+74 * - Add astro/josm, a comprehencive OpenStreetMap.org maps editor.stas2009-02-255-0/+54 * - Change default Tcl/Tk version to 8.5mm2009-02-234-2/+4 * - Update to 0.038jadawin2009-02-192-4/+4 * - Update to 1.3.6miwi2009-02-152-7/+5 * - Mark BROKEN: error: redefinition of typedef '__GLXextFuncPtr'pav2009-02-111-0/+2 * - Correct appversionpav2009-02-101-1/+1 * - Update to 0.16pav2009-02-102-5/+5 * Update to 5.0.11337.1968, adding Mars and oceansnox2009-02-053-120/+228 * - Update to software release as of 2008-09-21.pgollucci2009-02-043-5/+5 * - Mark BROKEN: does not compilepav2009-01-291-0/+2 * - Add missing imageformats qt component to depends (needed to draw map imagery)amdmi32009-01-281-1/+2 * Fix non-root build by moving the chown to a pre-su-install targetnox2009-01-251-0/+2 * Update my location.krion2009-01-241-1/+2 * Fix the build with the new curl version - the CURLOPT_USERAGENT optionroam2009-01-241-0/+11 * - Update X.org ports to 7.4+ (few ports are more recent than the katamari).flz2009-01-244-5/+7 * Bump the version of the curl shared library after the ftp/curl updateroam2009-01-233-5/+6 * In preparation for adding new linux (Fedora 8) infrastructure ports all linuxbsam2009-01-221-3/+2 * - Chase astro/libnova shlib version bumpamdmi32009-01-203-5/+4 * - Update to 0.12.3amdmi32009-01-203-5/+5 * No longer pass FC, F77 and FFLAGS to CONFIGURE_ENV; this is now done viagerald2009-01-181-1/+0 * - add LICENSE:dinoex2009-01-171-0/+2 * - Update to 0.037jadawin2009-01-152-4/+4 * - Change maintainer emailbeech2009-01-152-2/+2 * Merkaartor is an openstreetmap mapping program. Merkaartor focuses onamdmi32009-01-154-0/+47 * - Chase math/gsl slib bumpmiwi2009-01-131-2/+2 * - Update to latest released versiondb2009-01-123-5/+35 * Get rid of the custom do-fetch target (which didn't cover all cases)nox2009-01-122-17/+7 * Presenting GNOME 2.24 for FreeBSD.marcus2009-01-101-2/+3 * Bump PORTREVISION due to change of USE_FORTRAN=yes to GCC 4.3.gerald2009-01-081-0/+1 * - Remove conditional checks relevant only on FreeBSD 5.x and olderpav2009-01-064-25/+8 * - Pass maintainership to PR submitterchinsan2009-01-031-1/+1 * - Bump portrevision due to upgrade of astro/libnovachinsan2009-01-033-2/+3 * - Update to 0.12.2chinsan2009-01-033-7/+6 * - Update to milkyway-0.7, which 1) have work available 2) runs 10 times hotterpav2008-12-294-39/+27 * - Update to 6.03pav2008-12-296-98/+123 * - Update to 0.035jadawin2008-12-262-4/+4 * - Update to 0.8.5miwi2008-12-263-27/+4 * - Take maintainership, I'm gaia's author.amdmi32008-12-191-1/+1 * Reset se@FreeBSD.org due to maintainer-timeouts and no response to email.linimon2008-12-181-1/+1 * Reset quakelee@cn.FreeBSD.org due to maintainer-timeouts and no responselinimon2008-12-161-1/+1 * Don't install doc files when NOPORTDOCS is defined.perky2008-12-041-0/+6 * Update to 0.14perky2008-12-043-16/+18 * Update to 0.034.tobez2008-11-272-4/+4 * - Update to 0.9.7miwi2008-11-223-5/+8 * py-aipy collects together tools for radio astronomicalmiwi2008-11-165-0/+154 * Apply two patches which were going to appear at future 6.4.1 release.bsam2008-11-113-0/+53 * - Update to 3.7.3.3 [1]db2008-11-063-5/+8 * - Update to 3.100miwi2008-11-022-5/+6 * PyFITS provides an interface to FITS formatted filesmiwi2008-11-025-0/+48 * The SWISS EPHEMERIS is the high precision ephemerismiwi2008-11-025-0/+71 * - Update to 6.4amdmi32008-10-293-5/+12 * I moved a little bit.netchild2008-10-261-1/+1 * - update to 0.033leeym2008-10-032-6/+14 * Add me after I've moved. +1 for the Team RTP.wxs2008-09-301-0/+1 * Add missing dependencynox2008-09-251-1/+2 * - Update to 0.4.4db2008-09-243-4/+36 * Fix a typo which causes files not to be owned by root:wheelnox2008-09-191-1/+2 * - Update to 2.11.5miwi2008-09-074-8/+8 * Reset infofarmer due to maintainer-timeouts and no response to email.linimon2008-09-075-5/+5 * Change MAINTAINER to my @FreeBSD.org address.jpaetzel2008-09-071-1/+1 * - Update PORTSCOUTchinsan2008-09-011-1/+1 * - set PORTSCOUT variablechinsan2008-08-311-0/+2 * Update the freebsd committer markers of core@keramida2008-08-301-4/+4 * Proud(?) to be the only OK freebsd committer in xearth =xahze2008-08-261-1/+1 * Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-213-3/+0 * - Update to 0.9.6.lippe2008-08-203-7/+19 * Conversion from (now defunct) autoconf-2.61 to autoconf-2.62ade2008-08-202-1/+7 * Return laszlof's ports to the pool due to lack of time.linimon2008-08-191-1/+1 * RoadMap is a program for Linux that displays street maps. The maps areamdmi32008-08-1111-0/+338 * - Update to 0.032chinsan2008-08-102-4/+4 * Milkyway@home is a research project that uses Internet-connected computers topav2008-08-097-0/+121 * - Update to 1.64miwi2008-08-034-9/+29 * I've moved.des2008-07-291-1/+1 * - Remove USE_GCC where it can be satisfied with base compiler on followingpav2008-07-252-2/+0 * Update my ports to my freebsd addresspgollucci2008-07-236-6/+6 * Adding my markerspgollucci2008-07-231-0/+1 * - Update to 2.37miwi2008-07-202-4/+4 * Added my targeting info.glarkin2008-07-191-0/+1 * - Fix for NOPORTDATApav2008-07-16